@progress/kendo-angular-dialog 6.0.3-dev.202203091004 → 7.0.0-dev.202204150748

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 +21 -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 +29 -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 +30 -13
  68. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dialog.js} +1026 -922
  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 +35 -106
  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,90 @@ 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
+ // eslint-disable-next-line @angular-eslint/directive-selector
404
+ selector: 'kendo-dialog-messages-base'
405
+ }]
406
+ }], propDecorators: { closeTitle: [{
407
+ type: Input
408
+ }], restoreTitle: [{
409
+ type: Input
410
+ }], maximizeTitle: [{
411
+ type: Input
412
+ }], minimizeTitle: [{
413
+ type: Input
414
+ }] } });
415
+
416
+ /**
417
+ * @hidden
418
+ */
419
+ class LocalizedMessagesDirective extends Messages {
420
+ constructor(service) {
421
+ super();
422
+ this.service = service;
423
+ }
424
+ }
425
+ 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 });
426
+ LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ", providers: [
427
+ {
428
+ provide: Messages,
429
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
430
+ }
431
+ ], usesInheritance: true, ngImport: i0 });
432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
433
+ type: Directive,
434
+ args: [{
435
+ providers: [
436
+ {
437
+ provide: Messages,
438
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
439
+ }
440
+ ],
441
+ selector: `
442
+ [kendoDialogLocalizedMessages],
443
+ [kendoWindowLocalizedMessages],
444
+ [kendoDialogTitleBarLocalizedMessages]
445
+ `
446
+ }]
447
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
349
448
 
350
449
  /**
351
450
  * Represents the [Kendo UI DialogTitleBar component for Angular]({% slug api_dialog_dialogtitlebarcomponent %}).
352
451
  *
353
452
  * It is used as part of the Dialog content when the component is created dynamically by using an [Angular service]({% slug service_dialog %}).
354
453
  */
355
- let DialogTitleBarComponent = class DialogTitleBarComponent {
454
+ class DialogTitleBarComponent {
356
455
  constructor(zone, hostElement, localizationService) {
357
456
  this.zone = zone;
358
457
  this.hostElement = hostElement;
@@ -382,40 +481,57 @@ let DialogTitleBarComponent = class DialogTitleBarComponent {
382
481
  const eventArgs = new PreventableEvent();
383
482
  this.close.emit(eventArgs);
384
483
  }
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: `
484
+ }
485
+ 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 });
486
+ 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: [
487
+ TitleBarLocalizationService,
488
+ {
489
+ provide: LocalizationService,
490
+ useExisting: TitleBarLocalizationService
491
+ },
492
+ {
493
+ provide: L10N_PREFIX,
494
+ useValue: 'kendo.dialog'
495
+ }
496
+ ], ngImport: i0, template: `
497
+ <ng-container
498
+ kendoDialogTitleBarLocalizedMessages
499
+ i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
500
+ closeTitle="Close"
501
+ >
502
+ <div class="k-window-title k-dialog-title">
503
+ <ng-content></ng-content>
504
+ </div>
505
+
506
+ <div class="k-window-actions k-dialog-actions">
507
+ <button
508
+ role="button"
509
+ [attr.title]="closeButtonTitle"
510
+ [attr.aria-label]="closeButtonTitle"
511
+ 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"
512
+ (click)="onCloseClick($event)"
513
+ >
514
+ <span class="k-button-icon k-icon k-i-x"></span>
515
+ </button>
516
+ </div>
517
+ </ng-container>
518
+ `, isInline: true, directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }] });
519
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogTitleBarComponent, decorators: [{
520
+ type: Component,
521
+ args: [{
522
+ selector: 'kendo-dialog-titlebar',
523
+ providers: [
524
+ TitleBarLocalizationService,
525
+ {
526
+ provide: LocalizationService,
527
+ useExisting: TitleBarLocalizationService
528
+ },
529
+ {
530
+ provide: L10N_PREFIX,
531
+ useValue: 'kendo.dialog'
532
+ }
533
+ ],
534
+ template: `
419
535
  <ng-container
420
536
  kendoDialogTitleBarLocalizedMessages
421
537
  i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
@@ -438,10 +554,22 @@ DialogTitleBarComponent = __decorate([
438
554
  </div>
439
555
  </ng-container>
440
556
  `
441
- }),
442
- __param(2, Optional()),
443
- __metadata("design:paramtypes", [NgZone, ElementRef, LocalizationService])
444
- ], DialogTitleBarComponent);
557
+ }]
558
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i1$1.LocalizationService, decorators: [{
559
+ type: Optional
560
+ }] }]; }, propDecorators: { close: [{
561
+ type: Output
562
+ }], id: [{
563
+ type: Input
564
+ }], closeTitle: [{
565
+ type: Input
566
+ }], className: [{
567
+ type: HostBinding,
568
+ args: ['class.k-window-titlebar']
569
+ }, {
570
+ type: HostBinding,
571
+ args: ['class.k-dialog-titlebar']
572
+ }] } });
445
573
 
446
574
  /**
447
575
  * @hidden
@@ -450,17 +578,11 @@ const packageMetadata = {
450
578
  name: '@progress/kendo-angular-dialog',
451
579
  productName: 'Kendo UI for Angular',
452
580
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
453
- publishDate: 1646820184,
581
+ publishDate: 1650008855,
454
582
  version: '',
455
583
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
456
584
  };
457
585
 
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
586
  /**
465
587
  * Indicates that the **Close** button is clicked. Used when the results from
466
588
  * the Dialogs that are opened through `DialogService` are filtered
@@ -468,24 +590,11 @@ class DialogAction {
468
590
  */
469
591
  class DialogCloseResult {
470
592
  }
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
593
 
485
594
  /**
486
595
  * Represents the [Kendo UI Dialog component for Angular]({% slug overview_dialog_dialogs %}).
487
596
  */
488
- let DialogComponent = class DialogComponent {
597
+ class DialogComponent {
489
598
  constructor(wrapper, renderer, localization, cdr, ngZone) {
490
599
  this.wrapper = wrapper;
491
600
  this.renderer = renderer;
@@ -787,107 +896,76 @@ let DialogComponent = class DialogComponent {
787
896
  this.subscriptions.push(s);
788
897
  }
789
898
  }
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: `
899
+ }
900
+ 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 });
901
+ 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: [
902
+ LocalizationService,
903
+ {
904
+ provide: DIALOG_LOCALIZATION_SERVICE,
905
+ useExisting: LocalizationService
906
+ },
907
+ {
908
+ provide: L10N_PREFIX,
909
+ useValue: 'kendo.dialog'
910
+ }
911
+ ], 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: `
912
+ <ng-container
913
+ kendoDialogLocalizedMessages
914
+ i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
915
+ closeTitle="Close"
916
+ >
917
+ <div class="k-overlay" @overlayAppear></div>
918
+
919
+ <div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>
920
+ <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
921
+ <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
922
+
923
+ <div [id]="contentId" class="k-content k-window-content k-dialog-content">
924
+ <ng-content *ngIf="!contentTemplate"></ng-content>
925
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
926
+ </div>
927
+
928
+ <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
929
+ <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
930
+ </div>
931
+ </ng-container>
932
+ `, 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: [
933
+ trigger('overlayAppear', [
934
+ state('in', style({ opacity: 1 })),
935
+ transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
936
+ ]),
937
+ trigger('dialogSlideInAppear', [
938
+ state('in', style({ transform: 'translate(0, 0)' })),
939
+ transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
940
+ ])
941
+ ] });
942
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogComponent, decorators: [{
943
+ type: Component,
944
+ args: [{
945
+ animations: [
946
+ trigger('overlayAppear', [
947
+ state('in', style({ opacity: 1 })),
948
+ transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
949
+ ]),
950
+ trigger('dialogSlideInAppear', [
951
+ state('in', style({ transform: 'translate(0, 0)' })),
952
+ transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
953
+ ])
954
+ ],
955
+ exportAs: 'kendoDialog',
956
+ providers: [
957
+ LocalizationService,
958
+ {
959
+ provide: DIALOG_LOCALIZATION_SERVICE,
960
+ useExisting: LocalizationService
961
+ },
962
+ {
963
+ provide: L10N_PREFIX,
964
+ useValue: 'kendo.dialog'
965
+ }
966
+ ],
967
+ selector: 'kendo-dialog',
968
+ template: `
891
969
  <ng-container
892
970
  kendoDialogLocalizedMessages
893
971
  i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
@@ -909,13 +987,58 @@ DialogComponent = __decorate([
909
987
  </div>
910
988
  </ng-container>
911
989
  `
912
- }),
913
- __metadata("design:paramtypes", [ElementRef,
914
- Renderer2,
915
- LocalizationService,
916
- ChangeDetectorRef,
917
- NgZone])
918
- ], DialogComponent);
990
+ }]
991
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { actions: [{
992
+ type: Input
993
+ }], actionsLayout: [{
994
+ type: Input
995
+ }], autoFocusedElement: [{
996
+ type: Input
997
+ }], title: [{
998
+ type: Input
999
+ }], width: [{
1000
+ type: Input
1001
+ }], minWidth: [{
1002
+ type: Input
1003
+ }], maxWidth: [{
1004
+ type: Input
1005
+ }], height: [{
1006
+ type: Input
1007
+ }], minHeight: [{
1008
+ type: Input
1009
+ }], maxHeight: [{
1010
+ type: Input
1011
+ }], action: [{
1012
+ type: Output
1013
+ }], close: [{
1014
+ type: Output
1015
+ }], dir: [{
1016
+ type: HostBinding,
1017
+ args: ['attr.dir']
1018
+ }], tabIndex: [{
1019
+ type: HostBinding,
1020
+ args: ['attr.tabIndex']
1021
+ }], titlebarContent: [{
1022
+ type: ContentChildren,
1023
+ args: [DialogTitleBarComponent, { descendants: false }]
1024
+ }], titlebarView: [{
1025
+ type: ViewChildren,
1026
+ args: [DialogTitleBarComponent]
1027
+ }], actionsView: [{
1028
+ type: ViewChild,
1029
+ args: [DialogActionsComponent, { static: false }]
1030
+ }], wrapperClass: [{
1031
+ type: HostBinding,
1032
+ args: ['class.k-dialog-wrapper']
1033
+ }] } });
1034
+
1035
+ /**
1036
+ * Holds references to the object instance and published events of the Dialog.
1037
+ * Controls the Dialogs that were opened through the `DialogService`
1038
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
1039
+ */
1040
+ class DialogRef {
1041
+ }
919
1042
 
