@progress/kendo-angular-dialog 6.0.2-dev.202202251355 → 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,6 +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 i0 from "@angular/core";
6
+ import * as i1 from "./dialog/dialog.component";
7
+ import * as i2 from "./dialog/dialog-titlebar.component";
8
+ import * as i3 from "./dialog/dialog-container.directive";
9
+ import * as i4 from "./shared.module";
10
+ import * as i5 from "./dialog/dialog-actions.component";
11
+ import * as i6 from "./localization/custom-messages.component";
12
+ import * as i7 from "./localization/localized-messages.directive";
5
13
  /**
6
14
  * @hidden
7
15
  */
@@ -29,4 +37,7 @@ export declare const DIALOG_DIRECTIVES: any[];
29
37
  * ```
30
38
  */
31
39
  export declare class DialogModule {
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
41
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, [typeof i1.DialogComponent, typeof i2.DialogTitleBarComponent, typeof i3.DialogContainerDirective], [typeof i4.SharedModule], [typeof i1.DialogComponent, typeof i2.DialogTitleBarComponent, typeof i5.DialogActionsComponent, typeof i6.CustomMessagesComponent, typeof i7.LocalizedMessagesDirective, typeof i3.DialogContainerDirective]>;
42
+ static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
32
43
  }
@@ -2,6 +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 * as i0 from "@angular/core";
6
+ import * as i1 from "./dialog.module";
7
+ import * as i2 from "./window.module";
5
8
  /**
6
9
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
7
10
  * definition for the Dialogs components.
@@ -28,4 +31,7 @@
28
31
  * ```
29
32
  */
30
33
  export declare class DialogsModule {
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogsModule, never>;
35
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DialogsModule, never, never, [typeof i1.DialogModule, typeof i2.WindowModule]>;
36
+ static ɵinj: i0.ɵɵInjectorDeclaration<DialogsModule>;
31
37
  }
@@ -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 {};
@@ -13,7 +13,6 @@ export const isPresent = (value) => value !== null && value !== undefined;
13
13
  */
14
14
  export const isTruthy = (value) => !!value;
15
15
  const toClassList = (classNames) => String(classNames).trim().split(' ');
16
- const ɵ0 = toClassList;
17
16
  const focusableRegex = /^(?:a|input|select|textarea|button|object)$/i;
18
17
  /**
19
18
  * @hidden
@@ -112,7 +111,6 @@ const parseObjectClassNames = (value) => {
112
111
  });
113
112
  return classes;
114
113
  };
115
- const ɵ1 = parseObjectClassNames;
116
114
  const parseStringClassNames = (value) => {
117
115
  const classes = [];
118
116
  const classesArray = splitStringToArray(value);
@@ -121,7 +119,6 @@ const parseStringClassNames = (value) => {
121
119
  });
122
120
  return classes;
123
121
  };
124
- const ɵ2 = parseStringClassNames;
125
122
  const parseArrayClassNames = (value) => {
126
123
  const classes = [];
127
124
  value.forEach((className) => {
@@ -132,7 +129,6 @@ const parseArrayClassNames = (value) => {
132
129
  });
133
130
  return classes;
134
131
  };
135
- const ɵ3 = parseArrayClassNames;
136
132
  /**
137
133
  * @hidden
138
134
  */
@@ -207,4 +203,3 @@ export const findPrimaryButton = (buttons) => {
207
203
  }
208
204
  }
209
205
  };
