@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,15 +2,15 @@
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 { Directive, Host, ElementRef, Input, HostBinding, Renderer2 } from '@angular/core';
7
- import { DraggableDirective } from '@progress/kendo-angular-common';
8
- import { DragResizeService } from './drag-resize.service';
5
+ import { Directive, Host, Input, HostBinding } from '@angular/core';
9
6
  import { Subscription, of, merge } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@progress/kendo-angular-common";
9
+ import * as i2 from "./drag-resize.service";
10
10
  /**
11
11
  * @hidden
12
12
  */
13
- let ResizeHandleDirective = class ResizeHandleDirective {
13
+ export class ResizeHandleDirective {
14
14
  constructor(draggable, el, renderer, service) {
15
15
  this.draggable = draggable;
16
16
  this.el = el;
@@ -48,24 +48,19 @@ let ResizeHandleDirective = class ResizeHandleDirective {
48
48
  setDisplay(value = 'block') {
49
49
  this.renderer.setStyle(this.el.nativeElement, 'display', this.service.options.state === 'default' ? value : 'none');
50
50
  }
51
- };
52
- tslib_1.__decorate([
53
- Input(),
54
- tslib_1.__metadata("design:type", String)
55
- ], ResizeHandleDirective.prototype, "direction", void 0);
56
- tslib_1.__decorate([
57
- HostBinding('class.k-resize-handle'),
58
- tslib_1.__metadata("design:type", Boolean),
59
- tslib_1.__metadata("design:paramtypes", [])
60
- ], ResizeHandleDirective.prototype, "hostClass", null);
61
- ResizeHandleDirective = tslib_1.__decorate([
62
- Directive({
63
- selector: '[kendoWindowResizeHandle]'
64
- }),
65
- tslib_1.__param(0, Host()),
66
- tslib_1.__metadata("design:paramtypes", [DraggableDirective,
67
- ElementRef,
68
- Renderer2,
69
- DragResizeService])
70
- ], ResizeHandleDirective);
71
- export { ResizeHandleDirective };
51
+ }
52
+ ResizeHandleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, deps: [{ token: i1.DraggableDirective, host: true }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.DragResizeService }], target: i0.ɵɵFactoryTarget.Directive });
53
+ 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 });
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, decorators: [{
55
+ type: Directive,
56
+ args: [{
57
+ selector: '[kendoWindowResizeHandle]'
58
+ }]
59
+ }], ctorParameters: function () { return [{ type: i1.DraggableDirective, decorators: [{
60
+ type: Host
61
+ }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.DragResizeService }]; }, propDecorators: { direction: [{
62
+ type: Input
63
+ }], hostClass: [{
64
+ type: HostBinding,
65
+ args: ['class.k-resize-handle']
66
+ }] } });
@@ -2,13 +2,14 @@
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, HostBinding, HostListener, ElementRef, NgZone, TemplateRef, Input } from '@angular/core';
5
+ import { Component, HostBinding, HostListener, Input } from '@angular/core';
7
6
  import { DraggableDirective } from '@progress/kendo-angular-common';
8
- import { DragResizeService } from './drag-resize.service';
9
7
  import { of } from 'rxjs';
10
8
  import { hasClasses, isFocusable } from '../common/util';
