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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/bundles/kendo-angular-dialog.umd.js +5 -0
  2. package/{dist/es2015/common → common}/actions-layout.d.ts +0 -0
  3. package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
  4. package/{dist/es2015/common → common}/util.d.ts +1 -1
  5. package/{dist/es2015/dialog → dialog}/dialog-actions.component.d.ts +14 -7
  6. package/{dist/es2015/dialog → dialog}/dialog-container.directive.d.ts +3 -0
  7. package/dialog/dialog-container.service.d.ts +16 -0
  8. package/{dist/es2015/dialog → dialog}/dialog-content-base.d.ts +4 -1
  9. package/{dist/es2015/dialog → dialog}/dialog-titlebar.component.d.ts +5 -2
  10. package/{dist/es2015/dialog → dialog}/dialog.component.d.ts +13 -6
  11. package/{dist/es2015/dialog → dialog}/dialog.service.d.ts +5 -1
  12. package/dialog/models/dialog-action.d.ts +28 -0
  13. package/dialog/models/dialog-close-result.d.ts +11 -0
  14. package/dialog/models/dialog-ref.d.ts +38 -0
  15. package/dialog/models/dialog-result.d.ts +14 -0
  16. package/{dist/es2015/dialog → dialog/models}/dialog-settings.d.ts +5 -73
  17. package/{dist/es/localization/dialog-localization.service.js → dialog/models/index.d.ts} +5 -5
  18. package/{dist/es2015/dialog.module.d.ts → dialog.module.d.ts} +11 -0
  19. package/{dist/es2015/dialogs.module.d.ts → dialogs.module.d.ts} +6 -0
  20. package/{dist/es2015 → esm2015}/common/actions-layout.js +1 -0
  21. package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
  22. package/{dist/es2015 → esm2015}/common/util.js +0 -5
  23. package/esm2015/dialog/dialog-actions.component.js +115 -0
  24. package/esm2015/dialog/dialog-container.directive.js +30 -0
  25. package/esm2015/dialog/dialog-container.service.js +23 -0
  26. package/{dist/es2015 → esm2015}/dialog/dialog-content-base.js +18 -10
  27. package/esm2015/dialog/dialog-titlebar.component.js +136 -0
  28. package/{dist/es2015 → esm2015}/dialog/dialog.component.js +123 -113
  29. package/{dist/es2015 → esm2015}/dialog/dialog.service.js +16 -15
  30. package/{dist/es2015/window/window-container.service.d.ts → esm2015/dialog/models/dialog-action.js} +3 -5
  31. package/esm2015/dialog/models/dialog-close-result.js +11 -0
  32. package/esm2015/dialog/models/dialog-ref.js +11 -0
  33. package/{dist/es/common/actions-layout.js → esm2015/dialog/models/dialog-result.js} +1 -0
  34. package/{dist/es2015/dialog/dialog-container.service.d.ts → esm2015/dialog/models/dialog-settings.js} +3 -5
  35. package/esm2015/dialog/models/index.js +9 -0
  36. package/{dist/es2015 → esm2015}/dialog.module.js +20 -13
  37. package/{dist/es → esm2015}/dialogs.module.js +12 -12
  38. package/esm2015/kendo-angular-dialog.js +8 -0
  39. package/esm2015/localization/custom-messages.component.js +41 -0
  40. package/{dist/es2015 → esm2015}/localization/dialog-localization.service.js +0 -0
  41. package/esm2015/localization/localized-messages.directive.js +40 -0
  42. package/esm2015/localization/messages.js +28 -0
  43. package/esm2015/localization/titlebar-localization.service.js +44 -0
  44. package/{dist/es2015 → esm2015}/main.js +8 -2
  45. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  46. package/esm2015/shared.module.js +38 -0
  47. package/esm2015/window/actions/window-close-action.directive.js +59 -0
  48. package/esm2015/window/actions/window-maximize-action.directive.js +65 -0
  49. package/esm2015/window/actions/window-minimize-action.directive.js +65 -0
  50. package/esm2015/window/actions/window-restore-action.directive.js +65 -0
  51. package/{dist/es2015 → esm2015}/window/drag-resize.service.js +9 -11
  52. package/esm2015/window/models/index.js +10 -0
  53. package/esm2015/window/models/window-close-result.js +9 -0
  54. package/{dist/es2015/window/window-events.js → esm2015/window/models/window-messages.js} +1 -0
  55. package/esm2015/window/models/window-options.js +5 -0
  56. package/{dist/es2015/window/window-settings.js → esm2015/window/models/window-ref.js} +0 -11
  57. package/esm2015/window/models/window-settings.js +10 -0
  58. package/esm2015/window/models/window-types.js +5 -0
  59. package/{dist/es2015 → esm2015}/window/navigation.service.js +10 -11
  60. package/esm2015/window/window-container.directive.js +30 -0
  61. package/esm2015/window/window-container.service.js +23 -0
  62. package/{dist/es → esm2015}/window/window-events.js +1 -0
  63. package/{dist/es2015 → esm2015}/window/window-resize-handle.directive.js +21 -26
  64. package/{dist/es2015 → esm2015}/window/window-titlebar.component.js +35 -34
  65. package/{dist/es2015 → esm2015}/window/window.component.js +168 -187
  66. package/{dist/es2015 → esm2015}/window/window.service.js +15 -14
  67. package/{dist/es2015 → esm2015}/window.module.js +29 -17
  68. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dialog.js} +1023 -926
  69. package/{dist/es2015/shared.module.d.ts → kendo-angular-dialog.d.ts} +3 -7
  70. package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
  71. package/{dist/es2015/localization → localization}/dialog-localization.service.d.ts +0 -0
  72. package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
  73. package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
  74. package/{dist/es2015/localization → localization}/titlebar-localization.service.d.ts +3 -0
  75. package/{dist/es2015/main.d.ts → main.d.ts} +7 -2
  76. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  77. package/package.json +33 -105
  78. package/schematics/ngAdd/index.js +5 -2
  79. package/schematics/ngAdd/index.js.map +1 -1
  80. package/shared.module.d.ts +21 -0
  81. package/{dist/es2015/window → window}/actions/window-close-action.directive.d.ts +3 -0
  82. package/{dist/es2015/window → window}/actions/window-maximize-action.directive.d.ts +4 -1
  83. package/{dist/es2015/window → window}/actions/window-minimize-action.directive.d.ts +4 -1
  84. package/{dist/es2015/window → window}/actions/window-restore-action.directive.d.ts +4 -1
  85. package/{dist/es2015/window → window}/drag-resize.service.d.ts +8 -4
  86. package/window/models/index.d.ts +10 -0
  87. package/window/models/window-close-result.d.ts +9 -0
  88. package/window/models/window-messages.d.ts +26 -0
  89. package/window/models/window-options.d.ts +20 -0
  90. package/window/models/window-ref.d.ts +40 -0
  91. package/{dist/es2015/window → window/models}/window-settings.d.ts +4 -84
  92. package/window/models/window-types.d.ts +11 -0
  93. package/{dist/es2015/window → window}/navigation.service.d.ts +4 -1
  94. package/{dist/es2015/window → window}/window-container.directive.d.ts +3 -0
  95. package/window/window-container.service.d.ts +16 -0
  96. package/{dist/es2015/window → window}/window-events.d.ts +0 -0
  97. package/{dist/es2015/window → window}/window-resize-handle.directive.d.ts +4 -1
  98. package/{dist/es2015/window → window}/window-titlebar.component.d.ts +6 -3
  99. package/{dist/es2015/window → window}/window.component.d.ts +42 -25
  100. package/{dist/es2015/window → window}/window.service.d.ts +5 -1
  101. package/window.module.d.ts +45 -0
  102. package/dist/cdn/js/kendo-angular-dialog.js +0 -20
  103. package/dist/cdn/main.js +0 -5
  104. package/dist/es/common/preventable-event.js +0 -29
  105. package/dist/es/common/util.js +0 -214
  106. package/dist/es/dialog/dialog-actions.component.js +0 -89
  107. package/dist/es/dialog/dialog-container.directive.js +0 -31
  108. package/dist/es/dialog/dialog-container.service.js +0 -31
  109. package/dist/es/dialog/dialog-content-base.js +0 -45
  110. package/dist/es/dialog/dialog-settings.js +0 -46
  111. package/dist/es/dialog/dialog-titlebar.component.js +0 -94
  112. package/dist/es/dialog/dialog.component.js +0 -462
  113. package/dist/es/dialog/dialog.service.js +0 -214
  114. package/dist/es/dialog.module.js +0 -56
  115. package/dist/es/index.js +0 -22
  116. package/dist/es/localization/custom-messages.component.js +0 -44
  117. package/dist/es/localization/localized-messages.directive.js +0 -35
  118. package/dist/es/localization/messages.js +0 -34
  119. package/dist/es/localization/titlebar-localization.service.js +0 -34
  120. package/dist/es/main.js +0 -21
  121. package/dist/es/package-metadata.js +0 -15
  122. package/dist/es/shared.module.js +0 -34
  123. package/dist/es/window/actions/window-close-action.directive.js +0 -63
  124. package/dist/es/window/actions/window-maximize-action.directive.js +0 -75
  125. package/dist/es/window/actions/window-minimize-action.directive.js +0 -75
  126. package/dist/es/window/actions/window-restore-action.directive.js +0 -75
  127. package/dist/es/window/drag-resize.service.js +0 -351
  128. package/dist/es/window/navigation.service.js +0 -155
  129. package/dist/es/window/window-container.directive.js +0 -31
  130. package/dist/es/window/window-container.service.js +0 -31
  131. package/dist/es/window/window-resize-handle.directive.js +0 -78
  132. package/dist/es/window/window-settings.js +0 -34
  133. package/dist/es/window/window-titlebar.component.js +0 -144
  134. package/dist/es/window/window.component.js +0 -808
  135. package/dist/es/window/window.service.js +0 -214
  136. package/dist/es/window.module.js +0 -76
  137. package/dist/es2015/dialog/dialog-actions.component.js +0 -98
  138. package/dist/es2015/dialog/dialog-container.directive.js +0 -30
  139. package/dist/es2015/dialog/dialog-container.service.js +0 -23
  140. package/dist/es2015/dialog/dialog-settings.js +0 -30
  141. package/dist/es2015/dialog/dialog-titlebar.component.js +0 -106
  142. package/dist/es2015/dialogs.module.js +0 -41
  143. package/dist/es2015/index.d.ts +0 -22
  144. package/dist/es2015/index.js +0 -22
  145. package/dist/es2015/index.metadata.json +0 -1
  146. package/dist/es2015/localization/custom-messages.component.js +0 -36
  147. package/dist/es2015/localization/localized-messages.directive.js +0 -35
  148. package/dist/es2015/localization/messages.js +0 -28
  149. package/dist/es2015/localization/titlebar-localization.service.js +0 -31
  150. package/dist/es2015/shared.module.js +0 -31
  151. package/dist/es2015/window/actions/window-close-action.directive.js +0 -60
  152. package/dist/es2015/window/actions/window-maximize-action.directive.js +0 -68
  153. package/dist/es2015/window/actions/window-minimize-action.directive.js +0 -68
  154. package/dist/es2015/window/actions/window-restore-action.directive.js +0 -68
  155. package/dist/es2015/window/window-container.directive.js +0 -30
  156. package/dist/es2015/window/window-container.service.js +0 -23
  157. package/dist/es2015/window.module.d.ts +0 -28
  158. package/dist/fesm5/index.js +0 -3474
  159. package/dist/npm/common/actions-layout.js +0 -6
  160. package/dist/npm/common/preventable-event.js +0 -31
  161. package/dist/npm/common/util.js +0 -219
  162. package/dist/npm/dialog/dialog-actions.component.js +0 -91
  163. package/dist/npm/dialog/dialog-container.directive.js +0 -33
  164. package/dist/npm/dialog/dialog-container.service.js +0 -33
  165. package/dist/npm/dialog/dialog-content-base.js +0 -47
  166. package/dist/npm/dialog/dialog-settings.js +0 -48
  167. package/dist/npm/dialog/dialog-titlebar.component.js +0 -96
  168. package/dist/npm/dialog/dialog.component.js +0 -464
  169. package/dist/npm/dialog/dialog.service.js +0 -216
  170. package/dist/npm/dialog.module.js +0 -58
  171. package/dist/npm/dialogs.module.js +0 -46
  172. package/dist/npm/index.js +0 -40
  173. package/dist/npm/localization/custom-messages.component.js +0 -46
  174. package/dist/npm/localization/dialog-localization.service.js +0 -11
  175. package/dist/npm/localization/localized-messages.directive.js +0 -37
  176. package/dist/npm/localization/messages.js +0 -36
  177. package/dist/npm/localization/titlebar-localization.service.js +0 -36
  178. package/dist/npm/main.js +0 -45
  179. package/dist/npm/package-metadata.js +0 -17
  180. package/dist/npm/shared.module.js +0 -36
  181. package/dist/npm/window/actions/window-close-action.directive.js +0 -65
  182. package/dist/npm/window/actions/window-maximize-action.directive.js +0 -77
  183. package/dist/npm/window/actions/window-minimize-action.directive.js +0 -77
  184. package/dist/npm/window/actions/window-restore-action.directive.js +0 -77
  185. package/dist/npm/window/drag-resize.service.js +0 -353
  186. package/dist/npm/window/navigation.service.js +0 -157
  187. package/dist/npm/window/window-container.directive.js +0 -33
  188. package/dist/npm/window/window-container.service.js +0 -33
  189. package/dist/npm/window/window-events.js +0 -6
  190. package/dist/npm/window/window-resize-handle.directive.js +0 -80
  191. package/dist/npm/window/window-settings.js +0 -36
  192. package/dist/npm/window/window-titlebar.component.js +0 -146
  193. package/dist/npm/window/window.component.js +0 -810
  194. package/dist/npm/window/window.service.js +0 -216
  195. package/dist/npm/window.module.js +0 -78
  196. package/dist/systemjs/kendo-angular-dialog.js +0 -5
