@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
@@ -2,17 +2,20 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { __decorate, __metadata, __param } from 'tslib';
6
- import { EventEmitter, TemplateRef, Input, Output, HostBinding, Component, ElementRef, InjectionToken, Inject, Optional, NgZone, ContentChildren, QueryList, ViewChildren, ViewChild, Renderer2, ChangeDetectorRef, Injectable, isDevMode, ComponentFactoryResolver, Directive, Host, HostListener, ContentChild, ViewContainerRef, forwardRef, NgModule } from '@angular/core';
5
+ import * as i0 from '@angular/core';
6
+ import { EventEmitter, TemplateRef, Component, Input, Output, HostBinding, InjectionToken, Injectable, Inject, Optional, Directive, forwardRef, ContentChildren, ViewChildren, ViewChild, isDevMode, Renderer2, Host, HostListener, ContentChild, NgModule } from '@angular/core';
7
7
  import { trigger, state, style, transition, animate } from '@angular/animations';
8
- import { Subscription, Subject, merge, of } from 'rxjs';
9
- import { take, filter, map, share, tap, switchMap, takeUntil } from 'rxjs/operators';
10
- import { LocalizationService, L10N_PREFIX, RTL, MessageService, ComponentMessages } from '@progress/kendo-angular-l10n';
8
+ import { of, Subscription, Subject, merge } from 'rxjs';
9
+ import { delay, takeUntil, take, filter, map, share, tap, switchMap } from 'rxjs/operators';
10
+ import * as i1 from '@angular/common';
11
+ import { CommonModule } from '@angular/common';
12
+ import * as i1$1 from '@progress/kendo-angular-l10n';
13
+ import { LocalizationService, L10N_PREFIX, RTL, ComponentMessages } from '@progress/kendo-angular-l10n';
11
14
  import { validatePackage } from '@progress/kendo-licensing';
15
+ import * as i1$2 from '@progress/kendo-angular-common';
12
16
  import { DraggableDirective, isChanged, isDocumentAvailable, DraggableModule } from '@progress/kendo-angular-common';
13
17
  import { offset, scrollPosition, positionWithScroll, getDocumentElement, getWindowViewPort } from '@progress/kendo-popup-common';
14
18
  import { Button } from '@progress/kendo-angular-buttons';
15
- import { CommonModule } from '@angular/common';
16
19
 
17
20
  /**
18
21
  * @hidden
@@ -162,6 +165,16 @@ const preventDefault = ({ originalEvent: event }) => {
162
165
  event.stopPropagation();
163
166
  event.preventDefault();
164
167
  };
168
+ /**
169
+ * @hidden
170
+ */
171
+ const isWindowAvailable = () => {
172
+ return typeof window !== 'undefined';
173
+ };
174
+ /**
175
+ * @hidden
176
+ */
177
+ const preventOnDblClick = release => (mouseDown) => of(mouseDown).pipe(delay(150), takeUntil(release));
165
178
  /**
166
179
  * @hidden
167
180
  */
@@ -208,7 +221,7 @@ const findPrimaryButton = (buttons) => {
208
221
  * Specifies the action buttons of the Dialog
209
222
  * ([see example]({% slug actionbuttons_dialog %})).
210
223
  */
211
- let DialogActionsComponent = class DialogActionsComponent {
224
+ class DialogActionsComponent {
212
225
  constructor(el) {
213
226
  this.el = el;
214
227
  /**
@@ -221,14 +234,22 @@ let DialogActionsComponent = class DialogActionsComponent {
221
234
  this.action = new EventEmitter();
222
235
  this.buttonGroupClassName = true;
223
236
  }
224
- get className() {
225
- return this.layout === 'stretched';
226
- }
227
237
  /**
228
- * @hidden
238
+ * Allows the declarative specification of the actions.
229
239
  */
230
- actionTemplate() {
231
- return this.actions instanceof TemplateRef;
240
+ set actions(value) {
241
+ if (value instanceof TemplateRef) {
242
+ this.actionsTemplate = value;
243
+ }
244
+ else if (Array.isArray(value)) {
245
+ this.actionsArray = value;
246
+ }
247
+ else {
248
+ throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');
249
+ }
250
+ }
251
+ get className() {
252
+ return this.layout === 'stretched';
232
253
  }
233
254
  /**
234
255
  * @hidden
@@ -250,50 +271,59 @@ let DialogActionsComponent = class DialogActionsComponent {
250
271
  }
251
272
  return classes.join(' ');
252
273
  }
253
- };
254
- __decorate([
255
- Input(),
256
- __metadata("design:type", Object)
257
- ], DialogActionsComponent.prototype, "actions", void 0);
258
- __decorate([
259
- Input(),
260
- __metadata("design:type", String)
261
- ], DialogActionsComponent.prototype, "layout", void 0);
262
- __decorate([
263
- Output(),
264
- __metadata("design:type", EventEmitter)
265
- ], DialogActionsComponent.prototype, "action", void 0);
266
- __decorate([
267
- HostBinding('class.k-dialog-buttongroup'),
268
- HostBinding('class.k-actions'),
269
- __metadata("design:type", Boolean)
270
- ], DialogActionsComponent.prototype, "buttonGroupClassName", void 0);
271
- __decorate([
272
- HostBinding('class.k-actions-stretched'),
273
- __metadata("design:type", Boolean),
274
- __metadata("design:paramtypes", [])
275
- ], DialogActionsComponent.prototype, "className", null);
276
- DialogActionsComponent = __decorate([
277
- Component({
278
- selector: 'kendo-dialog-actions',
279
- template: `
274
+ }
275
+ DialogActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogActionsComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
276
+ DialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: { actions: "actions", layout: "layout" }, outputs: { action: "action" }, host: { properties: { "class.k-dialog-buttongroup": "this.buttonGroupClassName", "class.k-actions": "this.buttonGroupClassName", "class.k-actions-stretched": "this.className" } }, ngImport: i0, template: `
277
+ <ng-content *ngIf="!actions"></ng-content>
278
+ <ng-container *ngIf="actionsArray; else actionTemplate">
279
+ <button
280
+ type="button"
281
+ *ngFor="let action of actionsArray"
282
+ [ngClass]="buttonClass(action)"
283
+ (click)="onButtonClick(action, $event)"
284
+ [attr.aria-label]="action.text"
285
+ >
286
+ {{ action.text }}
287
+ </button>
288
+ </ng-container>
289
+ <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
290
+ `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogActionsComponent, decorators: [{
292
+ type: Component,
293
+ args: [{
294
+ selector: 'kendo-dialog-actions',
295
+ template: `
280
296
  <ng-content *ngIf="!actions"></ng-content>
281
- <ng-container *ngIf="!actionTemplate()">
297
+ <ng-container *ngIf="actionsArray; else actionTemplate">
282
298
  <button
283
299
  type="button"
300
+ *ngFor="let action of actionsArray"
284
301
  [ngClass]="buttonClass(action)"
285
302
  (click)="onButtonClick(action, $event)"
286
- *ngFor="let action of actions"
287
303
  [attr.aria-label]="action.text"
288
304
  >
289
305
  {{ action.text }}
290
306
  </button>
291
307
  </ng-container>
292
- <ng-template [ngTemplateOutlet]="actions" *ngIf="actionTemplate()"></ng-template>
308
+ <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
293
309
  `
294
- }),
295
- __metadata("design:paramtypes", [ElementRef])
296
- ], DialogActionsComponent);
310
+ }]
311
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { actions: [{
312
+ type: Input
313
+ }], layout: [{
314
+ type: Input
315
+ }], action: [{
316
+ type: Output
317
+ }], buttonGroupClassName: [{
318
+ type: HostBinding,
319
+ args: ['class.k-dialog-buttongroup']
320
+ }, {
321
+ type: HostBinding,
322
+ args: ['class.k-actions']
323
+ }], className: [{
324
+ type: HostBinding,
325
+ args: ['class.k-actions-stretched']
326
+ }] } });
297
327
 
298
328
  /**
299
329
  * @hidden
@@ -327,7 +357,7 @@ const DIALOG_LOCALIZATION_SERVICE = new InjectionToken('Dialog LocalizationServi
327
357
  /**
328
358
  * @hidden
329
359
  */
330
- let TitleBarLocalizationService = class TitleBarLocalizationService extends LocalizationService {
360
+ class TitleBarLocalizationService extends LocalizationService {
331
361
  constructor(prefix, messageService, rtl, dialogLocalization) {
332
362
  super(prefix, messageService, rtl);
333
363
  this.dialogLocalization = dialogLocalization;
@@ -338,21 +368,89 @@ let TitleBarLocalizationService = class TitleBarLocalizationService extends Loca
338
368
  }
339
369
  return super.get(shortKey);
340
370
  }
341
- };
342
- TitleBarLocalizationService = __decorate([
343
- __param(0, Inject(L10N_PREFIX)),
344
- __param(1, Optional()),
345
- __param(2, Optional()), __param(2, Inject(RTL)),
346
- __param(3, Optional()), __param(3, Inject(DIALOG_LOCALIZATION_SERVICE)),
347
- __metadata("design:paramtypes", [String, MessageService, Boolean, LocalizationService])
348
- ], TitleBarLocalizationService);
371
+ }
372
+ TitleBarLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TitleBarLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1$1.MessageService, optional: true }, { token: RTL, optional: true }, { token: DIALOG_LOCALIZATION_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
373
+ TitleBarLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TitleBarLocalizationService });
374
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TitleBarLocalizationService, decorators: [{
375
+ type: Injectable
376
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
377
+ type: Inject,
378
+ args: [L10N_PREFIX]
379
+ }] }, { type: i1$1.MessageService, decorators: [{
380
+ type: Optional
381
+ }] }, { type: undefined, decorators: [{
382
+ type: Optional
383
+ }, {
384
+ type: Inject,
385
+ args: [RTL]
386
+ }] }, { type: i1$1.LocalizationService, decorators: [{
387
+ type: Optional
388
+ }, {
389
+ type: Inject,
390
+ args: [DIALOG_LOCALIZATION_SERVICE]
391
+ }] }]; } });
392
+
393
+ /**
394
+ * @hidden
395
+ */
396
+ class Messages extends ComponentMessages {
397
+ }
398
+ Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
399
+ Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Messages, selector: "kendo-dialog-messages-base", inputs: { closeTitle: "closeTitle", restoreTitle: "restoreTitle", maximizeTitle: "maximizeTitle", minimizeTitle: "minimizeTitle" }, usesInheritance: true, ngImport: i0 });
400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
401
+ type: Directive,
402
+ args: [{
403
+ selector: 'kendo-dialog-messages-base'
404
+ }]
405
+ }], propDecorators: { closeTitle: [{
406
+ type: Input
407
+ }], restoreTitle: [{
408
+ type: Input
409
+ }], maximizeTitle: [{
410
+ type: Input
411
+ }], minimizeTitle: [{
412
+ type: Input
413
+ }] } });
414
+
415
+ /**
416
+ * @hidden
417
+ */
418
+ class LocalizedMessagesDirective extends Messages {
419
+ constructor(service) {
420
+ super();
421
+ this.service = service;
422
+ }
423
+ }
424
+ LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
425
+ LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ", providers: [
426
+ {
427
+ provide: Messages,
428
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
429
+ }
430
+ ], usesInheritance: true, ngImport: i0 });
431
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
432
+ type: Directive,
433
+ args: [{
434
+ providers: [
435
+ {
436
+ provide: Messages,
437
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
438
+ }
439
+ ],
440
+ selector: `
441
+ [kendoDialogLocalizedMessages],
442
+ [kendoWindowLocalizedMessages],
443
+ [kendoDialogTitleBarLocalizedMessages]
444
+ `
445
+ }]
446
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
349
447
 
350
448
  /**
351
449
  * Represents the [Kendo UI DialogTitleBar component for Angular]({% slug api_dialog_dialogtitlebarcomponent %}).
352
450
  *
353
451
  * It is used as part of the Dialog content when the component is created dynamically by using an [Angular service]({% slug service_dialog %}).
354
452
  */