11
- let WindowTitleBarComponent = class WindowTitleBarComponent {
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "./drag-resize.service";
11
+ import * as i2 from "@angular/common";
12
+ export class WindowTitleBarComponent {
12
13
  constructor(el, service, ngZone) {
13
14
  this.el = el;
14
15
  this.ngZone = ngZone;
@@ -97,39 +98,39 @@ let WindowTitleBarComponent = class WindowTitleBarComponent {
97
98
  const options = this.service.options;
98
99
  return options.draggable && options.state !== 'maximized';
99
100
  }
100
- };
101
- tslib_1.__decorate([
102
- Input(),
103
- tslib_1.__metadata("design:type", TemplateRef)
104
- ], WindowTitleBarComponent.prototype, "template", void 0);
105
- tslib_1.__decorate([
106
- HostBinding('class.k-window-titlebar'),
107
- HostBinding('class.k-dialog-titlebar'),
108
- tslib_1.__metadata("design:type", Boolean),
109
- tslib_1.__metadata("design:paramtypes", [])
110
- ], WindowTitleBarComponent.prototype, "className", null);
111
- tslib_1.__decorate([
112
- HostBinding('style.touch-action'),
113
- tslib_1.__metadata("design:type", String),
114
- tslib_1.__metadata("design:paramtypes", [])
115
- ], WindowTitleBarComponent.prototype, "touchAction", null);
116
- tslib_1.__decorate([
117
- HostListener('dblclick', ['$event']),
118
- tslib_1.__metadata("design:type", Function),
119
- tslib_1.__metadata("design:paramtypes", [Object]),
120
- tslib_1.__metadata("design:returntype", void 0)
121
- ], WindowTitleBarComponent.prototype, "handle", null);
122
- WindowTitleBarComponent = tslib_1.__decorate([
123
- Component({
124
- selector: 'kendo-window-titlebar',
125
- template: `
101
+ }
102
+ WindowTitleBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowTitleBarComponent, deps: [{ token: i0.ElementRef }, { token: i1.DragResizeService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
103
+ 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: `
104
+ <ng-content *ngIf="!template"></ng-content>
105
+ <ng-template
106
+ [ngTemplateOutlet]="template"
107
+ [ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
108
+ </ng-template>
109
+ `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowTitleBarComponent, decorators: [{
111
+ type: Component,
112
+ args: [{
113
+ selector: 'kendo-window-titlebar',
114
+ template: `
126
115
  <ng-content *ngIf="!template"></ng-content>
127
116
  <ng-template
128
117
  [ngTemplateOutlet]="template"
129
118
  [ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
130
119
  </ng-template>
131
120
  `
132
- }),
133
- tslib_1.__metadata("design:paramtypes", [ElementRef, DragResizeService, NgZone])
134
- ], WindowTitleBarComponent);
135
- export { WindowTitleBarComponent };
121
+ }]
122
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.DragResizeService }, { type: i0.NgZone }]; }, propDecorators: { template: [{
123
+ type: Input
124
+ }], className: [{
125
+ type: HostBinding,
126
+ args: ['class.k-window-titlebar']
127
+ }, {
128
+ type: HostBinding,
129
+ args: ['class.k-dialog-titlebar']
130
+ }], touchAction: [{
131
+ type: HostBinding,
132
+ args: ['style.touch-action']
133
+ }], handle: [{
134
+ type: HostListener,
135
+ args: ['dblclick', ['$event']]
136
+ }] } });
@@ -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, Input, Output, HostBinding, EventEmitter, ContentChild, ElementRef, Renderer2, ViewChildren, QueryList, HostListener, NgZone, ViewChild } from '@angular/core';
5
+ import { Component, Input, Output, HostBinding, EventEmitter, ContentChild, ViewChildren, HostListener, ViewChild } from '@angular/core';
7
6
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
8
7
  import { isChanged, isDocumentAvailable } from '@progress/kendo-angular-common';
9
8
  import { Subscription } from 'rxjs';
@@ -15,10 +14,23 @@ import { RESIZE_DIRECTIONS } from "../common/util";
15
14
  import { ResizeHandleDirective } from './window-resize-handle.directive';
16
15
  import { WindowTitleBarComponent } from './window-titlebar.component';
17
16
  import { NavigationService } from './navigation.service';
17
+ import * as i0 from "@angular/core";
18
+ import * as i1 from "./drag-resize.service";
19
+ import * as i2 from "./navigation.service";
20
+ import * as i3 from "@progress/kendo-angular-l10n";
21
+ import * as i4 from "./window-titlebar.component";
22
+ import * as i5 from "../localization/localized-messages.directive";
23
+ import * as i6 from "@angular/common";
24
+ import * as i7 from "./actions/window-minimize-action.directive";
25
+ import * as i8 from "./actions/window-maximize-action.directive";
26
+ import * as i9 from "./actions/window-restore-action.directive";
27
+ import * as i10 from "./actions/window-close-action.directive";
28
+ import * as i11 from "./window-resize-handle.directive";
29
+ import * as i12 from "@progress/kendo-angular-common";
18
30
  /**
19
31
  * Represents the [Kendo UI Window component for Angular]({% slug overview_window_dialogs %}).
20
32
  */
21
- let WindowComponent = class WindowComponent {
33
+ export class WindowComponent {
22
34
  constructor(el, renderer, service, navigation, ngZone, localization) {
23
35
  this.el = el;
24
36
  this.renderer = renderer;
@@ -513,181 +525,74 @@ let WindowComponent = class WindowComponent {
513
525
  this.focus();
514
526
  }
515
527
  }
516
- };
517
- tslib_1.__decorate([
518
- Input(),
519
- tslib_1.__metadata("design:type", String)
520
- ], WindowComponent.prototype, "autoFocusedElement", void 0);
521
- tslib_1.__decorate([
522
- Input(),
523
- tslib_1.__metadata("design:type", String)
524
- ], WindowComponent.prototype, "title", void 0);
525
- tslib_1.__decorate([
526
- Input(),
527
- tslib_1.__metadata("design:type", Boolean),
528
- tslib_1.__metadata("design:paramtypes", [Boolean])
529
- ], WindowComponent.prototype, "draggable", null);
530
- tslib_1.__decorate([
531
- Input(),
532
- tslib_1.__metadata("design:type", Boolean),
533
- tslib_1.__metadata("design:paramtypes", [Boolean])
534
- ], WindowComponent.prototype, "resizable", null);
535
- tslib_1.__decorate([
536
- Input(),
537
- tslib_1.__metadata("design:type", Boolean)
538
- ], WindowComponent.prototype, "keepContent", void 0);
539
- tslib_1.__decorate([
540
- Input(),
541
- tslib_1.__metadata("design:type", String),
542
- tslib_1.__metadata("design:paramtypes", [String])
543
- ], WindowComponent.prototype, "state", null);
544
- tslib_1.__decorate([
545
- Input(),
546
- tslib_1.__metadata("design:type", Number),
547
- tslib_1.__metadata("design:paramtypes", [Number])
548
- ], WindowComponent.prototype, "minWidth", null);
549
- tslib_1.__decorate([
550
- Input(),
551
- tslib_1.__metadata("design:type", Number),
552
- tslib_1.__metadata("design:paramtypes", [Number])
553
- ], WindowComponent.prototype, "minHeight", null);
554
- tslib_1.__decorate([
555
- Input(),
556
- tslib_1.__metadata("design:type", Number),
557
- tslib_1.__metadata("design:paramtypes", [Number])
558
- ], WindowComponent.prototype, "width", null);
559
- tslib_1.__decorate([
560
- Input(),
561
- tslib_1.__metadata("design:type", Number),
562
- tslib_1.__metadata("design:paramtypes", [Number])
563
- ], WindowComponent.prototype, "height", null);
564
- tslib_1.__decorate([
565
- Input(),
566
- tslib_1.__metadata("design:type", Number),
567
- tslib_1.__metadata("design:paramtypes", [Number])
568
- ], WindowComponent.prototype, "top", null);
569
- tslib_1.__decorate([
570
- Input(),
571
- tslib_1.__metadata("design:type", Number),
572
- tslib_1.__metadata("design:paramtypes", [Number])
573
- ], WindowComponent.prototype, "left", null);
574
- tslib_1.__decorate([
575
- Output(),
576
- tslib_1.__metadata("design:type", EventEmitter)
577
- ], WindowComponent.prototype, "dragStart", void 0);
578
- tslib_1.__decorate([
579
- Output(),
580
- tslib_1.__metadata("design:type", EventEmitter)
581
- ], WindowComponent.prototype, "dragEnd", void 0);
582
- tslib_1.__decorate([
583
- Output(),
584
- tslib_1.__metadata("design:type", EventEmitter)
585
- ], WindowComponent.prototype, "resizeStart", void 0);
586
- tslib_1.__decorate([
587
- Output(),
588
- tslib_1.__metadata("design:type", EventEmitter)
589
- ], WindowComponent.prototype, "resizeEnd", void 0);
590
- tslib_1.__decorate([
591
- Output(),
592
- tslib_1.__metadata("design:type", EventEmitter)
593
- ], WindowComponent.prototype, "close", void 0);
594
- tslib_1.__decorate([
595
- Output(),
596
- tslib_1.__metadata("design:type", EventEmitter)
597
- ], WindowComponent.prototype, "widthChange", void 0);
598
- tslib_1.__decorate([
599
- Output(),
600
- tslib_1.__metadata("design:type", EventEmitter)
601
- ], WindowComponent.prototype, "heightChange", void 0);
602
- tslib_1.__decorate([
603
- Output(),
604
- tslib_1.__metadata("design:type", EventEmitter)
605
- ], WindowComponent.prototype, "topChange", void 0);
606
- tslib_1.__decorate([
607
- Output(),
608
- tslib_1.__metadata("design:type", EventEmitter)
609
- ], WindowComponent.prototype, "leftChange", void 0);
610
- tslib_1.__decorate([
611
- Output(),
612
- tslib_1.__metadata("design:type", EventEmitter)
613
- ], WindowComponent.prototype, "stateChange", void 0);
614
- tslib_1.__decorate([
615
- HostBinding('attr.tabIndex'),
616
- tslib_1.__metadata("design:type", Number)
617
- ], WindowComponent.prototype, "tabIndex", void 0);
618
- tslib_1.__decorate([
619
- HostBinding('class.k-window'),
620
- tslib_1.__metadata("design:type", Boolean),
621
- tslib_1.__metadata("design:paramtypes", [])
622
- ], WindowComponent.prototype, "hostClasses", null);
623
- tslib_1.__decorate([
624
- HostBinding('attr.dir'),
625
- tslib_1.__metadata("design:type", String),
626
- tslib_1.__metadata("design:paramtypes", [])
627
- ], WindowComponent.prototype, "dir", null);
628
- tslib_1.__decorate([
629
- ViewChild(WindowTitleBarComponent, { static: false }),
630
- tslib_1.__metadata("design:type", WindowTitleBarComponent)
631
- ], WindowComponent.prototype, "titleBarView", void 0);
632
- tslib_1.__decorate([
633
- ContentChild(WindowTitleBarComponent, { static: false }),
634
- tslib_1.__metadata("design:type", WindowTitleBarComponent)
635
- ], WindowComponent.prototype, "titleBarContent", void 0);
636
- tslib_1.__decorate([
637
- ViewChildren(ResizeHandleDirective),
638
- tslib_1.__metadata("design:type", QueryList)
639
- ], WindowComponent.prototype, "resizeHandles", void 0);
640
- tslib_1.__decorate([
641
- HostBinding('style.minWidth'),
642
- tslib_1.__metadata("design:type", String),
643
- tslib_1.__metadata("design:paramtypes", [])
644
- ], WindowComponent.prototype, "styleMinWidth", null);
645
- tslib_1.__decorate([
646
- HostBinding('style.minHeight'),
647
- tslib_1.__metadata("design:type", String),
648
- tslib_1.__metadata("design:paramtypes", [])
649
- ], WindowComponent.prototype, "styleMinHeight", null);
650
- tslib_1.__decorate([
651
- HostBinding('style.position'),
652
- tslib_1.__metadata("design:type", String),
653
- tslib_1.__metadata("design:paramtypes", [])
654
- ], WindowComponent.prototype, "stylePosition", null);
655
- tslib_1.__decorate([
656
- HostBinding('class.k-window-maximized'),
657
- tslib_1.__metadata("design:type", Boolean),
658
- tslib_1.__metadata("design:paramtypes", [])
659
- ], WindowComponent.prototype, "wrapperMaximizedClass", null);
660
- tslib_1.__decorate([
661
- HostBinding('class.k-window-minimized'),
662
- tslib_1.__metadata("design:type", Boolean),
663
- tslib_1.__metadata("design:paramtypes", [])
664
- ], WindowComponent.prototype, "wrapperMinimizedClass", null);
665
- tslib_1.__decorate([
666
- HostListener('focus'),
667
- tslib_1.__metadata("design:type", Function),
668
- tslib_1.__metadata("design:paramtypes", []),
669
- tslib_1.__metadata("design:returntype", void 0)
670
- ], WindowComponent.prototype, "onComponentFocus", null);
671
- tslib_1.__decorate([
672
- HostListener('blur'),
673
- tslib_1.__metadata("design:type", Function),
674
- tslib_1.__metadata("design:paramtypes", []),
675
- tslib_1.__metadata("design:returntype", void 0)
676
- ], WindowComponent.prototype, "onComponentBlur", null);
677
- WindowComponent = tslib_1.__decorate([
678
- Component({
679
- exportAs: 'kendoWindow',
680
- providers: [
681
- DragResizeService,
682
- NavigationService,
683
- LocalizationService,
684
- {
685
- provide: L10N_PREFIX,
686
- useValue: 'kendo.window'
687
- }
688
- ],
689
- selector: 'kendo-window',
690
- template: `
528
+ }
529
+ WindowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.DragResizeService }, { token: i2.NavigationService }, { token: i0.NgZone }, { token: i3.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
530
+ 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: [
531
+ DragResizeService,
532
+ NavigationService,
533
+ LocalizationService,
534
+ {
535
+ provide: L10N_PREFIX,
536
+ useValue: 'kendo.window'
537
+ }
538
+ ], 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: `
539
+ <ng-container kendoWindowLocalizedMessages
540
+ i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
541
+ closeTitle="Close"
542
+
543
+ i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"
544
+ restoreTitle="Restore"
545
+
546
+ i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"
547
+ maximizeTitle="Maximize"
548
+
549
+ i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"
550
+ minimizeTitle="Minimize"
551
+ >
552
+ <ng-container>
553
+
554
+ <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">
555
+ <div class="k-window-title">{{ title }}</div>
556
+ <div class="k-window-actions">
557
+ <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>
558
+ <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>
559
+ <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>
560
+ <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>
561
+ </div>
562
+ </kendo-window-titlebar>
563
+ <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>
564
+
565
+ <div *ngIf="state !== 'minimized' || keepContent"
566
+ [hidden]="state === 'minimized' && keepContent"
567
+ class="k-content k-window-content"
568
+ >
569
+ <ng-content *ngIf="!contentTemplate"></ng-content>
570
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
571
+ </div>
572
+
573
+ <ng-template [ngIf]='resizable'>
574
+ <div *ngFor='let dir of resizeDirections'
575
+ [direction]="dir"
576
+ kendoWindowResizeHandle
577
+ kendoDraggable>
578
+ </div>
579
+ </ng-template>
580
+ `, isInline: true, components: [{ type: i4.WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template"] }], directives: [{ type: i5.LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { type: i8.WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { type: i9.WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { type: i10.WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i11.ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { type: i12.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
581
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowComponent, decorators: [{
582
+ type: Component,
583
+ args: [{
584
+ exportAs: 'kendoWindow',
585
+ providers: [
586
+ DragResizeService,
587
+ NavigationService,
588
+ LocalizationService,
589
+ {
590
+ provide: L10N_PREFIX,
591
+ useValue: 'kendo.window'
592
+ }
593
+ ],
594
+ selector: 'kendo-window',
595
+ template: `
691
596
  <ng-container kendoWindowLocalizedMessages
692
597
  i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
693
598
  closeTitle="Close"
@@ -730,12 +635,88 @@ WindowComponent = tslib_1.__decorate([
730
635
  </div>
731
636
  </ng-template>
732
637
  `
733
- }),
734
- tslib_1.__metadata("design:paramtypes", [ElementRef,
735
- Renderer2,
736
- DragResizeService,
737
- NavigationService,
738
- NgZone,
739
- LocalizationService])
740
- ], WindowComponent);
741
- export { WindowComponent };
638
+ }]
639
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService }, { type: i2.NavigationService }, { type: i0.NgZone }, { type: i3.LocalizationService }]; }, propDecorators: { autoFocusedElement: [{
640
+ type: Input
641
+ }], title: [{
642
+ type: Input
643
+ }], draggable: [{
644
+ type: Input
645
+ }], resizable: [{
646
+ type: Input
647
+ }], keepContent: [{
648
+ type: Input
649
+ }], state: [{
650
+ type: Input
651
+ }], minWidth: [{
652
+ type: Input
653
+ }], minHeight: [{
654
+ type: Input
655
+ }], width: [{
656
+ type: Input
657
+ }], height: [{
658
+ type: Input
659
+ }], top: [{
660
+ type: Input
661
+ }], left: [{
662
+ type: Input
663
+ }], dragStart: [{
664
+ type: Output
665
+ }], dragEnd: [{
666
+ type: Output
667
+ }], resizeStart: [{
668
+ type: Output
669
+ }], resizeEnd: [{
670
+ type: Output
671
+ }], close: [{
672
+ type: Output
673
+ }], widthChange: [{
674
+ type: Output
675
+ }], heightChange: [{
676
+ type: Output
677
+ }], topChange: [{
678
+ type: Output
679
+ }], leftChange: [{
680
+ type: Output
681
+ }], stateChange: [{
682
+ type: Output
683
+ }], tabIndex: [{
684
+ type: HostBinding,
685
+ args: ['attr.tabIndex']
686
+ }], hostClasses: [{
687
+ type: HostBinding,
688
+ args: ['class.k-window']
689
+ }], dir: [{
690
+ type: HostBinding,
691
+ args: ['attr.dir']
692
+ }], titleBarView: [{
693
+ type: ViewChild,
694
+ args: [WindowTitleBarComponent, { static: false }]
695
+ }], titleBarContent: [{
696
+ type: ContentChild,
697
+ args: [WindowTitleBarComponent, { static: false }]
698
+ }], resizeHandles: [{
699
+ type: ViewChildren,
700
+ args: [ResizeHandleDirective]
701
+ }], styleMinWidth: [{
702
+ type: HostBinding,
703
+ args: ['style.minWidth']
704
+ }], styleMinHeight: [{
705
+ type: HostBinding,
706
+ args: ['style.minHeight']
707
+ }], stylePosition: [{
708
+ type: HostBinding,
709
+ args: ['style.position']
710
+ }], wrapperMaximizedClass: [{
711
+ type: HostBinding,
712
+ args: ['class.k-window-maximized']
713
+ }], wrapperMinimizedClass: [{
714
+ type: HostBinding,
715
+ args: ['class.k-window-minimized']
716
+ }], onComponentFocus: [{
717
+ type: HostListener,
718
+ args: ['focus']
719
+ }], onComponentBlur: [{
720
+ type: HostListener,
721
+ args: ['blur']
722
+ }] } });
@@ -2,16 +2,17 @@
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 { ComponentFactoryResolver, Injectable, Renderer2, TemplateRef, Inject } from '@angular/core';
5
+ import { Injectable, Renderer2, TemplateRef, Inject } from '@angular/core';
7
6
  import { merge, Subject } from 'rxjs';
8
7
  import { filter, map, share, take } from 'rxjs/operators';
9
- import { WindowCloseResult, WindowRef } from './window-settings';
10
8
  import { WindowComponent } from './window.component';
11
9
  import { isPresent, isString } from '../common/util';
12
10
  import { WindowContainerService } from '../window/window-container.service';
11
+ import { WindowRef } from './models/window-ref';
12
+ import { WindowCloseResult } from './models/window-close-result';
13
+ import * as i0 from "@angular/core";
14
+ import * as i1 from "../window/window-container.service";
13
15
  const isNotComponent = (component) => isString(component) || component instanceof TemplateRef;
14
- const ɵ0 = isNotComponent;
15
16
  class WindowInjector {
16
17
  constructor(getWindowRef, parentInjector) {
17
18
  this.getWindowRef = getWindowRef;
@@ -28,7 +29,7 @@ class WindowInjector {
28
29
  * A service for opening Windows dynamically
29
30
  * ([see example]({% slug service_window %})).
30
31
  */
31
- let WindowService = class WindowService {
32
+ export class WindowService {
32
33
  constructor(
33
34
  /**
34
35
  * @hidden
@@ -204,12 +205,12 @@ let WindowService = class WindowService {
204
205
  ]
205
206
  };
206
207
  }
207
- };
208
- WindowService = tslib_1.__decorate([
209
- Injectable(),
210
- tslib_1.__param(1, Inject(WindowContainerService)),
211
- tslib_1.__metadata("design:paramtypes", [ComponentFactoryResolver,
212
- WindowContainerService])
213
- ], WindowService);
214
- export { WindowService };
215
- export { ɵ0 };
208
+ }
209
+ 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 });
210
+ WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService });
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, decorators: [{
212
+ type: Injectable
213
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i1.WindowContainerService, decorators: [{
214
+ type: Inject,
215
+ args: [WindowContainerService]
216
+ }] }]; } });