920
1043
  /**
921
1044
  * The base class which will be extended by a component that is provided as content through `content`
@@ -942,33 +1065,56 @@ class DialogContentBase {
942
1065
  }
943
1066
  }
944
1067
  }
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);
1068
+ DialogContentBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContentBase, deps: [{ token: DialogRef }], target: i0.ɵɵFactoryTarget.Component });
1069
+ 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 });
1070
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContentBase, decorators: [{
1071
+ type: Component,
1072
+ args: [{
1073
+ template: ``,
1074
+ selector: 'kendo-dialog-content-base'
1075
+ }]
1076
+ }], ctorParameters: function () { return [{ type: DialogRef }]; }, propDecorators: { dialogTitleBar: [{
1077
+ type: ViewChild,
1078
+ args: [DialogTitleBarComponent, { static: false }]
1079
+ }], dialogActions: [{
1080
+ type: ViewChild,
1081
+ args: [DialogActionsComponent, { static: false }]
1082
+ }] } });
953
1083
 
954
- var DialogContainerService_1;
955
1084
  /**
956
1085
  * @hidden
957
1086
  */
958
- let DialogContainerService = DialogContainerService_1 = class DialogContainerService {
1087
+ class DialogContainerService {
959
1088
  set container(container) {
960
- DialogContainerService_1.container = container;
1089
+ DialogContainerService.container = container;
961
1090
  }
962
1091
  get container() {
963
- return DialogContainerService_1.container;
1092
+ return DialogContainerService.container;
964
1093
  }
965
- };
1094
+ }
966
1095
  DialogContainerService.container = null;
967
- DialogContainerService = DialogContainerService_1 = __decorate([
968
- Injectable()
969
- ], DialogContainerService);
1096
+ DialogContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1097
+ DialogContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerService });
1098
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerService, decorators: [{
1099
+ type: Injectable
1100
+ }] });
970
1101
 
