@progress/kendo-angular-popup 4.0.6-dev.202203091019 → 5.0.0-dev.202204131653

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 (115) hide show
  1. package/bundles/kendo-angular-popup.umd.js +5 -0
  2. package/{dist/es2015/models/position-mode.js → esm2015/kendo-angular-popup.js} +2 -1
  3. package/{dist/es → esm2015}/main.js +0 -0
  4. package/{dist/es → esm2015}/models/align-element-settings.interface.js +1 -0
  5. package/{dist/es2015 → esm2015}/models/align.interface.js +1 -0
  6. package/{dist/es2015 → esm2015}/models/collision.interface.js +1 -0
  7. package/{dist/es2015 → esm2015}/models/collision.type.js +1 -0
  8. package/{dist/es → esm2015}/models/margin.interface.js +1 -0
  9. package/{dist/es → esm2015}/models/offset.interface.js +1 -0
  10. package/{dist/es → esm2015}/models/popup-animation.interface.js +1 -0
  11. package/{dist/es → esm2015}/models/popup-ref.js +1 -0
  12. package/{dist/es → esm2015}/models/popup-settings.js +1 -0
  13. package/{dist/es → esm2015}/models/position-element-settings.interface.js +1 -0
  14. package/{dist/es → esm2015}/models/position-mode.js +1 -0
  15. package/{dist/es → esm2015}/models/position.interface.js +1 -0
  16. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  17. package/{dist/es2015 → esm2015}/popup.component.js +69 -91
  18. package/{dist/es2015 → esm2015}/popup.module.js +16 -13
  19. package/{dist/es2015 → esm2015}/popup.service.js +14 -15
  20. package/{dist/es2015 → esm2015}/scale.js +0 -0
  21. package/{dist/es2015 → esm2015}/services/align.service.js +15 -11
  22. package/{dist/es2015 → esm2015}/services/animation.service.js +10 -10
  23. package/{dist/es2015 → esm2015}/services/dom.service.js +15 -14
  24. package/{dist/es2015 → esm2015}/services/position.service.js +14 -10
  25. package/{dist/es2015 → esm2015}/services/resize.service.js +10 -10
  26. package/{dist/es2015 → esm2015}/services/scrollable.service.js +12 -13
  27. package/{dist/es2015 → esm2015}/util.js +5 -10
  28. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-popup.js} +219 -207
  29. package/kendo-angular-popup.d.ts +9 -0
  30. package/{dist/es2015/main.d.ts → main.d.ts} +1 -1
  31. package/{dist/es2015/models → models}/align-element-settings.interface.d.ts +1 -1
  32. package/{dist/es2015/models → models}/align.interface.d.ts +0 -0
  33. package/{dist/es2015/models → models}/collision.interface.d.ts +0 -0
  34. package/{dist/es2015/models → models}/collision.type.d.ts +0 -0
  35. package/{dist/es2015/models → models}/margin.interface.d.ts +0 -0
  36. package/{dist/es2015/models → models}/offset.interface.d.ts +0 -0
  37. package/{dist/es2015/models → models}/popup-animation.interface.d.ts +4 -2
  38. package/{dist/es2015/models → models}/popup-ref.d.ts +0 -0
  39. package/{dist/es2015/models → models}/popup-settings.d.ts +1 -1
  40. package/{dist/es2015/models → models}/position-element-settings.interface.d.ts +1 -1
  41. package/{dist/es2015/models → models}/position-mode.d.ts +0 -0
  42. package/{dist/es2015/models → models}/position.interface.d.ts +0 -0
  43. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  44. package/package.json +34 -99
  45. package/{dist/es2015/popup.component.d.ts → popup.component.d.ts} +6 -2
  46. package/{dist/es2015/popup.module.d.ts → popup.module.d.ts} +7 -0
  47. package/{dist/es2015/popup.service.d.ts → popup.service.d.ts} +5 -2
  48. package/{dist/es2015/scale.d.ts → scale.d.ts} +0 -0
  49. package/schematics/ngAdd/index.js +5 -2
  50. package/schematics/ngAdd/index.js.map +1 -1
  51. package/{dist/es2015/services → services}/align.service.d.ts +3 -0
  52. package/{dist/es2015/services → services}/animation.service.d.ts +3 -0
  53. package/{dist/es2015/services → services}/dom.service.d.ts +10 -7
  54. package/{dist/es2015/services → services}/position.service.d.ts +3 -0
  55. package/{dist/es2015/services → services}/resize.service.d.ts +3 -0
  56. package/{dist/es2015/services → services}/scrollable.service.d.ts +6 -3
  57. package/{dist/es2015/util.d.ts → util.d.ts} +1 -1
  58. package/dist/cdn/js/kendo-angular-popup.js +0 -20
  59. package/dist/cdn/main.js +0 -5
  60. package/dist/es/index.js +0 -14
  61. package/dist/es/models/align.interface.js +0 -4
  62. package/dist/es/models/collision.interface.js +0 -4
  63. package/dist/es/models/collision.type.js +0 -4
  64. package/dist/es/package-metadata.js +0 -15
  65. package/dist/es/popup.component.js +0 -438
  66. package/dist/es/popup.module.js +0 -57
  67. package/dist/es/popup.service.js +0 -254
  68. package/dist/es/scale.js +0 -21
  69. package/dist/es/services/align.service.js +0 -64
  70. package/dist/es/services/animation.service.js +0 -137
  71. package/dist/es/services/dom.service.js +0 -158
  72. package/dist/es/services/position.service.js +0 -53
  73. package/dist/es/services/resize.service.js +0 -46
  74. package/dist/es/services/scrollable.service.js +0 -79
  75. package/dist/es/util.js +0 -168
  76. package/dist/es2015/index.d.ts +0 -14
  77. package/dist/es2015/index.js +0 -14
  78. package/dist/es2015/index.metadata.json +0 -1
  79. package/dist/es2015/main.js +0 -8
  80. package/dist/es2015/models/align-element-settings.interface.js +0 -4
  81. package/dist/es2015/models/margin.interface.js +0 -4
  82. package/dist/es2015/models/offset.interface.js +0 -4
  83. package/dist/es2015/models/popup-animation.interface.js +0 -4
  84. package/dist/es2015/models/popup-ref.js +0 -4
  85. package/dist/es2015/models/popup-settings.js +0 -4
  86. package/dist/es2015/models/position-element-settings.interface.js +0 -4
  87. package/dist/es2015/models/position.interface.js +0 -4
  88. package/dist/fesm5/index.js +0 -1382
  89. package/dist/npm/index.js +0 -23
  90. package/dist/npm/main.js +0 -15
  91. package/dist/npm/models/align-element-settings.interface.js +0 -6
  92. package/dist/npm/models/align.interface.js +0 -6
  93. package/dist/npm/models/collision.interface.js +0 -6
  94. package/dist/npm/models/collision.type.js +0 -6
  95. package/dist/npm/models/margin.interface.js +0 -6
  96. package/dist/npm/models/offset.interface.js +0 -6
  97. package/dist/npm/models/popup-animation.interface.js +0 -6
  98. package/dist/npm/models/popup-ref.js +0 -6
  99. package/dist/npm/models/popup-settings.js +0 -6
  100. package/dist/npm/models/position-element-settings.interface.js +0 -6
  101. package/dist/npm/models/position-mode.js +0 -9
  102. package/dist/npm/models/position.interface.js +0 -6
  103. package/dist/npm/package-metadata.js +0 -17
  104. package/dist/npm/popup.component.js +0 -440
  105. package/dist/npm/popup.module.js +0 -59
  106. package/dist/npm/popup.service.js +0 -256
  107. package/dist/npm/scale.js +0 -23
  108. package/dist/npm/services/align.service.js +0 -66
  109. package/dist/npm/services/animation.service.js +0 -139
  110. package/dist/npm/services/dom.service.js +0 -160
  111. package/dist/npm/services/position.service.js +0 -55
  112. package/dist/npm/services/resize.service.js +0 -48
  113. package/dist/npm/services/scrollable.service.js +0 -81
  114. package/dist/npm/util.js +0 -173
  115. package/dist/systemjs/kendo-angular-popup.js +0 -5
