@progress/kendo-angular-dialog 6.0.3-dev.202203091004 → 7.0.0-next.202203171702
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-dialog.umd.js +5 -0
- package/{dist/es2015/common → common}/actions-layout.d.ts +0 -0
- package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
- package/{dist/es2015/common → common}/util.d.ts +1 -1
- package/{dist/es2015/dialog → dialog}/dialog-actions.component.d.ts +14 -7
- package/{dist/es2015/dialog → dialog}/dialog-container.directive.d.ts +3 -0
- package/dialog/dialog-container.service.d.ts +16 -0
- package/{dist/es2015/dialog → dialog}/dialog-content-base.d.ts +4 -1
- package/{dist/es2015/dialog → dialog}/dialog-titlebar.component.d.ts +5 -2
- package/{dist/es2015/dialog → dialog}/dialog.component.d.ts +13 -6
- package/{dist/es2015/dialog → dialog}/dialog.service.d.ts +5 -1
- package/dialog/models/dialog-action.d.ts +28 -0
- package/dialog/models/dialog-close-result.d.ts +11 -0
- package/dialog/models/dialog-ref.d.ts +38 -0
- package/dialog/models/dialog-result.d.ts +14 -0
- package/{dist/es2015/dialog → dialog/models}/dialog-settings.d.ts +5 -73
- package/{dist/es/localization/dialog-localization.service.js → dialog/models/index.d.ts} +5 -5
- package/{dist/es2015/dialog.module.d.ts → dialog.module.d.ts} +11 -0
- package/{dist/es2015/dialogs.module.d.ts → dialogs.module.d.ts} +6 -0
- package/{dist/es2015 → esm2015}/common/actions-layout.js +1 -0
- package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
- package/{dist/es2015 → esm2015}/common/util.js +0 -5
- package/esm2015/dialog/dialog-actions.component.js +115 -0
- package/esm2015/dialog/dialog-container.directive.js +30 -0
- package/esm2015/dialog/dialog-container.service.js +23 -0
- package/{dist/es2015 → esm2015}/dialog/dialog-content-base.js +18 -10
- package/esm2015/dialog/dialog-titlebar.component.js +136 -0
- package/{dist/es2015 → esm2015}/dialog/dialog.component.js +123 -113
- package/{dist/es2015 → esm2015}/dialog/dialog.service.js +16 -15
- package/{dist/es2015/window/window-container.service.d.ts → esm2015/dialog/models/dialog-action.js} +3 -5
- package/esm2015/dialog/models/dialog-close-result.js +11 -0
- package/esm2015/dialog/models/dialog-ref.js +11 -0
- package/{dist/es/common/actions-layout.js → esm2015/dialog/models/dialog-result.js} +1 -0
- package/{dist/es2015/dialog/dialog-container.service.d.ts → esm2015/dialog/models/dialog-settings.js} +3 -5
- package/esm2015/dialog/models/index.js +9 -0
- package/{dist/es2015 → esm2015}/dialog.module.js +20 -13
- package/{dist/es → esm2015}/dialogs.module.js +12 -12
- package/esm2015/kendo-angular-dialog.js +8 -0
- package/esm2015/localization/custom-messages.component.js +41 -0
- package/{dist/es2015 → esm2015}/localization/dialog-localization.service.js +0 -0
- package/esm2015/localization/localized-messages.directive.js +40 -0
- package/esm2015/localization/messages.js +28 -0
- package/esm2015/localization/titlebar-localization.service.js +44 -0
- package/{dist/es2015 → esm2015}/main.js +8 -2
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/esm2015/shared.module.js +38 -0
- package/esm2015/window/actions/window-close-action.directive.js +59 -0
- package/esm2015/window/actions/window-maximize-action.directive.js +65 -0
- package/esm2015/window/actions/window-minimize-action.directive.js +65 -0
- package/esm2015/window/actions/window-restore-action.directive.js +65 -0
- package/{dist/es2015 → esm2015}/window/drag-resize.service.js +9 -11
- package/esm2015/window/models/index.js +10 -0
- package/esm2015/window/models/window-close-result.js +9 -0
- package/{dist/es2015/window/window-events.js → esm2015/window/models/window-messages.js} +1 -0
- package/esm2015/window/models/window-options.js +5 -0
- package/{dist/es2015/window/window-settings.js → esm2015/window/models/window-ref.js} +0 -11
- package/esm2015/window/models/window-settings.js +10 -0
- package/esm2015/window/models/window-types.js +5 -0
- package/{dist/es2015 → esm2015}/window/navigation.service.js +10 -11
- package/esm2015/window/window-container.directive.js +30 -0
- package/esm2015/window/window-container.service.js +23 -0
- package/{dist/es → esm2015}/window/window-events.js +1 -0
- package/{dist/es2015 → esm2015}/window/window-resize-handle.directive.js +21 -26
- package/{dist/es2015 → esm2015}/window/window-titlebar.component.js +35 -34
- package/{dist/es2015 → esm2015}/window/window.component.js +168 -187
- package/{dist/es2015 → esm2015}/window/window.service.js +15 -14
- package/{dist/es2015 → esm2015}/window.module.js +29 -17
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dialog.js} +1023 -926
- package/{dist/es2015/shared.module.d.ts → kendo-angular-dialog.d.ts} +3 -7
- package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/localization → localization}/dialog-localization.service.d.ts +0 -0
- package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
- package/{dist/es2015/localization → localization}/titlebar-localization.service.d.ts +3 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +7 -2
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +33 -105
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/shared.module.d.ts +21 -0
- package/{dist/es2015/window → window}/actions/window-close-action.directive.d.ts +3 -0
- package/{dist/es2015/window → window}/actions/window-maximize-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/actions/window-minimize-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/actions/window-restore-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/drag-resize.service.d.ts +8 -4
- package/window/models/index.d.ts +10 -0
- package/window/models/window-close-result.d.ts +9 -0
- package/window/models/window-messages.d.ts +26 -0
- package/window/models/window-options.d.ts +20 -0
- package/window/models/window-ref.d.ts +40 -0
- package/{dist/es2015/window → window/models}/window-settings.d.ts +4 -84
- package/window/models/window-types.d.ts +11 -0
- package/{dist/es2015/window → window}/navigation.service.d.ts +4 -1
- package/{dist/es2015/window → window}/window-container.directive.d.ts +3 -0
- package/window/window-container.service.d.ts +16 -0
- package/{dist/es2015/window → window}/window-events.d.ts +0 -0
- package/{dist/es2015/window → window}/window-resize-handle.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/window-titlebar.component.d.ts +6 -3
- package/{dist/es2015/window → window}/window.component.d.ts +42 -25
- package/{dist/es2015/window → window}/window.service.d.ts +5 -1
- package/window.module.d.ts +45 -0
- package/dist/cdn/js/kendo-angular-dialog.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/preventable-event.js +0 -29
- package/dist/es/common/util.js +0 -214
- package/dist/es/dialog/dialog-actions.component.js +0 -89
- package/dist/es/dialog/dialog-container.directive.js +0 -31
- package/dist/es/dialog/dialog-container.service.js +0 -31
- package/dist/es/dialog/dialog-content-base.js +0 -45
- package/dist/es/dialog/dialog-settings.js +0 -46
- package/dist/es/dialog/dialog-titlebar.component.js +0 -94
- package/dist/es/dialog/dialog.component.js +0 -462
- package/dist/es/dialog/dialog.service.js +0 -214
- package/dist/es/dialog.module.js +0 -56
- package/dist/es/index.js +0 -22
- package/dist/es/localization/custom-messages.component.js +0 -44
- package/dist/es/localization/localized-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -34
- package/dist/es/localization/titlebar-localization.service.js +0 -34
- package/dist/es/main.js +0 -21
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/shared.module.js +0 -34
- package/dist/es/window/actions/window-close-action.directive.js +0 -63
- package/dist/es/window/actions/window-maximize-action.directive.js +0 -75
- package/dist/es/window/actions/window-minimize-action.directive.js +0 -75
- package/dist/es/window/actions/window-restore-action.directive.js +0 -75
- package/dist/es/window/drag-resize.service.js +0 -351
- package/dist/es/window/navigation.service.js +0 -155
- package/dist/es/window/window-container.directive.js +0 -31
- package/dist/es/window/window-container.service.js +0 -31
- package/dist/es/window/window-resize-handle.directive.js +0 -78
- package/dist/es/window/window-settings.js +0 -34
- package/dist/es/window/window-titlebar.component.js +0 -144
- package/dist/es/window/window.component.js +0 -808
- package/dist/es/window/window.service.js +0 -214
- package/dist/es/window.module.js +0 -76
- package/dist/es2015/dialog/dialog-actions.component.js +0 -98
- package/dist/es2015/dialog/dialog-container.directive.js +0 -30
- package/dist/es2015/dialog/dialog-container.service.js +0 -23
- package/dist/es2015/dialog/dialog-settings.js +0 -30
- package/dist/es2015/dialog/dialog-titlebar.component.js +0 -106
- package/dist/es2015/dialogs.module.js +0 -41
- package/dist/es2015/index.d.ts +0 -22
- package/dist/es2015/index.js +0 -22
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.js +0 -36
- package/dist/es2015/localization/localized-messages.directive.js +0 -35
- package/dist/es2015/localization/messages.js +0 -28
- package/dist/es2015/localization/titlebar-localization.service.js +0 -31
- package/dist/es2015/shared.module.js +0 -31
- package/dist/es2015/window/actions/window-close-action.directive.js +0 -60
- package/dist/es2015/window/actions/window-maximize-action.directive.js +0 -68
- package/dist/es2015/window/actions/window-minimize-action.directive.js +0 -68
- package/dist/es2015/window/actions/window-restore-action.directive.js +0 -68
- package/dist/es2015/window/window-container.directive.js +0 -30
- package/dist/es2015/window/window-container.service.js +0 -23
- package/dist/es2015/window.module.d.ts +0 -28
- package/dist/fesm5/index.js +0 -3474
- package/dist/npm/common/actions-layout.js +0 -6
- package/dist/npm/common/preventable-event.js +0 -31
- package/dist/npm/common/util.js +0 -219
- package/dist/npm/dialog/dialog-actions.component.js +0 -91
- package/dist/npm/dialog/dialog-container.directive.js +0 -33
- package/dist/npm/dialog/dialog-container.service.js +0 -33
- package/dist/npm/dialog/dialog-content-base.js +0 -47
- package/dist/npm/dialog/dialog-settings.js +0 -48
- package/dist/npm/dialog/dialog-titlebar.component.js +0 -96
- package/dist/npm/dialog/dialog.component.js +0 -464
- package/dist/npm/dialog/dialog.service.js +0 -216
- package/dist/npm/dialog.module.js +0 -58
- package/dist/npm/dialogs.module.js +0 -46
- package/dist/npm/index.js +0 -40
- package/dist/npm/localization/custom-messages.component.js +0 -46
- package/dist/npm/localization/dialog-localization.service.js +0 -11
- package/dist/npm/localization/localized-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -36
- package/dist/npm/localization/titlebar-localization.service.js +0 -36
- package/dist/npm/main.js +0 -45
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/shared.module.js +0 -36
- package/dist/npm/window/actions/window-close-action.directive.js +0 -65
- package/dist/npm/window/actions/window-maximize-action.directive.js +0 -77
- package/dist/npm/window/actions/window-minimize-action.directive.js +0 -77
- package/dist/npm/window/actions/window-restore-action.directive.js +0 -77
- package/dist/npm/window/drag-resize.service.js +0 -353
- package/dist/npm/window/navigation.service.js +0 -157
- package/dist/npm/window/window-container.directive.js +0 -33
- package/dist/npm/window/window-container.service.js +0 -33
- package/dist/npm/window/window-events.js +0 -6
- package/dist/npm/window/window-resize-handle.directive.js +0 -80
- package/dist/npm/window/window-settings.js +0 -36
- package/dist/npm/window/window-titlebar.component.js +0 -146
- package/dist/npm/window/window.component.js +0 -810
- package/dist/npm/window/window.service.js +0 -216
- package/dist/npm/window.module.js +0 -78
- package/dist/systemjs/kendo-angular-dialog.js +0 -5
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export declare type WindowPosition = 'absolute' | 'fixed';
|
|
9
|
+
export declare type WindowState = 'minimized' | 'maximized' | 'default';
|
|
10
|
+
export declare type WindowDimensionSetting = 'width' | 'height';
|
|
11
|
+
export declare type WindowOffsetSetting = 'top' | 'left';
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgZone } from "@angular/core";
|
|
6
6
|
import { DragResizeService } from './drag-resize.service';
|
|
7
|
-
import { WindowState } from
|
|
7
|
+
import { WindowState } from "./models/window-types";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* @hidden
|
|
10
11
|
*/
|
|
@@ -18,4 +19,6 @@ export declare class NavigationService {
|
|
|
18
19
|
handleDrag(key: number): void;
|
|
19
20
|
handleResize(key: number): void;
|
|
20
21
|
handleStateChange(key: number, state: WindowState): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
|
|
21
24
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ViewContainerRef } from '@angular/core';
|
|
6
6
|
import { WindowContainerService } from './window-container.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Provides an insertion point for the Windows which are created through the
|
|
9
10
|
* Window service ([see example]({% slug api_dialog_windowservice %}#toc-open)).
|
|
@@ -16,4 +17,6 @@ import { WindowContainerService } from './window-container.service';
|
|
|
16
17
|
*/
|
|
17
18
|
export declare class WindowContainerDirective {
|
|
18
19
|
constructor(container: ViewContainerRef, service: WindowContainerService);
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WindowContainerDirective, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WindowContainerDirective, "[kendoWindowContainer]", never, {}, {}, never>;
|
|
19
22
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ViewContainerRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare class WindowContainerService {
|
|
11
|
+
private static container;
|
|
12
|
+
set container(container: ViewContainerRef);
|
|
13
|
+
get container(): ViewContainerRef;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WindowContainerService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WindowContainerService>;
|
|
16
|
+
}
|
|
File without changes
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { OnInit, OnDestroy, ElementRef, Renderer2 } from '@angular/core';
|
|
6
6
|
import { DraggableDirective } from '@progress/kendo-angular-common';
|
|
7
7
|
import { DragResizeService } from './drag-resize.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* @hidden
|
|
10
11
|
*/
|
|
@@ -14,10 +15,12 @@ export declare class ResizeHandleDirective implements OnInit, OnDestroy {
|
|
|
14
15
|
private renderer;
|
|
15
16
|
private service;
|
|
16
17
|
direction: string;
|
|
17
|
-
|
|
18
|
+
get hostClass(): boolean;
|
|
18
19
|
private subscriptions;
|
|
19
20
|
constructor(draggable: DraggableDirective, el: ElementRef, renderer: Renderer2, service: DragResizeService);
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
ngOnDestroy(): void;
|
|
22
23
|
private setDisplay;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeHandleDirective, [{ host: true; }, null, null, null]>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeHandleDirective, "[kendoWindowResizeHandle]", never, { "direction": "direction"; }, {}, never>;
|
|
23
26
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { OnDestroy, OnInit, ElementRef, NgZone, TemplateRef } from '@angular/core';
|
|
6
6
|
import { DragResizeService } from './drag-resize.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class WindowTitleBarComponent implements OnInit, OnDestroy {
|
|
8
9
|
el: ElementRef;
|
|
9
10
|
private ngZone;
|
|
@@ -37,11 +38,13 @@ export declare class WindowTitleBarComponent implements OnInit, OnDestroy {
|
|
|
37
38
|
* @hidden
|
|
38
39
|
*/
|
|
39
40
|
unsubscribeState(): void;
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
get className(): true;
|
|
42
|
+
get touchAction(): string;
|
|
42
43
|
/**
|
|
43
44
|
* @hidden
|
|
44
45
|
*/
|
|
45
46
|
handle(ev: any): void;
|
|
46
|
-
protected
|
|
47
|
+
protected get isDraggable(): boolean;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WindowTitleBarComponent, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WindowTitleBarComponent, "kendo-window-titlebar", never, { "template": "template"; }, {}, never, ["*"]>;
|
|
47
50
|
}
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
import { OnInit, OnDestroy, AfterViewInit, EventEmitter, ElementRef, Renderer2, QueryList, NgZone, OnChanges, SimpleChange, TemplateRef } from '@angular/core';
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { DragResizeService } from './drag-resize.service';
|
|
8
|
-
import { WindowState, WindowDimensionSetting, WindowOffsetSetting, WindowMessages } from './window-settings';
|
|
9
8
|
import { ResizeHandleDirective } from './window-resize-handle.directive';
|
|
10
9
|
import { WindowTitleBarComponent } from './window-titlebar.component';
|
|
11
10
|
import { NavigationService } from './navigation.service';
|
|
11
|
+
import { WindowDimensionSetting, WindowOffsetSetting, WindowState } from './models/window-types';
|
|
12
|
+
import { WindowMessages } from './models/window-messages';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
12
14
|
/**
|
|
13
15
|
* Represents the [Kendo UI Window component for Angular]({% slug overview_window_dialogs %}).
|
|
14
16
|
*/
|
|
@@ -31,20 +33,26 @@ export declare class WindowComponent implements OnInit, OnDestroy, OnChanges, Af
|
|
|
31
33
|
* Specifies whether the user will be able to drag the component.
|
|
32
34
|
* @default true
|
|
33
35
|
*/
|
|
34
|
-
draggable: boolean;
|
|
36
|
+
set draggable(value: boolean);
|
|
37
|
+
get draggable(): boolean;
|
|
35
38
|
/**
|
|
36
39
|
* Specifies whether the user will be able to resize the component.
|
|
37
40
|
* @default true
|
|
38
41
|
*/
|
|
39
|
-
resizable: boolean;
|
|
42
|
+
set resizable(value: boolean);
|
|
43
|
+
get resizable(): boolean;
|
|
40
44
|
/**
|
|
41
45
|
* @hidden
|
|
42
46
|
*/
|
|
43
|
-
cssClass: any;
|
|
47
|
+
set cssClass(classes: any);
|
|
48
|
+
get cssClass(): any;
|
|
44
49
|
/**
|
|
45
50
|
* @hidden
|
|
46
51
|
*/
|
|
47
|
-
htmlAttributes: {
|
|
52
|
+
set htmlAttributes(attributes: {
|
|
53
|
+
[key: string]: string;
|
|
54
|
+
});
|
|
55
|
+
get htmlAttributes(): {
|
|
48
56
|
[key: string]: string;
|
|
49
57
|
};
|
|
50
58
|
/**
|
|
@@ -61,43 +69,50 @@ export declare class WindowComponent implements OnInit, OnDestroy, OnChanges, Af
|
|
|
61
69
|
* * `maximized`
|
|
62
70
|
* * `default`
|
|
63
71
|
*/
|
|
64
|
-
state: WindowState;
|
|
72
|
+
set state(value: WindowState);
|
|
73
|
+
get state(): WindowState;
|
|
65
74
|
/**
|
|
66
75
|
* Specifies the minimum width of the component.
|
|
67
76
|
* The `minWidth` property has to be set in pixels.
|
|
68
77
|
* @default 120
|
|
69
78
|
*/
|
|
70
|
-
minWidth: number;
|
|
79
|
+
set minWidth(value: number);
|
|
80
|
+
get minWidth(): number;
|
|
71
81
|
/**
|
|
72
82
|
* Specifies the minimum height of the Window.
|
|
73
83
|
* The `minHeight` property has to be set in pixels.
|
|
74
84
|
* @default 100
|
|
75
85
|
*/
|
|
76
|
-
minHeight: number;
|
|
86
|
+
set minHeight(value: number);
|
|
87
|
+
get minHeight(): number;
|
|
77
88
|
/**
|
|
78
89
|
* Specifies the width of the Window.
|
|
79
90
|
* The `width` property has to be set in pixels.
|
|
80
91
|
*/
|
|
81
|
-
width: number;
|
|
92
|
+
set width(value: number);
|
|
93
|
+
get width(): number;
|
|
82
94
|
/**
|
|
83
95
|
* Specifies the height of the Window.
|
|
84
96
|
* The `height` property has to be set in pixels.
|
|
85
97
|
*/
|
|
86
|
-
height: number;
|
|
98
|
+
set height(value: number);
|
|
99
|
+
get height(): number;
|
|
87
100
|
/**
|
|
88
101
|
* Specifies the initial top offset of the Window.
|
|
89
102
|
* The `top` property has to be set in pixels.
|
|
90
103
|
*/
|
|
91
|
-
top: number;
|
|
104
|
+
set top(value: number);
|
|
105
|
+
get top(): number;
|
|
92
106
|
/**
|
|
93
107
|
* Specifies the initial left offset of the Window.
|
|
94
108
|
* Numeric values are treated as pixels.
|
|
95
109
|
*/
|
|
96
|
-
left: number;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
110
|
+
set left(value: number);
|
|
111
|
+
get left(): number;
|
|
112
|
+
get closeButtonTitle(): string;
|
|
113
|
+
get restoreButtonTitle(): string;
|
|
114
|
+
get maximizeButtonTitle(): string;
|
|
115
|
+
get minimizeButtonTitle(): string;
|
|
101
116
|
/**
|
|
102
117
|
* Fires when the user starts to move the Window.
|
|
103
118
|
*/
|
|
@@ -156,8 +171,8 @@ export declare class WindowComponent implements OnInit, OnDestroy, OnChanges, Af
|
|
|
156
171
|
*/
|
|
157
172
|
messages: WindowMessages;
|
|
158
173
|
tabIndex: number;
|
|
159
|
-
|
|
160
|
-
|
|
174
|
+
get hostClasses(): boolean;
|
|
175
|
+
get dir(): string;
|
|
161
176
|
titleBarView: WindowTitleBarComponent;
|
|
162
177
|
titleBarContent: WindowTitleBarComponent;
|
|
163
178
|
resizeHandles: QueryList<ResizeHandleDirective>;
|
|
@@ -205,12 +220,12 @@ export declare class WindowComponent implements OnInit, OnDestroy, OnChanges, Af
|
|
|
205
220
|
* @param {number} value - The value set in pixels
|
|
206
221
|
*/
|
|
207
222
|
setOffset(offset: WindowOffsetSetting, value: number): void;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
223
|
+
get showDefaultTitleBar(): boolean;
|
|
224
|
+
get styleMinWidth(): string;
|
|
225
|
+
get styleMinHeight(): string;
|
|
226
|
+
get stylePosition(): string;
|
|
227
|
+
get wrapperMaximizedClass(): boolean;
|
|
228
|
+
get wrapperMinimizedClass(): boolean;
|
|
214
229
|
/**
|
|
215
230
|
* @hidden
|
|
216
231
|
*/
|
|
@@ -228,7 +243,9 @@ export declare class WindowComponent implements OnInit, OnDestroy, OnChanges, Af
|
|
|
228
243
|
private updateAllOffset;
|
|
229
244
|
private setStyle;
|
|
230
245
|
private removeStyle;
|
|
231
|
-
private
|
|
246
|
+
private get options();
|
|
232
247
|
private setOption;
|
|
233
248
|
private handleInitialFocus;
|
|
249
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WindowComponent, never>;
|
|
250
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WindowComponent, "kendo-window", ["kendoWindow"], { "autoFocusedElement": "autoFocusedElement"; "title": "title"; "draggable": "draggable"; "resizable": "resizable"; "keepContent": "keepContent"; "state": "state"; "minWidth": "minWidth"; "minHeight": "minHeight"; "width": "width"; "height": "height"; "top": "top"; "left": "left"; }, { "dragStart": "dragStart"; "dragEnd": "dragEnd"; "resizeStart": "resizeStart"; "resizeEnd": "resizeEnd"; "close": "close"; "widthChange": "widthChange"; "heightChange": "heightChange"; "topChange": "topChange"; "leftChange": "leftChange"; "stateChange": "stateChange"; }, ["titleBarContent"], ["kendo-window-titlebar", "*"]>;
|
|
234
251
|
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ComponentFactoryResolver } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { WindowSettings } from './models/window-settings';
|
|
7
7
|
import { WindowContainerService } from '../window/window-container.service';
|
|
8
|
+
import { WindowRef } from './models/window-ref';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
8
10
|
/**
|
|
9
11
|
* A service for opening Windows dynamically
|
|
10
12
|
* ([see example]({% slug service_window %})).
|
|
@@ -58,4 +60,6 @@ export declare class WindowService {
|
|
|
58
60
|
open(settings: WindowSettings): WindowRef;
|
|
59
61
|
private applyOptions;
|
|
60
62
|
private contentFrom;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WindowService, never>;
|
|
64
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WindowService>;
|
|
61
65
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./window/window-resize-handle.directive";
|
|
7
|
+
import * as i2 from "./window/window.component";
|
|
8
|
+
import * as i3 from "./window/window-titlebar.component";
|
|
9
|
+
import * as i4 from "./window/actions/window-close-action.directive";
|
|
10
|
+
import * as i5 from "./window/actions/window-minimize-action.directive";
|
|
11
|
+
import * as i6 from "./window/actions/window-maximize-action.directive";
|
|
12
|
+
import * as i7 from "./window/actions/window-restore-action.directive";
|
|
13
|
+
import * as i8 from "./window/window-container.directive";
|
|
14
|
+
import * as i9 from "./shared.module";
|
|
15
|
+
import * as i10 from "@progress/kendo-angular-common";
|
|
16
|
+
import * as i11 from "./dialog/dialog-actions.component";
|
|
17
|
+
import * as i12 from "./localization/custom-messages.component";
|
|
18
|
+
import * as i13 from "./localization/localized-messages.directive";
|
|
19
|
+
/**
|
|
20
|
+
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
21
|
+
* definition for the Window component. Imports `WindowModule` into the
|
|
22
|
+
* [root module]({{ site.data.urls.angular['ngmodules'] }}#angular-modularity)
|
|
23
|
+
* of your application or into any other sub-module that will use the Window component.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts-no-run
|
|
27
|
+
* import { NgModule } from '@angular/core';
|
|
28
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
29
|
+
* import { WindowModule } from '@progress/kendo-angular-window';
|
|
30
|
+
* import { AppComponent } from './app.component';
|
|
31
|
+
*
|
|
32
|
+
* _@NgModule({
|
|
33
|
+
* bootstrap: [AppComponent],
|
|
34
|
+
* declarations: [AppComponent],
|
|
35
|
+
* imports: [BrowserModule, WindowModule]
|
|
36
|
+
* })
|
|
37
|
+
* export class AppModule {
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare class WindowModule {
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WindowModule, never>;
|
|
43
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WindowModule, [typeof i1.ResizeHandleDirective, typeof i2.WindowComponent, typeof i3.WindowTitleBarComponent, typeof i4.WindowCloseActionDirective, typeof i5.WindowMinimizeActionDirective, typeof i6.WindowMaximizeActionDirective, typeof i7.WindowRestoreActionDirective, typeof i8.WindowContainerDirective], [typeof i9.SharedModule, typeof i10.DraggableModule], [typeof i2.WindowComponent, typeof i4.WindowCloseActionDirective, typeof i5.WindowMinimizeActionDirective, typeof i6.WindowMaximizeActionDirective, typeof i7.WindowRestoreActionDirective, typeof i3.WindowTitleBarComponent, typeof i11.DialogActionsComponent, typeof i12.CustomMessagesComponent, typeof i13.LocalizedMessagesDirective, typeof i8.WindowContainerDirective]>;
|
|
44
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<WindowModule>;
|
|
45
|
+
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@progress/kendo-angular-l10n"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,,,],e):"object"==typeof exports?exports.KendoAngularDialog=e(require("@angular/core"),require("@progress/kendo-angular-l10n"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@angular/common")):t.KendoAngularDialog=e(t.ng.core,t.KendoAngularL10N,t.rxjs,t.rxjs.operators,t.KendoAngularCommon,t.KendoAngularButtons,t.KendoLicensing,t.ng.animations,t.ng.common)}(window,(function(t,e,n,i,o,r,a,s,c){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=34)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return r})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return u})),n.d(e,"__generator",(function(){return d})),n.d(e,"__createBinding",(function(){return p})),n.d(e,"__exportStar",(function(){return f})),n.d(e,"__values",(function(){return h})),n.d(e,"__read",(function(){return g})),n.d(e,"__spread",(function(){return m})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return v})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return S})),n.d(e,"__importStar",(function(){return C})),n.d(e,"__importDefault",(function(){return E})),n.d(e,"__classPrivateFieldGet",(function(){return O})),n.d(e,"__classPrivateFieldSet",(function(){return D}));
|
|
6
|
-
/*! *****************************************************************************
|
|
7
|
-
Copyright (c) Microsoft Corporation.
|
|
8
|
-
|
|
9
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
-
purpose with or without fee is hereby granted.
|
|
11
|
-
|
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
14
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
16
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
17
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
-
***************************************************************************** */
|
|
20
|
-
var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}function s(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function c(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))}function d(t,e){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function p(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function f(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function h(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function v(t){return this instanceof v?(this.v=t,this):new v(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(t,e||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){o[t]&&(i[t]=function(e){return new Promise((function(n,i){r.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=o[t](e)).value instanceof v?Promise.resolve(n.value.v).then(c,l):u(r[0][2],n)}catch(t){u(r[0][3],t)}var n}function c(t){s("next",t)}function l(t){s("throw",t)}function u(t,e){t(e),r.shift(),r.length&&s(r[0][0],r[0][1])}}function b(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,o){e[i]=t[i]?function(e){return(n=!n)?{value:v(t[i](e)),done:"return"===i}:o?o(e):e}:o}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,o,(e=t[n](e)).done,e.value)}))}}}function S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function E(t){return t&&t.__esModule?t:{default:t}}function O(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function D(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),o=n(6);e.isPresent=function(t){return null!=t},e.isTruthy=function(t){return!!t};var r=function(t){return String(t).trim().split(" ")},a=/^(?:a|input|select|textarea|button|object)$/i;!function(t){t[t.esc=27]="esc",t[t.tab=9]="tab",t[t.enter=13]="enter",t[t.space=32]="space",t[t.ctrl=17]="ctrl",t[t.shift=16]="shift",t[t.left=37]="left",t[t.up=38]="up",t[t.right=39]="right",t[t.down=40]="down"}(e.Keys||(e.Keys={})),e.DIALOG_ELEMENTS_HANDLING_ESC_KEY="k-dialog-wrapper k-dialog-buttongroup k-dialog-action",e.DIALOG_ELEMENTS_HANDLING_ARROWS="k-dialog-buttongroup",e.WINDOW_CLASSES="k-window",e.hasClasses=function(t,e){var n=r(e);return Boolean(r(t.className).find((function(t){return n.indexOf(t)>=0})))},e.isVisible=function(t){var e=t.getBoundingClientRect();return!(!e.width||!e.height)&&"hidden"!==window.getComputedStyle(t).visibility},e.isFocusable=function(t,n){if(void 0===n&&(n=!0),t.tagName){var i=t.tagName.toLowerCase(),o=t.getAttribute("tabIndex"),r=null!==o&&!isNaN(o)&&o>-1;return(a.test(i)?!t.disabled:r)&&(!n||e.isVisible(t))}return!1},e.setHTMLAttributes=function(t,e,n){for(var i in t)i&&e.setAttribute(n,i,t[i])},e.parseCSSClassNames=function(t){return e.isObject(t)?s(t):e.isString(t)?c(t):Array.isArray(t)?l(t):void 0};var s=function(t){var n=[];return Object.keys(t).forEach((function(i){var o=e.splitStringToArray(i);t[i]&&o[0]&&n.push.apply(n,o)})),n},c=function(t){var n=[];return e.splitStringToArray(t).forEach((function(t){n.push(t)})),n},l=function(t){var n=[];return t.forEach((function(t){var i=e.splitStringToArray(t);i[0]&&n.push.apply(n,i)})),n};e.focusableSelector=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),e.preventDefault=function(t){var e=t.originalEvent;e.stopPropagation(),e.preventDefault()},e.isWindowAvailable=function(){return"undefined"!=typeof window},e.preventOnDblClick=function(t){return function(e){return i.of(e).pipe(o.delay(150),o.takeUntil(t))}},e.RESIZE_DIRECTIONS=["n","e","s","w","se","sw","ne","nw"],e.OFFSET_STYLES=["top","left","width","height"],e.isString=function(t){return t instanceof String||"string"==typeof t},e.isObject=function(t){return e.isPresent(t)&&!Array.isArray(t)&&"object"==typeof t},e.isNumber=function(t){return"number"==typeof t&&isFinite(t)},e.createValueWithUnit=function(t){return t+(e.isNumber(t)?"px":"")},e.splitStringToArray=function(t){return t.trim().replace(/\s+/g," ").split(" ")},e.findPrimaryButton=function(t){for(var e=t.length-1;e>=0;e--)for(var n=t[e].classList,i=0;i<n.length;i++)if(n[i].endsWith("-primary"))return t[e]}},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),a=n(6),s=n(3),c=n(44),l=10002,u={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},d=function(t,e){return function(n){return t.kendoDrag.pipe(a.takeUntil(t.kendoRelease.pipe(a.tap((function(){e.emit()})))),a.map((function(t){var e=t.pageX,i=t.pageY;return{originalX:n.pageX,originalY:n.pageY,pageX:e,pageY:i}})))}},p=function(){function t(t){this.ngZone=t,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({},u),this.lastAction=null,this.subscriptions=new r.Subscription,this.dragSubscription=new r.Subscription}return t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()},t.prototype.init=function(t){var e=this.options.state,n=this.options;this.window=t,"default"!==e&&(this.restoreOptions=Object.assign({},n)),"minimized"===e&&(n.height=0,n.minHeight=0),"maximized"===e&&(n.position="fixed")},t.prototype.onDrag=function(t){var e=this;this.subscriptions.add(this.ngZone.runOutsideAngular((function(){var n,i;e.dragSubscription=t.kendoPress.pipe(a.tap((function(t){t.isTouch||s.preventDefault(t),e.focus.emit(),n=e.currentPosition(),i=!1})),a.switchMap(d(t,e.dragEnd))).subscribe((function(t){var o=t.pageX,r=t.pageY,a=t.originalX,s=t.originalY;i||(e.ensureWidth(),e.dragStart.emit(),i=!0),e.handleDrag({originalX:a,originalY:s,pageX:o,pageY:r,startPosition:n})}))})))},t.prototype.handleDrag=function(t){var e=t.originalX,n=t.originalY,i=t.pageX,o=t.pageY,r=t.startPosition;this.options.left=r.x+i-e,this.options.top=r.y+o-n,"minimized"===this.options.state&&s.isPresent(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:r.x+i-e,top:r.y+o-n})},t.prototype.onResize=function(t,e){var n=this;this.subscriptions.add(this.ngZone.runOutsideAngular((function(){var i,o=!1;t.kendoPress.pipe(a.tap((function(t){s.preventDefault(t),n.focus.emit(),i=n.currentOffsetAndPosition(),o=!1})),a.switchMap(d(t,n.resizeEnd))).subscribe((function(t){var r=t.pageX,a=t.pageY,s=t.originalX,c=t.originalY;o||(n.resizeStart.emit(e),o=!0);var l=r-s,u=a-c;n.handleResize(i,e,l,u)}))})))},t.prototype.handleResize=function(t,e,n,i){var o=this,r=this.options,a={};e.indexOf("e")>=0&&((u=t.width+n)!==r.width&&u>=r.minWidth&&(a.width=u));if(e.indexOf("n")>=0){var c=t.height-i,l=t.y+i;c!==r.height&&c>=r.minHeight&&l!==r.top&&(a.height=c,a.top=l)}e.indexOf("s")>=0&&((c=t.height+i)!==r.height&&c>=r.minHeight&&(a.height=c));if(e.indexOf("w")>=0){var u,d=t.x+n;(u=t.width-n)!==r.width&&u>=r.minWidth&&d!==r.left&&(a.width=u,a.left=d)}(s.isPresent(a.width)||s.isPresent(a.height))&&(s.OFFSET_STYLES.forEach((function(t){s.isPresent(a[t])&&(o.options[t]=a[t])})),this.change.emit(a))},t.prototype.restoreAction=function(){this.lastAction="restore",this.defaultState()},t.prototype.defaultState=function(){s.isPresent(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")},t.prototype.storeOptions=function(){this.restoreOptions=Object.assign({},this.options)},t.prototype.maximizeAction=function(){this.lastAction="maximize",this.maximizeState()},t.prototype.maximizeState=function(){this.storeOptions();var t=this.windowViewPort;this.options=Object.assign({},this.options,{height:t.height,left:0,position:"fixed",state:"maximized",top:0,width:t.width}),this.stateChange.emit("maximized")},t.prototype.minimizeAction=function(){this.lastAction="minimize",this.minimizeState()},t.prototype.minimizeState=function(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")},t.prototype.applyManualState=function(){switch(this.options.state){case"default":this.clearHeight(),this.defaultState();break;case"maximized":this.clearHeight(),this.maximizeState();break;case"minimized":this.minimizeState()}},t.prototype.closeAction=function(){this.close.emit()},t.prototype.ensureWidth=function(){var t=c.offset(this.window.nativeElement);s.isPresent(this.options.width)||(this.options.width=t.width,this.change.emit({width:t.width}))},t.prototype.clearHeight=function(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight},t.prototype.center=function(){if("maximized"!==this.options.state){var t=c.scrollPosition(this.window.nativeElement),e=this.windowViewPort,n=c.offset(this.window.nativeElement),i={};s.isPresent(this.options.left)||(this.options.left=t.x+Math.max(0,(e.width-n.width)/2),i.left=this.options.left),s.isPresent(this.options.top)||(this.options.top=t.y+Math.max(0,(e.height-n.height)/2),i.top=this.options.top),this.change.emit(i)}},t.prototype.currentOffsetAndPosition=function(){var t=this.options,e=c.offset(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:t.height?t.height:e.height,width:t.width?t.width:e.width})},t.prototype.currentPosition=function(){var t=this.options;return t.top&&t.left||this.setPosition(),{x:this.options.left,y:this.options.top}},t.prototype.setPosition=function(){var t=c.positionWithScroll(this.window.nativeElement,c.getDocumentElement(this.window.nativeElement));this.options.left=t.left,this.options.top=t.top},t.prototype.setRestoreOption=function(t,e){s.isPresent(this.restoreOptions)&&(this.restoreOptions[t]=e)},Object.defineProperty(t.prototype,"nextPossibleZIndex",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextZIndex",{get:function(){return l++},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"windowViewPort",{get:function(){return c.getWindowViewPort(this.window.nativeElement)},enumerable:!0,configurable:!0}),t=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone])],t)}();e.DragResizeService=p},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(3),a=function(){function t(t){this.el=t,this.layout="stretched",this.action=new o.EventEmitter,this.buttonGroupClassName=!0}return Object.defineProperty(t.prototype,"className",{get:function(){return"stretched"===this.layout},enumerable:!0,configurable:!0}),t.prototype.actionTemplate=function(){return this.actions instanceof o.TemplateRef},t.prototype.onButtonClick=function(t,e){this.action.emit(t)},t.prototype.buttonClass=function(t){var e=["k-button k-button-md k-rounded-md"],n=t.fillMode?t.fillMode:"solid",i=t.themeColor?t.themeColor:"base",o=t.cssClass?r.parseCSSClassNames(t.cssClass):[];return e.push("k-button-"+n+" k-button-"+n+"-"+i),o.length>0&&(e=e.concat(o)),e.join(" ")},i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"actions",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"layout",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"action",void 0),i.__decorate([o.HostBinding("class.k-dialog-buttongroup"),o.HostBinding("class.k-actions"),i.__metadata("design:type",Boolean)],t.prototype,"buttonGroupClassName",void 0),i.__decorate([o.HostBinding("class.k-actions-stretched"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"className",null),t=i.__decorate([o.Component({selector:"kendo-dialog-actions",template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="!actionTemplate()">\n <button\n type="button"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n *ngFor="let action of actions"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template [ngTemplateOutlet]="actions" *ngIf="actionTemplate()"></ng-template>\n '}),i.__metadata("design:paramtypes",[o.ElementRef])],t)}();e.DialogActionsComponent=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(2),a=n(6),s=n(17),c=n(36),l=function(){function t(t,e,n){this.zone=t,this.hostElement=e,this.localizationService=n,this.close=new o.EventEmitter}return Object.defineProperty(t.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.zone.onStable.pipe(a.take(1)).subscribe((function(){t.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",t.id)}))},t.prototype.onCloseClick=function(t){t.preventDefault();var e=new s.PreventableEvent;this.close.emit(e)},i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"close",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"id",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),i.__decorate([o.HostBinding("class.k-window-titlebar"),o.HostBinding("class.k-dialog-titlebar"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"className",null),t=i.__decorate([o.Component({selector:"kendo-dialog-titlebar",providers:[c.TitleBarLocalizationService,{provide:r.LocalizationService,useExisting:c.TitleBarLocalizationService},{provide:r.L10N_PREFIX,useValue:"kendo.dialog"}],template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n '}),i.__param(2,o.Optional()),i.__metadata("design:paramtypes",[o.NgZone,o.ElementRef,r.LocalizationService])],t)}();e.DialogTitleBarComponent=l},function(t,e){t.exports=o},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(35),a=n(7),s=n(8),c=n(2),l=n(19),u=n(20),d=n(3),p=n(12),f=n(18),h=n(6),g=n(4),m=function(){function t(t,e,n,i,r){var a=this;this.wrapper=t,this.renderer=e,this.cdr=i,this.ngZone=r,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new o.EventEmitter,this.close=new o.EventEmitter,this.tabIndex=0,this.subscriptions=[],this.domSubs=new g.Subscription,l.validatePackage(u.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.subscriptions.push(n.changes.subscribe((function(t){var e=t.rtl;return a.direction=e?"rtl":"ltr"}))),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}return Object.defineProperty(t.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(t){d.setHTMLAttributes(t,this.renderer,this.wrapper.nativeElement);var e=this.wrapper.nativeElement,n=e.getAttribute("dir"),i=e.getAttribute("tabindex");this.direction!==n&&n&&(this.direction=n),this.tabIndex!==i&&i&&(this.tabIndex=i),this._htmlAttributes=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClass",{get:function(){return this._cssClass},set:function(t){this.setServiceClasses(this._cssClass,t),this._cssClass=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe((function(){d.isPresent(t.titlebarContent.first)&&(t.titlebarContent.first.id=t.titleId,t.ngZone.onStable.pipe(h.take(1)).subscribe((function(){t.bubble("close",t.titlebarContent.first),t.renderer.setAttribute(t.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",t.titleId)})))})))},t.prototype.ngAfterViewInit=function(){var t=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe((function(){d.isPresent(t.titlebarView.first)&&(t.titlebarView.first.id=t.titleId,t.ngZone.onStable.pipe(h.take(1)).subscribe((function(){t.bubble("close",t.titlebarView.first),t.renderer.setAttribute(t.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",t.titleId)})))}))),this.initDomEvents()},t.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(t){return t.unsubscribe()})),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()},t.prototype.focus=function(){var t=this.wrapper.nativeElement;d.isPresent(t)&&t.focus()},t.prototype.initDomEvents=function(){var t=this;this.wrapper&&this.ngZone.runOutsideAngular((function(){t.domSubs.add(t.renderer.listen(t.wrapper.nativeElement,"keydown",(function(e){t.onKeyDown(e)})))}))},t.prototype.onKeyDown=function(t){var e=this,n=t.target,i=n.parentElement;(d.hasClasses(n,d.DIALOG_ELEMENTS_HANDLING_ESC_KEY)||d.hasClasses(i,d.DIALOG_ELEMENTS_HANDLING_ESC_KEY))&&t.keyCode===d.Keys.esc&&this.ngZone.run((function(){e.close.emit(new p.DialogCloseResult)})),d.hasClasses(n,"k-button")&&d.hasClasses(i,d.DIALOG_ELEMENTS_HANDLING_ARROWS)&&(t.keyCode===d.Keys.left||t.keyCode===d.Keys.right)&&this.ngZone.run((function(){e.handleActionButtonFocus(i,t.keyCode)})),t.keyCode===d.Keys.tab&&this.ngZone.run((function(){e.keepFocusWithinComponent(n,t)}))},t.prototype.setServiceClasses=function(t,e){var n=this,i=this.wrapper.nativeElement;t&&d.parseCSSClassNames(t).forEach((function(t){n.renderer.removeClass(i,t)})),e&&d.parseCSSClassNames(e).forEach((function(t){n.renderer.addClass(i,t)}))},t.prototype.handleInitialFocus=function(){var t=this.wrapper.nativeElement,e=this.findPrimary(t);if(this.autoFocusedElement){var n=t.querySelector(this.autoFocusedElement);n&&n.focus()}else this.shouldFocusPrimary(e)?e.focus():t.focus()},t.prototype.findPrimary=function(t){var e=t.querySelectorAll(".k-actions .k-button");return d.findPrimaryButton(e)},t.prototype.handleActionButtonFocus=function(t,e){for(var n=this.getAllFocusableChildren(t),i=0;i<n.length;i++){if(n[i]===document.activeElement){if(e===d.Keys.left&&i>0){n[i-1].focus();break}if(e===d.Keys.right&&i<n.length-1){n[i+1].focus();break}}}},t.prototype.keepFocusWithinComponent=function(t,e){var n=this.wrapper.nativeElement,i=this.getFirstAndLastFocusable(n),o=i[0],r=i[1],a=!e.shiftKey&&t===r,s=e.shiftKey&&t===o;a&&(e.preventDefault(),o.focus()),s&&(e.preventDefault(),r.focus())},t.prototype.shouldFocusPrimary=function(t){return d.isPresent(t)&&d.isFocusable(t)},t.prototype.getAllFocusableChildren=function(t){return t.querySelectorAll(d.focusableSelector)},t.prototype.getFirstAndLastFocusable=function(t){var e=this.getAllFocusableChildren(t);return[e.length>0?e[0]:t,e.length>0?e[e.length-1]:t]},t.prototype.generateTitleId=function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()},t.prototype.generateContentId=function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()},Object.defineProperty(t.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styles",{get:function(){var t={};return this.width&&(t.width=d.createValueWithUnit(this.width)),this.height&&(t.height=d.createValueWithUnit(this.height)),this.minWidth&&(t.minWidth=d.createValueWithUnit(this.minWidth)),this.maxWidth&&(t.maxWidth=d.createValueWithUnit(this.maxWidth)),this.minHeight&&(t.minHeight=d.createValueWithUnit(this.minHeight)),this.maxHeight&&(t.maxHeight=d.createValueWithUnit(this.maxHeight)),t},enumerable:!0,configurable:!0}),t.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",Array)],t.prototype,"actions",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"actionsLayout",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"autoFocusedElement",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"width",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"minWidth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"maxWidth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"height",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"minHeight",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"maxHeight",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"action",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"close",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"dir",null),i.__decorate([o.HostBinding("attr.tabIndex"),i.__metadata("design:type",Number)],t.prototype,"tabIndex",void 0),i.__decorate([o.ContentChildren(s.DialogTitleBarComponent,{descendants:!1}),i.__metadata("design:type",o.QueryList)],t.prototype,"titlebarContent",void 0),i.__decorate([o.ViewChildren(s.DialogTitleBarComponent),i.__metadata("design:type",o.QueryList)],t.prototype,"titlebarView",void 0),i.__decorate([o.ViewChild(a.DialogActionsComponent,{static:!1}),i.__metadata("design:type",a.DialogActionsComponent)],t.prototype,"actionsView",void 0),i.__decorate([o.HostBinding("class.k-dialog-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"wrapperClass",null),t=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",providers:[c.LocalizationService,{provide:f.DIALOG_LOCALIZATION_SERVICE,useExisting:c.LocalizationService},{provide:c.L10N_PREFIX,useValue:"kendo.dialog"}],selector:"kendo-dialog",template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,c.LocalizationService,o.ChangeDetectorRef,o.NgZone])],t)}();e.DialogComponent=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){};e.DialogAction=i;var o=function(){};e.DialogCloseResult=o;var r=function(){};e.DialogSettings=r;var a=function(){};e.DialogRef=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function t(){}var e;return e=t,Object.defineProperty(t.prototype,"container",{get:function(){return e.container},set:function(t){e.container=t},enumerable:!0,configurable:!0}),t.container=null,t=e=i.__decorate([o.Injectable()],t)}();e.DialogContainerService=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(2),a=n(9),s=n(4),c=n(19),l=n(20),u=n(5),d=n(3),p=n(3),f=n(23),h=n(15),g=n(37),m=function(){function t(t,e,n,i,r,a){var u=this;this.el=t,this.renderer=e,this.service=n,this.navigation=i,this.ngZone=r,this.localization=a,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.messages={},this.tabIndex=0,this.draged=!1,this.resized=!1,this.windowSubscription=new s.Subscription,this.domSubs=new s.Subscription,c.validatePackage(l.packageMetadata),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var e=t.rtl;return u.direction=e?"rtl":"ltr"})),this.resizeDirections=p.RESIZE_DIRECTIONS,this.subscribeEvents()}return Object.defineProperty(t.prototype,"draggable",{get:function(){return this.options.draggable},set:function(t){this.options.draggable=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resizable",{get:function(){return this.options.resizable},set:function(t){this.options.resizable=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClass",{get:function(){return this._cssClass},set:function(t){this.setServiceClasses(this._cssClass,t),this._cssClass=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(t){d.setHTMLAttributes(t,this.renderer,this.el.nativeElement);var e=this.el.nativeElement,n=e.getAttribute("dir"),i=e.getAttribute("tabindex");this.direction!==n&&(this.direction=n),this.tabIndex!==i&&(this.tabIndex=i),this._htmlAttributes=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.options.state},set:function(t){this.options.state=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.options.minWidth},set:function(t){this.setOption("minWidth",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minHeight",{get:function(){return this.options.minHeight},set:function(t){this.setOption("minHeight",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.options.width},set:function(t){this.setOption("width",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.options.height},set:function(t){this.setOption("height",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.options.top},set:function(t){this.setOption("top",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.options.left},set:function(t){this.setOption("left",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closeButtonTitle",{get:function(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"restoreButtonTitle",{get:function(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximizeButtonTitle",{get:function(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minimizeButtonTitle",{get:function(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.setNextZIndex(),this.handleInitialFocus(),this.ngZone.runOutsideAngular((function(){return Promise.resolve(null).then((function(){return t.setInitialOffset()}))})),this.initDomEvents()},t.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)},t.prototype.ngOnChanges=function(t){var e=this;if(d.OFFSET_STYLES.forEach((function(n){a.isChanged(n,t)&&e.setStyle(n,e.options[n])})),a.isChanged("draggable",t)){var n=d.isPresent(this.titleBarContent)?this.titleBarContent:this.titleBarView;d.isTruthy(t.draggable.currentValue)?n.subscribeDrag():n.unsubscribeDrag()}a.isChanged("state",t)&&(d.isPresent(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))},t.prototype.ngOnDestroy=function(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()},t.prototype.focus=function(){var t=this.el.nativeElement;d.isPresent(t)&&t.focus()},t.prototype.bringToFront=function(){this.setNextZIndex()},t.prototype.setDimension=function(t,e){this.setOption(t,e),this.setStyle(t,e)},t.prototype.setOffset=function(t,e){this.setOption(t,e),this.setStyle(t,e)},Object.defineProperty(t.prototype,"showDefaultTitleBar",{get:function(){return!d.isPresent(this.titleBarContent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleMinWidth",{get:function(){return this.minWidth+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleMinHeight",{get:function(){return this.minHeight+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stylePosition",{get:function(){return this.options.position},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapperMaximizedClass",{get:function(){return"maximized"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapperMinimizedClass",{get:function(){return"minimized"===this.state},enumerable:!0,configurable:!0}),t.prototype.onComponentFocus=function(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()},t.prototype.onComponentBlur=function(){this.renderer.removeClass(this.el.nativeElement,"k-focus")},t.prototype.subscribeEvents=function(){var t=this;a.isDocumentAvailable()&&(this.windowSubscription.add(this.service.focus.subscribe((function(){t.el.nativeElement.focus()}))),this.windowSubscription.add(this.service.dragStart.subscribe((function(){t.draged=!0,t.ngZone.run((function(){t.dragStart.emit()}))}))),this.windowSubscription.add(this.service.dragEnd.subscribe((function(){t.draged&&(t.draged=!1,t.ngZone.run((function(){t.dragEnd.emit()})))}))),this.windowSubscription.add(this.service.close.subscribe((function(){t.close.emit()}))),this.windowSubscription.add(this.service.resizeStart.subscribe((function(){t.resized=!0,t.ngZone.run((function(){t.resizeStart.emit()}))}))),this.windowSubscription.add(this.service.resizeEnd.subscribe((function(){t.resized&&(t.resized=!1,t.ngZone.run((function(){t.resizeEnd.emit()})))}))),this.windowSubscription.add(this.service.change.subscribe((function(e){d.OFFSET_STYLES.forEach((function(n){if(d.isPresent(e[n])&&(t.setStyle(n,e[n]),"maximized"!==t.state)){var i=t[n+"Change"];i.observers.length&&t.ngZone.run((function(){i.emit(e[n])}))}}))}))),this.windowSubscription.add(this.service.stateChange.subscribe((function(e){d.isPresent(t.service.lastAction)&&(t.updateAllOffset(),t.stateChange.emit(e))}))))},t.prototype.initDomEvents=function(){var t=this;this.el&&this.ngZone.runOutsideAngular((function(){t.domSubs.add(t.renderer.listen(t.el.nativeElement,"keydown",(function(e){t.onKeyDown(e)})))}))},t.prototype.onKeyDown=function(t){d.hasClasses(t.target,d.WINDOW_CLASSES)&&this.navigation.process(t)},t.prototype.setServiceClasses=function(t,e){var n=this,i=this.el.nativeElement;t&&d.parseCSSClassNames(t).forEach((function(t){n.renderer.removeClass(i,t)})),e&&d.parseCSSClassNames(e).forEach((function(t){n.renderer.addClass(i,t)}))},t.prototype.setNextZIndex=function(){var t=this.el.nativeElement.style["z-index"],e=this.service.nextPossibleZIndex;(!t||e-t>1)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)},t.prototype.setInitialOffset=function(){if("maximized"!==this.state)this.updateAllOffset(),d.isPresent(this.left)&&d.isPresent(this.top)||this.service.center();else{var t=this.service.windowViewPort;this.setStyle("width",t.width),this.setStyle("height",t.height),this.setStyle("top",0),this.setStyle("left",0)}},t.prototype.updateAllOffset=function(){var t=this;d.OFFSET_STYLES.forEach((function(e){d.isPresent(t[e])?t.setStyle(e,t[e]):t.removeStyle(e)}))},t.prototype.setStyle=function(t,e){this.renderer.setStyle(this.el.nativeElement,t,e+"px")},t.prototype.removeStyle=function(t){this.renderer.removeStyle(this.el.nativeElement,t)},Object.defineProperty(t.prototype,"options",{get:function(){return this.service.options},enumerable:!0,configurable:!0}),t.prototype.setOption=function(t,e){if("number"==typeof e||"string"==typeof e){var n="number"==typeof e?e:parseInt(e,10);this.options[t]=n,this.service.setRestoreOption(t,n)}},t.prototype.handleInitialFocus=function(){var t=this.el.nativeElement;if(this.autoFocusedElement){var e=t.querySelector(this.autoFocusedElement);e&&e.focus()}else this.focus()},i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"autoFocusedElement",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"draggable",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"resizable",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"keepContent",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"state",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"minWidth",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"minHeight",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"width",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"height",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"top",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"left",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"dragStart",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"dragEnd",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"resizeStart",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"resizeEnd",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"close",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"widthChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"heightChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"topChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"leftChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"stateChange",void 0),i.__decorate([o.HostBinding("attr.tabIndex"),i.__metadata("design:type",Number)],t.prototype,"tabIndex",void 0),i.__decorate([o.HostBinding("class.k-window"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"hostClasses",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"dir",null),i.__decorate([o.ViewChild(h.WindowTitleBarComponent,{static:!1}),i.__metadata("design:type",h.WindowTitleBarComponent)],t.prototype,"titleBarView",void 0),i.__decorate([o.ContentChild(h.WindowTitleBarComponent,{static:!1}),i.__metadata("design:type",h.WindowTitleBarComponent)],t.prototype,"titleBarContent",void 0),i.__decorate([o.ViewChildren(f.ResizeHandleDirective),i.__metadata("design:type",o.QueryList)],t.prototype,"resizeHandles",void 0),i.__decorate([o.HostBinding("style.minWidth"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"styleMinWidth",null),i.__decorate([o.HostBinding("style.minHeight"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"styleMinHeight",null),i.__decorate([o.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"stylePosition",null),i.__decorate([o.HostBinding("class.k-window-maximized"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"wrapperMaximizedClass",null),i.__decorate([o.HostBinding("class.k-window-minimized"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"wrapperMinimizedClass",null),i.__decorate([o.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],t.prototype,"onComponentFocus",null),i.__decorate([o.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],t.prototype,"onComponentBlur",null),t=i.__decorate([o.Component({exportAs:"kendoWindow",providers:[u.DragResizeService,g.NavigationService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.window"}],selector:"kendo-window",template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,u.DragResizeService,g.NavigationService,o.NgZone,r.LocalizationService])],t)}();e.WindowComponent=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(9),a=n(5),s=n(4),c=n(3),l=function(){function t(t,e,n){this.el=t,this.ngZone=n,this.service=e}return t.prototype.ngOnInit=function(){this.dragDirective=new r.DraggableDirective(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()},t.prototype.ngOnDestroy=function(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()},t.prototype.subscribeDrag=function(){var t=this;this.unsubscribeDrag(),this.dragSubscription=s.of(this.dragDirective).subscribe((function(e){t.service.onDrag(e)}))},t.prototype.subscribeStateChange=function(){var t=this;this.stateSubscription=this.service.stateChange.subscribe((function(e){t.service.options.draggable&&("maximized"===e?t.unsubscribeDrag():t.subscribeDrag())}))},t.prototype.unsubscribeDrag=function(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)},t.prototype.unsubscribeState=function(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)},Object.defineProperty(t.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touchAction",{get:function(){if(this.isDraggable)return"none"},enumerable:!0,configurable:!0}),t.prototype.handle=function(t){var e=t.target,n=this.service.options.state;c.hasClasses(e,"k-icon")||c.isFocusable(e,!1)||!this.service.options.resizable||("default"===n?this.service.maximizeAction():"maximized"===n&&this.service.restoreAction())},Object.defineProperty(t.prototype,"isDraggable",{get:function(){var t=this.service.options;return t.draggable&&"maximized"!==t.state},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"template",void 0),i.__decorate([o.HostBinding("class.k-window-titlebar"),o.HostBinding("class.k-dialog-titlebar"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"className",null),i.__decorate([o.HostBinding("style.touch-action"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"touchAction",null),i.__decorate([o.HostListener("dblclick",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"handle",null),t=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])],t)}();e.WindowTitleBarComponent=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function t(){}var e;return e=t,Object.defineProperty(t.prototype,"container",{get:function(){return e.container},set:function(t){e.container=t},enumerable:!0,configurable:!0}),t.container=null,t=e=i.__decorate([o.Injectable()],t)}();e.WindowContainerService=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.prevented=!1}return t.prototype.preventDefault=function(){this.prevented=!0},t.prototype.isDefaultPrevented=function(){return this.prevented},t}();e.PreventableEvent=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.DIALOG_LOCALIZATION_SERVICE=new i.InjectionToken("Dialog LocalizationService")},function(t,e){t.exports=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646820184,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(7),r=n(8),a=n(0),s=n(6),c=function(){function t(t){this.dialog=t}return t.prototype.ngAfterViewInit=function(){var t=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(s.filter((function(t){return!t.isDefaultPrevented()}))).subscribe((function(){t.dialog.close()})),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe((function(e){return t.dialog.dialog.instance.action.emit(e)}))},i.__decorate([a.ViewChild(r.DialogTitleBarComponent,{static:!1}),i.__metadata("design:type",r.DialogTitleBarComponent)],t.prototype,"dialogTitleBar",void 0),i.__decorate([a.ViewChild(o.DialogActionsComponent,{static:!1}),i.__metadata("design:type",o.DialogActionsComponent)],t.prototype,"dialogActions",void 0),t}();e.DialogContentBase=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(4),r=n(6),a=n(0),s=n(11),c=n(13),l=n(12),u=n(21),d=n(17),p=n(3),f=function(){function t(t,e){this.getDialogRef=t,this.parentInjector=e}return t.prototype.get=function(t,e){return t===l.DialogRef?this.getDialogRef():this.parentInjector.get(t,e)},t}(),h=function(){function t(t,e){this.resolver=t,this.containerService=e}return t.prototype.open=function(t){var e=this.resolver.resolveComponentFactory(s.DialogComponent),n=t.appendTo||this.containerService.container;if(!n)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n ");return this.initializeDialog(t.content,e,n,{close:function(){},content:null,dialog:null,result:null},t)},t.prototype.initializeDialog=function(t,e,n,i,s){var c=this.contentFrom(t,n,i),f=n.createComponent(e,void 0,void 0,c.nodes);i.dialog=f,f.changeDetectorRef.markForCheck(),this.applyOptions(f.instance,s);var h=new o.Subject,g=function(t){t instanceof d.PreventableEvent&&(t=new l.DialogCloseResult),h.next(t||new l.DialogCloseResult),c.componentRef&&c.componentRef.destroy(),f.destroy()},m=o.merge(h,o.merge(f.instance.close,f.instance.action).pipe(r.map((function(t){return t instanceof d.PreventableEvent?new l.DialogCloseResult:t})),r.filter((function(e){if(s.preventAction){var n=function(t){return p.isString(t)||t instanceof a.TemplateRef}(t)?void 0:i;return!s.preventAction(e,n)}return!0})))).pipe(r.take(1),r.share());if(m.subscribe(g),i.close=g,i.result=m,t&&a.isDevMode()){var y=c.nodes[0]&&c.nodes[0].length>0,v=c.nodes[2]&&c.nodes[2].length>0,_=s.title&&y,b=s.actions&&v;t.prototype instanceof u.DialogContentBase?(_||b)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(y||v)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")}return i},t.prototype.applyOptions=function(t,e){t.title=e.title,t.actions=e.actions,t.actionsLayout=e.actionsLayout||"stretched",t.width=e.width,t.minWidth=e.minWidth,t.maxWidth=e.maxWidth,t.height=e.height,t.minHeight=e.minHeight,t.maxHeight=e.maxHeight,t.autoFocusedElement=e.autoFocusedElement,t.closeTitle=e.closeTitle,t.cssClass=e.cssClass,t.htmlAttributes=e.htmlAttributes,e.content instanceof a.TemplateRef&&(t.contentTemplate=e.content)},t.prototype.contentFrom=function(t,e,n){var i=e.injector.get(a.Renderer2),o=[],r=[],s=[],c=null;if("string"==typeof t)o=[i.createText(t)];else if(t&&!(t instanceof a.TemplateRef)){var l=new f((function(){return n}),e.injector),u=this.resolver.resolveComponentFactory(t);c=e.createComponent(u,void 0,l),r=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),o=[c.location.nativeElement],s=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-actions")),n.content=c}return{componentRef:c,nodes:[r,o,s]}},t=i.__decorate([a.Injectable(),i.__param(1,a.Inject(c.DialogContainerService)),i.__metadata("design:paramtypes",[a.ComponentFactoryResolver,c.DialogContainerService])],t)}();e.DialogService=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(9),a=n(5),s=n(4),c=function(){function t(t,e,n,i){this.draggable=t,this.el=e,this.renderer=n,this.service=i,this.subscriptions=new s.Subscription}return Object.defineProperty(t.prototype,"hostClass",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(s.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(s.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")})))},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},t.prototype.setDisplay=function(t){void 0===t&&(t="block"),this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?t:"none")},i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-resize-handle"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"hostClass",null),t=i.__decorate([o.Directive({selector:"[kendoWindowResizeHandle]"}),i.__param(0,o.Host()),i.__metadata("design:paramtypes",[r.DraggableDirective,o.ElementRef,o.Renderer2,a.DragResizeService])],t)}();e.ResizeHandleDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),a=n(10),s=n(2),c=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n,null,o,r)||this;return a.buttonType="button",a.window=i,a.fillMode="flat",a.icon="window-maximize",a}return i.__extends(e,t),e.prototype.onClick=function(){this.isDisabled||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.HostBinding("attr.type"),i.__metadata("design:type",String)],e.prototype,"buttonType",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",providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMaximizeAction]"}),i.__param(2,o.Optional()),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,s.LocalizationService,o.NgZone])],e)}(a.Button);e.WindowMaximizeActionDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),a=n(10),s=n(2),c=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n,null,o,r)||this;return a.buttonType="button",a.window=i,a.fillMode="flat",a.icon="window-minimize",a}return i.__extends(e,t),e.prototype.onClick=function(){this.isDisabled||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.HostBinding("attr.type"),i.__metadata("design:type",String)],e.prototype,"buttonType",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",providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMinimizeAction]"}),i.__param(2,o.Optional()),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,s.LocalizationService,o.NgZone])],e)}(a.Button);e.WindowMinimizeActionDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),a=n(10),s=n(2),c=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n,null,o,r)||this;return a.buttonType="button",a.window=i,a.fillMode="flat",a.icon="close",a}return i.__extends(e,t),e.prototype.onClick=function(){this.isDisabled||this.window.closeAction()},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"window",void 0),i.__decorate([o.HostBinding("attr.type"),i.__metadata("design:type",String)],e.prototype,"buttonType",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",providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowCloseAction]"}),i.__param(2,o.Optional()),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,s.LocalizationService,o.NgZone])],e)}(a.Button);e.WindowCloseActionDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),a=n(10),s=n(2),c=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n,null,o,r)||this;return a.buttonType="button",a.window=i,a.fillMode="flat",a.icon="window-restore",a}return i.__extends(e,t),e.prototype.onClick=function(){this.isDisabled||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.HostBinding("attr.type"),i.__metadata("design:type",String)],e.prototype,"buttonType",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",providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowRestoreAction]"}),i.__param(2,o.Optional()),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,s.LocalizationService,o.NgZone])],e)}(a.Button);e.WindowRestoreActionDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){};e.WindowSettings=i;var o=function(){};e.WindowCloseResult=o;var r=function(){};e.WindowRef=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(4),a=n(6),s=n(28),c=n(14),l=n(3),u=n(16),d=function(){function t(t,e){this.getWindowRef=t,this.parentInjector=e}return t.prototype.get=function(t,e){return t===s.WindowRef?this.getWindowRef():this.parentInjector.get(t,e)},t}(),p=function(){function t(t,e){this.resolver=t,this.containerService=e}return t.prototype.open=function(t){var e=this.resolver.resolveComponentFactory(c.WindowComponent),n=t.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.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service/\n ");var i={close:function(){},content:null,result:null,window:null},u=this.contentFrom(t.content,n,i),d=n.createComponent(e,void 0,void 0,u.nodes);i.window=d,this.applyOptions(d.instance,t);var p=new r.Subject,f=function(t){p.next(t||new s.WindowCloseResult),u.componentRef&&u.componentRef.destroy(),d.destroy()},h=r.merge(p,d.instance.close.pipe(a.map((function(t){return t||new s.WindowCloseResult})),a.filter((function(e){if(t.preventClose){var n=(r=t.content,l.isString(r)||r instanceof o.TemplateRef?void 0:i);return!t.preventClose(e,n)}var r;return!0})))).pipe(a.take(1),a.share());return h.subscribe(f),i.close=f,i.result=h,d.changeDetectorRef.markForCheck(),i},t.prototype.applyOptions=function(t,e){l.isPresent(e.htmlAttributes)&&(t.htmlAttributes=e.htmlAttributes),l.isPresent(e.cssClass)&&(t.cssClass=e.cssClass),l.isPresent(e.title)&&(t.title=e.title),l.isPresent(e.keepContent)&&(t.keepContent=e.keepContent),l.isPresent(e.width)&&(t.width=e.width),l.isPresent(e.minWidth)&&(t.minWidth=e.minWidth),l.isPresent(e.height)&&(t.height=e.height),l.isPresent(e.minHeight)&&(t.minHeight=e.minHeight),l.isPresent(e.left)&&(t.left=e.left),l.isPresent(e.top)&&(t.top=e.top),l.isPresent(e.draggable)&&(t.draggable=e.draggable),l.isPresent(e.resizable)&&(t.resizable=e.resizable),l.isPresent(e.messages&&e.messages.closeTitle)&&(t.messages.closeTitle=e.messages.closeTitle),l.isPresent(e.messages&&e.messages.restoreTitle)&&(t.messages.restoreTitle=e.messages.restoreTitle),l.isPresent(e.messages&&e.messages.maximizeTitle)&&(t.messages.maximizeTitle=e.messages.maximizeTitle),l.isPresent(e.messages&&e.messages.minimizeTitle)&&(t.messages.minimizeTitle=e.messages.minimizeTitle),l.isPresent(e.autoFocusedElement)&&(t.autoFocusedElement=e.autoFocusedElement),l.isPresent(e.state)&&(t.state=e.state,"minimized"===e.state&&(t.keepContent=!0)),e.content instanceof o.TemplateRef&&(t.contentTemplate=e.content),e.titleBarContent instanceof o.TemplateRef&&(t.titleBarTemplate=e.titleBarContent)},t.prototype.contentFrom=function(t,e,n){var i=e.injector.get(o.Renderer2),r=[],a=null;if("string"==typeof t)r=[i.createText(t)];else if(t&&!(t instanceof o.TemplateRef)){var s=new d((function(){return n}),e.injector),c=this.resolver.resolveComponentFactory(t);r=[(a=e.createComponent(c,void 0,s)).location.nativeElement],n.content=a}return{componentRef:a,nodes:[[],r]}},t=i.__decorate([o.Injectable(),i.__param(1,o.Inject(u.WindowContainerService)),i.__metadata("design:paramtypes",[o.ComponentFactoryResolver,u.WindowContainerService])],t)}();e.WindowService=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(11),a=n(8),s=n(22),c=n(38),l=n(13),u=n(31);e.DIALOG_DIRECTIVES=[r.DialogComponent,a.DialogTitleBarComponent];var d=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:[e.DIALOG_DIRECTIVES,c.DialogContainerDirective],entryComponents:[e.DIALOG_DIRECTIVES],exports:[e.DIALOG_DIRECTIVES,u.SHARED_DIRECTIVES,c.DialogContainerDirective],imports:[u.SharedModule],providers:[l.DialogContainerService,s.DialogService]})],t)}();e.DialogModule=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(39),a=n(7),s=n(40),c=n(41);e.SHARED_DIRECTIVES=[a.DialogActionsComponent,c.CustomMessagesComponent,s.LocalizedMessagesDirective];var l=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:[e.SHARED_DIRECTIVES],exports:[e.SHARED_DIRECTIVES,r.CommonModule],imports:[r.CommonModule]})],t)}();e.SharedModule=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"restoreTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"maximizeTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"minimizeTitle",void 0),e}(n(2).ComponentMessages);e.Messages=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(14),a=n(15),s=n(9),c=n(23),l=n(24),u=n(25),d=n(26),p=n(27),f=n(29),h=n(16),g=n(42),m=n(31),y=[c.ResizeHandleDirective,r.WindowComponent,a.WindowTitleBarComponent,d.WindowCloseActionDirective,u.WindowMinimizeActionDirective,l.WindowMaximizeActionDirective,p.WindowRestoreActionDirective],v=[r.WindowComponent,a.WindowTitleBarComponent],_=[r.WindowComponent,d.WindowCloseActionDirective,u.WindowMinimizeActionDirective,l.WindowMaximizeActionDirective,p.WindowRestoreActionDirective,a.WindowTitleBarComponent],b=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:[y,g.WindowContainerDirective],entryComponents:[v],exports:[_,m.SHARED_DIRECTIVES,g.WindowContainerDirective],imports:[m.SharedModule,s.DraggableModule],providers:[h.WindowContainerService,f.WindowService]})],t)}();e.WindowModule=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11);e.DialogComponent=i.DialogComponent;var o=n(8);e.DialogTitleBarComponent=o.DialogTitleBarComponent;var r=n(21);e.DialogContentBase=r.DialogContentBase;var a=n(7);e.DialogActionsComponent=a.DialogActionsComponent;var s=n(22);e.DialogService=s.DialogService;var c=n(12);e.DialogCloseResult=c.DialogCloseResult,e.DialogRef=c.DialogRef,e.DialogSettings=c.DialogSettings,e.DialogAction=c.DialogAction;var l=n(14);e.WindowComponent=l.WindowComponent;var u=n(15);e.WindowTitleBarComponent=u.WindowTitleBarComponent;var d=n(24);e.WindowMaximizeActionDirective=d.WindowMaximizeActionDirective;var p=n(25);e.WindowMinimizeActionDirective=p.WindowMinimizeActionDirective;var f=n(26);e.WindowCloseActionDirective=f.WindowCloseActionDirective;var h=n(27);e.WindowRestoreActionDirective=h.WindowRestoreActionDirective;var g=n(28);e.WindowSettings=g.WindowSettings,e.WindowRef=g.WindowRef,e.WindowCloseResult=g.WindowCloseResult;var m=n(29);e.WindowService=m.WindowService;var y=n(30);e.DialogModule=y.DialogModule;var v=n(33);e.WindowModule=v.WindowModule;var _=n(43);e.DialogsModule=_.DialogsModule},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(2),r=n(0),a=n(18),s=function(t){function e(e,n,i,o){var r=t.call(this,e,n,i)||this;return r.dialogLocalization=o,r}return i.__extends(e,t),e.prototype.get=function(e){return this.dialogLocalization?this.dialogLocalization.get(e):t.prototype.get.call(this,e)},e=i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__param(3,r.Optional()),i.__param(3,r.Inject(a.DIALOG_LOCALIZATION_SERVICE)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean,o.LocalizationService])],e)}(o.LocalizationService);e.TitleBarLocalizationService=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),a=n(3),s=function(){function t(t,e){this.window=t,this.ngZone=e}return t.prototype.process=function(t){var e=this,n=t.keyCode;switch(n){case a.Keys.up:case a.Keys.down:case a.Keys.left:case a.Keys.right:t.preventDefault(),this.ngZone.run((function(){e.handleArrow(n,t)}));break;case a.Keys.esc:this.ngZone.run((function(){e.handleEscape()}))}},t.prototype.handleArrow=function(t,e){var n=this.window.options;e.altKey?this.handleStateChange(t,n.state):(e.ctrlKey||e.metaKey)&&"default"===n.state?this.handleResize(t):this.handleDrag(t)},t.prototype.handleEscape=function(){this.window.closeAction()},t.prototype.handleDrag=function(t){var e=this.window.options;if(e.draggable){var n=this.window.currentOffsetAndPosition(),i=this.window.restoreOptions,o={},r=10;switch(t!==a.Keys.left&&t!==a.Keys.up||(r*=-1),t){case a.Keys.left:case a.Keys.right:o.left=n.x+r,e.left=o.left;break;case a.Keys.up:case a.Keys.down:o.top=n.y+r,e.top=o.top}"minimized"===e.state&&a.isPresent(i)&&(i.left=e.left,i.top=e.top),this.window.change.emit(o)}},t.prototype.handleResize=function(t){var e=this,n=this.window.options;if(n.resizable){var i,o,r=this.window.currentOffsetAndPosition(),s={},c=10;switch(t!==a.Keys.left&&t!==a.Keys.up||(c*=-1),t){case a.Keys.left:case a.Keys.right:(i=r.width+c)!==n.width&&i>=n.minWidth&&(s.width=i);break;case a.Keys.up:case a.Keys.down:(o=r.height+c)!==n.height&&o>=n.minHeight&&(s.height=o)}(a.isPresent(s.width)||a.isPresent(s.height))&&(a.OFFSET_STYLES.forEach((function(t){a.isPresent(s[t])&&(e.window.options[t]=s[t])})),this.window.change.emit(s))}},t.prototype.handleStateChange=function(t,e){"minimized"===e&&t===a.Keys.up||"maximized"===e&&t===a.Keys.down?this.window.restoreAction():"default"===e&&(t===a.Keys.up?this.window.maximizeAction():t===a.Keys.down&&this.window.minimizeAction())},t=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.DragResizeService,o.NgZone])],t)}();e.NavigationService=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(13),a=function(){function t(t,e){e.container=t}return t=i.__decorate([o.Directive({selector:"[kendoDialogContainer]"}),i.__metadata("design:paramtypes",[o.ViewContainerRef,r.DialogContainerService])],t)}();e.DialogContainerDirective=a},function(t,e){t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(2),a=n(32),s=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return i.__extends(e,t),n=e,e=n=i.__decorate([o.Directive({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}(a.Messages);e.LocalizedMessagesDirective=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(2),a=n(32),s=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return i.__extends(e,t),n=e,Object.defineProperty(e.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),e=n=i.__decorate([o.Component({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-dialog-messages, kendo-window-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}(a.Messages);e.CustomMessagesComponent=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(16),a=function(){function t(t,e){e.container=t}return t=i.__decorate([o.Directive({selector:"[kendoWindowContainer]"}),i.__metadata("design:paramtypes",[o.ViewContainerRef,r.WindowContainerService])],t)}();e.WindowContainerDirective=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(30),a=n(33),s=function(){function t(){}return t=i.__decorate([o.NgModule({exports:[r.DialogModule,a.WindowModule]})],t)}();e.DialogsModule=s},function(t,e,n){"use strict";n.r(e),n.d(e,"align",(function(){return o})),n.d(e,"addScroll",(function(){return r})),n.d(e,"applyLocationOffset",(function(){return a})),n.d(e,"boundingOffset",(function(){return f})),n.d(e,"isBodyOffset",(function(){return g})),n.d(e,"offsetParent",(function(){return h})),n.d(e,"offset",(function(){return m})),n.d(e,"parents",(function(){return y})),n.d(e,"parentScrollPosition",(function(){return b})),n.d(e,"position",(function(){return w})),n.d(e,"positionWithScroll",(function(){return S})),n.d(e,"removeScroll",(function(){return C})),n.d(e,"restrictToView",(function(){return k})),n.d(e,"scrollPosition",(function(){return v})),n.d(e,"siblingContainer",(function(){return P})),n.d(e,"siblings",(function(){return z})),n.d(e,"zIndex",(function(){return A})),n.d(e,"alignElement",(function(){return Z})),n.d(e,"domUtils",(function(){return V})),n.d(e,"utils",(function(){return W})),n.d(e,"positionElement",(function(){return q})),n.d(e,"getDocumentElement",(function(){return l})),n.d(e,"getWindow",(function(){return c})),n.d(e,"getWindowViewPort",(function(){return p})),n.d(e,"AlignPoint",(function(){return i})),n.d(e,"Collision",(function(){return E}));var i={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},o=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,a=t.margin;void 0===a&&(a={});var s=n.horizontal,c=n.vertical,l=r.horizontal,u=r.vertical,d=a.horizontal||0,p=a.vertical||0,f=e.top,h=e.left;return c===i.bottom&&(f+=e.height),c!==i.center&&c!==i.middle||(f+=Math.round(e.height/2)),u===i.bottom&&(f-=o.height,p*=-1),u!==i.center&&u!==i.middle||(f-=Math.round(o.height/2),p*=-1),s===i.right&&(h+=e.width),s!==i.center&&s!==i.middle||(h+=Math.round(e.width/2)),l===i.right&&(h-=o.width,d*=-1),l!==i.center&&l!==i.middle||(h-=Math.round(o.width/2),d*=-1),{top:f+p,left:h+d}};function r(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function a(t,e,n){var i=t.top,o=t.left;return n&&(o=0,i=0),{top:i+e.top,left:o+e.left,height:t.height,width:t.width}}function s(t){return t.ownerDocument||t.document||t}var c=function(t){return s(t).defaultView},l=function(t){return s(t).documentElement},u=0;function d(){if(!u&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),u=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return u}function p(t){var e=c(t),n=l(t),i={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=d()),i}var f=function(t){if(!t.getBoundingClientRect){var e=p(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},h=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||l(t)},g=function(t){return h(t)===t.ownerDocument.body},m=function(t){var e=t.getBoundingClientRect(),n=e.left,i=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,i=e.left,o=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var r=t.getBoundingClientRect();return t.style.display=n,t.style.left=i,t.style.position=o,r}(t)),{top:i,left:n,height:e.height,width:e.width}},y=function(t,e){for(var n=[],i=t.parentNode;i&&(n.push(i),i!==e);)i=i.parentNode;return n};function v(t){var e=l(t),n=c(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var _=function(t){return t===(t.ownerDocument||{}).body?v(t):{x:t.scrollLeft,y:t.scrollTop}};function b(t){var e=h(t);return e?_(e):{x:0,y:0}}var w=function(t,e){var n=c(t),i=n.getComputedStyle(t),o=m(t),r=e||h(t),a=t.ownerDocument,s=r!==a.body&&r!==a.documentElement,l={top:0,left:0};if("fixed"!==i.position&&s){var u=n.getComputedStyle(r);(l=m(r)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}},S=function(t,e,n){void 0===n&&(n=1);var i=e?h(e):null,o=w(t,i),r=o.top,a=o.left,s=o.height,c=o.width,l=function(t,e){return t?_(t):b(e)}(i,t),u=l.x,d=l.y,p=t.ownerDocument,f=i===p.body||i===p.documentElement?1:n;return{top:r+d*f,left:a+u*f,height:s,width:c}};function C(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var E={fit:"fit",flip:"flip",none:"none"},O=function(t,e,n){var i=0;return t+e>n&&(i=n-(t+e)),t<0&&(i=-t),i},D=function(t){var e=t.offset,n=t.size,o=t.anchorSize,r=t.viewPortSize,a=t.anchorAlignPoint,s=t.elementAlignPoint,c=t.margin,l=0,u=s===i.center||s===i.middle,d=a===i.center||a===i.middle,p=2*c;if(s!==a&&!u&&!d){var f=a===i.top||a===i.left;e<0&&f?e+(l=n+o+p)+n>r&&(l=0):e>=0&&!f&&(e+n>r&&(l+=-(o+n+p)),e+l<0&&(l=0))}return l},k=function(t){var e=t.anchorRect,n=t.anchorAlign,i=t.elementRect,o=t.elementAlign,r=t.collisions,a=t.viewPort,s=t.margin;void 0===s&&(s={});var c=i.top,l=i.left,u=i.height,d=i.width,p=a.height,f=a.width,h=s.horizontal||0,g=s.vertical||0,m=0,y=0,v=r.vertical===E.fit,_=r.horizontal===E.fit,b=r.vertical===E.flip,w=r.horizontal===E.flip;v&&(y+=O(c,u,p)),_&&(m+=O(l,d,f)),b&&(y+=D({margin:g,offset:c,size:u,anchorSize:e.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),w&&(m+=D({margin:h,offset:l,size:d,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var S=b&&0!==y,C=w&&0!==m,k=v&&0!==y,z=_&&0!==m;return{flipped:C||S,fitted:k||z,flip:{horizontal:C,vertical:S},fit:{horizontal:z,vertical:k},offset:{left:m,top:y}}},z=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},P=function(t,e){for(var n,i,o=y(t),r=e;r&&(n=z(r),!(i=o.reduce((function(t,e){return t.concat(n.filter((function(t){return t===e})))}),[])[0]));)r=r.parentElement;return i};function A(t,e){if(!t||!e)return null;var n=P(t,e);if(!n)return null;var i=[t].concat(y(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,i=parseInt(n,10);return i>t?i:t}),0);return i?i+1:null}var x,T,I,R=(x=function(t){if(!j())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var i=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),i},I=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return I||(T=x.apply(void 0,t),I=!0),T}),j=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},W={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:R,canUseDOM:j},M=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],B=function(){return W.canUseDOM()?window:null},L=/auto|scroll/,H=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},N=function(t){if(!t||!W.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},F=function(){return W.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},V={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:r,align:o,boundingOffset:f,getFontStyles:function(t){var e=B();if(!e||!t)return[];var n=e.getComputedStyle(t);return M.map((function(t){return{key:t,value:n[t]}}))},getWindow:B,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?m(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,i=n.left,o=n.top,r=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var a=m(t);return t.style.left=i,t.style.top=o,t.offsetHeight,t.style.transition=r,a},position:function(t,e,n){return t&&e?S(t,e,n||1):null},removeScroll:C,restrictToView:k,scrollPosition:v,scrollableParents:function(t){var e=[];if(!W.canUseDOM())return e;for(var n=t.parentElement;n;)(L.test(H(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e},getRelativeContextElement:N,stackingElementOffset:function(t){var e=N(t);return e?m(e):null},stackingElementScroll:function(t){var e=N(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=N(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(N(t))},windowViewPort:p,zoomLevel:F,isZoomed:function(){return F()>1},zIndex:function(t,e){if(!t||!W.canUseDOM())return null;var n=P(t,e);if(!n)return null;var i=[t].concat(y(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,i=parseInt(n,10);return i>t?i:t}),0);return i?i+1:null}},K=function(t,e){return t?{x:0,y:0}:V.scrollPosition(e)},Z=function(t){var e=t.anchor,n=t.element,i=t.anchorAlign,o=t.elementAlign,r=t.margin,a=t.offset,s=t.positionMode,c=t.scale||1,l="fixed"===s||!V.hasOffsetParent(n)?function(t,e,n,i){var o=K(t,e),r=W.eitherRect(V.offset(t),n),a=2*i,s=V.stackingElementScroll(e);1!==i&&s&&(s.x/=a,s.y/=a);var c=V.stackingElementOffset(e);return 1!==i&&c&&(c.left/=a,c.top/=a),V.removeScroll(V.addScroll(W.removeStackingOffset(W.scaleRect(r,i),c),s),o)}(e,n,a,c):function(t,e,n,i){var o=W.eitherRect(V.position(t,e,i),n);return W.scaleRect(o,i)}(e,n,a,c),u=W.scaleRect(V.offset(n),c);return V.align({anchorAlign:i,anchorRect:l,elementAlign:o,elementRect:u,margin:r})},q=function(t){var e=t.anchor,n=t.currentLocation,i=t.element,o=t.anchorAlign,r=t.elementAlign,a=t.collisions,s=t.margin,c=t.scale||1,l=V.offsetAtPoint(i,n),u=W.scaleRect(l,c),d=W.scaleRect(V.offset(e),c),p=W.eitherRect(d,n),f=t.viewPort||V.windowViewPort(i);f.width=f.width/c,f.height=f.height/c;var h=V.restrictToView({anchorAlign:o,anchorRect:p,collisions:a,elementAlign:r,elementRect:u,margin:s,viewPort:f}),g=V.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:g}}}])}));
|