971
- const isNotComponent = (component) => isString(component) || component instanceof TemplateRef;
1102
+ /**
1103
+ * The settings for the Dialog actions when the Dialog is opened through `DialogService`
1104
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
1105
+ */
1106
+ class DialogAction {
1107
+ }
1108
+
1109
+ /**
1110
+ * The settings that can be used when the Dialog is opened through `DialogService`.
1111
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
1112
+ */
1113
+ class DialogSettings {
1114
+ }
1115
+
1116
+ // eslint-disable max-line-length
1117
+ const isNotComponent$1 = (component) => isString(component) || component instanceof TemplateRef;
972
1118
  class DialogInjector {
973
1119
  constructor(getDialogRef, parentInjector) {
974
1120
  this.getDialogRef = getDialogRef;
@@ -985,7 +1131,7 @@ class DialogInjector {
985
1131
  * A service for opening Dialog windows dynamically
986
1132
  * ([see example]({% slug service_dialog %})).
987
1133
  */
988
- let DialogService = class DialogService {
1134
+ class DialogService {
989
1135
  constructor(
990
1136
  /**
991
1137
  * @hidden
@@ -1082,7 +1228,7 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
1082
1228
  merge(dialog.instance.close, dialog.instance.action).pipe(map(e => (e instanceof PreventableEvent ? new DialogCloseResult() : e)), filter(e => {
1083
1229
  if (options.preventAction) {
1084
1230
  // add dialogRef only when using component
1085
- const dialogRefParameter = isNotComponent(component) ? undefined : dialogRef;
1231
+ const dialogRefParameter = isNotComponent$1(component) ? undefined : dialogRef;
1086
1232
  return !options.preventAction(e, dialogRefParameter);
1087
1233
  }
1088
1234
  return true;
@@ -1166,13 +1312,15 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
1166
1312
  ]
1167
1313
  };
1168
1314
  }
1169
- };
1170
- DialogService = __decorate([
1171
- Injectable(),
1172
- __param(1, Inject(DialogContainerService)),
1173
- __metadata("design:paramtypes", [ComponentFactoryResolver,
1174
- DialogContainerService])
1175
- ], DialogService);
1315
+ }
1316
+ 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 });
1317
+ DialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogService });
1318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogService, decorators: [{
1319
+ type: Injectable
1320
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: DialogContainerService, decorators: [{
1321
+ type: Inject,
1322
+ args: [DialogContainerService]
1323
+ }] }]; } });
1176
1324
 
1177
1325
  /**
1178
1326
  * @hidden
@@ -1208,7 +1356,7 @@ const createMoveStream = (el, ev) => mouseDown => {
1208
1356
  /**
1209
1357
  * @hidden
1210
1358
  */
1211
- let DragResizeService = class DragResizeService {
1359
+ class DragResizeService {
1212
1360
  constructor(ngZone) {
1213
1361
  this.ngZone = ngZone;
1214
1362
  this.close = new EventEmitter();
@@ -1233,17 +1381,17 @@ let DragResizeService = class DragResizeService {
1233
1381
  }
1234
1382
  }
1235
1383
  init(el) {
1236
- const state$$1 = this.options.state;
1384
+ const state = this.options.state;
1237
1385
  let options = this.options;
1238
1386
  this.window = el;
1239
- if (state$$1 !== 'default') {
1387
+ if (state !== 'default') {
1240
1388
  this.restoreOptions = Object.assign({}, options);
1241
1389
  }
1242
- if (state$$1 === 'minimized') {
1390
+ if (state === 'minimized') {
1243
1391
  options.height = 0;
1244
1392
  options.minHeight = 0;
1245
1393
  }
1246
- if (state$$1 === 'maximized') {
1394
+ if (state === 'maximized') {
1247
1395
  options.position = 'fixed';
1248
1396
  }
1249
1397
  }
@@ -1338,9 +1486,9 @@ let DragResizeService = class DragResizeService {
1338
1486
  }
1339
1487
  }
1340
1488
  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];
1489
+ OFFSET_STYLES.forEach((style) => {
1490
+ if (isPresent(ev[style])) {
1491
+ this.options[style] = ev[style];
1344
1492
  }
1345
1493
  });
1346
1494
  this.change.emit(ev);
@@ -1395,8 +1543,8 @@ let DragResizeService = class DragResizeService {
1395
1543
  * Required to distinguish them from action clicks.
1396
1544
  */
1397
1545
  applyManualState() {
1398
- const state$$1 = this.options.state;
1399
- switch (state$$1) {
1546
+ const state = this.options.state;
1547
+ switch (state) {
1400
1548
  case 'default':
1401
1549
  this.clearHeight();
1402
1550
  this.defaultState();
@@ -1471,9 +1619,9 @@ let DragResizeService = class DragResizeService {
1471
1619
  this.options.left = wrapper.left;
1472
1620
  this.options.top = wrapper.top;
1473
1621
  }
1474
- setRestoreOption(style$$1, value) {
1622
+ setRestoreOption(style, value) {
1475
1623
  if (isPresent(this.restoreOptions)) {
1476
- this.restoreOptions[style$$1] = value;
1624
+ this.restoreOptions[style] = value;
1477
1625
  }
1478
1626
  }
1479
1627
  get nextPossibleZIndex() {
@@ -1485,16 +1633,17 @@ let DragResizeService = class DragResizeService {
1485
1633
  get windowViewPort() {
1486
1634
  return getWindowViewPort(this.window.nativeElement);
1487
1635
  }
1488
- };
1489
- DragResizeService = __decorate([
1490
- Injectable(),
1491
- __metadata("design:paramtypes", [NgZone])
1492
- ], DragResizeService);
1636
+ }
1637
+ DragResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragResizeService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
1638
+ DragResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragResizeService });
1639
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragResizeService, decorators: [{
1640
+ type: Injectable
1641
+ }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
1493
1642
 
1494
1643
  /**
1495
1644
  * @hidden
1496
1645
  */
1497
- let ResizeHandleDirective = class ResizeHandleDirective {
1646
+ class ResizeHandleDirective {
1498
1647
  constructor(draggable, el, renderer, service) {
1499
1648
  this.draggable = draggable;
1500
1649
  this.el = el;
@@ -1522,8 +1671,8 @@ let ResizeHandleDirective = class ResizeHandleDirective {
1522
1671
  this.subscriptions.add(merge(this.service.resizeEnd, this.service.dragEnd).subscribe(() => {
1523
1672
  this.setDisplay('block');
1524
1673
  }));
1525
- this.subscriptions.add(this.service.stateChange.subscribe((state$$1) => {
1526
- this.setDisplay(state$$1 === 'default' ? 'block' : 'none');
1674
+ this.subscriptions.add(this.service.stateChange.subscribe((state) => {
1675
+ this.setDisplay(state === 'default' ? 'block' : 'none');
1527
1676
  }));
1528
1677
  }
1529
1678
  ngOnDestroy() {
@@ -1532,28 +1681,24 @@ let ResizeHandleDirective = class ResizeHandleDirective {
1532
1681
  setDisplay(value = 'block') {
1533
1682
  this.renderer.setStyle(this.el.nativeElement, 'display', this.service.options.state === 'default' ? value : 'none');
1534
1683
  }
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);
1684
+ }
1685
+ 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 });
1686
+ 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 });
1687
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, decorators: [{
1688
+ type: Directive,
1689
+ args: [{
1690
+ selector: '[kendoWindowResizeHandle]'
1691
+ }]
1692
+ }], ctorParameters: function () { return [{ type: i1$2.DraggableDirective, decorators: [{
1693
+ type: Host
1694
+ }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }]; }, propDecorators: { direction: [{
1695
+ type: Input
1696
+ }], hostClass: [{
1697
+ type: HostBinding,
1698
+ args: ['class.k-resize-handle']
1699
+ }] } });
1555
1700
 
1556
- let WindowTitleBarComponent = class WindowTitleBarComponent {
1701
+ class WindowTitleBarComponent {
1557
1702
  constructor(el, service, ngZone) {
1558
1703
  this.el = el;
1559
1704
  this.ngZone = ngZone;
@@ -1585,9 +1730,9 @@ let WindowTitleBarComponent = class WindowTitleBarComponent {
1585
1730
  * @hidden
1586
1731
  */
1587
1732
  subscribeStateChange() {
1588
- this.stateSubscription = this.service.stateChange.subscribe((state$$1) => {
1733
+ this.stateSubscription = this.service.stateChange.subscribe((state) => {
1589
1734
  if (this.service.options.draggable) {
1590
- if (state$$1 === 'maximized') {
1735
+ if (state === 'maximized') {
1591
1736
  this.unsubscribeDrag();
1592
1737
  }
1593
1738
  else {
@@ -1628,12 +1773,12 @@ let WindowTitleBarComponent = class WindowTitleBarComponent {
1628
1773
  */
1629
1774
  handle(ev) {
1630
1775
  const target = ev.target;
1631
- const state$$1 = this.service.options.state;
1776
+ const state = this.service.options.state;
1632
1777
  if (!hasClasses(target, 'k-icon') && !isFocusable(target, false) && this.service.options.resizable) {
1633
- if (state$$1 === 'default') {
1778
+ if (state === 'default') {
1634
1779
  this.service.maximizeAction();
1635
1780
  }
1636
- else if (state$$1 === 'maximized') {
1781
+ else if (state === 'maximized') {
1637
1782
  this.service.restoreAction();
1638
1783
  }
1639
1784
  }
@@ -1642,46 +1787,47 @@ let WindowTitleBarComponent = class WindowTitleBarComponent {
1642
1787
  const options = this.service.options;
1643
1788
  return options.draggable && options.state !== 'maximized';
1644
1789
  }
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: `
1790
+ }
1791
+ 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 });
1792
+ 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: `
1793
+ <ng-content *ngIf="!template"></ng-content>
1794
+ <ng-template
1795
+ [ngTemplateOutlet]="template"
1796
+ [ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
1797
+ </ng-template>
1798
+ `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
1799
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowTitleBarComponent, decorators: [{
1800
+ type: Component,
1801
+ args: [{
1802
+ selector: 'kendo-window-titlebar',
1803
+ template: `
1671
1804
  <ng-content *ngIf="!template"></ng-content>
1672
1805
  <ng-template
1673
1806
  [ngTemplateOutlet]="template"
1674
1807
  [ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
1675
1808
  </ng-template>
1676
1809
  `
1677
- }),
1678
- __metadata("design:paramtypes", [ElementRef, DragResizeService, NgZone])
1679
- ], WindowTitleBarComponent);
1810
+ }]
1811
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: DragResizeService }, { type: i0.NgZone }]; }, propDecorators: { template: [{
1812
+ type: Input
1813
+ }], className: [{
1814
+ type: HostBinding,
1815
+ args: ['class.k-window-titlebar']
1816
+ }, {
1817
+ type: HostBinding,
1818
+ args: ['class.k-dialog-titlebar']
1819
+ }], touchAction: [{
1820
+ type: HostBinding,
1821
+ args: ['style.touch-action']
1822
+ }], handle: [{
1823
+ type: HostListener,
1824
+ args: ['dblclick', ['$event']]
1825
+ }] } });
1680
1826
 
1681
1827
  /**
1682
1828
  * @hidden
1683
1829
  */
1684
- let NavigationService = class NavigationService {
1830
+ class NavigationService {
1685
1831
  constructor(window, ngZone) {
1686
1832
  this.window = window;
1687
1833
  this.ngZone = ngZone;
@@ -1729,7 +1875,7 @@ let NavigationService = class NavigationService {
1729
1875
  if (!options.draggable) {
1730
1876
  return;
1731
1877
  }
1732
- const offset$$1 = this.window.currentOffsetAndPosition();
1878
+ const offset = this.window.currentOffsetAndPosition();
1733
1879
  let restoreOptions = this.window.restoreOptions;
1734
1880
  let ev = {};
1735
1881
  let delta = 10;
@@ -1739,13 +1885,13 @@ let NavigationService = class NavigationService {
1739
1885
  switch (key) {
1740
1886
  case Keys.left:
1741
1887
  case Keys.right: {
1742
- ev.left = offset$$1.x + delta;
1888
+ ev.left = offset.x + delta;
1743
1889
  options.left = ev.left;
1744
1890
  break;
1745
1891
  }
1746
1892
  case Keys.up:
1747
1893
  case Keys.down: {
1748
- ev.top = offset$$1.y + delta;
1894
+ ev.top = offset.y + delta;
1749
1895
  options.top = ev.top;
1750
1896
  break;
1751
1897
  }
@@ -1763,7 +1909,7 @@ let NavigationService = class NavigationService {
1763
1909
  if (!options.resizable) {
1764
1910
  return;
1765
1911
  }
1766
- const offset$$1 = this.window.currentOffsetAndPosition();
1912
+ const offset = this.window.currentOffsetAndPosition();
1767
1913
  let newWidth;
1768
1914
  let newHeight;
1769
1915
  let ev = {};
@@ -1774,7 +1920,7 @@ let NavigationService = class NavigationService {
1774
1920
  switch (key) {
1775
1921
  case Keys.left:
1776
1922
  case Keys.right: {
1777
- newWidth = offset$$1.width + delta;
1923
+ newWidth = offset.width + delta;
1778
1924
  if (newWidth !== options.width && newWidth >= options.minWidth) {
1779
1925
  ev.width = newWidth;
1780
1926
  }
@@ -1782,7 +1928,7 @@ let NavigationService = class NavigationService {
1782
1928
  }
1783
1929
  case Keys.up:
1784
1930
  case Keys.down: {
1785
- newHeight = offset$$1.height + delta;
1931
+ newHeight = offset.height + delta;
1786
1932
  if (newHeight !== options.height && newHeight >= options.minHeight) {
1787
1933
  ev.height = newHeight;
1788
1934
  }
@@ -1792,21 +1938,21 @@ let NavigationService = class NavigationService {
1792
1938
  break;
1793
1939
  }
1794
1940
  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];
1941
+ OFFSET_STYLES.forEach((style) => {
1942
+ if (isPresent(ev[style])) {
1943
+ this.window.options[style] = ev[style];
1798
1944
  }
1799
1945
  });
1800
1946
  this.window.change.emit(ev);
1801
1947
  }
1802
1948
  }
1803
- handleStateChange(key, state$$1) {
1804
- if ((state$$1 === 'minimized' && key === Keys.up) ||
1805
- (state$$1 === 'maximized' && key === Keys.down)) {
1949
+ handleStateChange(key, state) {
1950
+ if ((state === 'minimized' && key === Keys.up) ||
1951
+ (state === 'maximized' && key === Keys.down)) {
1806
1952
  this.window.restoreAction();
1807
1953
  return;
1808
1954
  }
1809
- if (state$$1 === 'default') {
1955
+ if (state === 'default') {
1810
1956
  if (key === Keys.up) {
1811
1957
  this.window.maximizeAction();
1812
1958
  }
@@ -1815,17 +1961,235 @@ let NavigationService = class NavigationService {
1815
1961
  }
1816
1962
  }
1817
1963
  }
1818
- };
1819
- NavigationService = __decorate([
1820
- Injectable(),
1821
- __metadata("design:paramtypes", [DragResizeService,
1822
- NgZone])
1823
- ], NavigationService);
1964
+ }
1965
+ 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 });
1966
+ NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService });
1967
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, decorators: [{
1968
+ type: Injectable
1969
+ }], ctorParameters: function () { return [{ type: DragResizeService }, { type: i0.NgZone }]; } });
1970
+
1971
+ class WindowMinimizeActionDirective extends Button {
1972
+ constructor(el, renderer, _service, localization, ngZone) {
1973
+ super(el, renderer, null, localization, ngZone);
1974
+ this.buttonType = 'button';
1975
+ this.window = _service;
1976
+ this.fillMode = 'flat';
1977
+ this.icon = 'window-minimize';
1978
+ }
1979
+ /**
1980
+ * @hidden
1981
+ */
1982
+ onClick() {
1983
+ if (!this.isDisabled) {
1984
+ this.window.minimizeAction();
1985
+ }
1986
+ }
1987
+ get visible() {
1988
+ return this.window.options.state === 'default' ? 'inline-flex' : 'none';
1989
+ }
1990
+ }
1991
+ 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 });
1992
+ 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: [
1993
+ LocalizationService,
1994
+ {
1995
+ provide: L10N_PREFIX,
1996
+ useValue: 'kendo.button'
1997
+ }
1998
+ ], exportAs: ["kendoWindowMinimizeAction"], usesInheritance: true, ngImport: i0 });
1999
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMinimizeActionDirective, decorators: [{
2000
+ type: Directive,
2001
+ args: [{
2002
+ exportAs: 'kendoWindowMinimizeAction',
2003
+ providers: [
2004
+ LocalizationService,
2005
+ {
2006
+ provide: L10N_PREFIX,
2007
+ useValue: 'kendo.button'
2008
+ }
2009
+ ],
2010
+ selector: 'button[kendoWindowMinimizeAction]' // eslint-disable-line
2011
+ }]
2012
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
2013
+ type: Optional
2014
+ }] }, { type: i1$1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
2015
+ type: Input
2016
+ }], buttonType: [{
2017
+ type: HostBinding,
2018
+ args: ['attr.type']
2019
+ }], onClick: [{
2020
+ type: HostListener,
2021
+ args: ['click']
2022
+ }], visible: [{
2023
+ type: HostBinding,
2024
+ args: ['style.display']
2025
+ }] } });
2026
+
2027
+ class WindowMaximizeActionDirective extends Button {
2028
+ constructor(el, renderer, _service, localization, ngZone) {
2029
+ super(el, renderer, null, localization, ngZone);
2030
+ this.buttonType = 'button';
2031
+ this.window = _service;
2032
+ this.fillMode = 'flat';
2033
+ this.icon = 'window-maximize';
2034
+ }
2035
+ /**
2036
+ * @hidden
2037
+ */
2038
+ onClick() {
2039
+ if (!this.isDisabled) {
2040
+ this.window.maximizeAction();
2041
+ }
2042
+ }
2043
+ get visible() {
2044
+ return this.window.options.state === 'default' ? 'inline-flex' : 'none';
2045
+ }
2046
+ }
2047
+ 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 });
2048
+ 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: [
2049
+ LocalizationService,
2050
+ {
2051
+ provide: L10N_PREFIX,
2052
+ useValue: 'kendo.button'
2053
+ }
2054
+ ], exportAs: ["kendoWindowMaximizeAction"], usesInheritance: true, ngImport: i0 });
2055
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMaximizeActionDirective, decorators: [{
2056
+ type: Directive,
2057
+ args: [{
2058
+ exportAs: 'kendoWindowMaximizeAction',
2059
+ providers: [
2060
+ LocalizationService,
2061
+ {
2062
+ provide: L10N_PREFIX,
2063
+ useValue: 'kendo.button'
2064
+ }
2065
+ ],
2066
+ selector: 'button[kendoWindowMaximizeAction]' // eslint-disable-line
2067
+ }]
2068
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
2069
+ type: Optional
2070
+ }] }, { type: i1$1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
2071
+ type: Input
2072
+ }], buttonType: [{
2073
+ type: HostBinding,
2074
+ args: ['attr.type']
2075
+ }], onClick: [{
2076
+ type: HostListener,
2077
+ args: ['click']
2078
+ }], visible: [{
2079
+ type: HostBinding,
2080
+ args: ['style.display']
2081
+ }] } });
2082
+
2083
+ class WindowRestoreActionDirective extends Button {
2084
+ constructor(el, renderer, _service, localization, ngZone) {
2085
+ super(el, renderer, null, localization, ngZone);
2086
+ this.buttonType = 'button';
2087
+ this.window = _service;
2088
+ this.fillMode = 'flat';
2089
+ this.icon = 'window-restore';
2090
+ }
2091
+ /**
2092
+ * @hidden
2093
+ */
2094
+ onClick() {
2095
+ if (!this.isDisabled) {
2096
+ this.window.restoreAction();
2097
+ }
2098
+ }
2099
+ get visible() {
2100
+ return this.window.options.state === 'default' ? 'none' : 'inline-flex';
2101
+ }
2102
+ }
2103
+ 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 });
2104
+ 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: [
2105
+ LocalizationService,
2106
+ {
2107
+ provide: L10N_PREFIX,
2108
+ useValue: 'kendo.button'
2109
+ }
2110
+ ], exportAs: ["kendoWindowRestoreAction"], usesInheritance: true, ngImport: i0 });
2111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowRestoreActionDirective, decorators: [{
2112
+ type: Directive,
2113
+ args: [{
2114
+ exportAs: 'kendoWindowRestoreAction',
2115
+ providers: [
2116
+ LocalizationService,
2117
+ {
2118
+ provide: L10N_PREFIX,
2119
+ useValue: 'kendo.button'
2120
+ }
2121
+ ],
2122
+ selector: 'button[kendoWindowRestoreAction]' // eslint-disable-line
2123
+ }]
2124
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
2125
+ type: Optional
2126
+ }] }, { type: i1$1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
2127
+ type: Input
2128
+ }], buttonType: [{
2129
+ type: HostBinding,
2130
+ args: ['attr.type']
2131
+ }], onClick: [{
2132
+ type: HostListener,
2133
+ args: ['click']
2134
+ }], visible: [{
2135
+ type: HostBinding,
2136
+ args: ['style.display']
2137
+ }] } });
2138
+
2139
+ class WindowCloseActionDirective extends Button {
2140
+ constructor(el, renderer, _service, localization, ngZone) {
2141
+ super(el, renderer, null, localization, ngZone);
2142
+ this.buttonType = 'button';
2143
+ this.window = _service;
2144
+ this.fillMode = 'flat';
2145
+ this.icon = 'close';
2146
+ }
2147
+ /**
2148
+ * @hidden
2149
+ */
2150
+ onClick() {
2151
+ if (!this.isDisabled) {
2152
+ this.window.closeAction();
2153
+ }
2154
+ }
2155
+ }
2156
+ 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 });
2157
+ 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: [
2158
+ LocalizationService,
2159
+ {
2160
+ provide: L10N_PREFIX,
2161
+ useValue: 'kendo.button'
2162
+ }
2163
+ ], exportAs: ["kendoWindowCloseAction"], usesInheritance: true, ngImport: i0 });
2164
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowCloseActionDirective, decorators: [{
2165
+ type: Directive,
2166
+ args: [{
2167
+ exportAs: 'kendoWindowCloseAction',
2168
+ providers: [
2169
+ LocalizationService,
2170
+ {
2171
+ provide: L10N_PREFIX,
2172
+ useValue: 'kendo.button'
2173
+ }
2174
+ ],
2175
+ selector: 'button[kendoWindowCloseAction]' // eslint-disable-line
2176
+ }]
2177
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
2178
+ type: Optional
2179
+ }] }, { type: i1$1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
2180
+ type: Input
2181
+ }], buttonType: [{
2182
+ type: HostBinding,
2183
+ args: ['attr.type']
2184
+ }], onClick: [{
2185
+ type: HostListener,
2186
+ args: ['click']
2187
+ }] } });
1824
2188
 
1825
2189
  /**
1826
2190
  * Represents the [Kendo UI Window component for Angular]({% slug overview_window_dialogs %}).
1827
2191
  */
1828
- let WindowComponent = class WindowComponent {
2192
+ class WindowComponent {
1829
2193
  constructor(el, renderer, service, navigation, ngZone, localization) {
1830
2194
  this.el = el;
1831
2195
  this.renderer = renderer;
@@ -2066,9 +2430,9 @@ let WindowComponent = class WindowComponent {
2066
2430
  this.service.init(this.el);
2067
2431
  }
2068
2432
  ngOnChanges(changes) {
2069
- OFFSET_STYLES.forEach((style$$1) => {
2070
- if (isChanged(style$$1, changes)) {
2071
- this.setStyle(style$$1, this.options[style$$1]);
2433
+ OFFSET_STYLES.forEach((style) => {
2434
+ if (isChanged(style, changes)) {
2435
+ this.setStyle(style, this.options[style]);
2072
2436
  }
2073
2437
  });
2074
2438
  if (isChanged('draggable', changes)) {
@@ -2136,9 +2500,9 @@ let WindowComponent = class WindowComponent {
2136
2500
  * @param {WindowOffsetSetting} offset - The option that will be updated
2137
2501
  * @param {number} value - The value set in pixels
2138
2502
  */
2139
- setOffset(offset$$1, value) {
2140
- this.setOption(offset$$1, value);
2141
- this.setStyle(offset$$1, value);
2503
+ setOffset(offset, value) {
2504
+ this.setOption(offset, value);
2505
+ this.setStyle(offset, value);
2142
2506
  }
2143
2507
  get showDefaultTitleBar() {
2144
2508
  return !isPresent(this.titleBarContent);
@@ -2210,24 +2574,24 @@ let WindowComponent = class WindowComponent {
2210
2574
  }
2211
2575
  }));
2212
2576
  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]);
2577
+ OFFSET_STYLES.forEach((style) => {
2578
+ if (isPresent(ev[style])) {
2579
+ this.setStyle(style, ev[style]);
2216
2580
  if (this.state !== 'maximized') {
2217
- const emitter = this[style$$1 + 'Change'];
2581
+ const emitter = this[style + 'Change'];
2218
2582
  if (emitter.observers.length) {
2219
2583
  this.ngZone.run(() => {
2220
- emitter.emit(ev[style$$1]);
2584
+ emitter.emit(ev[style]);
2221
2585
  });
2222
2586
  }
2223
2587
  }
2224
2588
  }
2225
2589
  });
2226
2590
  }));
2227
- this.windowSubscription.add(this.service.stateChange.subscribe((state$$1) => {
2591
+ this.windowSubscription.add(this.service.stateChange.subscribe((state) => {
2228
2592
  if (isPresent(this.service.lastAction)) {
2229
2593
  this.updateAllOffset();
2230
- this.stateChange.emit(state$$1);
2594
+ this.stateChange.emit(state);
2231
2595
  }
2232
2596
  }));
2233
2597
  }
@@ -2282,31 +2646,31 @@ let WindowComponent = class WindowComponent {
2282
2646
  }
2283
2647
  }
2284
2648
  updateAllOffset() {
2285
- OFFSET_STYLES.forEach((style$$1) => {
2286
- if (isPresent(this[style$$1])) {
2287
- this.setStyle(style$$1, this[style$$1]);
2649
+ OFFSET_STYLES.forEach((style) => {
2650
+ if (isPresent(this[style])) {
2651
+ this.setStyle(style, this[style]);
2288
2652
  }
2289
2653
  else {
2290
- this.removeStyle(style$$1);
2654
+ this.removeStyle(style);
2291
2655
  }
2292
2656
  });
2293
2657
  }
2294
- setStyle(style$$1, value) {
2295
- this.renderer.setStyle(this.el.nativeElement, style$$1, value + 'px');
2658
+ setStyle(style, value) {
2659
+ this.renderer.setStyle(this.el.nativeElement, style, value + 'px');
2296
2660
  }
2297
- removeStyle(style$$1) {
2298
- this.renderer.removeStyle(this.el.nativeElement, style$$1);
2661
+ removeStyle(style) {
2662
+ this.renderer.removeStyle(this.el.nativeElement, style);
2299
2663
  }
2300
2664
  get options() {
2301
2665
  return this.service.options;
2302
2666
  }
2303
- setOption(style$$1, value) {
2667
+ setOption(style, value) {
2304
2668
  if (typeof value !== 'number' && typeof value !== 'string') {
2305
2669
  return;
2306
2670
  }
2307
2671
  const parsedValue = (typeof value === 'number') ? value : parseInt(value, 10);
2308
- this.options[style$$1] = parsedValue;
2309
- this.service.setRestoreOption(style$$1, parsedValue);
2672
+ this.options[style] = parsedValue;
2673
+ this.service.setRestoreOption(style, parsedValue);
2310
2674
  }
2311
2675
  handleInitialFocus() {
2312
2676
  const wrapper = this.el.nativeElement;
@@ -2320,181 +2684,17 @@ let WindowComponent = class WindowComponent {
2320
2684
  this.focus();
2321
2685
  }
2322
2686
  }
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: `
2687
+ }
2688
+ 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 });
2689
+ 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: [
2690
+ DragResizeService,
2691
+ NavigationService,
2692
+ LocalizationService,
2693
+ {
2694
+ provide: L10N_PREFIX,
2695
+ useValue: 'kendo.window'
2696
+ }
2697
+ ], 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
2698
  <ng-container kendoWindowLocalizedMessages
2499
2699
  i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
2500
2700
  closeTitle="Close"
@@ -2536,255 +2736,156 @@ WindowComponent = __decorate([
2536
2736
  kendoDraggable>
2537
2737
  </div>
2538
2738
  </ng-template>
2539
- `
2540
- }),
2541
- __metadata("design:paramtypes", [ElementRef,
2542
- Renderer2,
2543
- DragResizeService,
2544
- NavigationService,
2545
- NgZone,
2546
- LocalizationService])
2547
- ], WindowComponent);
2739
+ `, 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"] }] });
2740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowComponent, decorators: [{
2741
+ type: Component,
2742
+ args: [{
2743
+ exportAs: 'kendoWindow',
2744
+ providers: [
2745
+ DragResizeService,
2746
+ NavigationService,
2747
+ LocalizationService,
2748
+ {
2749
+ provide: L10N_PREFIX,
2750
+ useValue: 'kendo.window'
2751
+ }
2752
+ ],
2753
+ selector: 'kendo-window',
2754
+ template: `
2755
+ <ng-container kendoWindowLocalizedMessages
2756
+ i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
2757
+ closeTitle="Close"
2548
2758
 
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);
2759
+ i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"
2760
+ restoreTitle="Restore"
2607
2761
 
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);
2762
+ i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"
2763
+ maximizeTitle="Maximize"
2666
2764
 
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);
2765
+ i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"
2766
+ minimizeTitle="Minimize"
2767
+ >
2768
+ <ng-container>
2717
2769
 
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);
2770
+ <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">
2771
+ <div class="k-window-title">{{ title }}</div>
2772
+ <div class="k-window-actions">
2773
+ <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>
2774
+ <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>
2775
+ <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>
2776
+ <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>
2777
+ </div>
2778
+ </kendo-window-titlebar>
2779
+ <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>
2780
+
2781
+ <div *ngIf="state !== 'minimized' || keepContent"
2782
+ [hidden]="state === 'minimized' && keepContent"
2783
+ class="k-content k-window-content"
2784
+ >
2785
+ <ng-content *ngIf="!contentTemplate"></ng-content>
2786
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
2787
+ </div>
2788
+
2789
+ <ng-template [ngIf]='resizable'>
2790
+ <div *ngFor='let dir of resizeDirections'
2791
+ [direction]="dir"
2792
+ kendoWindowResizeHandle
2793
+ kendoDraggable>
2794
+ </div>
2795
+ </ng-template>
2796
+ `
2797
+ }]
2798
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }, { type: NavigationService }, { type: i0.NgZone }, { type: i1$1.LocalizationService }]; }, propDecorators: { autoFocusedElement: [{
2799
+ type: Input
2800
+ }], title: [{
2801
+ type: Input
2802
+ }], draggable: [{
2803
+ type: Input
2804
+ }], resizable: [{
2805
+ type: Input
2806
+ }], keepContent: [{
2807
+ type: Input
2808
+ }], state: [{
2809
+ type: Input
2810
+ }], minWidth: [{
2811
+ type: Input
2812
+ }], minHeight: [{
2813
+ type: Input
2814
+ }], width: [{
2815
+ type: Input
2816
+ }], height: [{
2817
+ type: Input
2818
+ }], top: [{
2819
+ type: Input
2820
+ }], left: [{
2821
+ type: Input
2822
+ }], dragStart: [{
2823
+ type: Output
2824
+ }], dragEnd: [{
2825
+ type: Output
2826
+ }], resizeStart: [{
2827
+ type: Output
2828
+ }], resizeEnd: [{
2829
+ type: Output
2830
+ }], close: [{
2831
+ type: Output
2832
+ }], widthChange: [{
2833
+ type: Output
2834
+ }], heightChange: [{
2835
+ type: Output
2836
+ }], topChange: [{
2837
+ type: Output
2838
+ }], leftChange: [{
2839
+ type: Output
2840
+ }], stateChange: [{
2841
+ type: Output
2842
+ }], tabIndex: [{
2843
+ type: HostBinding,
2844
+ args: ['attr.tabIndex']
2845
+ }], hostClasses: [{
2846
+ type: HostBinding,
2847
+ args: ['class.k-window']
2848
+ }], dir: [{
2849
+ type: HostBinding,
2850
+ args: ['attr.dir']
2851
+ }], titleBarView: [{
2852
+ type: ViewChild,
2853
+ args: [WindowTitleBarComponent, { static: false }]
2854
+ }], titleBarContent: [{
2855
+ type: ContentChild,
2856
+ args: [WindowTitleBarComponent, { static: false }]
2857
+ }], resizeHandles: [{
2858
+ type: ViewChildren,
2859
+ args: [ResizeHandleDirective]
2860
+ }], styleMinWidth: [{
2861
+ type: HostBinding,
2862
+ args: ['style.minWidth']
2863
+ }], styleMinHeight: [{
2864
+ type: HostBinding,
2865
+ args: ['style.minHeight']
2866
+ }], stylePosition: [{
2867
+ type: HostBinding,
2868
+ args: ['style.position']
2869
+ }], wrapperMaximizedClass: [{
2870
+ type: HostBinding,
2871
+ args: ['class.k-window-maximized']
2872
+ }], wrapperMinimizedClass: [{
2873
+ type: HostBinding,
2874
+ args: ['class.k-window-minimized']
2875
+ }], onComponentFocus: [{
2876
+ type: HostListener,
2877
+ args: ['focus']
2878
+ }], onComponentBlur: [{
2879
+ type: HostListener,
2880
+ args: ['blur']
2881
+ }] } });
2776
2882
 
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
2883
  /**
2784
2884
  * Indicates that the **Close** button of a Window that is opened through `WindowService` is clicked.
2785
2885
  */
2786
2886
  class WindowCloseResult {
2787
2887
  }
2888
+
2788
2889
  /**
2789
2890
  * Holds references to the object instance of the Window.
2790
2891
  * Controls the Windows that were opened through `WindowService`
@@ -2793,24 +2894,32 @@ class WindowCloseResult {
2793
2894
  class WindowRef {
2794
2895
  }
2795
2896
 
2796
- var WindowContainerService_1;
2897
+ /**
2898
+ * The settings for the Window actions when the Window is opened through `WindowService`
2899
+ * ([see example]({% slug api_dialog_windowservice %}#toc-open)).
2900
+ */
2901
+ class WindowSettings {
2902
+ }
2903
+
2797
2904
  /**
2798
2905
  * @hidden
2799
2906
  */
2800
- let WindowContainerService = WindowContainerService_1 = class WindowContainerService {
2907
+ class WindowContainerService {
2801
2908
  set container(container) {
2802
- WindowContainerService_1.container = container;
2909
+ WindowContainerService.container = container;
2803
2910
  }
2804
2911
  get container() {
2805
- return WindowContainerService_1.container;
2912
+ return WindowContainerService.container;
2806
2913
  }
2807
- };
2914
+ }
2808
2915
  WindowContainerService.container = null;
2809
- WindowContainerService = WindowContainerService_1 = __decorate([
2810
- Injectable()
2811
- ], WindowContainerService);
2916
+ WindowContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2917
+ WindowContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerService });
2918
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerService, decorators: [{
2919
+ type: Injectable
2920
+ }] });
2812
2921
 
2813
- const isNotComponent$1 = (component) => isString(component) || component instanceof TemplateRef;
2922
+ const isNotComponent = (component) => isString(component) || component instanceof TemplateRef;
2814
2923
  class WindowInjector {
2815
2924
  constructor(getWindowRef, parentInjector) {
2816
2925
  this.getWindowRef = getWindowRef;
@@ -2827,7 +2936,7 @@ class WindowInjector {
2827
2936
  * A service for opening Windows dynamically
2828
2937
  * ([see example]({% slug service_window %})).
2829
2938
  */
2830
- let WindowService = class WindowService {
2939
+ class WindowService {
2831
2940
  constructor(
2832
2941
  /**
2833
2942
  * @hidden
@@ -2901,7 +3010,7 @@ let WindowService = class WindowService {
2901
3010
  const result = merge(apiClose, window.instance.close.pipe(map(e => (e ? e : new WindowCloseResult())), filter((e) => {
2902
3011
  if (settings.preventClose) {
2903
3012
  // add windowRef only when using component
2904
- const windowRefParameter = isNotComponent$1(settings.content) ? undefined : windowRef;
3013
+ const windowRefParameter = isNotComponent(settings.content) ? undefined : windowRef;
2905
3014
  return !settings.preventClose(e, windowRefParameter);
2906
3015
  }
2907
3016
  return true;
@@ -3003,13 +3112,15 @@ let WindowService = class WindowService {
3003
3112
  ]
3004
3113
  };
3005
3114
  }
3006
- };
3007
- WindowService = __decorate([
3008
- Injectable(),
3009
- __param(1, Inject(WindowContainerService)),
3010
- __metadata("design:paramtypes", [ComponentFactoryResolver,
3011
- WindowContainerService])
3012
- ], WindowService);
3115
+ }
3116
+ 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 });
3117
+ WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService });
3118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, decorators: [{
3119
+ type: Injectable
3120
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: WindowContainerService, decorators: [{
3121
+ type: Inject,
3122
+ args: [WindowContainerService]
3123
+ }] }]; } });
3013
3124
 
3014
3125
  /**
3015
3126
  * Provides an insertion point for the Dialogs which are created through the
@@ -3021,74 +3132,25 @@ WindowService = __decorate([
3021
3132
  * <div kendoDialogContainer></div>
3022
3133
  * ```
3023
3134
  */
3024
- let DialogContainerDirective = class DialogContainerDirective {
3135
+ class DialogContainerDirective {
3025
3136
  constructor(container, service) {
3026
3137
  service.container = container;
3027
3138
  }
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
3139
  }
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);
3140
+ 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 });
3141
+ DialogContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DialogContainerDirective, selector: "[kendoDialogContainer]", ngImport: i0 });
3142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerDirective, decorators: [{
3143
+ type: Directive,
3144
+ args: [{
3145
+ selector: '[kendoDialogContainer]'
3146
+ }]
3147
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: DialogContainerService }]; } });
3058
3148
 
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
3149
  /**
3088
3150
  * Custom component messages override default component messages
3089
3151
  * ([see example]({% slug globalization_dialogs %}#toc-localization)).
3090
3152
  */
3091
- let CustomMessagesComponent = CustomMessagesComponent_1 = class CustomMessagesComponent extends Messages {
3153
+ class CustomMessagesComponent extends Messages {
3092
3154
  constructor(service) {
3093
3155
  super();
3094
3156
  this.service = service;
@@ -3096,20 +3158,27 @@ let CustomMessagesComponent = CustomMessagesComponent_1 = class CustomMessagesCo
3096
3158
  get override() {
3097
3159
  return true;
3098
3160
  }
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);
3161
+ }
3162
+ 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 });
3163
+ CustomMessagesComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CustomMessagesComponent, selector: "kendo-dialog-messages, kendo-window-messages", providers: [
3164
+ {
3165
+ provide: Messages,
3166
+ useExisting: forwardRef(() => CustomMessagesComponent)
3167
+ }
3168
+ ], usesInheritance: true, ngImport: i0 });
3169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, decorators: [{
3170
+ type: Directive,
3171
+ args: [{
3172
+ providers: [
3173
+ {
3174
+ provide: Messages,
3175
+ useExisting: forwardRef(() => CustomMessagesComponent)
3176
+ }
3177
+ ],
3178
+ // eslint-disable-next-line @angular-eslint/directive-selector
3179
+ selector: 'kendo-dialog-messages, kendo-window-messages'
3180
+ }]
3181
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
3113
3182
 
3114
3183
  /**
3115
3184
  * @hidden
@@ -3122,15 +3191,23 @@ const SHARED_DIRECTIVES = [
3122
3191
  /**
3123
3192
  * @hidden
3124
3193
  */
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);
3194
+ class SharedModule {
3195
+ }
3196
+ SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3197
+ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, declarations: [DialogActionsComponent,
3198
+ CustomMessagesComponent,
3199
+ LocalizedMessagesDirective], imports: [CommonModule], exports: [DialogActionsComponent,
3200
+ CustomMessagesComponent,
3201
+ LocalizedMessagesDirective, CommonModule] });
3202
+ SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, imports: [[CommonModule], CommonModule] });
3203
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, decorators: [{
3204
+ type: NgModule,
3205
+ args: [{
3206
+ declarations: [SHARED_DIRECTIVES],
3207
+ exports: [SHARED_DIRECTIVES, CommonModule],
3208
+ imports: [CommonModule]
3209
+ }]
3210
+ }] });
3134
3211
 
3135
3212
  /**
3136
3213
  * @hidden
@@ -3161,17 +3238,23 @@ const DIALOG_DIRECTIVES = [
3161
3238
  * }
3162
3239
  * ```
3163
3240
  */
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);
3241
+ class DialogModule {
3242
+ }
3243
+ DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3244
+ DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, declarations: [DialogComponent,
3245
+ DialogTitleBarComponent, DialogContainerDirective], imports: [SharedModule], exports: [DialogComponent,
3246
+ DialogTitleBarComponent, DialogActionsComponent, CustomMessagesComponent, LocalizedMessagesDirective, DialogContainerDirective] });
3247
+ DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService], imports: [[SharedModule]] });
3248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, decorators: [{
3249
+ type: NgModule,
3250
+ args: [{
3251
+ declarations: [DIALOG_DIRECTIVES, DialogContainerDirective],
3252
+ entryComponents: [DIALOG_DIRECTIVES],
3253
+ exports: [DIALOG_DIRECTIVES, SHARED_DIRECTIVES, DialogContainerDirective],
3254
+ imports: [SharedModule],
3255
+ providers: [DialogContainerService, DialogService]
3256
+ }]
3257
+ }] });
3175
3258
 
3176
3259
  /**
3177
3260
  * Provides an insertion point for the Windows which are created through the
@@ -3183,18 +3266,19 @@ DialogModule = __decorate([
3183
3266
  * <div kendoWindowContainer></div>
3184
3267
  * ```
3185
3268
  */
3186
- let WindowContainerDirective = class WindowContainerDirective {
3269
+ class WindowContainerDirective {
3187
3270
  constructor(container, service) {
3188
3271
  service.container = container;
3189
3272
  }
3190
- };
3191
- WindowContainerDirective = __decorate([
3192
- Directive({
3193
- selector: '[kendoWindowContainer]'
3194
- }),
3195
- __metadata("design:paramtypes", [ViewContainerRef,
3196
- WindowContainerService])
3197
- ], WindowContainerDirective);
3273
+ }
3274
+ 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 });
3275
+ WindowContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowContainerDirective, selector: "[kendoWindowContainer]", ngImport: i0 });
3276
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerDirective, decorators: [{
3277
+ type: Directive,
3278
+ args: [{
3279
+ selector: '[kendoWindowContainer]'
3280
+ }]
3281
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: WindowContainerService }]; } });
3198
3282
 