355
- let DialogTitleBarComponent = class DialogTitleBarComponent {
453
+ class DialogTitleBarComponent {
356
454
  constructor(zone, hostElement, localizationService) {
357
455
  this.zone = zone;
358
456
  this.hostElement = hostElement;
@@ -382,40 +480,57 @@ let DialogTitleBarComponent = class DialogTitleBarComponent {
382
480
  const eventArgs = new PreventableEvent();
383
481
  this.close.emit(eventArgs);
384
482
  }
385
- };
386
- __decorate([
387
- Output(),
388
- __metadata("design:type", EventEmitter)
389
- ], DialogTitleBarComponent.prototype, "close", void 0);
390
- __decorate([
391
- Input(),
392
- __metadata("design:type", String)
393
- ], DialogTitleBarComponent.prototype, "id", void 0);
394
- __decorate([
395
- Input(),
396
- __metadata("design:type", String)
397
- ], DialogTitleBarComponent.prototype, "closeTitle", void 0);
398
- __decorate([
399
- HostBinding('class.k-window-titlebar'),
400
- HostBinding('class.k-dialog-titlebar'),
401
- __metadata("design:type", Boolean),
402
- __metadata("design:paramtypes", [])
403
- ], DialogTitleBarComponent.prototype, "className", null);
404
- DialogTitleBarComponent = __decorate([
405
- Component({
406
- selector: 'kendo-dialog-titlebar',
407
- providers: [
408
- TitleBarLocalizationService,
409
- {
410
- provide: LocalizationService,
411
- useExisting: TitleBarLocalizationService
412
- },
413
- {
414
- provide: L10N_PREFIX,
415
- useValue: 'kendo.dialog'
416
- }
417
- ],
418
- template: `
483
+ }
484
+ DialogTitleBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogTitleBarComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i1$1.LocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
485
+ DialogTitleBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: { id: "id", closeTitle: "closeTitle" }, outputs: { close: "close" }, host: { properties: { "class.k-window-titlebar": "this.className", "class.k-dialog-titlebar": "this.className" } }, providers: [
486
+ TitleBarLocalizationService,
487
+ {
488
+ provide: LocalizationService,
489
+ useExisting: TitleBarLocalizationService
490
+ },
491
+ {
492
+ provide: L10N_PREFIX,
493
+ useValue: 'kendo.dialog'
494
+ }
495
+ ], ngImport: i0, template: `
496
+ <ng-container
497
+ kendoDialogTitleBarLocalizedMessages
498
+ i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
499
+ closeTitle="Close"
500
+ >
501
+ <div class="k-window-title k-dialog-title">
502
+ <ng-content></ng-content>
503
+ </div>
504
+
505
+ <div class="k-window-actions k-dialog-actions">
506
+ <button
507
+ role="button"
508
+ [attr.title]="closeButtonTitle"
509
+ [attr.aria-label]="closeButtonTitle"
510
+ 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"
511
+ (click)="onCloseClick($event)"
512
+ >
513
+ <span class="k-button-icon k-icon k-i-x"></span>
514
+ </button>
515
+ </div>
516
+ </ng-container>
517
+ `, isInline: true, directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }] });
518
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogTitleBarComponent, decorators: [{
519
+ type: Component,
520
+ args: [{
521
+ selector: 'kendo-dialog-titlebar',
522
+ providers: [
523
+ TitleBarLocalizationService,
524
+ {
525
+ provide: LocalizationService,
526
+ useExisting: TitleBarLocalizationService
527
+ },
528
+ {
529
+ provide: L10N_PREFIX,
530
+ useValue: 'kendo.dialog'
531
+ }
532
+ ],
533
+ template: `
419
534
  <ng-container
420
535
  kendoDialogTitleBarLocalizedMessages
421
536
  i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
@@ -438,10 +553,22 @@ DialogTitleBarComponent = __decorate([
438
553
  </div>
439
554
  </ng-container>
440
555
  `
441
- }),
442
- __param(2, Optional()),
443
- __metadata("design:paramtypes", [NgZone, ElementRef, LocalizationService])
444
- ], DialogTitleBarComponent);
556
+ }]
557
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i1$1.LocalizationService, decorators: [{
558
+ type: Optional
559
+ }] }]; }, propDecorators: { close: [{
560
+ type: Output
561
+ }], id: [{
562
+ type: Input
563
+ }], closeTitle: [{
564
+ type: Input
565
+ }], className: [{
566
+ type: HostBinding,
567
+ args: ['class.k-window-titlebar']
568
+ }, {
569
+ type: HostBinding,
570
+ args: ['class.k-dialog-titlebar']
571
+ }] } });
445
572
 
446
573
  /**
447
574
  * @hidden
@@ -450,17 +577,11 @@ const packageMetadata = {
450
577
  name: '@progress/kendo-angular-dialog',
451
578
  productName: 'Kendo UI for Angular',
452
579
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
453
- publishDate: 1646820184,
580
+ publishDate: 1647536491,
454
581
  version: '',
455
582
  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'
456
583
  };
457
584
 
458
- /**
459
- * The settings for the Dialog actions when the Dialog is opened through `DialogService`
460
- * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
461
- */
462
- class DialogAction {
463
- }
464
585
  /**
465
586
  * Indicates that the **Close** button is clicked. Used when the results from
466
587
  * the Dialogs that are opened through `DialogService` are filtered
@@ -468,24 +589,11 @@ class DialogAction {
468
589
  */
469
590
  class DialogCloseResult {
470
591
  }
471
- /**
472
- * The settings that can be used when the Dialog is opened through `DialogService`.
473
- * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
474
- */
475
- class DialogSettings {
476
- }
477
- /**
478
- * Holds references to the object instance and published events of the Dialog.
479
- * Controls the Dialogs that were opened through the `DialogService`
480
- * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
481
- */
482
- class DialogRef {
483
- }
484
592
 
485
593
  /**
486
594
  * Represents the [Kendo UI Dialog component for Angular]({% slug overview_dialog_dialogs %}).
487
595
  */
488
- let DialogComponent = class DialogComponent {
596
+ class DialogComponent {
489
597
  constructor(wrapper, renderer, localization, cdr, ngZone) {
490
598
  this.wrapper = wrapper;
491
599
  this.renderer = renderer;
@@ -787,107 +895,76 @@ let DialogComponent = class DialogComponent {
787
895
  this.subscriptions.push(s);
788
896
  }
789
897
  }
790
- };
791
- __decorate([
792
- Input(),
793
- __metadata("design:type", Array)
794
- ], DialogComponent.prototype, "actions", void 0);
795
- __decorate([
796
- Input(),
797
- __metadata("design:type", String)
798
- ], DialogComponent.prototype, "actionsLayout", void 0);
799
- __decorate([
800
- Input(),
801
- __metadata("design:type", String)
802
- ], DialogComponent.prototype, "autoFocusedElement", void 0);
803
- __decorate([
804
- Input(),
805
- __metadata("design:type", String)
806
- ], DialogComponent.prototype, "title", void 0);
807
- __decorate([
808
- Input(),
809
- __metadata("design:type", Object)
810
- ], DialogComponent.prototype, "width", void 0);
811
- __decorate([
812
- Input(),
813
- __metadata("design:type", Object)
814
- ], DialogComponent.prototype, "minWidth", void 0);
815
- __decorate([
816
- Input(),
817
- __metadata("design:type", Object)
818
- ], DialogComponent.prototype, "maxWidth", void 0);
819
- __decorate([
820
- Input(),
821
- __metadata("design:type", Object)
822
- ], DialogComponent.prototype, "height", void 0);
823
- __decorate([
824
- Input(),
825
- __metadata("design:type", Object)
826
- ], DialogComponent.prototype, "minHeight", void 0);
827
- __decorate([
828
- Input(),
829
- __metadata("design:type", Object)
830
- ], DialogComponent.prototype, "maxHeight", void 0);
831
- __decorate([
832
- Output(),
833
- __metadata("design:type", EventEmitter)
834
- ], DialogComponent.prototype, "action", void 0);
835
- __decorate([
836
- Output(),
837
- __metadata("design:type", EventEmitter)
838
- ], DialogComponent.prototype, "close", void 0);
839
- __decorate([
840
- HostBinding('attr.dir'),
841
- __metadata("design:type", String),
842
- __metadata("design:paramtypes", [])
843
- ], DialogComponent.prototype, "dir", null);
844
- __decorate([
845
- HostBinding('attr.tabIndex'),
846
- __metadata("design:type", Number)
847
- ], DialogComponent.prototype, "tabIndex", void 0);
848
- __decorate([
849
- ContentChildren(DialogTitleBarComponent, { descendants: false }),
850
- __metadata("design:type", QueryList)
851
- ], DialogComponent.prototype, "titlebarContent", void 0);
852
- __decorate([
853
- ViewChildren(DialogTitleBarComponent),
854
- __metadata("design:type", QueryList)
855
- ], DialogComponent.prototype, "titlebarView", void 0);
856
- __decorate([
857
- ViewChild(DialogActionsComponent, { static: false }),
858
- __metadata("design:type", DialogActionsComponent)
859
- ], DialogComponent.prototype, "actionsView", void 0);
860
- __decorate([
861
- HostBinding('class.k-dialog-wrapper'),
862
- __metadata("design:type", Boolean),
863
- __metadata("design:paramtypes", [])
864
- ], DialogComponent.prototype, "wrapperClass", null);
865
- DialogComponent = __decorate([
866
- Component({
867
- animations: [
868
- trigger('overlayAppear', [
869
- state('in', style({ opacity: 1 })),
870
- transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
871
- ]),
872
- trigger('dialogSlideInAppear', [
873
- state('in', style({ transform: 'translate(0, 0)' })),
874
- transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
875
- ])
876
- ],
877
- exportAs: 'kendoDialog',
878
- providers: [
879
- LocalizationService,
880
- {
881
- provide: DIALOG_LOCALIZATION_SERVICE,
882
- useExisting: LocalizationService
883
- },
884
- {
885
- provide: L10N_PREFIX,
886
- useValue: 'kendo.dialog'
887
- }
888
- ],
889
- selector: 'kendo-dialog',
890
- template: `
898
+ }
899
+ DialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
900
+ DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialogComponent, selector: "kendo-dialog", inputs: { actions: "actions", actionsLayout: "actionsLayout", autoFocusedElement: "autoFocusedElement", title: "title", width: "width", minWidth: "minWidth", maxWidth: "maxWidth", height: "height", minHeight: "minHeight", maxHeight: "maxHeight" }, outputs: { action: "action", close: "close" }, host: { properties: { "attr.dir": "this.dir", "attr.tabIndex": "this.tabIndex", "class.k-dialog-wrapper": "this.wrapperClass" } }, providers: [
901
+ LocalizationService,
902
+ {
903
+ provide: DIALOG_LOCALIZATION_SERVICE,
904
+ useExisting: LocalizationService
905
+ },
906
+ {
907
+ provide: L10N_PREFIX,
908
+ useValue: 'kendo.dialog'
909
+ }
910
+ ], queries: [{ propertyName: "titlebarContent", predicate: DialogTitleBarComponent }], viewQueries: [{ propertyName: "actionsView", first: true, predicate: DialogActionsComponent, descendants: true }, { propertyName: "titlebarView", predicate: DialogTitleBarComponent, descendants: true }], exportAs: ["kendoDialog"], ngImport: i0, template: `
911
+ <ng-container
912
+ kendoDialogLocalizedMessages
913
+ i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
914
+ closeTitle="Close"
915
+ >
916
+ <div class="k-overlay" @overlayAppear></div>
917
+
918
+ <div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>
919
+ <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
920
+ <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
921
+
922
+ <div [id]="contentId" class="k-content k-window-content k-dialog-content">
923
+ <ng-content *ngIf="!contentTemplate"></ng-content>
924
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
925
+ </div>
926
+
927
+ <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
928
+ <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
929
+ </div>
930
+ </ng-container>
931
+ `, isInline: true, components: [{ type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
932
+ trigger('overlayAppear', [
933
+ state('in', style({ opacity: 1 })),
934
+ transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
935
+ ]),
936
+ trigger('dialogSlideInAppear', [
937
+ state('in', style({ transform: 'translate(0, 0)' })),
938
+ transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
939
+ ])
940
+ ] });
941
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogComponent, decorators: [{
942
+ type: Component,
943
+ args: [{
944
+ animations: [
945
+ trigger('overlayAppear', [
946
+ state('in', style({ opacity: 1 })),
947
+ transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
948
+ ]),
949
+ trigger('dialogSlideInAppear', [
950
+ state('in', style({ transform: 'translate(0, 0)' })),
951
+ transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
952
+ ])
953
+ ],
954
+ exportAs: 'kendoDialog',
955
+ providers: [
956
+ LocalizationService,
957
+ {
958
+ provide: DIALOG_LOCALIZATION_SERVICE,
959
+ useExisting: LocalizationService
960
+ },
961
+ {
962
+ provide: L10N_PREFIX,
963
+ useValue: 'kendo.dialog'
964
+ }
965
+ ],
966
+ selector: 'kendo-dialog',
967
+ template: `
891
968
  <ng-container
892
969
  kendoDialogLocalizedMessages
893
970
  i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
@@ -909,13 +986,58 @@ DialogComponent = __decorate([
909
986
  </div>
910
987
  </ng-container>
911
988
  `
912
- }),
913
- __metadata("design:paramtypes", [ElementRef,
914
- Renderer2,
915
- LocalizationService,
916
- ChangeDetectorRef,
917
- NgZone])
918
- ], DialogComponent);
989
+ }]
990
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { actions: [{
991
+ type: Input
992
+ }], actionsLayout: [{
993
+ type: Input
994
+ }], autoFocusedElement: [{
995
+ type: Input
996
+ }], title: [{
997
+ type: Input
998
+ }], width: [{
999
+ type: Input
1000
+ }], minWidth: [{
1001
+ type: Input
1002
+ }], maxWidth: [{
1003
+ type: Input
1004
+ }], height: [{
1005
+ type: Input
1006
+ }], minHeight: [{
1007
+ type: Input
1008
+ }], maxHeight: [{
1009
+ type: Input
1010
+ }], action: [{
1011
+ type: Output
1012
+ }], close: [{
1013
+ type: Output
1014
+ }], dir: [{
1015
+ type: HostBinding,
1016
+ args: ['attr.dir']
1017
+ }], tabIndex: [{
1018
+ type: HostBinding,
1019
+ args: ['attr.tabIndex']
1020
+ }], titlebarContent: [{
1021
+ type: ContentChildren,
1022
+ args: [DialogTitleBarComponent, { descendants: false }]
1023
+ }], titlebarView: [{
1024
+ type: ViewChildren,
1025
+ args: [DialogTitleBarComponent]
1026
+ }], actionsView: [{
1027
+ type: ViewChild,
1028
+ args: [DialogActionsComponent, { static: false }]
1029
+ }], wrapperClass: [{
1030
+ type: HostBinding,
1031
+ args: ['class.k-dialog-wrapper']
1032
+ }] } });
1033
+
1034
+ /**
1035
+ * Holds references to the object instance and published events of the Dialog.
1036
+ * Controls the Dialogs that were opened through the `DialogService`
1037
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
1038
+ */
1039
+ class DialogRef {
1040
+ }
919
1041
 
920
1042
  /**
921
1043
  * The base class which will be extended by a component that is provided as content through `content`
@@ -942,33 +1064,56 @@ class DialogContentBase {
942
1064
  }
943
1065
  }
944
1066
  }
945
- __decorate([
946
- ViewChild(DialogTitleBarComponent, { static: false }),
947
- __metadata("design:type", DialogTitleBarComponent)
948
- ], DialogContentBase.prototype, "dialogTitleBar", void 0);
949
- __decorate([
950
- ViewChild(DialogActionsComponent, { static: false }),
951
- __metadata("design:type", DialogActionsComponent)
952
- ], DialogContentBase.prototype, "dialogActions", void 0);
1067
+ DialogContentBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContentBase, deps: [{ token: DialogRef }], target: i0.ɵɵFactoryTarget.Component });
1068
+ DialogContentBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialogContentBase, selector: "kendo-dialog-content-base", viewQueries: [{ propertyName: "dialogTitleBar", first: true, predicate: DialogTitleBarComponent, descendants: true }, { propertyName: "dialogActions", first: true, predicate: DialogActionsComponent, descendants: true }], ngImport: i0, template: ``, isInline: true });
1069
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContentBase, decorators: [{
1070
+ type: Component,
1071
+ args: [{
1072
+ template: ``,
1073
+ selector: 'kendo-dialog-content-base'
1074
+ }]
1075
+ }], ctorParameters: function () { return [{ type: DialogRef }]; }, propDecorators: { dialogTitleBar: [{
1076
+ type: ViewChild,
1077
+ args: [DialogTitleBarComponent, { static: false }]
1078
+ }], dialogActions: [{
1079
+ type: ViewChild,
1080
+ args: [DialogActionsComponent, { static: false }]
1081
+ }] } });
953
1082
 
954
- var DialogContainerService_1;
955
1083
  /**
956
1084
  * @hidden
957
1085
  */
958
- let DialogContainerService = DialogContainerService_1 = class DialogContainerService {
1086
+ class DialogContainerService {
959
1087
  set container(container) {
960
- DialogContainerService_1.container = container;
1088
+ DialogContainerService.container = container;
961
1089
  }
962
1090
  get container() {
963
- return DialogContainerService_1.container;
1091
+ return DialogContainerService.container;
964
1092
  }
965
- };
1093
+ }
966
1094
  DialogContainerService.container = null;
967
- DialogContainerService = DialogContainerService_1 = __decorate([
968
- Injectable()
969
- ], DialogContainerService);
1095
+ DialogContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1096
+ DialogContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerService });
1097
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerService, decorators: [{
1098
+ type: Injectable
1099
+ }] });
970
1100
 
