@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.
Files changed (196) hide show
  1. package/bundles/kendo-angular-dialog.umd.js +5 -0
  2. package/{dist/es2015/common → common}/actions-layout.d.ts +0 -0
  3. package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
  4. package/{dist/es2015/common → common}/util.d.ts +1 -1
  5. package/{dist/es2015/dialog → dialog}/dialog-actions.component.d.ts +14 -7
  6. package/{dist/es2015/dialog → dialog}/dialog-container.directive.d.ts +3 -0
  7. package/dialog/dialog-container.service.d.ts +16 -0
  8. package/{dist/es2015/dialog → dialog}/dialog-content-base.d.ts +4 -1
  9. package/{dist/es2015/dialog → dialog}/dialog-titlebar.component.d.ts +5 -2
  10. package/{dist/es2015/dialog → dialog}/dialog.component.d.ts +13 -6
  11. package/{dist/es2015/dialog → dialog}/dialog.service.d.ts +5 -1
  12. package/dialog/models/dialog-action.d.ts +28 -0
  13. package/dialog/models/dialog-close-result.d.ts +11 -0
  14. package/dialog/models/dialog-ref.d.ts +38 -0
  15. package/dialog/models/dialog-result.d.ts +14 -0
  16. package/{dist/es2015/dialog → dialog/models}/dialog-settings.d.ts +5 -73
  17. package/{dist/es/localization/dialog-localization.service.js → dialog/models/index.d.ts} +5 -5
  18. package/{dist/es2015/dialog.module.d.ts → dialog.module.d.ts} +11 -0
  19. package/{dist/es2015/dialogs.module.d.ts → dialogs.module.d.ts} +6 -0
  20. package/{dist/es2015 → esm2015}/common/actions-layout.js +1 -0
  21. package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
  22. package/{dist/es2015 → esm2015}/common/util.js +0 -5
  23. package/esm2015/dialog/dialog-actions.component.js +115 -0
  24. package/esm2015/dialog/dialog-container.directive.js +30 -0
  25. package/esm2015/dialog/dialog-container.service.js +23 -0
  26. package/{dist/es2015 → esm2015}/dialog/dialog-content-base.js +18 -10
  27. package/esm2015/dialog/dialog-titlebar.component.js +136 -0
  28. package/{dist/es2015 → esm2015}/dialog/dialog.component.js +123 -113
  29. package/{dist/es2015 → esm2015}/dialog/dialog.service.js +16 -15
  30. package/{dist/es2015/window/window-container.service.d.ts → esm2015/dialog/models/dialog-action.js} +3 -5
  31. package/esm2015/dialog/models/dialog-close-result.js +11 -0
  32. package/esm2015/dialog/models/dialog-ref.js +11 -0
  33. package/{dist/es/common/actions-layout.js → esm2015/dialog/models/dialog-result.js} +1 -0
  34. package/{dist/es2015/dialog/dialog-container.service.d.ts → esm2015/dialog/models/dialog-settings.js} +3 -5
  35. package/esm2015/dialog/models/index.js +9 -0
  36. package/{dist/es2015 → esm2015}/dialog.module.js +20 -13
  37. package/{dist/es → esm2015}/dialogs.module.js +12 -12
  38. package/esm2015/kendo-angular-dialog.js +8 -0
  39. package/esm2015/localization/custom-messages.component.js +41 -0
  40. package/{dist/es2015 → esm2015}/localization/dialog-localization.service.js +0 -0
  41. package/esm2015/localization/localized-messages.directive.js +40 -0
  42. package/esm2015/localization/messages.js +28 -0
  43. package/esm2015/localization/titlebar-localization.service.js +44 -0
  44. package/{dist/es2015 → esm2015}/main.js +8 -2
  45. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  46. package/esm2015/shared.module.js +38 -0
  47. package/esm2015/window/actions/window-close-action.directive.js +59 -0
  48. package/esm2015/window/actions/window-maximize-action.directive.js +65 -0
  49. package/esm2015/window/actions/window-minimize-action.directive.js +65 -0
  50. package/esm2015/window/actions/window-restore-action.directive.js +65 -0
  51. package/{dist/es2015 → esm2015}/window/drag-resize.service.js +9 -11
  52. package/esm2015/window/models/index.js +10 -0
  53. package/esm2015/window/models/window-close-result.js +9 -0
  54. package/{dist/es2015/window/window-events.js → esm2015/window/models/window-messages.js} +1 -0
  55. package/esm2015/window/models/window-options.js +5 -0
  56. package/{dist/es2015/window/window-settings.js → esm2015/window/models/window-ref.js} +0 -11
  57. package/esm2015/window/models/window-settings.js +10 -0
  58. package/esm2015/window/models/window-types.js +5 -0
  59. package/{dist/es2015 → esm2015}/window/navigation.service.js +10 -11
  60. package/esm2015/window/window-container.directive.js +30 -0
  61. package/esm2015/window/window-container.service.js +23 -0
  62. package/{dist/es → esm2015}/window/window-events.js +1 -0
  63. package/{dist/es2015 → esm2015}/window/window-resize-handle.directive.js +21 -26
  64. package/{dist/es2015 → esm2015}/window/window-titlebar.component.js +35 -34
  65. package/{dist/es2015 → esm2015}/window/window.component.js +168 -187
  66. package/{dist/es2015 → esm2015}/window/window.service.js +15 -14
  67. package/{dist/es2015 → esm2015}/window.module.js +29 -17
  68. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dialog.js} +1023 -926
  69. package/{dist/es2015/shared.module.d.ts → kendo-angular-dialog.d.ts} +3 -7
  70. package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
  71. package/{dist/es2015/localization → localization}/dialog-localization.service.d.ts +0 -0
  72. package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
  73. package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
  74. package/{dist/es2015/localization → localization}/titlebar-localization.service.d.ts +3 -0
  75. package/{dist/es2015/main.d.ts → main.d.ts} +7 -2
  76. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  77. package/package.json +33 -105
  78. package/schematics/ngAdd/index.js +5 -2
  79. package/schematics/ngAdd/index.js.map +1 -1
  80. package/shared.module.d.ts +21 -0
  81. package/{dist/es2015/window → window}/actions/window-close-action.directive.d.ts +3 -0
  82. package/{dist/es2015/window → window}/actions/window-maximize-action.directive.d.ts +4 -1
  83. package/{dist/es2015/window → window}/actions/window-minimize-action.directive.d.ts +4 -1
  84. package/{dist/es2015/window → window}/actions/window-restore-action.directive.d.ts +4 -1
  85. package/{dist/es2015/window → window}/drag-resize.service.d.ts +8 -4
  86. package/window/models/index.d.ts +10 -0
  87. package/window/models/window-close-result.d.ts +9 -0
  88. package/window/models/window-messages.d.ts +26 -0
  89. package/window/models/window-options.d.ts +20 -0
  90. package/window/models/window-ref.d.ts +40 -0
  91. package/{dist/es2015/window → window/models}/window-settings.d.ts +4 -84
  92. package/window/models/window-types.d.ts +11 -0
  93. package/{dist/es2015/window → window}/navigation.service.d.ts +4 -1
  94. package/{dist/es2015/window → window}/window-container.directive.d.ts +3 -0
  95. package/window/window-container.service.d.ts +16 -0
  96. package/{dist/es2015/window → window}/window-events.d.ts +0 -0
  97. package/{dist/es2015/window → window}/window-resize-handle.directive.d.ts +4 -1
  98. package/{dist/es2015/window → window}/window-titlebar.component.d.ts +6 -3
  99. package/{dist/es2015/window → window}/window.component.d.ts +42 -25
  100. package/{dist/es2015/window → window}/window.service.d.ts +5 -1
  101. package/window.module.d.ts +45 -0
  102. package/dist/cdn/js/kendo-angular-dialog.js +0 -20
  103. package/dist/cdn/main.js +0 -5
  104. package/dist/es/common/preventable-event.js +0 -29
  105. package/dist/es/common/util.js +0 -214
  106. package/dist/es/dialog/dialog-actions.component.js +0 -89
  107. package/dist/es/dialog/dialog-container.directive.js +0 -31
  108. package/dist/es/dialog/dialog-container.service.js +0 -31
  109. package/dist/es/dialog/dialog-content-base.js +0 -45
  110. package/dist/es/dialog/dialog-settings.js +0 -46
  111. package/dist/es/dialog/dialog-titlebar.component.js +0 -94
  112. package/dist/es/dialog/dialog.component.js +0 -462
  113. package/dist/es/dialog/dialog.service.js +0 -214
  114. package/dist/es/dialog.module.js +0 -56
  115. package/dist/es/index.js +0 -22
  116. package/dist/es/localization/custom-messages.component.js +0 -44
  117. package/dist/es/localization/localized-messages.directive.js +0 -35
  118. package/dist/es/localization/messages.js +0 -34
  119. package/dist/es/localization/titlebar-localization.service.js +0 -34
  120. package/dist/es/main.js +0 -21
  121. package/dist/es/package-metadata.js +0 -15
  122. package/dist/es/shared.module.js +0 -34
  123. package/dist/es/window/actions/window-close-action.directive.js +0 -63
  124. package/dist/es/window/actions/window-maximize-action.directive.js +0 -75
  125. package/dist/es/window/actions/window-minimize-action.directive.js +0 -75
  126. package/dist/es/window/actions/window-restore-action.directive.js +0 -75
  127. package/dist/es/window/drag-resize.service.js +0 -351
  128. package/dist/es/window/navigation.service.js +0 -155
  129. package/dist/es/window/window-container.directive.js +0 -31
  130. package/dist/es/window/window-container.service.js +0 -31
  131. package/dist/es/window/window-resize-handle.directive.js +0 -78
  132. package/dist/es/window/window-settings.js +0 -34
  133. package/dist/es/window/window-titlebar.component.js +0 -144
  134. package/dist/es/window/window.component.js +0 -808
  135. package/dist/es/window/window.service.js +0 -214
  136. package/dist/es/window.module.js +0 -76
  137. package/dist/es2015/dialog/dialog-actions.component.js +0 -98
  138. package/dist/es2015/dialog/dialog-container.directive.js +0 -30
  139. package/dist/es2015/dialog/dialog-container.service.js +0 -23
  140. package/dist/es2015/dialog/dialog-settings.js +0 -30
  141. package/dist/es2015/dialog/dialog-titlebar.component.js +0 -106
  142. package/dist/es2015/dialogs.module.js +0 -41
  143. package/dist/es2015/index.d.ts +0 -22
  144. package/dist/es2015/index.js +0 -22
  145. package/dist/es2015/index.metadata.json +0 -1
  146. package/dist/es2015/localization/custom-messages.component.js +0 -36
  147. package/dist/es2015/localization/localized-messages.directive.js +0 -35
  148. package/dist/es2015/localization/messages.js +0 -28
  149. package/dist/es2015/localization/titlebar-localization.service.js +0 -31
  150. package/dist/es2015/shared.module.js +0 -31
  151. package/dist/es2015/window/actions/window-close-action.directive.js +0 -60
  152. package/dist/es2015/window/actions/window-maximize-action.directive.js +0 -68
  153. package/dist/es2015/window/actions/window-minimize-action.directive.js +0 -68
  154. package/dist/es2015/window/actions/window-restore-action.directive.js +0 -68
  155. package/dist/es2015/window/window-container.directive.js +0 -30
  156. package/dist/es2015/window/window-container.service.js +0 -23
  157. package/dist/es2015/window.module.d.ts +0 -28
  158. package/dist/fesm5/index.js +0 -3474
  159. package/dist/npm/common/actions-layout.js +0 -6
  160. package/dist/npm/common/preventable-event.js +0 -31
  161. package/dist/npm/common/util.js +0 -219
  162. package/dist/npm/dialog/dialog-actions.component.js +0 -91
  163. package/dist/npm/dialog/dialog-container.directive.js +0 -33
  164. package/dist/npm/dialog/dialog-container.service.js +0 -33
  165. package/dist/npm/dialog/dialog-content-base.js +0 -47
  166. package/dist/npm/dialog/dialog-settings.js +0 -48
  167. package/dist/npm/dialog/dialog-titlebar.component.js +0 -96
  168. package/dist/npm/dialog/dialog.component.js +0 -464
  169. package/dist/npm/dialog/dialog.service.js +0 -216
  170. package/dist/npm/dialog.module.js +0 -58
  171. package/dist/npm/dialogs.module.js +0 -46
  172. package/dist/npm/index.js +0 -40
  173. package/dist/npm/localization/custom-messages.component.js +0 -46
  174. package/dist/npm/localization/dialog-localization.service.js +0 -11
  175. package/dist/npm/localization/localized-messages.directive.js +0 -37
  176. package/dist/npm/localization/messages.js +0 -36
  177. package/dist/npm/localization/titlebar-localization.service.js +0 -36
  178. package/dist/npm/main.js +0 -45
  179. package/dist/npm/package-metadata.js +0 -17
  180. package/dist/npm/shared.module.js +0 -36
  181. package/dist/npm/window/actions/window-close-action.directive.js +0 -65
  182. package/dist/npm/window/actions/window-maximize-action.directive.js +0 -77
  183. package/dist/npm/window/actions/window-minimize-action.directive.js +0 -77
  184. package/dist/npm/window/actions/window-restore-action.directive.js +0 -77
  185. package/dist/npm/window/drag-resize.service.js +0 -353
  186. package/dist/npm/window/navigation.service.js +0 -157
  187. package/dist/npm/window/window-container.directive.js +0 -33
  188. package/dist/npm/window/window-container.service.js +0 -33
  189. package/dist/npm/window/window-events.js +0 -6
  190. package/dist/npm/window/window-resize-handle.directive.js +0 -80
  191. package/dist/npm/window/window-settings.js +0 -36
  192. package/dist/npm/window/window-titlebar.component.js +0 -146
  193. package/dist/npm/window/window.component.js +0 -810
  194. package/dist/npm/window/window.service.js +0 -216
  195. package/dist/npm/window.module.js +0 -78
  196. package/dist/systemjs/kendo-angular-dialog.js +0 -5