210
- export { ɵ0, ɵ1, ɵ2, ɵ3 };
@@ -0,0 +1,115 @@
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 { Component, EventEmitter, HostBinding, TemplateRef, Input, Output } from '@angular/core';
6
+ import { parseCSSClassNames } from '../common/util';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@angular/common";
9
+ /**
10
+ * Specifies the action buttons of the Dialog
11
+ * ([see example]({% slug actionbuttons_dialog %})).
12
+ */
13
+ export class DialogActionsComponent {
14
+ constructor(el) {
15
+ this.el = el;
16
+ /**
17
+ * Specifies the possible layout of the action buttons.
18
+ */
19
+ this.layout = 'stretched';
20
+ /**
21
+ * Fires when the user clicks an action button.
22
+ */
23
+ this.action = new EventEmitter();
24
+ this.buttonGroupClassName = true;
25
+ }
26
+ /**
27
+ * Allows the declarative specification of the actions.
28
+ */
29
+ set actions(value) {
30
+ if (value instanceof TemplateRef) {
31
+ this.actionsTemplate = value;
32
+ }
33
+ else if (Array.isArray(value)) {
34
+ this.actionsArray = value;
35
+ }
36
+ else {
37
+ throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');
38
+ }
39
+ }
40
+ get className() {
41
+ return this.layout === 'stretched';
42
+ }
43
+ /**
44
+ * @hidden
45
+ */
46
+ onButtonClick(action, _e) {
47
+ this.action.emit(action);
48
+ }
49
+ /**
50
+ * @hidden
51
+ */
52
+ buttonClass(action) {
53
+ let classes = ['k-button k-button-md k-rounded-md'];
54
+ const fillMode = action.fillMode ? action.fillMode : 'solid';
55
+ const themeColor = action.themeColor ? action.themeColor : 'base';
56
+ const cssClasses = action.cssClass ? parseCSSClassNames(action.cssClass) : [];
57
+ classes.push(`k-button-${fillMode} k-button-${fillMode}-${themeColor}`);
58
+ if (cssClasses.length > 0) {
59
+ classes = classes.concat(cssClasses);
60
+ }
61
+ return classes.join(' ');
62
+ }
63
+ }
64
+ DialogActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogActionsComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
65
+ 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: `
66
+ <ng-content *ngIf="!actions"></ng-content>
67
+ <ng-container *ngIf="actionsArray; else actionTemplate">
68
+ <button
69
+ type="button"
70
+ *ngFor="let action of actionsArray"
71
+ [ngClass]="buttonClass(action)"
72
+ (click)="onButtonClick(action, $event)"
73
+ [attr.aria-label]="action.text"
74
+ >
75
+ {{ action.text }}
76
+ </button>
77
+ </ng-container>
78
+ <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
79
+ `, 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"] }] });
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogActionsComponent, decorators: [{
81
+ type: Component,
82
+ args: [{
83
+ selector: 'kendo-dialog-actions',
84
+ template: `
85
+ <ng-content *ngIf="!actions"></ng-content>
86
+ <ng-container *ngIf="actionsArray; else actionTemplate">
87
+ <button
88
+ type="button"
89
+ *ngFor="let action of actionsArray"
90
+ [ngClass]="buttonClass(action)"
91
+ (click)="onButtonClick(action, $event)"
92
+ [attr.aria-label]="action.text"
93
+ >
94
+ {{ action.text }}
95
+ </button>
96
+ </ng-container>
97
+ <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
98
+ `
99
+ }]
100
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { actions: [{
101
+ type: Input
102
+ }], layout: [{
103
+ type: Input
104
+ }], action: [{
105
+ type: Output
106
+ }], buttonGroupClassName: [{
107
+ type: HostBinding,
108
+ args: ['class.k-dialog-buttongroup']
109
+ }, {
110
+ type: HostBinding,
111
+ args: ['class.k-actions']
112
+ }], className: [{
113
+ type: HostBinding,
114
+ args: ['class.k-actions-stretched']
115
+ }] } });
@@ -0,0 +1,30 @@
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 } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "./dialog-container.service";
8
+ /**
9
+ * Provides an insertion point for the Dialogs which are created through the
10
+ * Dialog service ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
11
+ * Created Dialogs will be mounted after that element.
12
+ *
13
+ * @example
14
+ * ```html-no-run
15
+ * <div kendoDialogContainer></div>
16
+ * ```
17
+ */
18
+ export class DialogContainerDirective {
19
+ constructor(container, service) {
20
+ service.container = container;
21
+ }
22
+ }
23
+ DialogContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: i1.DialogContainerService }], target: i0.ɵɵFactoryTarget.Directive });
24
+ DialogContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DialogContainerDirective, selector: "[kendoDialogContainer]", ngImport: i0 });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerDirective, decorators: [{
26
+ type: Directive,
27
+ args: [{
28
+ selector: '[kendoDialogContainer]'
29
+ }]
30
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i1.DialogContainerService }]; } });
@@ -0,0 +1,23 @@
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 { Injectable } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export class DialogContainerService {
11
+ set container(container) {
12
+ DialogContainerService.container = container;
13
+ }
14
+ get container() {
15
+ return DialogContainerService.container;
16
+ }
17
+ }
18
+ DialogContainerService.container = null;
19
+ DialogContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
20
+ DialogContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerService });
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContainerService, decorators: [{
22
+ type: Injectable
23
+ }] });
@@ -2,11 +2,12 @@
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 { DialogActionsComponent } from './dialog-actions.component';
7
6
  import { DialogTitleBarComponent } from './dialog-titlebar.component';