3199
3283
  const WINDOW_DIRECTIVES = [
3200
3284
  ResizeHandleDirective,
@@ -3239,17 +3323,32 @@ const exportedModules = [
3239
3323
  * }
3240
3324
  * ```
3241
3325
  */
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);
3326
+ class WindowModule {
3327
+ }
3328
+ WindowModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3329
+ WindowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowModule, declarations: [ResizeHandleDirective,
3330
+ WindowComponent,
3331
+ WindowTitleBarComponent,
3332
+ WindowCloseActionDirective,
3333
+ WindowMinimizeActionDirective,
3334
+ WindowMaximizeActionDirective,
3335
+ WindowRestoreActionDirective, WindowContainerDirective], imports: [SharedModule, DraggableModule], exports: [WindowComponent,
3336
+ WindowCloseActionDirective,
3337
+ WindowMinimizeActionDirective,
3338
+ WindowMaximizeActionDirective,
3339
+ WindowRestoreActionDirective,
3340
+ WindowTitleBarComponent, DialogActionsComponent, CustomMessagesComponent, LocalizedMessagesDirective, WindowContainerDirective] });
3341
+ WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService], imports: [[SharedModule, DraggableModule]] });
3342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowModule, decorators: [{
3343
+ type: NgModule,
3344
+ args: [{
3345
+ declarations: [WINDOW_DIRECTIVES, WindowContainerDirective],
3346
+ entryComponents: [ENTRY_COMPONENTS],
3347
+ exports: [exportedModules, SHARED_DIRECTIVES, WindowContainerDirective],
3348
+ imports: [SharedModule, DraggableModule],
3349
+ providers: [WindowContainerService, WindowService]
3350
+ }]
3351
+ }] });
3253
3352
 
3254
3353
  /**
3255
3354
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
@@ -3276,16 +3375,21 @@ WindowModule = __decorate([
3276
3375
  *
3277
3376
  * ```
3278
3377
  */
3279
- let DialogsModule = class DialogsModule {
3280
- };
3281
- DialogsModule = __decorate([
3282
- NgModule({
3283
- exports: [DialogModule, WindowModule]
3284
- })
3285
- ], DialogsModule);
3378
+ class DialogsModule {
3379
+ }
3380
+ DialogsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3381
+ DialogsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, exports: [DialogModule, WindowModule] });
3382
+ DialogsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, imports: [DialogModule, WindowModule] });
3383
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, decorators: [{
3384
+ type: NgModule,
3385
+ args: [{
3386
+ exports: [DialogModule, WindowModule]
3387
+ }]
3388
+ }] });
3286
3389
 
3287
3390
  /**
3288
3391
  * Generated bundle index. Do not edit.
3289
3392
  */
3290
3393
 
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 };
3394
+ 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 };
3395
+