@progress/kendo-angular-dialog
Advanced tools
Comparing version 3.2.0 to 3.3.0-dev.201803141141
@@ -75,2 +75,18 @@ import { of } from 'rxjs/observable/of'; | ||
*/ | ||
export var focusableSelector = [ | ||
'a[href]', | ||
'area[href]', | ||
'input:not([disabled])', | ||
'select:not([disabled])', | ||
'textarea:not([disabled])', | ||
'button:not([disabled])', | ||
'iframe', | ||
'object', | ||
'embed', | ||
'*[tabindex]', | ||
'*[contenteditable]' | ||
].join(','); | ||
/** | ||
* @hidden | ||
*/ | ||
export var isChanged = function (propertyName, changes, skipFirstChange) { | ||
@@ -77,0 +93,0 @@ if (skipFirstChange === void 0) { skipFirstChange = true; } |
import { Component, EventEmitter, HostBinding, TemplateRef, Input, Output, ElementRef } from '@angular/core'; | ||
import { isPresent } from '../common/util'; | ||
/** | ||
@@ -43,14 +42,2 @@ * Specifies the action buttons of the Dialog. | ||
}; | ||
/** | ||
* @hidden | ||
*/ | ||
DialogActionsComponent.prototype.focusPrimaryButton = function () { | ||
var primaryButton = this.el.nativeElement.querySelector('.k-primary'); | ||
if (isPresent(primaryButton)) { | ||
primaryButton.focus(); | ||
} | ||
}; | ||
DialogActionsComponent.prototype.ngAfterViewInit = function () { | ||
this.focusPrimaryButton(); | ||
}; | ||
DialogActionsComponent.decorators = [ | ||
@@ -57,0 +44,0 @@ { type: Component, args: [{ |
@@ -6,3 +6,3 @@ import { Component, ContentChild, EventEmitter, HostBinding, Inject, Input, ViewChild, Optional, Output, ElementRef, Renderer2, HostListener } from '@angular/core'; | ||
import { DialogTitleBarComponent } from './dialog-titlebar.component'; | ||
import { hasClasses, DIALOG_CLASSES, Keys } from '../common/util'; | ||
import { hasClasses, DIALOG_CLASSES, Keys, isPresent, focusableSelector } from '../common/util'; | ||
/** | ||
@@ -45,2 +45,17 @@ * Represents the Kendo UI Dialog component for Angular. | ||
} | ||
if (event.keyCode === Keys.tab) { | ||
var firstFocusable = this._elRef.nativeElement; | ||
var lastFocusable = this.getLastFocusableElement(); | ||
var tabBeforeFirstFosucable = (target === firstFocusable) && event.shiftKey; | ||
var tabAfterLastFocusable = !event.shiftKey && isPresent(lastFocusable) && (target === lastFocusable); | ||
var tabWithNoFocusable = !isPresent(lastFocusable) && !event.shiftKey; | ||
if (tabBeforeFirstFosucable || tabWithNoFocusable) { | ||
event.preventDefault(); | ||
firstFocusable.focus(); | ||
} | ||
if (tabAfterLastFocusable) { | ||
event.preventDefault(); | ||
lastFocusable.focus(); | ||
} | ||
} | ||
}; | ||
@@ -51,2 +66,3 @@ DialogComponent.prototype.ngAfterContentInit = function () { | ||
DialogComponent.prototype.ngAfterViewInit = function () { | ||
this.handleInitialFocus(); | ||
this.bubble('close', this.titlebarView); | ||
@@ -62,2 +78,22 @@ this.bubble('action', this.actionsView); | ||
}; | ||
/** | ||
* @hidden | ||
*/ | ||
DialogComponent.prototype.handleInitialFocus = function () { | ||
var wrapper = this._elRef.nativeElement; | ||
var primaryButton = wrapper.querySelector('.k-primary'); | ||
if (isPresent(primaryButton)) { | ||
primaryButton.focus(); | ||
} | ||
else { | ||
wrapper.focus(); | ||
} | ||
}; | ||
/** | ||
* @hidden | ||
*/ | ||
DialogComponent.prototype.getLastFocusableElement = function () { | ||
var all = this._elRef.nativeElement.querySelectorAll(focusableSelector); | ||
return (all.length > 0) ? all[all.length - 1] : null; | ||
}; | ||
Object.defineProperty(DialogComponent.prototype, "wrapperClass", { | ||
@@ -115,3 +151,3 @@ get: function () { | ||
selector: 'kendo-dialog', | ||
template: "\n <div class=\"k-overlay\" @overlayAppear></div>\n\n <div class=\"k-widget k-window k-dialog\" [ngStyle]=\"styles\" @dialogSlideInAppear>\n\n <kendo-dialog-titlebar *ngIf=\"title\">{{title}}</kendo-dialog-titlebar>\n <ng-content select=\"kendo-dialog-titlebar\" *ngIf=\"!title\"></ng-content>\n\n <div 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 [actions]=\"actions\" *ngIf=\"actions\"></kendo-dialog-actions>\n\n </div>\n " | ||
template: "\n <div class=\"k-overlay\" @overlayAppear></div>\n\n <div\n class=\"k-widget k-window k-dialog\"\n role=\"dialog\"\n [attr.aria-labelledby]=\"title ? title : null\"\n [ngStyle]=\"styles\"\n @dialogSlideInAppear\n >\n <kendo-dialog-titlebar *ngIf=\"title\">{{title}}</kendo-dialog-titlebar>\n <ng-content select=\"kendo-dialog-titlebar\" *ngIf=\"!title\"></ng-content>\n\n <div 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 [actions]=\"actions\" *ngIf=\"actions\"></kendo-dialog-actions>\n\n </div>\n " | ||
},] }, | ||
@@ -118,0 +154,0 @@ ]; |
@@ -48,2 +48,6 @@ import { Observable } from 'rxjs/Observable'; | ||
*/ | ||
export declare const focusableSelector: string; | ||
/** | ||
* @hidden | ||
*/ | ||
export declare const isChanged: (propertyName: string, changes: any, skipFirstChange?: boolean) => boolean; | ||
@@ -50,0 +54,0 @@ /** |
@@ -74,2 +74,18 @@ import { of } from 'rxjs/observable/of'; | ||
*/ | ||
export const focusableSelector = [ | ||
'a[href]', | ||
'area[href]', | ||
'input:not([disabled])', | ||
'select:not([disabled])', | ||
'textarea:not([disabled])', | ||
'button:not([disabled])', | ||
'iframe', | ||
'object', | ||
'embed', | ||
'*[tabindex]', | ||
'*[contenteditable]' | ||
].join(','); | ||
/** | ||
* @hidden | ||
*/ | ||
export const isChanged = (propertyName, changes, skipFirstChange = true) => (changes[propertyName] && (!changes[propertyName].isFirstChange() || !skipFirstChange) && | ||
@@ -76,0 +92,0 @@ changes[propertyName].previousValue !== changes[propertyName].currentValue); |
@@ -1,2 +0,2 @@ | ||
import { EventEmitter, TemplateRef, AfterViewInit, ElementRef } from '@angular/core'; | ||
import { EventEmitter, TemplateRef, ElementRef } from '@angular/core'; | ||
import { DialogAction } from './dialog-settings'; | ||
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
export declare class DialogActionsComponent implements AfterViewInit { | ||
export declare class DialogActionsComponent { | ||
el: ElementRef; | ||
@@ -31,7 +31,2 @@ /** | ||
buttonClass(action: DialogAction): string; | ||
/** | ||
* @hidden | ||
*/ | ||
focusPrimaryButton(): void; | ||
ngAfterViewInit(): void; | ||
} |
import { Component, EventEmitter, HostBinding, TemplateRef, Input, Output, ElementRef } from '@angular/core'; | ||
import { isPresent } from '../common/util'; | ||
/** | ||
@@ -39,14 +38,2 @@ * Specifies the action buttons of the Dialog. | ||
} | ||
/** | ||
* @hidden | ||
*/ | ||
focusPrimaryButton() { | ||
const primaryButton = this.el.nativeElement.querySelector('.k-primary'); | ||
if (isPresent(primaryButton)) { | ||
primaryButton.focus(); | ||
} | ||
} | ||
ngAfterViewInit() { | ||
this.focusPrimaryButton(); | ||
} | ||
} | ||
@@ -53,0 +40,0 @@ DialogActionsComponent.decorators = [ |
@@ -61,2 +61,10 @@ import { AfterContentInit, AfterViewInit, EventEmitter, OnInit, OnDestroy, ElementRef, TemplateRef, Renderer2 } from '@angular/core'; | ||
ngOnDestroy(): void; | ||
/** | ||
* @hidden | ||
*/ | ||
private handleInitialFocus(); | ||
/** | ||
* @hidden | ||
*/ | ||
private getLastFocusableElement(); | ||
readonly wrapperClass: boolean; | ||
@@ -63,0 +71,0 @@ readonly styles: any; |
@@ -6,3 +6,3 @@ import { Component, ContentChild, EventEmitter, HostBinding, Inject, Input, ViewChild, Optional, Output, ElementRef, Renderer2, HostListener } from '@angular/core'; | ||
import { DialogTitleBarComponent } from './dialog-titlebar.component'; | ||
import { hasClasses, DIALOG_CLASSES, Keys } from '../common/util'; | ||
import { hasClasses, DIALOG_CLASSES, Keys, isPresent, focusableSelector } from '../common/util'; | ||
/** | ||
@@ -41,2 +41,17 @@ * Represents the Kendo UI Dialog component for Angular. | ||
} | ||
if (event.keyCode === Keys.tab) { | ||
const firstFocusable = this._elRef.nativeElement; | ||
const lastFocusable = this.getLastFocusableElement(); | ||
const tabBeforeFirstFosucable = (target === firstFocusable) && event.shiftKey; | ||
const tabAfterLastFocusable = !event.shiftKey && isPresent(lastFocusable) && (target === lastFocusable); | ||
const tabWithNoFocusable = !isPresent(lastFocusable) && !event.shiftKey; | ||
if (tabBeforeFirstFosucable || tabWithNoFocusable) { | ||
event.preventDefault(); | ||
firstFocusable.focus(); | ||
} | ||
if (tabAfterLastFocusable) { | ||
event.preventDefault(); | ||
lastFocusable.focus(); | ||
} | ||
} | ||
} | ||
@@ -47,2 +62,3 @@ ngAfterContentInit() { | ||
ngAfterViewInit() { | ||
this.handleInitialFocus(); | ||
this.bubble('close', this.titlebarView); | ||
@@ -58,2 +74,22 @@ this.bubble('action', this.actionsView); | ||
} | ||
/** | ||
* @hidden | ||
*/ | ||
handleInitialFocus() { | ||
const wrapper = this._elRef.nativeElement; | ||
const primaryButton = wrapper.querySelector('.k-primary'); | ||
if (isPresent(primaryButton)) { | ||
primaryButton.focus(); | ||
} | ||
else { | ||
wrapper.focus(); | ||
} | ||
} | ||
/** | ||
* @hidden | ||
*/ | ||
getLastFocusableElement() { | ||
const all = this._elRef.nativeElement.querySelectorAll(focusableSelector); | ||
return (all.length > 0) ? all[all.length - 1] : null; | ||
} | ||
get wrapperClass() { | ||
@@ -106,4 +142,9 @@ return true; | ||
<div class="k-widget k-window k-dialog" [ngStyle]="styles" @dialogSlideInAppear> | ||
<div | ||
class="k-widget k-window k-dialog" | ||
role="dialog" | ||
[attr.aria-labelledby]="title ? title : null" | ||
[ngStyle]="styles" | ||
@dialogSlideInAppear | ||
> | ||
<kendo-dialog-titlebar *ngIf="title">{{title}}</kendo-dialog-titlebar> | ||
@@ -110,0 +151,0 @@ <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content> |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":3,"metadata":{"DialogComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger"},"arguments":["overlayAppear",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"opacity":1}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["void => *",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"opacity":0.1}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":[".3s cubic-bezier(.2, .6, .4, 1)"]}]]}]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger"},"arguments":["dialogSlideInAppear",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"translate(0, 0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["void => *",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"translate(0, -10%)"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":[".3s cubic-bezier(.2, 1, .2, 1)"]}]]}]]}],"exportAs":"kendoDialog","selector":"kendo-dialog","template":"\n <div class=\"k-overlay\" @overlayAppear></div>\n\n <div class=\"k-widget k-window k-dialog\" [ngStyle]=\"styles\" @dialogSlideInAppear>\n\n <kendo-dialog-titlebar *ngIf=\"title\">{{title}}</kendo-dialog-titlebar>\n <ng-content select=\"kendo-dialog-titlebar\" *ngIf=\"!title\"></ng-content>\n\n <div 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 [actions]=\"actions\" *ngIf=\"actions\"></kendo-dialog-actions>\n\n </div>\n "}]}],"members":{"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"actions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"action":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"dir":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.dir"]}]}],"tabIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.tabIndex"]}]}],"titlebarContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"DialogTitleBarComponent"}]}]}],"titlebarView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","name":"DialogTitleBarComponent"}]}]}],"actionsView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","name":"DialogActionsComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"boolean"}]}],"onComponentKeydown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["keydown",["$event"]]}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"wrapperClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-dialog-wrapper"]}]}],"bubble":[{"__symbolic":"method"}]}},"DialogTitleBarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"kendo-dialog-titlebar","template":"\n <div class=\"k-window-title k-dialog-title\">\n <ng-content></ng-content>\n </div>\n <div class=\"k-window-actions k-dialog-actions\">\n <a href=\"#\" role=\"button\"\n aria-label=\"Close\"\n class=\"k-button k-bare k-button-icon k-window-action k-dialog-action k-dialog-close\"\n (click)=\"onCloseClick($event)\">\n <span class=\"k-icon k-i-x\"></span>\n </a>\n </div>\n "}]}],"members":{"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-window-titlebar"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-dialog-titlebar"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-header"]}]}],"onCloseClick":[{"__symbolic":"method"}]}},"DialogActionsComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"kendo-dialog-actions","template":"\n <ng-content *ngIf=\"!actions\"></ng-content>\n <ng-container *ngIf=\"!actionTemplate()\">\n <button\n [ngClass]=\"buttonClass(action)\"\n (click)=\"onButtonClick(action, $event)\"\n *ngFor=\"let action of actions\">\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template [ngTemplateOutlet]=\"actions\" *ngIf=\"actionTemplate()\"></ng-template>\n "}]}],"members":{"actions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"action":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-button-group"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-dialog-buttongroup"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-dialog-button-layout-stretched"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"actionTemplate":[{"__symbolic":"method"}],"onButtonClick":[{"__symbolic":"method"}],"buttonClass":[{"__symbolic":"method"}],"focusPrimaryButton":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"DialogService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver"},{"__symbolic":"reference","name":"ɵb"}]}],"open":[{"__symbolic":"method"}],"applyOptions":[{"__symbolic":"method"}],"contentFrom":[{"__symbolic":"method"}]}},"DialogCloseResult":{"__symbolic":"class","members":{}},"DialogRef":{"__symbolic":"class","members":{}},"DialogSettings":{"__symbolic":"class","members":{}},"DialogAction":{"__symbolic":"class","members":{}},"DialogResult":{"__symbolic":"interface"},"WindowComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"exportAs":"kendoWindow","providers":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService"},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX"},"useValue":"kendo.window"}],"selector":"kendo-window","template":"\n <kendo-window-titlebar *ngIf=\"showDefaultTitleBar\" [template]=\"titleBarTemplate\">\n <div class=\"k-window-title\">{{title}}</div>\n <button kendoWindowMinimizeAction></button>\n <button kendoWindowMaximizeAction></button>\n <button kendoWindowRestoreAction></button>\n <button kendoWindowCloseAction></button>\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 <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 kendoWindowDraggable>\n </div>\n </ng-template>\n "}]}],"members":{"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"draggable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"resizable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"keepContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"state":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"top":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"left":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dragStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"dragEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"resizeStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"resizeEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"widthChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"heightChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"topChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"leftChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"tabIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.tabIndex"]}]}],"hostClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-widget"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-window"]}]}],"dir":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.dir"]}]}],"titleBarView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","name":"WindowTitleBarComponent"}]}]}],"titleBarContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"WindowTitleBarComponent"}]}]}],"resizeHandles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren"},"arguments":[{"__symbolic":"reference","name":"ɵe"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","name":"boolean"}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"windowClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-window-wrapper"]}]}],"styleMinWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.minWidth"]}]}],"styleMinHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.minHeight"]}]}],"stylePosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.position"]}]}],"wrapperMaximizedClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-window-maximized"]}]}],"wrapperFocusedClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-state-focused"]}]}],"onComponentKeydown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["keydown",["$event"]]}]}],"onComponentFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["focus"]}]}],"onComponentBlur":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["blur"]}]}],"subscribeEvents":[{"__symbolic":"method"}],"setNextZIndex":[{"__symbolic":"method"}],"setInitialOffset":[{"__symbolic":"method"}],"updateAllOffset":[{"__symbolic":"method"}],"updateOffset":[{"__symbolic":"method"}],"setOption":[{"__symbolic":"method"}]}},"WindowTitleBarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"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 "}]}],"members":{"template":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"subscribeDrag":[{"__symbolic":"method"}],"unsubscribeDrag":[{"__symbolic":"method"}],"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-window-titlebar"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-dialog-titlebar"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-header"]}]}],"handle":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["dblclick",["$event"]]}]}]}},"WindowMaximizeActionDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"Button"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoWindowMaximizeAction","selector":"button[kendoWindowMaximizeAction]"}]}],"members":{"window":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"boolean"}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click"]}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.display"]}]}]}},"WindowMinimizeActionDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"Button"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoWindowMinimizeAction","selector":"button[kendoWindowMinimizeAction]"}]}],"members":{"window":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"boolean"}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click"]}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.display"]}]}]}},"WindowCloseActionDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"Button"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoWindowCloseAction","selector":"button[kendoWindowCloseAction]"}]}],"members":{"window":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"boolean"}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click"]}]}]}},"WindowRestoreActionDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"Button"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoWindowRestoreAction","selector":"button[kendoWindowRestoreAction]"}]}],"members":{"window":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"boolean"}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click"]}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.display"]}]}]}},"WindowState":{"__symbolic":"interface"},"WindowSettings":{"__symbolic":"class","members":{}},"WindowRef":{"__symbolic":"class","members":{}},"WindowCloseResult":{"__symbolic":"class","members":{}},"WindowService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver"},{"__symbolic":"reference","name":"ɵg"}]}],"open":[{"__symbolic":"method"}],"applyOptions":[{"__symbolic":"method"}],"contentFrom":[{"__symbolic":"method"}]}},"ɵa":[{"__symbolic":"reference","name":"DialogComponent"},{"__symbolic":"reference","name":"DialogTitleBarComponent"}],"DialogModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵh"}],"entryComponents":[{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵh"}],"imports":[{"__symbolic":"reference","name":"ɵj"}],"providers":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"DialogService"}]}]}],"members":{}},"WindowModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"WindowComponent"},{"__symbolic":"reference","name":"WindowTitleBarComponent"},{"__symbolic":"reference","name":"WindowCloseActionDirective"},{"__symbolic":"reference","name":"WindowMinimizeActionDirective"},{"__symbolic":"reference","name":"WindowMaximizeActionDirective"},{"__symbolic":"reference","name":"WindowRestoreActionDirective"}],{"__symbolic":"reference","name":"ɵk"}],"entryComponents":[[{"__symbolic":"reference","name":"WindowComponent"},{"__symbolic":"reference","name":"WindowTitleBarComponent"}]],"exports":[[{"__symbolic":"reference","name":"WindowComponent"},{"__symbolic":"reference","name":"WindowCloseActionDirective"},{"__symbolic":"reference","name":"WindowMinimizeActionDirective"},{"__symbolic":"reference","name":"WindowMaximizeActionDirective"},{"__symbolic":"reference","name":"WindowRestoreActionDirective"},{"__symbolic":"reference","name":"WindowTitleBarComponent"}],{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵk"}],"imports":[{"__symbolic":"reference","name":"ɵj"}],"providers":[{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"WindowService"}]}]}],"members":{}},"DialogsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"exports":[{"__symbolic":"reference","name":"DialogModule"},{"__symbolic":"reference","name":"WindowModule"}]}]}],"members":{}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{},"statics":{"container":{"__symbolic":"error","message":"Variable not initialized","line":7,"character":17}}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"onDrag":[{"__symbolic":"method"}],"handleDrag":[{"__symbolic":"method"}],"onResize":[{"__symbolic":"method"}],"handleResize":[{"__symbolic":"method"}],"restoreAction":[{"__symbolic":"method"}],"storeOptions":[{"__symbolic":"method"}],"maximizeAction":[{"__symbolic":"method"}],"minimizeAction":[{"__symbolic":"method"}],"closeAction":[{"__symbolic":"method"}],"center":[{"__symbolic":"method"}],"currentOffsetAndPosition":[{"__symbolic":"method"}],"currentPosition":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"}]}],"process":[{"__symbolic":"method"}],"handleArrow":[{"__symbolic":"method"}],"handleEscape":[{"__symbolic":"method"}],"handleDrag":[{"__symbolic":"method"}],"handleResize":[{"__symbolic":"method"}],"handleStateChange":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoWindowResizeHandle]"}]}],"members":{"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"hostClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-resize-handle"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}],null,null,null],"parameters":[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"setDisplay":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"outputs":["kendo.press","kendo.drag","kendo.release"],"selector":"[kendoWindowDraggable]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{},"statics":{"container":{"__symbolic":"error","message":"Variable not initialized","line":7,"character":17}}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoDialogContainer]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","name":"ɵb"}]}]}},"ɵi":[{"__symbolic":"reference","name":"DialogActionsComponent"}],"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵi"}],"exports":[{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}]}]}],"members":{}},"ɵk":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoWindowContainer]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","name":"ɵg"}]}]}}},"origins":{"DialogComponent":"./dialog/dialog.component","DialogTitleBarComponent":"./dialog/dialog-titlebar.component","DialogActionsComponent":"./dialog/dialog-actions.component","DialogService":"./dialog/dialog.service","DialogCloseResult":"./dialog/dialog-settings","DialogRef":"./dialog/dialog-settings","DialogSettings":"./dialog/dialog-settings","DialogAction":"./dialog/dialog-settings","DialogResult":"./dialog/dialog-settings","WindowComponent":"./window/window.component","WindowTitleBarComponent":"./window/window-titlebar.component","WindowMaximizeActionDirective":"./window/actions/window-maximize-action.directive","WindowMinimizeActionDirective":"./window/actions/window-minimize-action.directive","WindowCloseActionDirective":"./window/actions/window-close-action.directive","WindowRestoreActionDirective":"./window/actions/window-restore-action.directive","WindowState":"./window/window-settings","WindowSettings":"./window/window-settings","WindowRef":"./window/window-settings","WindowCloseResult":"./window/window-settings","WindowService":"./window/window.service","ɵa":"./dialog.module","DialogModule":"./dialog.module","WindowModule":"./window.module","DialogsModule":"./dialogs.module","ɵb":"./dialog/dialog-container.service","ɵc":"./window/drag-resize.service","ɵd":"./window/navigation.service","ɵe":"./window/window-resize-handle.directive","ɵf":"./window/draggable.directive","ɵg":"./window/window-container.service","ɵh":"./dialog/dialog-container.directive","ɵi":"./shared.module","ɵj":"./shared.module","ɵk":"./window/window-container.directive"},"importAs":"@progress/kendo-angular-dialog"} | ||
{"__symbolic":"module","version":3,"metadata":{"DialogComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger"},"arguments":["overlayAppear",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"opacity":1}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["void => *",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"opacity":0.1}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":[".3s cubic-bezier(.2, .6, .4, 1)"]}]]}]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger"},"arguments":["dialogSlideInAppear",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"translate(0, 0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["void => *",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"translate(0, -10%)"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":[".3s cubic-bezier(.2, 1, .2, 1)"]}]]}]]}],"exportAs":"kendoDialog","selector":"kendo-dialog","template":"\n <div class=\"k-overlay\" @overlayAppear></div>\n\n <div\n class=\"k-widget k-window k-dialog\"\n role=\"dialog\"\n [attr.aria-labelledby]=\"title ? title : null\"\n [ngStyle]=\"styles\"\n @dialogSlideInAppear\n >\n <kendo-dialog-titlebar *ngIf=\"title\">{{title}}</kendo-dialog-titlebar>\n <ng-content select=\"kendo-dialog-titlebar\" *ngIf=\"!title\"></ng-content>\n\n <div 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 [actions]=\"actions\" *ngIf=\"actions\"></kendo-dialog-actions>\n\n </div>\n "}]}],"members":{"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"actions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"action":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"dir":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.dir"]}]}],"tabIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.tabIndex"]}]}],"titlebarContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"DialogTitleBarComponent"}]}]}],"titlebarView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","name":"DialogTitleBarComponent"}]}]}],"actionsView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","name":"DialogActionsComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"boolean"}]}],"onComponentKeydown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["keydown",["$event"]]}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"handleInitialFocus":[{"__symbolic":"method"}],"getLastFocusableElement":[{"__symbolic":"method"}],"wrapperClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-dialog-wrapper"]}]}],"bubble":[{"__symbolic":"method"}]}},"DialogTitleBarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"kendo-dialog-titlebar","template":"\n <div class=\"k-window-title k-dialog-title\">\n <ng-content></ng-content>\n </div>\n <div class=\"k-window-actions k-dialog-actions\">\n <a href=\"#\" role=\"button\"\n aria-label=\"Close\"\n class=\"k-button k-bare k-button-icon k-window-action k-dialog-action k-dialog-close\"\n (click)=\"onCloseClick($event)\">\n <span class=\"k-icon k-i-x\"></span>\n </a>\n </div>\n "}]}],"members":{"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-window-titlebar"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-dialog-titlebar"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-header"]}]}],"onCloseClick":[{"__symbolic":"method"}]}},"DialogActionsComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"kendo-dialog-actions","template":"\n <ng-content *ngIf=\"!actions\"></ng-content>\n <ng-container *ngIf=\"!actionTemplate()\">\n <button\n [ngClass]=\"buttonClass(action)\"\n (click)=\"onButtonClick(action, $event)\"\n *ngFor=\"let action of actions\">\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template [ngTemplateOutlet]=\"actions\" *ngIf=\"actionTemplate()\"></ng-template>\n "}]}],"members":{"actions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"action":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-button-group"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-dialog-buttongroup"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-dialog-button-layout-stretched"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"actionTemplate":[{"__symbolic":"method"}],"onButtonClick":[{"__symbolic":"method"}],"buttonClass":[{"__symbolic":"method"}]}},"DialogService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver"},{"__symbolic":"reference","name":"ɵb"}]}],"open":[{"__symbolic":"method"}],"applyOptions":[{"__symbolic":"method"}],"contentFrom":[{"__symbolic":"method"}]}},"DialogCloseResult":{"__symbolic":"class","members":{}},"DialogRef":{"__symbolic":"class","members":{}},"DialogSettings":{"__symbolic":"class","members":{}},"DialogAction":{"__symbolic":"class","members":{}},"DialogResult":{"__symbolic":"interface"},"WindowComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"exportAs":"kendoWindow","providers":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService"},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX"},"useValue":"kendo.window"}],"selector":"kendo-window","template":"\n <kendo-window-titlebar *ngIf=\"showDefaultTitleBar\" [template]=\"titleBarTemplate\">\n <div class=\"k-window-title\">{{title}}</div>\n <button kendoWindowMinimizeAction></button>\n <button kendoWindowMaximizeAction></button>\n <button kendoWindowRestoreAction></button>\n <button kendoWindowCloseAction></button>\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 <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 kendoWindowDraggable>\n </div>\n </ng-template>\n "}]}],"members":{"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"draggable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"resizable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"keepContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"state":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"top":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"left":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dragStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"dragEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"resizeStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"resizeEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"widthChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"heightChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"topChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"leftChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"tabIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.tabIndex"]}]}],"hostClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-widget"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-window"]}]}],"dir":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.dir"]}]}],"titleBarView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","name":"WindowTitleBarComponent"}]}]}],"titleBarContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"WindowTitleBarComponent"}]}]}],"resizeHandles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren"},"arguments":[{"__symbolic":"reference","name":"ɵe"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","name":"boolean"}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"windowClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-window-wrapper"]}]}],"styleMinWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.minWidth"]}]}],"styleMinHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.minHeight"]}]}],"stylePosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.position"]}]}],"wrapperMaximizedClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-window-maximized"]}]}],"wrapperFocusedClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-state-focused"]}]}],"onComponentKeydown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["keydown",["$event"]]}]}],"onComponentFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["focus"]}]}],"onComponentBlur":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["blur"]}]}],"subscribeEvents":[{"__symbolic":"method"}],"setNextZIndex":[{"__symbolic":"method"}],"setInitialOffset":[{"__symbolic":"method"}],"updateAllOffset":[{"__symbolic":"method"}],"updateOffset":[{"__symbolic":"method"}],"setOption":[{"__symbolic":"method"}]}},"WindowTitleBarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"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 "}]}],"members":{"template":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"subscribeDrag":[{"__symbolic":"method"}],"unsubscribeDrag":[{"__symbolic":"method"}],"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-window-titlebar"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-dialog-titlebar"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-header"]}]}],"handle":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["dblclick",["$event"]]}]}]}},"WindowMaximizeActionDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"Button"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoWindowMaximizeAction","selector":"button[kendoWindowMaximizeAction]"}]}],"members":{"window":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"boolean"}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click"]}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.display"]}]}]}},"WindowMinimizeActionDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"Button"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoWindowMinimizeAction","selector":"button[kendoWindowMinimizeAction]"}]}],"members":{"window":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"boolean"}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click"]}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.display"]}]}]}},"WindowCloseActionDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"Button"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoWindowCloseAction","selector":"button[kendoWindowCloseAction]"}]}],"members":{"window":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"boolean"}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click"]}]}]}},"WindowRestoreActionDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"Button"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoWindowRestoreAction","selector":"button[kendoWindowRestoreAction]"}]}],"members":{"window":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"boolean"}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click"]}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.display"]}]}]}},"WindowState":{"__symbolic":"interface"},"WindowSettings":{"__symbolic":"class","members":{}},"WindowRef":{"__symbolic":"class","members":{}},"WindowCloseResult":{"__symbolic":"class","members":{}},"WindowService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver"},{"__symbolic":"reference","name":"ɵg"}]}],"open":[{"__symbolic":"method"}],"applyOptions":[{"__symbolic":"method"}],"contentFrom":[{"__symbolic":"method"}]}},"ɵa":[{"__symbolic":"reference","name":"DialogComponent"},{"__symbolic":"reference","name":"DialogTitleBarComponent"}],"DialogModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵh"}],"entryComponents":[{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵh"}],"imports":[{"__symbolic":"reference","name":"ɵj"}],"providers":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"DialogService"}]}]}],"members":{}},"WindowModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"WindowComponent"},{"__symbolic":"reference","name":"WindowTitleBarComponent"},{"__symbolic":"reference","name":"WindowCloseActionDirective"},{"__symbolic":"reference","name":"WindowMinimizeActionDirective"},{"__symbolic":"reference","name":"WindowMaximizeActionDirective"},{"__symbolic":"reference","name":"WindowRestoreActionDirective"}],{"__symbolic":"reference","name":"ɵk"}],"entryComponents":[[{"__symbolic":"reference","name":"WindowComponent"},{"__symbolic":"reference","name":"WindowTitleBarComponent"}]],"exports":[[{"__symbolic":"reference","name":"WindowComponent"},{"__symbolic":"reference","name":"WindowCloseActionDirective"},{"__symbolic":"reference","name":"WindowMinimizeActionDirective"},{"__symbolic":"reference","name":"WindowMaximizeActionDirective"},{"__symbolic":"reference","name":"WindowRestoreActionDirective"},{"__symbolic":"reference","name":"WindowTitleBarComponent"}],{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵk"}],"imports":[{"__symbolic":"reference","name":"ɵj"}],"providers":[{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"WindowService"}]}]}],"members":{}},"DialogsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"exports":[{"__symbolic":"reference","name":"DialogModule"},{"__symbolic":"reference","name":"WindowModule"}]}]}],"members":{}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{},"statics":{"container":{"__symbolic":"error","message":"Variable not initialized","line":7,"character":17}}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"onDrag":[{"__symbolic":"method"}],"handleDrag":[{"__symbolic":"method"}],"onResize":[{"__symbolic":"method"}],"handleResize":[{"__symbolic":"method"}],"restoreAction":[{"__symbolic":"method"}],"storeOptions":[{"__symbolic":"method"}],"maximizeAction":[{"__symbolic":"method"}],"minimizeAction":[{"__symbolic":"method"}],"closeAction":[{"__symbolic":"method"}],"center":[{"__symbolic":"method"}],"currentOffsetAndPosition":[{"__symbolic":"method"}],"currentPosition":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"}]}],"process":[{"__symbolic":"method"}],"handleArrow":[{"__symbolic":"method"}],"handleEscape":[{"__symbolic":"method"}],"handleDrag":[{"__symbolic":"method"}],"handleResize":[{"__symbolic":"method"}],"handleStateChange":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoWindowResizeHandle]"}]}],"members":{"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"hostClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-resize-handle"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}],null,null,null],"parameters":[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵc"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"setDisplay":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"outputs":["kendo.press","kendo.drag","kendo.release"],"selector":"[kendoWindowDraggable]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{},"statics":{"container":{"__symbolic":"error","message":"Variable not initialized","line":7,"character":17}}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoDialogContainer]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","name":"ɵb"}]}]}},"ɵi":[{"__symbolic":"reference","name":"DialogActionsComponent"}],"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵi"}],"exports":[{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}]}]}],"members":{}},"ɵk":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoWindowContainer]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","name":"ɵg"}]}]}}},"origins":{"DialogComponent":"./dialog/dialog.component","DialogTitleBarComponent":"./dialog/dialog-titlebar.component","DialogActionsComponent":"./dialog/dialog-actions.component","DialogService":"./dialog/dialog.service","DialogCloseResult":"./dialog/dialog-settings","DialogRef":"./dialog/dialog-settings","DialogSettings":"./dialog/dialog-settings","DialogAction":"./dialog/dialog-settings","DialogResult":"./dialog/dialog-settings","WindowComponent":"./window/window.component","WindowTitleBarComponent":"./window/window-titlebar.component","WindowMaximizeActionDirective":"./window/actions/window-maximize-action.directive","WindowMinimizeActionDirective":"./window/actions/window-minimize-action.directive","WindowCloseActionDirective":"./window/actions/window-close-action.directive","WindowRestoreActionDirective":"./window/actions/window-restore-action.directive","WindowState":"./window/window-settings","WindowSettings":"./window/window-settings","WindowRef":"./window/window-settings","WindowCloseResult":"./window/window-settings","WindowService":"./window/window.service","ɵa":"./dialog.module","DialogModule":"./dialog.module","WindowModule":"./window.module","DialogsModule":"./dialogs.module","ɵb":"./dialog/dialog-container.service","ɵc":"./window/drag-resize.service","ɵd":"./window/navigation.service","ɵe":"./window/window-resize-handle.directive","ɵf":"./window/draggable.directive","ɵg":"./window/window-container.service","ɵh":"./dialog/dialog-container.directive","ɵi":"./shared.module","ɵj":"./shared.module","ɵk":"./window/window-container.directive"},"importAs":"@progress/kendo-angular-dialog"} |
@@ -77,2 +77,18 @@ "use strict"; | ||
*/ | ||
exports.focusableSelector = [ | ||
'a[href]', | ||
'area[href]', | ||
'input:not([disabled])', | ||
'select:not([disabled])', | ||
'textarea:not([disabled])', | ||
'button:not([disabled])', | ||
'iframe', | ||
'object', | ||
'embed', | ||
'*[tabindex]', | ||
'*[contenteditable]' | ||
].join(','); | ||
/** | ||
* @hidden | ||
*/ | ||
exports.isChanged = function (propertyName, changes, skipFirstChange) { | ||
@@ -79,0 +95,0 @@ if (skipFirstChange === void 0) { skipFirstChange = true; } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var util_1 = require("../common/util"); | ||
/** | ||
@@ -45,14 +44,2 @@ * Specifies the action buttons of the Dialog. | ||
}; | ||
/** | ||
* @hidden | ||
*/ | ||
DialogActionsComponent.prototype.focusPrimaryButton = function () { | ||
var primaryButton = this.el.nativeElement.querySelector('.k-primary'); | ||
if (util_1.isPresent(primaryButton)) { | ||
primaryButton.focus(); | ||
} | ||
}; | ||
DialogActionsComponent.prototype.ngAfterViewInit = function () { | ||
this.focusPrimaryButton(); | ||
}; | ||
DialogActionsComponent.decorators = [ | ||
@@ -59,0 +46,0 @@ { type: core_1.Component, args: [{ |
@@ -46,2 +46,17 @@ "use strict"; | ||
} | ||
if (event.keyCode === util_1.Keys.tab) { | ||
var firstFocusable = this._elRef.nativeElement; | ||
var lastFocusable = this.getLastFocusableElement(); | ||
var tabBeforeFirstFosucable = (target === firstFocusable) && event.shiftKey; | ||
var tabAfterLastFocusable = !event.shiftKey && util_1.isPresent(lastFocusable) && (target === lastFocusable); | ||
var tabWithNoFocusable = !util_1.isPresent(lastFocusable) && !event.shiftKey; | ||
if (tabBeforeFirstFosucable || tabWithNoFocusable) { | ||
event.preventDefault(); | ||
firstFocusable.focus(); | ||
} | ||
if (tabAfterLastFocusable) { | ||
event.preventDefault(); | ||
lastFocusable.focus(); | ||
} | ||
} | ||
}; | ||
@@ -52,2 +67,3 @@ DialogComponent.prototype.ngAfterContentInit = function () { | ||
DialogComponent.prototype.ngAfterViewInit = function () { | ||
this.handleInitialFocus(); | ||
this.bubble('close', this.titlebarView); | ||
@@ -63,2 +79,22 @@ this.bubble('action', this.actionsView); | ||
}; | ||
/** | ||
* @hidden | ||
*/ | ||
DialogComponent.prototype.handleInitialFocus = function () { | ||
var wrapper = this._elRef.nativeElement; | ||
var primaryButton = wrapper.querySelector('.k-primary'); | ||
if (util_1.isPresent(primaryButton)) { | ||
primaryButton.focus(); | ||
} | ||
else { | ||
wrapper.focus(); | ||
} | ||
}; | ||
/** | ||
* @hidden | ||
*/ | ||
DialogComponent.prototype.getLastFocusableElement = function () { | ||
var all = this._elRef.nativeElement.querySelectorAll(util_1.focusableSelector); | ||
return (all.length > 0) ? all[all.length - 1] : null; | ||
}; | ||
Object.defineProperty(DialogComponent.prototype, "wrapperClass", { | ||
@@ -116,3 +152,3 @@ get: function () { | ||
selector: 'kendo-dialog', | ||
template: "\n <div class=\"k-overlay\" @overlayAppear></div>\n\n <div class=\"k-widget k-window k-dialog\" [ngStyle]=\"styles\" @dialogSlideInAppear>\n\n <kendo-dialog-titlebar *ngIf=\"title\">{{title}}</kendo-dialog-titlebar>\n <ng-content select=\"kendo-dialog-titlebar\" *ngIf=\"!title\"></ng-content>\n\n <div 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 [actions]=\"actions\" *ngIf=\"actions\"></kendo-dialog-actions>\n\n </div>\n " | ||
template: "\n <div class=\"k-overlay\" @overlayAppear></div>\n\n <div\n class=\"k-widget k-window k-dialog\"\n role=\"dialog\"\n [attr.aria-labelledby]=\"title ? title : null\"\n [ngStyle]=\"styles\"\n @dialogSlideInAppear\n >\n <kendo-dialog-titlebar *ngIf=\"title\">{{title}}</kendo-dialog-titlebar>\n <ng-content select=\"kendo-dialog-titlebar\" *ngIf=\"!title\"></ng-content>\n\n <div 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 [actions]=\"actions\" *ngIf=\"actions\"></kendo-dialog-actions>\n\n </div>\n " | ||
},] }, | ||
@@ -119,0 +155,0 @@ ]; |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-angular-dialog",["rxjs/operators/take","rxjs/Subject","tslib","@angular/core","rxjs/observable/merge","@angular/animations","@progress/kendo-angular-l10n","rxjs/Subscription","@progress/kendo-angular-buttons","rxjs/observable/of","rxjs/operators/delay","rxjs/operators/takeUntil","rxjs/operators/tap","rxjs/operators/map","rxjs/operators/switchMap","@progress/kendo-popup-common","@telerik/kendo-draggable","@angular/common"],function(e){var t,n,i,o,r,a,s,d,p,c,l,u,g,m,f,h,_,y;function v(e){return e.__useDefault?e.default:e}return{setters:[function(e){t=v(e)},function(e){n=v(e)},function(e){i=v(e)},function(e){o=v(e)},function(e){r=v(e)},function(e){a=v(e)},function(e){s=v(e)},function(e){d=v(e)},function(e){p=v(e)},function(e){c=v(e)},function(e){l=v(e)},function(e){u=v(e)},function(e){g=v(e)},function(e){m=v(e)},function(e){f=v(e)},function(e){h=v(e)},function(e){_=v(e)},function(e){y=v(e)}],execute:function(){!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.c=t,n.p="",n(0)}([function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=i(1);n.DialogComponent=o.DialogComponent;var r=i(11);n.DialogTitleBarComponent=r.DialogTitleBarComponent;var a=i(6);n.DialogActionsComponent=a.DialogActionsComponent;var s=i(12);n.DialogService=s.DialogService;var d=i(17);n.DialogCloseResult=d.DialogCloseResult,n.DialogRef=d.DialogRef,n.DialogSettings=d.DialogSettings,n.DialogAction=d.DialogAction;var p=i(18);n.WindowComponent=p.WindowComponent;var c=i(28);n.WindowTitleBarComponent=c.WindowTitleBarComponent;var l=i(30);n.WindowMaximizeActionDirective=l.WindowMaximizeActionDirective;var u=i(32);n.WindowMinimizeActionDirective=u.WindowMinimizeActionDirective;var g=i(33);n.WindowCloseActionDirective=g.WindowCloseActionDirective;var m=i(34);n.WindowRestoreActionDirective=m.WindowRestoreActionDirective;var f=i(35);n.WindowSettings=f.WindowSettings,n.WindowRef=f.WindowRef,n.WindowCloseResult=f.WindowCloseResult;var h=i(36);n.WindowService=h.WindowService;var _=i(38);n.DialogModule=_.DialogModule;var y=i(42);n.WindowModule=y.WindowModule;var v=i(44);n.DialogsModule=v.DialogsModule,function(t){for(var n in t)e(n,t[n])}(n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),a=n(5),s=n(6),d=n(11),p=n(7),c=function(){function e(e,t,n){this._elRef=e,this._renderer=t,this.action=new o.EventEmitter,this.close=new o.EventEmitter,this.tabIndex=0,this.subscriptions=[],this.direction=n?"rtl":"ltr"}return Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.onComponentKeydown=function(e){var t=e.target;(p.hasClasses(t,p.DIALOG_CLASSES)||p.hasClasses(t.parentElement,p.DIALOG_CLASSES))&&e.keyCode===p.Keys.esc&&this.close.emit()},e.prototype.ngAfterContentInit=function(){this.bubble("close",this.titlebarContent)},e.prototype.ngAfterViewInit=function(){this.bubble("close",this.titlebarView),this.bubble("action",this.actionsView)},e.prototype.ngOnInit=function(){this._renderer.removeAttribute(this._elRef.nativeElement,"title")},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[]},Object.defineProperty(e.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styles",{get:function(){var e={};return this.width&&(e.width=this.width+"px"),this.height&&(e.height=this.height+"px"),this.minWidth&&(e.minWidth=this.minWidth+"px"),e},enumerable:!0,configurable:!0}),e.prototype.bubble=function(e,t){var n=this;if(t){var i=t[e].subscribe(function(t){return n[e].emit(t)});this.subscriptions.push(i)}},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"actions",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"minWidth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"action",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([o.HostBinding("attr.tabIndex"),i.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),i.__decorate([o.ContentChild(d.DialogTitleBarComponent),i.__metadata("design:type",d.DialogTitleBarComponent)],e.prototype,"titlebarContent",void 0),i.__decorate([o.ViewChild(d.DialogTitleBarComponent),i.__metadata("design:type",d.DialogTitleBarComponent)],e.prototype,"titlebarView",void 0),i.__decorate([o.ViewChild(s.DialogActionsComponent),i.__metadata("design:type",s.DialogActionsComponent)],e.prototype,"actionsView",void 0),i.__decorate([o.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[KeyboardEvent]),i.__metadata("design:returntype",void 0)],e.prototype,"onComponentKeydown",null),i.__decorate([o.HostBinding("class.k-dialog-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperClass",null),e=i.__decorate([o.Component({animations:[r.trigger("overlayAppear",[r.state("in",r.style({opacity:1})),r.transition("void => *",[r.style({opacity:.1}),r.animate(".3s cubic-bezier(.2, .6, .4, 1)")])]),r.trigger("dialogSlideInAppear",[r.state("in",r.style({transform:"translate(0, 0)"})),r.transition("void => *",[r.style({transform:"translate(0, -10%)"}),r.animate(".3s cubic-bezier(.2, 1, .2, 1)")])])],exportAs:"kendoDialog",selector:"kendo-dialog",template:'\n <div class="k-overlay" @overlayAppear></div>\n\n <div class="k-widget k-window k-dialog" [ngStyle]="styles" @dialogSlideInAppear>\n\n <kendo-dialog-titlebar *ngIf="title">{{title}}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div 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 [actions]="actions" *ngIf="actions"></kendo-dialog-actions>\n\n </div>\n '}),i.__param(2,o.Optional()),i.__param(2,o.Inject(a.RTL)),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,Boolean])],e)}();t.DialogComponent=c},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t){e.exports=a},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(7),a=function(){function e(e){this.el=e,this.action=new o.EventEmitter}return Object.defineProperty(e.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.actionTemplate=function(){return this.actions instanceof o.TemplateRef},e.prototype.onButtonClick=function(e,t){this.action.emit(e)},e.prototype.buttonClass=function(e){var t=["k-button"];return e.primary&&t.push("k-primary"),t.join(" ")},e.prototype.focusPrimaryButton=function(){var e=this.el.nativeElement.querySelector(".k-primary");r.isPresent(e)&&e.focus()},e.prototype.ngAfterViewInit=function(){this.focusPrimaryButton()},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"actions",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"action",void 0),i.__decorate([o.HostBinding("class.k-button-group"),o.HostBinding("class.k-dialog-buttongroup"),o.HostBinding("class.k-dialog-button-layout-stretched"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"className",null),e=i.__decorate([o.Component({selector:"kendo-dialog-actions",template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="!actionTemplate()">\n <button\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n *ngFor="let action of actions">\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template [ngTemplateOutlet]="actions" *ngIf="actionTemplate()"></ng-template>\n '}),i.__metadata("design:paramtypes",[o.ElementRef])],e)}();t.DialogActionsComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(8),o=n(9),r=n(10);t.isPresent=function(e){return null!=e},t.isTruthy=function(e){return!!e};var a,s=function(e){return String(e).trim().split(" ")},d=/^(?:a|input|select|textarea|button|object)$/i;(a=t.Keys||(t.Keys={}))[a.esc=27]="esc",a[a.tab=9]="tab",a[a.enter=13]="enter",a[a.space=32]="space",a[a.ctrl=17]="ctrl",a[a.shift=16]="shift",a[a.left=37]="left",a[a.up=38]="up",a[a.right=39]="right",a[a.down=40]="down",t.DIALOG_CLASSES="k-dialog-wrapper k-dialog-buttongroup",t.WINDOW_CLASSES="k-window-wrapper",t.hasClasses=function(e,t){var n=s(t);return Boolean(s(e.className).find(function(e){return n.indexOf(e)>=0}))},t.isVisible=function(e){var t=e.getBoundingClientRect();return!(!t.width||!t.height)&&"hidden"!==window.getComputedStyle(e).visibility},t.isFocusable=function(e,n){if(void 0===n&&(n=!0),e.tagName){var i=e.tagName.toLowerCase(),o=e.getAttribute("tabIndex"),r=null!==o&&!isNaN(o)&&o>-1;return(d.test(i)?!e.disabled:r)&&(!n||t.isVisible(e))}return!1},t.isChanged=function(e,t,n){return void 0===n&&(n=!0),t[e]&&(!t[e].isFirstChange()||!n)&&t[e].previousValue!==t[e].currentValue},t.preventDefault=function(e){var t=e.originalEvent;t.stopPropagation(),t.preventDefault()},t.isDocumentAvailable=function(){return"undefined"!=typeof document&&!!document.body},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.preventOnDblClick=function(e){return function(t){return i.of(t).pipe(o.delay(150),r.takeUntil(e))}},t.RESIZE_DIRECTIONS=["n","e","s","w","se","sw","ne","nw"],t.OFFSET_STYLES=["top","left","width","height"]},function(e,t){e.exports=c},function(e,t){e.exports=l},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){this.close=new o.EventEmitter}return Object.defineProperty(e.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.onCloseClick=function(e){e.preventDefault(),this.close.emit()},i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),i.__decorate([o.HostBinding("class.k-window-titlebar"),o.HostBinding("class.k-dialog-titlebar"),o.HostBinding("class.k-header"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"className",null),e=i.__decorate([o.Component({selector:"kendo-dialog-titlebar",template:'\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n <div class="k-window-actions k-dialog-actions">\n <a href="#" role="button"\n aria-label="Close"\n class="k-button k-bare k-button-icon k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)">\n <span class="k-icon k-i-x"></span>\n </a>\n </div>\n '})],e)}();t.DialogTitleBarComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(13),r=n(14),a=n(15),s=n(3),d=n(1),p=n(16),c=n(17),l=function(){function e(e,t){this.getDialogRef=e,this.parentInjector=t}return e.prototype.get=function(e,t){return e===c.DialogRef?this.getDialogRef():this.parentInjector.get(e,t)},e}(),u=function(){function e(e,t){this.resolver=e,this.containerService=t}return e.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(d.DialogComponent),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 http://www.telerik.com/kendo-angular-ui/components/dialog/service/ .\n ");var i={close:function(){},content:null,dialog:null,result:null},s=this.contentFrom(e.content,n,i),p=n.createComponent(t,void 0,void 0,s.nodes);i.dialog=p,this.applyOptions(p.instance,e);var l=new o.Subject,u=function(e){l.next(e||new c.DialogCloseResult),s.componentRef&&s.componentRef.destroy(),p.destroy()},g=r.merge(l,p.instance.close,p.instance.action).pipe(a.take(1));return g.subscribe(u),i.close=u,i.result=g,i},e.prototype.applyOptions=function(e,t){e.title=t.title,e.actions=t.actions,e.width=t.width,e.minWidth=t.minWidth,e.height=t.height,t.content instanceof s.TemplateRef&&(e.contentTemplate=t.content)},e.prototype.contentFrom=function(e,t,n){var i=t.injector.get(s.Renderer2),o=[],r=null;if("string"==typeof e)o=[i.createText(e)];else if(e&&!(e instanceof s.TemplateRef)){var a=new l(function(){return n},t.injector),d=this.resolver.resolveComponentFactory(e);o=[(r=t.createComponent(d,void 0,a)).location.nativeElement],n.content=r}return{componentRef:r,nodes:[[],o,[]]}},e=i.__decorate([s.Injectable(),i.__metadata("design:paramtypes",[s.ComponentFactoryResolver,p.DialogContainerService])],e)}();t.DialogService=u},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){}return t=e,Object.defineProperty(e.prototype,"container",{get:function(){return t.container},set:function(e){t.container=e},enumerable:!0,configurable:!0}),e=t=i.__decorate([o.Injectable()],e);var t}();t.DialogContainerService=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.DialogAction=n;var i=function(){};t.DialogCloseResult=i;var o=function(){};t.DialogSettings=o;var r=function(){};t.DialogRef=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(5),s=n(19),d=n(20),p=n(7),c=n(7),l=n(25),u=n(28),g=n(29),m=function(){function e(e,t,n,i,r,a){this.el=e,this.renderer=t,this.service=n,this.navigation=i,this.ngZone=r,this.keepContent=!1,this.dragStart=new o.EventEmitter,this.dragEnd=new o.EventEmitter,this.resizeStart=new o.EventEmitter,this.resizeEnd=new o.EventEmitter,this.close=new o.EventEmitter,this.widthChange=new o.EventEmitter,this.heightChange=new o.EventEmitter,this.topChange=new o.EventEmitter,this.leftChange=new o.EventEmitter,this.stateChange=new o.EventEmitter,this.tabIndex=0,this.focused=!1,this.draged=!1,this.resized=!1,this.windowSubscription=new s.Subscription,this.direction=a?"rtl":"ltr",this.resizeDirections=c.RESIZE_DIRECTIONS,this.subscribeEvents()}return Object.defineProperty(e.prototype,"draggable",{get:function(){return this.options.draggable},set:function(e){this.options.draggable=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this.options.resizable},set:function(e){this.options.resizable=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this.options.state},set:function(e){this.options.state=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.options.minWidth},set:function(e){this.setOption("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.options.minHeight},set:function(e){this.setOption("minHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.options.width},set:function(e){this.setOption("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.options.height},set:function(e){this.setOption("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.options.top},set:function(e){this.setOption("top",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.options.left},set:function(e){this.setOption("left",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setNextZIndex(),this.setInitialOffset()},e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)},e.prototype.ngOnChanges=function(e){var t=this;if(p.OFFSET_STYLES.forEach(function(n){p.isChanged(n,e)&&t.updateOffset(n,t.options[n])}),p.isChanged("draggable",e)){var n=p.isPresent(this.titleBarContent)?this.titleBarContent:this.titleBarView;p.isTruthy(e.draggable.currentValue)?n.subscribeDrag():n.unsubscribeDrag()}},e.prototype.ngOnDestroy=function(){this.windowSubscription&&this.windowSubscription.unsubscribe()},Object.defineProperty(e.prototype,"showDefaultTitleBar",{get:function(){return!p.isPresent(this.titleBarContent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"windowClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styleMinWidth",{get:function(){return this.minWidth+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styleMinHeight",{get:function(){return this.minHeight+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stylePosition",{get:function(){return this.options.position},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperMaximizedClass",{get:function(){return"maximized"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperFocusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),e.prototype.onComponentKeydown=function(e){p.hasClasses(e.target,p.WINDOW_CLASSES)&&this.navigation.process(e)},e.prototype.onComponentFocus=function(){this.focused=!0,this.setNextZIndex()},e.prototype.onComponentBlur=function(){this.focused=!1},e.prototype.subscribeEvents=function(){var e=this;c.isDocumentAvailable()&&(this.windowSubscription.add(this.service.focus.subscribe(function(){e.el.nativeElement.focus()})),this.windowSubscription.add(this.service.dragStart.subscribe(function(){e.draged=!0,e.ngZone.run(function(){e.dragStart.emit()})})),this.windowSubscription.add(this.service.dragEnd.subscribe(function(){e.draged&&(e.draged=!1,e.ngZone.run(function(){e.dragEnd.emit()}))})),this.windowSubscription.add(this.service.close.subscribe(function(){e.close.emit()})),this.windowSubscription.add(this.service.resizeStart.subscribe(function(){e.resized=!0,e.ngZone.run(function(){e.resizeStart.emit()})})),this.windowSubscription.add(this.service.resizeEnd.subscribe(function(){e.resized&&(e.resized=!1,e.ngZone.run(function(){e.resizeEnd.emit()}))})),this.windowSubscription.add(this.service.change.subscribe(function(t){p.OFFSET_STYLES.forEach(function(n){if(p.isPresent(t[n])&&(e.updateOffset(n,t[n]),"maximized"!==e.state)){var i=e[n+"Change"];i.observers.length&&e.ngZone.run(function(){i.emit(t[n])})}})})),this.windowSubscription.add(this.service.stateChange.subscribe(function(t){e.updateAllOffset(),e.stateChange.emit(t)})))},e.prototype.setNextZIndex=function(){this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)},e.prototype.setInitialOffset=function(){"maximized"!==this.state&&this.updateAllOffset(),p.isPresent(this.left)||p.isPresent(this.top)||"maximized"===this.state||this.service.center()},e.prototype.updateAllOffset=function(){var e=this;p.OFFSET_STYLES.forEach(function(t){p.isPresent(e[t])&&e.updateOffset(t,e[t])})},e.prototype.updateOffset=function(e,t){this.renderer.setStyle(this.el.nativeElement,e,t+"px")},Object.defineProperty(e.prototype,"options",{get:function(){return this.service.options},enumerable:!0,configurable:!0}),e.prototype.setOption=function(e,t){if("number"==typeof t)this.options[e]=t;else{if("string"!=typeof t)throw new Error("Invalid type used for "+e);this.options[e]=parseInt(t,10)}},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"draggable",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"resizable",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"keepContent",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"state",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"minWidth",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"minHeight",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"width",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"height",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"top",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"left",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"dragStart",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"dragEnd",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"resizeStart",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"resizeEnd",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"widthChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"heightChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"topChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"leftChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"stateChange",void 0),i.__decorate([o.HostBinding("attr.tabIndex"),i.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),i.__decorate([o.HostBinding("class.k-widget"),o.HostBinding("class.k-window"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hostClasses",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([o.ViewChild(u.WindowTitleBarComponent),i.__metadata("design:type",u.WindowTitleBarComponent)],e.prototype,"titleBarView",void 0),i.__decorate([o.ContentChild(u.WindowTitleBarComponent),i.__metadata("design:type",u.WindowTitleBarComponent)],e.prototype,"titleBarContent",void 0),i.__decorate([o.ViewChildren(l.ResizeHandleDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"resizeHandles",void 0),i.__decorate([o.HostBinding("class.k-window-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"windowClasses",null),i.__decorate([o.HostBinding("style.minWidth"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"styleMinWidth",null),i.__decorate([o.HostBinding("style.minHeight"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"styleMinHeight",null),i.__decorate([o.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"stylePosition",null),i.__decorate([o.HostBinding("class.k-window-maximized"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperMaximizedClass",null),i.__decorate([o.HostBinding("class.k-state-focused"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperFocusedClass",null),i.__decorate([o.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[KeyboardEvent]),i.__metadata("design:returntype",void 0)],e.prototype,"onComponentKeydown",null),i.__decorate([o.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onComponentFocus",null),i.__decorate([o.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onComponentBlur",null),e=i.__decorate([o.Component({exportAs:"kendoWindow",providers:[d.DragResizeService,g.NavigationService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.window"}],selector:"kendo-window",template:'\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{title}}</div>\n <button kendoWindowMinimizeAction></button>\n <button kendoWindowMaximizeAction></button>\n <button kendoWindowRestoreAction></button>\n <button kendoWindowCloseAction></button>\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 <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 kendoWindowDraggable>\n </div>\n </ng-template>\n '}),i.__param(5,o.Optional()),i.__param(5,o.Inject(r.RTL)),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,d.DragResizeService,g.NavigationService,o.NgZone,Boolean])],e)}();t.WindowComponent=m},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(19),a=n(21),s=n(22),d=n(23),p=n(10),c=n(7),l=n(24),u=10002,g={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},m=function(e,t){return function(n){return e.kendo.drag.pipe(p.takeUntil(e.kendo.release.pipe(a.tap(function(){t.emit()}))),s.map(function(e){var t=e.pageX,i=e.pageY;return{originalX:n.pageX,originalY:n.pageY,pageX:t,pageY:i}}))}},f=function(){function e(e){this.ngZone=e,this.close=new o.EventEmitter,this.focus=new o.EventEmitter,this.change=new o.EventEmitter,this.stateChange=new o.EventEmitter,this.dragStart=new o.EventEmitter,this.dragEnd=new o.EventEmitter,this.resizeStart=new o.EventEmitter,this.resizeEnd=new o.EventEmitter,this.options=Object.assign({},g),this.subscriptions=new r.Subscription,this.dragSubscription=new r.Subscription}return e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()},e.prototype.init=function(e){this.window=e,"minimized"===this.options.state&&(this.restoreOptions=Object.assign({},this.options),this.options.height=0,this.options.minHeight=0)},e.prototype.onDrag=function(e){var t=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var n,i;t.dragSubscription=e.kendo.press.pipe(a.tap(function(e){"touchstart"!==e.type&&c.preventDefault(e),t.focus.emit(),n=t.currentPosition(),i=!1}),d.switchMap(c.preventOnDblClick(e.kendo.release)),d.switchMap(m(e,t.dragEnd))).subscribe(function(e){var o=e.pageX,r=e.pageY,a=e.originalX,s=e.originalY;i||(t.dragStart.emit(),i=!0),t.handleDrag({originalX:a,originalY:s,pageX:o,pageY:r,startPosition:n})})}))},e.prototype.handleDrag=function(e){var t=e.originalX,n=e.originalY,i=e.pageX,o=e.pageY,r=e.startPosition;this.options.left=r.x+i-t,this.options.top=r.y+o-n,"minimized"===this.options.state&&c.isPresent(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:r.x+i-t,top:r.y+o-n})},e.prototype.onResize=function(e,t){var n=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var i,o=!1;e.kendo.press.pipe(a.tap(function(e){c.preventDefault(e),n.focus.emit(),i=n.currentOffsetAndPosition(),o=!1}),d.switchMap(c.preventOnDblClick(e.kendo.release)),d.switchMap(m(e,n.resizeEnd))).subscribe(function(e){var r=e.pageX,a=e.pageY,s=e.originalX,d=e.originalY;o||(n.resizeStart.emit(t),o=!0);var p=r-s,c=a-d;n.handleResize(i,t,p,c)})}))},e.prototype.handleResize=function(e,t,n,i){var o=this,r=this.options,a={};t.indexOf("e")>=0&&((p=e.width+n)!==r.width&&p>=r.minWidth&&(a.width=p));if(t.indexOf("n")>=0){var s=e.height-i,d=e.y+i;s!==r.height&&s>=r.minHeight&&d!==r.top&&(a.height=s,a.top=d)}t.indexOf("s")>=0&&((s=e.height+i)!==r.height&&s>=r.minHeight&&(a.height=s));if(t.indexOf("w")>=0){var p,l=e.x+n;(p=e.width-n)!==r.width&&p>=r.minWidth&&l!==r.left&&(a.width=p,a.left=l)}(c.isPresent(a.width)||c.isPresent(a.height))&&(c.OFFSET_STYLES.forEach(function(e){c.isPresent(a[e])&&(o.options[e]=a[e])}),this.change.emit(a))},e.prototype.restoreAction=function(){c.isPresent(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")},e.prototype.storeOptions=function(){if(this.restoreOptions=Object.assign({},this.options),!c.isPresent(this.options.width)||!c.isPresent(this.options.height)){var e=l.offset(this.window.nativeElement);this.restoreOptions.width=e.width,this.restoreOptions.height=e.height}},e.prototype.maximizeAction=function(){if("maximized"!==this.options.state){this.storeOptions();var e=l.getWindowViewPort(this.window.nativeElement);this.options=Object.assign({},this.options,{height:e.height,left:0,position:"fixed",state:"maximized",top:0,width:e.width}),this.stateChange.emit("maximized")}},e.prototype.minimizeAction=function(){"minimized"!==this.options.state&&(this.storeOptions(),this.options=Object.assign({},this.options,{height:0,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized"))},e.prototype.closeAction=function(){this.close.emit()},e.prototype.center=function(){if("maximized"!==this.options.state){var e=l.scrollPosition(this.window.nativeElement),t=l.getWindowViewPort(this.window.nativeElement),n=l.offset(this.window.nativeElement);this.options.left=e.x+Math.max(0,(t.width-n.width)/2),this.options.top=e.y+Math.max(0,(t.height-n.height)/2),this.change.emit({left:this.options.left,top:this.options.top})}},e.prototype.currentOffsetAndPosition=function(){var e=this.options,t=l.offset(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:e.height?e.height:t.height,width:e.width?e.width:t.width})},e.prototype.currentPosition=function(){var e=this.options;return e.top&&e.left||this.setPosition(),{x:this.options.left,y:this.options.top}},e.prototype.setPosition=function(){var e=l.positionWithScroll(this.window.nativeElement,l.getDocumentElement(this.window.nativeElement));this.options.left=e.left,this.options.top=e.top},Object.defineProperty(e.prototype,"nextZIndex",{get:function(){return u++},enumerable:!0,configurable:!0}),e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone])],e)}();t.DragResizeService=f},function(e,t){e.exports=g},function(e,t){e.exports=m},function(e,t){e.exports=f},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(26),a=n(20),s=n(19),d=n(8),p=n(14),c=function(){function e(e,t,n,i){this.draggable=e,this.el=t,this.renderer=n,this.service=i,this.subscriptions=new s.Subscription}return Object.defineProperty(e.prototype,"hostClass",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(d.of(this.draggable).subscribe(function(t){e.service.onResize(t,e.direction)})),this.subscriptions.add(this.service.resizeStart.subscribe(function(t){t!==e.direction&&e.setDisplay("none")})),this.subscriptions.add(this.service.dragStart.subscribe(function(){e.setDisplay("none")})),this.subscriptions.add(p.merge(this.service.resizeEnd,this.service.dragEnd).subscribe(function(){e.setDisplay("block")})),this.subscriptions.add(this.service.stateChange.subscribe(function(t){e.setDisplay("default"===t?"block":"none")}))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisplay=function(e){void 0===e&&(e="block"),this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?e:"none")},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-resize-handle"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hostClass",null),e=i.__decorate([o.Directive({selector:"[kendoWindowResizeHandle]"}),i.__param(0,o.Host()),i.__metadata("design:paramtypes",[r.DraggableDirective,o.ElementRef,o.Renderer2,a.DragResizeService])],e)}();t.ResizeHandleDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(27),a=function(){function e(e,t){this.elem=e,this.ngZone=t,this.kendo={drag:new o.EventEmitter,press:new o.EventEmitter,release:new o.EventEmitter}}return e.prototype.ngOnInit=function(){var e=this;"undefined"!=typeof document&&(this.draggable=new r.default({drag:function(t){return e.kendo.drag.next(t)},press:function(t){return e.kendo.press.next(t)},release:function(t){return e.kendo.release.next(t)}}),this.ngZone.runOutsideAngular(function(){return e.draggable.bindTo(e.elem.nativeElement)}))},e.prototype.ngOnDestroy=function(){"undefined"!=typeof document&&this.draggable.destroy()},Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this.elem.nativeElement},enumerable:!0,configurable:!0}),e=i.__decorate([o.Directive({outputs:["kendo.press","kendo.drag","kendo.release"],selector:"[kendoWindowDraggable]"}),i.__metadata("design:paramtypes",[o.ElementRef,o.NgZone])],e)}();t.DraggableDirective=a},function(e,t){e.exports=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(26),a=n(20),s=n(19),d=n(8),p=n(7),c=function(){function e(e,t,n){this.el=e,this.ngZone=n,this.dragSubscription=new s.Subscription,this.service=t}return e.prototype.ngOnInit=function(){this.dragDirective=new r.DraggableDirective(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.service.options.draggable&&this.subscribeDrag()},e.prototype.ngOnDestroy=function(){this.dragDirective.ngOnDestroy(),this.dragSubscription&&this.unsubscribeDrag()},e.prototype.subscribeDrag=function(){var e=this;this.dragSubscription=d.of(this.dragDirective).subscribe(function(t){e.service.onDrag(t)})},e.prototype.unsubscribeDrag=function(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)},Object.defineProperty(e.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.handle=function(e){var t=e.target,n=this.service.options.state;p.hasClasses(t,"k-icon")||p.isFocusable(t,!1)||!this.service.options.resizable||("default"===n?this.service.maximizeAction():"maximized"===n&&this.service.restoreAction())},i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"template",void 0),i.__decorate([o.HostBinding("class.k-window-titlebar"),o.HostBinding("class.k-dialog-titlebar"),o.HostBinding("class.k-header"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"className",null),i.__decorate([o.HostListener("dblclick",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[MouseEvent]),i.__metadata("design:returntype",void 0)],e.prototype,"handle",null),e=i.__decorate([o.Component({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 '}),i.__metadata("design:paramtypes",[o.ElementRef,a.DragResizeService,o.NgZone])],e)}();t.WindowTitleBarComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(20),a=n(7),s=function(){function e(e){this.window=e}return e.prototype.process=function(e){var t=e.keyCode;switch(t){case a.Keys.up:case a.Keys.down:case a.Keys.left:case a.Keys.right:e.preventDefault(),this.handleArrow(t,e);break;case a.Keys.esc:this.handleEscape()}},e.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)},e.prototype.handleEscape=function(){this.window.closeAction()},e.prototype.handleDrag=function(e){var t=this.window.currentOffsetAndPosition(),n=this.window.options,i=this.window.restoreOptions,o={},r=10;switch(e!==a.Keys.left&&e!==a.Keys.up||(r*=-1),e){case a.Keys.left:case a.Keys.right:o.left=t.x+r,n.left=o.left;break;case a.Keys.up:case a.Keys.down:o.top=t.y+r,n.top=o.top}"minimized"===n.state&&a.isPresent(i)&&(i.left=n.left,i.top=n.top),this.window.change.emit(o)},e.prototype.handleResize=function(e){var t,n,i=this,o=this.window.options,r=this.window.currentOffsetAndPosition(),s={},d=10;switch(e!==a.Keys.left&&e!==a.Keys.up||(d*=-1),e){case a.Keys.left:case a.Keys.right:(t=r.width+d)!==o.width&&t>=o.minWidth&&(s.width=t);break;case a.Keys.up:case a.Keys.down:(n=r.height+d)!==o.height&&n>=o.minHeight&&(s.height=n)}(a.isPresent(s.width)||a.isPresent(s.height))&&(a.OFFSET_STYLES.forEach(function(e){a.isPresent(s[e])&&(i.window.options[e]=s[e])}),this.window.change.emit(s))},e.prototype.handleStateChange=function(e,t){"minimized"===t&&e===a.Keys.up||"maximized"===t&&e===a.Keys.down?this.window.restoreAction():"default"===t&&(e===a.Keys.up?this.window.maximizeAction():e===a.Keys.down&&this.window.minimizeAction())},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.DragResizeService])],e)}();t.NavigationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(20),a=n(31),s=n(5),d=function(e){function t(t,n,i,o){var r=e.call(this,t,n,null,o)||this;return r.window=i,r.look="bare",r.icon="window-maximize",r}return i.__extends(t,e),t.prototype.onClick=function(){this.window.maximizeAction()},Object.defineProperty(t.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"window",void 0),i.__decorate([o.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],t.prototype,"onClick",null),i.__decorate([o.HostBinding("style.display"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"visible",null),t=i.__decorate([o.Directive({exportAs:"kendoWindowMaximizeAction",selector:"button[kendoWindowMaximizeAction]"}),i.__param(2,o.Optional()),i.__param(3,o.Optional()),i.__param(3,o.Inject(s.RTL)),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,Boolean])],t)}(a.Button);t.WindowMaximizeActionDirective=d},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(20),a=n(31),s=n(5),d=function(e){function t(t,n,i,o){var r=e.call(this,t,n,null,o)||this;return r.window=i,r.look="bare",r.icon="window-minimize",r}return i.__extends(t,e),t.prototype.onClick=function(){this.window.minimizeAction()},Object.defineProperty(t.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"window",void 0),i.__decorate([o.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],t.prototype,"onClick",null),i.__decorate([o.HostBinding("style.display"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"visible",null),t=i.__decorate([o.Directive({exportAs:"kendoWindowMinimizeAction",selector:"button[kendoWindowMinimizeAction]"}),i.__param(2,o.Optional()),i.__param(3,o.Optional()),i.__param(3,o.Inject(s.RTL)),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,Boolean])],t)}(a.Button);t.WindowMinimizeActionDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(31),a=n(5),s=n(20),d=function(e){function t(t,n,i,o){var r=e.call(this,t,n,null,o)||this;return r.window=i,r.look="bare",r.icon="close",r}return i.__extends(t,e),t.prototype.onClick=function(){this.window.closeAction()},i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"window",void 0),i.__decorate([o.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],t.prototype,"onClick",null),t=i.__decorate([o.Directive({exportAs:"kendoWindowCloseAction",selector:"button[kendoWindowCloseAction]"}),i.__param(2,o.Optional()),i.__param(3,o.Optional()),i.__param(3,o.Inject(a.RTL)),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,s.DragResizeService,Boolean])],t)}(r.Button);t.WindowCloseActionDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(20),a=n(31),s=n(5),d=function(e){function t(t,n,i,o){var r=e.call(this,t,n,null,o)||this;return r.window=i,r.look="bare",r.icon="window-restore",r}return i.__extends(t,e),t.prototype.onClick=function(){this.window.restoreAction()},Object.defineProperty(t.prototype,"visible",{get:function(){return"default"===this.window.options.state?"none":"inline-flex"},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"window",void 0),i.__decorate([o.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],t.prototype,"onClick",null),i.__decorate([o.HostBinding("style.display"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"visible",null),t=i.__decorate([o.Directive({exportAs:"kendoWindowRestoreAction",selector:"button[kendoWindowRestoreAction]"}),i.__param(2,o.Optional()),i.__param(3,o.Optional()),i.__param(3,o.Inject(s.RTL)),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,Boolean])],t)}(a.Button);t.WindowRestoreActionDirective=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.WindowSettings=n;var i=function(){};t.WindowCloseResult=i;var o=function(){};t.WindowRef=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(37),a=n(35),s=n(18),d=n(7),p=n(13),c=n(14),l=n(15),u=function(){function e(e,t){this.getWindowRef=e,this.parentInjector=t}return e.prototype.get=function(e,t){return e===a.WindowRef?this.getWindowRef():this.parentInjector.get(e,t)},e}(),g=function(){function e(e,t){this.resolver=e,this.containerService=t}return e.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(s.WindowComponent),n=e.appendTo||this.containerService.container;if(!n)throw new Error("Cannot attach window to the page.\n Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.");var i={close:function(){},content:null,result:null,window:null},o=this.contentFrom(e.content,n,i),r=n.createComponent(t,void 0,void 0,o.nodes);i.window=r,this.applyOptions(r.instance,e);var d=new p.Subject,u=function(e){d.next(e||new a.WindowCloseResult),o.componentRef&&o.componentRef.destroy(),r.destroy()},g=c.merge(d,r.instance.close).pipe(l.take(1));return g.subscribe(u),i.close=u,i.result=g,i},e.prototype.applyOptions=function(e,t){d.isPresent(t.title)&&(e.title=t.title),d.isPresent(t.keepContent)&&(e.keepContent=t.keepContent),d.isPresent(t.width)&&(e.width=t.width),d.isPresent(t.minWidth)&&(e.minWidth=t.minWidth),d.isPresent(t.height)&&(e.height=t.height),d.isPresent(t.minHeight)&&(e.minHeight=t.minHeight),d.isPresent(t.left)&&(e.left=t.left),d.isPresent(t.top)&&(e.top=t.top),d.isPresent(t.draggable)&&(e.draggable=t.draggable),d.isPresent(t.resizable)&&(e.resizable=t.resizable),d.isPresent(t.state)&&(e.state=t.state,"minimized"===t.state&&(e.keepContent=!0)),t.content instanceof o.TemplateRef&&(e.contentTemplate=t.content),t.titleBarContent instanceof o.TemplateRef&&(e.titleBarTemplate=t.titleBarContent)},e.prototype.contentFrom=function(e,t,n){var i=t.injector.get(o.Renderer2),r=[],a=null;if("string"==typeof e)r=[i.createText(e)];else if(e&&!(e instanceof o.TemplateRef)){var s=new u(function(){return n},t.injector),d=this.resolver.resolveComponentFactory(e);r=[(a=t.createComponent(d,void 0,s)).location.nativeElement],n.content=a}return{componentRef:a,nodes:[[],r]}},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.ComponentFactoryResolver,r.WindowContainerService])],e)}();t.WindowService=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){}return t=e,Object.defineProperty(e.prototype,"container",{get:function(){return t.container},set:function(e){t.container=e},enumerable:!0,configurable:!0}),e=t=i.__decorate([o.Injectable()],e);var t}();t.WindowContainerService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),a=n(11),s=n(12),d=n(39),p=n(16),c=n(40);t.DIALOG_DIRECTIVES=[r.DialogComponent,a.DialogTitleBarComponent];var l=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[t.DIALOG_DIRECTIVES,d.DialogContainerDirective],entryComponents:[t.DIALOG_DIRECTIVES],exports:[t.DIALOG_DIRECTIVES,c.SHARED_DIRECTIVES,d.DialogContainerDirective],imports:[c.SharedModule],providers:[p.DialogContainerService,s.DialogService]})],e)}();t.DialogModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(16),a=function(){function e(e,t){t.container=e}return e=i.__decorate([o.Directive({selector:"[kendoDialogContainer]"}),i.__metadata("design:paramtypes",[o.ViewContainerRef,r.DialogContainerService])],e)}();t.DialogContainerDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(41),a=n(6);t.SHARED_DIRECTIVES=[a.DialogActionsComponent];var s=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES,r.CommonModule],imports:[r.CommonModule]})],e)}();t.SharedModule=s},function(e,t){e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(18),a=n(28),s=n(26),d=n(25),p=n(30),c=n(32),l=n(33),u=n(34),g=n(36),m=n(37),f=n(43),h=n(40),_=[s.DraggableDirective,d.ResizeHandleDirective,r.WindowComponent,a.WindowTitleBarComponent,l.WindowCloseActionDirective,c.WindowMinimizeActionDirective,p.WindowMaximizeActionDirective,u.WindowRestoreActionDirective],y=[r.WindowComponent,a.WindowTitleBarComponent],v=[r.WindowComponent,l.WindowCloseActionDirective,c.WindowMinimizeActionDirective,p.WindowMaximizeActionDirective,u.WindowRestoreActionDirective,a.WindowTitleBarComponent],b=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[_,f.WindowContainerDirective],entryComponents:[y],exports:[v,h.SHARED_DIRECTIVES,f.WindowContainerDirective],imports:[h.SharedModule],providers:[m.WindowContainerService,g.WindowService]})],e)}();t.WindowModule=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(37),a=function(){function e(e,t){t.container=e}return e=i.__decorate([o.Directive({selector:"[kendoWindowContainer]"}),i.__metadata("design:paramtypes",[o.ViewContainerRef,r.WindowContainerService])],e)}();t.WindowContainerDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(38),a=n(42),s=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[r.DialogModule,a.WindowModule]})],e)}();t.DialogsModule=s}])}}}); | ||
System.register("@progress/kendo-angular-dialog",["tslib","@angular/core","@angular/animations","@progress/kendo-angular-l10n","rxjs/Subject","rxjs/observable/merge","rxjs/operators/take","rxjs/Subscription","rxjs/observable/of","@progress/kendo-angular-buttons","rxjs/operators/delay","rxjs/operators/takeUntil","rxjs/operators/tap","rxjs/operators/switchMap","rxjs/operators/map","@progress/kendo-popup-common","@telerik/kendo-draggable","@angular/common"],function(v){var n,i,o,r,a,s,d,c,p,l,u,g,m,f,h,_,y,b;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){i=t(e)},function(e){o=t(e)},function(e){r=t(e)},function(e){a=t(e)},function(e){s=t(e)},function(e){d=t(e)},function(e){c=t(e)},function(e){p=t(e)},function(e){l=t(e)},function(e){u=t(e)},function(e){g=t(e)},function(e){m=t(e)},function(e){f=t(e)},function(e){h=t(e)},function(e){_=t(e)},function(e){y=t(e)},function(e){b=t(e)}],execute:function(){!function(n){var i={};function o(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}o.m=n,o.c=i,o.p="",o(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.DialogComponent=i.DialogComponent;var o=n(7);t.DialogTitleBarComponent=o.DialogTitleBarComponent;var r=n(6);t.DialogActionsComponent=r.DialogActionsComponent;var a=n(12);t.DialogService=a.DialogService;var s=n(17);t.DialogCloseResult=s.DialogCloseResult,t.DialogRef=s.DialogRef,t.DialogSettings=s.DialogSettings,t.DialogAction=s.DialogAction;var d=n(18);t.WindowComponent=d.WindowComponent;var c=n(28);t.WindowTitleBarComponent=c.WindowTitleBarComponent;var p=n(30);t.WindowMaximizeActionDirective=p.WindowMaximizeActionDirective;var l=n(32);t.WindowMinimizeActionDirective=l.WindowMinimizeActionDirective;var u=n(33);t.WindowCloseActionDirective=u.WindowCloseActionDirective;var g=n(34);t.WindowRestoreActionDirective=g.WindowRestoreActionDirective;var m=n(35);t.WindowSettings=m.WindowSettings,t.WindowRef=m.WindowRef,t.WindowCloseResult=m.WindowCloseResult;var f=n(36);t.WindowService=f.WindowService;var h=n(38);t.DialogModule=h.DialogModule;var _=n(42);t.WindowModule=_.WindowModule;var y=n(44);t.DialogsModule=y.DialogsModule,function(e){for(var t in e)v(t,e[t])}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),a=n(5),s=n(6),d=n(7),c=n(8),p=function(){function e(e,t,n){this._elRef=e,this._renderer=t,this.action=new o.EventEmitter,this.close=new o.EventEmitter,this.tabIndex=0,this.subscriptions=[],this.direction=n?"rtl":"ltr"}return Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.onComponentKeydown=function(e){var t=e.target;if((c.hasClasses(t,c.DIALOG_CLASSES)||c.hasClasses(t.parentElement,c.DIALOG_CLASSES))&&e.keyCode===c.Keys.esc&&this.close.emit(),e.keyCode===c.Keys.tab){var n=this._elRef.nativeElement,i=this.getLastFocusableElement(),o=t===n&&e.shiftKey,r=!e.shiftKey&&c.isPresent(i)&&t===i,a=!c.isPresent(i)&&!e.shiftKey;(o||a)&&(e.preventDefault(),n.focus()),r&&(e.preventDefault(),i.focus())}},e.prototype.ngAfterContentInit=function(){this.bubble("close",this.titlebarContent)},e.prototype.ngAfterViewInit=function(){this.handleInitialFocus(),this.bubble("close",this.titlebarView),this.bubble("action",this.actionsView)},e.prototype.ngOnInit=function(){this._renderer.removeAttribute(this._elRef.nativeElement,"title")},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[]},e.prototype.handleInitialFocus=function(){var e=this._elRef.nativeElement,t=e.querySelector(".k-primary");c.isPresent(t)?t.focus():e.focus()},e.prototype.getLastFocusableElement=function(){var e=this._elRef.nativeElement.querySelectorAll(c.focusableSelector);return 0<e.length?e[e.length-1]:null},Object.defineProperty(e.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styles",{get:function(){var e={};return this.width&&(e.width=this.width+"px"),this.height&&(e.height=this.height+"px"),this.minWidth&&(e.minWidth=this.minWidth+"px"),e},enumerable:!0,configurable:!0}),e.prototype.bubble=function(t,e){var n=this;if(e){var i=e[t].subscribe(function(e){return n[t].emit(e)});this.subscriptions.push(i)}},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"actions",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"minWidth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"action",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([o.HostBinding("attr.tabIndex"),i.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),i.__decorate([o.ContentChild(d.DialogTitleBarComponent),i.__metadata("design:type",d.DialogTitleBarComponent)],e.prototype,"titlebarContent",void 0),i.__decorate([o.ViewChild(d.DialogTitleBarComponent),i.__metadata("design:type",d.DialogTitleBarComponent)],e.prototype,"titlebarView",void 0),i.__decorate([o.ViewChild(s.DialogActionsComponent),i.__metadata("design:type",s.DialogActionsComponent)],e.prototype,"actionsView",void 0),i.__decorate([o.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[KeyboardEvent]),i.__metadata("design:returntype",void 0)],e.prototype,"onComponentKeydown",null),i.__decorate([o.HostBinding("class.k-dialog-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperClass",null),e=i.__decorate([o.Component({animations:[r.trigger("overlayAppear",[r.state("in",r.style({opacity:1})),r.transition("void => *",[r.style({opacity:.1}),r.animate(".3s cubic-bezier(.2, .6, .4, 1)")])]),r.trigger("dialogSlideInAppear",[r.state("in",r.style({transform:"translate(0, 0)"})),r.transition("void => *",[r.style({transform:"translate(0, -10%)"}),r.animate(".3s cubic-bezier(.2, 1, .2, 1)")])])],exportAs:"kendoDialog",selector:"kendo-dialog",template:'\n <div class="k-overlay" @overlayAppear></div>\n\n <div\n class="k-widget k-window k-dialog"\n role="dialog"\n [attr.aria-labelledby]="title ? title : null"\n [ngStyle]="styles"\n @dialogSlideInAppear\n >\n <kendo-dialog-titlebar *ngIf="title">{{title}}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div 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 [actions]="actions" *ngIf="actions"></kendo-dialog-actions>\n\n </div>\n '}),i.__param(2,o.Optional()),i.__param(2,o.Inject(a.RTL)),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,Boolean])],e)}();t.DialogComponent=p},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.el=e,this.action=new o.EventEmitter}return Object.defineProperty(e.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.actionTemplate=function(){return this.actions instanceof o.TemplateRef},e.prototype.onButtonClick=function(e,t){this.action.emit(e)},e.prototype.buttonClass=function(e){var t=["k-button"];return e.primary&&t.push("k-primary"),t.join(" ")},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"actions",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"action",void 0),i.__decorate([o.HostBinding("class.k-button-group"),o.HostBinding("class.k-dialog-buttongroup"),o.HostBinding("class.k-dialog-button-layout-stretched"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"className",null),e=i.__decorate([o.Component({selector:"kendo-dialog-actions",template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="!actionTemplate()">\n <button\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n *ngFor="let action of actions">\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template [ngTemplateOutlet]="actions" *ngIf="actionTemplate()"></ng-template>\n '}),i.__metadata("design:paramtypes",[o.ElementRef])],e)}();t.DialogActionsComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){this.close=new o.EventEmitter}return Object.defineProperty(e.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.onCloseClick=function(e){e.preventDefault(),this.close.emit()},i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),i.__decorate([o.HostBinding("class.k-window-titlebar"),o.HostBinding("class.k-dialog-titlebar"),o.HostBinding("class.k-header"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"className",null),e=i.__decorate([o.Component({selector:"kendo-dialog-titlebar",template:'\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n <div class="k-window-actions k-dialog-actions">\n <a href="#" role="button"\n aria-label="Close"\n class="k-button k-bare k-button-icon k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)">\n <span class="k-icon k-i-x"></span>\n </a>\n </div>\n '})],e)}();t.DialogTitleBarComponent=r},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(9),i=t(10),o=t(11);r.isPresent=function(e){return null!=e},r.isTruthy=function(e){return!!e};var a,s=function(e){return String(e).trim().split(" ")},d=/^(?:a|input|select|textarea|button|object)$/i;(a=r.Keys||(r.Keys={}))[a.esc=27]="esc",a[a.tab=9]="tab",a[a.enter=13]="enter",a[a.space=32]="space",a[a.ctrl=17]="ctrl",a[a.shift=16]="shift",a[a.left=37]="left",a[a.up=38]="up",a[a.right=39]="right",a[a.down=40]="down",r.DIALOG_CLASSES="k-dialog-wrapper k-dialog-buttongroup",r.WINDOW_CLASSES="k-window-wrapper",r.hasClasses=function(e,t){var n=s(t);return Boolean(s(e.className).find(function(e){return 0<=n.indexOf(e)}))},r.isVisible=function(e){var t=e.getBoundingClientRect();return!(!t.width||!t.height)&&"hidden"!==window.getComputedStyle(e).visibility},r.isFocusable=function(e,t){if(void 0===t&&(t=!0),e.tagName){var n=e.tagName.toLowerCase(),i=e.getAttribute("tabIndex"),o=null!==i&&!isNaN(i)&&-1<i;return(d.test(n)?!e.disabled:o)&&(!t||r.isVisible(e))}return!1},r.focusableSelector=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),r.isChanged=function(e,t,n){return void 0===n&&(n=!0),t[e]&&(!t[e].isFirstChange()||!n)&&t[e].previousValue!==t[e].currentValue},r.preventDefault=function(e){var t=e.originalEvent;t.stopPropagation(),t.preventDefault()},r.isDocumentAvailable=function(){return"undefined"!=typeof document&&!!document.body},r.isWindowAvailable=function(){return"undefined"!=typeof window},r.preventOnDblClick=function(t){return function(e){return n.of(e).pipe(i.delay(150),o.takeUntil(t))}},r.RESIZE_DIRECTIONS=["n","e","s","w","se","sw","ne","nw"],r.OFFSET_STYLES=["top","left","width","height"]},function(e,t){e.exports=p},function(e,t){e.exports=u},function(e,t){e.exports=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),c=n(13),p=n(14),l=n(15),d=n(3),u=n(1),o=n(16),g=n(17),m=function(){function e(e,t){this.getDialogRef=e,this.parentInjector=t}return e.prototype.get=function(e,t){return e===g.DialogRef?this.getDialogRef():this.parentInjector.get(e,t)},e}(),r=function(){function e(e,t){this.resolver=e,this.containerService=t}return e.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(u.DialogComponent),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 http://www.telerik.com/kendo-angular-ui/components/dialog/service/ .\n ");var i={close:function(){},content:null,dialog:null,result:null},o=this.contentFrom(e.content,n,i),r=n.createComponent(t,void 0,void 0,o.nodes);i.dialog=r,this.applyOptions(r.instance,e);var a=new c.Subject,s=function(e){a.next(e||new g.DialogCloseResult),o.componentRef&&o.componentRef.destroy(),r.destroy()},d=p.merge(a,r.instance.close,r.instance.action).pipe(l.take(1));return d.subscribe(s),i.close=s,i.result=d,i},e.prototype.applyOptions=function(e,t){e.title=t.title,e.actions=t.actions,e.width=t.width,e.minWidth=t.minWidth,e.height=t.height,t.content instanceof d.TemplateRef&&(e.contentTemplate=t.content)},e.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=null;if("string"==typeof e)o=[i.createText(e)];else if(e&&!(e instanceof d.TemplateRef)){var a=new m(function(){return n},t.injector),s=this.resolver.resolveComponentFactory(e);o=[(r=t.createComponent(s,void 0,a)).location.nativeElement],n.content=r}return{componentRef:r,nodes:[[],o,[]]}},e=i.__decorate([d.Injectable(),i.__metadata("design:paramtypes",[d.ComponentFactoryResolver,o.DialogContainerService])],e)}();t.DialogService=r},function(e,t){e.exports=a},function(e,t){e.exports=s},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){}return t=e,Object.defineProperty(e.prototype,"container",{get:function(){return t.container},set:function(e){t.container=e},enumerable:!0,configurable:!0}),e=t=i.__decorate([o.Injectable()],e);var t}();t.DialogContainerService=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.DialogAction=n;var i=function(){};t.DialogCloseResult=i;var o=function(){};t.DialogSettings=o;var r=function(){};t.DialogRef=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(3),o=n(5),r=n(5),s=n(19),d=n(20),c=n(8),p=n(8),l=n(25),u=n(28),g=n(29),m=function(){function e(e,t,n,i,o,r){this.el=e,this.renderer=t,this.service=n,this.navigation=i,this.ngZone=o,this.keepContent=!1,this.dragStart=new a.EventEmitter,this.dragEnd=new a.EventEmitter,this.resizeStart=new a.EventEmitter,this.resizeEnd=new a.EventEmitter,this.close=new a.EventEmitter,this.widthChange=new a.EventEmitter,this.heightChange=new a.EventEmitter,this.topChange=new a.EventEmitter,this.leftChange=new a.EventEmitter,this.stateChange=new a.EventEmitter,this.tabIndex=0,this.focused=!1,this.draged=!1,this.resized=!1,this.windowSubscription=new s.Subscription,this.direction=r?"rtl":"ltr",this.resizeDirections=p.RESIZE_DIRECTIONS,this.subscribeEvents()}return Object.defineProperty(e.prototype,"draggable",{get:function(){return this.options.draggable},set:function(e){this.options.draggable=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this.options.resizable},set:function(e){this.options.resizable=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this.options.state},set:function(e){this.options.state=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.options.minWidth},set:function(e){this.setOption("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.options.minHeight},set:function(e){this.setOption("minHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.options.width},set:function(e){this.setOption("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.options.height},set:function(e){this.setOption("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.options.top},set:function(e){this.setOption("top",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.options.left},set:function(e){this.setOption("left",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setNextZIndex(),this.setInitialOffset()},e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)},e.prototype.ngOnChanges=function(t){var n=this;if(c.OFFSET_STYLES.forEach(function(e){c.isChanged(e,t)&&n.updateOffset(e,n.options[e])}),c.isChanged("draggable",t)){var e=c.isPresent(this.titleBarContent)?this.titleBarContent:this.titleBarView;c.isTruthy(t.draggable.currentValue)?e.subscribeDrag():e.unsubscribeDrag()}},e.prototype.ngOnDestroy=function(){this.windowSubscription&&this.windowSubscription.unsubscribe()},Object.defineProperty(e.prototype,"showDefaultTitleBar",{get:function(){return!c.isPresent(this.titleBarContent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"windowClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styleMinWidth",{get:function(){return this.minWidth+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styleMinHeight",{get:function(){return this.minHeight+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stylePosition",{get:function(){return this.options.position},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperMaximizedClass",{get:function(){return"maximized"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperFocusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),e.prototype.onComponentKeydown=function(e){c.hasClasses(e.target,c.WINDOW_CLASSES)&&this.navigation.process(e)},e.prototype.onComponentFocus=function(){this.focused=!0,this.setNextZIndex()},e.prototype.onComponentBlur=function(){this.focused=!1},e.prototype.subscribeEvents=function(){var i=this;p.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){c.OFFSET_STYLES.forEach(function(e){if(c.isPresent(n[e])&&(i.updateOffset(e,n[e]),"maximized"!==i.state)){var t=i[e+"Change"];t.observers.length&&i.ngZone.run(function(){t.emit(n[e])})}})})),this.windowSubscription.add(this.service.stateChange.subscribe(function(e){i.updateAllOffset(),i.stateChange.emit(e)})))},e.prototype.setNextZIndex=function(){this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)},e.prototype.setInitialOffset=function(){"maximized"!==this.state&&this.updateAllOffset(),c.isPresent(this.left)||c.isPresent(this.top)||"maximized"===this.state||this.service.center()},e.prototype.updateAllOffset=function(){var t=this;c.OFFSET_STYLES.forEach(function(e){c.isPresent(t[e])&&t.updateOffset(e,t[e])})},e.prototype.updateOffset=function(e,t){this.renderer.setStyle(this.el.nativeElement,e,t+"px")},Object.defineProperty(e.prototype,"options",{get:function(){return this.service.options},enumerable:!0,configurable:!0}),e.prototype.setOption=function(e,t){if("number"==typeof t)this.options[e]=t;else{if("string"!=typeof t)throw new Error("Invalid type used for "+e);this.options[e]=parseInt(t,10)}},i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"draggable",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"resizable",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"keepContent",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"state",null),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"minWidth",null),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"minHeight",null),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"width",null),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"height",null),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"top",null),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"left",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"dragStart",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"dragEnd",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"resizeStart",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"resizeEnd",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"widthChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"heightChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"topChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"leftChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"stateChange",void 0),i.__decorate([a.HostBinding("attr.tabIndex"),i.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),i.__decorate([a.HostBinding("class.k-widget"),a.HostBinding("class.k-window"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hostClasses",null),i.__decorate([a.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([a.ViewChild(u.WindowTitleBarComponent),i.__metadata("design:type",u.WindowTitleBarComponent)],e.prototype,"titleBarView",void 0),i.__decorate([a.ContentChild(u.WindowTitleBarComponent),i.__metadata("design:type",u.WindowTitleBarComponent)],e.prototype,"titleBarContent",void 0),i.__decorate([a.ViewChildren(l.ResizeHandleDirective),i.__metadata("design:type",a.QueryList)],e.prototype,"resizeHandles",void 0),i.__decorate([a.HostBinding("class.k-window-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"windowClasses",null),i.__decorate([a.HostBinding("style.minWidth"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"styleMinWidth",null),i.__decorate([a.HostBinding("style.minHeight"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"styleMinHeight",null),i.__decorate([a.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"stylePosition",null),i.__decorate([a.HostBinding("class.k-window-maximized"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperMaximizedClass",null),i.__decorate([a.HostBinding("class.k-state-focused"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperFocusedClass",null),i.__decorate([a.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[KeyboardEvent]),i.__metadata("design:returntype",void 0)],e.prototype,"onComponentKeydown",null),i.__decorate([a.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onComponentFocus",null),i.__decorate([a.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onComponentBlur",null),e=i.__decorate([a.Component({exportAs:"kendoWindow",providers:[d.DragResizeService,g.NavigationService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.window"}],selector:"kendo-window",template:'\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{title}}</div>\n <button kendoWindowMinimizeAction></button>\n <button kendoWindowMaximizeAction></button>\n <button kendoWindowRestoreAction></button>\n <button kendoWindowCloseAction></button>\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 <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 kendoWindowDraggable>\n </div>\n </ng-template>\n '}),i.__param(5,a.Optional()),i.__param(5,a.Inject(o.RTL)),i.__metadata("design:paramtypes",[a.ElementRef,a.Renderer2,d.DragResizeService,g.NavigationService,a.NgZone,Boolean])],e)}();t.WindowComponent=m},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(19),l=n(21),a=n(22),u=n(23),s=n(11),g=n(8),d=n(24),c=10002,p={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},m=function(e,t){return function(i){return e.kendo.drag.pipe(s.takeUntil(e.kendo.release.pipe(l.tap(function(){t.emit()}))),a.map(function(e){var t=e.pageX,n=e.pageY;return{originalX:i.pageX,originalY:i.pageY,pageX:t,pageY:n}}))}},f=function(){function e(e){this.ngZone=e,this.close=new o.EventEmitter,this.focus=new o.EventEmitter,this.change=new o.EventEmitter,this.stateChange=new o.EventEmitter,this.dragStart=new o.EventEmitter,this.dragEnd=new o.EventEmitter,this.resizeStart=new o.EventEmitter,this.resizeEnd=new o.EventEmitter,this.options=Object.assign({},p),this.subscriptions=new r.Subscription,this.dragSubscription=new r.Subscription}return e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()},e.prototype.init=function(e){this.window=e,"minimized"===this.options.state&&(this.restoreOptions=Object.assign({},this.options),this.options.height=0,this.options.minHeight=0)},e.prototype.onDrag=function(e){var s=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var r,a;s.dragSubscription=e.kendo.press.pipe(l.tap(function(e){"touchstart"!==e.type&&g.preventDefault(e),s.focus.emit(),r=s.currentPosition(),a=!1}),u.switchMap(g.preventOnDblClick(e.kendo.release)),u.switchMap(m(e,s.dragEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,o=e.originalY;a||(s.dragStart.emit(),a=!0),s.handleDrag({originalX:i,originalY:o,pageX:t,pageY:n,startPosition:r})})}))},e.prototype.handleDrag=function(e){var t=e.originalX,n=e.originalY,i=e.pageX,o=e.pageY,r=e.startPosition;this.options.left=r.x+i-t,this.options.top=r.y+o-n,"minimized"===this.options.state&&g.isPresent(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:r.x+i-t,top:r.y+o-n})},e.prototype.onResize=function(e,c){var p=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var s,d=!1;e.kendo.press.pipe(l.tap(function(e){g.preventDefault(e),p.focus.emit(),s=p.currentOffsetAndPosition(),d=!1}),u.switchMap(g.preventOnDblClick(e.kendo.release)),u.switchMap(m(e,p.resizeEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,o=e.originalY;d||(p.resizeStart.emit(c),d=!0);var r=t-i,a=n-o;p.handleResize(s,c,r,a)})}))},e.prototype.handleResize=function(e,t,n,i){var o=this,r=this.options,a={};0<=t.indexOf("e")&&((c=e.width+n)!==r.width&&c>=r.minWidth&&(a.width=c));if(0<=t.indexOf("n")){var s=e.height-i,d=e.y+i;s!==r.height&&s>=r.minHeight&&d!==r.top&&(a.height=s,a.top=d)}0<=t.indexOf("s")&&((s=e.height+i)!==r.height&&s>=r.minHeight&&(a.height=s));if(0<=t.indexOf("w")){var c,p=e.x+n;(c=e.width-n)!==r.width&&c>=r.minWidth&&p!==r.left&&(a.width=c,a.left=p)}(g.isPresent(a.width)||g.isPresent(a.height))&&(g.OFFSET_STYLES.forEach(function(e){g.isPresent(a[e])&&(o.options[e]=a[e])}),this.change.emit(a))},e.prototype.restoreAction=function(){g.isPresent(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")},e.prototype.storeOptions=function(){if(this.restoreOptions=Object.assign({},this.options),!g.isPresent(this.options.width)||!g.isPresent(this.options.height)){var e=d.offset(this.window.nativeElement);this.restoreOptions.width=e.width,this.restoreOptions.height=e.height}},e.prototype.maximizeAction=function(){if("maximized"!==this.options.state){this.storeOptions();var e=d.getWindowViewPort(this.window.nativeElement);this.options=Object.assign({},this.options,{height:e.height,left:0,position:"fixed",state:"maximized",top:0,width:e.width}),this.stateChange.emit("maximized")}},e.prototype.minimizeAction=function(){"minimized"!==this.options.state&&(this.storeOptions(),this.options=Object.assign({},this.options,{height:0,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized"))},e.prototype.closeAction=function(){this.close.emit()},e.prototype.center=function(){if("maximized"!==this.options.state){var e=d.scrollPosition(this.window.nativeElement),t=d.getWindowViewPort(this.window.nativeElement),n=d.offset(this.window.nativeElement);this.options.left=e.x+Math.max(0,(t.width-n.width)/2),this.options.top=e.y+Math.max(0,(t.height-n.height)/2),this.change.emit({left:this.options.left,top:this.options.top})}},e.prototype.currentOffsetAndPosition=function(){var e=this.options,t=d.offset(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:e.height?e.height:t.height,width:e.width?e.width:t.width})},e.prototype.currentPosition=function(){var e=this.options;return e.top&&e.left||this.setPosition(),{x:this.options.left,y:this.options.top}},e.prototype.setPosition=function(){var e=d.positionWithScroll(this.window.nativeElement,d.getDocumentElement(this.window.nativeElement));this.options.left=e.left,this.options.top=e.top},Object.defineProperty(e.prototype,"nextZIndex",{get:function(){return c++},enumerable:!0,configurable:!0}),e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone])],e)}();t.DragResizeService=f},function(e,t){e.exports=m},function(e,t){e.exports=h},function(e,t){e.exports=f},function(e,t){e.exports=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(26),a=n(20),s=n(19),d=n(9),c=n(14),p=function(){function e(e,t,n,i){this.draggable=e,this.el=t,this.renderer=n,this.service=i,this.subscriptions=new s.Subscription}return Object.defineProperty(e.prototype,"hostClass",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(d.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(c.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")}))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisplay=function(e){void 0===e&&(e="block"),this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?e:"none")},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-resize-handle"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hostClass",null),e=i.__decorate([o.Directive({selector:"[kendoWindowResizeHandle]"}),i.__param(0,o.Host()),i.__metadata("design:paramtypes",[r.DraggableDirective,o.ElementRef,o.Renderer2,a.DragResizeService])],e)}();t.ResizeHandleDirective=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(27),a=function(){function e(e,t){this.elem=e,this.ngZone=t,this.kendo={drag:new o.EventEmitter,press:new o.EventEmitter,release:new o.EventEmitter}}return e.prototype.ngOnInit=function(){var t=this;"undefined"!=typeof document&&(this.draggable=new r.default({drag:function(e){return t.kendo.drag.next(e)},press:function(e){return t.kendo.press.next(e)},release:function(e){return t.kendo.release.next(e)}}),this.ngZone.runOutsideAngular(function(){return t.draggable.bindTo(t.elem.nativeElement)}))},e.prototype.ngOnDestroy=function(){"undefined"!=typeof document&&this.draggable.destroy()},Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this.elem.nativeElement},enumerable:!0,configurable:!0}),e=i.__decorate([o.Directive({outputs:["kendo.press","kendo.drag","kendo.release"],selector:"[kendoWindowDraggable]"}),i.__metadata("design:paramtypes",[o.ElementRef,o.NgZone])],e)}();t.DraggableDirective=a},function(e,t){e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(26),a=n(20),s=n(19),d=n(9),c=n(8),p=function(){function e(e,t,n){this.el=e,this.ngZone=n,this.dragSubscription=new s.Subscription,this.service=t}return e.prototype.ngOnInit=function(){this.dragDirective=new r.DraggableDirective(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.service.options.draggable&&this.subscribeDrag()},e.prototype.ngOnDestroy=function(){this.dragDirective.ngOnDestroy(),this.dragSubscription&&this.unsubscribeDrag()},e.prototype.subscribeDrag=function(){var t=this;this.dragSubscription=d.of(this.dragDirective).subscribe(function(e){t.service.onDrag(e)})},e.prototype.unsubscribeDrag=function(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)},Object.defineProperty(e.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.handle=function(e){var t=e.target,n=this.service.options.state;c.hasClasses(t,"k-icon")||c.isFocusable(t,!1)||!this.service.options.resizable||("default"===n?this.service.maximizeAction():"maximized"===n&&this.service.restoreAction())},i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"template",void 0),i.__decorate([o.HostBinding("class.k-window-titlebar"),o.HostBinding("class.k-dialog-titlebar"),o.HostBinding("class.k-header"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"className",null),i.__decorate([o.HostListener("dblclick",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[MouseEvent]),i.__metadata("design:returntype",void 0)],e.prototype,"handle",null),e=i.__decorate([o.Component({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 '}),i.__metadata("design:paramtypes",[o.ElementRef,a.DragResizeService,o.NgZone])],e)}();t.WindowTitleBarComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(20),d=n(8),a=function(){function e(e){this.window=e}return e.prototype.process=function(e){var t=e.keyCode;switch(t){case d.Keys.up:case d.Keys.down:case d.Keys.left:case d.Keys.right:e.preventDefault(),this.handleArrow(t,e);break;case d.Keys.esc:this.handleEscape()}},e.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)},e.prototype.handleEscape=function(){this.window.closeAction()},e.prototype.handleDrag=function(e){var t=this.window.currentOffsetAndPosition(),n=this.window.options,i=this.window.restoreOptions,o={},r=10;switch(e!==d.Keys.left&&e!==d.Keys.up||(r*=-1),e){case d.Keys.left:case d.Keys.right:o.left=t.x+r,n.left=o.left;break;case d.Keys.up:case d.Keys.down:o.top=t.y+r,n.top=o.top}"minimized"===n.state&&d.isPresent(i)&&(i.left=n.left,i.top=n.top),this.window.change.emit(o)},e.prototype.handleResize=function(e){var t,n,i=this,o=this.window.options,r=this.window.currentOffsetAndPosition(),a={},s=10;switch(e!==d.Keys.left&&e!==d.Keys.up||(s*=-1),e){case d.Keys.left:case d.Keys.right:(t=r.width+s)!==o.width&&t>=o.minWidth&&(a.width=t);break;case d.Keys.up:case d.Keys.down:(n=r.height+s)!==o.height&&n>=o.minHeight&&(a.height=n)}(d.isPresent(a.width)||d.isPresent(a.height))&&(d.OFFSET_STYLES.forEach(function(e){d.isPresent(a[e])&&(i.window.options[e]=a[e])}),this.window.change.emit(a))},e.prototype.handleStateChange=function(e,t){"minimized"===t&&e===d.Keys.up||"maximized"===t&&e===d.Keys.down?this.window.restoreAction():"default"===t&&(e===d.Keys.up?this.window.maximizeAction():e===d.Keys.down&&this.window.minimizeAction())},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.DragResizeService])],e)}();t.NavigationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),a=n(20),r=n(31),s=n(5),d=function(r){function e(e,t,n,i){var o=r.call(this,e,t,null,i)||this;return o.window=n,o.look="bare",o.icon="window-maximize",o}return i.__extends(e,r),e.prototype.onClick=function(){this.window.maximizeAction()},Object.defineProperty(e.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"window",void 0),i.__decorate([o.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),i.__decorate([o.HostBinding("style.display"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"visible",null),e=i.__decorate([o.Directive({exportAs:"kendoWindowMaximizeAction",selector:"button[kendoWindowMaximizeAction]"}),i.__param(2,o.Optional()),i.__param(3,o.Optional()),i.__param(3,o.Inject(s.RTL)),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,a.DragResizeService,Boolean])],e)}(r.Button);t.WindowMaximizeActionDirective=d},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),a=n(20),r=n(31),s=n(5),d=function(r){function e(e,t,n,i){var o=r.call(this,e,t,null,i)||this;return o.window=n,o.look="bare",o.icon="window-minimize",o}return i.__extends(e,r),e.prototype.onClick=function(){this.window.minimizeAction()},Object.defineProperty(e.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"window",void 0),i.__decorate([o.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),i.__decorate([o.HostBinding("style.display"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"visible",null),e=i.__decorate([o.Directive({exportAs:"kendoWindowMinimizeAction",selector:"button[kendoWindowMinimizeAction]"}),i.__param(2,o.Optional()),i.__param(3,o.Optional()),i.__param(3,o.Inject(s.RTL)),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,a.DragResizeService,Boolean])],e)}(r.Button);t.WindowMinimizeActionDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(31),a=n(5),s=n(20),d=function(r){function e(e,t,n,i){var o=r.call(this,e,t,null,i)||this;return o.window=n,o.look="bare",o.icon="close",o}return i.__extends(e,r),e.prototype.onClick=function(){this.window.closeAction()},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"window",void 0),i.__decorate([o.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),e=i.__decorate([o.Directive({exportAs:"kendoWindowCloseAction",selector:"button[kendoWindowCloseAction]"}),i.__param(2,o.Optional()),i.__param(3,o.Optional()),i.__param(3,o.Inject(a.RTL)),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,s.DragResizeService,Boolean])],e)}(r.Button);t.WindowCloseActionDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),a=n(20),r=n(31),s=n(5),d=function(r){function e(e,t,n,i){var o=r.call(this,e,t,null,i)||this;return o.window=n,o.look="bare",o.icon="window-restore",o}return i.__extends(e,r),e.prototype.onClick=function(){this.window.restoreAction()},Object.defineProperty(e.prototype,"visible",{get:function(){return"default"===this.window.options.state?"none":"inline-flex"},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"window",void 0),i.__decorate([o.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),i.__decorate([o.HostBinding("style.display"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"visible",null),e=i.__decorate([o.Directive({exportAs:"kendoWindowRestoreAction",selector:"button[kendoWindowRestoreAction]"}),i.__param(2,o.Optional()),i.__param(3,o.Optional()),i.__param(3,o.Inject(s.RTL)),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,a.DragResizeService,Boolean])],e)}(r.Button);t.WindowRestoreActionDirective=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.WindowSettings=n;var i=function(){};t.WindowCloseResult=i;var o=function(){};t.WindowRef=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),d=n(3),o=n(37),c=n(35),p=n(18),r=n(8),l=n(13),u=n(14),g=n(15),m=function(){function e(e,t){this.getWindowRef=e,this.parentInjector=t}return e.prototype.get=function(e,t){return e===c.WindowRef?this.getWindowRef():this.parentInjector.get(e,t)},e}(),a=function(){function e(e,t){this.resolver=e,this.containerService=t}return e.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(p.WindowComponent),n=e.appendTo||this.containerService.container;if(!n)throw new Error("Cannot attach window to the page.\n Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.");var i={close:function(){},content:null,result:null,window:null},o=this.contentFrom(e.content,n,i),r=n.createComponent(t,void 0,void 0,o.nodes);i.window=r,this.applyOptions(r.instance,e);var a=new l.Subject,s=function(e){a.next(e||new c.WindowCloseResult),o.componentRef&&o.componentRef.destroy(),r.destroy()},d=u.merge(a,r.instance.close).pipe(g.take(1));return d.subscribe(s),i.close=s,i.result=d,i},e.prototype.applyOptions=function(e,t){r.isPresent(t.title)&&(e.title=t.title),r.isPresent(t.keepContent)&&(e.keepContent=t.keepContent),r.isPresent(t.width)&&(e.width=t.width),r.isPresent(t.minWidth)&&(e.minWidth=t.minWidth),r.isPresent(t.height)&&(e.height=t.height),r.isPresent(t.minHeight)&&(e.minHeight=t.minHeight),r.isPresent(t.left)&&(e.left=t.left),r.isPresent(t.top)&&(e.top=t.top),r.isPresent(t.draggable)&&(e.draggable=t.draggable),r.isPresent(t.resizable)&&(e.resizable=t.resizable),r.isPresent(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)},e.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=null;if("string"==typeof e)o=[i.createText(e)];else if(e&&!(e instanceof d.TemplateRef)){var a=new m(function(){return n},t.injector),s=this.resolver.resolveComponentFactory(e);o=[(r=t.createComponent(s,void 0,a)).location.nativeElement],n.content=r}return{componentRef:r,nodes:[[],o]}},e=i.__decorate([d.Injectable(),i.__metadata("design:paramtypes",[d.ComponentFactoryResolver,o.WindowContainerService])],e)}();t.WindowService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){}return t=e,Object.defineProperty(e.prototype,"container",{get:function(){return t.container},set:function(e){t.container=e},enumerable:!0,configurable:!0}),e=t=i.__decorate([o.Injectable()],e);var t}();t.WindowContainerService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),a=n(7),s=n(12),d=n(39),c=n(16),p=n(40);t.DIALOG_DIRECTIVES=[r.DialogComponent,a.DialogTitleBarComponent];var l=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[t.DIALOG_DIRECTIVES,d.DialogContainerDirective],entryComponents:[t.DIALOG_DIRECTIVES],exports:[t.DIALOG_DIRECTIVES,p.SHARED_DIRECTIVES,d.DialogContainerDirective],imports:[p.SharedModule],providers:[c.DialogContainerService,s.DialogService]})],e)}();t.DialogModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(16),a=function(){function e(e,t){t.container=e}return e=i.__decorate([o.Directive({selector:"[kendoDialogContainer]"}),i.__metadata("design:paramtypes",[o.ViewContainerRef,r.DialogContainerService])],e)}();t.DialogContainerDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(41),a=n(6);t.SHARED_DIRECTIVES=[a.DialogActionsComponent];var s=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES,r.CommonModule],imports:[r.CommonModule]})],e)}();t.SharedModule=s},function(e,t){e.exports=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(18),a=n(28),s=n(26),d=n(25),c=n(30),p=n(32),l=n(33),u=n(34),g=n(36),m=n(37),f=n(43),h=n(40),_=[s.DraggableDirective,d.ResizeHandleDirective,r.WindowComponent,a.WindowTitleBarComponent,l.WindowCloseActionDirective,p.WindowMinimizeActionDirective,c.WindowMaximizeActionDirective,u.WindowRestoreActionDirective],y=[r.WindowComponent,a.WindowTitleBarComponent],v=[r.WindowComponent,l.WindowCloseActionDirective,p.WindowMinimizeActionDirective,c.WindowMaximizeActionDirective,u.WindowRestoreActionDirective,a.WindowTitleBarComponent],b=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[_,f.WindowContainerDirective],entryComponents:[y],exports:[v,h.SHARED_DIRECTIVES,f.WindowContainerDirective],imports:[h.SharedModule],providers:[m.WindowContainerService,g.WindowService]})],e)}();t.WindowModule=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(37),a=function(){function e(e,t){t.container=e}return e=i.__decorate([o.Directive({selector:"[kendoWindowContainer]"}),i.__metadata("design:paramtypes",[o.ViewContainerRef,r.WindowContainerService])],e)}();t.WindowContainerDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(38),a=n(42),s=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[r.DialogModule,a.WindowModule]})],e)}();t.DialogsModule=s}])}}}); |
@@ -6,3 +6,3 @@ { | ||
"license": "SEE LICENSE in LICENSE.md", | ||
"version": "3.2.0", | ||
"version": "3.3.0-dev.201803141141", | ||
"main": "dist/npm/index.js", | ||
@@ -9,0 +9,0 @@ "module": "dist/es/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
520145
8692
3