8
- import { ViewChild } from '@angular/core';
7
+ import { Component, ViewChild } from '@angular/core';
9
8
  import { filter } from 'rxjs/operators';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "./models/dialog-ref";
10
11
  /**
11
12
  * The base class which will be extended by a component that is provided as content through `content`
12
13
  * ([see example]({% slug service_dialog %}#toc-passing-title-content-and-actions-as-a-single-component)).
@@ -32,11 +33,18 @@ export class DialogContentBase {
32
33
  }
33
34
  }
34
35
  }
35
- tslib_1.__decorate([
36
- ViewChild(DialogTitleBarComponent, { static: false }),
37
- tslib_1.__metadata("design:type", DialogTitleBarComponent)
38
- ], DialogContentBase.prototype, "dialogTitleBar", void 0);
39
- tslib_1.__decorate([
40
- ViewChild(DialogActionsComponent, { static: false }),
41
- tslib_1.__metadata("design:type", DialogActionsComponent)
42
- ], DialogContentBase.prototype, "dialogActions", void 0);
36
+ DialogContentBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContentBase, deps: [{ token: i1.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
37
+ 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 });
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContentBase, decorators: [{
39
+ type: Component,
40
+ args: [{
41
+ template: ``,
42
+ selector: 'kendo-dialog-content-base'
43
+ }]
44
+ }], ctorParameters: function () { return [{ type: i1.DialogRef }]; }, propDecorators: { dialogTitleBar: [{
45
+ type: ViewChild,
46
+ args: [DialogTitleBarComponent, { static: false }]
47
+ }], dialogActions: [{
48
+ type: ViewChild,
49
+ args: [DialogActionsComponent, { static: false }]
50
+ }] } });
@@ -0,0 +1,136 @@
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 { Component, EventEmitter, HostBinding, Output, Input, Optional } from '@angular/core';
6
+ import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { take } from 'rxjs/operators';
8
+ import { PreventableEvent } from '../common/preventable-event';
9
+ import { TitleBarLocalizationService } from '../localization/titlebar-localization.service';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "@progress/kendo-angular-l10n";
12
+ import * as i2 from "../localization/localized-messages.directive";
13
+ /**
14
+ * Represents the [Kendo UI DialogTitleBar component for Angular]({% slug api_dialog_dialogtitlebarcomponent %}).
15
+ *
16
+ * It is used as part of the Dialog content when the component is created dynamically by using an [Angular service]({% slug service_dialog %}).
17
+ */
18
+ export class DialogTitleBarComponent {
19
+ constructor(zone, hostElement, localizationService) {
20
+ this.zone = zone;
21
+ this.hostElement = hostElement;
22
+ this.localizationService = localizationService;
23
+ /**
24
+ * Fires when the close button of the title-bar is clicked.
25
+ */
26
+ this.close = new EventEmitter();
27
+ }
28
+ get className() {
29
+ return true;
30
+ }
31
+ get closeButtonTitle() {
32
+ return this.closeTitle || this.localizationService.get('closeTitle');
33
+ }
34
+ ngAfterViewInit() {
35
+ this.zone.onStable.pipe(take(1)).subscribe(() => {
36
+ const element = this.hostElement.nativeElement.querySelector('.k-dialog-title');
37
+ element.setAttribute('id', this.id);
38
+ });
39
+ }
40
+ /**
41
+ * @hidden
42
+ */
43
+ onCloseClick(e) {
44
+ e.preventDefault();
45
+ const eventArgs = new PreventableEvent();
46
+ this.close.emit(eventArgs);
47
+ }
48
+ }
49
+ 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.LocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
50
+ 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: [
51
+ TitleBarLocalizationService,
52
+ {
53
+ provide: LocalizationService,
54
+ useExisting: TitleBarLocalizationService
55
+ },
56
+ {
57
+ provide: L10N_PREFIX,
58
+ useValue: 'kendo.dialog'
59
+ }
60
+ ], ngImport: i0, template: `
61
+ <ng-container
62
+ kendoDialogTitleBarLocalizedMessages
63
+ i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
64
+ closeTitle="Close"
65
+ >
66
+ <div class="k-window-title k-dialog-title">
67
+ <ng-content></ng-content>
68
+ </div>
69
+
70
+ <div class="k-window-actions k-dialog-actions">
71
+ <button
72
+ role="button"
73
+ [attr.title]="closeButtonTitle"
74
+ [attr.aria-label]="closeButtonTitle"
75
+ 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"
76
+ (click)="onCloseClick($event)"
77
+ >
78
+ <span class="k-button-icon k-icon k-i-x"></span>
79
+ </button>
80
+ </div>
81
+ </ng-container>
82
+ `, isInline: true, directives: [{ type: i2.LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }] });
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogTitleBarComponent, decorators: [{
84
+ type: Component,
85
+ args: [{
86
+ selector: 'kendo-dialog-titlebar',
87
+ providers: [
88
+ TitleBarLocalizationService,
89
+ {
90
+ provide: LocalizationService,
91
+ useExisting: TitleBarLocalizationService
92
+ },
93
+ {
94
+ provide: L10N_PREFIX,
95
+ useValue: 'kendo.dialog'
96
+ }
97
+ ],
98
+ template: `
99
+ <ng-container
100
+ kendoDialogTitleBarLocalizedMessages
101
+ i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
102
+ closeTitle="Close"
103
+ >
104
+ <div class="k-window-title k-dialog-title">
105
+ <ng-content></ng-content>
106
+ </div>
107
+
108
+ <div class="k-window-actions k-dialog-actions">
109
+ <button
110
+ role="button"
111
+ [attr.title]="closeButtonTitle"
112
+ [attr.aria-label]="closeButtonTitle"
113
+ 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"
114
+ (click)="onCloseClick($event)"
115
+ >
116
+ <span class="k-button-icon k-icon k-i-x"></span>
117
+ </button>
118
+ </div>
119
+ </ng-container>
120
+ `
121
+ }]
122
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i1.LocalizationService, decorators: [{
123
+ type: Optional
124
+ }] }]; }, propDecorators: { close: [{
125
+ type: Output
126
+ }], id: [{
127
+ type: Input
128
+ }], closeTitle: [{
129
+ type: Input
130
+ }], className: [{
131
+ type: HostBinding,
132
+ args: ['class.k-window-titlebar']
133
+ }, {
134
+ type: HostBinding,
135
+ args: ['class.k-dialog-titlebar']
136
+ }] } });