@@ -1,216 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var rxjs_1 = require("rxjs");
10
- var operators_1 = require("rxjs/operators");
11
- var window_settings_1 = require("./window-settings");
12
- var window_component_1 = require("./window.component");
13
- var util_1 = require("../common/util");
14
- var window_container_service_1 = require("../window/window-container.service");
15
- var isNotComponent = function (component) { return util_1.isString(component) || component instanceof core_1.TemplateRef; };
16
- var ɵ0 = isNotComponent;
17
- exports.ɵ0 = ɵ0;
18
- var WindowInjector = /** @class */ (function () {
19
- function WindowInjector(getWindowRef, parentInjector) {
20
- this.getWindowRef = getWindowRef;
21
- this.parentInjector = parentInjector;
22
- }
23
- WindowInjector.prototype.get = function (token, notFoundValue) {
24
- if (token === window_settings_1.WindowRef) {
25
- return this.getWindowRef();
26
- }
27
- return this.parentInjector.get(token, notFoundValue);
28
- };
29
- return WindowInjector;
30
- }());
31
- /**
32
- * A service for opening Windows dynamically
33
- * ([see example]({% slug service_window %})).
34
- */
35
- var WindowService = /** @class */ (function () {
36
- function WindowService(
37
- /**
38
- * @hidden
39
- */
40
- resolver, containerService) {
41
- this.resolver = resolver;
42
- this.containerService = containerService;
43
- }
44
- /**
45
- * Opens a Window component.
46
- *
47
- * @param {WindowSettings} settings - The settings that define the Window.
48
- * @returns {WindowRef} - A reference to the Window object.
49
- *
50
- * @example
51
- *
52
- * ```ts-no-run
53
- * _@Component({
54
- * selector: 'my-app',
55
- * template: `
56
- * <button kendoButton (click)="open()">Open window</button>
57
- * <div kendoWindowContainer></div>
58
- * `
59
- * })
60
- * export class AppComponent {
61
- * constructor( private windowService: WindowService ) {}
62
- *
63
- * public open() {
64
- * var window = this.windowService.open({
65
- * title: "My window",
66
- * content: "My content!"
67
- * });
68
- *
69
- * window.result.subscribe((result) => {
70
- * if (result instanceof WindowCloseResult) {
71
- * console.log("Window was closed");
72
- * }
73
- * });
74
- * }
75
- * }
76
- * ```
77
- *
78
- */
79
- WindowService.prototype.open = function (settings) {
80
- var factory = this.resolver.resolveComponentFactory(window_component_1.WindowComponent);
81
- var container = settings.appendTo || this.containerService.container;
82
- if (!container) {
83
- 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 ");
84
- }
85
- var windowRef = {
86
- close: function () { },
87
- content: null,
88
- result: null,
89
- window: null
90
- };
91
- var content = this.contentFrom(settings.content, container, windowRef);
92
- var window = container.createComponent(factory, undefined, undefined, content.nodes);
93
- windowRef.window = window;
94
- this.applyOptions(window.instance, settings);
95
- var apiClose = new rxjs_1.Subject();
96
- var close = function (e) {
97
- apiClose.next(e || new window_settings_1.WindowCloseResult());
98
- if (content.componentRef) {
99
- content.componentRef.destroy();
100
- }
101
- window.destroy();
102
- };
103
- var result = rxjs_1.merge(apiClose, window.instance.close.pipe(operators_1.map(function (e) { return (e ? e : new window_settings_1.WindowCloseResult()); }), operators_1.filter(function (e) {
104
- if (settings.preventClose) {
105
- // add windowRef only when using component
106
- var windowRefParameter = isNotComponent(settings.content) ? undefined : windowRef;
107
- return !settings.preventClose(e, windowRefParameter);
108
- }
109
- return true;
110
- }))).pipe(operators_1.take(1),
111
- // Takes care for multiple subscriptions:
112
- // We subscribe internally and the user may subscribe to get a close result - window.result.subscribe().
113
- // This causes multiple subscriptions to the same source and thus multiple emissions. share() solves that.
114
- operators_1.share());
115
- result.subscribe(close);
116
- windowRef.close = close;
117
- windowRef.result = result;
118
- window.changeDetectorRef.markForCheck();
119
- return windowRef;
120
- };
121
- WindowService.prototype.applyOptions = function (instance, options) {
122
- if (util_1.isPresent(options.htmlAttributes)) {
123
- instance.htmlAttributes = options.htmlAttributes;
124
- }
125
- if (util_1.isPresent(options.cssClass)) {
126
- instance.cssClass = options.cssClass;
127
- }
128
- if (util_1.isPresent(options.title)) {
129
- instance.title = options.title;
130
- }
131
- if (util_1.isPresent(options.keepContent)) {
132
- instance.keepContent = options.keepContent;
133
- }
134
- if (util_1.isPresent(options.width)) {
135
- instance.width = options.width;
136
- }
137
- if (util_1.isPresent(options.minWidth)) {
138
- instance.minWidth = options.minWidth;
139
- }
140
- if (util_1.isPresent(options.height)) {
141
- instance.height = options.height;
142
- }
143
- if (util_1.isPresent(options.minHeight)) {
144
- instance.minHeight = options.minHeight;
145
- }
146
- if (util_1.isPresent(options.left)) {
147
- instance.left = options.left;
148
- }
149
- if (util_1.isPresent(options.top)) {
150
- instance.top = options.top;
151
- }
152
- if (util_1.isPresent(options.draggable)) {
153
- instance.draggable = options.draggable;
154
- }
155
- if (util_1.isPresent(options.resizable)) {
156
- instance.resizable = options.resizable;
157
- }
158
- if (util_1.isPresent(options.messages && options.messages.closeTitle)) {
159
- instance.messages.closeTitle = options.messages.closeTitle;
160
- }
161
- if (util_1.isPresent(options.messages && options.messages.restoreTitle)) {
162
- instance.messages.restoreTitle = options.messages.restoreTitle;
163
- }
164
- if (util_1.isPresent(options.messages && options.messages.maximizeTitle)) {
165
- instance.messages.maximizeTitle = options.messages.maximizeTitle;
166
- }
167
- if (util_1.isPresent(options.messages && options.messages.minimizeTitle)) {
168
- instance.messages.minimizeTitle = options.messages.minimizeTitle;
169
- }
170
- if (util_1.isPresent(options.autoFocusedElement)) {
171
- instance.autoFocusedElement = options.autoFocusedElement;
172
- }
173
- if (util_1.isPresent(options.state)) {
174
- instance.state = options.state;
175
- if (options.state === 'minimized') {
176
- instance.keepContent = true;
177
- }
178
- }
179
- if (options.content instanceof core_1.TemplateRef) {
180
- instance.contentTemplate = options.content;
181
- }
182
- if (options.titleBarContent instanceof core_1.TemplateRef) {
183
- instance.titleBarTemplate = options.titleBarContent;
184
- }
185
- };
186
- WindowService.prototype.contentFrom = function (content, container, windowRef) {
187
- var renderer = container.injector.get(core_1.Renderer2);
188
- var nodes = [];
189
- var componentRef = null;
190
- if (typeof content === 'string') {
191
- nodes = [renderer.createText(content)];
192
- }
193
- else if (content && !(content instanceof core_1.TemplateRef)) {
194
- var injector = new WindowInjector(function () { return windowRef; }, container.injector);
195
- var factory = this.resolver.resolveComponentFactory(content);
196
- componentRef = container.createComponent(factory, undefined, injector);
197
- nodes = [componentRef.location.nativeElement];
198
- windowRef.content = componentRef;
199
- }
200
- return {
201
- componentRef: componentRef,
202
- nodes: [
203
- [],
204
- nodes // Content
205
- ]
206
- };
207
- };
208
- WindowService = tslib_1.__decorate([
209
- core_1.Injectable(),
210
- tslib_1.__param(1, core_1.Inject(window_container_service_1.WindowContainerService)),
211
- tslib_1.__metadata("design:paramtypes", [core_1.ComponentFactoryResolver,
212
- window_container_service_1.WindowContainerService])
213
- ], WindowService);
214
- return WindowService;
215
- }());
216
- exports.WindowService = WindowService;
@@ -1,78 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var window_component_1 = require("./window/window.component");
10
- var window_titlebar_component_1 = require("./window/window-titlebar.component");
11
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
12
- var window_resize_handle_directive_1 = require("./window/window-resize-handle.directive");
13
- var window_maximize_action_directive_1 = require("./window/actions/window-maximize-action.directive");
14
- var window_minimize_action_directive_1 = require("./window/actions/window-minimize-action.directive");
15
- var window_close_action_directive_1 = require("./window/actions/window-close-action.directive");
16
- var window_restore_action_directive_1 = require("./window/actions/window-restore-action.directive");
17
- var window_service_1 = require("./window/window.service");
18
- var window_container_service_1 = require("./window/window-container.service");
19
- var window_container_directive_1 = require("./window/window-container.directive");
20
- var shared_module_1 = require("./shared.module");
21
- var WINDOW_DIRECTIVES = [
22
- window_resize_handle_directive_1.ResizeHandleDirective,
23
- window_component_1.WindowComponent,
24
- window_titlebar_component_1.WindowTitleBarComponent,
25
- window_close_action_directive_1.WindowCloseActionDirective,
26
- window_minimize_action_directive_1.WindowMinimizeActionDirective,
27
- window_maximize_action_directive_1.WindowMaximizeActionDirective,
28
- window_restore_action_directive_1.WindowRestoreActionDirective
29
- ];
30
- var ENTRY_COMPONENTS = [
31
- window_component_1.WindowComponent,
32
- window_titlebar_component_1.WindowTitleBarComponent
33
- ];
34
- var exportedModules = [
35
- window_component_1.WindowComponent,
36
- window_close_action_directive_1.WindowCloseActionDirective,
37
- window_minimize_action_directive_1.WindowMinimizeActionDirective,
38
- window_maximize_action_directive_1.WindowMaximizeActionDirective,
39
- window_restore_action_directive_1.WindowRestoreActionDirective,
40
- window_titlebar_component_1.WindowTitleBarComponent
41
- ];
42
- /**
43
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
44
- * definition for the Window component. Imports `WindowModule` into the
45
- * [root module]({{ site.data.urls.angular['ngmodules'] }}#angular-modularity)
46
- * of your application or into any other sub-module that will use the Window component.
47
- *
48
- * @example
49
- * ```ts-no-run
50
- * import { NgModule } from '@angular/core';
51
- * import { BrowserModule } from '@angular/platform-browser';
52
- * import { WindowModule } from '@progress/kendo-angular-window';
53
- * import { AppComponent } from './app.component';
54
- *
55
- * _@NgModule({
56
- * bootstrap: [AppComponent],
57
- * declarations: [AppComponent],
58
- * imports: [BrowserModule, WindowModule]
59
- * })
60
- * export class AppModule {
61
- * }
62
- * ```
63
- */
64
- var WindowModule = /** @class */ (function () {
65
- function WindowModule() {
66
- }
67
- WindowModule = tslib_1.__decorate([
68
- core_1.NgModule({
69
- declarations: [WINDOW_DIRECTIVES, window_container_directive_1.WindowContainerDirective],
70
- entryComponents: [ENTRY_COMPONENTS],
71
- exports: [exportedModules, shared_module_1.SHARED_DIRECTIVES, window_container_directive_1.WindowContainerDirective],
72
- imports: [shared_module_1.SharedModule, kendo_angular_common_1.DraggableModule],
73
- providers: [window_container_service_1.WindowContainerService, window_service_1.WindowService]
74
- })
75
- ], WindowModule);
76
- return WindowModule;
77
- }());
78
- exports.WindowModule = WindowModule;
@@ -1,5 +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
- System.register("@progress/kendo-angular-dialog",["tslib","@angular/core","@progress/kendo-angular-common","@angular/animations","@progress/kendo-licensing","@progress/kendo-angular-l10n","rxjs/operators","rxjs","@progress/kendo-angular-buttons","@progress/kendo-popup-common","@angular/common"],function(r){var s,a,c,l,d,p,u,g,h,m,f;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){s=t(e)},function(e){a=t(e)},function(e){c=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){p=t(e)},function(e){u=t(e)},function(e){g=t(e)},function(e){h=t(e)},function(e){m=t(e)},function(e){f=t(e)}],execute:function(){function n(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,o;i=[function(e,t){e.exports=a},function(e,t){e.exports=s},function(e,t){e.exports=p},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});function n(e){return String(e).trim().split(" ")}var i=t(5),s=t(6),r=(o.isPresent=function(e){return null!=e},o.isTruthy=function(e){return!!e},/^(?:a|input|select|textarea|button|object)$/i),a=((t=o.Keys||(o.Keys={}))[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",o.DIALOG_ELEMENTS_HANDLING_ESC_KEY="k-dialog-wrapper k-dialog-buttongroup k-dialog-action",o.DIALOG_ELEMENTS_HANDLING_ARROWS="k-dialog-buttongroup",o.WINDOW_CLASSES="k-window",o.hasClasses=function(e,t){var i=n(t);return Boolean(n(e.className).find(function(e){return 0<=i.indexOf(e)}))},o.isVisible=function(e){var t=e.getBoundingClientRect();return!(!t.width||!t.height)&&"hidden"!==window.getComputedStyle(e).visibility},o.isFocusable=function(e,t){var i,n;return void 0===t&&(t=!0),!!e.tagName&&(i=e.tagName.toLowerCase(),n=null!==(n=e.getAttribute("tabIndex"))&&!isNaN(n)&&-1<n,(r.test(i)?!e.disabled:n)&&(!t||o.isVisible(e)))},o.setHTMLAttributes=function(e,t,i){for(var n in e)n&&t.setAttribute(i,n,e[n])},o.parseCSSClassNames=function(e){return o.isObject(e)?a(e):o.isString(e)?c(e):Array.isArray(e)?l(e):void 0},function(i){var n=[];return Object.keys(i).forEach(function(e){var t=o.splitStringToArray(e);i[e]&&t[0]&&n.push.apply(n,t)}),n}),c=function(e){var t=[];return o.splitStringToArray(e).forEach(function(e){t.push(e)}),t},l=function(e){var t=[];return e.forEach(function(e){e=o.splitStringToArray(e);e[0]&&t.push.apply(t,e)}),t};o.focusableSelector=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),o.preventDefault=function(e){e=e.originalEvent;e.stopPropagation(),e.preventDefault()},o.isWindowAvailable=function(){return"undefined"!=typeof window},o.preventOnDblClick=function(t){return function(e){return i.of(e).pipe(s.delay(150),s.takeUntil(t))}},o.RESIZE_DIRECTIONS=["n","e","s","w","se","sw","ne","nw"],o.OFFSET_STYLES=["top","left","width","height"],o.isString=function(e){return e instanceof String||"string"==typeof e},o.isObject=function(e){return o.isPresent(e)&&!Array.isArray(e)&&"object"==typeof e},o.isNumber=function(e){return"number"==typeof e&&isFinite(e)},o.createValueWithUnit=function(e){return e+(o.isNumber(e)?"px":"")},o.splitStringToArray=function(e){return e.trim().replace(/\s+/g," ").split(" ")},o.findPrimaryButton=function(e){for(var t=e.length-1;0<=t;t--)for(var i=e[t].classList,n=0;n<i.length;n++)if(i[n].endsWith("-primary"))return e[t]}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function n(e,t){return function(i){return e.kendoDrag.pipe(c.takeUntil(e.kendoRelease.pipe(c.tap(function(){t.emit()}))),c.map(function(e){var t=e.pageX,e=e.pageY;return{originalX:i.pageX,originalY:i.pageY,pageX:t,pageY:e}}))}}var o=i(1),s=i(0),r=i(5),c=i(6),d=i(3),a=i(41),l=10002,p={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},i=(u.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()},u.prototype.init=function(e){var t=this.options.state,i=this.options;this.window=e,"default"!==t&&(this.restoreOptions=Object.assign({},i)),"minimized"===t&&(i.height=0,i.minHeight=0),"maximized"===t&&(i.position="fixed")},u.prototype.onDrag=function(e){var r=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,s;r.dragSubscription=e.kendoPress.pipe(c.tap(function(e){e.isTouch||d.preventDefault(e),r.focus.emit(),o=r.currentPosition(),s=!1}),c.switchMap(n(e,r.dragEnd))).subscribe(function(e){var t=e.pageX,i=e.pageY,n=e.originalX,e=e.originalY;s||(r.ensureWidth(),r.dragStart.emit(),s=!0),r.handleDrag({originalX:n,originalY:e,pageX:t,pageY:i,startPosition:o})})}))},u.prototype.handleDrag=function(e){var t=e.originalX,i=e.originalY,n=e.pageX,o=e.pageY,e=e.startPosition;this.options.left=e.x+n-t,this.options.top=e.y+o-i,"minimized"===this.options.state&&d.isPresent(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:e.x+n-t,top:e.y+o-i})},u.prototype.onResize=function(e,r){var a=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,s=!1;e.kendoPress.pipe(c.tap(function(e){d.preventDefault(e),a.focus.emit(),o=a.currentOffsetAndPosition(),s=!1}),c.switchMap(n(e,a.resizeEnd))).subscribe(function(e){var t=e.pageX,i=e.pageY,n=e.originalX,e=e.originalY,t=(s||(a.resizeStart.emit(r),s=!0),t-n);a.handleResize(o,r,t,i-e)})}))},u.prototype.handleResize=function(e,t,i,n){var o,s,r,a=this,c=this.options,l={};0<=t.indexOf("e")&&(s=e.width+i)!==c.width&&s>=c.minWidth&&(l.width=s),0<=t.indexOf("n")&&(o=e.height-n,r=e.y+n,o!==c.height&&o>=c.minHeight&&r!==c.top&&(l.height=o,l.top=r)),0<=t.indexOf("s")&&(o=e.height+n)!==c.height&&o>=c.minHeight&&(l.height=o),0<=t.indexOf("w")&&(r=e.x+i,(s=e.width-i)!==c.width&&s>=c.minWidth&&r!==c.left&&(l.width=s,l.left=r)),(d.isPresent(l.width)||d.isPresent(l.height))&&(d.OFFSET_STYLES.forEach(function(e){d.isPresent(l[e])&&(a.options[e]=l[e])}),this.change.emit(l))},u.prototype.restoreAction=function(){this.lastAction="restore",this.defaultState()},u.prototype.defaultState=function(){d.isPresent(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")},u.prototype.storeOptions=function(){this.restoreOptions=Object.assign({},this.options)},u.prototype.maximizeAction=function(){this.lastAction="maximize",this.maximizeState()},u.prototype.maximizeState=function(){this.storeOptions();var e=this.windowViewPort;this.options=Object.assign({},this.options,{height:e.height,left:0,position:"fixed",state:"maximized",top:0,width:e.width}),this.stateChange.emit("maximized")},u.prototype.minimizeAction=function(){this.lastAction="minimize",this.minimizeState()},u.prototype.minimizeState=function(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")},u.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()}},u.prototype.closeAction=function(){this.close.emit()},u.prototype.ensureWidth=function(){var e=a.offset(this.window.nativeElement);d.isPresent(this.options.width)||(this.options.width=e.width,this.change.emit({width:e.width}))},u.prototype.clearHeight=function(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight},u.prototype.center=function(){var e,t,i,n;"maximized"!==this.options.state&&(e=a.scrollPosition(this.window.nativeElement),t=this.windowViewPort,i=a.offset(this.window.nativeElement),n={},d.isPresent(this.options.left)||(this.options.left=e.x+Math.max(0,(t.width-i.width)/2),n.left=this.options.left),d.isPresent(this.options.top)||(this.options.top=e.y+Math.max(0,(t.height-i.height)/2),n.top=this.options.top),this.change.emit(n))},u.prototype.currentOffsetAndPosition=function(){var e=this.options,t=a.offset(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:e.height||t.height,width:e.width||t.width})},u.prototype.currentPosition=function(){var e=this.options;return e.top&&e.left||this.setPosition(),{x:this.options.left,y:this.options.top}},u.prototype.setPosition=function(){var e=a.positionWithScroll(this.window.nativeElement,a.getDocumentElement(this.window.nativeElement));this.options.left=e.left,this.options.top=e.top},u.prototype.setRestoreOption=function(e,t){d.isPresent(this.restoreOptions)&&(this.restoreOptions[e]=t)},Object.defineProperty(u.prototype,"nextPossibleZIndex",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"nextZIndex",{get:function(){return l++},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"windowViewPort",{get:function(){return a.getWindowViewPort(this.window.nativeElement)},enumerable:!0,configurable:!0}),o.__decorate([s.Injectable(),o.__metadata("design:paramtypes",[s.NgZone])],u));function u(e){this.ngZone=e,this.close=new s.EventEmitter,this.focus=new s.EventEmitter,this.change=new s.EventEmitter,this.stateChange=new s.EventEmitter,this.dragStart=new s.EventEmitter,this.dragEnd=new s.EventEmitter,this.resizeStart=new s.EventEmitter,this.resizeEnd=new s.EventEmitter,this.options=Object.assign({},p),this.lastAction=null,this.subscriptions=new r.Subscription,this.dragSubscription=new r.Subscription}t.DragResizeService=i},function(e,t){e.exports=g},function(e,t){e.exports=u},function(e,t){e.exports=h},function(e,t){e.exports=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),s=i(2),r=i(6),a=i(33),i=i(42),i=(Object.defineProperty(c.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),c.prototype.ngAfterViewInit=function(){var e=this;this.zone.onStable.pipe(r.take(1)).subscribe(function(){e.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",e.id)})},c.prototype.onCloseClick=function(e){e.preventDefault();e=new a.PreventableEvent;this.close.emit(e)},n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],c.prototype,"close",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],c.prototype,"id",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],c.prototype,"closeTitle",void 0),n.__decorate([o.HostBinding("class.k-window-titlebar"),o.HostBinding("class.k-dialog-titlebar"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],c.prototype,"className",null),n.__decorate([o.Component({selector:"kendo-dialog-titlebar",providers:[i.TitleBarLocalizationService,{provide:s.LocalizationService,useExisting:i.TitleBarLocalizationService},{provide:s.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 '}),n.__param(2,o.Optional()),n.__metadata("design:paramtypes",[o.NgZone,o.ElementRef,s.LocalizationService])],c));function c(e,t,i){this.zone=e,this.hostElement=t,this.localizationService=i,this.close=new o.EventEmitter}t.DialogTitleBarComponent=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),s=i(3),i=(Object.defineProperty(r.prototype,"className",{get:function(){return"stretched"===this.layout},enumerable:!0,configurable:!0}),r.prototype.actionTemplate=function(){return this.actions instanceof o.TemplateRef},r.prototype.onButtonClick=function(e,t){this.action.emit(e)},r.prototype.buttonClass=function(e){var t=["k-button k-button-md k-rounded-md"],i=e.fillMode||"solid",n=e.themeColor||"base",e=e.cssClass?s.parseCSSClassNames(e.cssClass):[];return t.push("k-button-"+i+" k-button-"+i+"-"+n),(t=0<e.length?t.concat(e):t).join(" ")},n.__decorate([o.Input(),n.__metadata("design:type",Object)],r.prototype,"actions",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],r.prototype,"layout",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],r.prototype,"action",void 0),n.__decorate([o.HostBinding("class.k-dialog-buttongroup"),o.HostBinding("class.k-actions"),n.__metadata("design:type",Boolean)],r.prototype,"buttonGroupClassName",void 0),n.__decorate([o.HostBinding("class.k-actions-stretched"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],r.prototype,"className",null),n.__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 '}),n.__metadata("design:paramtypes",[o.ElementRef])],r));function r(e){this.el=e,this.layout="stretched",this.action=new o.EventEmitter,this.buttonGroupClassName=!0}t.DialogActionsComponent=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(1),i=i(0),o=(n=s,Object.defineProperty(s.prototype,"container",{get:function(){return n.container},set:function(e){n.container=e},enumerable:!0,configurable:!0}),s.container=null,n=o.__decorate([i.Injectable()],s));function s(){}t.WindowContainerService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),s=i(8),r=i(4),a=i(5),c=i(3),i=(l.prototype.ngOnInit=function(){this.dragDirective=new s.DraggableDirective(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()},l.prototype.ngOnDestroy=function(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()},l.prototype.subscribeDrag=function(){var t=this;this.unsubscribeDrag(),this.dragSubscription=a.of(this.dragDirective).subscribe(function(e){t.service.onDrag(e)})},l.prototype.subscribeStateChange=function(){var t=this;this.stateSubscription=this.service.stateChange.subscribe(function(e){t.service.options.draggable&&("maximized"===e?t.unsubscribeDrag():t.subscribeDrag())})},l.prototype.unsubscribeDrag=function(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)},l.prototype.unsubscribeState=function(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)},Object.defineProperty(l.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"touchAction",{get:function(){if(this.isDraggable)return"none"},enumerable:!0,configurable:!0}),l.prototype.handle=function(e){var e=e.target,t=this.service.options.state;c.hasClasses(e,"k-icon")||c.isFocusable(e,!1)||!this.service.options.resizable||("default"===t?this.service.maximizeAction():"maximized"===t&&this.service.restoreAction())},Object.defineProperty(l.prototype,"isDraggable",{get:function(){var e=this.service.options;return e.draggable&&"maximized"!==e.state},enumerable:!0,configurable:!0}),n.__decorate([o.Input(),n.__metadata("design:type",o.TemplateRef)],l.prototype,"template",void 0),n.__decorate([o.HostBinding("class.k-window-titlebar"),o.HostBinding("class.k-dialog-titlebar"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],l.prototype,"className",null),n.__decorate([o.HostBinding("style.touch-action"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],l.prototype,"touchAction",null),n.__decorate([o.HostListener("dblclick",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],l.prototype,"handle",null),n.__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 '}),n.__metadata("design:paramtypes",[o.ElementRef,r.DragResizeService,o.NgZone])],l));function l(e,t,i){this.el=e,this.ngZone=i,this.service=t}t.WindowTitleBarComponent=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),a=i(0),o=i(2),s=i(8),c=i(5),l=i(31),d=i(30),r=i(4),p=i(3),u=i(3),g=i(27),h=i(12),i=i(40),h=(Object.defineProperty(m.prototype,"draggable",{get:function(){return this.options.draggable},set:function(e){this.options.draggable=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"resizable",{get:function(){return this.options.resizable},set:function(e){this.options.resizable=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){p.setHTMLAttributes(e,this.renderer,this.el.nativeElement);var t=this.el.nativeElement,i=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==i&&(this.direction=i),this.tabIndex!==t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"state",{get:function(){return this.options.state},set:function(e){this.options.state=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"minWidth",{get:function(){return this.options.minWidth},set:function(e){this.setOption("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"minHeight",{get:function(){return this.options.minHeight},set:function(e){this.setOption("minHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"width",{get:function(){return this.options.width},set:function(e){this.setOption("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"height",{get:function(){return this.options.height},set:function(e){this.setOption("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"top",{get:function(){return this.options.top},set:function(e){this.setOption("top",e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"left",{get:function(){return this.options.left},set:function(e){this.setOption("left",e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"closeButtonTitle",{get:function(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"restoreButtonTitle",{get:function(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"maximizeButtonTitle",{get:function(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"minimizeButtonTitle",{get:function(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),m.prototype.ngAfterViewInit=function(){var e=this;this.setNextZIndex(),this.handleInitialFocus(),this.ngZone.runOutsideAngular(function(){return Promise.resolve(null).then(function(){return e.setInitialOffset()})}),this.initDomEvents()},m.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)},m.prototype.ngOnChanges=function(t){var e,i=this;p.OFFSET_STYLES.forEach(function(e){s.isChanged(e,t)&&i.setStyle(e,i.options[e])}),s.isChanged("draggable",t)&&(e=p.isPresent(this.titleBarContent)?this.titleBarContent:this.titleBarView,p.isTruthy(t.draggable.currentValue)?e.subscribeDrag():e.unsubscribeDrag()),s.isChanged("state",t)&&(p.isPresent(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))},m.prototype.ngOnDestroy=function(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()},m.prototype.focus=function(){var e=this.el.nativeElement;p.isPresent(e)&&e.focus()},m.prototype.bringToFront=function(){this.setNextZIndex()},m.prototype.setDimension=function(e,t){this.setOption(e,t),this.setStyle(e,t)},m.prototype.setOffset=function(e,t){this.setOption(e,t),this.setStyle(e,t)},Object.defineProperty(m.prototype,"showDefaultTitleBar",{get:function(){return!p.isPresent(this.titleBarContent)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"styleMinWidth",{get:function(){return this.minWidth+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"styleMinHeight",{get:function(){return this.minHeight+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"stylePosition",{get:function(){return this.options.position},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"wrapperMaximizedClass",{get:function(){return"maximized"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"wrapperMinimizedClass",{get:function(){return"minimized"===this.state},enumerable:!0,configurable:!0}),m.prototype.onComponentFocus=function(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()},m.prototype.onComponentBlur=function(){this.renderer.removeClass(this.el.nativeElement,"k-focus")},m.prototype.subscribeEvents=function(){var n=this;s.isDocumentAvailable()&&(this.windowSubscription.add(this.service.focus.subscribe(function(){n.el.nativeElement.focus()})),this.windowSubscription.add(this.service.dragStart.subscribe(function(){n.draged=!0,n.ngZone.run(function(){n.dragStart.emit()})})),this.windowSubscription.add(this.service.dragEnd.subscribe(function(){n.draged&&(n.draged=!1,n.ngZone.run(function(){n.dragEnd.emit()}))})),this.windowSubscription.add(this.service.close.subscribe(function(){n.close.emit()})),this.windowSubscription.add(this.service.resizeStart.subscribe(function(){n.resized=!0,n.ngZone.run(function(){n.resizeStart.emit()})})),this.windowSubscription.add(this.service.resizeEnd.subscribe(function(){n.resized&&(n.resized=!1,n.ngZone.run(function(){n.resizeEnd.emit()}))})),this.windowSubscription.add(this.service.change.subscribe(function(i){p.OFFSET_STYLES.forEach(function(e){var t;p.isPresent(i[e])&&(n.setStyle(e,i[e]),"maximized"!==n.state)&&(t=n[e+"Change"]).observers.length&&n.ngZone.run(function(){t.emit(i[e])})})})),this.windowSubscription.add(this.service.stateChange.subscribe(function(e){p.isPresent(n.service.lastAction)&&(n.updateAllOffset(),n.stateChange.emit(e))})))},m.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)}))})},m.prototype.onKeyDown=function(e){p.hasClasses(e.target,p.WINDOW_CLASSES)&&this.navigation.process(e)},m.prototype.setServiceClasses=function(e,t){var i=this,n=this.el.nativeElement;e&&p.parseCSSClassNames(e).forEach(function(e){i.renderer.removeClass(n,e)}),t&&p.parseCSSClassNames(t).forEach(function(e){i.renderer.addClass(n,e)})},m.prototype.setNextZIndex=function(){var e=this.el.nativeElement.style["z-index"],t=this.service.nextPossibleZIndex;(!e||1<t-e)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)},m.prototype.setInitialOffset=function(){var e;"maximized"!==this.state?(this.updateAllOffset(),p.isPresent(this.left)&&p.isPresent(this.top)||this.service.center()):(e=this.service.windowViewPort,this.setStyle("width",e.width),this.setStyle("height",e.height),this.setStyle("top",0),this.setStyle("left",0))},m.prototype.updateAllOffset=function(){var t=this;p.OFFSET_STYLES.forEach(function(e){p.isPresent(t[e])?t.setStyle(e,t[e]):t.removeStyle(e)})},m.prototype.setStyle=function(e,t){this.renderer.setStyle(this.el.nativeElement,e,t+"px")},m.prototype.removeStyle=function(e){this.renderer.removeStyle(this.el.nativeElement,e)},Object.defineProperty(m.prototype,"options",{get:function(){return this.service.options},enumerable:!0,configurable:!0}),m.prototype.setOption=function(e,t){"number"!=typeof t&&"string"!=typeof t||(t="number"==typeof t?t:parseInt(t,10),this.options[e]=t,this.service.setRestoreOption(e,t))},m.prototype.handleInitialFocus=function(){var e=this.el.nativeElement;this.autoFocusedElement?(e=e.querySelector(this.autoFocusedElement))&&e.focus():this.focus()},n.__decorate([a.Input(),n.__metadata("design:type",String)],m.prototype,"autoFocusedElement",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],m.prototype,"title",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],m.prototype,"draggable",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],m.prototype,"resizable",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],m.prototype,"keepContent",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],m.prototype,"state",null),n.__decorate([a.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],m.prototype,"minWidth",null),n.__decorate([a.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],m.prototype,"minHeight",null),n.__decorate([a.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],m.prototype,"width",null),n.__decorate([a.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],m.prototype,"height",null),n.__decorate([a.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],m.prototype,"top",null),n.__decorate([a.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],m.prototype,"left",null),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],m.prototype,"dragStart",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],m.prototype,"dragEnd",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],m.prototype,"resizeStart",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],m.prototype,"resizeEnd",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],m.prototype,"close",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],m.prototype,"widthChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],m.prototype,"heightChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],m.prototype,"topChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],m.prototype,"leftChange",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],m.prototype,"stateChange",void 0),n.__decorate([a.HostBinding("attr.tabIndex"),n.__metadata("design:type",Number)],m.prototype,"tabIndex",void 0),n.__decorate([a.HostBinding("class.k-window"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],m.prototype,"hostClasses",null),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],m.prototype,"dir",null),n.__decorate([a.ViewChild(h.WindowTitleBarComponent,{static:!1}),n.__metadata("design:type",h.WindowTitleBarComponent)],m.prototype,"titleBarView",void 0),n.__decorate([a.ContentChild(h.WindowTitleBarComponent,{static:!1}),n.__metadata("design:type",h.WindowTitleBarComponent)],m.prototype,"titleBarContent",void 0),n.__decorate([a.ViewChildren(g.ResizeHandleDirective),n.__metadata("design:type",a.QueryList)],m.prototype,"resizeHandles",void 0),n.__decorate([a.HostBinding("style.minWidth"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],m.prototype,"styleMinWidth",null),n.__decorate([a.HostBinding("style.minHeight"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],m.prototype,"styleMinHeight",null),n.__decorate([a.HostBinding("style.position"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],m.prototype,"stylePosition",null),n.__decorate([a.HostBinding("class.k-window-maximized"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],m.prototype,"wrapperMaximizedClass",null),n.__decorate([a.HostBinding("class.k-window-minimized"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],m.prototype,"wrapperMinimizedClass",null),n.__decorate([a.HostListener("focus"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],m.prototype,"onComponentFocus",null),n.__decorate([a.HostListener("blur"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],m.prototype,"onComponentBlur",null),n.__decorate([a.Component({exportAs:"kendoWindow",providers:[r.DragResizeService,i.NavigationService,o.LocalizationService,{provide:o.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 '}),n.__metadata("design:paramtypes",[a.ElementRef,a.Renderer2,r.DragResizeService,i.NavigationService,a.NgZone,o.LocalizationService])],m));function m(e,t,i,n,o,s){var r=this;this.el=e,this.renderer=t,this.service=i,this.navigation=n,this.ngZone=o,this.localization=s,this.keepContent=!1,this.dragStart=new a.EventEmitter,this.dragEnd=new a.EventEmitter,this.resizeStart=new a.EventEmitter,this.resizeEnd=new a.EventEmitter,this.close=new a.EventEmitter,this.widthChange=new a.EventEmitter,this.heightChange=new a.EventEmitter,this.topChange=new a.EventEmitter,this.leftChange=new a.EventEmitter,this.stateChange=new a.EventEmitter,this.messages={},this.tabIndex=0,this.draged=!1,this.resized=!1,this.windowSubscription=new c.Subscription,this.domSubs=new c.Subscription,l.validatePackage(d.packageMetadata),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;return r.direction=e?"rtl":"ltr"}),this.resizeDirections=u.RESIZE_DIRECTIONS,this.subscribeEvents()}t.WindowComponent=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(1),i=i(0),o=(n=s,Object.defineProperty(s.prototype,"container",{get:function(){return n.container},set:function(e){n.container=e},enumerable:!0,configurable:!0}),s.container=null,n=o.__decorate([i.Injectable()],s));function s(){}t.DialogContainerService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function n(){}function o(){}function s(){}t.DialogAction=function(){},t.DialogCloseResult=n,t.DialogSettings=o;t.DialogRef=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),r=i(0),o=i(43),s=i(10),a=i(9),c=i(2),l=i(31),d=i(30),p=i(3),u=i(15),g=i(32),h=i(6),m=i(5),i=(Object.defineProperty(f.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){p.setHTMLAttributes(e,this.renderer,this.wrapper.nativeElement);var t=this.wrapper.nativeElement,i=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==i&&i&&(this.direction=i),this.tabIndex!==t&&t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),f.prototype.ngAfterContentInit=function(){var e=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(function(){p.isPresent(e.titlebarContent.first)&&(e.titlebarContent.first.id=e.titleId,e.ngZone.onStable.pipe(h.take(1)).subscribe(function(){e.bubble("close",e.titlebarContent.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))}))},f.prototype.ngAfterViewInit=function(){var e=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(function(){p.isPresent(e.titlebarView.first)&&(e.titlebarView.first.id=e.titleId,e.ngZone.onStable.pipe(h.take(1)).subscribe(function(){e.bubble("close",e.titlebarView.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))})),this.initDomEvents()},f.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()},f.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()},f.prototype.focus=function(){var e=this.wrapper.nativeElement;p.isPresent(e)&&e.focus()},f.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)}))})},f.prototype.onKeyDown=function(e){var t=this,i=e.target,n=i.parentElement;(p.hasClasses(i,p.DIALOG_ELEMENTS_HANDLING_ESC_KEY)||p.hasClasses(n,p.DIALOG_ELEMENTS_HANDLING_ESC_KEY))&&e.keyCode===p.Keys.esc&&this.ngZone.run(function(){t.close.emit(new u.DialogCloseResult)}),p.hasClasses(i,"k-button")&&p.hasClasses(n,p.DIALOG_ELEMENTS_HANDLING_ARROWS)&&(e.keyCode===p.Keys.left||e.keyCode===p.Keys.right)&&this.ngZone.run(function(){t.handleActionButtonFocus(n,e.keyCode)}),e.keyCode===p.Keys.tab&&this.ngZone.run(function(){t.keepFocusWithinComponent(i,e)})},f.prototype.setServiceClasses=function(e,t){var i=this,n=this.wrapper.nativeElement;e&&p.parseCSSClassNames(e).forEach(function(e){i.renderer.removeClass(n,e)}),t&&p.parseCSSClassNames(t).forEach(function(e){i.renderer.addClass(n,e)})},f.prototype.handleInitialFocus=function(){var e,t=this.wrapper.nativeElement,i=this.findPrimary(t);this.autoFocusedElement?(e=t.querySelector(this.autoFocusedElement))&&e.focus():(this.shouldFocusPrimary(i)?i:t).focus()},f.prototype.findPrimary=function(e){e=e.querySelectorAll(".k-actions .k-button");return p.findPrimaryButton(e)},f.prototype.handleActionButtonFocus=function(e,t){for(var i=this.getAllFocusableChildren(e),n=0;n<i.length;n++)if(i[n]===document.activeElement){if(t===p.Keys.left&&0<n){i[n-1].focus();break}if(t===p.Keys.right&&n<i.length-1){i[n+1].focus();break}}},f.prototype.keepFocusWithinComponent=function(e,t){var i=this.wrapper.nativeElement,i=this.getFirstAndLastFocusable(i),n=i[0],i=i[1],o=!t.shiftKey&&e===i,e=t.shiftKey&&e===n;o&&(t.preventDefault(),n.focus()),e&&(t.preventDefault(),i.focus())},f.prototype.shouldFocusPrimary=function(e){return p.isPresent(e)&&p.isFocusable(e)},f.prototype.getAllFocusableChildren=function(e){return e.querySelectorAll(p.focusableSelector)},f.prototype.getFirstAndLastFocusable=function(e){var t=this.getAllFocusableChildren(e);return[0<t.length?t[0]:e,0<t.length?t[t.length-1]:e]},f.prototype.generateTitleId=function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()},f.prototype.generateContentId=function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()},Object.defineProperty(f.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"styles",{get:function(){var e={};return this.width&&(e.width=p.createValueWithUnit(this.width)),this.height&&(e.height=p.createValueWithUnit(this.height)),this.minWidth&&(e.minWidth=p.createValueWithUnit(this.minWidth)),this.maxWidth&&(e.maxWidth=p.createValueWithUnit(this.maxWidth)),this.minHeight&&(e.minHeight=p.createValueWithUnit(this.minHeight)),this.maxHeight&&(e.maxHeight=p.createValueWithUnit(this.maxHeight)),e},enumerable:!0,configurable:!0}),f.prototype.bubble=function(t,e){var i=this;e&&(e=e[t].subscribe(function(e){return i[t].emit(e)}),this.subscriptions.push(e))},n.__decorate([r.Input(),n.__metadata("design:type",Array)],f.prototype,"actions",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],f.prototype,"actionsLayout",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],f.prototype,"autoFocusedElement",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],f.prototype,"title",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],f.prototype,"width",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],f.prototype,"minWidth",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],f.prototype,"maxWidth",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],f.prototype,"height",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],f.prototype,"minHeight",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],f.prototype,"maxHeight",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],f.prototype,"action",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],f.prototype,"close",void 0),n.__decorate([r.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],f.prototype,"dir",null),n.__decorate([r.HostBinding("attr.tabIndex"),n.__metadata("design:type",Number)],f.prototype,"tabIndex",void 0),n.__decorate([r.ContentChildren(a.DialogTitleBarComponent,{descendants:!1}),n.__metadata("design:type",r.QueryList)],f.prototype,"titlebarContent",void 0),n.__decorate([r.ViewChildren(a.DialogTitleBarComponent),n.__metadata("design:type",r.QueryList)],f.prototype,"titlebarView",void 0),n.__decorate([r.ViewChild(s.DialogActionsComponent,{static:!1}),n.__metadata("design:type",s.DialogActionsComponent)],f.prototype,"actionsView",void 0),n.__decorate([r.HostBinding("class.k-dialog-wrapper"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],f.prototype,"wrapperClass",null),n.__decorate([r.Component({animations:[o.trigger("overlayAppear",[o.state("in",o.style({opacity:1})),o.transition("void => *",[o.style({opacity:.1}),o.animate(".3s cubic-bezier(.2, .6, .4, 1)")])]),o.trigger("dialogSlideInAppear",[o.state("in",o.style({transform:"translate(0, 0)"})),o.transition("void => *",[o.style({transform:"translate(0, -10%)"}),o.animate(".3s cubic-bezier(.2, 1, .2, 1)")])])],exportAs:"kendoDialog",providers:[c.LocalizationService,{provide:g.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 '}),n.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,c.LocalizationService,r.ChangeDetectorRef,r.NgZone])],f));function f(e,t,i,n,o){var s=this;this.wrapper=e,this.renderer=t,this.cdr=n,this.ngZone=o,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new r.EventEmitter,this.close=new r.EventEmitter,this.tabIndex=0,this.subscriptions=[],this.domSubs=new m.Subscription,l.validatePackage(d.packageMetadata),this.direction=i.rtl?"rtl":"ltr",this.subscriptions.push(i.changes.subscribe(function(e){e=e.rtl;return s.direction=e?"rtl":"ltr"})),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}t.DialogComponent=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),s=i(13),r=i(12),a=i(8),c=i(27),l=i(26),d=i(25),p=i(24),u=i(23),g=i(21),h=i(11),m=i(35),i=i(19),c=[c.ResizeHandleDirective,s.WindowComponent,r.WindowTitleBarComponent,p.WindowCloseActionDirective,d.WindowMinimizeActionDirective,l.WindowMaximizeActionDirective,u.WindowRestoreActionDirective],f=[s.WindowComponent,r.WindowTitleBarComponent],s=[s.WindowComponent,p.WindowCloseActionDirective,d.WindowMinimizeActionDirective,l.WindowMaximizeActionDirective,u.WindowRestoreActionDirective,r.WindowTitleBarComponent],p=n.__decorate([o.NgModule({declarations:[c,m.WindowContainerDirective],entryComponents:[f],exports:[s,i.SHARED_DIRECTIVES,m.WindowContainerDirective],imports:[i.SharedModule,a.DraggableModule],providers:[h.WindowContainerService,g.WindowService]})],_);function _(){}t.WindowModule=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(1),s=i(0),i=(n=i(2).ComponentMessages,o.__extends(r,n),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"closeTitle",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"restoreTitle",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"maximizeTitle",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"minimizeTitle",void 0),r);function r(){return null!==n&&n.apply(this,arguments)||this}t.Messages=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),s=i(38),r=i(10),a=i(37),i=i(36),r=(t.SHARED_DIRECTIVES=[r.DialogActionsComponent,i.CustomMessagesComponent,a.LocalizedMessagesDirective],n.__decorate([o.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES,s.CommonModule],imports:[s.CommonModule]})],c));function c(){}t.SharedModule=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),s=i(16),r=i(9),a=i(28),c=i(39),l=i(14),i=i(19),s=(t.DIALOG_DIRECTIVES=[s.DialogComponent,r.DialogTitleBarComponent],n.__decorate([o.NgModule({declarations:[t.DIALOG_DIRECTIVES,c.DialogContainerDirective],entryComponents:[t.DIALOG_DIRECTIVES],exports:[t.DIALOG_DIRECTIVES,i.SHARED_DIRECTIVES,c.DialogContainerDirective],imports:[i.SharedModule],providers:[l.DialogContainerService,a.DialogService]})],d));function d(){}t.DialogModule=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),c=i(0),l=i(5),d=i(6),p=i(22),u=i(13),g=i(3),i=i(11),r=(s.prototype.get=function(e,t){return e===p.WindowRef?this.getWindowRef():this.parentInjector.get(e,t)},s),n=(o.prototype.open=function(i){var e=this.resolver.resolveComponentFactory(u.WindowComponent),t=i.appendTo||this.containerService.container;if(!t)throw new Error("Cannot attach window to the page.\n Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service/\n ");function n(e){a.next(e||new p.WindowCloseResult),s.componentRef&&s.componentRef.destroy(),r.destroy()}var o={close:function(){},content:null,result:null,window:null},s=this.contentFrom(i.content,t,o),r=t.createComponent(e,void 0,void 0,s.nodes),a=(o.window=r,this.applyOptions(r.instance,i),new l.Subject),t=l.merge(a,r.instance.close.pipe(d.map(function(e){return e||new p.WindowCloseResult}),d.filter(function(e){var t;return!i.preventClose||(t=i.content,t=g.isString(t)||t instanceof c.TemplateRef?void 0:o,!i.preventClose(e,t))}))).pipe(d.take(1),d.share());return t.subscribe(n),o.close=n,o.result=t,r.changeDetectorRef.markForCheck(),o},o.prototype.applyOptions=function(e,t){g.isPresent(t.htmlAttributes)&&(e.htmlAttributes=t.htmlAttributes),g.isPresent(t.cssClass)&&(e.cssClass=t.cssClass),g.isPresent(t.title)&&(e.title=t.title),g.isPresent(t.keepContent)&&(e.keepContent=t.keepContent),g.isPresent(t.width)&&(e.width=t.width),g.isPresent(t.minWidth)&&(e.minWidth=t.minWidth),g.isPresent(t.height)&&(e.height=t.height),g.isPresent(t.minHeight)&&(e.minHeight=t.minHeight),g.isPresent(t.left)&&(e.left=t.left),g.isPresent(t.top)&&(e.top=t.top),g.isPresent(t.draggable)&&(e.draggable=t.draggable),g.isPresent(t.resizable)&&(e.resizable=t.resizable),g.isPresent(t.messages&&t.messages.closeTitle)&&(e.messages.closeTitle=t.messages.closeTitle),g.isPresent(t.messages&&t.messages.restoreTitle)&&(e.messages.restoreTitle=t.messages.restoreTitle),g.isPresent(t.messages&&t.messages.maximizeTitle)&&(e.messages.maximizeTitle=t.messages.maximizeTitle),g.isPresent(t.messages&&t.messages.minimizeTitle)&&(e.messages.minimizeTitle=t.messages.minimizeTitle),g.isPresent(t.autoFocusedElement)&&(e.autoFocusedElement=t.autoFocusedElement),g.isPresent(t.state)&&(e.state=t.state,"minimized"===t.state&&(e.keepContent=!0)),t.content instanceof c.TemplateRef&&(e.contentTemplate=t.content),t.titleBarContent instanceof c.TemplateRef&&(e.titleBarTemplate=t.titleBarContent)},o.prototype.contentFrom=function(e,t,i){var n=t.injector.get(c.Renderer2),o=[],s=null;return"string"==typeof e?o=[n.createText(e)]:!e||e instanceof c.TemplateRef||(n=new r(function(){return i},t.injector),e=this.resolver.resolveComponentFactory(e),o=[(s=t.createComponent(e,void 0,n)).location.nativeElement],i.content=s),{componentRef:s,nodes:[[],o]}},n.__decorate([c.Injectable(),n.__param(1,c.Inject(i.WindowContainerService)),n.__metadata("design:paramtypes",[c.ComponentFactoryResolver,i.WindowContainerService])],o));function o(e,t){this.resolver=e,this.containerService=t}function s(e,t){this.getWindowRef=e,this.parentInjector=t}t.WindowService=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function n(){}function o(){}t.WindowSettings=function(){},t.WindowCloseResult=n;t.WindowRef=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,n=i(1),o=i(0),r=i(4),a=i(7),i=i(2),a=(s=a.Button,n.__extends(c,s),c.prototype.onClick=function(){this.isDisabled||this.window.restoreAction()},Object.defineProperty(c.prototype,"visible",{get:function(){return"default"===this.window.options.state?"none":"inline-flex"},enumerable:!0,configurable:!0}),n.__decorate([o.Input(),n.__metadata("design:type",Object)],c.prototype,"window",void 0),n.__decorate([o.HostBinding("attr.type"),n.__metadata("design:type",String)],c.prototype,"buttonType",void 0),n.__decorate([o.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],c.prototype,"onClick",null),n.__decorate([o.HostBinding("style.display"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],c.prototype,"visible",null),n.__decorate([o.Directive({exportAs:"kendoWindowRestoreAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowRestoreAction]"}),n.__param(2,o.Optional()),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,i.LocalizationService,o.NgZone])],c));function c(e,t,i,n,o){e=s.call(this,e,t,null,n,o)||this;return e.buttonType="button",e.window=i,e.fillMode="flat",e.icon="window-restore",e}t.WindowRestoreActionDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,n=i(1),o=i(0),r=i(4),a=i(7),i=i(2),a=(s=a.Button,n.__extends(c,s),c.prototype.onClick=function(){this.isDisabled||this.window.closeAction()},n.__decorate([o.Input(),n.__metadata("design:type",Object)],c.prototype,"window",void 0),n.__decorate([o.HostBinding("attr.type"),n.__metadata("design:type",String)],c.prototype,"buttonType",void 0),n.__decorate([o.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],c.prototype,"onClick",null),n.__decorate([o.Directive({exportAs:"kendoWindowCloseAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowCloseAction]"}),n.__param(2,o.Optional()),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,i.LocalizationService,o.NgZone])],c));function c(e,t,i,n,o){e=s.call(this,e,t,null,n,o)||this;return e.buttonType="button",e.window=i,e.fillMode="flat",e.icon="close",e}t.WindowCloseActionDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,n=i(1),o=i(0),r=i(4),a=i(7),i=i(2),a=(s=a.Button,n.__extends(c,s),c.prototype.onClick=function(){this.isDisabled||this.window.minimizeAction()},Object.defineProperty(c.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!0,configurable:!0}),n.__decorate([o.Input(),n.__metadata("design:type",Object)],c.prototype,"window",void 0),n.__decorate([o.HostBinding("attr.type"),n.__metadata("design:type",String)],c.prototype,"buttonType",void 0),n.__decorate([o.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],c.prototype,"onClick",null),n.__decorate([o.HostBinding("style.display"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],c.prototype,"visible",null),n.__decorate([o.Directive({exportAs:"kendoWindowMinimizeAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMinimizeAction]"}),n.__param(2,o.Optional()),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,i.LocalizationService,o.NgZone])],c));function c(e,t,i,n,o){e=s.call(this,e,t,null,n,o)||this;return e.buttonType="button",e.window=i,e.fillMode="flat",e.icon="window-minimize",e}t.WindowMinimizeActionDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,n=i(1),o=i(0),r=i(4),a=i(7),i=i(2),a=(s=a.Button,n.__extends(c,s),c.prototype.onClick=function(){this.isDisabled||this.window.maximizeAction()},Object.defineProperty(c.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!0,configurable:!0}),n.__decorate([o.Input(),n.__metadata("design:type",Object)],c.prototype,"window",void 0),n.__decorate([o.HostBinding("attr.type"),n.__metadata("design:type",String)],c.prototype,"buttonType",void 0),n.__decorate([o.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],c.prototype,"onClick",null),n.__decorate([o.HostBinding("style.display"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],c.prototype,"visible",null),n.__decorate([o.Directive({exportAs:"kendoWindowMaximizeAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMaximizeAction]"}),n.__param(2,o.Optional()),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,i.LocalizationService,o.NgZone])],c));function c(e,t,i,n,o){e=s.call(this,e,t,null,n,o)||this;return e.buttonType="button",e.window=i,e.fillMode="flat",e.icon="window-maximize",e}t.WindowMaximizeActionDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),s=i(8),r=i(4),a=i(5),i=(Object.defineProperty(c.prototype,"hostClass",{get:function(){return!0},enumerable:!0,configurable:!0}),c.prototype.ngOnInit=function(){var t=this;this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(a.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(a.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")}))},c.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},c.prototype.setDisplay=function(e){void 0===e&&(e="block"),this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?e:"none")},n.__decorate([o.Input(),n.__metadata("design:type",String)],c.prototype,"direction",void 0),n.__decorate([o.HostBinding("class.k-resize-handle"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],c.prototype,"hostClass",null),n.__decorate([o.Directive({selector:"[kendoWindowResizeHandle]"}),n.__param(0,o.Host()),n.__metadata("design:paramtypes",[s.DraggableDirective,o.ElementRef,o.Renderer2,r.DragResizeService])],c));function c(e,t,i,n){this.draggable=e,this.el=t,this.renderer=i,this.service=n,this.subscriptions=new a.Subscription}t.ResizeHandleDirective=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),p=i(5),u=i(6),g=i(0),o=i(16),s=i(14),h=i(15),m=i(29),f=i(33),_=i(3),c=(a.prototype.get=function(e,t){return e===h.DialogRef?this.getDialogRef():this.parentInjector.get(e,t)},a),i=(r.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(o.DialogComponent),i=e.appendTo||this.containerService.container;if(i)return this.initializeDialog(e.content,t,i,{close:function(){},content:null,dialog:null,result:null},e);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 ")},r.prototype.initializeDialog=function(i,e,t,n,o){function s(e){e instanceof f.PreventableEvent&&(e=new h.DialogCloseResult),d.next(e||new h.DialogCloseResult),c.componentRef&&c.componentRef.destroy(),l.destroy()}var r,a,c=this.contentFrom(i,t,n),l=t.createComponent(e,void 0,void 0,c.nodes),d=((n.dialog=l).changeDetectorRef.markForCheck(),this.applyOptions(l.instance,o),new p.Subject),t=p.merge(d,p.merge(l.instance.close,l.instance.action).pipe(u.map(function(e){return e instanceof f.PreventableEvent?new h.DialogCloseResult:e}),u.filter(function(e){var t;return!o.preventAction||(t=i,t=_.isString(t)||t instanceof g.TemplateRef?void 0:n,!o.preventAction(e,t))}))).pipe(u.take(1),u.share());return t.subscribe(s),n.close=s,n.result=t,i&&g.isDevMode()&&(e=c.nodes[0]&&0<c.nodes[0].length,t=c.nodes[2]&&0<c.nodes[2].length,r=o.title&&e,a=o.actions&&t,i.prototype instanceof m.DialogContentBase?(r||a)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(e||t)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")),n},r.prototype.applyOptions=function(e,t){e.title=t.title,e.actions=t.actions,e.actionsLayout=t.actionsLayout||"stretched",e.width=t.width,e.minWidth=t.minWidth,e.maxWidth=t.maxWidth,e.height=t.height,e.minHeight=t.minHeight,e.maxHeight=t.maxHeight,e.autoFocusedElement=t.autoFocusedElement,e.closeTitle=t.closeTitle,e.cssClass=t.cssClass,e.htmlAttributes=t.htmlAttributes,t.content instanceof g.TemplateRef&&(e.contentTemplate=t.content)},r.prototype.contentFrom=function(e,t,i){var n=t.injector.get(g.Renderer2),o=[],s=[],r=[],a=null;return"string"==typeof e?o=[n.createText(e)]:!e||e instanceof g.TemplateRef||(n=new c(function(){return i},t.injector),e=this.resolver.resolveComponentFactory(e),a=t.createComponent(e,void 0,n),s=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),o=[a.location.nativeElement],r=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-actions")),i.content=a),{componentRef:a,nodes:[s,o,r]}},n.__decorate([g.Injectable(),n.__param(1,g.Inject(s.DialogContainerService)),n.__metadata("design:paramtypes",[g.ComponentFactoryResolver,s.DialogContainerService])],r));function r(e,t){this.resolver=e,this.containerService=t}function a(e,t){this.getDialogRef=e,this.parentInjector=t}t.DialogService=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(10),s=i(9),r=i(0),a=i(6);function c(e){this.dialog=e}n.__decorate([r.ViewChild(s.DialogTitleBarComponent,{static:!(c.prototype.ngAfterViewInit=function(){var t=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(a.filter(function(e){return!e.isDefaultPrevented()})).subscribe(function(){t.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(function(e){return t.dialog.dialog.instance.action.emit(e)})})}),n.__metadata("design:type",s.DialogTitleBarComponent)],c.prototype,"dialogTitleBar",void 0),n.__decorate([r.ViewChild(o.DialogActionsComponent,{static:!1}),n.__metadata("design:type",o.DialogActionsComponent)],c.prototype,"dialogActions",void 0),t.DialogContentBase=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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(e,t){e.exports=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i=i(0);t.DIALOG_LOCALIZATION_SERVICE=new i.InjectionToken("Dialog LocalizationService")},function(e,t,i){"use strict";function n(){this.prevented=!1}Object.defineProperty(t,"__esModule",{value:!0}),n.prototype.preventDefault=function(){this.prevented=!0},n.prototype.isDefaultPrevented=function(){return this.prevented},t.PreventableEvent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),s=i(20),i=i(17),n=n.__decorate([o.NgModule({exports:[s.DialogModule,i.WindowModule]})],r);function r(){}t.DialogsModule=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),i=i(11),n=n.__decorate([o.Directive({selector:"[kendoWindowContainer]"}),n.__metadata("design:paramtypes",[o.ViewContainerRef,i.WindowContainerService])],s);function s(e,t){t.container=e}t.WindowContainerDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o,s=i(1),r=i(0),a=i(2),i=i(18),i=(n=i.Messages,s.__extends(c,n),o=c,Object.defineProperty(c.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),o=s.__decorate([r.Component({providers:[{provide:i.Messages,useExisting:r.forwardRef(function(){return o})}],selector:"kendo-dialog-messages, kendo-window-messages",template:""}),s.__metadata("design:paramtypes",[a.LocalizationService])],c));function c(e){var t=n.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o,s=i(1),r=i(0),a=i(2),i=i(18),i=(n=i.Messages,s.__extends(c,n),o=c,o=s.__decorate([r.Directive({providers:[{provide:i.Messages,useExisting:r.forwardRef(function(){return o})}],selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}),s.__metadata("design:paramtypes",[a.LocalizationService])],c));function c(e){var t=n.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=i},function(e,t){e.exports=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),i=i(14),n=n.__decorate([o.Directive({selector:"[kendoDialogContainer]"}),n.__metadata("design:paramtypes",[o.ViewContainerRef,i.DialogContainerService])],s);function s(e,t){t.container=e}t.DialogContainerDirective=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),s=i(4),a=i(3),i=(r.prototype.process=function(e){var t=this,i=e.keyCode;switch(i){case a.Keys.up:case a.Keys.down:case a.Keys.left:case a.Keys.right:e.preventDefault(),this.ngZone.run(function(){t.handleArrow(i,e)});break;case a.Keys.esc:this.ngZone.run(function(){t.handleEscape()})}},r.prototype.handleArrow=function(e,t){var i=this.window.options;t.altKey?this.handleStateChange(e,i.state):(t.ctrlKey||t.metaKey)&&"default"===i.state?this.handleResize(e):this.handleDrag(e)},r.prototype.handleEscape=function(){this.window.closeAction()},r.prototype.handleDrag=function(e){var t=this.window.options;if(t.draggable){var i=this.window.currentOffsetAndPosition(),n=this.window.restoreOptions,o={},s=10;switch(e!==a.Keys.left&&e!==a.Keys.up||(s*=-1),e){case a.Keys.left:case a.Keys.right:o.left=i.x+s,t.left=o.left;break;case a.Keys.up:case a.Keys.down:o.top=i.y+s,t.top=o.top}"minimized"===t.state&&a.isPresent(n)&&(n.left=t.left,n.top=t.top),this.window.change.emit(o)}},r.prototype.handleResize=function(e){var t=this,i=this.window.options;if(i.resizable){var n,o=this.window.currentOffsetAndPosition(),s={},r=10;switch(e!==a.Keys.left&&e!==a.Keys.up||(r*=-1),e){case a.Keys.left:case a.Keys.right:(n=o.width+r)!==i.width&&n>=i.minWidth&&(s.width=n);break;case a.Keys.up:case a.Keys.down:(n=o.height+r)!==i.height&&n>=i.minHeight&&(s.height=n)}(a.isPresent(s.width)||a.isPresent(s.height))&&(a.OFFSET_STYLES.forEach(function(e){a.isPresent(s[e])&&(t.window.options[e]=s[e])}),this.window.change.emit(s))}},r.prototype.handleStateChange=function(e,t){"minimized"===t&&e===a.Keys.up||"maximized"===t&&e===a.Keys.down?this.window.restoreAction():"default"===t&&(e===a.Keys.up?this.window.maximizeAction():e===a.Keys.down&&this.window.minimizeAction())},n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[s.DragResizeService,o.NgZone])],r));function r(e,t){this.window=e,this.ngZone=t}t.NavigationService=i},function(e,t){e.exports=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,n=i(1),s=i(2),r=i(0),i=i(32),r=(o=s.LocalizationService,n.__extends(a,o),a.prototype.get=function(e){return this.dialogLocalization?this.dialogLocalization.get(e):o.prototype.get.call(this,e)},n.__decorate([n.__param(0,r.Inject(s.L10N_PREFIX)),n.__param(1,r.Optional()),n.__param(2,r.Optional()),n.__param(2,r.Inject(s.RTL)),n.__param(3,r.Optional()),n.__param(3,r.Inject(i.DIALOG_LOCALIZATION_SERVICE)),n.__metadata("design:paramtypes",[String,s.MessageService,Boolean,s.LocalizationService])],a));function a(e,t,i,n){e=o.call(this,e,t,i)||this;return e.dialogLocalization=n,e}t.TitleBarLocalizationService=r},function(e,t){e.exports=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=i(16),o=(t.DialogComponent=o.DialogComponent,i(9)),o=(t.DialogTitleBarComponent=o.DialogTitleBarComponent,i(29)),o=(t.DialogContentBase=o.DialogContentBase,i(10)),o=(t.DialogActionsComponent=o.DialogActionsComponent,i(28)),o=(t.DialogService=o.DialogService,i(15)),o=(t.DialogCloseResult=o.DialogCloseResult,t.DialogRef=o.DialogRef,t.DialogSettings=o.DialogSettings,t.DialogAction=o.DialogAction,i(13)),o=(t.WindowComponent=o.WindowComponent,i(12)),o=(t.WindowTitleBarComponent=o.WindowTitleBarComponent,i(26)),o=(t.WindowMaximizeActionDirective=o.WindowMaximizeActionDirective,i(25)),o=(t.WindowMinimizeActionDirective=o.WindowMinimizeActionDirective,i(24)),o=(t.WindowCloseActionDirective=o.WindowCloseActionDirective,i(23)),o=(t.WindowRestoreActionDirective=o.WindowRestoreActionDirective,i(22)),o=(t.WindowSettings=o.WindowSettings,t.WindowRef=o.WindowRef,t.WindowCloseResult=o.WindowCloseResult,i(21)),o=(t.WindowService=o.WindowService,i(20)),o=(t.DialogModule=o.DialogModule,i(17)),o=(t.WindowModule=o.WindowModule,i(34)),s=(t.DialogsModule=o.DialogsModule,t);for(n in s)r(n,s[n])}],o={},n.m=i,n.c=o,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=44)}}});