971
- const isNotComponent = (component) => isString(component) || component instanceof TemplateRef;
1101
+ /**
1102
+ * The settings for the Dialog actions when the Dialog is opened through `DialogService`
1103
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
1104
+ */
1105
+ class DialogAction {
1106
+ }
1107
+
1108
+ /**
1109
+ * The settings that can be used when the Dialog is opened through `DialogService`.
1110
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
1111
+ */
1112
+ class DialogSettings {
1113
+ }
1114
+
1115
+ // eslint-disable max-line-length
1116
+ const isNotComponent$1 = (component) => isString(component) || component instanceof TemplateRef;
972
1117
  class DialogInjector {
973
1118
  constructor(getDialogRef, parentInjector) {
974
1119
  this.getDialogRef = getDialogRef;
@@ -985,7 +1130,7 @@ class DialogInjector {
985
1130
  * A service for opening Dialog windows dynamically
986
1131
  * ([see example]({% slug service_dialog %})).
987
1132
  */
988
- let DialogService = class DialogService {
1133
+ class DialogService {
989
1134
  constructor(
990
1135
  /**
991
1136
  * @hidden
@@ -1082,7 +1227,7 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
1082
1227
  merge(dialog.instance.close, dialog.instance.action).pipe(map(e => (e instanceof PreventableEvent ? new DialogCloseResult() : e)), filter(e => {
1083
1228
  if (options.preventAction) {
1084
1229
  // add dialogRef only when using component
1085
- const dialogRefParameter = isNotComponent(component) ? undefined : dialogRef;
1230
+ const dialogRefParameter = isNotComponent$1(component) ? undefined : dialogRef;
1086
1231
  return !options.preventAction(e, dialogRefParameter);
1087
1232
  }
1088
1233
  return true;
@@ -1166,13 +1311,15 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
1166
1311
  ]
1167
1312
  };
1168
1313
  }
1169
- };
1170
- DialogService = __decorate([
1171
- Injectable(),
1172
- __param(1, Inject(DialogContainerService)),
1173
- __metadata("design:paramtypes", [ComponentFactoryResolver,
1174
- DialogContainerService])
1175
- ], DialogService);
1314
+ }
1315
+ DialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogService, deps: [{ token: i0.ComponentFactoryResolver }, { token: DialogContainerService }], target: i0.ɵɵFactoryTarget.Injectable });
1316
+ DialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogService });
1317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogService, decorators: [{
1318
+ type: Injectable
1319
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: DialogContainerService, decorators: [{
1320
+ type: Inject,
1321
+ args: [DialogContainerService]
1322
+ }] }]; } });
1176
1323
 
1177
1324
  /**
1178
1325
  * @hidden
@@ -1208,7 +1355,7 @@ const createMoveStream = (el, ev) => mouseDown => {
1208
1355
  /**
1209
1356
  * @hidden
1210
1357
  */
1211
- let DragResizeService = class DragResizeService {
1358
+ class DragResizeService {
1212
1359
  constructor(ngZone) {
1213
1360
  this.ngZone = ngZone;
1214
1361
  this.close = new EventEmitter();
@@ -1233,17 +1380,17 @@ let DragResizeService = class DragResizeService {
1233
1380
  }
1234
1381
  }
1235
1382
  init(el) {
1236
- const state$$1 = this.options.state;
1383
+ const state = this.options.state;
1237
1384
  let options = this.options;
1238
1385
  this.window = el;
1239
- if (state$$1 !== 'default') {
1386
+ if (state !== 'default') {
1240
1387
  this.restoreOptions = Object.assign({}, options);
1241
1388
  }
1242
- if (state$$1 === 'minimized') {
1389
+ if (state === 'minimized') {
1243
1390
  options.height = 0;
1244
1391
  options.minHeight = 0;
1245
1392
  }
1246
- if (state$$1 === 'maximized') {
1393
+ if (state === 'maximized') {
1247
1394
  options.position = 'fixed';
1248
1395
  }
1249
1396
  }
@@ -1338,9 +1485,9 @@ let DragResizeService = class DragResizeService {
1338
1485
  }
1339
1486
  }
1340
1487
  if (isPresent(ev.width) || isPresent(ev.height)) {
1341
- OFFSET_STYLES.forEach((style$$1) => {
1342
- if (isPresent(ev[style$$1])) {
1343
- this.options[style$$1] = ev[style$$1];
1488
+ OFFSET_STYLES.forEach((style) => {
1489
+ if (isPresent(ev[style])) {
1490
+ this.options[style] = ev[style];
1344
1491
  }
1345
1492
  });
1346
1493
  this.change.emit(ev);
@@ -1395,8 +1542,8 @@ let DragResizeService = class DragResizeService {
1395
1542
  * Required to distinguish them from action clicks.
1396
1543
  */
1397
1544
  applyManualState() {
1398
- const state$$1 = this.options.state;
1399
- switch (state$$1) {
1545
+ const state = this.options.state;
1546
+ switch (state) {
1400
1547
  case 'default':
1401
1548
  this.clearHeight();
1402
1549
  this.defaultState();
@@ -1471,9 +1618,9 @@ let DragResizeService = class DragResizeService {
1471
1618
  this.options.left = wrapper.left;
1472
1619
  this.options.top = wrapper.top;
1473
1620
  }
1474
- setRestoreOption(style$$1, value) {
1621
+ setRestoreOption(style, value) {
1475
1622
  if (isPresent(this.restoreOptions)) {
1476
- this.restoreOptions[style$$1] = value;
1623
+ this.restoreOptions[style] = value;
1477
1624
  }
1478
1625
  }
1479
1626
  get nextPossibleZIndex() {
@@ -1485,16 +1632,17 @@ let DragResizeService = class DragResizeService {
1485
1632
  get windowViewPort() {
1486
1633
  return getWindowViewPort(this.window.nativeElement);
1487
1634
  }
1488
- };
1489
- DragResizeService = __decorate([
1490
- Injectable(),
1491
- __metadata("design:paramtypes", [NgZone])
1492
- ], DragResizeService);
1635
+ }
1636
+ DragResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragResizeService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
1637
+ DragResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragResizeService });
1638
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragResizeService, decorators: [{
1639
+ type: Injectable
1640
+ }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
1493
1641
 
1494
1642
  /**
1495
1643
  * @hidden
1496
1644
  */
1497
- let ResizeHandleDirective = class ResizeHandleDirective {
1645
+ class ResizeHandleDirective {
1498
1646
  constructor(draggable, el, renderer, service) {
1499
1647
  this.draggable = draggable;
1500
1648
  this.el = el;
@@ -1522,8 +1670,8 @@ let ResizeHandleDirective = class ResizeHandleDirective {
1522
1670
  this.subscriptions.add(merge(this.service.resizeEnd, this.service.dragEnd).subscribe(() => {
1523
1671
  this.setDisplay('block');
1524
1672
  }));
1525
- this.subscriptions.add(this.service.stateChange.subscribe((state$$1) => {
1526
- this.setDisplay(state$$1 === 'default' ? 'block' : 'none');
1673
+ this.subscriptions.add(this.service.stateChange.subscribe((state) => {
1674
+ this.setDisplay(state === 'default' ? 'block' : 'none');
1527
1675
  }));
1528
1676
  }
1529
1677
  ngOnDestroy() {
@@ -1532,28 +1680,24 @@ let ResizeHandleDirective = class ResizeHandleDirective {
1532
1680
  setDisplay(value = 'block') {
1533
1681
  this.renderer.setStyle(this.el.nativeElement, 'display', this.service.options.state === 'default' ? value : 'none');
1534
1682
  }
1535
- };
1536
- __decorate([
1537
- Input(),
1538
- __metadata("design:type", String)
1539
- ], ResizeHandleDirective.prototype, "direction", void 0);
1540
- __decorate([
1541
- HostBinding('class.k-resize-handle'),
1542
- __metadata("design:type", Boolean),
1543
- __metadata("design:paramtypes", [])
1544
- ], ResizeHandleDirective.prototype, "hostClass", null);
1545
- ResizeHandleDirective = __decorate([
1546
- Directive({
1547
- selector: '[kendoWindowResizeHandle]'
1548
- }),
1549
- __param(0, Host()),
1550
- __metadata("design:paramtypes", [DraggableDirective,
1551
- ElementRef,
1552
- Renderer2,
1553
- DragResizeService])
1554
- ], ResizeHandleDirective);
1683
+ }
1684
+ ResizeHandleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, deps: [{ token: i1$2.DraggableDirective, host: true }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService }], target: i0.ɵɵFactoryTarget.Directive });
1685
+ ResizeHandleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: { direction: "direction" }, host: { properties: { "class.k-resize-handle": "this.hostClass" } }, ngImport: i0 });
1686
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, decorators: [{
1687
+ type: Directive,
1688
+ args: [{
1689
+ selector: '[kendoWindowResizeHandle]'
1690
+ }]
1691
+ }], ctorParameters: function () { return [{ type: i1$2.DraggableDirective, decorators: [{
1692
+ type: Host
1693
+ }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }]; }, propDecorators: { direction: [{
1694
+ type: Input
1695
+ }], hostClass: [{
1696
+ type: HostBinding,
1697
+ args: ['class.k-resize-handle']
1698
+ }] } });
1555
1699
 
1556
- let WindowTitleBarComponent = class WindowTitleBarComponent {
1700
+ class WindowTitleBarComponent {
1557
1701
  constructor(el, service, ngZone) {
1558
1702
  this.el = el;
1559
1703
  this.ngZone = ngZone;
@@ -1585,9 +1729,9 @@ let WindowTitleBarComponent = class WindowTitleBarComponent {
1585
1729
  * @hidden
1586
1730
  */
1587
1731
  subscribeStateChange() {
1588
- this.stateSubscription = this.service.stateChange.subscribe((state$$1) => {
1732
+ this.stateSubscription = this.service.stateChange.subscribe((state) => {
1589
1733
  if (this.service.options.draggable) {
1590
- if (state$$1 === 'maximized') {
1734
+ if (state === 'maximized') {
1591
1735
  this.unsubscribeDrag();
1592
1736
  }
1593
1737
  else {
@@ -1628,12 +1772,12 @@ let WindowTitleBarComponent = class WindowTitleBarComponent {
1628
1772
  */
1629
1773
  handle(ev) {
1630
1774
  const target = ev.target;
1631
- const state$$1 = this.service.options.state;
1775
+ const state = this.service.options.state;
1632
1776
  if (!hasClasses(target, 'k-icon') && !isFocusable(target, false) && this.service.options.resizable) {
1633
- if (state$$1 === 'default') {
1777
+ if (state === 'default') {
1634
1778
  this.service.maximizeAction();
1635
1779
  }
1636
- else if (state$$1 === 'maximized') {
1780
+ else if (state === 'maximized') {
1637
1781
  this.service.restoreAction();
1638
1782
  }
1639
1783
  }
@@ -1642,46 +1786,47 @@ let WindowTitleBarComponent = class WindowTitleBarComponent {
1642
1786
  const options = this.service.options;
1643
1787
  return options.draggable && options.state !== 'maximized';
1644
1788
  }
1645
- };
1646
- __decorate([
1647
- Input(),
1648
- __metadata("design:type", TemplateRef)
1649
- ], WindowTitleBarComponent.prototype, "template", void 0);
1650
- __decorate([
1651
- HostBinding('class.k-window-titlebar'),
1652
- HostBinding('class.k-dialog-titlebar'),
1653
- __metadata("design:type", Boolean),
1654
- __metadata("design:paramtypes", [])
1655
- ], WindowTitleBarComponent.prototype, "className", null);
1656
- __decorate([
1657
- HostBinding('style.touch-action'),
1658
- __metadata("design:type", String),
1659
- __metadata("design:paramtypes", [])
1660
- ], WindowTitleBarComponent.prototype, "touchAction", null);
1661
- __decorate([
1662
- HostListener('dblclick', ['$event']),
1663
- __metadata("design:type", Function),
1664
- __metadata("design:paramtypes", [Object]),
1665
- __metadata("design:returntype", void 0)
1666
- ], WindowTitleBarComponent.prototype, "handle", null);
1667
- WindowTitleBarComponent = __decorate([
1668
- Component({
1669
- selector: 'kendo-window-titlebar',
1670
- template: `
1789
+ }
1790
+ WindowTitleBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowTitleBarComponent, deps: [{ token: i0.ElementRef }, { token: DragResizeService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1791
+ WindowTitleBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: { template: "template" }, host: { listeners: { "dblclick": "handle($event)" }, properties: { "class.k-window-titlebar": "this.className", "class.k-dialog-titlebar": "this.className", "style.touch-action": "this.touchAction" } }, ngImport: i0, template: `
1792
+ <ng-content *ngIf="!template"></ng-content>
1793
+ <ng-template
1794
+ [ngTemplateOutlet]="template"
1795
+ [ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
1796
+ </ng-template>
1797
+ `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
1798
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowTitleBarComponent, decorators: [{
1799
+ type: Component,
1800
+ args: [{
1801
+ selector: 'kendo-window-titlebar',
1802
+ template: `
1671
1803
  <ng-content *ngIf="!template"></ng-content>
1672
1804
  <ng-template
1673
1805
  [ngTemplateOutlet]="template"
1674
1806
  [ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
1675
1807
  </ng-template>
1676
1808
  `
1677
- }),
1678
- __metadata("design:paramtypes", [ElementRef, DragResizeService, NgZone])
1679
- ], WindowTitleBarComponent);
1809
+ }]
1810
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: DragResizeService }, { type: i0.NgZone }]; }, propDecorators: { template: [{
1811
+ type: Input
1812
+ }], className: [{
1813
+ type: HostBinding,
1814
+ args: ['class.k-window-titlebar']
1815
+ }, {
1816
+ type: HostBinding,
1817
+ args: ['class.k-dialog-titlebar']
1818
+ }], touchAction: [{
1819
+ type: HostBinding,
1820
+ args: ['style.touch-action']
1821
+ }], handle: [{
1822
+ type: HostListener,
1823
+ args: ['dblclick', ['$event']]
1824
+ }] } });
1680
1825
 
1681
1826
  /**
1682
1827
  * @hidden
1683
1828
  */
1684
- let NavigationService = class NavigationService {
1829
+ class NavigationService {
1685
1830
  constructor(window, ngZone) {
1686
1831
  this.window = window;
1687
1832
  this.ngZone = ngZone;
@@ -1729,7 +1874,7 @@ let NavigationService = class NavigationService {
1729
1874
  if (!options.draggable) {
1730
1875
  return;
1731
1876
  }
1732
- const offset$$1 = this.window.currentOffsetAndPosition();
1877
+ const offset = this.window.currentOffsetAndPosition();
1733
1878
  let restoreOptions = this.window.restoreOptions;
1734
1879
  let ev = {};
1735
1880
  let delta = 10;
@@ -1739,13 +1884,13 @@ let NavigationService = class NavigationService {
1739
1884
  switch (key) {
1740
1885
  case Keys.left:
1741
1886
  case Keys.right: {
1742
- ev.left = offset$$1.x + delta;
1887
+ ev.left = offset.x + delta;
1743
1888
  options.left = ev.left;
1744
1889
  break;
1745
1890
  }
1746
1891
  case Keys.up:
1747
1892
  case Keys.down: {
1748
- ev.top = offset$$1.y + delta;
1893
+ ev.top = offset.y + delta;
1749
1894
  options.top = ev.top;
1750
1895
  break;
1751
1896
  }
@@ -1763,7 +1908,7 @@ let NavigationService = class NavigationService {
1763
1908
  if (!options.resizable) {
1764
1909
  return;
1765
1910
  }
1766
- const offset$$1 = this.window.currentOffsetAndPosition();
1911
+ const offset = this.window.currentOffsetAndPosition();
1767
1912
  let newWidth;
1768
1913
  let newHeight;
1769
1914
  let ev = {};
@@ -1774,7 +1919,7 @@ let NavigationService = class NavigationService {
1774
1919
  switch (key) {
1775
1920
  case Keys.left:
1776
1921
  case Keys.right: {
1777
- newWidth = offset$$1.width + delta;
1922
+ newWidth = offset.width + delta;
1778
1923
  if (newWidth !== options.width && newWidth >= options.minWidth) {
1779
1924
  ev.width = newWidth;
1780
1925
  }
@@ -1782,7 +1927,7 @@ let NavigationService = class NavigationService {
1782
1927
  }
1783
1928
  case Keys.up:
1784
1929
  case Keys.down: {
1785
- newHeight = offset$$1.height + delta;
1930
+ newHeight = offset.height + delta;
1786
1931
  if (newHeight !== options.height && newHeight >= options.minHeight) {
1787
1932
  ev.height = newHeight;
1788
1933
  }
@@ -1792,21 +1937,21 @@ let NavigationService = class NavigationService {
1792
1937
  break;
1793
1938
  }
1794
1939
  if (isPresent(ev.width) || isPresent(ev.height)) {
1795
- OFFSET_STYLES.forEach((style$$1) => {
1796
- if (isPresent(ev[style$$1])) {
1797
- this.window.options[style$$1] = ev[style$$1];
1940
+ OFFSET_STYLES.forEach((style) => {
1941
+ if (isPresent(ev[style])) {
1942
+ this.window.options[style] = ev[style];
1798
1943
  }
1799
1944
  });
1800
1945
  this.window.change.emit(ev);
1801
1946
  }
1802
1947
  }
1803
- handleStateChange(key, state$$1) {
1804
- if ((state$$1 === 'minimized' && key === Keys.up) ||
1805
- (state$$1 === 'maximized' && key === Keys.down)) {
1948
+ handleStateChange(key, state) {
1949
+ if ((state === 'minimized' && key === Keys.up) ||
1950
+ (state === 'maximized' && key === Keys.down)) {
1806
1951
  this.window.restoreAction();
1807
1952
  return;
1808
1953
  }
1809
- if (state$$1 === 'default') {
1954
+ if (state === 'default') {
1810
1955
  if (key === Keys.up) {
1811
1956
  this.window.maximizeAction();
1812
1957
  }
@@ -1815,17 +1960,235 @@ let NavigationService = class NavigationService {
1815
1960
  }
1816
1961
  }
1817
1962
  }
1818
- };
1819
- NavigationService = __decorate([
1820
- Injectable(),
1821
- __metadata("design:paramtypes", [DragResizeService,
1822
- NgZone])
1823
- ], NavigationService);
1963
+ }
1964
+ NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, deps: [{ token: DragResizeService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
1965
+ NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService });
1966
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, decorators: [{
1967
+ type: Injectable
1968
+ }], ctorParameters: function () { return [{ type: DragResizeService }, { type: i0.NgZone }]; } });
1969
+
1970
+ class WindowMinimizeActionDirective extends Button {
1971
+ constructor(el, renderer, _service, localization, ngZone) {
1972
+ super(el, renderer, null, localization, ngZone);
1973
+ this.buttonType = 'button';
1974
+ this.window = _service;
1975
+ this.fillMode = 'flat';
1976
+ this.icon = 'window-minimize';
1977
+ }
1978
+ /**
1979
+ * @hidden
1980
+ */
1981
+ onClick() {
1982
+ if (!this.isDisabled) {
1983
+ this.window.minimizeAction();
1984
+ }
1985
+ }
1986
+ get visible() {
1987
+ return this.window.options.state === 'default' ? 'inline-flex' : 'none';
1988
+ }
1989
+ }
1990
+ WindowMinimizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMinimizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1$1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
1991
+ WindowMinimizeActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "style.display": "this.visible" } }, providers: [
1992
+ LocalizationService,
1993
+ {
1994
+ provide: L10N_PREFIX,
1995
+ useValue: 'kendo.button'
1996
+ }
1997
+ ], exportAs: ["kendoWindowMinimizeAction"], usesInheritance: true, ngImport: i0 });
1998
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMinimizeActionDirective, decorators: [{
1999
+ type: Directive,
2000
+ args: [{
2001
+ exportAs: 'kendoWindowMinimizeAction',
2002
+ providers: [
2003
+ LocalizationService,
2004
+ {
2005
+ provide: L10N_PREFIX,
2006
+ useValue: 'kendo.button'
2007
+ }
2008
+ ],
2009
+ selector: 'button[kendoWindowMinimizeAction]' // eslint-disable-line
2010
+ }]
2011
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
2012
+ type: Optional
2013
+ }] }, { type: i1$1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
2014
+ type: Input
2015
+ }], buttonType: [{
2016
+ type: HostBinding,
2017
+ args: ['attr.type']
2018
+ }], onClick: [{
2019
+ type: HostListener,
2020
+ args: ['click']
2021
+ }], visible: [{
2022
+ type: HostBinding,
2023
+ args: ['style.display']
2024
+ }] } });
2025
+
2026
+ class WindowMaximizeActionDirective extends Button {
2027
+ constructor(el, renderer, _service, localization, ngZone) {
2028
+ super(el, renderer, null, localization, ngZone);
2029
+ this.buttonType = 'button';
2030
+ this.window = _service;
2031
+ this.fillMode = 'flat';
2032
+ this.icon = 'window-maximize';
2033
+ }
2034
+ /**
2035
+ * @hidden
2036
+ */
2037
+ onClick() {
2038
+ if (!this.isDisabled) {
2039
+ this.window.maximizeAction();
2040
+ }
2041
+ }
2042
+ get visible() {
2043
+ return this.window.options.state === 'default' ? 'inline-flex' : 'none';
2044
+ }
2045
+ }
2046
+ WindowMaximizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMaximizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1$1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
2047
+ WindowMaximizeActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "style.display": "this.visible" } }, providers: [
2048
+ LocalizationService,
2049
+ {
2050
+ provide: L10N_PREFIX,
2051
+ useValue: 'kendo.button'
2052
+ }
2053
+ ], exportAs: ["kendoWindowMaximizeAction"], usesInheritance: true, ngImport: i0 });
2054
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMaximizeActionDirective, decorators: [{
2055
+ type: Directive,
2056
+ args: [{
2057
+ exportAs: 'kendoWindowMaximizeAction',
2058
+ providers: [
2059
+ LocalizationService,
2060
+ {
2061
+ provide: L10N_PREFIX,
2062
+ useValue: 'kendo.button'
2063
+ }
2064
+ ],
2065
+ selector: 'button[kendoWindowMaximizeAction]' // eslint-disable-line
2066
+ }]
2067
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
2068
+ type: Optional
2069
+ }] }, { type: i1$1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
2070
+ type: Input
2071
+ }], buttonType: [{
2072
+ type: HostBinding,
2073
+ args: ['attr.type']
2074
+ }], onClick: [{
2075
+ type: HostListener,
2076
+ args: ['click']
2077
+ }], visible: [{
2078
+ type: HostBinding,
2079
+ args: ['style.display']
2080
+ }] } });
2081
+
2082
+ class WindowRestoreActionDirective extends Button {
2083
+ constructor(el, renderer, _service, localization, ngZone) {
2084
+ super(el, renderer, null, localization, ngZone);
2085
+ this.buttonType = 'button';
2086
+ this.window = _service;
2087
+ this.fillMode = 'flat';
2088
+ this.icon = 'window-restore';
2089
+ }
2090
+ /**
2091
+ * @hidden
2092
+ */
2093
+ onClick() {
2094
+ if (!this.isDisabled) {
2095
+ this.window.restoreAction();
2096
+ }
2097
+ }
2098
+ get visible() {
2099
+ return this.window.options.state === 'default' ? 'none' : 'inline-flex';
2100
+ }
2101
+ }
2102
+ WindowRestoreActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowRestoreActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1$1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
2103
+ WindowRestoreActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "style.display": "this.visible" } }, providers: [
2104
+ LocalizationService,
2105
+ {
2106
+ provide: L10N_PREFIX,
2107
+ useValue: 'kendo.button'
2108
+ }
2109
+ ], exportAs: ["kendoWindowRestoreAction"], usesInheritance: true, ngImport: i0 });
2110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowRestoreActionDirective, decorators: [{
2111
+ type: Directive,
2112
+ args: [{
2113
+ exportAs: 'kendoWindowRestoreAction',
2114
+ providers: [
2115
+ LocalizationService,
2116
+ {
2117
+ provide: L10N_PREFIX,
2118
+ useValue: 'kendo.button'
2119
+ }
2120
+ ],
2121
+ selector: 'button[kendoWindowRestoreAction]' // eslint-disable-line
2122
+ }]
2123
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
2124
+ type: Optional
2125
+ }] }, { type: i1$1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
2126
+ type: Input
2127
+ }], buttonType: [{
2128
+ type: HostBinding,
2129
+ args: ['attr.type']
2130
+ }], onClick: [{
2131
+ type: HostListener,
2132
+ args: ['click']
2133
+ }], visible: [{
2134
+ type: HostBinding,
2135
+ args: ['style.display']
2136
+ }] } });
2137
+
2138
+ class WindowCloseActionDirective extends Button {
2139
+ constructor(el, renderer, _service, localization, ngZone) {
2140
+ super(el, renderer, null, localization, ngZone);
2141
+ this.buttonType = 'button';
2142
+ this.window = _service;
2143
+ this.fillMode = 'flat';
2144
+ this.icon = 'close';
2145
+ }
2146
+ /**
2147
+ * @hidden
2148
+ */
2149
+ onClick() {
2150
+ if (!this.isDisabled) {
2151
+ this.window.closeAction();
2152
+ }
2153
+ }
2154
+ }
2155
+ WindowCloseActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowCloseActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1$1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
2156
+ WindowCloseActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType" } }, providers: [
2157
+ LocalizationService,
2158
+ {
2159
+ provide: L10N_PREFIX,
2160
+ useValue: 'kendo.button'
2161
+ }
2162
+ ], exportAs: ["kendoWindowCloseAction"], usesInheritance: true, ngImport: i0 });
2163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowCloseActionDirective, decorators: [{
2164
+ type: Directive,
2165
+ args: [{
2166
+ exportAs: 'kendoWindowCloseAction',
2167
+ providers: [
2168
+ LocalizationService,
2169
+ {
2170
+ provide: L10N_PREFIX,
2171
+ useValue: 'kendo.button'
2172
+ }
2173
+ ],
2174
+ selector: 'button[kendoWindowCloseAction]' // eslint-disable-line
2175
+ }]
2176
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
2177
+ type: Optional
2178
+ }] }, { type: i1$1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
2179
+ type: Input
2180
+ }], buttonType: [{
2181
+ type: HostBinding,
2182
+ args: ['attr.type']
2183
+ }], onClick: [{
2184
+ type: HostListener,
2185
+ args: ['click']
2186
+ }] } });
1824
2187
 
1825
2188
  /**
1826
2189
  * Represents the [Kendo UI Window component for Angular]({% slug overview_window_dialogs %}).
1827
2190
  */
1828
- let WindowComponent = class WindowComponent {
2191
+ class WindowComponent {
1829
2192
  constructor(el, renderer, service, navigation, ngZone, localization) {
1830
2193
  this.el = el;
1831
2194
  this.renderer = renderer;
@@ -2066,9 +2429,9 @@ let WindowComponent = class WindowComponent {
2066
2429
  this.service.init(this.el);
2067
2430
  }
2068
2431
  ngOnChanges(changes) {
2069
- OFFSET_STYLES.forEach((style$$1) => {
2070
- if (isChanged(style$$1, changes)) {
2071
- this.setStyle(style$$1, this.options[style$$1]);
2432
+ OFFSET_STYLES.forEach((style) => {
2433
+ if (isChanged(style, changes)) {
2434
+ this.setStyle(style, this.options[style]);
2072
2435
  }
2073
2436
  });
2074
2437
  if (isChanged('draggable', changes)) {
@@ -2136,9 +2499,9 @@ let WindowComponent = class WindowComponent {
2136
2499
  * @param {WindowOffsetSetting} offset - The option that will be updated
2137
2500
  * @param {number} value - The value set in pixels
2138
2501
  */
2139
- setOffset(offset$$1, value) {
2140
- this.setOption(offset$$1, value);
2141
- this.setStyle(offset$$1, value);
2502
+ setOffset(offset, value) {
2503
+ this.setOption(offset, value);
2504
+ this.setStyle(offset, value);
2142
2505
  }
2143
2506
  get showDefaultTitleBar() {
2144
2507
  return !isPresent(this.titleBarContent);
@@ -2210,24 +2573,24 @@ let WindowComponent = class WindowComponent {
2210
2573
  }
2211
2574
  }));
2212
2575
  this.windowSubscription.add(this.service.change.subscribe((ev) => {
2213
- OFFSET_STYLES.forEach((style$$1) => {
2214
- if (isPresent(ev[style$$1])) {
2215
- this.setStyle(style$$1, ev[style$$1]);
2576
+ OFFSET_STYLES.forEach((style) => {
2577
+ if (isPresent(ev[style])) {
2578
+ this.setStyle(style, ev[style]);
2216
2579
  if (this.state !== 'maximized') {
2217
- const emitter = this[style$$1 + 'Change'];
2580
+ const emitter = this[style + 'Change'];
2218
2581
  if (emitter.observers.length) {
2219
2582
  this.ngZone.run(() => {
2220
- emitter.emit(ev[style$$1]);
2583
+ emitter.emit(ev[style]);
2221
2584
  });
2222
2585
  }
2223
2586
  }
2224
2587
  }
2225
2588
  });
2226
2589
  }));
2227
- this.windowSubscription.add(this.service.stateChange.subscribe((state$$1) => {
2590
+ this.windowSubscription.add(this.service.stateChange.subscribe((state) => {
2228
2591
  if (isPresent(this.service.lastAction)) {
2229
2592
  this.updateAllOffset();
2230
- this.stateChange.emit(state$$1);
2593
+ this.stateChange.emit(state);
2231
2594
  }
2232
2595
  }));
2233
2596
  }
@@ -2282,31 +2645,31 @@ let WindowComponent = class WindowComponent {
2282
2645
  }
2283
2646
  }
2284
2647
  updateAllOffset() {
2285
- OFFSET_STYLES.forEach((style$$1) => {
2286
- if (isPresent(this[style$$1])) {
2287
- this.setStyle(style$$1, this[style$$1]);
2648
+ OFFSET_STYLES.forEach((style) => {
2649
+ if (isPresent(this[style])) {
2650
+ this.setStyle(style, this[style]);
2288
2651
  }
2289
2652
  else {
2290
- this.removeStyle(style$$1);
2653
+ this.removeStyle(style);
2291
2654
  }
2292
2655
  });
2293
2656
  }
2294
- setStyle(style$$1, value) {
2295
- this.renderer.setStyle(this.el.nativeElement, style$$1, value + 'px');
2657
+ setStyle(style, value) {
2658
+ this.renderer.setStyle(this.el.nativeElement, style, value + 'px');
2296
2659
  }
2297
- removeStyle(style$$1) {
2298
- this.renderer.removeStyle(this.el.nativeElement, style$$1);
2660
+ removeStyle(style) {
2661
+ this.renderer.removeStyle(this.el.nativeElement, style);
2299
2662
  }
2300
2663
  get options() {
2301
2664
  return this.service.options;
2302
2665
  }
2303
- setOption(style$$1, value) {
2666
+ setOption(style, value) {
2304
2667
  if (typeof value !== 'number' && typeof value !== 'string') {
2305
2668
  return;
2306
2669
  }
2307
2670
  const parsedValue = (typeof value === 'number') ? value : parseInt(value, 10);
2308
- this.options[style$$1] = parsedValue;
2309
- this.service.setRestoreOption(style$$1, parsedValue);
2671
+ this.options[style] = parsedValue;
2672
+ this.service.setRestoreOption(style, parsedValue);
2310
2673
  }
2311
2674
  handleInitialFocus() {
2312
2675
  const wrapper = this.el.nativeElement;
@@ -2320,181 +2683,17 @@ let WindowComponent = class WindowComponent {
2320
2683
  this.focus();
2321
2684
  }
2322
2685
  }
2323
- };
2324
- __decorate([
2325
- Input(),
2326
- __metadata("design:type", String)
2327
- ], WindowComponent.prototype, "autoFocusedElement", void 0);
2328
- __decorate([
2329
- Input(),
2330
- __metadata("design:type", String)
2331
- ], WindowComponent.prototype, "title", void 0);
2332
- __decorate([
2333
- Input(),
2334
- __metadata("design:type", Boolean),
2335
- __metadata("design:paramtypes", [Boolean])
2336
- ], WindowComponent.prototype, "draggable", null);
2337
- __decorate([
2338
- Input(),
2339
- __metadata("design:type", Boolean),
2340
- __metadata("design:paramtypes", [Boolean])
2341
- ], WindowComponent.prototype, "resizable", null);
2342
- __decorate([
2343
- Input(),
2344
- __metadata("design:type", Boolean)
2345
- ], WindowComponent.prototype, "keepContent", void 0);
2346
- __decorate([
2347
- Input(),
2348
- __metadata("design:type", String),
2349
- __metadata("design:paramtypes", [String])
2350
- ], WindowComponent.prototype, "state", null);
2351
- __decorate([
2352
- Input(),
2353
- __metadata("design:type", Number),
2354
- __metadata("design:paramtypes", [Number])
2355
- ], WindowComponent.prototype, "minWidth", null);
2356
- __decorate([
2357
- Input(),
2358
- __metadata("design:type", Number),
2359
- __metadata("design:paramtypes", [Number])
2360
- ], WindowComponent.prototype, "minHeight", null);
2361
- __decorate([
2362
- Input(),
2363
- __metadata("design:type", Number),
2364
- __metadata("design:paramtypes", [Number])
2365
- ], WindowComponent.prototype, "width", null);
2366
- __decorate([
2367
- Input(),
2368
- __metadata("design:type", Number),
2369
- __metadata("design:paramtypes", [Number])
2370
- ], WindowComponent.prototype, "height", null);
2371
- __decorate([
2372
- Input(),
2373
- __metadata("design:type", Number),
2374
- __metadata("design:paramtypes", [Number])
2375
- ], WindowComponent.prototype, "top", null);
2376
- __decorate([
2377
- Input(),
2378
- __metadata("design:type", Number),
2379
- __metadata("design:paramtypes", [Number])
2380
- ], WindowComponent.prototype, "left", null);
2381
- __decorate([
2382
- Output(),
2383
- __metadata("design:type", EventEmitter)
2384
- ], WindowComponent.prototype, "dragStart", void 0);
2385
- __decorate([
2386
- Output(),
2387
- __metadata("design:type", EventEmitter)
2388
- ], WindowComponent.prototype, "dragEnd", void 0);
2389
- __decorate([
2390
- Output(),
2391
- __metadata("design:type", EventEmitter)
2392
- ], WindowComponent.prototype, "resizeStart", void 0);
2393
- __decorate([
2394
- Output(),
2395
- __metadata("design:type", EventEmitter)
2396
- ], WindowComponent.prototype, "resizeEnd", void 0);
2397
- __decorate([
2398
- Output(),
2399
- __metadata("design:type", EventEmitter)
2400
- ], WindowComponent.prototype, "close", void 0);
2401
- __decorate([
2402
- Output(),
2403
- __metadata("design:type", EventEmitter)
2404
- ], WindowComponent.prototype, "widthChange", void 0);
2405
- __decorate([
2406
- Output(),
2407
- __metadata("design:type", EventEmitter)
2408
- ], WindowComponent.prototype, "heightChange", void 0);
2409
- __decorate([
2410
- Output(),
2411
- __metadata("design:type", EventEmitter)
2412
- ], WindowComponent.prototype, "topChange", void 0);
2413
- __decorate([
2414
- Output(),
2415
- __metadata("design:type", EventEmitter)
2416
- ], WindowComponent.prototype, "leftChange", void 0);
2417
- __decorate([
2418
- Output(),
2419
- __metadata("design:type", EventEmitter)
2420
- ], WindowComponent.prototype, "stateChange", void 0);
2421
- __decorate([
2422
- HostBinding('attr.tabIndex'),
2423
- __metadata("design:type", Number)
2424
- ], WindowComponent.prototype, "tabIndex", void 0);
2425
- __decorate([
2426
- HostBinding('class.k-window'),
2427
- __metadata("design:type", Boolean),
2428
- __metadata("design:paramtypes", [])
2429
- ], WindowComponent.prototype, "hostClasses", null);
2430
- __decorate([
2431
- HostBinding('attr.dir'),
2432
- __metadata("design:type", String),
2433
- __metadata("design:paramtypes", [])
2434
- ], WindowComponent.prototype, "dir", null);
2435
- __decorate([
2436
- ViewChild(WindowTitleBarComponent, { static: false }),
2437
- __metadata("design:type", WindowTitleBarComponent)
2438
- ], WindowComponent.prototype, "titleBarView", void 0);
2439
- __decorate([
2440
- ContentChild(WindowTitleBarComponent, { static: false }),
2441
- __metadata("design:type", WindowTitleBarComponent)
2442
- ], WindowComponent.prototype, "titleBarContent", void 0);
2443
- __decorate([
2444
- ViewChildren(ResizeHandleDirective),
2445
- __metadata("design:type", QueryList)
2446
- ], WindowComponent.prototype, "resizeHandles", void 0);
2447
- __decorate([
2448
- HostBinding('style.minWidth'),
2449
- __metadata("design:type", String),
2450
- __metadata("design:paramtypes", [])
2451
- ], WindowComponent.prototype, "styleMinWidth", null);
2452
- __decorate([
2453
- HostBinding('style.minHeight'),
2454
- __metadata("design:type", String),
2455
- __metadata("design:paramtypes", [])
2456
- ], WindowComponent.prototype, "styleMinHeight", null);
2457
- __decorate([
2458
- HostBinding('style.position'),
2459
- __metadata("design:type", String),
2460
- __metadata("design:paramtypes", [])
2461
- ], WindowComponent.prototype, "stylePosition", null);
2462
- __decorate([
2463
- HostBinding('class.k-window-maximized'),
2464
- __metadata("design:type", Boolean),
2465
- __metadata("design:paramtypes", [])
2466
- ], WindowComponent.prototype, "wrapperMaximizedClass", null);
2467
- __decorate([
2468
- HostBinding('class.k-window-minimized'),
2469
- __metadata("design:type", Boolean),
2470
- __metadata("design:paramtypes", [])
2471
- ], WindowComponent.prototype, "wrapperMinimizedClass", null);
2472
- __decorate([
2473
- HostListener('focus'),
2474
- __metadata("design:type", Function),
2475
- __metadata("design:paramtypes", []),
2476
- __metadata("design:returntype", void 0)
2477
- ], WindowComponent.prototype, "onComponentFocus", null);
2478
- __decorate([
2479
- HostListener('blur'),
2480
- __metadata("design:type", Function),
2481
- __metadata("design:paramtypes", []),
2482
- __metadata("design:returntype", void 0)
2483
- ], WindowComponent.prototype, "onComponentBlur", null);
2484
- WindowComponent = __decorate([
2485
- Component({
2486
- exportAs: 'kendoWindow',
2487
- providers: [
2488
- DragResizeService,
2489
- NavigationService,
2490
- LocalizationService,
2491
- {
2492
- provide: L10N_PREFIX,
2493
- useValue: 'kendo.window'
2494
- }
2495
- ],
2496
- selector: 'kendo-window',
2497
- template: `
2686
+ }
2687
+ WindowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService }, { token: NavigationService }, { token: i0.NgZone }, { token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
2688
+ WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: WindowComponent, selector: "kendo-window", inputs: { autoFocusedElement: "autoFocusedElement", title: "title", draggable: "draggable", resizable: "resizable", keepContent: "keepContent", state: "state", minWidth: "minWidth", minHeight: "minHeight", width: "width", height: "height", top: "top", left: "left" }, outputs: { dragStart: "dragStart", dragEnd: "dragEnd", resizeStart: "resizeStart", resizeEnd: "resizeEnd", close: "close", widthChange: "widthChange", heightChange: "heightChange", topChange: "topChange", leftChange: "leftChange", stateChange: "stateChange" }, host: { listeners: { "focus": "onComponentFocus()", "blur": "onComponentBlur()" }, properties: { "attr.tabIndex": "this.tabIndex", "class.k-window": "this.hostClasses", "attr.dir": "this.dir", "style.minWidth": "this.styleMinWidth", "style.minHeight": "this.styleMinHeight", "style.position": "this.stylePosition", "class.k-window-maximized": "this.wrapperMaximizedClass", "class.k-window-minimized": "this.wrapperMinimizedClass" } }, providers: [
2689
+ DragResizeService,
2690
+ NavigationService,
2691
+ LocalizationService,
2692
+ {
2693
+ provide: L10N_PREFIX,
2694
+ useValue: 'kendo.window'
2695
+ }
2696
+ ], queries: [{ propertyName: "titleBarContent", first: true, predicate: WindowTitleBarComponent, descendants: true }], viewQueries: [{ propertyName: "titleBarView", first: true, predicate: WindowTitleBarComponent, descendants: true }, { propertyName: "resizeHandles", predicate: ResizeHandleDirective, descendants: true }], exportAs: ["kendoWindow"], usesOnChanges: true, ngImport: i0, template: `
2498
2697
  <ng-container kendoWindowLocalizedMessages
2499
2698
  i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
2500
2699
  closeTitle="Close"
@@ -2536,255 +2735,156 @@ WindowComponent = __decorate([
2536
2735
  kendoDraggable>
2537
2736
  </div>
2538
2737
  </ng-template>
2539
- `
2540
- }),
2541
- __metadata("design:paramtypes", [ElementRef,
2542
- Renderer2,
2543
- DragResizeService,
2544
- NavigationService,
2545
- NgZone,
2546
- LocalizationService])
2547
- ], WindowComponent);
2738
+ `, isInline: true, components: [{ type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template"] }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { type: i1$2.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
2739
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowComponent, decorators: [{
2740
+ type: Component,
2741
+ args: [{
2742
+ exportAs: 'kendoWindow',
2743
+ providers: [
2744
+ DragResizeService,
2745
+ NavigationService,
2746
+ LocalizationService,
2747
+ {
2748
+ provide: L10N_PREFIX,
2749
+ useValue: 'kendo.window'
2750
+ }
2751
+ ],
2752
+ selector: 'kendo-window',
2753
+ template: `
2754
+ <ng-container kendoWindowLocalizedMessages
2755
+ i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
2756
+ closeTitle="Close"
2548
2757
 
2549
- let WindowMaximizeActionDirective = class WindowMaximizeActionDirective extends Button {
2550
- constructor(el, renderer, _service, localization, ngZone) {
2551
- super(el, renderer, null, localization, ngZone);
2552
- this.buttonType = 'button';
2553
- this.window = _service;
2554
- this.fillMode = 'flat';
2555
- this.icon = 'window-maximize';
2556
- }
2557
- /**
2558
- * @hidden
2559
- */
2560
- onClick() {
2561
- if (!this.isDisabled) {
2562
- this.window.maximizeAction();
2563
- }
2564
- }
2565
- get visible() {
2566
- return this.window.options.state === 'default' ? 'inline-flex' : 'none';
2567
- }
2568
- };
2569
- __decorate([
2570
- Input(),
2571
- __metadata("design:type", Object)
2572
- ], WindowMaximizeActionDirective.prototype, "window", void 0);
2573
- __decorate([
2574
- HostBinding('attr.type'),
2575
- __metadata("design:type", String)
2576
- ], WindowMaximizeActionDirective.prototype, "buttonType", void 0);
2577
- __decorate([
2578
- HostListener('click'),
2579
- __metadata("design:type", Function),
2580
- __metadata("design:paramtypes", []),
2581
- __metadata("design:returntype", void 0)
2582
- ], WindowMaximizeActionDirective.prototype, "onClick", null);
2583
- __decorate([
2584
- HostBinding('style.display'),
2585
- __metadata("design:type", String),
2586
- __metadata("design:paramtypes", [])
2587
- ], WindowMaximizeActionDirective.prototype, "visible", null);
2588
- WindowMaximizeActionDirective = __decorate([
2589
- Directive({
2590
- exportAs: 'kendoWindowMaximizeAction',
2591
- providers: [
2592
- LocalizationService,
2593
- {
2594
- provide: L10N_PREFIX,
2595
- useValue: 'kendo.button'
2596
- }
2597
- ],
2598
- selector: 'button[kendoWindowMaximizeAction]' // tslint:disable-line
2599
- }),
2600
- __param(2, Optional()),
2601
- __metadata("design:paramtypes", [ElementRef,
2602
- Renderer2,
2603
- DragResizeService,
2604
- LocalizationService,
2605
- NgZone])
2606
- ], WindowMaximizeActionDirective);
2758
+ i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"
2759
+ restoreTitle="Restore"
2607
2760
 
2608
- let WindowMinimizeActionDirective = class WindowMinimizeActionDirective extends Button {
2609
- constructor(el, renderer, _service, localization, ngZone) {
2610
- super(el, renderer, null, localization, ngZone);
2611
- this.buttonType = 'button';
2612
- this.window = _service;
2613
- this.fillMode = 'flat';
2614
- this.icon = 'window-minimize';
2615
- }
2616
- /**
2617
- * @hidden
2618
- */
2619
- onClick() {
2620
- if (!this.isDisabled) {
2621
- this.window.minimizeAction();
2622
- }
2623
- }
2624
- get visible() {
2625
- return this.window.options.state === 'default' ? 'inline-flex' : 'none';
2626
- }
2627
- };
2628
- __decorate([
2629
- Input(),
2630
- __metadata("design:type", Object)
2631
- ], WindowMinimizeActionDirective.prototype, "window", void 0);
2632
- __decorate([
2633
- HostBinding('attr.type'),
2634
- __metadata("design:type", String)
2635
- ], WindowMinimizeActionDirective.prototype, "buttonType", void 0);
2636
- __decorate([
2637
- HostListener('click'),
2638
- __metadata("design:type", Function),
2639
- __metadata("design:paramtypes", []),
2640
- __metadata("design:returntype", void 0)
2641
- ], WindowMinimizeActionDirective.prototype, "onClick", null);
2642
- __decorate([
2643
- HostBinding('style.display'),
2644
- __metadata("design:type", String),
2645
- __metadata("design:paramtypes", [])
2646
- ], WindowMinimizeActionDirective.prototype, "visible", null);
2647
- WindowMinimizeActionDirective = __decorate([
2648
- Directive({
2649
- exportAs: 'kendoWindowMinimizeAction',
2650
- providers: [
2651
- LocalizationService,
2652
- {
2653
- provide: L10N_PREFIX,
2654
- useValue: 'kendo.button'
2655
- }
2656
- ],
2657
- selector: 'button[kendoWindowMinimizeAction]' // tslint:disable-line
2658
- }),
2659
- __param(2, Optional()),
2660
- __metadata("design:paramtypes", [ElementRef,
2661
- Renderer2,
2662
- DragResizeService,
2663
- LocalizationService,
2664
- NgZone])
2665
- ], WindowMinimizeActionDirective);
2761
+ i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"
2762
+ maximizeTitle="Maximize"
2666
2763
 
2667
- let WindowCloseActionDirective = class WindowCloseActionDirective extends Button {
2668
- constructor(el, renderer, _service, localization, ngZone) {
2669
- super(el, renderer, null, localization, ngZone);
2670
- this.buttonType = 'button';
2671
- this.window = _service;
2672
- this.fillMode = 'flat';
2673
- this.icon = 'close';
2674
- }
2675
- /**
2676
- * @hidden
2677
- */
2678
- onClick() {
2679
- if (!this.isDisabled) {
2680
- this.window.closeAction();
2681
- }
2682
- }
2683
- };
2684
- __decorate([
2685
- Input(),
2686
- __metadata("design:type", Object)
2687
- ], WindowCloseActionDirective.prototype, "window", void 0);
2688
- __decorate([
2689
- HostBinding('attr.type'),
2690
- __metadata("design:type", String)
2691
- ], WindowCloseActionDirective.prototype, "buttonType", void 0);
2692
- __decorate([
2693
- HostListener('click'),
2694
- __metadata("design:type", Function),
2695
- __metadata("design:paramtypes", []),
2696
- __metadata("design:returntype", void 0)
2697
- ], WindowCloseActionDirective.prototype, "onClick", null);
2698
- WindowCloseActionDirective = __decorate([
2699
- Directive({
2700
- exportAs: 'kendoWindowCloseAction',
2701
- providers: [
2702
- LocalizationService,
2703
- {
2704
- provide: L10N_PREFIX,
2705
- useValue: 'kendo.button'
2706
- }
2707
- ],
2708
- selector: 'button[kendoWindowCloseAction]' // tslint:disable-line
2709
- }),
2710
- __param(2, Optional()),
2711
- __metadata("design:paramtypes", [ElementRef,
2712
- Renderer2,
2713
- DragResizeService,
2714
- LocalizationService,
2715
- NgZone])
2716
- ], WindowCloseActionDirective);
2764
+ i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"
2765
+ minimizeTitle="Minimize"
2766
+ >
2767
+ <ng-container>
2717
2768
 
2718
- let WindowRestoreActionDirective = class WindowRestoreActionDirective extends Button {
2719
- constructor(el, renderer, _service, localization, ngZone) {
2720
- super(el, renderer, null, localization, ngZone);
2721
- this.buttonType = 'button';
2722
- this.window = _service;
2723
- this.fillMode = 'flat';
2724
- this.icon = 'window-restore';
2725
- }
2726
- /**
2727
- * @hidden
2728
- */
2729
- onClick() {
2730
- if (!this.isDisabled) {
2731
- this.window.restoreAction();
2732
- }
2733
- }
2734
- get visible() {
2735
- return this.window.options.state === 'default' ? 'none' : 'inline-flex';
2736
- }
2737
- };
2738
- __decorate([
2739
- Input(),
2740
- __metadata("design:type", Object)
2741
- ], WindowRestoreActionDirective.prototype, "window", void 0);
2742
- __decorate([
2743
- HostBinding('attr.type'),
2744
- __metadata("design:type", String)
2745
- ], WindowRestoreActionDirective.prototype, "buttonType", void 0);
2746
- __decorate([
2747
- HostListener('click'),
2748
- __metadata("design:type", Function),
2749
- __metadata("design:paramtypes", []),
2750
- __metadata("design:returntype", void 0)
2751
- ], WindowRestoreActionDirective.prototype, "onClick", null);
2752
- __decorate([
2753
- HostBinding('style.display'),
2754
- __metadata("design:type", String),
2755
- __metadata("design:paramtypes", [])
2756
- ], WindowRestoreActionDirective.prototype, "visible", null);
2757
- WindowRestoreActionDirective = __decorate([
2758
- Directive({
2759
- exportAs: 'kendoWindowRestoreAction',
2760
- providers: [
2761
- LocalizationService,
2762
- {
2763
- provide: L10N_PREFIX,
2764
- useValue: 'kendo.button'
2765
- }
2766
- ],
2767
- selector: 'button[kendoWindowRestoreAction]' // tslint:disable-line
2768
- }),
2769
- __param(2, Optional()),
2770
- __metadata("design:paramtypes", [ElementRef,
2771
- Renderer2,
2772
- DragResizeService,
2773
- LocalizationService,
2774
- NgZone])
2775
- ], WindowRestoreActionDirective);
2769
+ <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">
2770
+ <div class="k-window-title">{{ title }}</div>
2771
+ <div class="k-window-actions">
2772
+ <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>
2773
+ <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>
2774
+ <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>
2775
+ <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>
2776
+ </div>
2777
+ </kendo-window-titlebar>
2778
+ <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>
2779
+
2780
+ <div *ngIf="state !== 'minimized' || keepContent"
2781
+ [hidden]="state === 'minimized' && keepContent"
2782
+ class="k-content k-window-content"
2783
+ >
2784
+ <ng-content *ngIf="!contentTemplate"></ng-content>
2785
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
2786
+ </div>
2787
+
2788
+ <ng-template [ngIf]='resizable'>
2789
+ <div *ngFor='let dir of resizeDirections'
2790
+ [direction]="dir"
2791
+ kendoWindowResizeHandle
2792
+ kendoDraggable>
2793
+ </div>
2794
+ </ng-template>
2795
+ `
2796
+ }]
2797
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }, { type: NavigationService }, { type: i0.NgZone }, { type: i1$1.LocalizationService }]; }, propDecorators: { autoFocusedElement: [{
2798
+ type: Input
2799
+ }], title: [{
2800
+ type: Input
2801
+ }], draggable: [{
2802
+ type: Input
2803
+ }], resizable: [{
2804
+ type: Input
2805
+ }], keepContent: [{
2806
+ type: Input
2807
+ }], state: [{
2808
+ type: Input
2809
+ }], minWidth: [{
2810
+ type: Input
2811
+ }], minHeight: [{
2812
+ type: Input
2813
+ }], width: [{
2814
+ type: Input
2815
+ }], height: [{
2816
+ type: Input
2817
+ }], top: [{
2818
+ type: Input
2819
+ }], left: [{
2820
+ type: Input
2821
+ }], dragStart: [{
2822
+ type: Output
2823
+ }], dragEnd: [{
2824
+ type: Output
2825
+ }], resizeStart: [{
2826
+ type: Output
2827
+ }], resizeEnd: [{
2828
+ type: Output
2829
+ }], close: [{
2830
+ type: Output
2831
+ }], widthChange: [{
2832
+ type: Output
2833
+ }], heightChange: [{
2834
+ type: Output
2835
+ }], topChange: [{
2836
+ type: Output
2837
+ }], leftChange: [{
2838
+ type: Output
2839
+ }], stateChange: [{
2840
+ type: Output
2841
+ }], tabIndex: [{
2842
+ type: HostBinding,
2843
+ args: ['attr.tabIndex']
2844
+ }], hostClasses: [{
2845
+ type: HostBinding,
2846
+ args: ['class.k-window']
2847
+ }], dir: [{
2848
+ type: HostBinding,
2849
+ args: ['attr.dir']
2850
+ }], titleBarView: [{
2851
+ type: ViewChild,
2852
+ args: [WindowTitleBarComponent, { static: false }]
2853
+ }], titleBarContent: [{
2854
+ type: ContentChild,
2855
+ args: [WindowTitleBarComponent, { static: false }]
2856
+ }], resizeHandles: [{
2857
+ type: ViewChildren,
2858
+ args: [ResizeHandleDirective]
2859
+ }], styleMinWidth: [{
2860
+ type: HostBinding,
2861
+ args: ['style.minWidth']
2862
+ }], styleMinHeight: [{
2863
+ type: HostBinding,
2864
+ args: ['style.minHeight']
2865
+ }], stylePosition: [{
2866
+ type: HostBinding,
2867
+ args: ['style.position']
2868
+ }], wrapperMaximizedClass: [{
2869
+ type: HostBinding,
2870
+ args: ['class.k-window-maximized']
2871
+ }], wrapperMinimizedClass: [{
2872
+ type: HostBinding,
2873
+ args: ['class.k-window-minimized']
2874
+ }], onComponentFocus: [{
2875
+ type: HostListener,
2876
+ args: ['focus']
2877
+ }], onComponentBlur: [{
2878
+ type: HostListener,
2879
+ args: ['blur']
2880
+ }] } });
2776
2881
 
2777
- /**
2778
- * The settings for the Window actions when the Window is opened through `WindowService`
2779
- * ([see example]({% slug api_dialog_windowservice %}#toc-open)).
2780
- */
2781
- class WindowSettings {
2782
- }
2783
2882
  /**
2784
2883
  * Indicates that the **Close** button of a Window that is opened through `WindowService` is clicked.
2785
2884
  */
2786
2885
  class WindowCloseResult {
2787
2886
  }
2887
+
2788
2888
  /**
2789
2889
  * Holds references to the object instance of the Window.
2790
2890
  * Controls the Windows that were opened through `WindowService`
@@ -2793,24 +2893,32 @@ class WindowCloseResult {
2793
2893
  class WindowRef {
2794
2894
  }
2795
2895
 
2796
- var WindowContainerService_1;
2896
+ /**
2897
+ * The settings for the Window actions when the Window is opened through `WindowService`
2898
+ * ([see example]({% slug api_dialog_windowservice %}#toc-open)).
2899
+ */
2900
+ class WindowSettings {
2901
+ }
2902
+
2797
2903
  /**
2798
2904
  * @hidden
2799
2905
  */
2800
- let WindowContainerService = WindowContainerService_1 = class WindowContainerService {
2906
+ class WindowContainerService {
2801
2907
  set container(container) {
2802
- WindowContainerService_1.container = container;
2908
+ WindowContainerService.container = container;
2803
2909
  }
2804
2910
  get container() {
2805
- return WindowContainerService_1.container;
2911
+ return WindowContainerService.container;
2806
2912
  }
2807
- };
2913
+ }
2808
2914
  WindowContainerService.container = null;
2809
- WindowContainerService = WindowContainerService_1 = __decorate([
2810
- Injectable()
2811
- ], WindowContainerService);
2915
+ WindowContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2916
+ WindowContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerService });
2917
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerService, decorators: [{
2918
+ type: Injectable
2919
+ }] });
2812
2920
 
2813
- const isNotComponent$1 = (component) => isString(component) || component instanceof TemplateRef;
2921
+ const isNotComponent = (component) => isString(component) || component instanceof TemplateRef;
2814
2922
  class WindowInjector {
2815
2923
  constructor(getWindowRef, parentInjector) {
2816
2924
  this.getWindowRef = getWindowRef;
@@ -2827,7 +2935,7 @@ class WindowInjector {
2827
2935
  * A service for opening Windows dynamically
2828
2936
  * ([see example]({% slug service_window %})).
2829
2937
  */
2830
- let WindowService = class WindowService {
2938
+ class WindowService {
2831
2939
  constructor(
2832
2940
  /**
2833
2941
  * @hidden
@@ -2901,7 +3009,7 @@ let WindowService = class WindowService {
2901
3009
  const result = merge(apiClose, window.instance.close.pipe(map(e => (e ? e : new WindowCloseResult())), filter((e) => {
2902
3010
  if (settings.preventClose) {
2903
3011
  // add windowRef only when using component
2904
- const windowRefParameter = isNotComponent$1(settings.content) ? undefined : windowRef;
3012
+ const windowRefParameter = isNotComponent(settings.content) ? undefined : windowRef;
2905
3013
  return !settings.preventClose(e, windowRefParameter);
2906
3014
  }
2907
3015
  return true;
@@ -3003,13 +3111,15 @@ let WindowService = class WindowService {
3003
3111
  ]
3004
3112
  };
3005
3113
  }
3006
- };
3007
- WindowService = __decorate([
3008
- Injectable(),
3009
- __param(1, Inject(WindowContainerService)),
3010
- __metadata("design:paramtypes", [ComponentFactoryResolver,
3011
- WindowContainerService])
3012
- ], WindowService);
3114
+ }
3115
+ WindowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, deps: [{ token: i0.ComponentFactoryResolver }, { token: WindowContainerService }], target: i0.ɵɵFactoryTarget.Injectable });
3116
+ WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService });
3117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, decorators: [{
3118
+ type: Injectable
3119
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: WindowContainerService, decorators: [{
3120
+ type: Inject,
3121
+ args: [WindowContainerService]
3122
+ }] }]; } });
3013
3123
 
3014
3124
  /**
3015
3125
  * Provides an insertion point for the Dialogs which are created through the
@@ -3021,74 +3131,25 @@ WindowService = __decorate([
3021
3131
  * <div kendoDialogContainer></div>
3022
3132
  * ```
3023
3133
  */
3024
- let DialogContainerDirective = class DialogContainerDirective {
3134
+ class DialogContainerDirective {
3025
3135
  constructor(container, service) {
3026
3136
  service.container = container;
3027
3137
  }
3028
- };
3029
- DialogContainerDirective = __decorate([
3030
- Directive({
3031
- selector: '[kendoDialogContainer]'
3032
- }),
3033
- __metadata("design:paramtypes", [ViewContainerRef,
3034
- DialogContainerService])
3035
- ], DialogContainerDirective);
3036
-
3037
- /**
3038
- * @hidden
3039
- */
3040
- class Messages extends ComponentMessages {
3041
3138
  }
3042
- __decorate([
3043
- Input(),
3044
- __metadata("design:type", String)
3045
- ], Messages.prototype, "closeTitle", void 0);
3046
- __decorate([
3047
- Input(),
3048
- __metadata("design:type", String)
3049
- ], Messages.prototype, "restoreTitle", void 0);
3050
- __decorate([
3051
- Input(),
3052
- __metadata("design:type", String)
3053
- ], Messages.prototype, "maximizeTitle", void 0);
3054
- __decorate([
3055
- Input(),
3056
- __metadata("design:type", String)
3057
- ], Messages.prototype, "minimizeTitle", void 0);
3139
+ DialogContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: DialogContainerService }], target: i0.ɵɵFactoryTarget.Directive });
3140
+ DialogContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DialogContainerDirective, selector: "[kendoDialogContainer]", ngImport: i0 });
3141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerDirective, decorators: [{
3142
+ type: Directive,
3143
+ args: [{
3144
+ selector: '[kendoDialogContainer]'
3145
+ }]
3146
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: DialogContainerService }]; } });
3058
3147
 
3059
- var LocalizedMessagesDirective_1;
3060
- /**
3061
- * @hidden
3062
- */
3063
- let LocalizedMessagesDirective = LocalizedMessagesDirective_1 = class LocalizedMessagesDirective extends Messages {
3064
- constructor(service) {
3065
- super();
3066
- this.service = service;
3067
- }
3068
- };
3069
- LocalizedMessagesDirective = LocalizedMessagesDirective_1 = __decorate([
3070
- Directive({
3071
- providers: [
3072
- {
3073
- provide: Messages,
3074
- useExisting: forwardRef(() => LocalizedMessagesDirective_1)
3075
- }
3076
- ],
3077
- selector: `
3078
- [kendoDialogLocalizedMessages],
3079
- [kendoWindowLocalizedMessages],
3080
- [kendoDialogTitleBarLocalizedMessages]
3081
- `
3082
- }),
3083
- __metadata("design:paramtypes", [LocalizationService])
3084
- ], LocalizedMessagesDirective);
3085
-
3086
- var CustomMessagesComponent_1;
3087
3148
  /**
3088
3149
  * Custom component messages override default component messages
3089
3150
  * ([see example]({% slug globalization_dialogs %}#toc-localization)).
3090
3151
  */
3091
- let CustomMessagesComponent = CustomMessagesComponent_1 = class CustomMessagesComponent extends Messages {
3152
+ class CustomMessagesComponent extends Messages {
3092
3153
  constructor(service) {
3093
3154
  super();
3094
3155
  this.service = service;
@@ -3096,20 +3157,27 @@ let CustomMessagesComponent = CustomMessagesComponent_1 = class CustomMessagesCo
3096
3157
  get override() {
3097
3158
  return true;
3098
3159
  }
3099
- };
3100
- CustomMessagesComponent = CustomMessagesComponent_1 = __decorate([
3101
- Component({
3102
- providers: [
3103
- {
3104
- provide: Messages,
3105
- useExisting: forwardRef(() => CustomMessagesComponent_1) // tslint:disable-line:no-forward-ref
3106
- }
3107
- ],
3108
- selector: 'kendo-dialog-messages, kendo-window-messages',
3109
- template: ``
3110
- }),
3111
- __metadata("design:paramtypes", [LocalizationService])
3112
- ], CustomMessagesComponent);
3160
+ }
3161
+ CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
3162
+ CustomMessagesComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CustomMessagesComponent, selector: "kendo-dialog-messages, kendo-window-messages", providers: [
3163
+ {
3164
+ provide: Messages,
3165
+ useExisting: forwardRef(() => CustomMessagesComponent)
3166
+ }
3167
+ ], usesInheritance: true, ngImport: i0 });
3168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, decorators: [{
3169
+ type: Directive,
3170
+ args: [{
3171
+ providers: [
3172
+ {
3173
+ provide: Messages,
3174
+ useExisting: forwardRef(() => CustomMessagesComponent)
3175
+ }
3176
+ ],
3177
+ // eslint-disable-next-line @angular-eslint/directive-selector
3178
+ selector: 'kendo-dialog-messages, kendo-window-messages'
3179
+ }]
3180
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
3113
3181
 
3114
3182
  /**
3115
3183
  * @hidden
@@ -3122,15 +3190,23 @@ const SHARED_DIRECTIVES = [
3122
3190
  /**
3123
3191
  * @hidden
3124
3192
  */
3125
- let SharedModule = class SharedModule {
3126
- };
3127
- SharedModule = __decorate([
3128
- NgModule({
3129
- declarations: [SHARED_DIRECTIVES],
3130
- exports: [SHARED_DIRECTIVES, CommonModule],
3131
- imports: [CommonModule]
3132
- })
3133
- ], SharedModule);
3193
+ class SharedModule {
3194
+ }
3195
+ SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3196
+ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, declarations: [DialogActionsComponent,
3197
+ CustomMessagesComponent,
3198
+ LocalizedMessagesDirective], imports: [CommonModule], exports: [DialogActionsComponent,
3199
+ CustomMessagesComponent,
3200
+ LocalizedMessagesDirective, CommonModule] });
3201
+ SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, imports: [[CommonModule], CommonModule] });
3202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, decorators: [{
3203
+ type: NgModule,
3204
+ args: [{
3205
+ declarations: [SHARED_DIRECTIVES],
3206
+ exports: [SHARED_DIRECTIVES, CommonModule],
3207
+ imports: [CommonModule]
3208
+ }]
3209
+ }] });
3134
3210
 
3135
3211
  /**
3136
3212
  * @hidden
@@ -3161,17 +3237,22 @@ const DIALOG_DIRECTIVES = [
3161
3237
  * }
3162
3238
  * ```
3163
3239
  */
3164
- let DialogModule = class DialogModule {
3165
- };
3166
- DialogModule = __decorate([
3167
- NgModule({
3168
- declarations: [DIALOG_DIRECTIVES, DialogContainerDirective],
3169
- entryComponents: [DIALOG_DIRECTIVES],
3170
- exports: [DIALOG_DIRECTIVES, SHARED_DIRECTIVES, DialogContainerDirective],
3171
- imports: [SharedModule],
3172
- providers: [DialogContainerService, DialogService]
3173
- })
3174
- ], DialogModule);
3240
+ class DialogModule {
3241
+ }
3242
+ DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3243
+ DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, declarations: [DialogComponent,
3244
+ DialogTitleBarComponent, DialogContainerDirective], imports: [SharedModule], exports: [DialogComponent,
3245
+ DialogTitleBarComponent, DialogActionsComponent, CustomMessagesComponent, LocalizedMessagesDirective, DialogContainerDirective] });
3246
+ DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService], imports: [[SharedModule]] });
3247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, decorators: [{
3248
+ type: NgModule,
3249
+ args: [{
3250
+ declarations: [DIALOG_DIRECTIVES, DialogContainerDirective],
3251
+ exports: [DIALOG_DIRECTIVES, SHARED_DIRECTIVES, DialogContainerDirective],
3252
+ imports: [SharedModule],
3253
+ providers: [DialogContainerService, DialogService]
3254
+ }]
3255
+ }] });
3175
3256
 
3176
3257
  /**
3177
3258
  * Provides an insertion point for the Windows which are created through the
@@ -3183,18 +3264,19 @@ DialogModule = __decorate([
3183
3264
  * <div kendoWindowContainer></div>
3184
3265
  * ```
3185
3266
  */
3186
- let WindowContainerDirective = class WindowContainerDirective {
3267
+ class WindowContainerDirective {
3187
3268
  constructor(container, service) {
3188
3269
  service.container = container;
3189
3270
  }
3190
- };
3191
- WindowContainerDirective = __decorate([
3192
- Directive({
3193
- selector: '[kendoWindowContainer]'
3194
- }),
3195
- __metadata("design:paramtypes", [ViewContainerRef,
3196
- WindowContainerService])
3197
- ], WindowContainerDirective);
3271
+ }
3272
+ WindowContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: WindowContainerService }], target: i0.ɵɵFactoryTarget.Directive });
3273
+ WindowContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowContainerDirective, selector: "[kendoWindowContainer]", ngImport: i0 });
3274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerDirective, decorators: [{
3275
+ type: Directive,
3276
+ args: [{
3277
+ selector: '[kendoWindowContainer]'
3278
+ }]
3279
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: WindowContainerService }]; } });
3198
3280
 
3199
3281
  const WINDOW_DIRECTIVES = [
3200
3282
  ResizeHandleDirective,
@@ -3205,10 +3287,6 @@ const WINDOW_DIRECTIVES = [
3205
3287
  WindowMaximizeActionDirective,
3206
3288
  WindowRestoreActionDirective
3207
3289
  ];
3208
- const ENTRY_COMPONENTS = [
3209
- WindowComponent,
3210
- WindowTitleBarComponent
3211
- ];
3212
3290
  const exportedModules = [
3213
3291
  WindowComponent,
3214
3292
  WindowCloseActionDirective,
@@ -3239,17 +3317,31 @@ const exportedModules = [
3239
3317
  * }
3240
3318
  * ```
3241
3319
  */
3242
- let WindowModule = class WindowModule {
3243
- };
3244
- WindowModule = __decorate([
3245
- NgModule({
3246
- declarations: [WINDOW_DIRECTIVES, WindowContainerDirective],
3247
- entryComponents: [ENTRY_COMPONENTS],
3248
- exports: [exportedModules, SHARED_DIRECTIVES, WindowContainerDirective],
3249
- imports: [SharedModule, DraggableModule],
3250
- providers: [WindowContainerService, WindowService]
3251
- })
3252
- ], WindowModule);
3320
+ class WindowModule {
3321
+ }
3322
+ WindowModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3323
+ WindowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowModule, declarations: [ResizeHandleDirective,
3324
+ WindowComponent,
3325
+ WindowTitleBarComponent,
3326
+ WindowCloseActionDirective,
3327
+ WindowMinimizeActionDirective,
3328
+ WindowMaximizeActionDirective,
3329
+ WindowRestoreActionDirective, WindowContainerDirective], imports: [SharedModule, DraggableModule], exports: [WindowComponent,
3330
+ WindowCloseActionDirective,
3331
+ WindowMinimizeActionDirective,
3332
+ WindowMaximizeActionDirective,
3333
+ WindowRestoreActionDirective,
3334
+ WindowTitleBarComponent, DialogActionsComponent, CustomMessagesComponent, LocalizedMessagesDirective, WindowContainerDirective] });
3335
+ WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService], imports: [[SharedModule, DraggableModule]] });
3336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowModule, decorators: [{
3337
+ type: NgModule,
3338
+ args: [{
3339
+ declarations: [WINDOW_DIRECTIVES, WindowContainerDirective],
3340
+ exports: [exportedModules, SHARED_DIRECTIVES, WindowContainerDirective],
3341
+ imports: [SharedModule, DraggableModule],
3342
+ providers: [WindowContainerService, WindowService]
3343
+ }]
3344
+ }] });
3253
3345
 
3254
3346
  /**
3255
3347
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
@@ -3276,16 +3368,21 @@ WindowModule = __decorate([
3276
3368
  *
3277
3369
  * ```
3278
3370
  */
3279
- let DialogsModule = class DialogsModule {
3280
- };
3281
- DialogsModule = __decorate([
3282
- NgModule({
3283
- exports: [DialogModule, WindowModule]
3284
- })
3285
- ], DialogsModule);
3371
+ class DialogsModule {
3372
+ }
3373
+ DialogsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3374
+ DialogsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, exports: [DialogModule, WindowModule] });
3375
+ DialogsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, imports: [DialogModule, WindowModule] });
3376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, decorators: [{
3377
+ type: NgModule,
3378
+ args: [{
3379
+ exports: [DialogModule, WindowModule]
3380
+ }]
3381
+ }] });
3286
3382
 
3287
3383
  /**
3288
3384
  * Generated bundle index. Do not edit.
3289
3385
  */
3290
3386
 
3291
- export { DIALOG_DIRECTIVES, DialogContainerDirective, DialogContainerService, CustomMessagesComponent, DIALOG_LOCALIZATION_SERVICE, LocalizedMessagesDirective, Messages, TitleBarLocalizationService, SHARED_DIRECTIVES, SharedModule, DragResizeService, NavigationService, WindowContainerDirective, WindowContainerService, ResizeHandleDirective, DialogComponent, DialogTitleBarComponent, DialogContentBase, DialogActionsComponent, DialogService, DialogCloseResult, DialogRef, DialogSettings, DialogAction, WindowComponent, WindowTitleBarComponent, WindowMaximizeActionDirective, WindowMinimizeActionDirective, WindowCloseActionDirective, WindowRestoreActionDirective, WindowSettings, WindowRef, WindowCloseResult, WindowService, DialogModule, WindowModule, DialogsModule };
3387
+ export { CustomMessagesComponent, DialogAction, DialogActionsComponent, DialogCloseResult, DialogComponent, DialogContainerDirective, DialogContentBase, DialogModule, DialogRef, DialogService, DialogSettings, DialogTitleBarComponent, DialogsModule, LocalizedMessagesDirective, Messages, WindowCloseActionDirective, WindowCloseResult, WindowComponent, WindowContainerDirective, WindowMaximizeActionDirective, WindowMinimizeActionDirective, WindowModule, WindowRef, WindowRestoreActionDirective, WindowService, WindowSettings, WindowTitleBarComponent };
3388
+