@@ -2,8 +2,7 @@
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 * as tslib_1 from "tslib";
6
- import { Component, EventEmitter, HostBinding, Input, ViewChild, Output, ElementRef, Renderer2, ChangeDetectorRef, NgZone, ContentChildren, QueryList, ViewChildren } from '@angular/core';
5
+ import { Component, EventEmitter, HostBinding, Input, ViewChild, Output, ContentChildren, ViewChildren } from '@angular/core';
7
6
  import { animate, state, style, transition, trigger } from '@angular/animations';
8
7
  import { DialogActionsComponent } from './dialog-actions.component';
9
8
  import { DialogTitleBarComponent } from './dialog-titlebar.component';
@@ -11,14 +10,20 @@ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
11
10
  import { validatePackage } from '@progress/kendo-licensing';
12
11
  import { packageMetadata } from '../package-metadata';
13
12
  import { hasClasses, Keys, isPresent, focusableSelector, isFocusable, DIALOG_ELEMENTS_HANDLING_ARROWS, DIALOG_ELEMENTS_HANDLING_ESC_KEY, createValueWithUnit, setHTMLAttributes, parseCSSClassNames, findPrimaryButton } from '../common/util';
14
- import { DialogCloseResult } from './dialog-settings';
13
+ import { DialogCloseResult } from './models/dialog-close-result';
15
14
  import { DIALOG_LOCALIZATION_SERVICE } from './../localization/dialog-localization.service';
