@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
package/dist/cdn/main.js DELETED
@@ -1,5 +0,0 @@
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&&"object"==typeof module?module.exports=t(require("@angular/core"),require("tslib"),require("@progress/kendo-angular-l10n"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@progress/kendo-popup-common"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularDialog=t(require("@angular/core"),require("tslib"),require("@progress/kendo-angular-l10n"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@progress/kendo-popup-common"),require("@angular/common")):e.KendoAngularDialog=t(e.ng.core,e.self,e.KendoAngularL10N,e.rxjs,e.rxjs.operators,e.KendoAngularCommon,e.KendoAngularButtons,e.KendoLicensing,e.ng.animations,e.KendoPopupCommon,e.ng.common)}(window,(function(e,t,i,n,o,r,s,a,c,l,d){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=34)}([function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t){e.exports=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),o=i(6);t.isPresent=function(e){return null!=e},t.isTruthy=function(e){return!!e};var r=function(e){return String(e).trim().split(" ")},s=/^(?:a|input|select|textarea|button|object)$/i;!function(e){e[e.esc=27]="esc",e[e.tab=9]="tab",e[e.enter=13]="enter",e[e.space=32]="space",e[e.ctrl=17]="ctrl",e[e.shift=16]="shift",e[e.left=37]="left",e[e.up=38]="up",e[e.right=39]="right",e[e.down=40]="down"}(t.Keys||(t.Keys={})),t.DIALOG_ELEMENTS_HANDLING_ESC_KEY="k-dialog-wrapper k-dialog-buttongroup k-dialog-action",t.DIALOG_ELEMENTS_HANDLING_ARROWS="k-dialog-buttongroup",t.WINDOW_CLASSES="k-window",t.hasClasses=function(e,t){var i=r(t);return Boolean(r(e.className).find((function(e){return i.indexOf(e)>=0})))},t.isVisible=function(e){var t=e.getBoundingClientRect();return!(!t.width||!t.height)&&"hidden"!==window.getComputedStyle(e).visibility},t.isFocusable=function(e,i){if(void 0===i&&(i=!0),e.tagName){var n=e.tagName.toLowerCase(),o=e.getAttribute("tabIndex"),r=null!==o&&!isNaN(o)&&o>-1;return(s.test(n)?!e.disabled:r)&&(!i||t.isVisible(e))}return!1},t.setHTMLAttributes=function(e,t,i){for(var n in e)n&&t.setAttribute(i,n,e[n])},t.parseCSSClassNames=function(e){return t.isObject(e)?a(e):t.isString(e)?c(e):Array.isArray(e)?l(e):void 0};var a=function(e){var i=[];return Object.keys(e).forEach((function(n){var o=t.splitStringToArray(n);e[n]&&o[0]&&i.push.apply(i,o)})),i},c=function(e){var i=[];return t.splitStringToArray(e).forEach((function(e){i.push(e)})),i},l=function(e){var i=[];return e.forEach((function(e){var n=t.splitStringToArray(e);n[0]&&i.push.apply(i,n)})),i};t.focusableSelector=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),t.preventDefault=function(e){var t=e.originalEvent;t.stopPropagation(),t.preventDefault()},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.preventOnDblClick=function(e){return function(t){return n.of(t).pipe(o.delay(150),o.takeUntil(e))}},t.RESIZE_DIRECTIONS=["n","e","s","w","se","sw","ne","nw"],t.OFFSET_STYLES=["top","left","width","height"],t.isString=function(e){return e instanceof String||"string"==typeof e},t.isObject=function(e){return t.isPresent(e)&&!Array.isArray(e)&&"object"==typeof e},t.isNumber=function(e){return"number"==typeof e&&isFinite(e)},t.createValueWithUnit=function(e){return e+(t.isNumber(e)?"px":"")},t.splitStringToArray=function(e){return e.trim().replace(/\s+/g," ").split(" ")},t.findPrimaryButton=function(e){for(var t=e.length-1;t>=0;t--)for(var i=e[t].classList,n=0;n<i.length;n++)if(i[n].endsWith("-primary"))return e[t]}},function(e,t){e.exports=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(4),s=i(6),a=i(3),c=i(37),l=10002,d={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},u=function(e,t){return function(i){return e.kendoDrag.pipe(s.takeUntil(e.kendoRelease.pipe(s.tap((function(){t.emit()})))),s.map((function(e){var t=e.pageX,n=e.pageY;return{originalX:i.pageX,originalY:i.pageY,pageX:t,pageY:n}})))}},p=function(){function e(e){this.ngZone=e,this.close=new o.EventEmitter,this.focus=new o.EventEmitter,this.change=new o.EventEmitter,this.stateChange=new o.EventEmitter,this.dragStart=new o.EventEmitter,this.dragEnd=new o.EventEmitter,this.resizeStart=new o.EventEmitter,this.resizeEnd=new o.EventEmitter,this.options=Object.assign({},d),this.lastAction=null,this.subscriptions=new r.Subscription,this.dragSubscription=new r.Subscription}return e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()},e.prototype.init=function(e){var t=this.options.state,i=this.options;this.window=e,"default"!==t&&(this.restoreOptions=Object.assign({},i)),"minimized"===t&&(i.height=0,i.minHeight=0),"maximized"===t&&(i.position="fixed")},e.prototype.onDrag=function(e){var t=this;this.subscriptions.add(this.ngZone.runOutsideAngular((function(){var i,n;t.dragSubscription=e.kendoPress.pipe(s.tap((function(e){e.isTouch||a.preventDefault(e),t.focus.emit(),i=t.currentPosition(),n=!1})),s.switchMap(u(e,t.dragEnd))).subscribe((function(e){var o=e.pageX,r=e.pageY,s=e.originalX,a=e.originalY;n||(t.ensureWidth(),t.dragStart.emit(),n=!0),t.handleDrag({originalX:s,originalY:a,pageX:o,pageY:r,startPosition:i})}))})))},e.prototype.handleDrag=function(e){var t=e.originalX,i=e.originalY,n=e.pageX,o=e.pageY,r=e.startPosition;this.options.left=r.x+n-t,this.options.top=r.y+o-i,"minimized"===this.options.state&&a.isPresent(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:r.x+n-t,top:r.y+o-i})},e.prototype.onResize=function(e,t){var i=this;this.subscriptions.add(this.ngZone.runOutsideAngular((function(){var n,o=!1;e.kendoPress.pipe(s.tap((function(e){a.preventDefault(e),i.focus.emit(),n=i.currentOffsetAndPosition(),o=!1})),s.switchMap(u(e,i.resizeEnd))).subscribe((function(e){var r=e.pageX,s=e.pageY,a=e.originalX,c=e.originalY;o||(i.resizeStart.emit(t),o=!0);var l=r-a,d=s-c;i.handleResize(n,t,l,d)}))})))},e.prototype.handleResize=function(e,t,i,n){var o=this,r=this.options,s={};t.indexOf("e")>=0&&((d=e.width+i)!==r.width&&d>=r.minWidth&&(s.width=d));if(t.indexOf("n")>=0){var c=e.height-n,l=e.y+n;c!==r.height&&c>=r.minHeight&&l!==r.top&&(s.height=c,s.top=l)}t.indexOf("s")>=0&&((c=e.height+n)!==r.height&&c>=r.minHeight&&(s.height=c));if(t.indexOf("w")>=0){var d,u=e.x+i;(d=e.width-i)!==r.width&&d>=r.minWidth&&u!==r.left&&(s.width=d,s.left=u)}(a.isPresent(s.width)||a.isPresent(s.height))&&(a.OFFSET_STYLES.forEach((function(e){a.isPresent(s[e])&&(o.options[e]=s[e])})),this.change.emit(s))},e.prototype.restoreAction=function(){this.lastAction="restore",this.defaultState()},e.prototype.defaultState=function(){a.isPresent(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")},e.prototype.storeOptions=function(){this.restoreOptions=Object.assign({},this.options)},e.prototype.maximizeAction=function(){this.lastAction="maximize",this.maximizeState()},e.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")},e.prototype.minimizeAction=function(){this.lastAction="minimize",this.minimizeState()},e.prototype.minimizeState=function(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")},e.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()}},e.prototype.closeAction=function(){this.close.emit()},e.prototype.ensureWidth=function(){var e=c.offset(this.window.nativeElement);a.isPresent(this.options.width)||(this.options.width=e.width,this.change.emit({width:e.width}))},e.prototype.clearHeight=function(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight},e.prototype.center=function(){if("maximized"!==this.options.state){var e=c.scrollPosition(this.window.nativeElement),t=this.windowViewPort,i=c.offset(this.window.nativeElement),n={};a.isPresent(this.options.left)||(this.options.left=e.x+Math.max(0,(t.width-i.width)/2),n.left=this.options.left),a.isPresent(this.options.top)||(this.options.top=e.y+Math.max(0,(t.height-i.height)/2),n.top=this.options.top),this.change.emit(n)}},e.prototype.currentOffsetAndPosition=function(){var e=this.options,t=c.offset(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:e.height?e.height:t.height,width:e.width?e.width:t.width})},e.prototype.currentPosition=function(){var e=this.options;return e.top&&e.left||this.setPosition(),{x:this.options.left,y:this.options.top}},e.prototype.setPosition=function(){var e=c.positionWithScroll(this.window.nativeElement,c.getDocumentElement(this.window.nativeElement));this.options.left=e.left,this.options.top=e.top},e.prototype.setRestoreOption=function(e,t){a.isPresent(this.restoreOptions)&&(this.restoreOptions[e]=t)},Object.defineProperty(e.prototype,"nextPossibleZIndex",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextZIndex",{get:function(){return l++},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"windowViewPort",{get:function(){return c.getWindowViewPort(this.window.nativeElement)},enumerable:!0,configurable:!0}),e=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[o.NgZone])],e)}();t.DragResizeService=p},function(e,t){e.exports=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(3),s=function(){function e(e){this.el=e,this.layout="stretched",this.action=new o.EventEmitter,this.buttonGroupClassName=!0}return Object.defineProperty(e.prototype,"className",{get:function(){return"stretched"===this.layout},enumerable:!0,configurable:!0}),e.prototype.actionTemplate=function(){return this.actions instanceof o.TemplateRef},e.prototype.onButtonClick=function(e,t){this.action.emit(e)},e.prototype.buttonClass=function(e){var t=["k-button k-button-md k-rounded-md"],i=e.fillMode?e.fillMode:"solid",n=e.themeColor?e.themeColor:"base",o=e.cssClass?r.parseCSSClassNames(e.cssClass):[];return t.push("k-button-"+i+" k-button-"+i+"-"+n),o.length>0&&(t=t.concat(o)),t.join(" ")},n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"actions",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"layout",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"action",void 0),n.__decorate([o.HostBinding("class.k-dialog-buttongroup"),o.HostBinding("class.k-actions"),n.__metadata("design:type",Boolean)],e.prototype,"buttonGroupClassName",void 0),n.__decorate([o.HostBinding("class.k-actions-stretched"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"className",null),e=n.__decorate([o.Component({selector:"kendo-dialog-actions",template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="!actionTemplate()">\n <button\n type="button"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n *ngFor="let action of actions"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template [ngTemplateOutlet]="actions" *ngIf="actionTemplate()"></ng-template>\n '}),n.__metadata("design:paramtypes",[o.ElementRef])],e)}();t.DialogActionsComponent=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(2),s=i(6),a=i(17),c=i(36),l=function(){function e(e,t,i){this.zone=e,this.hostElement=t,this.localizationService=i,this.close=new o.EventEmitter}return Object.defineProperty(e.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.zone.onStable.pipe(s.take(1)).subscribe((function(){e.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",e.id)}))},e.prototype.onCloseClick=function(e){e.preventDefault();var t=new a.PreventableEvent;this.close.emit(t)},n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"id",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),n.__decorate([o.HostBinding("class.k-window-titlebar"),o.HostBinding("class.k-dialog-titlebar"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"className",null),e=n.__decorate([o.Component({selector:"kendo-dialog-titlebar",providers:[c.TitleBarLocalizationService,{provide:r.LocalizationService,useExisting:c.TitleBarLocalizationService},{provide:r.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 '}),n.__param(2,o.Optional()),n.__metadata("design:paramtypes",[o.NgZone,o.ElementRef,r.LocalizationService])],e)}();t.DialogTitleBarComponent=l},function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(35),s=i(7),a=i(8),c=i(2),l=i(19),d=i(20),u=i(3),p=i(12),g=i(18),h=i(6),m=i(4),f=function(){function e(e,t,i,n,r){var s=this;this.wrapper=e,this.renderer=t,this.cdr=n,this.ngZone=r,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new o.EventEmitter,this.close=new o.EventEmitter,this.tabIndex=0,this.subscriptions=[],this.domSubs=new m.Subscription,l.validatePackage(d.packageMetadata),this.direction=i.rtl?"rtl":"ltr",this.subscriptions.push(i.changes.subscribe((function(e){var t=e.rtl;return s.direction=t?"rtl":"ltr"}))),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}return Object.defineProperty(e.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){u.setHTMLAttributes(e,this.renderer,this.wrapper.nativeElement);var t=this.wrapper.nativeElement,i=t.getAttribute("dir"),n=t.getAttribute("tabindex");this.direction!==i&&i&&(this.direction=i),this.tabIndex!==n&&n&&(this.tabIndex=n),this._htmlAttributes=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.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(){u.isPresent(e.titlebarContent.first)&&(e.titlebarContent.first.id=e.titleId,e.ngZone.onStable.pipe(h.take(1)).subscribe((function(){e.bubble("close",e.titlebarContent.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)})))})))},e.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(){u.isPresent(e.titlebarView.first)&&(e.titlebarView.first.id=e.titleId,e.ngZone.onStable.pipe(h.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()},e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()},e.prototype.focus=function(){var e=this.wrapper.nativeElement;u.isPresent(e)&&e.focus()},e.prototype.initDomEvents=function(){var e=this;this.wrapper&&this.ngZone.runOutsideAngular((function(){e.domSubs.add(e.renderer.listen(e.wrapper.nativeElement,"keydown",(function(t){e.onKeyDown(t)})))}))},e.prototype.onKeyDown=function(e){var t=this,i=e.target,n=i.parentElement;(u.hasClasses(i,u.DIALOG_ELEMENTS_HANDLING_ESC_KEY)||u.hasClasses(n,u.DIALOG_ELEMENTS_HANDLING_ESC_KEY))&&e.keyCode===u.Keys.esc&&this.ngZone.run((function(){t.close.emit(new p.DialogCloseResult)})),u.hasClasses(i,"k-button")&&u.hasClasses(n,u.DIALOG_ELEMENTS_HANDLING_ARROWS)&&(e.keyCode===u.Keys.left||e.keyCode===u.Keys.right)&&this.ngZone.run((function(){t.handleActionButtonFocus(n,e.keyCode)})),e.keyCode===u.Keys.tab&&this.ngZone.run((function(){t.keepFocusWithinComponent(i,e)}))},e.prototype.setServiceClasses=function(e,t){var i=this,n=this.wrapper.nativeElement;e&&u.parseCSSClassNames(e).forEach((function(e){i.renderer.removeClass(n,e)})),t&&u.parseCSSClassNames(t).forEach((function(e){i.renderer.addClass(n,e)}))},e.prototype.handleInitialFocus=function(){var e=this.wrapper.nativeElement,t=this.findPrimary(e);if(this.autoFocusedElement){var i=e.querySelector(this.autoFocusedElement);i&&i.focus()}else this.shouldFocusPrimary(t)?t.focus():e.focus()},e.prototype.findPrimary=function(e){var t=e.querySelectorAll(".k-actions .k-button");return u.findPrimaryButton(t)},e.prototype.handleActionButtonFocus=function(e,t){for(var i=this.getAllFocusableChildren(e),n=0;n<i.length;n++){if(i[n]===document.activeElement){if(t===u.Keys.left&&n>0){i[n-1].focus();break}if(t===u.Keys.right&&n<i.length-1){i[n+1].focus();break}}}},e.prototype.keepFocusWithinComponent=function(e,t){var i=this.wrapper.nativeElement,n=this.getFirstAndLastFocusable(i),o=n[0],r=n[1],s=!t.shiftKey&&e===r,a=t.shiftKey&&e===o;s&&(t.preventDefault(),o.focus()),a&&(t.preventDefault(),r.focus())},e.prototype.shouldFocusPrimary=function(e){return u.isPresent(e)&&u.isFocusable(e)},e.prototype.getAllFocusableChildren=function(e){return e.querySelectorAll(u.focusableSelector)},e.prototype.getFirstAndLastFocusable=function(e){var t=this.getAllFocusableChildren(e);return[t.length>0?t[0]:e,t.length>0?t[t.length-1]:e]},e.prototype.generateTitleId=function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()},e.prototype.generateContentId=function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()},Object.defineProperty(e.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styles",{get:function(){var e={};return this.width&&(e.width=u.createValueWithUnit(this.width)),this.height&&(e.height=u.createValueWithUnit(this.height)),this.minWidth&&(e.minWidth=u.createValueWithUnit(this.minWidth)),this.maxWidth&&(e.maxWidth=u.createValueWithUnit(this.maxWidth)),this.minHeight&&(e.minHeight=u.createValueWithUnit(this.minHeight)),this.maxHeight&&(e.maxHeight=u.createValueWithUnit(this.maxHeight)),e},enumerable:!0,configurable:!0}),e.prototype.bubble=function(e,t){var i=this;if(t){var n=t[e].subscribe((function(t){return i[e].emit(t)}));this.subscriptions.push(n)}},n.__decorate([o.Input(),n.__metadata("design:type",Array)],e.prototype,"actions",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"actionsLayout",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"autoFocusedElement",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"width",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"minWidth",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"maxWidth",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"height",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"minHeight",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"maxHeight",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"action",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),n.__decorate([o.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),n.__decorate([o.HostBinding("attr.tabIndex"),n.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),n.__decorate([o.ContentChildren(a.DialogTitleBarComponent,{descendants:!1}),n.__metadata("design:type",o.QueryList)],e.prototype,"titlebarContent",void 0),n.__decorate([o.ViewChildren(a.DialogTitleBarComponent),n.__metadata("design:type",o.QueryList)],e.prototype,"titlebarView",void 0),n.__decorate([o.ViewChild(s.DialogActionsComponent,{static:!1}),n.__metadata("design:type",s.DialogActionsComponent)],e.prototype,"actionsView",void 0),n.__decorate([o.HostBinding("class.k-dialog-wrapper"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"wrapperClass",null),e=n.__decorate([o.Component({animations:[r.trigger("overlayAppear",[r.state("in",r.style({opacity:1})),r.transition("void => *",[r.style({opacity:.1}),r.animate(".3s cubic-bezier(.2, .6, .4, 1)")])]),r.trigger("dialogSlideInAppear",[r.state("in",r.style({transform:"translate(0, 0)"})),r.transition("void => *",[r.style({transform:"translate(0, -10%)"}),r.animate(".3s cubic-bezier(.2, 1, .2, 1)")])])],exportAs:"kendoDialog",providers:[c.LocalizationService,{provide:g.DIALOG_LOCALIZATION_SERVICE,useExisting:c.LocalizationService},{provide:c.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 '}),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,c.LocalizationService,o.ChangeDetectorRef,o.NgZone])],e)}();t.DialogComponent=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.DialogAction=n;var o=function(){};t.DialogCloseResult=o;var r=function(){};t.DialogSettings=r;var s=function(){};t.DialogRef=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=function(){function e(){}var t;return t=e,Object.defineProperty(e.prototype,"container",{get:function(){return t.container},set:function(e){t.container=e},enumerable:!0,configurable:!0}),e.container=null,e=t=n.__decorate([o.Injectable()],e)}();t.DialogContainerService=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(2),s=i(9),a=i(4),c=i(19),l=i(20),d=i(5),u=i(3),p=i(3),g=i(23),h=i(15),m=i(38),f=function(){function e(e,t,i,n,r,s){var d=this;this.el=e,this.renderer=t,this.service=i,this.navigation=n,this.ngZone=r,this.localization=s,this.keepContent=!1,this.dragStart=new o.EventEmitter,this.dragEnd=new o.EventEmitter,this.resizeStart=new o.EventEmitter,this.resizeEnd=new o.EventEmitter,this.close=new o.EventEmitter,this.widthChange=new o.EventEmitter,this.heightChange=new o.EventEmitter,this.topChange=new o.EventEmitter,this.leftChange=new o.EventEmitter,this.stateChange=new o.EventEmitter,this.messages={},this.tabIndex=0,this.draged=!1,this.resized=!1,this.windowSubscription=new a.Subscription,this.domSubs=new a.Subscription,c.validatePackage(l.packageMetadata),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe((function(e){var t=e.rtl;return d.direction=t?"rtl":"ltr"})),this.resizeDirections=p.RESIZE_DIRECTIONS,this.subscribeEvents()}return Object.defineProperty(e.prototype,"draggable",{get:function(){return this.options.draggable},set:function(e){this.options.draggable=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this.options.resizable},set:function(e){this.options.resizable=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){u.setHTMLAttributes(e,this.renderer,this.el.nativeElement);var t=this.el.nativeElement,i=t.getAttribute("dir"),n=t.getAttribute("tabindex");this.direction!==i&&(this.direction=i),this.tabIndex!==n&&(this.tabIndex=n),this._htmlAttributes=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this.options.state},set:function(e){this.options.state=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.options.minWidth},set:function(e){this.setOption("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.options.minHeight},set:function(e){this.setOption("minHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.options.width},set:function(e){this.setOption("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.options.height},set:function(e){this.setOption("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.options.top},set:function(e){this.setOption("top",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.options.left},set:function(e){this.setOption("left",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closeButtonTitle",{get:function(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"restoreButtonTitle",{get:function(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximizeButtonTitle",{get:function(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimizeButtonTitle",{get:function(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.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()},e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)},e.prototype.ngOnChanges=function(e){var t=this;if(u.OFFSET_STYLES.forEach((function(i){s.isChanged(i,e)&&t.setStyle(i,t.options[i])})),s.isChanged("draggable",e)){var i=u.isPresent(this.titleBarContent)?this.titleBarContent:this.titleBarView;u.isTruthy(e.draggable.currentValue)?i.subscribeDrag():i.unsubscribeDrag()}s.isChanged("state",e)&&(u.isPresent(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))},e.prototype.ngOnDestroy=function(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()},e.prototype.focus=function(){var e=this.el.nativeElement;u.isPresent(e)&&e.focus()},e.prototype.bringToFront=function(){this.setNextZIndex()},e.prototype.setDimension=function(e,t){this.setOption(e,t),this.setStyle(e,t)},e.prototype.setOffset=function(e,t){this.setOption(e,t),this.setStyle(e,t)},Object.defineProperty(e.prototype,"showDefaultTitleBar",{get:function(){return!u.isPresent(this.titleBarContent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styleMinWidth",{get:function(){return this.minWidth+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styleMinHeight",{get:function(){return this.minHeight+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stylePosition",{get:function(){return this.options.position},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperMaximizedClass",{get:function(){return"maximized"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperMinimizedClass",{get:function(){return"minimized"===this.state},enumerable:!0,configurable:!0}),e.prototype.onComponentFocus=function(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()},e.prototype.onComponentBlur=function(){this.renderer.removeClass(this.el.nativeElement,"k-focus")},e.prototype.subscribeEvents=function(){var e=this;s.isDocumentAvailable()&&(this.windowSubscription.add(this.service.focus.subscribe((function(){e.el.nativeElement.focus()}))),this.windowSubscription.add(this.service.dragStart.subscribe((function(){e.draged=!0,e.ngZone.run((function(){e.dragStart.emit()}))}))),this.windowSubscription.add(this.service.dragEnd.subscribe((function(){e.draged&&(e.draged=!1,e.ngZone.run((function(){e.dragEnd.emit()})))}))),this.windowSubscription.add(this.service.close.subscribe((function(){e.close.emit()}))),this.windowSubscription.add(this.service.resizeStart.subscribe((function(){e.resized=!0,e.ngZone.run((function(){e.resizeStart.emit()}))}))),this.windowSubscription.add(this.service.resizeEnd.subscribe((function(){e.resized&&(e.resized=!1,e.ngZone.run((function(){e.resizeEnd.emit()})))}))),this.windowSubscription.add(this.service.change.subscribe((function(t){u.OFFSET_STYLES.forEach((function(i){if(u.isPresent(t[i])&&(e.setStyle(i,t[i]),"maximized"!==e.state)){var n=e[i+"Change"];n.observers.length&&e.ngZone.run((function(){n.emit(t[i])}))}}))}))),this.windowSubscription.add(this.service.stateChange.subscribe((function(t){u.isPresent(e.service.lastAction)&&(e.updateAllOffset(),e.stateChange.emit(t))}))))},e.prototype.initDomEvents=function(){var e=this;this.el&&this.ngZone.runOutsideAngular((function(){e.domSubs.add(e.renderer.listen(e.el.nativeElement,"keydown",(function(t){e.onKeyDown(t)})))}))},e.prototype.onKeyDown=function(e){u.hasClasses(e.target,u.WINDOW_CLASSES)&&this.navigation.process(e)},e.prototype.setServiceClasses=function(e,t){var i=this,n=this.el.nativeElement;e&&u.parseCSSClassNames(e).forEach((function(e){i.renderer.removeClass(n,e)})),t&&u.parseCSSClassNames(t).forEach((function(e){i.renderer.addClass(n,e)}))},e.prototype.setNextZIndex=function(){var e=this.el.nativeElement.style["z-index"],t=this.service.nextPossibleZIndex;(!e||t-e>1)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)},e.prototype.setInitialOffset=function(){if("maximized"!==this.state)this.updateAllOffset(),u.isPresent(this.left)&&u.isPresent(this.top)||this.service.center();else{var e=this.service.windowViewPort;this.setStyle("width",e.width),this.setStyle("height",e.height),this.setStyle("top",0),this.setStyle("left",0)}},e.prototype.updateAllOffset=function(){var e=this;u.OFFSET_STYLES.forEach((function(t){u.isPresent(e[t])?e.setStyle(t,e[t]):e.removeStyle(t)}))},e.prototype.setStyle=function(e,t){this.renderer.setStyle(this.el.nativeElement,e,t+"px")},e.prototype.removeStyle=function(e){this.renderer.removeStyle(this.el.nativeElement,e)},Object.defineProperty(e.prototype,"options",{get:function(){return this.service.options},enumerable:!0,configurable:!0}),e.prototype.setOption=function(e,t){if("number"==typeof t||"string"==typeof t){var i="number"==typeof t?t:parseInt(t,10);this.options[e]=i,this.service.setRestoreOption(e,i)}},e.prototype.handleInitialFocus=function(){var e=this.el.nativeElement;if(this.autoFocusedElement){var t=e.querySelector(this.autoFocusedElement);t&&t.focus()}else this.focus()},n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"autoFocusedElement",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"draggable",null),n.__decorate([o.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"resizable",null),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"keepContent",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"state",null),n.__decorate([o.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"minWidth",null),n.__decorate([o.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"minHeight",null),n.__decorate([o.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"width",null),n.__decorate([o.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"height",null),n.__decorate([o.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"top",null),n.__decorate([o.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"left",null),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"dragStart",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"dragEnd",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"resizeStart",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"resizeEnd",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"widthChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"heightChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"topChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"leftChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"stateChange",void 0),n.__decorate([o.HostBinding("attr.tabIndex"),n.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),n.__decorate([o.HostBinding("class.k-window"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"hostClasses",null),n.__decorate([o.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),n.__decorate([o.ViewChild(h.WindowTitleBarComponent,{static:!1}),n.__metadata("design:type",h.WindowTitleBarComponent)],e.prototype,"titleBarView",void 0),n.__decorate([o.ContentChild(h.WindowTitleBarComponent,{static:!1}),n.__metadata("design:type",h.WindowTitleBarComponent)],e.prototype,"titleBarContent",void 0),n.__decorate([o.ViewChildren(g.ResizeHandleDirective),n.__metadata("design:type",o.QueryList)],e.prototype,"resizeHandles",void 0),n.__decorate([o.HostBinding("style.minWidth"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"styleMinWidth",null),n.__decorate([o.HostBinding("style.minHeight"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"styleMinHeight",null),n.__decorate([o.HostBinding("style.position"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"stylePosition",null),n.__decorate([o.HostBinding("class.k-window-maximized"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"wrapperMaximizedClass",null),n.__decorate([o.HostBinding("class.k-window-minimized"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"wrapperMinimizedClass",null),n.__decorate([o.HostListener("focus"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],e.prototype,"onComponentFocus",null),n.__decorate([o.HostListener("blur"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],e.prototype,"onComponentBlur",null),e=n.__decorate([o.Component({exportAs:"kendoWindow",providers:[d.DragResizeService,m.NavigationService,r.LocalizationService,{provide:r.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 '}),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,d.DragResizeService,m.NavigationService,o.NgZone,r.LocalizationService])],e)}();t.WindowComponent=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(9),s=i(5),a=i(4),c=i(3),l=function(){function e(e,t,i){this.el=e,this.ngZone=i,this.service=t}return e.prototype.ngOnInit=function(){this.dragDirective=new r.DraggableDirective(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()},e.prototype.ngOnDestroy=function(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()},e.prototype.subscribeDrag=function(){var e=this;this.unsubscribeDrag(),this.dragSubscription=a.of(this.dragDirective).subscribe((function(t){e.service.onDrag(t)}))},e.prototype.subscribeStateChange=function(){var e=this;this.stateSubscription=this.service.stateChange.subscribe((function(t){e.service.options.draggable&&("maximized"===t?e.unsubscribeDrag():e.subscribeDrag())}))},e.prototype.unsubscribeDrag=function(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)},e.prototype.unsubscribeState=function(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)},Object.defineProperty(e.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touchAction",{get:function(){if(this.isDraggable)return"none"},enumerable:!0,configurable:!0}),e.prototype.handle=function(e){var t=e.target,i=this.service.options.state;c.hasClasses(t,"k-icon")||c.isFocusable(t,!1)||!this.service.options.resizable||("default"===i?this.service.maximizeAction():"maximized"===i&&this.service.restoreAction())},Object.defineProperty(e.prototype,"isDraggable",{get:function(){var e=this.service.options;return e.draggable&&"maximized"!==e.state},enumerable:!0,configurable:!0}),n.__decorate([o.Input(),n.__metadata("design:type",o.TemplateRef)],e.prototype,"template",void 0),n.__decorate([o.HostBinding("class.k-window-titlebar"),o.HostBinding("class.k-dialog-titlebar"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"className",null),n.__decorate([o.HostBinding("style.touch-action"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"touchAction",null),n.__decorate([o.HostListener("dblclick",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"handle",null),e=n.__decorate([o.Component({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 '}),n.__metadata("design:paramtypes",[o.ElementRef,s.DragResizeService,o.NgZone])],e)}();t.WindowTitleBarComponent=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=function(){function e(){}var t;return t=e,Object.defineProperty(e.prototype,"container",{get:function(){return t.container},set:function(e){t.container=e},enumerable:!0,configurable:!0}),e.container=null,e=t=n.__decorate([o.Injectable()],e)}();t.WindowContainerService=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0);t.DIALOG_LOCALIZATION_SERVICE=new n.InjectionToken("Dialog LocalizationService")},function(e,t){e.exports=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646820184,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"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(7),r=i(8),s=i(0),a=i(6),c=function(){function e(e){this.dialog=e}return e.prototype.ngAfterViewInit=function(){var e=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(a.filter((function(e){return!e.isDefaultPrevented()}))).subscribe((function(){e.dialog.close()})),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe((function(t){return e.dialog.dialog.instance.action.emit(t)}))},n.__decorate([s.ViewChild(r.DialogTitleBarComponent,{static:!1}),n.__metadata("design:type",r.DialogTitleBarComponent)],e.prototype,"dialogTitleBar",void 0),n.__decorate([s.ViewChild(o.DialogActionsComponent,{static:!1}),n.__metadata("design:type",o.DialogActionsComponent)],e.prototype,"dialogActions",void 0),e}();t.DialogContentBase=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(4),r=i(6),s=i(0),a=i(11),c=i(13),l=i(12),d=i(21),u=i(17),p=i(3),g=function(){function e(e,t){this.getDialogRef=e,this.parentInjector=t}return e.prototype.get=function(e,t){return e===l.DialogRef?this.getDialogRef():this.parentInjector.get(e,t)},e}(),h=function(){function e(e,t){this.resolver=e,this.containerService=t}return e.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(a.DialogComponent),i=e.appendTo||this.containerService.container;if(!i)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,i,{close:function(){},content:null,dialog:null,result:null},e)},e.prototype.initializeDialog=function(e,t,i,n,a){var c=this.contentFrom(e,i,n),g=i.createComponent(t,void 0,void 0,c.nodes);n.dialog=g,g.changeDetectorRef.markForCheck(),this.applyOptions(g.instance,a);var h=new o.Subject,m=function(e){e instanceof u.PreventableEvent&&(e=new l.DialogCloseResult),h.next(e||new l.DialogCloseResult),c.componentRef&&c.componentRef.destroy(),g.destroy()},f=o.merge(h,o.merge(g.instance.close,g.instance.action).pipe(r.map((function(e){return e instanceof u.PreventableEvent?new l.DialogCloseResult:e})),r.filter((function(t){if(a.preventAction){var i=function(e){return p.isString(e)||e instanceof s.TemplateRef}(e)?void 0:n;return!a.preventAction(t,i)}return!0})))).pipe(r.take(1),r.share());if(f.subscribe(m),n.close=m,n.result=f,e&&s.isDevMode()){var _=c.nodes[0]&&c.nodes[0].length>0,y=c.nodes[2]&&c.nodes[2].length>0,b=a.title&&_,v=a.actions&&y;e.prototype instanceof d.DialogContentBase?(b||v)&&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'"):(_||y)&&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'")}return n},e.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 s.TemplateRef&&(e.contentTemplate=t.content)},e.prototype.contentFrom=function(e,t,i){var n=t.injector.get(s.Renderer2),o=[],r=[],a=[],c=null;if("string"==typeof e)o=[n.createText(e)];else if(e&&!(e instanceof s.TemplateRef)){var l=new g((function(){return i}),t.injector),d=this.resolver.resolveComponentFactory(e);c=t.createComponent(d,void 0,l),r=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),o=[c.location.nativeElement],a=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-actions")),i.content=c}return{componentRef:c,nodes:[r,o,a]}},e=n.__decorate([s.Injectable(),n.__param(1,s.Inject(c.DialogContainerService)),n.__metadata("design:paramtypes",[s.ComponentFactoryResolver,c.DialogContainerService])],e)}();t.DialogService=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(9),s=i(5),a=i(4),c=function(){function e(e,t,i,n){this.draggable=e,this.el=t,this.renderer=i,this.service=n,this.subscriptions=new a.Subscription}return Object.defineProperty(e.prototype,"hostClass",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(a.of(this.draggable).subscribe((function(t){e.service.onResize(t,e.direction)}))),this.subscriptions.add(this.service.resizeStart.subscribe((function(t){t!==e.direction&&e.setDisplay("none")}))),this.subscriptions.add(this.service.dragStart.subscribe((function(){e.setDisplay("none")}))),this.subscriptions.add(a.merge(this.service.resizeEnd,this.service.dragEnd).subscribe((function(){e.setDisplay("block")}))),this.subscriptions.add(this.service.stateChange.subscribe((function(t){e.setDisplay("default"===t?"block":"none")})))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisplay=function(e){void 0===e&&(e="block"),this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?e:"none")},n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([o.HostBinding("class.k-resize-handle"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"hostClass",null),e=n.__decorate([o.Directive({selector:"[kendoWindowResizeHandle]"}),n.__param(0,o.Host()),n.__metadata("design:paramtypes",[r.DraggableDirective,o.ElementRef,o.Renderer2,s.DragResizeService])],e)}();t.ResizeHandleDirective=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(5),s=i(10),a=i(2),c=function(e){function t(t,i,n,o,r){var s=e.call(this,t,i,null,o,r)||this;return s.buttonType="button",s.window=n,s.fillMode="flat",s.icon="window-maximize",s}return n.__extends(t,e),t.prototype.onClick=function(){this.isDisabled||this.window.maximizeAction()},Object.defineProperty(t.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!0,configurable:!0}),n.__decorate([o.Input(),n.__metadata("design:type",Object)],t.prototype,"window",void 0),n.__decorate([o.HostBinding("attr.type"),n.__metadata("design:type",String)],t.prototype,"buttonType",void 0),n.__decorate([o.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"onClick",null),n.__decorate([o.HostBinding("style.display"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],t.prototype,"visible",null),t=n.__decorate([o.Directive({exportAs:"kendoWindowMaximizeAction",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMaximizeAction]"}),n.__param(2,o.Optional()),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,a.LocalizationService,o.NgZone])],t)}(s.Button);t.WindowMaximizeActionDirective=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(5),s=i(10),a=i(2),c=function(e){function t(t,i,n,o,r){var s=e.call(this,t,i,null,o,r)||this;return s.buttonType="button",s.window=n,s.fillMode="flat",s.icon="window-minimize",s}return n.__extends(t,e),t.prototype.onClick=function(){this.isDisabled||this.window.minimizeAction()},Object.defineProperty(t.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!0,configurable:!0}),n.__decorate([o.Input(),n.__metadata("design:type",Object)],t.prototype,"window",void 0),n.__decorate([o.HostBinding("attr.type"),n.__metadata("design:type",String)],t.prototype,"buttonType",void 0),n.__decorate([o.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"onClick",null),n.__decorate([o.HostBinding("style.display"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],t.prototype,"visible",null),t=n.__decorate([o.Directive({exportAs:"kendoWindowMinimizeAction",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMinimizeAction]"}),n.__param(2,o.Optional()),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,a.LocalizationService,o.NgZone])],t)}(s.Button);t.WindowMinimizeActionDirective=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(5),s=i(10),a=i(2),c=function(e){function t(t,i,n,o,r){var s=e.call(this,t,i,null,o,r)||this;return s.buttonType="button",s.window=n,s.fillMode="flat",s.icon="close",s}return n.__extends(t,e),t.prototype.onClick=function(){this.isDisabled||this.window.closeAction()},n.__decorate([o.Input(),n.__metadata("design:type",Object)],t.prototype,"window",void 0),n.__decorate([o.HostBinding("attr.type"),n.__metadata("design:type",String)],t.prototype,"buttonType",void 0),n.__decorate([o.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"onClick",null),t=n.__decorate([o.Directive({exportAs:"kendoWindowCloseAction",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowCloseAction]"}),n.__param(2,o.Optional()),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,a.LocalizationService,o.NgZone])],t)}(s.Button);t.WindowCloseActionDirective=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(5),s=i(10),a=i(2),c=function(e){function t(t,i,n,o,r){var s=e.call(this,t,i,null,o,r)||this;return s.buttonType="button",s.window=n,s.fillMode="flat",s.icon="window-restore",s}return n.__extends(t,e),t.prototype.onClick=function(){this.isDisabled||this.window.restoreAction()},Object.defineProperty(t.prototype,"visible",{get:function(){return"default"===this.window.options.state?"none":"inline-flex"},enumerable:!0,configurable:!0}),n.__decorate([o.Input(),n.__metadata("design:type",Object)],t.prototype,"window",void 0),n.__decorate([o.HostBinding("attr.type"),n.__metadata("design:type",String)],t.prototype,"buttonType",void 0),n.__decorate([o.HostListener("click"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"onClick",null),n.__decorate([o.HostBinding("style.display"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],t.prototype,"visible",null),t=n.__decorate([o.Directive({exportAs:"kendoWindowRestoreAction",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowRestoreAction]"}),n.__param(2,o.Optional()),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.DragResizeService,a.LocalizationService,o.NgZone])],t)}(s.Button);t.WindowRestoreActionDirective=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.WindowSettings=n;var o=function(){};t.WindowCloseResult=o;var r=function(){};t.WindowRef=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(4),s=i(6),a=i(28),c=i(14),l=i(3),d=i(16),u=function(){function e(e,t){this.getWindowRef=e,this.parentInjector=t}return e.prototype.get=function(e,t){return e===a.WindowRef?this.getWindowRef():this.parentInjector.get(e,t)},e}(),p=function(){function e(e,t){this.resolver=e,this.containerService=t}return e.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(c.WindowComponent),i=e.appendTo||this.containerService.container;if(!i)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 ");var n={close:function(){},content:null,result:null,window:null},d=this.contentFrom(e.content,i,n),u=i.createComponent(t,void 0,void 0,d.nodes);n.window=u,this.applyOptions(u.instance,e);var p=new r.Subject,g=function(e){p.next(e||new a.WindowCloseResult),d.componentRef&&d.componentRef.destroy(),u.destroy()},h=r.merge(p,u.instance.close.pipe(s.map((function(e){return e||new a.WindowCloseResult})),s.filter((function(t){if(e.preventClose){var i=(r=e.content,l.isString(r)||r instanceof o.TemplateRef?void 0:n);return!e.preventClose(t,i)}var r;return!0})))).pipe(s.take(1),s.share());return h.subscribe(g),n.close=g,n.result=h,u.changeDetectorRef.markForCheck(),n},e.prototype.applyOptions=function(e,t){l.isPresent(t.htmlAttributes)&&(e.htmlAttributes=t.htmlAttributes),l.isPresent(t.cssClass)&&(e.cssClass=t.cssClass),l.isPresent(t.title)&&(e.title=t.title),l.isPresent(t.keepContent)&&(e.keepContent=t.keepContent),l.isPresent(t.width)&&(e.width=t.width),l.isPresent(t.minWidth)&&(e.minWidth=t.minWidth),l.isPresent(t.height)&&(e.height=t.height),l.isPresent(t.minHeight)&&(e.minHeight=t.minHeight),l.isPresent(t.left)&&(e.left=t.left),l.isPresent(t.top)&&(e.top=t.top),l.isPresent(t.draggable)&&(e.draggable=t.draggable),l.isPresent(t.resizable)&&(e.resizable=t.resizable),l.isPresent(t.messages&&t.messages.closeTitle)&&(e.messages.closeTitle=t.messages.closeTitle),l.isPresent(t.messages&&t.messages.restoreTitle)&&(e.messages.restoreTitle=t.messages.restoreTitle),l.isPresent(t.messages&&t.messages.maximizeTitle)&&(e.messages.maximizeTitle=t.messages.maximizeTitle),l.isPresent(t.messages&&t.messages.minimizeTitle)&&(e.messages.minimizeTitle=t.messages.minimizeTitle),l.isPresent(t.autoFocusedElement)&&(e.autoFocusedElement=t.autoFocusedElement),l.isPresent(t.state)&&(e.state=t.state,"minimized"===t.state&&(e.keepContent=!0)),t.content instanceof o.TemplateRef&&(e.contentTemplate=t.content),t.titleBarContent instanceof o.TemplateRef&&(e.titleBarTemplate=t.titleBarContent)},e.prototype.contentFrom=function(e,t,i){var n=t.injector.get(o.Renderer2),r=[],s=null;if("string"==typeof e)r=[n.createText(e)];else if(e&&!(e instanceof o.TemplateRef)){var a=new u((function(){return i}),t.injector),c=this.resolver.resolveComponentFactory(e);r=[(s=t.createComponent(c,void 0,a)).location.nativeElement],i.content=s}return{componentRef:s,nodes:[[],r]}},e=n.__decorate([o.Injectable(),n.__param(1,o.Inject(d.WindowContainerService)),n.__metadata("design:paramtypes",[o.ComponentFactoryResolver,d.WindowContainerService])],e)}();t.WindowService=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(11),s=i(8),a=i(22),c=i(39),l=i(13),d=i(31);t.DIALOG_DIRECTIVES=[r.DialogComponent,s.DialogTitleBarComponent];var u=function(){function e(){}return e=n.__decorate([o.NgModule({declarations:[t.DIALOG_DIRECTIVES,c.DialogContainerDirective],entryComponents:[t.DIALOG_DIRECTIVES],exports:[t.DIALOG_DIRECTIVES,d.SHARED_DIRECTIVES,c.DialogContainerDirective],imports:[d.SharedModule],providers:[l.DialogContainerService,a.DialogService]})],e)}();t.DialogModule=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(40),s=i(7),a=i(41),c=i(42);t.SHARED_DIRECTIVES=[s.DialogActionsComponent,c.CustomMessagesComponent,a.LocalizedMessagesDirective];var l=function(){function e(){}return e=n.__decorate([o.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES,r.CommonModule],imports:[r.CommonModule]})],e)}();t.SharedModule=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"restoreTitle",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"maximizeTitle",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"minimizeTitle",void 0),t}(i(2).ComponentMessages);t.Messages=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(14),s=i(15),a=i(9),c=i(23),l=i(24),d=i(25),u=i(26),p=i(27),g=i(29),h=i(16),m=i(43),f=i(31),_=[c.ResizeHandleDirective,r.WindowComponent,s.WindowTitleBarComponent,u.WindowCloseActionDirective,d.WindowMinimizeActionDirective,l.WindowMaximizeActionDirective,p.WindowRestoreActionDirective],y=[r.WindowComponent,s.WindowTitleBarComponent],b=[r.WindowComponent,u.WindowCloseActionDirective,d.WindowMinimizeActionDirective,l.WindowMaximizeActionDirective,p.WindowRestoreActionDirective,s.WindowTitleBarComponent],v=function(){function e(){}return e=n.__decorate([o.NgModule({declarations:[_,m.WindowContainerDirective],entryComponents:[y],exports:[b,f.SHARED_DIRECTIVES,m.WindowContainerDirective],imports:[f.SharedModule,a.DraggableModule],providers:[h.WindowContainerService,g.WindowService]})],e)}();t.WindowModule=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(11);t.DialogComponent=n.DialogComponent;var o=i(8);t.DialogTitleBarComponent=o.DialogTitleBarComponent;var r=i(21);t.DialogContentBase=r.DialogContentBase;var s=i(7);t.DialogActionsComponent=s.DialogActionsComponent;var a=i(22);t.DialogService=a.DialogService;var c=i(12);t.DialogCloseResult=c.DialogCloseResult,t.DialogRef=c.DialogRef,t.DialogSettings=c.DialogSettings,t.DialogAction=c.DialogAction;var l=i(14);t.WindowComponent=l.WindowComponent;var d=i(15);t.WindowTitleBarComponent=d.WindowTitleBarComponent;var u=i(24);t.WindowMaximizeActionDirective=u.WindowMaximizeActionDirective;var p=i(25);t.WindowMinimizeActionDirective=p.WindowMinimizeActionDirective;var g=i(26);t.WindowCloseActionDirective=g.WindowCloseActionDirective;var h=i(27);t.WindowRestoreActionDirective=h.WindowRestoreActionDirective;var m=i(28);t.WindowSettings=m.WindowSettings,t.WindowRef=m.WindowRef,t.WindowCloseResult=m.WindowCloseResult;var f=i(29);t.WindowService=f.WindowService;var _=i(30);t.DialogModule=_.DialogModule;var y=i(33);t.WindowModule=y.WindowModule;var b=i(44);t.DialogsModule=b.DialogsModule},function(e,t){e.exports=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(2),r=i(0),s=i(18),a=function(e){function t(t,i,n,o){var r=e.call(this,t,i,n)||this;return r.dialogLocalization=o,r}return n.__extends(t,e),t.prototype.get=function(t){return this.dialogLocalization?this.dialogLocalization.get(t):e.prototype.get.call(this,t)},t=n.__decorate([n.__param(0,r.Inject(o.L10N_PREFIX)),n.__param(1,r.Optional()),n.__param(2,r.Optional()),n.__param(2,r.Inject(o.RTL)),n.__param(3,r.Optional()),n.__param(3,r.Inject(s.DIALOG_LOCALIZATION_SERVICE)),n.__metadata("design:paramtypes",[String,o.MessageService,Boolean,o.LocalizationService])],t)}(o.LocalizationService);t.TitleBarLocalizationService=a},function(e,t){e.exports=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(5),s=i(3),a=function(){function e(e,t){this.window=e,this.ngZone=t}return e.prototype.process=function(e){var t=this,i=e.keyCode;switch(i){case s.Keys.up:case s.Keys.down:case s.Keys.left:case s.Keys.right:e.preventDefault(),this.ngZone.run((function(){t.handleArrow(i,e)}));break;case s.Keys.esc:this.ngZone.run((function(){t.handleEscape()}))}},e.prototype.handleArrow=function(e,t){var i=this.window.options;t.altKey?this.handleStateChange(e,i.state):(t.ctrlKey||t.metaKey)&&"default"===i.state?this.handleResize(e):this.handleDrag(e)},e.prototype.handleEscape=function(){this.window.closeAction()},e.prototype.handleDrag=function(e){var t=this.window.options;if(t.draggable){var i=this.window.currentOffsetAndPosition(),n=this.window.restoreOptions,o={},r=10;switch(e!==s.Keys.left&&e!==s.Keys.up||(r*=-1),e){case s.Keys.left:case s.Keys.right:o.left=i.x+r,t.left=o.left;break;case s.Keys.up:case s.Keys.down:o.top=i.y+r,t.top=o.top}"minimized"===t.state&&s.isPresent(n)&&(n.left=t.left,n.top=t.top),this.window.change.emit(o)}},e.prototype.handleResize=function(e){var t=this,i=this.window.options;if(i.resizable){var n,o,r=this.window.currentOffsetAndPosition(),a={},c=10;switch(e!==s.Keys.left&&e!==s.Keys.up||(c*=-1),e){case s.Keys.left:case s.Keys.right:(n=r.width+c)!==i.width&&n>=i.minWidth&&(a.width=n);break;case s.Keys.up:case s.Keys.down:(o=r.height+c)!==i.height&&o>=i.minHeight&&(a.height=o)}(s.isPresent(a.width)||s.isPresent(a.height))&&(s.OFFSET_STYLES.forEach((function(e){s.isPresent(a[e])&&(t.window.options[e]=a[e])})),this.window.change.emit(a))}},e.prototype.handleStateChange=function(e,t){"minimized"===t&&e===s.Keys.up||"maximized"===t&&e===s.Keys.down?this.window.restoreAction():"default"===t&&(e===s.Keys.up?this.window.maximizeAction():e===s.Keys.down&&this.window.minimizeAction())},e=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[r.DragResizeService,o.NgZone])],e)}();t.NavigationService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(13),s=function(){function e(e,t){t.container=e}return e=n.__decorate([o.Directive({selector:"[kendoDialogContainer]"}),n.__metadata("design:paramtypes",[o.ViewContainerRef,r.DialogContainerService])],e)}();t.DialogContainerDirective=s},function(e,t){e.exports=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(2),s=i(32),a=function(e){function t(t){var i=e.call(this)||this;return i.service=t,i}var i;return n.__extends(t,e),i=t,t=i=n.__decorate([o.Directive({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return i}))}],selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(s.Messages);t.LocalizedMessagesDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(2),s=i(32),a=function(e){function t(t){var i=e.call(this)||this;return i.service=t,i}var i;return n.__extends(t,e),i=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=i=n.__decorate([o.Component({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return i}))}],selector:"kendo-dialog-messages, kendo-window-messages",template:""}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(s.Messages);t.CustomMessagesComponent=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(16),s=function(){function e(e,t){t.container=e}return e=n.__decorate([o.Directive({selector:"[kendoWindowContainer]"}),n.__metadata("design:paramtypes",[o.ViewContainerRef,r.WindowContainerService])],e)}();t.WindowContainerDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(30),s=i(33),a=function(){function e(){}return e=n.__decorate([o.NgModule({exports:[r.DialogModule,s.WindowModule]})],e)}();t.DialogsModule=a}])}));
@@ -1,29 +0,0 @@
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
- * @hidden
7
- */
8
- var PreventableEvent = /** @class */ (function () {
9
- function PreventableEvent() {
10
- this.prevented = false;
11
- }
12
- /**
13
- * Prevents the default action for a specified event.
14
- * In this way, the source component suppresses the built-in behavior that follows the event.
15
- */
16
- PreventableEvent.prototype.preventDefault = function () {
17
- this.prevented = true;
18
- };
19
- /**
20
- * If the event is prevented by any of its subscribers, returns `true`.
21
- *
22
- * @returns `true` if the default action was prevented. Otherwise, returns `false`.
23
- */
24
- PreventableEvent.prototype.isDefaultPrevented = function () {
25
- return this.prevented;
26
- };
27
- return PreventableEvent;
28
- }());
29
- export { PreventableEvent };
@@ -1,214 +0,0 @@
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 { of } from 'rxjs';
6
- import { delay, takeUntil } from 'rxjs/operators';
7
- /**
8
- * @hidden
9
- */
10
- export var isPresent = function (value) { return value !== null && value !== undefined; };
11
- /**
12
- * @hidden
13
- */
14
- export var isTruthy = function (value) { return !!value; };
15
- var toClassList = function (classNames) { return String(classNames).trim().split(' '); };
16
- var ɵ0 = toClassList;
17
- var focusableRegex = /^(?:a|input|select|textarea|button|object)$/i;
18
- /**
19
- * @hidden
20
- */
21
- export var Keys;
22
- (function (Keys) {
23
- Keys[Keys["esc"] = 27] = "esc";
24
- Keys[Keys["tab"] = 9] = "tab";
25
- Keys[Keys["enter"] = 13] = "enter";
26
- Keys[Keys["space"] = 32] = "space";
27
- Keys[Keys["ctrl"] = 17] = "ctrl";
28
- Keys[Keys["shift"] = 16] = "shift";
29
- Keys[Keys["left"] = 37] = "left";
30
- Keys[Keys["up"] = 38] = "up";
31
- Keys[Keys["right"] = 39] = "right";
32
- Keys[Keys["down"] = 40] = "down";
33
- })(Keys || (Keys = {}));
34
- /**
35
- * @hidden
36
- */
37
- export var DIALOG_ELEMENTS_HANDLING_ESC_KEY = 'k-dialog-wrapper k-dialog-buttongroup k-dialog-action';
38
- /**
39
- * @hidden
40
- */
41
- export var DIALOG_ELEMENTS_HANDLING_ARROWS = 'k-dialog-buttongroup';
42
- /**
43
- * @hidden
44
- */
45
- export var WINDOW_CLASSES = 'k-window';
46
- /**
47
- * @hidden
48
- */
49
- export var hasClasses = function (element, classNames) {
50
- var namesList = toClassList(classNames);
51
- return Boolean(toClassList(element.className).find(function (className) { return namesList.indexOf(className) >= 0; }));
52
- };
53
- /**
54
- * @hidden
55
- */
56
- export var isVisible = function (element) {
57
- var rect = element.getBoundingClientRect();
58
- return !!(rect.width && rect.height) && window.getComputedStyle(element).visibility !== 'hidden';
59
- };
60
- /**
61
- * @hidden
62
- */
63
- export var isFocusable = function (element, checkVisibility) {
64
- if (checkVisibility === void 0) { checkVisibility = true; }
65
- if (element.tagName) {
66
- var tagName = element.tagName.toLowerCase();
67
- var tabIndex = element.getAttribute('tabIndex');
68
- var validTabIndex = tabIndex !== null && !isNaN(tabIndex) && tabIndex > -1;
69
- var focusable = false;
70
- if (focusableRegex.test(tagName)) {
71
- focusable = !element.disabled;
72
- }
73
- else {
74
- focusable = validTabIndex;
75
- }
76
- return focusable && (!checkVisibility || isVisible(element));
77
- }
78
- return false;
79
- };
80
- /**
81
- * @hidden
82
- */
83
- export var setHTMLAttributes = function (attributes, renderer, element) {
84
- for (var attribute in attributes) {
85
- if (attribute) {
86
- renderer.setAttribute(element, attribute, attributes[attribute]);
87
- }
88
- }
89
- };
90
- /**
91
- * Receives CSS class declarations either as an object, string or array and returns an array of the class names.
92
- *
93
- * @hidden
94
- */
95
- export var parseCSSClassNames = function (value) {
96
- if (isObject(value)) {
97
- return parseObjectClassNames(value);
98
- }
99
- if (isString(value)) {
100
- return parseStringClassNames(value);
101
- }
102
- if (Array.isArray(value)) {
103
- return parseArrayClassNames(value);
104
- }
105
- };
106
- var parseObjectClassNames = function (value) {
107
- var classes = [];
108
- Object.keys(value).forEach(function (className) {
109
- var currentClassName = splitStringToArray(className);
110
- if (value[className] && currentClassName[0]) {
111
- classes.push.apply(classes, currentClassName);
112
- }
113
- });
114
- return classes;
115
- };
116
- var ɵ1 = parseObjectClassNames;
117
- var parseStringClassNames = function (value) {
118
- var classes = [];
119
- var classesArray = splitStringToArray(value);
120
- classesArray.forEach(function (className) {
121
- classes.push(className);
122
- });
123
- return classes;
124
- };
125
- var ɵ2 = parseStringClassNames;
126
- var parseArrayClassNames = function (value) {
127
- var classes = [];
128
- value.forEach(function (className) {
129
- var current = splitStringToArray(className);
130
- if (current[0]) {
131
- classes.push.apply(classes, current);
132
- }
133
- });
134
- return classes;
135
- };
136
- var ɵ3 = parseArrayClassNames;
137
- /**
138
- * @hidden
139
- */
140
- export var focusableSelector = [
141
- 'a[href]',
142
- 'area[href]',
143
- 'input:not([disabled])',
144
- 'select:not([disabled])',
145
- 'textarea:not([disabled])',
146
- 'button:not([disabled])',
147
- 'iframe',
148
- 'object',
149
- 'embed',
150
- '*[tabindex]',
151
- '*[contenteditable]'
152
- ].join(',');
153
- /**
154
- * @hidden
155
- */
156
- export var preventDefault = function (_a) {
157
- var event = _a.originalEvent;
158
- event.stopPropagation();
159
- event.preventDefault();
160
- };
161
- /**
162
- * @hidden
163
- */
164
- export var isWindowAvailable = function () {
165
- return typeof window !== 'undefined';
166
- };
167
- /**
168
- * @hidden
169
- */
170
- export var preventOnDblClick = function (release) { return function (mouseDown) {
171
- return of(mouseDown).pipe(delay(150), takeUntil(release));
172
- }; };
173
- /**
174
- * @hidden
175
- */
176
- export var RESIZE_DIRECTIONS = ['n', 'e', 's', 'w', 'se', 'sw', 'ne', 'nw'];
177
- /**
178
- * @hidden
179
- */
180
- export var OFFSET_STYLES = ['top', 'left', 'width', 'height'];
181
- /**
182
- * @hidden
183
- */
184
- export var isString = function (value) { return value instanceof String || typeof value === 'string'; };
185
- /**
186
- * @hidden
187
- */
188
- export var isObject = function (value) { return isPresent(value) && !Array.isArray(value) && typeof value === 'object'; };
189
- /**
190
- * @hidden
191
- */
192
- export var isNumber = function (value) { return typeof value === 'number' && isFinite(value); };
193
- /**
194
- * @hidden
195
- */
196
- export var createValueWithUnit = function (value) { return value + (isNumber(value) ? 'px' : ''); };
197
- /**
198
- * @hidden
199
- */
200
- export var splitStringToArray = function (value) { return value.trim().replace(/\s+/g, " ").split(' '); };
201
- /**
202
- * @hidden
203
- */
204
- export var findPrimaryButton = function (buttons) {
205
- for (var i = buttons.length - 1; i >= 0; i--) {
206
- var classList = buttons[i].classList;
207
- for (var j = 0; j < classList.length; j++) {
208
- if (classList[j].endsWith('-primary')) {
209
- return buttons[i];
210
- }
211
- }
212
- }
213
- };
214
- export { ɵ0, ɵ1, ɵ2, ɵ3 };
@@ -1,89 +0,0 @@
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 * as tslib_1 from "tslib";
6
- import { Component, EventEmitter, HostBinding, TemplateRef, Input, Output, ElementRef } from '@angular/core';
7
- import { parseCSSClassNames } from '../common/util';
8
- /**
9
- * Specifies the action buttons of the Dialog
10
- * ([see example]({% slug actionbuttons_dialog %})).
11
- */
12
- var DialogActionsComponent = /** @class */ (function () {
13
- function DialogActionsComponent(el) {
14
- this.el = el;
15
- /**
16
- * Specifies the possible layout of the action buttons.
17
- */
18
- this.layout = 'stretched';
19
- /**
20
- * Fires when the user clicks an action button.
21
- */
22
- this.action = new EventEmitter();
23
- this.buttonGroupClassName = true;
24
- }
25
- Object.defineProperty(DialogActionsComponent.prototype, "className", {
26
- get: function () {
27
- return this.layout === 'stretched';
28
- },
29
- enumerable: true,
30
- configurable: true
31
- });
32
- /**
33
- * @hidden
34
- */
35
- DialogActionsComponent.prototype.actionTemplate = function () {
36
- return this.actions instanceof TemplateRef;
37
- };
38
- /**
39
- * @hidden
40
- */
41
- DialogActionsComponent.prototype.onButtonClick = function (action, _e) {
42
- this.action.emit(action);
43
- };
44
- /**
45
- * @hidden
46
- */
47
- DialogActionsComponent.prototype.buttonClass = function (action) {
48
- var classes = ['k-button k-button-md k-rounded-md'];
49
- var fillMode = action.fillMode ? action.fillMode : 'solid';
50
- var themeColor = action.themeColor ? action.themeColor : 'base';
51
- var cssClasses = action.cssClass ? parseCSSClassNames(action.cssClass) : [];
52
- classes.push("k-button-" + fillMode + " k-button-" + fillMode + "-" + themeColor);
53
- if (cssClasses.length > 0) {
54
- classes = classes.concat(cssClasses);
55
- }
56
- return classes.join(' ');
57
- };
58
- tslib_1.__decorate([
59
- Input(),
60
- tslib_1.__metadata("design:type", Object)
61
- ], DialogActionsComponent.prototype, "actions", void 0);
62
- tslib_1.__decorate([
63
- Input(),
64
- tslib_1.__metadata("design:type", String)
65
- ], DialogActionsComponent.prototype, "layout", void 0);
66
- tslib_1.__decorate([
67
- Output(),
68
- tslib_1.__metadata("design:type", EventEmitter)
69
- ], DialogActionsComponent.prototype, "action", void 0);
70
- tslib_1.__decorate([
71
- HostBinding('class.k-dialog-buttongroup'),
72
- HostBinding('class.k-actions'),
73
- tslib_1.__metadata("design:type", Boolean)
74
- ], DialogActionsComponent.prototype, "buttonGroupClassName", void 0);
75
- tslib_1.__decorate([
76
- HostBinding('class.k-actions-stretched'),
77
- tslib_1.__metadata("design:type", Boolean),
78
- tslib_1.__metadata("design:paramtypes", [])
79
- ], DialogActionsComponent.prototype, "className", null);
80
- DialogActionsComponent = tslib_1.__decorate([
81
- Component({
82
- selector: 'kendo-dialog-actions',
83
- template: "\n <ng-content *ngIf=\"!actions\"></ng-content>\n <ng-container *ngIf=\"!actionTemplate()\">\n <button\n type=\"button\"\n [ngClass]=\"buttonClass(action)\"\n (click)=\"onButtonClick(action, $event)\"\n *ngFor=\"let action of actions\"\n [attr.aria-label]=\"action.text\"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template [ngTemplateOutlet]=\"actions\" *ngIf=\"actionTemplate()\"></ng-template>\n "
84
- }),
85
- tslib_1.__metadata("design:paramtypes", [ElementRef])
86
- ], DialogActionsComponent);
87
- return DialogActionsComponent;
88
- }());
89
- export { DialogActionsComponent };
@@ -1,31 +0,0 @@
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 * as tslib_1 from "tslib";
6
- import { Directive, ViewContainerRef } from '@angular/core';
7
- import { DialogContainerService } from './dialog-container.service';
8
- /**
9
- * Provides an insertion point for the Dialogs which are created through the
10
- * Dialog service ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
11
- * Created Dialogs will be mounted after that element.
12
- *
13
- * @example
14
- * ```html-no-run
15
- * <div kendoDialogContainer></div>
16
- * ```
17
- */
18
- var DialogContainerDirective = /** @class */ (function () {
19
- function DialogContainerDirective(container, service) {
20
- service.container = container;
21
- }
22
- DialogContainerDirective = tslib_1.__decorate([
23
- Directive({
24
- selector: '[kendoDialogContainer]'
25
- }),
26
- tslib_1.__metadata("design:paramtypes", [ViewContainerRef,
27
- DialogContainerService])
28
- ], DialogContainerDirective);
29
- return DialogContainerDirective;
30
- }());
31
- export { DialogContainerDirective };
@@ -1,31 +0,0 @@
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 * as tslib_1 from "tslib";
6
- import { Injectable } from '@angular/core';
7
- /**
8
- * @hidden
9
- */
10
- var DialogContainerService = /** @class */ (function () {
11
- function DialogContainerService() {
12
- }
13
- DialogContainerService_1 = DialogContainerService;
14
- Object.defineProperty(DialogContainerService.prototype, "container", {
15
- get: function () {
16
- return DialogContainerService_1.container;
17
- },
18
- set: function (container) {
19
- DialogContainerService_1.container = container;
20
- },
21
- enumerable: true,
22
- configurable: true
23
- });
24
- var DialogContainerService_1;
25
- DialogContainerService.container = null;
26
- DialogContainerService = DialogContainerService_1 = tslib_1.__decorate([
27
- Injectable()
28
- ], DialogContainerService);
29
- return DialogContainerService;
30
- }());
31
- export { DialogContainerService };
@@ -1,45 +0,0 @@
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 * as tslib_1 from "tslib";
6
- import { DialogActionsComponent } from './dialog-actions.component';
7
- import { DialogTitleBarComponent } from './dialog-titlebar.component';
8
- import { ViewChild } from '@angular/core';
9
- import { filter } from 'rxjs/operators';
10
- /**
11
- * The base class which will be extended by a component that is provided as content through `content`
12
- * ([see example]({% slug service_dialog %}#toc-passing-title-content-and-actions-as-a-single-component)).
13
- */
14
- var DialogContentBase = /** @class */ (function () {
15
- function DialogContentBase(dialog) {
16
- this.dialog = dialog;
17
- }
18
- /**
19
- * @hidden
20
- */
21
- DialogContentBase.prototype.ngAfterViewInit = function () {
22
- var _this = this;
23
- if (this.dialogTitleBar) {
24
- // when opening component inside dialog with service AND the component has defined its own titlebar
25
- this.dialogTitleBar.close.pipe(filter(function (e) { return !e.isDefaultPrevented(); })).subscribe(function () {
26
- _this.dialog.close();
27
- });
28
- }
29
- if (this.dialogActions) {
30
- if (this.dialogActions.actions) {
31
- this.dialogActions.action.subscribe(function (action) { return _this.dialog.dialog.instance.action.emit(action); });
32
- }
33
- }
34
- };
35
- tslib_1.__decorate([
36
- ViewChild(DialogTitleBarComponent, { static: false }),
37
- tslib_1.__metadata("design:type", DialogTitleBarComponent)
38
- ], DialogContentBase.prototype, "dialogTitleBar", void 0);
39
- tslib_1.__decorate([
40
- ViewChild(DialogActionsComponent, { static: false }),
41
- tslib_1.__metadata("design:type", DialogActionsComponent)
42
- ], DialogContentBase.prototype, "dialogActions", void 0);
43
- return DialogContentBase;
44
- }());
45
- export { DialogContentBase };