@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
@@ -0,0 +1,5 @@
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
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/animations"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-common"),require("@progress/kendo-popup-common"),require("@progress/kendo-angular-buttons")):"function"==typeof define&&define.amd?define("KendoAngularDialog",["exports","@angular/core","@angular/animations","rxjs","rxjs/operators","@angular/common","@progress/kendo-angular-l10n","@progress/kendo-licensing","@progress/kendo-angular-common","@progress/kendo-popup-common","@progress/kendo-angular-buttons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularDialog={},e.ng.core,e.ng.animations,e.rxjs,e.rxjs.operators,e.ng.common,e.KendoAngularL10N,e.KendoLicensing,e.KendoAngularCommon,e.kendoPopupCommon,e.KendoAngularButtons)}(this,function(e,d,t,u,g,n,i,j,R,W,o){"use strict";function L(n){if(n&&n.__esModule)return n;var i=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i)}var r=L(d),s=L(n),a=L(i),B=L(R),N=function(e,t){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function Z(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function _(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||((i=i||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;function X(e){return String(e).trim().split(" ")}function q(e,t){var n=X(t);return Boolean(X(e.className).find(function(e){return 0<=n.indexOf(e)}))}function K(e,t){var n,i;return void 0===t&&(t=!0),!!e.tagName&&(n=e.tagName.toLowerCase(),i=null!==(i=e.getAttribute("tabIndex"))&&!isNaN(i)&&-1<i,(J.test(n)?!e.disabled:i)&&(!t||!(!(i=(n=e).getBoundingClientRect()).width||!i.height)&&"hidden"!==window.getComputedStyle(n).visibility))}function Y(e,t,n){for(var i in e)i&&t.setAttribute(n,i,e[i])}function $(e){return p(t=e)&&!Array.isArray(t)&&"object"==typeof t?(n=e,i=[],Object.keys(n).forEach(function(e){var t=oe(e);n[e]&&t[0]&&i.push.apply(i,_([],Z(t)))}),i):G(e)?(o=[],oe(e).forEach(function(e){o.push(e)}),o):Array.isArray(e)?(r=[],e.forEach(function(e){e=oe(e);e[0]&&r.push.apply(r,_([],Z(e)))}),r):void 0;var n,i,t,o,r}function U(e){(e=e.originalEvent).stopPropagation(),e.preventDefault()}function G(e){return e instanceof String||"string"==typeof e}function Q(e){return e+("number"==typeof(e=e)&&isFinite(e)?"px":"")}var l,p=function(e){return null!=e},J=/^(?:a|input|select|textarea|button|object)$/i,ee=((c=l=l||{})[c.esc=27]="esc",c[c.tab=9]="tab",c[c.enter=13]="enter",c[c.space=32]="space",c[c.ctrl=17]="ctrl",c[c.shift=16]="shift",c[c.left=37]="left",c[c.up=38]="up",c[c.right=39]="right",c[c.down=40]="down","k-dialog-wrapper k-dialog-buttongroup k-dialog-action"),te=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),ne=["n","e","s","w","se","sw","ne","nw"],ie=["top","left","width","height"],oe=function(e){return e.trim().replace(/\s+/g," ").split(" ")},c=(Object.defineProperty(re.prototype,"actions",{set:function(e){if(e instanceof d.TemplateRef)this.actionsTemplate=e;else{if(!Array.isArray(e))throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');this.actionsArray=e}},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"className",{get:function(){return"stretched"===this.layout},enumerable:!1,configurable:!0}),re.prototype.onButtonClick=function(e,t){this.action.emit(e)},re.prototype.buttonClass=function(e){var t=["k-button k-button-md k-rounded-md"],n=e.fillMode||"solid",i=e.themeColor||"base",e=e.cssClass?$(e.cssClass):[];return t.push("k-button-"+n+" k-button-"+n+"-"+i),(t=0<e.length?t.concat(e):t).join(" ")},re);function re(e){this.el=e,this.layout="stretched",this.action=new d.EventEmitter,this.buttonGroupClassName=!0}c.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:c,deps:[{token:r.ElementRef}],target:r.ɵɵFactoryTarget.Component}),c.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:c,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:r,template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="actionsArray; else actionTemplate">\n <button\n type="button"\n *ngFor="let action of actionsArray"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>\n ',isInline:!0,directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:s.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:c,decorators:[{type:d.Component,args:[{selector:"kendo-dialog-actions",template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="actionsArray; else actionTemplate">\n <button\n type="button"\n *ngFor="let action of actionsArray"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef}]},propDecorators:{actions:[{type:d.Input}],layout:[{type:d.Input}],action:[{type:d.Output}],buttonGroupClassName:[{type:d.HostBinding,args:["class.k-dialog-buttongroup"]},{type:d.HostBinding,args:["class.k-actions"]}],className:[{type:d.HostBinding,args:["class.k-actions-stretched"]}]}});ae.prototype.preventDefault=function(){this.prevented=!0},ae.prototype.isDefaultPrevented=function(){return this.prevented};var se=ae;function ae(){this.prevented=!1}var le,ce=new d.InjectionToken("Dialog LocalizationService"),h=(H(pe,le=i.LocalizationService),pe.prototype.get=function(e){return this.dialogLocalization?this.dialogLocalization.get(e):le.prototype.get.call(this,e)},pe);function pe(e,t,n,i){e=le.call(this,e,t,n)||this;return e.dialogLocalization=i,e}h.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,deps:[{token:i.L10N_PREFIX},{token:a.MessageService,optional:!0},{token:i.RTL,optional:!0},{token:ce,optional:!0}],target:r.ɵɵFactoryTarget.Injectable}),h.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:void 0,decorators:[{type:d.Inject,args:[i.L10N_PREFIX]}]},{type:a.MessageService,decorators:[{type:d.Optional}]},{type:void 0,decorators:[{type:d.Optional},{type:d.Inject,args:[i.RTL]}]},{type:a.LocalizationService,decorators:[{type:d.Optional},{type:d.Inject,args:[ce]}]}]}});H(ue,de=i.ComponentMessages);var de,m=ue;function ue(){return null!==de&&de.apply(this,arguments)||this}m.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:m,deps:null,target:r.ɵɵFactoryTarget.Directive}),m.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:m,selector:"kendo-dialog-messages-base",inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:m,decorators:[{type:d.Directive,args:[{selector:"kendo-dialog-messages-base"}]}],propDecorators:{closeTitle:[{type:d.Input}],restoreTitle:[{type:d.Input}],maximizeTitle:[{type:d.Input}],minimizeTitle:[{type:d.Input}]}});H(he,ge=m);var ge,f=he;function he(e){var t=ge.call(this)||this;return t.service=e,t}f.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:f,deps:[{token:a.LocalizationService}],target:r.ɵɵFactoryTarget.Directive}),f.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ",providers:[{provide:m,useExisting:d.forwardRef(function(){return f})}],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:f,decorators:[{type:d.Directive,args:[{providers:[{provide:m,useExisting:d.forwardRef(function(){return f})}],selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});Object.defineProperty(me.prototype,"className",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!1,configurable:!0}),me.prototype.ngAfterViewInit=function(){var e=this;this.zone.onStable.pipe(g.take(1)).subscribe(function(){e.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",e.id)})},me.prototype.onCloseClick=function(e){e.preventDefault();e=new se;this.close.emit(e)};var y=me;function me(e,t,n){this.zone=e,this.hostElement=t,this.localizationService=n,this.close=new d.EventEmitter}y.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:y,deps:[{token:r.NgZone},{token:r.ElementRef},{token:a.LocalizationService,optional:!0}],target:r.ɵɵFactoryTarget.Component}),y.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:y,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:[h,{provide:i.LocalizationService,useExisting:h},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],ngImport:r,template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n 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"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n ',isInline:!0,directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:y,decorators:[{type:d.Component,args:[{selector:"kendo-dialog-titlebar",providers:[h,{provide:i.LocalizationService,useExisting:h},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n 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"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:r.NgZone},{type:r.ElementRef},{type:a.LocalizationService,decorators:[{type:d.Optional}]}]},propDecorators:{close:[{type:d.Output}],id:[{type:d.Input}],closeTitle:[{type:d.Input}],className:[{type:d.HostBinding,args:["class.k-window-titlebar"]},{type:d.HostBinding,args:["class.k-dialog-titlebar"]}]}});var fe={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1647536491,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},ye=function(){},b=(Object.defineProperty(v.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){Y(e,this.renderer,this.wrapper.nativeElement);var t=this.wrapper.nativeElement,n=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==n&&n&&(this.direction=n),this.tabIndex!==t&&t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),v.prototype.ngAfterContentInit=function(){var e=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(function(){p(e.titlebarContent.first)&&(e.titlebarContent.first.id=e.titleId,e.ngZone.onStable.pipe(g.take(1)).subscribe(function(){e.bubble("close",e.titlebarContent.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))}))},v.prototype.ngAfterViewInit=function(){var e=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(function(){p(e.titlebarView.first)&&(e.titlebarView.first.id=e.titleId,e.ngZone.onStable.pipe(g.take(1)).subscribe(function(){e.bubble("close",e.titlebarView.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))})),this.initDomEvents()},v.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()},v.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()},v.prototype.focus=function(){var e=this.wrapper.nativeElement;p(e)&&e.focus()},v.prototype.initDomEvents=function(){var t=this;this.wrapper&&this.ngZone.runOutsideAngular(function(){t.domSubs.add(t.renderer.listen(t.wrapper.nativeElement,"keydown",function(e){t.onKeyDown(e)}))})},v.prototype.onKeyDown=function(e){var t=this,n=e.target,i=n.parentElement;(q(n,ee)||q(i,ee))&&e.keyCode===l.esc&&this.ngZone.run(function(){t.close.emit(new ye)}),q(n,"k-button")&&q(i,"k-dialog-buttongroup")&&(e.keyCode===l.left||e.keyCode===l.right)&&this.ngZone.run(function(){t.handleActionButtonFocus(i,e.keyCode)}),e.keyCode===l.tab&&this.ngZone.run(function(){t.keepFocusWithinComponent(n,e)})},v.prototype.setServiceClasses=function(e,t){var n=this,i=this.wrapper.nativeElement;e&&$(e).forEach(function(e){n.renderer.removeClass(i,e)}),t&&$(t).forEach(function(e){n.renderer.addClass(i,e)})},v.prototype.handleInitialFocus=function(){var e,t=this.wrapper.nativeElement,n=this.findPrimary(t);this.autoFocusedElement?(e=t.querySelector(this.autoFocusedElement))&&e.focus():(this.shouldFocusPrimary(n)?n:t).focus()},v.prototype.findPrimary=function(e){for(var t=e.querySelectorAll(".k-actions .k-button"),n=t.length-1;0<=n;n--)for(var i=t[n].classList,o=0;o<i.length;o++)if(i[o].endsWith("-primary"))return t[n]},v.prototype.handleActionButtonFocus=function(e,t){for(var n=this.getAllFocusableChildren(e),i=0;i<n.length;i++)if(n[i]===document.activeElement){if(t===l.left&&0<i){n[i-1].focus();break}if(t===l.right&&i<n.length-1){n[i+1].focus();break}}},v.prototype.keepFocusWithinComponent=function(e,t){var n=this.wrapper.nativeElement,n=Z(this.getFirstAndLastFocusable(n),2),i=n[0],n=n[1],o=!t.shiftKey&&e===n,e=t.shiftKey&&e===i;o&&(t.preventDefault(),i.focus()),e&&(t.preventDefault(),n.focus())},v.prototype.shouldFocusPrimary=function(e){return p(e)&&K(e)},v.prototype.getAllFocusableChildren=function(e){return e.querySelectorAll(te)},v.prototype.getFirstAndLastFocusable=function(e){var t=this.getAllFocusableChildren(e);return[0<t.length?t[0]:e,0<t.length?t[t.length-1]:e]},v.prototype.generateTitleId=function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()},v.prototype.generateContentId=function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()},Object.defineProperty(v.prototype,"wrapperClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"styles",{get:function(){var e={};return this.width&&(e.width=Q(this.width)),this.height&&(e.height=Q(this.height)),this.minWidth&&(e.minWidth=Q(this.minWidth)),this.maxWidth&&(e.maxWidth=Q(this.maxWidth)),this.minHeight&&(e.minHeight=Q(this.minHeight)),this.maxHeight&&(e.maxHeight=Q(this.maxHeight)),e},enumerable:!1,configurable:!0}),v.prototype.bubble=function(t,e){var n=this;e&&(e=e[t].subscribe(function(e){return n[t].emit(e)}),this.subscriptions.push(e))},v);function v(e,t,n,i,o){var r=this;this.wrapper=e,this.renderer=t,this.cdr=i,this.ngZone=o,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new d.EventEmitter,this.close=new d.EventEmitter,this.tabIndex=0,this.subscriptions=[],this.domSubs=new u.Subscription,j.validatePackage(fe),this.direction=n.rtl?"rtl":"ltr",this.subscriptions.push(n.changes.subscribe(function(e){e=e.rtl;return r.direction=e?"rtl":"ltr"})),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}b.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:b,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:a.LocalizationService},{token:r.ChangeDetectorRef},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Component}),b.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:b,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:[i.LocalizationService,{provide:ce,useExisting:i.LocalizationService},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],queries:[{propertyName:"titlebarContent",predicate:y}],viewQueries:[{propertyName:"actionsView",first:!0,predicate:c,descendants:!0},{propertyName:"titlebarView",predicate:y,descendants:!0}],exportAs:["kendoDialog"],ngImport:r,template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n ',isInline:!0,components:[{type:y,selector:"kendo-dialog-titlebar",inputs:["id","closeTitle"],outputs:["close"]},{type:c,selector:"kendo-dialog-actions",inputs:["actions","layout"],outputs:["action"]}],directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "},{type:s.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],animations:[t.trigger("overlayAppear",[t.state("in",t.style({opacity:1})),t.transition("void => *",[t.style({opacity:.1}),t.animate(".3s cubic-bezier(.2, .6, .4, 1)")])]),t.trigger("dialogSlideInAppear",[t.state("in",t.style({transform:"translate(0, 0)"})),t.transition("void => *",[t.style({transform:"translate(0, -10%)"}),t.animate(".3s cubic-bezier(.2, 1, .2, 1)")])])]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:b,decorators:[{type:d.Component,args:[{animations:[t.trigger("overlayAppear",[t.state("in",t.style({opacity:1})),t.transition("void => *",[t.style({opacity:.1}),t.animate(".3s cubic-bezier(.2, .6, .4, 1)")])]),t.trigger("dialogSlideInAppear",[t.state("in",t.style({transform:"translate(0, 0)"})),t.transition("void => *",[t.style({transform:"translate(0, -10%)"}),t.animate(".3s cubic-bezier(.2, 1, .2, 1)")])])],exportAs:"kendoDialog",providers:[i.LocalizationService,{provide:ce,useExisting:i.LocalizationService},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],selector:"kendo-dialog",template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:a.LocalizationService},{type:r.ChangeDetectorRef},{type:r.NgZone}]},propDecorators:{actions:[{type:d.Input}],actionsLayout:[{type:d.Input}],autoFocusedElement:[{type:d.Input}],title:[{type:d.Input}],width:[{type:d.Input}],minWidth:[{type:d.Input}],maxWidth:[{type:d.Input}],height:[{type:d.Input}],minHeight:[{type:d.Input}],maxHeight:[{type:d.Input}],action:[{type:d.Output}],close:[{type:d.Output}],dir:[{type:d.HostBinding,args:["attr.dir"]}],tabIndex:[{type:d.HostBinding,args:["attr.tabIndex"]}],titlebarContent:[{type:d.ContentChildren,args:[y,{descendants:!1}]}],titlebarView:[{type:d.ViewChildren,args:[y]}],actionsView:[{type:d.ViewChild,args:[c,{static:!1}]}],wrapperClass:[{type:d.HostBinding,args:["class.k-dialog-wrapper"]}]}});function be(){}we.prototype.ngAfterViewInit=function(){var t=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(g.filter(function(e){return!e.isDefaultPrevented()})).subscribe(function(){t.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(function(e){return t.dialog.dialog.instance.action.emit(e)})};var ve=we;function we(e){this.dialog=e}ve.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:ve,deps:[{token:be}],target:r.ɵɵFactoryTarget.Component}),ve.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ve,selector:"kendo-dialog-content-base",viewQueries:[{propertyName:"dialogTitleBar",first:!0,predicate:y,descendants:!0},{propertyName:"dialogActions",first:!0,predicate:c,descendants:!0}],ngImport:r,template:"",isInline:!0}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:ve,decorators:[{type:d.Component,args:[{template:"",selector:"kendo-dialog-content-base"}]}],ctorParameters:function(){return[{type:be}]},propDecorators:{dialogTitleBar:[{type:d.ViewChild,args:[y,{static:!1}]}],dialogActions:[{type:d.ViewChild,args:[c,{static:!1}]}]}});Object.defineProperty(ke.prototype,"container",{get:function(){return ke.container},set:function(e){ke.container=e},enumerable:!1,configurable:!0});var w=ke;function ke(){}w.container=null,w.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:w,deps:[],target:r.ɵɵFactoryTarget.Injectable}),w.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:w}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:w,decorators:[{type:d.Injectable}]});function Ie(){}function Ce(){}Te.prototype.get=function(e,t){return e===be?this.getDialogRef():this.parentInjector.get(e,t)};var De=Te;function Te(e,t){this.getDialogRef=e,this.parentInjector=t}ze.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(b),n=e.appendTo||this.containerService.container;if(!n)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n ");return this.initializeDialog(e.content,t,n,{close:function(){},content:null,dialog:null,result:null},e)},ze.prototype.initializeDialog=function(n,e,t,i,o){function r(e){e instanceof se&&(e=new ye),p.next(e||new ye),l.componentRef&&l.componentRef.destroy(),c.destroy()}var s,a,l=this.contentFrom(n,t,i),c=t.createComponent(e,void 0,void 0,l.nodes),p=((i.dialog=c).changeDetectorRef.markForCheck(),this.applyOptions(c.instance,o),new u.Subject),t=u.merge(p,u.merge(c.instance.close,c.instance.action).pipe(g.map(function(e){return e instanceof se?new ye:e}),g.filter(function(e){var t;return!o.preventAction||(t=G(t=n)||t instanceof d.TemplateRef?void 0:i,!o.preventAction(e,t))}))).pipe(g.take(1),g.share());return t.subscribe(r),i.close=r,i.result=t,n&&d.isDevMode()&&(e=l.nodes[0]&&0<l.nodes[0].length,t=l.nodes[2]&&0<l.nodes[2].length,s=o.title&&e,a=o.actions&&t,n.prototype instanceof ve?(s||a)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(e||t)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")),i},ze.prototype.applyOptions=function(e,t){e.title=t.title,e.actions=t.actions,e.actionsLayout=t.actionsLayout||"stretched",e.width=t.width,e.minWidth=t.minWidth,e.maxWidth=t.maxWidth,e.height=t.height,e.minHeight=t.minHeight,e.maxHeight=t.maxHeight,e.autoFocusedElement=t.autoFocusedElement,e.closeTitle=t.closeTitle,e.cssClass=t.cssClass,e.htmlAttributes=t.htmlAttributes,t.content instanceof d.TemplateRef&&(e.contentTemplate=t.content)},ze.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=[],s=[],a=null;return"string"==typeof e?o=[i.createText(e)]:!e||e instanceof d.TemplateRef||(i=new De(function(){return n},t.injector),e=this.resolver.resolveComponentFactory(e),a=t.createComponent(e,void 0,i),r=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),o=[a.location.nativeElement],s=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-actions")),n.content=a),{componentRef:a,nodes:[r,o,s]}};h=ze;function ze(e,t){this.resolver=e,this.containerService=t}h.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,deps:[{token:r.ComponentFactoryResolver},{token:w}],target:r.ɵɵFactoryTarget.Injectable}),h.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:r.ComponentFactoryResolver},{type:w,decorators:[{type:d.Inject,args:[w]}]}]}});function Ee(e,t){return function(n){return e.kendoDrag.pipe(g.takeUntil(e.kendoRelease.pipe(g.tap(function(){t.emit()}))),g.map(function(e){var t=e.pageX,e=e.pageY;return{originalX:n.pageX,originalY:n.pageY,pageX:t,pageY:e}}))}}var xe=10002,Oe={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},k=(I.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()},I.prototype.init=function(e){var t=this.options.state,n=this.options;this.window=e,"default"!==t&&(this.restoreOptions=Object.assign({},n)),"minimized"===t&&(n.height=0,n.minHeight=0),"maximized"===t&&(n.position="fixed")},I.prototype.onDrag=function(e){var s=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,r;s.dragSubscription=e.kendoPress.pipe(g.tap(function(e){e.isTouch||U(e),s.focus.emit(),o=s.currentPosition(),r=!1}),g.switchMap(Ee(e,s.dragEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,e=e.originalY;r||(s.ensureWidth(),s.dragStart.emit(),r=!0),s.handleDrag({originalX:i,originalY:e,pageX:t,pageY:n,startPosition:o})})}))},I.prototype.handleDrag=function(e){var t=e.originalX,n=e.originalY,i=e.pageX,o=e.pageY,e=e.startPosition;this.options.left=e.x+i-t,this.options.top=e.y+o-n,"minimized"===this.options.state&&p(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:e.x+i-t,top:e.y+o-n})},I.prototype.onResize=function(e,s){var a=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,r=!1;e.kendoPress.pipe(g.tap(function(e){U(e),a.focus.emit(),o=a.currentOffsetAndPosition(),r=!1}),g.switchMap(Ee(e,a.resizeEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,e=e.originalY,t=(r||(a.resizeStart.emit(s),r=!0),t-i);a.handleResize(o,s,t,n-e)})}))},I.prototype.handleResize=function(e,t,n,i){var o,r,s,a=this,l=this.options,c={};0<=t.indexOf("e")&&(s=e.width+n)!==l.width&&s>=l.minWidth&&(c.width=s),0<=t.indexOf("n")&&(o=e.height-i,r=e.y+i,o!==l.height&&o>=l.minHeight&&r!==l.top&&(c.height=o,c.top=r)),0<=t.indexOf("s")&&(o=e.height+i)!==l.height&&o>=l.minHeight&&(c.height=o),0<=t.indexOf("w")&&(r=e.x+n,(s=e.width-n)!==l.width&&s>=l.minWidth&&r!==l.left&&(c.width=s,c.left=r)),(p(c.width)||p(c.height))&&(ie.forEach(function(e){p(c[e])&&(a.options[e]=c[e])}),this.change.emit(c))},I.prototype.restoreAction=function(){this.lastAction="restore",this.defaultState()},I.prototype.defaultState=function(){p(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")},I.prototype.storeOptions=function(){this.restoreOptions=Object.assign({},this.options)},I.prototype.maximizeAction=function(){this.lastAction="maximize",this.maximizeState()},I.prototype.maximizeState=function(){this.storeOptions();var e=this.windowViewPort;this.options=Object.assign({},this.options,{height:e.height,left:0,position:"fixed",state:"maximized",top:0,width:e.width}),this.stateChange.emit("maximized")},I.prototype.minimizeAction=function(){this.lastAction="minimize",this.minimizeState()},I.prototype.minimizeState=function(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")},I.prototype.applyManualState=function(){switch(this.options.state){case"default":this.clearHeight(),this.defaultState();break;case"maximized":this.clearHeight(),this.maximizeState();break;case"minimized":this.minimizeState()}},I.prototype.closeAction=function(){this.close.emit()},I.prototype.ensureWidth=function(){var e=W.offset(this.window.nativeElement);p(this.options.width)||(this.options.width=e.width,this.change.emit({width:e.width}))},I.prototype.clearHeight=function(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight},I.prototype.center=function(){var e,t,n,i;"maximized"!==this.options.state&&(e=W.scrollPosition(this.window.nativeElement),t=this.windowViewPort,n=W.offset(this.window.nativeElement),i={},p(this.options.left)||(this.options.left=e.x+Math.max(0,(t.width-n.width)/2),i.left=this.options.left),p(this.options.top)||(this.options.top=e.y+Math.max(0,(t.height-n.height)/2),i.top=this.options.top),this.change.emit(i))},I.prototype.currentOffsetAndPosition=function(){var e=this.options,t=W.offset(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:e.height||t.height,width:e.width||t.width})},I.prototype.currentPosition=function(){var e=this.options;return e.top&&e.left||this.setPosition(),{x:this.options.left,y:this.options.top}},I.prototype.setPosition=function(){var e=W.positionWithScroll(this.window.nativeElement,W.getDocumentElement(this.window.nativeElement));this.options.left=e.left,this.options.top=e.top},I.prototype.setRestoreOption=function(e,t){p(this.restoreOptions)&&(this.restoreOptions[e]=t)},Object.defineProperty(I.prototype,"nextPossibleZIndex",{get:function(){return xe},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"nextZIndex",{get:function(){return xe++},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"windowViewPort",{get:function(){return W.getWindowViewPort(this.window.nativeElement)},enumerable:!1,configurable:!0}),I);function I(e){this.ngZone=e,this.close=new d.EventEmitter,this.focus=new d.EventEmitter,this.change=new d.EventEmitter,this.stateChange=new d.EventEmitter,this.dragStart=new d.EventEmitter,this.dragEnd=new d.EventEmitter,this.resizeStart=new d.EventEmitter,this.resizeEnd=new d.EventEmitter,this.options=Object.assign({},Oe),this.lastAction=null,this.subscriptions=new u.Subscription,this.dragSubscription=new u.Subscription}k.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:k,deps:[{token:r.NgZone}],target:r.ɵɵFactoryTarget.Injectable}),k.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:k}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:k,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:r.NgZone}]}});Object.defineProperty(Se.prototype,"hostClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Se.prototype.ngOnInit=function(){var t=this;this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(u.of(this.draggable).subscribe(function(e){t.service.onResize(e,t.direction)})),this.subscriptions.add(this.service.resizeStart.subscribe(function(e){e!==t.direction&&t.setDisplay("none")})),this.subscriptions.add(this.service.dragStart.subscribe(function(){t.setDisplay("none")})),this.subscriptions.add(u.merge(this.service.resizeEnd,this.service.dragEnd).subscribe(function(){t.setDisplay("block")})),this.subscriptions.add(this.service.stateChange.subscribe(function(e){t.setDisplay("default"===e?"block":"none")}))},Se.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Se.prototype.setDisplay=function(e){void 0===e&&(e="block"),this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?e:"none")};t=Se;function Se(e,t,n,i){this.draggable=e,this.el=t,this.renderer=n,this.service=i,this.subscriptions=new u.Subscription}t.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,deps:[{token:B.DraggableDirective,host:!0},{token:r.ElementRef},{token:r.Renderer2},{token:k}],target:r.ɵɵFactoryTarget.Directive}),t.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"[kendoWindowResizeHandle]",inputs:{direction:"direction"},host:{properties:{"class.k-resize-handle":"this.hostClass"}},ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,decorators:[{type:d.Directive,args:[{selector:"[kendoWindowResizeHandle]"}]}],ctorParameters:function(){return[{type:B.DraggableDirective,decorators:[{type:d.Host}]},{type:r.ElementRef},{type:r.Renderer2},{type:k}]},propDecorators:{direction:[{type:d.Input}],hostClass:[{type:d.HostBinding,args:["class.k-resize-handle"]}]}});D.prototype.ngOnInit=function(){this.dragDirective=new R.DraggableDirective(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()},D.prototype.ngOnDestroy=function(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()},D.prototype.subscribeDrag=function(){var t=this;this.unsubscribeDrag(),this.dragSubscription=u.of(this.dragDirective).subscribe(function(e){t.service.onDrag(e)})},D.prototype.subscribeStateChange=function(){var t=this;this.stateSubscription=this.service.stateChange.subscribe(function(e){t.service.options.draggable&&("maximized"===e?t.unsubscribeDrag():t.subscribeDrag())})},D.prototype.unsubscribeDrag=function(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)},D.prototype.unsubscribeState=function(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)},Object.defineProperty(D.prototype,"className",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"touchAction",{get:function(){if(this.isDraggable)return"none"},enumerable:!1,configurable:!0}),D.prototype.handle=function(e){var e=e.target,t=this.service.options.state;q(e,"k-icon")||K(e,!1)||!this.service.options.resizable||("default"===t?this.service.maximizeAction():"maximized"===t&&this.service.restoreAction())},Object.defineProperty(D.prototype,"isDraggable",{get:function(){var e=this.service.options;return e.draggable&&"maximized"!==e.state},enumerable:!1,configurable:!0});var C=D;function D(e,t,n){this.el=e,this.ngZone=n,this.service=t}C.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:C,deps:[{token:r.ElementRef},{token:k},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Component}),C.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:C,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:r,template:'\n <ng-content *ngIf="!template"></ng-content>\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\'$implicit\': service}" *ngIf="template">\n </ng-template>\n ',isInline:!0,directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:C,decorators:[{type:d.Component,args:[{selector:"kendo-window-titlebar",template:'\n <ng-content *ngIf="!template"></ng-content>\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\'$implicit\': service}" *ngIf="template">\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:k},{type:r.NgZone}]},propDecorators:{template:[{type:d.Input}],className:[{type:d.HostBinding,args:["class.k-window-titlebar"]},{type:d.HostBinding,args:["class.k-dialog-titlebar"]}],touchAction:[{type:d.HostBinding,args:["style.touch-action"]}],handle:[{type:d.HostListener,args:["dblclick",["$event"]]}]}});Fe.prototype.process=function(e){var t=this,n=e.keyCode;switch(n){case l.up:case l.down:case l.left:case l.right:e.preventDefault(),this.ngZone.run(function(){t.handleArrow(n,e)});break;case l.esc:this.ngZone.run(function(){t.handleEscape()})}},Fe.prototype.handleArrow=function(e,t){var n=this.window.options;t.altKey?this.handleStateChange(e,n.state):(t.ctrlKey||t.metaKey)&&"default"===n.state?this.handleResize(e):this.handleDrag(e)},Fe.prototype.handleEscape=function(){this.window.closeAction()},Fe.prototype.handleDrag=function(e){var t=this.window.options;if(t.draggable){var n=this.window.currentOffsetAndPosition(),i=this.window.restoreOptions,o={},r=10;switch(e!==l.left&&e!==l.up||(r*=-1),e){case l.left:case l.right:o.left=n.x+r,t.left=o.left;break;case l.up:case l.down:o.top=n.y+r,t.top=o.top}"minimized"===t.state&&p(i)&&(i.left=t.left,i.top=t.top),this.window.change.emit(o)}},Fe.prototype.handleResize=function(e){var t=this,n=this.window.options;if(n.resizable){var i,o=this.window.currentOffsetAndPosition(),r={},s=10;switch(e!==l.left&&e!==l.up||(s*=-1),e){case l.left:case l.right:(i=o.width+s)!==n.width&&i>=n.minWidth&&(r.width=i);break;case l.up:case l.down:(i=o.height+s)!==n.height&&i>=n.minHeight&&(r.height=i)}(p(r.width)||p(r.height))&&(ie.forEach(function(e){p(r[e])&&(t.window.options[e]=r[e])}),this.window.change.emit(r))}},Fe.prototype.handleStateChange=function(e,t){"minimized"===t&&e===l.up||"maximized"===t&&e===l.down?this.window.restoreAction():"default"===t&&(e===l.up?this.window.maximizeAction():e===l.down&&this.window.minimizeAction())};var Ae=Fe;function Fe(e,t){this.window=e,this.ngZone=t}Ae.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:Ae,deps:[{token:k},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Injectable}),Ae.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:Ae}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:Ae,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:k},{type:r.NgZone}]}});H(Me,Ve=o.Button),Me.prototype.onClick=function(){this.isDisabled||this.window.minimizeAction()},Object.defineProperty(Me.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!1,configurable:!0});var Ve,T=Me;function Me(e,t,n,i,o){e=Ve.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-minimize",e}T.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:T,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),T.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:T,selector:"button[kendoWindowMinimizeAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowMinimizeAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:T,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowMinimizeAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMinimizeAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});H(je,Pe=o.Button),je.prototype.onClick=function(){this.isDisabled||this.window.maximizeAction()},Object.defineProperty(je.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!1,configurable:!0});var Pe,z=je;function je(e,t,n,i,o){e=Pe.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-maximize",e}z.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:z,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),z.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:z,selector:"button[kendoWindowMaximizeAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowMaximizeAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:z,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowMaximizeAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMaximizeAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});H(We,Re=o.Button),We.prototype.onClick=function(){this.isDisabled||this.window.restoreAction()},Object.defineProperty(We.prototype,"visible",{get:function(){return"default"===this.window.options.state?"none":"inline-flex"},enumerable:!1,configurable:!0});var Re,E=We;function We(e,t,n,i,o){e=Re.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-restore",e}E.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:E,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),E.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:E,selector:"button[kendoWindowRestoreAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowRestoreAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:E,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowRestoreAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowRestoreAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});H(Be,Le=o.Button),Be.prototype.onClick=function(){this.isDisabled||this.window.closeAction()};var Le,o=Be;function Be(e,t,n,i,o){e=Le.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="close",e}o.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:o,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),o.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:o,selector:"button[kendoWindowCloseAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowCloseAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:o,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowCloseAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowCloseAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}]}});Object.defineProperty(O.prototype,"draggable",{get:function(){return this.options.draggable},set:function(e){this.options.draggable=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"resizable",{get:function(){return this.options.resizable},set:function(e){this.options.resizable=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){Y(e,this.renderer,this.el.nativeElement);var t=this.el.nativeElement,n=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==n&&(this.direction=n),this.tabIndex!==t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"state",{get:function(){return this.options.state},set:function(e){this.options.state=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minWidth",{get:function(){return this.options.minWidth},set:function(e){this.setOption("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minHeight",{get:function(){return this.options.minHeight},set:function(e){this.setOption("minHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"width",{get:function(){return this.options.width},set:function(e){this.setOption("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"height",{get:function(){return this.options.height},set:function(e){this.setOption("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"top",{get:function(){return this.options.top},set:function(e){this.setOption("top",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"left",{get:function(){return this.options.left},set:function(e){this.setOption("left",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"closeButtonTitle",{get:function(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"restoreButtonTitle",{get:function(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"maximizeButtonTitle",{get:function(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minimizeButtonTitle",{get:function(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostClasses",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),O.prototype.ngAfterViewInit=function(){var e=this;this.setNextZIndex(),this.handleInitialFocus(),this.ngZone.runOutsideAngular(function(){return Promise.resolve(null).then(function(){return e.setInitialOffset()})}),this.initDomEvents()},O.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)},O.prototype.ngOnChanges=function(t){var e,n=this;ie.forEach(function(e){R.isChanged(e,t)&&n.setStyle(e,n.options[e])}),R.isChanged("draggable",t)&&(e=p(this.titleBarContent)?this.titleBarContent:this.titleBarView,t.draggable.currentValue?e.subscribeDrag():e.unsubscribeDrag()),R.isChanged("state",t)&&(p(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))},O.prototype.ngOnDestroy=function(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()},O.prototype.focus=function(){var e=this.el.nativeElement;p(e)&&e.focus()},O.prototype.bringToFront=function(){this.setNextZIndex()},O.prototype.setDimension=function(e,t){this.setOption(e,t),this.setStyle(e,t)},O.prototype.setOffset=function(e,t){this.setOption(e,t),this.setStyle(e,t)},Object.defineProperty(O.prototype,"showDefaultTitleBar",{get:function(){return!p(this.titleBarContent)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"styleMinWidth",{get:function(){return this.minWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"styleMinHeight",{get:function(){return this.minHeight+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"stylePosition",{get:function(){return this.options.position},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"wrapperMaximizedClass",{get:function(){return"maximized"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"wrapperMinimizedClass",{get:function(){return"minimized"===this.state},enumerable:!1,configurable:!0}),O.prototype.onComponentFocus=function(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()},O.prototype.onComponentBlur=function(){this.renderer.removeClass(this.el.nativeElement,"k-focus")},O.prototype.subscribeEvents=function(){var i=this;R.isDocumentAvailable()&&(this.windowSubscription.add(this.service.focus.subscribe(function(){i.el.nativeElement.focus()})),this.windowSubscription.add(this.service.dragStart.subscribe(function(){i.draged=!0,i.ngZone.run(function(){i.dragStart.emit()})})),this.windowSubscription.add(this.service.dragEnd.subscribe(function(){i.draged&&(i.draged=!1,i.ngZone.run(function(){i.dragEnd.emit()}))})),this.windowSubscription.add(this.service.close.subscribe(function(){i.close.emit()})),this.windowSubscription.add(this.service.resizeStart.subscribe(function(){i.resized=!0,i.ngZone.run(function(){i.resizeStart.emit()})})),this.windowSubscription.add(this.service.resizeEnd.subscribe(function(){i.resized&&(i.resized=!1,i.ngZone.run(function(){i.resizeEnd.emit()}))})),this.windowSubscription.add(this.service.change.subscribe(function(n){ie.forEach(function(e){var t;p(n[e])&&(i.setStyle(e,n[e]),"maximized"!==i.state&&(t=i[e+"Change"]).observers.length&&i.ngZone.run(function(){t.emit(n[e])}))})})),this.windowSubscription.add(this.service.stateChange.subscribe(function(e){p(i.service.lastAction)&&(i.updateAllOffset(),i.stateChange.emit(e))})))},O.prototype.initDomEvents=function(){var t=this;this.el&&this.ngZone.runOutsideAngular(function(){t.domSubs.add(t.renderer.listen(t.el.nativeElement,"keydown",function(e){t.onKeyDown(e)}))})},O.prototype.onKeyDown=function(e){q(e.target,"k-window")&&this.navigation.process(e)},O.prototype.setServiceClasses=function(e,t){var n=this,i=this.el.nativeElement;e&&$(e).forEach(function(e){n.renderer.removeClass(i,e)}),t&&$(t).forEach(function(e){n.renderer.addClass(i,e)})},O.prototype.setNextZIndex=function(){var e=this.el.nativeElement.style["z-index"],t=this.service.nextPossibleZIndex;(!e||1<t-e)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)},O.prototype.setInitialOffset=function(){var e;"maximized"!==this.state?(this.updateAllOffset(),p(this.left)&&p(this.top)||this.service.center()):(e=this.service.windowViewPort,this.setStyle("width",e.width),this.setStyle("height",e.height),this.setStyle("top",0),this.setStyle("left",0))},O.prototype.updateAllOffset=function(){var t=this;ie.forEach(function(e){p(t[e])?t.setStyle(e,t[e]):t.removeStyle(e)})},O.prototype.setStyle=function(e,t){this.renderer.setStyle(this.el.nativeElement,e,t+"px")},O.prototype.removeStyle=function(e){this.renderer.removeStyle(this.el.nativeElement,e)},Object.defineProperty(O.prototype,"options",{get:function(){return this.service.options},enumerable:!1,configurable:!0}),O.prototype.setOption=function(e,t){"number"!=typeof t&&"string"!=typeof t||(t="number"==typeof t?t:parseInt(t,10),this.options[e]=t,this.service.setRestoreOption(e,t))},O.prototype.handleInitialFocus=function(){var e=this.el.nativeElement;this.autoFocusedElement?(e=e.querySelector(this.autoFocusedElement))&&e.focus():this.focus()};var x=O;function O(e,t,n,i,o,r){var s=this;this.el=e,this.renderer=t,this.service=n,this.navigation=i,this.ngZone=o,this.localization=r,this.keepContent=!1,this.dragStart=new d.EventEmitter,this.dragEnd=new d.EventEmitter,this.resizeStart=new d.EventEmitter,this.resizeEnd=new d.EventEmitter,this.close=new d.EventEmitter,this.widthChange=new d.EventEmitter,this.heightChange=new d.EventEmitter,this.topChange=new d.EventEmitter,this.leftChange=new d.EventEmitter,this.stateChange=new d.EventEmitter,this.messages={},this.tabIndex=0,this.draged=!1,this.resized=!1,this.windowSubscription=new u.Subscription,this.domSubs=new u.Subscription,j.validatePackage(fe),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;return s.direction=e?"rtl":"ltr"}),this.resizeDirections=ne,this.subscribeEvents()}x.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:x,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k},{token:Ae},{token:r.NgZone},{token:a.LocalizationService}],target:r.ɵɵFactoryTarget.Component}),x.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:x,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:[k,Ae,i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.window"}],queries:[{propertyName:"titleBarContent",first:!0,predicate:C,descendants:!0}],viewQueries:[{propertyName:"titleBarView",first:!0,predicate:C,descendants:!0},{propertyName:"resizeHandles",predicate:t,descendants:!0}],exportAs:["kendoWindow"],usesOnChanges:!0,ngImport:r,template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n ',isInline:!0,components:[{type:C,selector:"kendo-window-titlebar",inputs:["template"]}],directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:T,selector:"button[kendoWindowMinimizeAction]",inputs:["window"],exportAs:["kendoWindowMinimizeAction"]},{type:z,selector:"button[kendoWindowMaximizeAction]",inputs:["window"],exportAs:["kendoWindowMaximizeAction"]},{type:E,selector:"button[kendoWindowRestoreAction]",inputs:["window"],exportAs:["kendoWindowRestoreAction"]},{type:o,selector:"button[kendoWindowCloseAction]",inputs:["window"],exportAs:["kendoWindowCloseAction"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:t,selector:"[kendoWindowResizeHandle]",inputs:["direction"]},{type:B.DraggableDirective,selector:"[kendoDraggable]",inputs:["enableDrag"],outputs:["kendoPress","kendoDrag","kendoRelease"]}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:x,decorators:[{type:d.Component,args:[{exportAs:"kendoWindow",providers:[k,Ae,i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.window"}],selector:"kendo-window",template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k},{type:Ae},{type:r.NgZone},{type:a.LocalizationService}]},propDecorators:{autoFocusedElement:[{type:d.Input}],title:[{type:d.Input}],draggable:[{type:d.Input}],resizable:[{type:d.Input}],keepContent:[{type:d.Input}],state:[{type:d.Input}],minWidth:[{type:d.Input}],minHeight:[{type:d.Input}],width:[{type:d.Input}],height:[{type:d.Input}],top:[{type:d.Input}],left:[{type:d.Input}],dragStart:[{type:d.Output}],dragEnd:[{type:d.Output}],resizeStart:[{type:d.Output}],resizeEnd:[{type:d.Output}],close:[{type:d.Output}],widthChange:[{type:d.Output}],heightChange:[{type:d.Output}],topChange:[{type:d.Output}],leftChange:[{type:d.Output}],stateChange:[{type:d.Output}],tabIndex:[{type:d.HostBinding,args:["attr.tabIndex"]}],hostClasses:[{type:d.HostBinding,args:["class.k-window"]}],dir:[{type:d.HostBinding,args:["attr.dir"]}],titleBarView:[{type:d.ViewChild,args:[C,{static:!1}]}],titleBarContent:[{type:d.ContentChild,args:[C,{static:!1}]}],resizeHandles:[{type:d.ViewChildren,args:[t]}],styleMinWidth:[{type:d.HostBinding,args:["style.minWidth"]}],styleMinHeight:[{type:d.HostBinding,args:["style.minHeight"]}],stylePosition:[{type:d.HostBinding,args:["style.position"]}],wrapperMaximizedClass:[{type:d.HostBinding,args:["class.k-window-maximized"]}],wrapperMinimizedClass:[{type:d.HostBinding,args:["class.k-window-minimized"]}],onComponentFocus:[{type:d.HostListener,args:["focus"]}],onComponentBlur:[{type:d.HostListener,args:["blur"]}]}});function Ne(){}function He(){}var Ze=function(){},S=(Object.defineProperty(_e.prototype,"container",{get:function(){return _e.container},set:function(e){_e.container=e},enumerable:!1,configurable:!0}),_e);function _e(){}S.container=null,S.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:S,deps:[],target:r.ɵɵFactoryTarget.Injectable}),S.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:S}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:S,decorators:[{type:d.Injectable}]});qe.prototype.get=function(e,t){return e===Ne?this.getWindowRef():this.parentInjector.get(e,t)};var Xe=qe;function qe(e,t){this.getWindowRef=e,this.parentInjector=t}Ke.prototype.open=function(n){var e=this.resolver.resolveComponentFactory(x),t=n.appendTo||this.containerService.container;if(!t)throw new Error("Cannot attach window to the page.\n Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service/\n ");function i(e){a.next(e||new Ze),r.componentRef&&r.componentRef.destroy(),s.destroy()}var o={close:function(){},content:null,result:null,window:null},r=this.contentFrom(n.content,t,o),s=t.createComponent(e,void 0,void 0,r.nodes),a=(o.window=s,this.applyOptions(s.instance,n),new u.Subject),t=u.merge(a,s.instance.close.pipe(g.map(function(e){return e||new Ze}),g.filter(function(e){var t;return!n.preventClose||(t=n.content,t=G(t)||t instanceof d.TemplateRef?void 0:o,!n.preventClose(e,t))}))).pipe(g.take(1),g.share());return t.subscribe(i),o.close=i,o.result=t,s.changeDetectorRef.markForCheck(),o},Ke.prototype.applyOptions=function(e,t){p(t.htmlAttributes)&&(e.htmlAttributes=t.htmlAttributes),p(t.cssClass)&&(e.cssClass=t.cssClass),p(t.title)&&(e.title=t.title),p(t.keepContent)&&(e.keepContent=t.keepContent),p(t.width)&&(e.width=t.width),p(t.minWidth)&&(e.minWidth=t.minWidth),p(t.height)&&(e.height=t.height),p(t.minHeight)&&(e.minHeight=t.minHeight),p(t.left)&&(e.left=t.left),p(t.top)&&(e.top=t.top),p(t.draggable)&&(e.draggable=t.draggable),p(t.resizable)&&(e.resizable=t.resizable),p(t.messages&&t.messages.closeTitle)&&(e.messages.closeTitle=t.messages.closeTitle),p(t.messages&&t.messages.restoreTitle)&&(e.messages.restoreTitle=t.messages.restoreTitle),p(t.messages&&t.messages.maximizeTitle)&&(e.messages.maximizeTitle=t.messages.maximizeTitle),p(t.messages&&t.messages.minimizeTitle)&&(e.messages.minimizeTitle=t.messages.minimizeTitle),p(t.autoFocusedElement)&&(e.autoFocusedElement=t.autoFocusedElement),p(t.state)&&(e.state=t.state,"minimized"===t.state&&(e.keepContent=!0)),t.content instanceof d.TemplateRef&&(e.contentTemplate=t.content),t.titleBarContent instanceof d.TemplateRef&&(e.titleBarTemplate=t.titleBarContent)},Ke.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=null;return"string"==typeof e?o=[i.createText(e)]:!e||e instanceof d.TemplateRef||(i=new Xe(function(){return n},t.injector),e=this.resolver.resolveComponentFactory(e),o=[(r=t.createComponent(e,void 0,i)).location.nativeElement],n.content=r),{componentRef:r,nodes:[[],o]}};s=Ke;function Ke(e,t){this.resolver=e,this.containerService=t}s.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:s,deps:[{token:r.ComponentFactoryResolver},{token:S}],target:r.ɵɵFactoryTarget.Injectable}),s.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:s}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:s,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:r.ComponentFactoryResolver},{type:S,decorators:[{type:d.Inject,args:[S]}]}]}});var Ye,A=function(e,t){t.container=e},F=(A.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:A,deps:[{token:r.ViewContainerRef},{token:w}],target:r.ɵɵFactoryTarget.Directive}),A.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:A,selector:"[kendoDialogContainer]",ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:A,decorators:[{type:d.Directive,args:[{selector:"[kendoDialogContainer]"}]}],ctorParameters:function(){return[{type:r.ViewContainerRef},{type:w}]}}),H($e,Ye=m),Object.defineProperty($e.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),$e);function $e(e){var t=Ye.call(this)||this;return t.service=e,t}F.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:F,deps:[{token:a.LocalizationService}],target:r.ɵɵFactoryTarget.Directive}),F.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"kendo-dialog-messages, kendo-window-messages",providers:[{provide:m,useExisting:d.forwardRef(function(){return F})}],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:F,decorators:[{type:d.Directive,args:[{providers:[{provide:m,useExisting:d.forwardRef(function(){return F})}],selector:"kendo-dialog-messages, kendo-window-messages"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var Ue=[c,F,f],V=function(){},n=(V.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,deps:[],target:r.ɵɵFactoryTarget.NgModule}),V.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,declarations:[c,F,f],imports:[n.CommonModule],exports:[c,F,f,n.CommonModule]}),V.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,imports:[[n.CommonModule],n.CommonModule]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,decorators:[{type:d.NgModule,args:[{declarations:[Ue],exports:[Ue,n.CommonModule],imports:[n.CommonModule]}]}]}),[b,y]),M=function(){},n=(M.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,deps:[],target:r.ɵɵFactoryTarget.NgModule}),M.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,declarations:[b,y,A],imports:[V],exports:[b,y,c,F,f,A]}),M.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,providers:[w,h],imports:[[V]]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,decorators:[{type:d.NgModule,args:[{declarations:[n,A],exports:[n,Ue,A],imports:[V],providers:[w,h]}]}]}),function(e,t){t.container=e}),Ge=(n.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:n,deps:[{token:r.ViewContainerRef},{token:S}],target:r.ɵɵFactoryTarget.Directive}),n.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:n,selector:"[kendoWindowContainer]",ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:n,decorators:[{type:d.Directive,args:[{selector:"[kendoWindowContainer]"}]}],ctorParameters:function(){return[{type:r.ViewContainerRef},{type:S}]}}),[t,x,C,o,T,z,E]),Qe=[x,o,T,z,E,C],P=function(){},t=(P.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,deps:[],target:r.ɵɵFactoryTarget.NgModule}),P.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,declarations:[t,x,C,o,T,z,E,n],imports:[V,R.DraggableModule],exports:[x,o,T,z,E,C,c,F,f,n]}),P.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,providers:[S,s],imports:[[V,R.DraggableModule]]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,decorators:[{type:d.NgModule,args:[{declarations:[Ge,n],exports:[Qe,Ue,n],imports:[V,R.DraggableModule],providers:[S,s]}]}]}),function(){});t.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,deps:[],target:r.ɵɵFactoryTarget.NgModule}),t.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,exports:[M,P]}),t.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,imports:[M,P]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,decorators:[{type:d.NgModule,args:[{exports:[M,P]}]}]}),e.CustomMessagesComponent=F,e.DialogAction=Ie,e.DialogActionsComponent=c,e.DialogCloseResult=ye,e.DialogComponent=b,e.DialogContainerDirective=A,e.DialogContentBase=ve,e.DialogModule=M,e.DialogRef=be,e.DialogService=h,e.DialogSettings=Ce,e.DialogTitleBarComponent=y,e.DialogsModule=t,e.LocalizedMessagesDirective=f,e.Messages=m,e.WindowCloseActionDirective=o,e.WindowCloseResult=Ze,e.WindowComponent=x,e.WindowContainerDirective=n,e.WindowMaximizeActionDirective=z,e.WindowMinimizeActionDirective=T,e.WindowModule=P,e.WindowRef=Ne,e.WindowRestoreActionDirective=E,e.WindowService=s,e.WindowSettings=He,e.WindowTitleBarComponent=C,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -62,7 +62,7 @@ export declare const setHTMLAttributes: (attributes: {
62
62
  *
63
63
  * @hidden
64
64
  */
65
- export declare const parseCSSClassNames: (value: any) => string[];
65
+ export declare const parseCSSClassNames: (value: any) => Array<string>;
66
66
  /**
67
67
  * @hidden
68
68
  */
@@ -3,8 +3,9 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { EventEmitter, TemplateRef, ElementRef } from '@angular/core';
6
- import { DialogAction } from './dialog-settings';
6
+ import { DialogAction } from './models/dialog-action';
7
7
  import { ActionsLayout } from '../common/actions-layout';
8
+ import * as i0 from "@angular/core";
8
9
  /**
9
10
  * Specifies the action buttons of the Dialog
10
11
  * ([see example]({% slug actionbuttons_dialog %})).
@@ -14,7 +15,15 @@ export declare class DialogActionsComponent {
14
15
  /**
15
16
  * Allows the declarative specification of the actions.
16
17
  */
17
- actions?: DialogAction[] | TemplateRef<any>;
18
+ set actions(value: DialogAction[] | TemplateRef<any>);
19
+ /**
20
+ * @hidden
21
+ */
22
+ actionsArray: DialogAction[];
23
+ /**
24
+ * @hidden
25
+ */
26
+ actionsTemplate: TemplateRef<any>;
18
27
  /**
19
28
  * Specifies the possible layout of the action buttons.
20
29
  */
@@ -24,12 +33,8 @@ export declare class DialogActionsComponent {
24
33
  */
25
34
  action: EventEmitter<DialogAction>;
26
35
  buttonGroupClassName: boolean;
27
- readonly className: boolean;
36
+ get className(): boolean;
28
37
  constructor(el: ElementRef);
29
- /**
30
- * @hidden
31
- */
32
- actionTemplate(): boolean;
33
38
  /**
34
39
  * @hidden
35
40
  */
@@ -38,4 +43,6 @@ export declare class DialogActionsComponent {
38
43
  * @hidden
39
44
  */
40
45
  buttonClass(action: DialogAction): string;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogActionsComponent, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogActionsComponent, "kendo-dialog-actions", never, { "actions": "actions"; "layout": "layout"; }, { "action": "action"; }, never, ["*"]>;
41
48
  }
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ViewContainerRef } from '@angular/core';
6
6
  import { DialogContainerService } from './dialog-container.service';
7
+ import * as i0 from "@angular/core";
7
8
  /**
8
9
  * Provides an insertion point for the Dialogs which are created through the
9
10
  * Dialog service ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
@@ -16,4 +17,6 @@ import { DialogContainerService } from './dialog-container.service';
16
17
  */
17
18
  export declare class DialogContainerDirective {
18
19
  constructor(container: ViewContainerRef, service: DialogContainerService);
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogContainerDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DialogContainerDirective, "[kendoDialogContainer]", never, {}, {}, never>;
19
22
  }
@@ -0,0 +1,16 @@
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 { ViewContainerRef } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export declare class DialogContainerService {
11
+ private static container;
12
+ set container(container: ViewContainerRef);
13
+ get container(): ViewContainerRef;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogContainerService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<DialogContainerService>;
16
+ }
@@ -2,9 +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 { DialogRef } from './dialog-settings';
5
+ import { DialogRef } from './models/dialog-ref';
6
6
  import { DialogActionsComponent } from './dialog-actions.component';
7
7
  import { DialogTitleBarComponent } from './dialog-titlebar.component';
8
+ import * as i0 from "@angular/core";
8
9
  /**
9
10
  * The base class which will be extended by a component that is provided as content through `content`
10
11
  * ([see example]({% slug service_dialog %}#toc-passing-title-content-and-actions-as-a-single-component)).
@@ -24,4 +25,6 @@ export declare class DialogContentBase {
24
25
  * @hidden
25
26
  */
26
27
  ngAfterViewInit(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogContentBase, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogContentBase, "kendo-dialog-content-base", never, {}, {}, never, never>;
27
30
  }
@@ -5,6 +5,7 @@
5
5
  import { EventEmitter, ElementRef, NgZone, AfterViewInit } from '@angular/core';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { PreventableEvent } from '../common/preventable-event';
8
+ import * as i0 from "@angular/core";
8
9
  /**
9
10
  * Represents the [Kendo UI DialogTitleBar component for Angular]({% slug api_dialog_dialogtitlebarcomponent %}).
10
11
  *
@@ -26,12 +27,14 @@ export declare class DialogTitleBarComponent implements AfterViewInit {
26
27
  * @hidden
27
28
  */
28
29
  closeTitle: string;
29
- readonly className: true;
30
+ get className(): true;
30
31
  constructor(zone: NgZone, hostElement: ElementRef, localizationService: LocalizationService);
31
- readonly closeButtonTitle: string;
32
+ get closeButtonTitle(): string;
32
33
  ngAfterViewInit(): void;
33
34
  /**
34
35
  * @hidden
35
36
  */
36
37
  onCloseClick(e: Event): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogTitleBarComponent, [null, null, { optional: true; }]>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogTitleBarComponent, "kendo-dialog-titlebar", never, { "id": "id"; "closeTitle": "closeTitle"; }, { "close": "close"; }, never, ["*"]>;
37
40
  }
@@ -7,7 +7,8 @@ import { DialogActionsComponent } from './dialog-actions.component';
7
7
  import { DialogTitleBarComponent } from './dialog-titlebar.component';
8
8
  import { LocalizationService } from '@progress/kendo-angular-l10n';
9
9
  import { ActionsLayout } from '../common/actions-layout';
10
- import { DialogAction } from './dialog-settings';
10
+ import { DialogAction } from './models/dialog-action';
11
+ import * as i0 from "@angular/core";
11
12
  /**
12
13
  * Represents the [Kendo UI Dialog component for Angular]({% slug overview_dialog_dialogs %}).
13
14
  */
@@ -74,13 +75,17 @@ export declare class DialogComponent implements AfterContentInit, AfterViewInit,
74
75
  /**
75
76
  * @hidden
76
77
  */
77
- htmlAttributes: {
78
+ set htmlAttributes(attributes: {
79
+ [key: string]: string;
80
+ });
81
+ get htmlAttributes(): {
78
82
  [key: string]: string;
79
83
  };
80
84
  /**
81
85
  * @hidden
82
86
  */
83
- cssClass: any;
87
+ set cssClass(classes: any);
88
+ get cssClass(): any;
84
89
  /**
85
90
  * @hidden
86
91
  */
@@ -106,7 +111,7 @@ export declare class DialogComponent implements AfterContentInit, AfterViewInit,
106
111
  * Fires when the user clicks the **Close** button of the Dialog or the **ESC** key.
107
112
  */
108
113
  close: EventEmitter<any>;
109
- readonly dir: string;
114
+ get dir(): string;
110
115
  tabIndex: number;
111
116
  titlebarContent: QueryList<DialogTitleBarComponent>;
112
117
  titlebarView: QueryList<DialogTitleBarComponent>;
@@ -164,7 +169,9 @@ export declare class DialogComponent implements AfterContentInit, AfterViewInit,
164
169
  * @hidden
165
170
  */
166
171
  private generateContentId;
167
- readonly wrapperClass: boolean;
168
- readonly styles: any;
172
+ get wrapperClass(): boolean;
173
+ get styles(): any;
169
174
  private bubble;
175
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
176
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "kendo-dialog", ["kendoDialog"], { "actions": "actions"; "actionsLayout": "actionsLayout"; "autoFocusedElement": "autoFocusedElement"; "title": "title"; "width": "width"; "minWidth": "minWidth"; "maxWidth": "maxWidth"; "height": "height"; "minHeight": "minHeight"; "maxHeight": "maxHeight"; }, { "action": "action"; "close": "close"; }, ["titlebarContent"], ["kendo-dialog-titlebar", "*", "kendo-dialog-actions"]>;
170
177
  }
@@ -4,7 +4,9 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ComponentFactoryResolver } from '@angular/core';
6
6
  import { DialogContainerService } from './dialog-container.service';
7
- import { DialogRef, DialogSettings } from './dialog-settings';
7
+ import { DialogRef } from './models/dialog-ref';
8
+ import { DialogSettings } from './models';
9
+ import * as i0 from "@angular/core";
8
10
  /**
9
11
  * A service for opening Dialog windows dynamically
10
12
  * ([see example]({% slug service_dialog %})).
@@ -67,4 +69,6 @@ export declare class DialogService {
67
69
  private initializeDialog;
68
70
  private applyOptions;
69
71
  private contentFrom;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
73
+ static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
70
74
  }
@@ -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 { ButtonFillMode, ButtonThemeColor } from "@progress/kendo-angular-buttons";
6
+ /**
7
+ * The settings for the Dialog actions when the Dialog is opened through `DialogService`
8
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
9
+ */
10
+ export declare class DialogAction {
11
+ /**
12
+ * The text of the action button.
13
+ */
14
+ text: string;
15
+ /**
16
+ * Determines the theme color of the action button. The theme color will be applied as a background and border color while also amending the text color accordingly.
17
+ */
18
+ themeColor?: ButtonThemeColor;
19
+ /**
20
+ * Specifies the background and border styles of the action button.
21
+ */
22
+ fillMode?: ButtonFillMode;
23
+ /**
24
+ * Sets the CSS classes that will be rendered on the action button.
25
+ * Supports the union type of values that NgClass accepts [ngClass]({{ site.data.urls.angular['ngclassapi'] }}).
26
+ */
27
+ cssClass?: any;
28
+ }
@@ -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 declare class DialogCloseResult {
11
+ }
@@ -0,0 +1,38 @@
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 { ComponentRef } from '@angular/core';
6
+ import { Observable } from 'rxjs';
7
+ import { DialogComponent } from '../dialog.component';
8
+ import { DialogResult } from './dialog-result';
9
+ /**
10
+ * Holds references to the object instance and published events of the Dialog.
11
+ * Controls the Dialogs that were opened through the `DialogService`
12
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
13
+ */
14
+ export declare class DialogRef {
15
+ /**
16
+ * Emits events when the Dialog is closed either through the **Close** button of the title bar or through the action buttons.
17
+ * If the **Close** button of the title bar is clicked, `DialogResult` is a `DialogCloseResult` instance.
18
+ * If the Dialog is closed through the action buttons, `DialogResult` contains the object that was passed when the Dialog was opened.
19
+ * When `close` is called with an argument, the result is the passed argument.
20
+ */
21
+ result: Observable<DialogResult>;
22
+ /**
23
+ * A reference to the Dialog instance.
24
+ */
25
+ dialog: ComponentRef<any>;
26
+ /**
27
+ * A reference to the child component of the Dialog.
28
+ * Available when the Dialog is opened with [component content]({% slug service_dialog %}#toc-using-components).
29
+ */
30
+ content: ComponentRef<DialogComponent>;
31
+ /**
32
+ * Allows you to close the Dialog through code.
33
+ * When called with no arguments,
34
+ * the `result` Observable will be of type DialogCloseResult.
35
+ * When called with an argument, the `result` Observable will hold the provided value.
36
+ */
37
+ close: Function;
38
+ }
@@ -0,0 +1,14 @@
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 { DialogAction } from "./dialog-action";
6
+ import { DialogCloseResult } from "./dialog-close-result";
7
+ /**
8
+ * Specifies the possible result types of the Dialog. Instances of
9
+ * [`DialogCloseResult`]({% slug api_dialog_dialogcloseresult %})
10
+ * indicate that the **Close** button of the Dialog was clicked
11
+ * ([see example]({% slug api_dialog_dialogservice %}#toc-open).
12
+ * Otherwise, the value is the configuration of the action button that was clicked.
13
+ */
14
+ export declare type DialogResult = DialogCloseResult | DialogAction;
@@ -2,49 +2,11 @@
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 { ComponentRef, TemplateRef, ViewContainerRef } from '@angular/core';
6
- import { Observable } from 'rxjs';
7
- import { DialogComponent } from './dialog.component';
8
- import { ActionsLayout } from '../common/actions-layout';
9
- import { ButtonThemeColor, ButtonFillMode } from '@progress/kendo-angular-buttons';
10
- /**
11
- * The settings for the Dialog actions when the Dialog is opened through `DialogService`
12
- * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
13
- */
14
- export declare class DialogAction {
15
- /**
16
- * The text of the action button.
17
- */
18
- text: string;
19
- /**
20
- * Determines the theme color of the action button. The theme color will be applied as a background and border color while also amending the text color accordingly.
21
- */
22
- themeColor?: ButtonThemeColor;
23
- /**
24
- * Specifies the background and border styles of the action button.
25
- */
26
- fillMode?: ButtonFillMode;
27
- /**
28
- * Sets the CSS classes that will be rendered on the action button.
29
- * Supports the union type of values that NgClass accepts [ngClass]({{ site.data.urls.angular['ngclassapi'] }}).
30
- */
31
- cssClass?: any;
32
- }
33
- /**
34
- * Indicates that the **Close** button is clicked. Used when the results from
35
- * the Dialogs that are opened through `DialogService` are filtered
36
- * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
37
- */
38
- export declare class DialogCloseResult {
39
- }
40
- /**
41
- * Specifies the possible result types of the Dialog. Instances of
42
- * [`DialogCloseResult`]({% slug api_dialog_dialogcloseresult %})
43
- * indicate that the **Close** button of the Dialog was clicked
44
- * ([see example]({% slug api_dialog_dialogservice %}#toc-open).
45
- * Otherwise, the value is the configuration of the action button that was clicked.
46
- */
47
- export declare type DialogResult = DialogCloseResult | DialogAction;
5
+ import { TemplateRef, ViewContainerRef } from "@angular/core";
6
+ import { ActionsLayout } from "./../../common/actions-layout";
7
+ import { DialogAction } from "./dialog-action";
8
+ import { DialogRef } from "./dialog-ref";
9
+ import { DialogResult } from "./dialog-result";
48
10
  /**
49
11
  * The settings that can be used when the Dialog is opened through `DialogService`.
50
12
  * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
@@ -140,33 +102,3 @@ export declare class DialogSettings {
140
102
  */
141
103
  autoFocusedElement?: string;
142
104
  }
143
- /**
144
- * Holds references to the object instance and published events of the Dialog.
145
- * Controls the Dialogs that were opened through the `DialogService`
146
- * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
147
- */
148
- export declare class DialogRef {
149
- /**
150
- * Emits events when the Dialog is closed either through the **Close** button of the title bar or through the action buttons.
151
- * If the **Close** button of the title bar is clicked, `DialogResult` is a `DialogCloseResult` instance.
152
- * If the Dialog is closed through the action buttons, `DialogResult` contains the object that was passed when the Dialog was opened.
153
- * When `close` is called with an argument, the result is the passed argument.
154
- */
155
- result: Observable<DialogResult>;
156
- /**
157
- * A reference to the Dialog instance.
158
- */
159
- dialog: ComponentRef<DialogComponent>;
160
- /**
161
- * A reference to the child component of the Dialog.
162
- * Available when the Dialog is opened with [component content]({% slug service_dialog %}#toc-using-components).
163
- */
164
- content: ComponentRef<any>;
165
- /**
166
- * Allows you to close the Dialog through code.
167
- * When called with no arguments,
168
- * the `result` Observable will be of type DialogCloseResult.
169
- * When called with an argument, the `result` Observable will hold the provided value.
170
- */
171
- close: Function;
172
- }
@@ -2,8 +2,8 @@
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 { InjectionToken } from '@angular/core';
6
- /**
7
- * @hidden
8
- */
9
- export var DIALOG_LOCALIZATION_SERVICE = new InjectionToken('Dialog LocalizationService');
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';