16
15
  import { take } from 'rxjs/operators';
17
16
  import { Subscription } from 'rxjs';
17
+ import * as i0 from "@angular/core";
18
+ import * as i1 from "@progress/kendo-angular-l10n";
19
+ import * as i2 from "./dialog-titlebar.component";
20
+ import * as i3 from "./dialog-actions.component";
21
+ import * as i4 from "../localization/localized-messages.directive";
22
+ import * as i5 from "@angular/common";
18
23
  /**
19
24
  * Represents the [Kendo UI Dialog component for Angular]({% slug overview_dialog_dialogs %}).
20
25
  */
21
- let DialogComponent = class DialogComponent {
26
+ export class DialogComponent {
22
27
  constructor(wrapper, renderer, localization, cdr, ngZone) {
23
28
  this.wrapper = wrapper;
24
29
  this.renderer = renderer;
@@ -320,107 +325,76 @@ let DialogComponent = class DialogComponent {
320
325
  this.subscriptions.push(s);
321
326
  }
322
327
  }
323
- };
324
- tslib_1.__decorate([
325
- Input(),
326
- tslib_1.__metadata("design:type", Array)
327
- ], DialogComponent.prototype, "actions", void 0);
328
- tslib_1.__decorate([
329
- Input(),
330
- tslib_1.__metadata("design:type", String)
331
- ], DialogComponent.prototype, "actionsLayout", void 0);
332
- tslib_1.__decorate([
333
- Input(),
334
- tslib_1.__metadata("design:type", String)
335
- ], DialogComponent.prototype, "autoFocusedElement", void 0);
336
- tslib_1.__decorate([
337
- Input(),
338
- tslib_1.__metadata("design:type", String)
339
- ], DialogComponent.prototype, "title", void 0);
340
- tslib_1.__decorate([
341
- Input(),
342
- tslib_1.__metadata("design:type", Object)
343
- ], DialogComponent.prototype, "width", void 0);
344
- tslib_1.__decorate([
345
- Input(),
346
- tslib_1.__metadata("design:type", Object)
347
- ], DialogComponent.prototype, "minWidth", void 0);
348
- tslib_1.__decorate([
349
- Input(),
350
- tslib_1.__metadata("design:type", Object)
351
- ], DialogComponent.prototype, "maxWidth", void 0);
352
- tslib_1.__decorate([
353
- Input(),
354
- tslib_1.__metadata("design:type", Object)
355
- ], DialogComponent.prototype, "height", void 0);
356
- tslib_1.__decorate([
357
- Input(),
358
- tslib_1.__metadata("design:type", Object)
359
- ], DialogComponent.prototype, "minHeight", void 0);
360
- tslib_1.__decorate([
361
- Input(),
362
- tslib_1.__metadata("design:type", Object)
363
- ], DialogComponent.prototype, "maxHeight", void 0);
364
- tslib_1.__decorate([
365
- Output(),
366
- tslib_1.__metadata("design:type", EventEmitter)
367
- ], DialogComponent.prototype, "action", void 0);
368
- tslib_1.__decorate([
369
- Output(),
370
- tslib_1.__metadata("design:type", EventEmitter)
371
- ], DialogComponent.prototype, "close", void 0);
372
- tslib_1.__decorate([
373
- HostBinding('attr.dir'),
374
- tslib_1.__metadata("design:type", String),
375
- tslib_1.__metadata("design:paramtypes", [])
376
- ], DialogComponent.prototype, "dir", null);
377
- tslib_1.__decorate([
378
- HostBinding('attr.tabIndex'),
379
- tslib_1.__metadata("design:type", Number)
380
- ], DialogComponent.prototype, "tabIndex", void 0);
381
- tslib_1.__decorate([
382
- ContentChildren(DialogTitleBarComponent, { descendants: false }),
383
- tslib_1.__metadata("design:type", QueryList)
384
- ], DialogComponent.prototype, "titlebarContent", void 0);
385
- tslib_1.__decorate([
386
- ViewChildren(DialogTitleBarComponent),
387
- tslib_1.__metadata("design:type", QueryList)
388
- ], DialogComponent.prototype, "titlebarView", void 0);
389
- tslib_1.__decorate([
390
- ViewChild(DialogActionsComponent, { static: false }),
391
- tslib_1.__metadata("design:type", DialogActionsComponent)
392
- ], DialogComponent.prototype, "actionsView", void 0);
393
- tslib_1.__decorate([
394
- HostBinding('class.k-dialog-wrapper'),
395
- tslib_1.__metadata("design:type", Boolean),
396
- tslib_1.__metadata("design:paramtypes", [])
397
- ], DialogComponent.prototype, "wrapperClass", null);
398
- DialogComponent = tslib_1.__decorate([
399
- Component({
400
- animations: [
401
- trigger('overlayAppear', [
402
- state('in', style({ opacity: 1 })),
403
- transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
404
- ]),
405
- trigger('dialogSlideInAppear', [
406
- state('in', style({ transform: 'translate(0, 0)' })),
407
- transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
408
- ])
409
- ],
410
- exportAs: 'kendoDialog',
411
- providers: [
412
- LocalizationService,
413
- {
414
- provide: DIALOG_LOCALIZATION_SERVICE,
415
- useExisting: LocalizationService
416
- },
417
- {
418
- provide: L10N_PREFIX,
419
- useValue: 'kendo.dialog'
420
- }
421
- ],
422
- selector: 'kendo-dialog',
423
- template: `
328
+ }
329
+ 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.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
330
+ 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: [
331
+ LocalizationService,
332
+ {
333
+ provide: DIALOG_LOCALIZATION_SERVICE,
334
+ useExisting: LocalizationService
335
+ },
336
+ {
337
+ provide: L10N_PREFIX,
338
+ useValue: 'kendo.dialog'
339
+ }
340
+ ], 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: `
341
+ <ng-container
342
+ kendoDialogLocalizedMessages
343
+ i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
344
+ closeTitle="Close"
345
+ >
346
+ <div class="k-overlay" @overlayAppear></div>
347
+
348
+ <div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>
349
+ <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
350
+ <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
351
+
352
+ <div [id]="contentId" class="k-content k-window-content k-dialog-content">
353
+ <ng-content *ngIf="!contentTemplate"></ng-content>
354
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
355
+ </div>
356
+
357
+ <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
358
+ <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
359
+ </div>
360
+ </ng-container>
361
+ `, isInline: true, components: [{ type: i2.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }], directives: [{ type: i4.LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i5.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
362
+ trigger('overlayAppear', [
363
+ state('in', style({ opacity: 1 })),
364
+ transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
365
+ ]),
366
+ trigger('dialogSlideInAppear', [
367
+ state('in', style({ transform: 'translate(0, 0)' })),
368
+ transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
369
+ ])
370
+ ] });
371
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogComponent, decorators: [{
372
+ type: Component,
373
+ args: [{
374
+ animations: [
375
+ trigger('overlayAppear', [
376
+ state('in', style({ opacity: 1 })),
377
+ transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
378
+ ]),
379
+ trigger('dialogSlideInAppear', [
380
+ state('in', style({ transform: 'translate(0, 0)' })),
381
+ transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
382
+ ])
383
+ ],
384
+ exportAs: 'kendoDialog',
385
+ providers: [
386
+ LocalizationService,
387
+ {
388
+ provide: DIALOG_LOCALIZATION_SERVICE,
389
+ useExisting: LocalizationService
390
+ },
391
+ {
392
+ provide: L10N_PREFIX,
393
+ useValue: 'kendo.dialog'
394
+ }
395
+ ],
396
+ selector: 'kendo-dialog',
397
+ template: `
424
398
  <ng-container
425
399
  kendoDialogLocalizedMessages
426
400
  i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
@@ -442,11 +416,47 @@ DialogComponent = tslib_1.__decorate([
442
416
  </div>
443
417
  </ng-container>
444
418
  `
445
- }),
446
- tslib_1.__metadata("design:paramtypes", [ElementRef,
447
- Renderer2,
448
- LocalizationService,
449
- ChangeDetectorRef,
450
- NgZone])
451
- ], DialogComponent);
452
- export { DialogComponent };
419
+ }]
420
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { actions: [{
421
+ type: Input
422
+ }], actionsLayout: [{
423
+ type: Input
424
+ }], autoFocusedElement: [{
425
+ type: Input
426
+ }], title: [{
427
+ type: Input
428
+ }], width: [{
429
+ type: Input
430
+ }], minWidth: [{
431
+ type: Input
432
+ }], maxWidth: [{
433
+ type: Input
434
+ }], height: [{
435
+ type: Input
436
+ }], minHeight: [{
437
+ type: Input
438
+ }], maxHeight: [{
439
+ type: Input
440
+ }], action: [{
441
+ type: Output
442
+ }], close: [{
443
+ type: Output
444
+ }], dir: [{
445
+ type: HostBinding,
446
+ args: ['attr.dir']
447
+ }], tabIndex: [{
448
+ type: HostBinding,
449
+ args: ['attr.tabIndex']
450
+ }], titlebarContent: [{
451
+ type: ContentChildren,
452
+ args: [DialogTitleBarComponent, { descendants: false }]
453
+ }], titlebarView: [{
454
+ type: ViewChildren,
455
+ args: [DialogTitleBarComponent]
456
+ }], actionsView: [{
457
+ type: ViewChild,
458
+ args: [DialogActionsComponent, { static: false }]
459
+ }], wrapperClass: [{
460
+ type: HostBinding,
461
+ args: ['class.k-dialog-wrapper']
462
+ }] } });
@@ -2,19 +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 * as tslib_1 from "tslib";
6
- // tslint:disable:max-line-length
5
+ // eslint-disable max-line-length
7
6
  import { Subject, merge } from 'rxjs';
8
7
  import { take, filter, share, map } from 'rxjs/operators';
9
- import { Injectable, ComponentFactoryResolver, Renderer2, TemplateRef, isDevMode, Inject } from '@angular/core';
8
+ import { Injectable, Renderer2, TemplateRef, isDevMode, Inject } from '@angular/core';
10
9
  import { DialogComponent } from './dialog.component';
11
10
  import { DialogContainerService } from './dialog-container.service';
12
- import { DialogCloseResult, DialogRef } from './dialog-settings';
11
+ import { DialogRef } from './models/dialog-ref';
13
12
  import { DialogContentBase } from './dialog-content-base';
14
13
  import { PreventableEvent } from '../common/preventable-event';
15
14
  import { isString } from '../common/util';
15
+ import { DialogCloseResult } from './models';
16
+ import * as i0 from "@angular/core";
17
+ import * as i1 from "./dialog-container.service";
16
18
  const isNotComponent = (component) => isString(component) || component instanceof TemplateRef;
17
- const ɵ0 = isNotComponent;
18
19
  class DialogInjector {
19
20
  constructor(getDialogRef, parentInjector) {
20
21
  this.getDialogRef = getDialogRef;
@@ -31,7 +32,7 @@ class DialogInjector {
31
32
  * A service for opening Dialog windows dynamically
32
33
  * ([see example]({% slug service_dialog %})).
33
34
  */
34
- let DialogService = class DialogService {
35
+ export class DialogService {
35
36
  constructor(
36
37
  /**
37
38
  * @hidden
@@ -212,12 +213,12 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
212
213
  ]
213
214
  };
214
215
  }
215
- };
216
- DialogService = tslib_1.__decorate([
217
- Injectable(),
218
- tslib_1.__param(1, Inject(DialogContainerService)),
219
- tslib_1.__metadata("design:paramtypes", [ComponentFactoryResolver,
220
- DialogContainerService])
221
- ], DialogService);
222
- export { DialogService };
223
- export { ɵ0 };
216
+ }
217
+ 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 });
218
+ DialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogService });
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogService, decorators: [{
220
+ type: Injectable
221
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i1.DialogContainerService, decorators: [{
222
+ type: Inject,
223
+ args: [DialogContainerService]
224
+ }] }]; } });
@@ -2,11 +2,9 @@
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 { ViewContainerRef } from '@angular/core';
6
5
  /**
7
- * @hidden
6
+ * The settings for the Dialog actions when the Dialog is opened through `DialogService`
7
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
8
8
  */
9
- export declare class WindowContainerService {
10
- private static container;
11
- container: ViewContainerRef;
9
+ export class DialogAction {
12
10
  }
@@ -0,0 +1,11 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Indicates that the **Close** button is clicked. Used when the results from
7
+ * the Dialogs that are opened through `DialogService` are filtered
8
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
9
+ */
10
+ export class DialogCloseResult {
11
+ }
@@ -0,0 +1,11 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Holds references to the object instance and published events of the Dialog.
7
+ * Controls the Dialogs that were opened through the `DialogService`
8
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
9
+ */
10
+ export class DialogRef {
11
+ }
@@ -2,3 +2,4 @@
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
+ export {};
@@ -2,11 +2,9 @@
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 { ViewContainerRef } from '@angular/core';
6
5
  /**
7
- * @hidden
6
+ * The settings that can be used when the Dialog is opened through `DialogService`.
7
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
8
8
  */
9
- export declare class DialogContainerService {
10
- private static container;
11
- container: ViewContainerRef;
9
+ export class DialogSettings {
12
10
  }
@@ -0,0 +1,9 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export * from './dialog-action';
6
+ export * from './dialog-close-result';
7
+ export * from './dialog-ref';
8
+ export * from './dialog-result';
9
+ export * from './dialog-settings';
@@ -2,7 +2,6 @@
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 * as tslib_1 from "tslib";
6
5
  import { NgModule } from '@angular/core';
7
6
  import { DialogComponent } from './dialog/dialog.component';
8
7
  import { DialogTitleBarComponent } from './dialog/dialog-titlebar.component';
@@ -10,6 +9,10 @@ import { DialogService } from './dialog/dialog.service';
10
9
  import { DialogContainerDirective } from './dialog/dialog-container.directive';
11
10
  import { DialogContainerService } from './dialog/dialog-container.service';
12
11
  import { SharedModule, SHARED_DIRECTIVES } from './shared.module';
12
+ import * as i0 from "@angular/core";
13
+ import * as i1 from "./dialog/dialog-actions.component";
14
+ import * as i2 from "./localization/custom-messages.component";
15
+ import * as i3 from "./localization/localized-messages.directive";
13
16
  /**
14
17
  * @hidden
15
18
  */
@@ -39,15 +42,19 @@ export const DIALOG_DIRECTIVES = [
39
42
  * }
40
43
  * ```
41
44
  */
42
- let DialogModule = class DialogModule {
43
- };
44
- DialogModule = tslib_1.__decorate([
45
- NgModule({
46
- declarations: [DIALOG_DIRECTIVES, DialogContainerDirective],
47
- entryComponents: [DIALOG_DIRECTIVES],
48
- exports: [DIALOG_DIRECTIVES, SHARED_DIRECTIVES, DialogContainerDirective],
49
- imports: [SharedModule],
50
- providers: [DialogContainerService, DialogService]
51
- })
52
- ], DialogModule);
53
- export { DialogModule };
45
+ export class DialogModule {
46
+ }
47
+ DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
+ DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, declarations: [DialogComponent,
49
+ DialogTitleBarComponent, DialogContainerDirective], imports: [SharedModule], exports: [DialogComponent,
50
+ DialogTitleBarComponent, i1.DialogActionsComponent, i2.CustomMessagesComponent, i3.LocalizedMessagesDirective, DialogContainerDirective] });
51
+ DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService], imports: [[SharedModule]] });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, decorators: [{
53
+ type: NgModule,
54
+ args: [{
55
+ declarations: [DIALOG_DIRECTIVES, DialogContainerDirective],
56
+ exports: [DIALOG_DIRECTIVES, SHARED_DIRECTIVES, DialogContainerDirective],
57
+ imports: [SharedModule],
58
+ providers: [DialogContainerService, DialogService]
59
+ }]
60
+ }] });
@@ -2,10 +2,10 @@
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 * as tslib_1 from "tslib";
6
5
  import { NgModule } from '@angular/core';