@@ -1,20 +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(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@progress/kendo-angular-common"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,],e):"object"==typeof exports?exports.KendoAngularPopup=e(require("@angular/core"),require("@progress/kendo-angular-common"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):t.KendoAngularPopup=e(t.ng.core,t.KendoAngularCommon,t.rxjs,t.rxjs.operators,t.ng.animations,t.KendoLicensing,t.ng.common)}(window,(function(t,e,n,o,r,i,a){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),n.d(e,"__assign",(function(){return i})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return u})),n.d(e,"__generator",(function(){return f})),n.d(e,"__createBinding",(function(){return p})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return h})),n.d(e,"__read",(function(){return m})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return S})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return P})),n.d(e,"__classPrivateFieldGet",(function(){return E})),n.d(e,"__classPrivateFieldSet",(function(){return C}));
6
- /*! *****************************************************************************
7
- Copyright (c) Microsoft Corporation.
8
-
9
- Permission to use, copy, modify, and/or distribute this software for any
10
- purpose with or without fee is hereby granted.
11
-
12
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
13
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
15
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
- PERFORMANCE OF THIS SOFTWARE.
19
- ***************************************************************************** */
20
- var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}function s(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function c(t,e){return function(n,o){e(n,o,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}function f(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}function d(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function h(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var o=Array(t),r=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(t,e||[]),i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(t){r[t]&&(o[t]=function(e){return new Promise((function(n,o){i.push([t,e,n,o])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof g?Promise.resolve(n.value.v).then(c,l):u(i[0][2],n)}catch(t){u(i[0][3],t)}var n}function c(t){s("next",t)}function l(t){s("throw",t)}function u(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function b(t){var e,n;return e={},o("next"),o("throw",(function(t){throw t})),o("return"),e[Symbol.iterator]=function(){return this},e;function o(o,r){e[o]=t[o]?function(e){return(n=!n)?{value:g(t[o](e)),done:"return"===o}:r?r(e):e}:r}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(n){e[n]=t[n]&&function(e){return new Promise((function(o,r){(function(t,e,n,o){Promise.resolve(o).then((function(e){t({value:e,done:n})}),e)})(o,r,(e=t[n](e)).done,e.value)}))}}}function S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function P(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function C(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),r=n(3);e.eitherRect=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},e.replaceOffset=function(t,e){return e?{height:t.height,left:e.left,top:e.top,width:t.width}:t},e.removeStackingOffset=function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},e.isDifferentOffset=function(t,e){var n=t.left,o=t.top,r=e.left,i=e.top;return Math.abs(n-r)>=1||Math.abs(o-i)>=1},e.isWindowAvailable=function(){return"undefined"!=typeof window},e.hasBoundingRect=function(t){return!!t.getBoundingClientRect},e.OVERFLOW_REGEXP=/auto|scroll/;var i,a,s,c=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)};e.scrollableParents=function(t){var n=[];if(!r.isDocumentAvailable()||!e.isWindowAvailable())return n;for(var o=t.parentElement;o;)(e.OVERFLOW_REGEXP.test(c(o))||o.hasAttribute("data-scrollable"))&&n.push(o),o=o.parentElement;return n.push(window),n},e.FRAME_DURATION=1e3/60,e.hasRelativeStackingContext=(i=function(){if(!r.isDocumentAvailable()&&null!==document.body)return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e},s=!1,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s||(a=i.apply(void 0,t),s=!0),a}),e.zIndex=function(t,n){if(!t||!r.isDocumentAvailable()||!e.isWindowAvailable())return null;var i=o.siblingContainer(t,n);if(!i)return null;var a=[t].concat(o.parents(t,i)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return a?a+1:null},e.scaleRect=function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t}},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(10),a=n(2),s=n(3),c=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],l=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.addScroll=function(t,e){return i.addScroll(t,e)},t.prototype.align=function(t){return i.align(t)},t.prototype.boundingOffset=function(t){return i.boundingOffset(this.nativeElement(t))},t.prototype.getFontStyles=function(t){var e=this.getWindow();if(!e||!t)return[];var n=e.getComputedStyle(this.nativeElement(t));return c.map((function(t){return{key:t,value:n[t]}}))},t.prototype.getWindow=function(){return a.isWindowAvailable()?window:null},t.prototype.hasOffsetParent=function(t){return!!t&&!!this.nativeElement(t).offsetParent},t.prototype.offset=function(t){return t?i.offset(this.nativeElement(t)):null},t.prototype.offsetAtPoint=function(t,e){if(!t)return null;var n=this.nativeElement(t),o=n.style,r=o.left,a=o.top,s=o.transition;n.style.transition="none",n.style.left=e.left+"px",n.style.top=e.top+"px";var c=i.offset(n);return n.style.left=r,n.style.top=a,n.offsetHeight,n.style.transition=s,c},t.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},t.prototype.position=function(t,e,n){return void 0===n&&(n=1),t&&e?i.positionWithScroll(this.nativeElement(t),this.nativeElement(e),n):null},t.prototype.removeScroll=function(t,e){return i.removeScroll(t,e)},t.prototype.restrictToView=function(t){return i.restrictToView(t)},t.prototype.scrollPosition=function(t){return i.scrollPosition(this.nativeElement(t))},t.prototype.scrollableParents=function(t){return a.scrollableParents(this.nativeElement(t))},t.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?i.offset(e):null},t.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},t.prototype.getRelativeContextElement=function(t){if(!t||!a.hasRelativeStackingContext())return null;for(var e=this.nativeElement(t).parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},t.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},t.prototype.windowViewPort=function(t){return i.getWindowViewPort(this.nativeElement(t))},t.prototype.zIndex=function(t,e){return a.zIndex(this.nativeElement(t),this.nativeElement(e))},t.prototype.zoomLevel=function(){return s.isDocumentAvailable()&&a.isWindowAvailable()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t=o.__decorate([r.Injectable()],t)}();e.DOMService=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(12),a=n(4),s=n(13),c=n(14),l=n(15),u=n(16),f=n(2),p=n(3),d=n(7),h=n(18),m=n(19),v={left:-1e4,top:0},y=function(){function t(t,e,n,o,i,a,s,c,l){this.container=t,this._alignService=e,this.domService=n,this._positionService=o,this._resizeService=i,this._scrollableService=a,this.animationService=s,this._renderer=c,this._zone=l,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=v,this.anchorViewportLeave=new r.EventEmitter,this.close=new r.EventEmitter,this.open=new r.EventEmitter,this.positionChange=new r.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,h.validatePackage(m.packageMetadata),this._renderer.addClass(t.nativeElement,"k-animation-container"),this.updateFixedClass()}return t.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=v,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},t.prototype.ngOnChanges=function(t){t.copyAnchorStyles&&this.copyFontStyles(),t.positionMode&&this.updateFixedClass()},t.prototype.ngAfterViewInit=function(){var t=this;this.animate||this.resolvedPromise.then((function(){t.onAnimationEnd()}))},t.prototype.ngAfterViewChecked=function(){var t=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){t.unsubscribeReposition(),t.repositionSubscription=d.from(t.resolvedPromise).subscribe(t.reposition)}))},t.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},t.prototype.onResize=function(){this.reposition()},t.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},t.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(t.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(t){this.setContainerStyle("left",t.left+"px"),this.setContainerStyle("top",t.top+"px"),this._currentOffset=t},enumerable:!0,configurable:!0}),t.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},t.prototype.reposition=function(){var t=this;if(p.isDocumentAvailable()){var e=this.position(),n=e.flip,o=e.offset;this.currentOffset&&!f.isDifferentOffset(this.currentOffset,o)||(this.currentOffset=o,p.hasObservers(this.positionChange)&&this._zone.run((function(){return t.positionChange.emit({offset:o,flip:n})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,n),this.resizeSensor.acceptSize()}},t.prototype.position=function(){var t=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:t,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},t.prototype.onScroll=function(t){var e=this,n=p.hasObservers(this.anchorViewportLeave);t||!n?this.reposition():n&&this._zone.run((function(){e.anchorViewportLeave.emit()}))},t.prototype.copyFontStyles=function(){var t=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(e){return t.setContainerStyle(e.key,e.value)}))},t.prototype.updateFixedClass=function(){var t="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[t](this.container.nativeElement,"k-animation-container-fixed")},t.prototype.setContainerStyle=function(t,e){this._renderer.setStyle(this.container.nativeElement,t,e)},t.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"animate",void 0),o.__decorate([r.Input(),o.__metadata("design:type",r.ElementRef)],t.prototype,"anchor",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"anchorAlign",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"collision",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"popupAlign",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],t.prototype,"copyAnchorStyles",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"popupClass",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],t.prototype,"positionMode",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"offset",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"margin",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],t.prototype,"anchorViewportLeave",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],t.prototype,"close",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],t.prototype,"open",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],t.prototype,"positionChange",void 0),o.__decorate([r.ViewChild("container",{static:!0}),o.__metadata("design:type",r.ElementRef)],t.prototype,"contentContainer",void 0),o.__decorate([r.ViewChild(p.ResizeSensorComponent,{static:!0}),o.__metadata("design:type",p.ResizeSensorComponent)],t.prototype,"resizeSensor",void 0),t=o.__decorate([r.Component({exportAs:"kendo-popup",providers:[i.AlignService,u.AnimationService,a.DOMService,s.PositionService,c.ResizeService,l.ScrollableService],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),o.__metadata("design:paramtypes",[r.ElementRef,i.AlignService,a.DOMService,s.PositionService,c.ResizeService,l.ScrollableService,u.AnimationService,r.Renderer2,r.NgZone])],t)}();e.PopupComponent=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0);e.SCALE=new o.InjectionToken("Popup Document Scale")},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(5);e.POPUP_CONTAINER=new r.InjectionToken("Popup Container");var a=function(){function t(t,e,n,o){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n,this.container=o}return Object.defineProperty(t.prototype,"rootViewContainer",{get:function(){var t=this.applicationRef.components||[];if(t[0])return t[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),t.prototype.open=function(t){void 0===t&&(t={});var e=this.contentFrom(t.content),n=e.component,o=e.nodes,r=this.appendPopup(o,t.appendTo),i=r.instance;this.projectComponentInputs(r,t),r.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var a=this.getComponentRootNode(r);return{close:function(){var t;n&&n.destroy(),r.destroy(),(t=a)&&t.parentNode&&t.parentNode.removeChild(t)},content:n,popup:r,popupAnchorViewportLeave:i.anchorViewportLeave,popupClose:i.close,popupElement:a,popupOpen:i.open,popupPositionChange:i.positionChange}},t.prototype.appendPopup=function(t,e){var n=this.createComponent(i.PopupComponent,t,e);return e||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},t.prototype.getComponentRootNode=function(t){return t.location.nativeElement},t.prototype.getComponentFactory=function(t){return this.componentFactoryResolver.resolveComponentFactory(t)},t.prototype.createComponent=function(t,e,n){var o=this.getComponentFactory(t);if(n)return n.createComponent(o,void 0,this.injector,e);var r=o.create(this.injector,e);return this.applicationRef.attachView(r.hostView),r},t.prototype.projectComponentInputs=function(t,e){return Object.getOwnPropertyNames(e).filter((function(t){return"content"!==t||e.content instanceof r.TemplateRef})).map((function(n){t.instance[n]=e[n]})),t},t.prototype.contentFrom=function(t){if(!t||t instanceof r.TemplateRef)return{component:null,nodes:[[]]};var e=this.createComponent(t);return{component:e,nodes:[e?[e.location.nativeElement]:[]]}},t=o.__decorate([r.Injectable(),o.__param(3,r.Inject(e.POPUP_CONTAINER)),o.__param(3,r.Optional()),o.__metadata("design:paramtypes",[r.ApplicationRef,r.ComponentFactoryResolver,r.Injector,r.ElementRef])],t)}();e.PopupService=a},function(t,e){t.exports=o},function(t,e,n){"use strict";n.r(e),n.d(e,"align",(function(){return r})),n.d(e,"addScroll",(function(){return i})),n.d(e,"applyLocationOffset",(function(){return a})),n.d(e,"boundingOffset",(function(){return d})),n.d(e,"isBodyOffset",(function(){return m})),n.d(e,"offsetParent",(function(){return h})),n.d(e,"offset",(function(){return v})),n.d(e,"parents",(function(){return y})),n.d(e,"parentScrollPosition",(function(){return b})),n.d(e,"position",(function(){return w})),n.d(e,"positionWithScroll",(function(){return S})),n.d(e,"removeScroll",(function(){return O})),n.d(e,"restrictToView",(function(){return R})),n.d(e,"scrollPosition",(function(){return g})),n.d(e,"siblingContainer",(function(){return A})),n.d(e,"siblings",(function(){return x})),n.d(e,"zIndex",(function(){return j})),n.d(e,"alignElement",(function(){return q})),n.d(e,"domUtils",(function(){return H})),n.d(e,"utils",(function(){return T})),n.d(e,"positionElement",(function(){return X})),n.d(e,"getDocumentElement",(function(){return l})),n.d(e,"getWindow",(function(){return c})),n.d(e,"getWindowViewPort",(function(){return p})),n.d(e,"AlignPoint",(function(){return o})),n.d(e,"Collision",(function(){return P}));var o={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},r=function(t){var e=t.anchorRect,n=t.anchorAlign,r=t.elementRect,i=t.elementAlign,a=t.margin;void 0===a&&(a={});var s=n.horizontal,c=n.vertical,l=i.horizontal,u=i.vertical,f=a.horizontal||0,p=a.vertical||0,d=e.top,h=e.left;return c===o.bottom&&(d+=e.height),c!==o.center&&c!==o.middle||(d+=Math.round(e.height/2)),u===o.bottom&&(d-=r.height,p*=-1),u!==o.center&&u!==o.middle||(d-=Math.round(r.height/2),p*=-1),s===o.right&&(h+=e.width),s!==o.center&&s!==o.middle||(h+=Math.round(e.width/2)),l===o.right&&(h-=r.width,f*=-1),l!==o.center&&l!==o.middle||(h-=Math.round(r.width/2),f*=-1),{top:d+p,left:h+f}};function i(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function a(t,e,n){var o=t.top,r=t.left;return n&&(r=0,o=0),{top:o+e.top,left:r+e.left,height:t.height,width:t.width}}function s(t){return t.ownerDocument||t.document||t}var c=function(t){return s(t).defaultView},l=function(t){return s(t).documentElement},u=0;function f(){if(!u&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),u=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return u}function p(t){var e=c(t),n=l(t),o={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=f()),o}var d=function(t){if(!t.getBoundingClientRect){var e=p(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},h=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||l(t)},m=function(t){return h(t)===t.ownerDocument.body},v=function(t){var e=t.getBoundingClientRect(),n=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,i}(t)),{top:o,left:n,height:e.height,width:e.width}},y=function(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n};function g(t){var e=l(t),n=c(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var _=function(t){return t===(t.ownerDocument||{}).body?g(t):{x:t.scrollLeft,y:t.scrollTop}};function b(t){var e=h(t);return e?_(e):{x:0,y:0}}var w=function(t,e){var n=c(t),o=n.getComputedStyle(t),r=v(t),i=e||h(t),a=t.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){var u=n.getComputedStyle(i);(l=v(i)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}},S=function(t,e,n){void 0===n&&(n=1);var o=e?h(e):null,r=w(t,o),i=r.top,a=r.left,s=r.height,c=r.width,l=function(t,e){return t?_(t):b(e)}(o,t),u=l.x,f=l.y,p=t.ownerDocument,d=o===p.body||o===p.documentElement?1:n;return{top:i+f*d,left:a+u*d,height:s,width:c}};function O(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var P={fit:"fit",flip:"flip",none:"none"},E=function(t,e,n){var o=0;return t+e>n&&(o=n-(t+e)),t<0&&(o=-t),o},C=function(t){var e=t.offset,n=t.size,r=t.anchorSize,i=t.viewPortSize,a=t.anchorAlignPoint,s=t.elementAlignPoint,c=t.margin,l=0,u=s===o.center||s===o.middle,f=a===o.center||a===o.middle,p=2*c;if(s!==a&&!u&&!f){var d=a===o.top||a===o.left;e<0&&d?e+(l=n+r+p)+n>i&&(l=0):e>=0&&!d&&(e+n>i&&(l+=-(r+n+p)),e+l<0&&(l=0))}return l},R=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,a=t.viewPort,s=t.margin;void 0===s&&(s={});var c=o.top,l=o.left,u=o.height,f=o.width,p=a.height,d=a.width,h=s.horizontal||0,m=s.vertical||0,v=0,y=0,g=i.vertical===P.fit,_=i.horizontal===P.fit,b=i.vertical===P.flip,w=i.horizontal===P.flip;g&&(y+=E(c,u,p)),_&&(v+=E(l,f,d)),b&&(y+=C({margin:m,offset:c,size:u,anchorSize:e.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(v+=C({margin:h,offset:l,size:f,anchorSize:e.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var S=b&&0!==y,O=w&&0!==v,R=g&&0!==y,x=_&&0!==v;return{flipped:O||S,fitted:R||x,flip:{horizontal:O,vertical:S},fit:{horizontal:x,vertical:R},offset:{left:v,top:y}}},x=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},A=function(t,e){for(var n,o,r=y(t),i=e;i&&(n=x(i),!(o=r.reduce((function(t,e){return t.concat(n.filter((function(t){return t===e})))}),[])[0]));)i=i.parentElement;return o};function j(t,e){if(!t||!e)return null;var n=A(t,e);if(!n)return null;var o=[t].concat(y(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}var I,z,M,D=(I=function(t){if(!k())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),o},M=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return M||(z=I.apply(void 0,t),M=!0),z}),k=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},T={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:D,canUseDOM:k},F=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],L=function(){return T.canUseDOM()?window:null},V=/auto|scroll/,N=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},W=function(t){if(!t||!T.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},U=function(){return T.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},H={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:i,align:r,boundingOffset:d,getFontStyles:function(t){var e=L();if(!e||!t)return[];var n=e.getComputedStyle(t);return F.map((function(t){return{key:t,value:n[t]}}))},getWindow:L,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?v(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,o=n.left,r=n.top,i=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var a=v(t);return t.style.left=o,t.style.top=r,t.offsetHeight,t.style.transition=i,a},position:function(t,e,n){return t&&e?S(t,e,n||1):null},removeScroll:O,restrictToView:R,scrollPosition:g,scrollableParents:function(t){var e=[];if(!T.canUseDOM())return e;for(var n=t.parentElement;n;)(V.test(N(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e},getRelativeContextElement:W,stackingElementOffset:function(t){var e=W(t);return e?v(e):null},stackingElementScroll:function(t){var e=W(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=W(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(W(t))},windowViewPort:p,zoomLevel:U,isZoomed:function(){return U()>1},zIndex:function(t,e){if(!t||!T.canUseDOM())return null;var n=A(t,e);if(!n)return null;var o=[t].concat(y(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}},B=function(t,e){return t?{x:0,y:0}:H.scrollPosition(e)},q=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,r=t.elementAlign,i=t.margin,a=t.offset,s=t.positionMode,c=t.scale||1,l="fixed"===s||!H.hasOffsetParent(n)?function(t,e,n,o){var r=B(t,e),i=T.eitherRect(H.offset(t),n),a=2*o,s=H.stackingElementScroll(e);1!==o&&s&&(s.x/=a,s.y/=a);var c=H.stackingElementOffset(e);return 1!==o&&c&&(c.left/=a,c.top/=a),H.removeScroll(H.addScroll(T.removeStackingOffset(T.scaleRect(i,o),c),s),r)}(e,n,a,c):function(t,e,n,o){var r=T.eitherRect(H.position(t,e,o),n);return T.scaleRect(r,o)}(e,n,a,c),u=T.scaleRect(H.offset(n),c);return H.align({anchorAlign:o,anchorRect:l,elementAlign:r,elementRect:u,margin:i})},X=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,a=t.collisions,s=t.margin,c=t.scale||1,l=H.offsetAtPoint(o,n),u=T.scaleRect(l,c),f=T.scaleRect(H.offset(e),c),p=T.eitherRect(f,n),d=t.viewPort||H.windowViewPort(o);d.width=d.width/c,d.height=d.height/c;var h=H.restrictToView({anchorAlign:r,anchorRect:p,collisions:a,elementAlign:i,elementRect:u,margin:s,viewPort:d}),m=H.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8);e.PopupService=o.PopupService,e.POPUP_CONTAINER=o.POPUP_CONTAINER;var r=n(5);e.PopupComponent=r.PopupComponent;var i=n(20);e.PopupModule=i.PopupModule;var a=n(6);e.SCALE=a.SCALE},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(4),a=n(2),s=n(6),c=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.alignElement=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,r=t.elementAlign,i=t.margin,s=t.offset,c=t.positionMode,l=this.scale||1,u="fixed"===c||!this._dom.hasOffsetParent(n)?this.absoluteRect(e,n,s,l):this.relativeRect(e,n,s,l),f=a.scaleRect(this._dom.offset(n),l);return this._dom.align({anchorAlign:o,anchorRect:u,elementAlign:r,elementRect:f,margin:i})},t.prototype.absoluteRect=function(t,e,n,o){var r=this.elementScrollPosition(t,e),i=a.eitherRect(this._dom.offset(t),n),s=2*o,c=this._dom.stackingElementScroll(e);1!==o&&c&&(c.x/=s,c.y/=s);var l=this._dom.stackingElementOffset(e);return 1!==o&&l&&(l.left/=s,l.top/=s),this._dom.removeScroll(this._dom.addScroll(a.removeStackingOffset(a.scaleRect(i,o),l),c),r)},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,n,o){var r=a.eitherRect(this._dom.position(t,e,o),n);return a.scaleRect(r,o)},t=o.__decorate([r.Injectable(),o.__param(1,r.Inject(s.SCALE)),o.__param(1,r.Optional()),o.__metadata("design:paramtypes",[i.DOMService,Number])],t)}();e.AlignService=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(4),a=n(2),s=n(6),c=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.positionElement=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,s=t.collisions,c=t.margin,l=this._dom,u=this.scale||1,f=l.offsetAtPoint(o,n),p=a.scaleRect(f,u),d=a.scaleRect(l.offset(e),u),h=a.eitherRect(d,n),m=t.viewPort||l.windowViewPort(o);m.width=m.width/u,m.height=m.height/u;var v=l.restrictToView({anchorAlign:r,anchorRect:h,collisions:s,elementAlign:i,elementRect:p,margin:c,viewPort:m}),y=l.addOffset(n,v.offset);return{flip:v.flip,flipped:v.flipped,offset:y}},t=o.__decorate([r.Injectable(),o.__param(1,r.Inject(s.SCALE)),o.__param(1,r.Optional()),o.__metadata("design:paramtypes",[i.DOMService,Number])],t)}();e.PositionService=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(7),a=n(9),s=n(3),c=n(2),l=n(4),u=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.subscribe=function(t){var e=this;s.isDocumentAvailable()&&this._zone.runOutsideAngular((function(){e.subscription=i.fromEvent(e._dom.getWindow(),"resize").pipe(a.auditTime(c.FRAME_DURATION)).subscribe((function(){return t()}))}))},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},t=o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[l.DOMService,r.NgZone])],t)}();e.ResizeService=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(7),a=n(9),s=n(3),c=n(4),l=n(2);e.THRESHOLD_DIFF=1;var u=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.forElement=function(t){return this.unsubscribe(),this.element=t,this},t.prototype.subscribe=function(t){var e=this;if(t&&s.isDocumentAvailable()&&this.element){var n=this._dom.nativeElement(this.element),o=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var r=o.map((function(t){return i.fromEvent(t,"scroll").pipe(a.auditTime(l.FRAME_DURATION))}));e.subscription=i.merge.apply(void 0,r).subscribe((function(r){var i=r.target,a=o.filter((function(t){return t===i})).length>0,s=i===document,c=i===window;(a||s||c)&&t(e.isVisible(n,i))}))}))}},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isVisible=function(t,n){var o=this._dom.boundingOffset(t),r=this._dom.boundingOffset(n);return!(e.THRESHOLD_DIFF<r.top-o.bottom)&&(!(e.THRESHOLD_DIFF<o.top-r.bottom)&&(!(e.THRESHOLD_DIFF<o.left-r.right)&&!(e.THRESHOLD_DIFF<r.left-o.right)))},t=o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[c.DOMService,r.NgZone])],t)}();e.ScrollableService=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(17),a={expand:function(t){var e="up"===t||"down"===t?"scaleY":"scaleX";return{start:{transform:e+"(0)",transformOrigin:"down"===t?"top":"left"===t?"right":"right"===t?"left":"bottom"},end:{transform:e+"(1)"}}},slide:function(t){var e="left"===t||"right"===t?"translateX":"translateY";return{start:{transform:e+"("+("right"===t||"down"===t?-100:100)+"%)"},end:{transform:e+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},s=function(){function t(t){this.animationBuilder=t,this.start=new r.EventEmitter,this.end=new r.EventEmitter}return t.prototype.play=function(t,e,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var o=e.type||"slide",i=a[o];if(i){var s=i(this.getDirection(n,e));this.playStates(t,s,e)}else if(r.isDevMode())throw new Error('Unsupported animation type: "'+o+'". The supported types are slide, expand, fade and zoom.')}},t.prototype.ngOnDestroy=function(){this.stopPlayer()},t.prototype.playStates=function(t,e,n){var o=this;this.stopPlayer();var r=n.duration||100,a=this.animationBuilder.build([i.style(e.start),i.animate(r+"ms ease-in",i.style(e.end))]),s=this.player=a.create(t);s.onDone((function(){o.end.emit(),o.stopPlayer()})),this.start.emit(),s.play()},t.prototype.getDirection=function(t,e){var n=e.direction||"down";return t.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),t.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},t.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},t=o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[i.AnimationBuilder])],t)}();e.AnimationService=s},function(t,e){t.exports=r},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646821120,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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(21),a=n(5),s=n(3),c=n(8),l=[a.PopupComponent],u=function(){function t(){}return t=o.__decorate([r.NgModule({declarations:[l],entryComponents:[l],exports:[l],imports:[i.CommonModule,s.ResizeSensorModule],providers:[c.PopupService]})],t)}();e.PopupModule=u},function(t,e){t.exports=a}])}));
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-common"),require("rxjs"),require("@progress/kendo-popup-common"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularPopup=t(require("@angular/core"),require("tslib"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-popup-common"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):e.KendoAngularPopup=t(e.ng.core,e.self,e.KendoAngularCommon,e.rxjs,e.KendoPopupCommon,e.rxjs.operators,e.ng.animations,e.KendoLicensing,e.ng.common)}(window,(function(e,t,n,o,i,r,s,a,p){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),i=n(3);t.eitherRect=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},t.replaceOffset=function(e,t){return t?{height:e.height,left:t.left,top:t.top,width:e.width}:e},t.removeStackingOffset=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},t.isDifferentOffset=function(e,t){var n=e.left,o=e.top,i=t.left,r=t.top;return Math.abs(n-i)>=1||Math.abs(o-r)>=1},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.hasBoundingRect=function(e){return!!e.getBoundingClientRect},t.OVERFLOW_REGEXP=/auto|scroll/;var r,s,a,p=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};t.scrollableParents=function(e){var n=[];if(!i.isDocumentAvailable()||!t.isWindowAvailable())return n;for(var o=e.parentElement;o;)(t.OVERFLOW_REGEXP.test(p(o))||o.hasAttribute("data-scrollable"))&&n.push(o),o=o.parentElement;return n.push(window),n},t.FRAME_DURATION=1e3/60,t.hasRelativeStackingContext=(r=function(){if(!i.isDocumentAvailable()&&null!==document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t},a=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a||(s=r.apply(void 0,e),a=!0),s}),t.zIndex=function(e,n){if(!e||!i.isDocumentAvailable()||!t.isWindowAvailable())return null;var r=o.siblingContainer(e,n);if(!r)return null;var s=[e].concat(o.parents(e,r)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return s?s+1:null},t.scaleRect=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(9),s=n(2),a=n(3),p=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],c=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return r.addScroll(e,t)},e.prototype.align=function(e){return r.align(e)},e.prototype.boundingOffset=function(e){return r.boundingOffset(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return p.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return s.isWindowAvailable()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?r.offset(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),o=n.style,i=o.left,s=o.top,a=o.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var p=r.offset(n);return n.style.left=i,n.style.top=s,n.offsetHeight,n.style.transition=a,p},e.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},e.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?r.positionWithScroll(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return r.removeScroll(e,t)},e.prototype.restrictToView=function(e){return r.restrictToView(e)},e.prototype.scrollPosition=function(e){return r.scrollPosition(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return s.scrollableParents(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?r.offset(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.getRelativeContextElement=function(e){if(!e||!s.hasRelativeStackingContext())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return r.getWindowViewPort(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return s.zIndex(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return a.isDocumentAvailable()&&s.isWindowAvailable()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=o.__decorate([i.Injectable()],e)}();t.DOMService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(12),s=n(4),a=n(13),p=n(14),c=n(15),l=n(16),u=n(2),f=n(3),d=n(7),h=n(18),m=n(19),v={left:-1e4,top:0},y=function(){function e(e,t,n,o,r,s,a,p,c){this.container=e,this._alignService=t,this.domService=n,this._positionService=o,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=p,this._zone=c,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=v,this.anchorViewportLeave=new i.EventEmitter,this.close=new i.EventEmitter,this.open=new i.EventEmitter,this.positionChange=new i.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,h.validatePackage(m.packageMetadata),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}return e.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=v,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=d.from(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(f.isDocumentAvailable()){var t=this.position(),n=t.flip,o=t.offset;this.currentOffset&&!u.isDifferentOffset(this.currentOffset,o)||(this.currentOffset=o,f.hasObservers(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:o,flip:n})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,n),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=f.hasObservers(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run((function(){t.anchorViewportLeave.emit()}))},e.prototype.copyFontStyles=function(){var e=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(t){return e.setContainerStyle(t.key,t.value)}))},e.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},e.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},e.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"animate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.ElementRef)],e.prototype,"anchor",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"anchorAlign",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"collision",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"popupAlign",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"popupClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"positionMode",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"offset",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"margin",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"close",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"open",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"positionChange",void 0),o.__decorate([i.ViewChild("container",{static:!0}),o.__metadata("design:type",i.ElementRef)],e.prototype,"contentContainer",void 0),o.__decorate([i.ViewChild(f.ResizeSensorComponent,{static:!0}),o.__metadata("design:type",f.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=o.__decorate([i.Component({exportAs:"kendo-popup",providers:[r.AlignService,l.AnimationService,s.DOMService,a.PositionService,p.ResizeService,c.ScrollableService],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),o.__metadata("design:paramtypes",[i.ElementRef,r.AlignService,s.DOMService,a.PositionService,p.ResizeService,c.ScrollableService,l.AnimationService,i.Renderer2,i.NgZone])],e)}();t.PopupComponent=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.SCALE=new o.InjectionToken("Popup Document Scale")},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(5);t.POPUP_CONTAINER=new i.InjectionToken("Popup Container");var s=function(){function e(e,t,n,o){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=o}return Object.defineProperty(e.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),e.prototype.open=function(e){void 0===e&&(e={});var t=this.contentFrom(e.content),n=t.component,o=t.nodes,i=this.appendPopup(o,e.appendTo),r=i.instance;this.projectComponentInputs(i,e),i.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var s=this.getComponentRootNode(i);return{close:function(){var e;n&&n.destroy(),i.destroy(),(e=s)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:i,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(r.PopupComponent,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},e.prototype.getComponentRootNode=function(e){return e.location.nativeElement},e.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},e.prototype.createComponent=function(e,t,n){var o=this.getComponentFactory(e);if(n)return n.createComponent(o,void 0,this.injector,t);var i=o.create(this.injector,t);return this.applicationRef.attachView(i.hostView),i},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof i.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof i.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=o.__decorate([i.Injectable(),o.__param(3,i.Inject(t.POPUP_CONTAINER)),o.__param(3,i.Optional()),o.__metadata("design:paramtypes",[i.ApplicationRef,i.ComponentFactoryResolver,i.Injector,i.ElementRef])],e)}();t.PopupService=s},function(e,t){e.exports=i},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(8);t.PopupService=o.PopupService,t.POPUP_CONTAINER=o.POPUP_CONTAINER;var i=n(5);t.PopupComponent=i.PopupComponent;var r=n(20);t.PopupModule=r.PopupModule;var s=n(6);t.SCALE=s.SCALE},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(4),s=n(2),a=n(6),p=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,i=e.elementAlign,r=e.margin,a=e.offset,p=e.positionMode,c=this.scale||1,l="fixed"===p||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a,c):this.relativeRect(t,n,a,c),u=s.scaleRect(this._dom.offset(n),c);return this._dom.align({anchorAlign:o,anchorRect:l,elementAlign:i,elementRect:u,margin:r})},e.prototype.absoluteRect=function(e,t,n,o){var i=this.elementScrollPosition(e,t),r=s.eitherRect(this._dom.offset(e),n),a=2*o,p=this._dom.stackingElementScroll(t);1!==o&&p&&(p.x/=a,p.y/=a);var c=this._dom.stackingElementOffset(t);return 1!==o&&c&&(c.left/=a,c.top/=a),this._dom.removeScroll(this._dom.addScroll(s.removeStackingOffset(s.scaleRect(r,o),c),p),i)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,o){var i=s.eitherRect(this._dom.position(e,t,o),n);return s.scaleRect(i,o)},e=o.__decorate([i.Injectable(),o.__param(1,i.Inject(a.SCALE)),o.__param(1,i.Optional()),o.__metadata("design:paramtypes",[r.DOMService,Number])],e)}();t.AlignService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(4),s=n(2),a=n(6),p=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,i=e.anchorAlign,r=e.elementAlign,a=e.collisions,p=e.margin,c=this._dom,l=this.scale||1,u=c.offsetAtPoint(o,n),f=s.scaleRect(u,l),d=s.scaleRect(c.offset(t),l),h=s.eitherRect(d,n),m=e.viewPort||c.windowViewPort(o);m.width=m.width/l,m.height=m.height/l;var v=c.restrictToView({anchorAlign:i,anchorRect:h,collisions:a,elementAlign:r,elementRect:f,margin:p,viewPort:m}),y=c.addOffset(n,v.offset);return{flip:v.flip,flipped:v.flipped,offset:y}},e=o.__decorate([i.Injectable(),o.__param(1,i.Inject(a.SCALE)),o.__param(1,i.Optional()),o.__metadata("design:paramtypes",[r.DOMService,Number])],e)}();t.PositionService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(7),s=n(10),a=n(3),p=n(2),c=n(4),l=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;a.isDocumentAvailable()&&this._zone.runOutsideAngular((function(){t.subscription=r.fromEvent(t._dom.getWindow(),"resize").pipe(s.auditTime(p.FRAME_DURATION)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[c.DOMService,i.NgZone])],e)}();t.ResizeService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(7),s=n(10),a=n(3),p=n(4),c=n(2);t.THRESHOLD_DIFF=1;var l=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&a.isDocumentAvailable()&&this.element){var n=this._dom.nativeElement(this.element),o=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var i=o.map((function(e){return r.fromEvent(e,"scroll").pipe(s.auditTime(c.FRAME_DURATION))}));t.subscription=r.merge.apply(void 0,i).subscribe((function(i){var r=i.target,s=o.filter((function(e){return e===r})).length>0,a=r===document,p=r===window;(s||a||p)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,n){var o=this._dom.boundingOffset(e),i=this._dom.boundingOffset(n);return!(t.THRESHOLD_DIFF<i.top-o.bottom)&&(!(t.THRESHOLD_DIFF<o.top-i.bottom)&&(!(t.THRESHOLD_DIFF<o.left-i.right)&&!(t.THRESHOLD_DIFF<i.left-o.right)))},e=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[p.DOMService,i.NgZone])],e)}();t.ScrollableService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(17),s={expand:function(e){var t="up"===e||"down"===e?"scaleY":"scaleX";return{start:{transform:t+"(0)",transformOrigin:"down"===e?"top":"left"===e?"right":"right"===e?"left":"bottom"},end:{transform:t+"(1)"}}},slide:function(e){var t="left"===e||"right"===e?"translateX":"translateY";return{start:{transform:t+"("+("right"===e||"down"===e?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},a=function(){function e(e){this.animationBuilder=e,this.start=new i.EventEmitter,this.end=new i.EventEmitter}return e.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var o=t.type||"slide",r=s[o];if(r){var a=r(this.getDirection(n,t));this.playStates(e,a,t)}else if(i.isDevMode())throw new Error('Unsupported animation type: "'+o+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var o=this;this.stopPlayer();var i=n.duration||100,s=this.animationBuilder.build([r.style(t.start),r.animate(i+"ms ease-in",r.style(t.end))]),a=this.player=s.create(e);a.onDone((function(){o.end.emit(),o.stopPlayer()})),this.start.emit(),a.play()},e.prototype.getDirection=function(e,t){var n=t.direction||"down";return e.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),e.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},e.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},e=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[r.AnimationBuilder])],e)}();t.AnimationService=a},function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646821120,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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(21),s=n(5),a=n(3),p=n(8),c=[s.PopupComponent],l=function(){function e(){}return e=o.__decorate([i.NgModule({declarations:[c],entryComponents:[c],exports:[c],imports:[r.CommonModule,a.ResizeSensorModule],providers:[p.PopupService]})],e)}();t.PopupModule=l},function(e,t){e.exports=p}])}));
package/dist/es/index.js DELETED
@@ -1,14 +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
- * Generated bundle index. Do not edit.
7
- */
8
- export * from './main';
9
- export { AlignService } from './services/align.service';
10
- export { AnimationService } from './services/animation.service';
11
- export { DOMService } from './services/dom.service';
12
- export { PositionService } from './services/position.service';
13
- export { ResizeService } from './services/resize.service';
14
- export { ScrollableService } from './services/scrollable.service';
@@ -1,4 +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
- *-------------------------------------------------------------------------------------------*/
@@ -1,4 +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
- *-------------------------------------------------------------------------------------------*/
@@ -1,4 +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
- *-------------------------------------------------------------------------------------------*/
@@ -1,15 +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
- export var packageMetadata = {
9
- name: '@progress/kendo-angular-popup',
10
- productName: 'Kendo UI for Angular',
11
- productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1646821120,
13
- version: '',
14
- 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'
15
- };