7
6
  import { DialogModule } from './dialog.module';
8
7
  import { WindowModule } from './window.module';
8
+ import * as i0 from "@angular/core";
9
9
  /**
10
10
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
11
11
  * definition for the Dialogs components.
@@ -31,14 +31,14 @@ import { WindowModule } from './window.module';
31
31
  *
32
32
  * ```
33
33
  */
34
- var DialogsModule = /** @class */ (function () {
35
- function DialogsModule() {
36
- }
37
- DialogsModule = tslib_1.__decorate([
38
- NgModule({
39
- exports: [DialogModule, WindowModule]
40
- })
41
- ], DialogsModule);
42
- return DialogsModule;
43
- }());
44
- export { DialogsModule };
34
+ export class DialogsModule {
35
+ }
36
+ DialogsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
37
+ DialogsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, exports: [DialogModule, WindowModule] });
38
+ DialogsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, imports: [DialogModule, WindowModule] });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, decorators: [{
40
+ type: NgModule,
41
+ args: [{
42
+ exports: [DialogModule, WindowModule]
43
+ }]
44
+ }] });
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Generated bundle index. Do not edit.
7
+ */
8
+ export * from './main';
@@ -0,0 +1,41 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive, forwardRef } from '@angular/core';
6
+ import { Messages } from './messages';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@progress/kendo-angular-l10n";
9
+ /**
10
+ * Custom component messages override default component messages
11
+ * ([see example]({% slug globalization_dialogs %}#toc-localization)).
12
+ */
13
+ export class CustomMessagesComponent extends Messages {
14
+ constructor(service) {
15
+ super();
16
+ this.service = service;
17
+ }
18
+ get override() {
19
+ return true;
20
+ }
21
+ }
22
+ CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
23
+ CustomMessagesComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CustomMessagesComponent, selector: "kendo-dialog-messages, kendo-window-messages", providers: [
24
+ {
25
+ provide: Messages,
26
+ useExisting: forwardRef(() => CustomMessagesComponent)
27
+ }
28
+ ], usesInheritance: true, ngImport: i0 });
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, decorators: [{
30
+ type: Directive,
31
+ args: [{
32
+ providers: [
33
+ {
34
+ provide: Messages,
35
+ useExisting: forwardRef(() => CustomMessagesComponent)
36
+ }
37
+ ],
38
+ // eslint-disable-next-line @angular-eslint/directive-selector
39
+ selector: 'kendo-dialog-messages, kendo-window-messages'
40
+ }]
41
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
@@ -0,0 +1,40 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive, forwardRef } from '@angular/core';
6
+ import { Messages } from './messages';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@progress/kendo-angular-l10n";
9
+ /**
10
+ * @hidden
11
+ */
12
+ export class LocalizedMessagesDirective extends Messages {
13
+ constructor(service) {
14
+ super();
15
+ this.service = service;
16
+ }
17
+ }
18
+ LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
19
+ LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ", providers: [
20
+ {
21
+ provide: Messages,
22
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
23
+ }
24
+ ], usesInheritance: true, ngImport: i0 });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
26
+ type: Directive,
27
+ args: [{
28
+ providers: [
29
+ {
30
+ provide: Messages,
31
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
32
+ }
33
+ ],
34
+ selector: `
35
+ [kendoDialogLocalizedMessages],
36
+ [kendoWindowLocalizedMessages],
37
+ [kendoDialogTitleBarLocalizedMessages]
38
+ `
39
+ }]
40
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
@@ -0,0 +1,28 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive, Input } from '@angular/core';
6
+ import { ComponentMessages } from '@progress/kendo-angular-l10n';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export class Messages extends ComponentMessages {
12
+ }
13
+ Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
+ 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 });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
16
+ type: Directive,
17
+ args: [{
18
+ selector: 'kendo-dialog-messages-base'
19
+ }]
20
+ }], propDecorators: { closeTitle: [{
21
+ type: Input
22
+ }], restoreTitle: [{
23
+ type: Input
24
+ }], maximizeTitle: [{
25
+ type: Input
26
+ }], minimizeTitle: [{
27
+ type: Input
28
+ }] } });