@progress/kendo-popup-common
Advanced tools
Comparing version 1.6.0-dev.201805161337 to 1.6.0-dev.201805230752
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KendoPopupCommon=t():e.KendoPopupCommon=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return e[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(1);Object.defineProperty(t,"align",{enumerable:!0,get:function(){return r(u).default}});var o=n(3);Object.defineProperty(t,"addScroll",{enumerable:!0,get:function(){return r(o).default}});var i=n(4);Object.defineProperty(t,"applyLocationOffset",{enumerable:!0,get:function(){return r(i).default}});var l=n(5);Object.defineProperty(t,"boundingOffset",{enumerable:!0,get:function(){return r(l).default}});var f=n(6);Object.defineProperty(t,"isBodyOffset",{enumerable:!0,get:function(){return r(f).default}});var d=n(7);Object.defineProperty(t,"offsetParent",{enumerable:!0,get:function(){return r(d).default}});var a=n(9);Object.defineProperty(t,"offset",{enumerable:!0,get:function(){return r(a).default}});var c=n(10);Object.defineProperty(t,"parents",{enumerable:!0,get:function(){return r(c).default}});var s=n(11);Object.defineProperty(t,"parentScrollPosition",{enumerable:!0,get:function(){return r(s).default}});var p=n(15);Object.defineProperty(t,"position",{enumerable:!0,get:function(){return r(p).default}});var h=n(16);Object.defineProperty(t,"positionWithScroll",{enumerable:!0,get:function(){return r(h).default}});var v=n(18);Object.defineProperty(t,"removeScroll",{enumerable:!0,get:function(){return r(v).default}});var b=n(19);Object.defineProperty(t,"restrictToView",{enumerable:!0,get:function(){return r(b).default}});var g=n(13);Object.defineProperty(t,"scrollPosition",{enumerable:!0,get:function(){return r(g).default}});var m=n(21);Object.defineProperty(t,"siblingContainer",{enumerable:!0,get:function(){return r(m).default}});var y=n(22);Object.defineProperty(t,"siblings",{enumerable:!0,get:function(){return r(y).default}});var _=n(8);Object.defineProperty(t,"getDocumentElement",{enumerable:!0,get:function(){return r(_).default}});var P=n(14);Object.defineProperty(t,"getWindow",{enumerable:!0,get:function(){return r(P).default}});var O=n(23);Object.defineProperty(t,"getWindowViewPort",{enumerable:!0,get:function(){return r(O).default}});var j=n(2);Object.defineProperty(t,"AlignPoint",{enumerable:!0,get:function(){return r(j).default}});var M=n(20);Object.defineProperty(t,"Collision",{enumerable:!0,get:function(){return r(M).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(2),o=r(u),i=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,u=e.elementAlign,i=e.margin,l=void 0===i?{}:i,f=n.horizontal,d=n.vertical,a=u.horizontal,c=u.vertical,s=l.horizontal||0,p=l.vertical||0,h=t.top,v=t.left;return d===o.default.bottom&&(h+=t.height),d!==o.default.center&&d!==o.default.middle||(h+=Math.round(t.height/2)),c===o.default.bottom&&(h-=r.height,p*=-1),c!==o.default.center&&c!==o.default.middle||(h-=Math.round(r.height/2),p*=-1),f===o.default.right&&(v+=t.width),f!==o.default.center&&f!==o.default.middle||(v+=Math.round(t.width/2)),a===o.default.right&&(v-=r.width,s*=-1),a!==o.default.center&&a!==o.default.middle||(v-=Math.round(r.width/2),s*=-1),{top:h+p,left:v+s}};t.default=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"}},function(e,t){"use strict";function n(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t,n){var r=e.top,u=e.left;return n&&(u=0,r=0),{top:r+t.top,left:u+t.left,height:e.height,width:e.width}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){if(!e.getBoundingClientRect)return{bottom:e.innerHeight,left:0,right:e.innerWidth,top:0};var t=e.getBoundingClientRect(),n=t.bottom,r=t.left,u=t.right,o=t.top;return{bottom:n,left:r,right:u,top:o}};t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(7),o=r(u),i=function(e){return(0,o.default)(e)===e.ownerDocument.body};t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(8),o=r(u),i=function e(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||(0,o.default)(t)};t.default=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e.ownerDocument.documentElement};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){var t=e.style,n=t.display,r=t.left,u=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var o=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=u,o},r=function(e){var t=e.getBoundingClientRect(),r=t,u=r.left,o=r.top;return t.height||t.width||(t=n(e)),{top:o,left:u,height:t.height,width:t.width}};t.default=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=(0,i.default)(e);return t?(0,f.default)(t):{x:0,y:0}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(7),i=r(o),l=n(12),f=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(13),o=r(u);t.default=function(e){return e===(e.ownerDocument||{}).body?(0,o.default)(e):{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=(0,i.default)(e),n=(0,f.default)(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(8),i=r(o),l=n(14),f=r(l)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e.ownerDocument.defaultView};t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(7),o=r(u),i=n(9),l=r(i),f=n(14),d=r(f),a=function(e,t){var n=(0,d.default)(e),r=n.getComputedStyle(e),u=(0,l.default)(e),i=t||(0,o.default)(e),f=e.ownerDocument,a=i!==f.body&&i!==f.documentElement,c={top:0,left:0};if("fixed"!==r.position&&a){var s=n.getComputedStyle(i);c=(0,l.default)(i),c.top+=parseInt(s.borderTopWidth,10),c.left+=parseInt(s.borderLeftWidth,10)}return{top:u.top-c.top,left:u.left-c.left,height:u.height,width:u.width}};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(17),o=r(u),i=n(7),l=r(i),f=n(15),d=r(f);t.default=function(e,t){var n=t?(0,l.default)(t):null,r=(0,d.default)(e,n),u=r.top,i=r.left,f=r.height,a=r.width,c=(0,o.default)(n,e),s=c.x,p=c.y;return{top:u+p,left:i+s,height:f,width:a}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(12),o=r(u),i=n(11),l=r(i);t.default=function(e,t){return e?(0,o.default)(e):(0,l.default)(t)}},function(e,t){"use strict";function n(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(2),o=r(u),i=n(20),l=r(i),f=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},d=function(e){var t=e.offset,n=e.size,r=e.anchorSize,u=e.viewPortSize,i=e.anchorAlignPoint,l=e.elementAlignPoint,f=e.margin,d=0,a=l===o.default.center||l===o.default.middle,c=i===o.default.center||i===o.default.middle,s=2*f;return l===i||a||c||(t<0?(d=n+r+s,t+d+n>u&&(d=0)):(t+n>u&&(d+=-(r+n+s)),t+d<0&&(d=0))),d},a=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,u=e.elementAlign,o=e.collisions,i=e.viewPort,a=e.margin,c=void 0===a?{}:a,s=r.top,p=r.left,h=r.height,v=r.width,b=i.height,g=i.width,m=c.horizontal||0,y=c.vertical||0,_=0,P=0,O=o.horizontal===l.default.flip,j=o.vertical===l.default.flip;o.vertical===l.default.fit&&(P+=f(s,h,b)),o.horizontal===l.default.fit&&(_+=f(p,v,g)),j&&(P+=d({margin:y,offset:s,size:h,anchorSize:t.height,viewPortSize:b,anchorAlignPoint:n.vertical,elementAlignPoint:u.vertical})),O&&(_+=d({margin:m,offset:p,size:v,anchorSize:t.width,viewPortSize:g,anchorAlignPoint:n.horizontal,elementAlignPoint:u.horizontal}));var M=O&&0!==_,w=j&&0!==P;return{flipped:M||w,flip:{horizontal:M,vertical:w},offset:{left:_,top:P}}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={fit:"fit",flip:"flip"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(10),o=r(u),i=n(22),l=r(i);t.default=function(e,t){for(var n=(0,o.default)(e),r=t,u=void 0,i=void 0;r&&(u=(0,l.default)(r),!(i=n.reduce(function(e,t){return e.concat(u.filter(function(e){return e===t}))},[])[0]));)r=r.parentElement;return i}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=(0,i.default)(e),n=(0,f.default)(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=(0,a.default)()),r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(14),i=r(o),l=n(8),f=r(l),d=n(24),a=r(d)},function(e,t){"use strict";function n(){if(!r&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),r=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=0}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KendoPopupCommon=t():e.KendoPopupCommon=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return e[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(1);Object.defineProperty(t,"align",{enumerable:!0,get:function(){return r(u).default}});var o=n(3);Object.defineProperty(t,"addScroll",{enumerable:!0,get:function(){return r(o).default}});var i=n(4);Object.defineProperty(t,"applyLocationOffset",{enumerable:!0,get:function(){return r(i).default}});var l=n(5);Object.defineProperty(t,"boundingOffset",{enumerable:!0,get:function(){return r(l).default}});var f=n(11);Object.defineProperty(t,"isBodyOffset",{enumerable:!0,get:function(){return r(f).default}});var d=n(12);Object.defineProperty(t,"offsetParent",{enumerable:!0,get:function(){return r(d).default}});var a=n(13);Object.defineProperty(t,"offset",{enumerable:!0,get:function(){return r(a).default}});var c=n(14);Object.defineProperty(t,"parents",{enumerable:!0,get:function(){return r(c).default}});var s=n(15);Object.defineProperty(t,"parentScrollPosition",{enumerable:!0,get:function(){return r(s).default}});var p=n(18);Object.defineProperty(t,"position",{enumerable:!0,get:function(){return r(p).default}});var h=n(19);Object.defineProperty(t,"positionWithScroll",{enumerable:!0,get:function(){return r(h).default}});var v=n(21);Object.defineProperty(t,"removeScroll",{enumerable:!0,get:function(){return r(v).default}});var b=n(22);Object.defineProperty(t,"restrictToView",{enumerable:!0,get:function(){return r(b).default}});var g=n(17);Object.defineProperty(t,"scrollPosition",{enumerable:!0,get:function(){return r(g).default}});var _=n(24);Object.defineProperty(t,"siblingContainer",{enumerable:!0,get:function(){return r(_).default}});var m=n(25);Object.defineProperty(t,"siblings",{enumerable:!0,get:function(){return r(m).default}});var y=n(9);Object.defineProperty(t,"getDocumentElement",{enumerable:!0,get:function(){return r(y).default}});var P=n(7);Object.defineProperty(t,"getWindow",{enumerable:!0,get:function(){return r(P).default}});var O=n(6);Object.defineProperty(t,"getWindowViewPort",{enumerable:!0,get:function(){return r(O).default}});var j=n(2);Object.defineProperty(t,"AlignPoint",{enumerable:!0,get:function(){return r(j).default}});var M=n(23);Object.defineProperty(t,"Collision",{enumerable:!0,get:function(){return r(M).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(2),o=r(u),i=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,u=e.elementAlign,i=e.margin,l=void 0===i?{}:i,f=n.horizontal,d=n.vertical,a=u.horizontal,c=u.vertical,s=l.horizontal||0,p=l.vertical||0,h=t.top,v=t.left;return d===o.default.bottom&&(h+=t.height),d!==o.default.center&&d!==o.default.middle||(h+=Math.round(t.height/2)),c===o.default.bottom&&(h-=r.height,p*=-1),c!==o.default.center&&c!==o.default.middle||(h-=Math.round(r.height/2),p*=-1),f===o.default.right&&(v+=t.width),f!==o.default.center&&f!==o.default.middle||(v+=Math.round(t.width/2)),a===o.default.right&&(v-=r.width,s*=-1),a!==o.default.center&&a!==o.default.middle||(v-=Math.round(r.width/2),s*=-1),{top:h+p,left:v+s}};t.default=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"}},function(e,t){"use strict";function n(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t,n){var r=e.top,u=e.left;return n&&(u=0,r=0),{top:r+t.top,left:u+t.left,height:e.height,width:e.width}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(6),o=r(u),i=function(e){if(!e.getBoundingClientRect){var t=(0,o.default)(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect(),r=n.bottom,u=n.left,i=n.right,l=n.top;return{bottom:r,left:u,right:i,top:l}};t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=(0,i.default)(e),n=(0,f.default)(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=(0,a.default)()),r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(7),i=r(o),l=n(9),f=r(l),d=n(10),a=r(d)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(8),o=r(u),i=function(e){return(0,o.default)(e).defaultView};t.default=i},function(e,t){"use strict";function n(e){return e.ownerDocument||e.document||e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(8),o=r(u),i=function(e){return(0,o.default)(e).documentElement};t.default=i},function(e,t){"use strict";function n(){if(!r&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),r=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(12),o=r(u),i=function(e){return(0,o.default)(e)===e.ownerDocument.body};t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(9),o=r(u),i=function e(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||(0,o.default)(t)};t.default=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){var t=e.style,n=t.display,r=t.left,u=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var o=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=u,o},r=function(e){var t=e.getBoundingClientRect(),r=t,u=r.left,o=r.top;return t.height||t.width||(t=n(e)),{top:o,left:u,height:t.height,width:t.width}};t.default=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=(0,i.default)(e);return t?(0,f.default)(t):{x:0,y:0}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(12),i=r(o),l=n(16),f=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(17),o=r(u);t.default=function(e){return e===(e.ownerDocument||{}).body?(0,o.default)(e):{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=(0,i.default)(e),n=(0,f.default)(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(9),i=r(o),l=n(7),f=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(12),o=r(u),i=n(13),l=r(i),f=n(7),d=r(f),a=function(e,t){var n=(0,d.default)(e),r=n.getComputedStyle(e),u=(0,l.default)(e),i=t||(0,o.default)(e),f=e.ownerDocument,a=i!==f.body&&i!==f.documentElement,c={top:0,left:0};if("fixed"!==r.position&&a){var s=n.getComputedStyle(i);c=(0,l.default)(i),c.top+=parseInt(s.borderTopWidth,10),c.left+=parseInt(s.borderLeftWidth,10)}return{top:u.top-c.top,left:u.left-c.left,height:u.height,width:u.width}};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(20),o=r(u),i=n(12),l=r(i),f=n(18),d=r(f);t.default=function(e,t){var n=t?(0,l.default)(t):null,r=(0,d.default)(e,n),u=r.top,i=r.left,f=r.height,a=r.width,c=(0,o.default)(n,e),s=c.x,p=c.y;return{top:u+p,left:i+s,height:f,width:a}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(16),o=r(u),i=n(15),l=r(i);t.default=function(e,t){return e?(0,o.default)(e):(0,l.default)(t)}},function(e,t){"use strict";function n(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(2),o=r(u),i=n(23),l=r(i),f=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},d=function(e){var t=e.offset,n=e.size,r=e.anchorSize,u=e.viewPortSize,i=e.anchorAlignPoint,l=e.elementAlignPoint,f=e.margin,d=0,a=l===o.default.center||l===o.default.middle,c=i===o.default.center||i===o.default.middle,s=2*f;if(l!==i&&!a&&!c){var p=i===o.default.top||i===o.default.left;t<0&&p?(d=n+r+s,t+d+n>u&&(d=0)):t>=0&&!p&&(t+n>u&&(d+=-(r+n+s)),t+d<0&&(d=0))}return d},a=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,u=e.elementAlign,o=e.collisions,i=e.viewPort,a=e.margin,c=void 0===a?{}:a,s=r.top,p=r.left,h=r.height,v=r.width,b=i.height,g=i.width,_=c.horizontal||0,m=c.vertical||0,y=0,P=0,O=o.horizontal===l.default.flip,j=o.vertical===l.default.flip;o.vertical===l.default.fit&&(P+=f(s,h,b)),o.horizontal===l.default.fit&&(y+=f(p,v,g)),j&&(P+=d({margin:m,offset:s,size:h,anchorSize:t.height,viewPortSize:b,anchorAlignPoint:n.vertical,elementAlignPoint:u.vertical})),O&&(y+=d({margin:_,offset:p,size:v,anchorSize:t.width,viewPortSize:g,anchorAlignPoint:n.horizontal,elementAlignPoint:u.horizontal}));var M=O&&0!==y,w=j&&0!==P;return{flipped:M||w,flip:{horizontal:M,vertical:w},offset:{left:y,top:P}}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={fit:"fit",flip:"flip"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(14),o=r(u),i=n(25),l=r(i);t.default=function(e,t){for(var n=(0,o.default)(e),r=t,u=void 0,i=void 0;r&&(u=(0,l.default)(r),!(i=n.reduce(function(e,t){return e.concat(u.filter(function(e){return e===t}))},[])[0]));)r=r.parentElement;return i}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}}])}); |
@@ -0,7 +1,10 @@ | ||
import windowViewport from './window-viewport'; | ||
var boundingOffset = function (element) { | ||
if (!element.getBoundingClientRect) { | ||
var viewport = windowViewport(element); | ||
return { | ||
bottom: element.innerHeight, | ||
bottom: viewport.height, | ||
left: 0, | ||
right: element.innerWidth, | ||
right: viewport.width, | ||
top: 0 | ||
@@ -8,0 +11,0 @@ }; |
@@ -1,3 +0,5 @@ | ||
var getDocument = function (element) { return ( element.ownerDocument.documentElement ); }; | ||
import ownerDocument from './owner-document'; | ||
var getDocument = function (element) { return ownerDocument(element).documentElement; }; | ||
export default getDocument; |
@@ -34,3 +34,4 @@ import alignPoint from './align-point'; | ||
if (elementAlignPoint !== anchorAlignPoint && !isPositionCentered && !isOriginCentered) { | ||
if (offset < 0) { | ||
var isBeforeAnchor = anchorAlignPoint === alignPoint.top || anchorAlignPoint === alignPoint.left; | ||
if (offset < 0 && isBeforeAnchor) { | ||
output = size + anchorSize + marginToAdd; | ||
@@ -40,3 +41,3 @@ if (offset + output + size > viewPortSize) { | ||
} | ||
} else { | ||
} else if (offset >= 0 && !isBeforeAnchor) { | ||
if (offset + size > viewPortSize) { | ||
@@ -43,0 +44,0 @@ output += -(anchorSize + size + marginToAdd); |
@@ -1,3 +0,5 @@ | ||
var getWindow = function (element) { return ( element.ownerDocument.defaultView ); }; | ||
import ownerDocument from './owner-document'; | ||
var getWindow = function (element) { return ownerDocument(element).defaultView; }; | ||
export default getWindow; |
@@ -0,7 +1,10 @@ | ||
import windowViewport from './window-viewport'; | ||
const boundingOffset = (element) => { | ||
if (!element.getBoundingClientRect) { | ||
const viewport = windowViewport(element); | ||
return { | ||
bottom: element.innerHeight, | ||
bottom: viewport.height, | ||
left: 0, | ||
right: element.innerWidth, | ||
right: viewport.width, | ||
top: 0 | ||
@@ -8,0 +11,0 @@ }; |
@@ -1,3 +0,5 @@ | ||
const getDocument = (element) => ( element.ownerDocument.documentElement ); | ||
import ownerDocument from './owner-document'; | ||
const getDocument = (element) => ownerDocument(element).documentElement; | ||
export default getDocument; |
@@ -26,3 +26,4 @@ import alignPoint from './align-point'; | ||
if (elementAlignPoint !== anchorAlignPoint && !isPositionCentered && !isOriginCentered) { | ||
if (offset < 0) { | ||
const isBeforeAnchor = anchorAlignPoint === alignPoint.top || anchorAlignPoint === alignPoint.left; | ||
if (offset < 0 && isBeforeAnchor) { | ||
output = size + anchorSize + marginToAdd; | ||
@@ -32,3 +33,3 @@ if (offset + output + size > viewPortSize) { | ||
} | ||
} else { | ||
} else if (offset >= 0 && !isBeforeAnchor) { | ||
if (offset + size > viewPortSize) { | ||
@@ -35,0 +36,0 @@ output += -(anchorSize + size + marginToAdd); |
@@ -1,3 +0,5 @@ | ||
const getWindow = (element) => ( element.ownerDocument.defaultView ); | ||
import ownerDocument from './owner-document'; | ||
const getWindow = (element) => ownerDocument(element).defaultView; | ||
export default getWindow; |
@@ -99,8 +99,50 @@ 'use strict'; | ||
function ownerDocument(element) { | ||
return element.ownerDocument || element.document || element; | ||
} | ||
var getWindow = function (element) { return ownerDocument(element).defaultView; }; | ||
var getDocument = function (element) { return ownerDocument(element).documentElement; }; | ||
var cachedWidth = 0; | ||
function scrollbarWidth() { | ||
if (!cachedWidth && typeof document !== 'undefined') { | ||
var div = document.createElement("div"); | ||
div.style.cssText = "overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block"; | ||
div.innerHTML = " "; | ||
document.body.appendChild(div); | ||
cachedWidth = div.offsetWidth - div.scrollWidth; | ||
document.body.removeChild(div); | ||
} | ||
return cachedWidth; | ||
} | ||
function windowViewport(element) { | ||
var win = getWindow(element); | ||
var document = getDocument(element); | ||
var result = { | ||
height: win.innerHeight, | ||
width: win.innerWidth | ||
}; | ||
if (document.scrollHeight - document.clientHeight > 0) { | ||
result.width -= scrollbarWidth(); | ||
} | ||
return result; | ||
} | ||
var boundingOffset = function (element) { | ||
if (!element.getBoundingClientRect) { | ||
var viewport = windowViewport(element); | ||
return { | ||
bottom: element.innerHeight, | ||
bottom: viewport.height, | ||
left: 0, | ||
right: element.innerWidth, | ||
right: viewport.width, | ||
top: 0 | ||
@@ -124,4 +166,2 @@ }; | ||
var getDocument = function (element) { return ( element.ownerDocument.documentElement ); }; | ||
var offsetParent = function (element) { | ||
@@ -190,4 +230,2 @@ var offsetParent = element.offsetParent; | ||
var getWindow = function (element) { return ( element.ownerDocument.defaultView ); }; | ||
function scrollPosition(element) { | ||
@@ -314,3 +352,4 @@ var documentElement = getDocument(element); | ||
if (elementAlignPoint !== anchorAlignPoint && !isPositionCentered && !isOriginCentered) { | ||
if (offset < 0) { | ||
var isBeforeAnchor = anchorAlignPoint === alignPoint.top || anchorAlignPoint === alignPoint.left; | ||
if (offset < 0 && isBeforeAnchor) { | ||
output = size + anchorSize + marginToAdd; | ||
@@ -320,3 +359,3 @@ if (offset + output + size > viewPortSize) { | ||
} | ||
} else { | ||
} else if (offset >= 0 && !isBeforeAnchor) { | ||
if (offset + size > viewPortSize) { | ||
@@ -444,35 +483,2 @@ output += -(anchorSize + size + marginToAdd); | ||
var cachedWidth = 0; | ||
function scrollbarWidth() { | ||
if (!cachedWidth && typeof document !== 'undefined') { | ||
var div = document.createElement("div"); | ||
div.style.cssText = "overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block"; | ||
div.innerHTML = " "; | ||
document.body.appendChild(div); | ||
cachedWidth = div.offsetWidth - div.scrollWidth; | ||
document.body.removeChild(div); | ||
} | ||
return cachedWidth; | ||
} | ||
function windowViewport(element) { | ||
var win = getWindow(element); | ||
var document = getDocument(element); | ||
var result = { | ||
height: win.innerHeight, | ||
width: win.innerWidth | ||
}; | ||
if (document.scrollHeight - document.clientHeight > 0) { | ||
result.width -= scrollbarWidth(); | ||
} | ||
return result; | ||
} | ||
exports.align = align; | ||
@@ -500,2 +506,2 @@ exports.addScroll = addScroll; | ||
//# sourceMappingURL=data:application/json;charset=utf-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gICAgIHRvcCArPSBmbGlwKHtcbiAgICAgICAgICAgIG1hcmdpbjogdmVydGljYWxNYXJnaW4sXG4gICAgICAgICAgICBvZmZzZXQ6IGVsZW1lbnRUb3AsXG4gICAgICAgICAgICBzaXplOiBlbGVtZW50SGVpZ2h0LFxuICAgICAgICAgICAgYW5jaG9yU2l6ZTogYW5jaG9yUmVjdC5oZWlnaHQsXG4gICAgICAgICAgICB2aWV3UG9ydFNpemU6IHZpZXdQb3J0SGVpZ2h0LFxuICAgICAgICAgICAgYW5jaG9yQWxpZ25Qb2ludDogYW5jaG9yQWxpZ24udmVydGljYWwsXG4gICAgICAgICAgICBlbGVtZW50QWxpZ25Qb2ludDogZWxlbWVudEFsaWduLnZlcnRpY2FsXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGlmIChpc0hvcml6b250YWxGbGlwKSB7XG4gICAgICAgIGxlZnQgKz0gZmxpcCh7XG4gICAgICAgICAgICBtYXJnaW46IGhvcml6b250YWxNYXJnaW4sXG4gICAgICAgICAgICBvZmZzZXQ6IGVsZW1lbnRMZWZ0LFxuICAgICAgICAgICAgc2l6ZTogZWxlbWVudFdpZHRoLFxuICAgICAgICAgICAgYW5jaG9yU2l6ZTogYW5jaG9yUmVjdC53aWR0aCxcbiAgICAgICAgICAgIHZpZXdQb3J0U2l6ZTogdmlld1BvcnRXaWR0aCxcbiAgICAgICAgICAgIGFuY2hvckFsaWduUG9pbnQ6IGFuY2hvckFsaWduLmhvcml6b250YWwsXG4gICAgICAgICAgICBlbGVtZW50QWxpZ25Qb2ludDogZWxlbWVudEFsaWduLmhvcml6b250YWxcbiAgICAgICAgfSk7XG4gICAgfVxuICAgIGNvbnN0IGZsaXBwZWRIb3Jpem9udGFsID0gaXNIb3Jpem9udGFsRmxpcCAmJiBsZWZ0ICE9PSAwO1xuICAgIGNvbnN0IGZsaXBwZWRWZXJ0aWNhbCA9IGlzVmVydGljYWxGbGlwICYmIHRvcCAhPT0gMDtcblxuICAgIHJldHVybiB7XG4gICAgICAgIGZsaXBwZWQ6IGZsaXBwZWRIb3Jpem9udGFsIHx8IGZsaXBwZWRWZXJ0aWNhbCxcbiAgICAgICAgZmxpcDoge1xuICAgICAgICAgICAgaG9yaXpvbnRhbDogZmxpcHBlZEhvcml6b250YWwsXG4gICAgICAgICAgICB2ZXJ0aWNhbDogZmxpcHBlZFZlcnRpY2FsXG4gICAgICAgIH0sXG4gICAgICAgIG9mZnNldDoge1xuICAgICAgICAgICAgbGVmdDogbGVmdCxcbiAgICAgICAgICAgIHRvcDogdG9wXG4gICAgICAgIH1cbiAgICB9O1xufTtcblxuZXhwb3J0IGRlZmF1bHQgcmVzdHJpY3RUb1ZpZXc7XG4iLCJleHBvcnQgZGVmYXVsdCAoZWxlbWVudCkgPT4ge1xuICAgIGNvbnN0IHJlc3VsdCA9IFtdO1xuXG4gICAgbGV0IHNpYmxpbmcgPSBlbGVtZW50LnBhcmVudE5vZGUuZmlyc3RFbGVtZW50Q2hpbGQ7XG5cbiAgICB3aGlsZSAoc2libGluZykge1xuICAgICAgICBpZiAoc2libGluZyAhPT0gZWxlbWVudCkge1xuICAgICAgICAgICAgcmVzdWx0LnB1c2goc2libGluZyk7XG4gICAgICAgIH1cblxuICAgICAgICBzaWJsaW5nID0gc2libGluZy5uZXh0RWxlbWVudFNpYmxpbmc7XG4gICAgfVxuICAgIHJldHVybiByZXN1bHQ7XG59O1xuIiwiLyogZXNsaW50LWRpc2FibGUgbm8tbG9vcC1mdW5jICovXG5cbmltcG9ydCBwYXJlbnRzIGZyb20gJy4vcGFyZW50cyc7XG5pbXBvcnQgc2libGluZ3MgZnJvbSAnLi9zaWJsaW5ncyc7XG5cbmV4cG9ydCBkZWZhdWx0IChhbmNob3IsIGNvbnRhaW5lcikgPT4ge1xuICAgIGNvbnN0IHBhcmVudEVsZW1lbnRzID0gcGFyZW50cyhhbmNob3IpO1xuICAgIGxldCBjb250YWluZXJFbGVtZW50ID0gY29udGFpbmVyO1xuICAgIGxldCBzaWJs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Q0FBQyxhQUFhLENBQUM7S0FDckQ7O0lBRUQsT0FBTyxNQUFNLENBQUM7Q0FDakIsQ0FBQSxBQUFDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9 |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-popup-common",[],function(w){return{setters:[],execute:function(){!function(n){var r={};function u(e){if(r[e])return r[e].exports;var t=r[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,u),t.loaded=!0,t.exports}u.m=n,u.c=r,u.p="",u(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"align",{enumerable:!0,get:function(){return M(r).default}});var u=n(3);Object.defineProperty(t,"addScroll",{enumerable:!0,get:function(){return M(u).default}});var o=n(4);Object.defineProperty(t,"applyLocationOffset",{enumerable:!0,get:function(){return M(o).default}});var i=n(5);Object.defineProperty(t,"boundingOffset",{enumerable:!0,get:function(){return M(i).default}});var l=n(6);Object.defineProperty(t,"isBodyOffset",{enumerable:!0,get:function(){return M(l).default}});var f=n(7);Object.defineProperty(t,"offsetParent",{enumerable:!0,get:function(){return M(f).default}});var d=n(9);Object.defineProperty(t,"offset",{enumerable:!0,get:function(){return M(d).default}});var a=n(10);Object.defineProperty(t,"parents",{enumerable:!0,get:function(){return M(a).default}});var c=n(11);Object.defineProperty(t,"parentScrollPosition",{enumerable:!0,get:function(){return M(c).default}});var s=n(15);Object.defineProperty(t,"position",{enumerable:!0,get:function(){return M(s).default}});var p=n(16);Object.defineProperty(t,"positionWithScroll",{enumerable:!0,get:function(){return M(p).default}});var h=n(18);Object.defineProperty(t,"removeScroll",{enumerable:!0,get:function(){return M(h).default}});var v=n(19);Object.defineProperty(t,"restrictToView",{enumerable:!0,get:function(){return M(v).default}});var g=n(13);Object.defineProperty(t,"scrollPosition",{enumerable:!0,get:function(){return M(g).default}});var b=n(21);Object.defineProperty(t,"siblingContainer",{enumerable:!0,get:function(){return M(b).default}});var m=n(22);Object.defineProperty(t,"siblings",{enumerable:!0,get:function(){return M(m).default}});var y=n(8);Object.defineProperty(t,"getDocumentElement",{enumerable:!0,get:function(){return M(y).default}});var _=n(14);Object.defineProperty(t,"getWindow",{enumerable:!0,get:function(){return M(_).default}});var P=n(23);Object.defineProperty(t,"getWindowViewPort",{enumerable:!0,get:function(){return M(P).default}});var O=n(2);Object.defineProperty(t,"AlignPoint",{enumerable:!0,get:function(){return M(O).default}});var j=n(20);function M(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Collision",{enumerable:!0,get:function(){return M(j).default}}),function(e){for(var t in e)w(t,e[t])}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=n(2),v=(r=u)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,u=e.elementAlign,o=e.margin,i=void 0===o?{}:o,l=n.horizontal,f=n.vertical,d=u.horizontal,a=u.vertical,c=i.horizontal||0,s=i.vertical||0,p=t.top,h=t.left;return f===v.default.bottom&&(p+=t.height),f!==v.default.center&&f!==v.default.middle||(p+=Math.round(t.height/2)),a===v.default.bottom&&(p-=r.height,s*=-1),a!==v.default.center&&a!==v.default.middle||(p-=Math.round(r.height/2),s*=-1),l===v.default.right&&(h+=t.width),l!==v.default.center&&l!==v.default.middle||(h+=Math.round(t.width/2)),d===v.default.right&&(h-=r.width,c*=-1),d!==v.default.center&&d!==v.default.middle||(h-=Math.round(r.width/2),c*=-1),{top:p+s,left:h+c}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e.top,u=e.left;n&&(r=u=0);return{top:r+t.top,left:u+t.left,height:e.height,width:e.width}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){if(!e.getBoundingClientRect)return{bottom:e.innerHeight,left:0,right:e.innerWidth,top:0};var t=e.getBoundingClientRect();return{bottom:t.bottom,left:t.left,right:t.right,top:t.top}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=n(7),o=(r=u)&&r.__esModule?r:{default:r};t.default=function(e){return(0,o.default)(e)===e.ownerDocument.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=n(8),o=(r=u)&&r.__esModule?r:{default:r};t.default=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||(0,o.default)(e)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){return e.ownerDocument.documentElement}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t=e.getBoundingClientRect(),n=t,r=n.left,u=n.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,r=t.left,u=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var o=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=u,o}(e)),{top:u,left:r,height:t.height,width:t.width}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,r.default)(e);return t?(0,u.default)(t):{x:0,y:0}};var r=o(n(7)),u=o(n(12));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=n(13),o=(r=u)&&r.__esModule?r:{default:r};t.default=function(e){return e===(e.ownerDocument||{}).body?(0,o.default)(e):{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,r.default)(e),n=(0,u.default)(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}};var r=o(n(8)),u=o(n(14));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){return e.ownerDocument.defaultView}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(7)),c=r(n(9)),s=r(n(14));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=(0,s.default)(e),r=n.getComputedStyle(e),u=(0,c.default)(e),o=t||(0,a.default)(e),i=e.ownerDocument,l=o!==i.body&&o!==i.documentElement,f={top:0,left:0};if("fixed"!==r.position&&l){var d=n.getComputedStyle(o);(f=(0,c.default)(o)).top+=parseInt(d.borderTopWidth,10),f.left+=parseInt(d.borderLeftWidth,10)}return{top:u.top-f.top,left:u.left-f.left,height:u.height,width:u.width}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(17)),c=r(n(7)),s=r(n(15));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=t?(0,c.default)(t):null,r=(0,s.default)(e,n),u=r.top,o=r.left,i=r.height,l=r.width,f=(0,a.default)(n,e),d=f.x;return{top:u+f.y,left:o+d,height:i,width:l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(12)),u=o(n(11));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){return e?(0,r.default)(e):(0,u.default)(t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(n(2)),j=r(n(20));function r(e){return e&&e.__esModule?e:{default:e}}var M=function(e,t,n){var r=0;return n<e+t&&(r=n-(e+t)),e<0&&(r=-e),r},w=function(e){var t=e.offset,n=e.size,r=e.anchorSize,u=e.viewPortSize,o=e.anchorAlignPoint,i=e.elementAlignPoint,l=e.margin,f=0,d=i===s.default.center||i===s.default.middle,a=o===s.default.center||o===s.default.middle,c=2*l;return i===o||d||a||(t<0?u<t+(f=n+r+c)+n&&(f=0):(u<t+n&&(f+=-(r+n+c)),t+f<0&&(f=0))),f};t.default=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,u=e.elementAlign,o=e.collisions,i=e.viewPort,l=e.margin,f=void 0===l?{}:l,d=r.top,a=r.left,c=r.height,s=r.width,p=i.height,h=i.width,v=f.horizontal||0,g=f.vertical||0,b=0,m=0,y=o.horizontal===j.default.flip,_=o.vertical===j.default.flip;o.vertical===j.default.fit&&(m+=M(d,c,p)),o.horizontal===j.default.fit&&(b+=M(a,s,h)),_&&(m+=w({margin:g,offset:d,size:c,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:u.vertical})),y&&(b+=w({margin:v,offset:a,size:s,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:u.horizontal}));var P=y&&0!==b,O=_&&0!==m;return{flipped:P||O,flip:{horizontal:P,vertical:O},offset:{left:b,top:m}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={fit:"fit",flip:"flip"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(10)),l=r(n(22));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){for(var n=(0,i.default)(e),r=t,u=void 0,o=void 0;r&&(u=(0,l.default)(r),!(o=n.reduce(function(e,t){return e.concat(u.filter(function(e){return e===t}))},[])[0]));)r=r.parentElement;return o}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,u.default)(e),n=(0,o.default)(e),r={height:t.innerHeight,width:t.innerWidth};0<n.scrollHeight-n.clientHeight&&(r.width-=(0,i.default)());return r};var u=r(n(14)),o=r(n(8)),i=r(n(24));function r(e){return e&&e.__esModule?e:{default:e}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),n=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return n};var n=0}])}}}); | ||
System.register("@progress/kendo-popup-common",[],function(w){return{setters:[],execute:function(){!function(n){var r={};function u(e){if(r[e])return r[e].exports;var t=r[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,u),t.loaded=!0,t.exports}u.m=n,u.c=r,u.p="",u(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"align",{enumerable:!0,get:function(){return M(r).default}});var u=n(3);Object.defineProperty(t,"addScroll",{enumerable:!0,get:function(){return M(u).default}});var o=n(4);Object.defineProperty(t,"applyLocationOffset",{enumerable:!0,get:function(){return M(o).default}});var i=n(5);Object.defineProperty(t,"boundingOffset",{enumerable:!0,get:function(){return M(i).default}});var l=n(11);Object.defineProperty(t,"isBodyOffset",{enumerable:!0,get:function(){return M(l).default}});var f=n(12);Object.defineProperty(t,"offsetParent",{enumerable:!0,get:function(){return M(f).default}});var d=n(13);Object.defineProperty(t,"offset",{enumerable:!0,get:function(){return M(d).default}});var a=n(14);Object.defineProperty(t,"parents",{enumerable:!0,get:function(){return M(a).default}});var c=n(15);Object.defineProperty(t,"parentScrollPosition",{enumerable:!0,get:function(){return M(c).default}});var s=n(18);Object.defineProperty(t,"position",{enumerable:!0,get:function(){return M(s).default}});var p=n(19);Object.defineProperty(t,"positionWithScroll",{enumerable:!0,get:function(){return M(p).default}});var h=n(21);Object.defineProperty(t,"removeScroll",{enumerable:!0,get:function(){return M(h).default}});var v=n(22);Object.defineProperty(t,"restrictToView",{enumerable:!0,get:function(){return M(v).default}});var g=n(17);Object.defineProperty(t,"scrollPosition",{enumerable:!0,get:function(){return M(g).default}});var b=n(24);Object.defineProperty(t,"siblingContainer",{enumerable:!0,get:function(){return M(b).default}});var _=n(25);Object.defineProperty(t,"siblings",{enumerable:!0,get:function(){return M(_).default}});var y=n(9);Object.defineProperty(t,"getDocumentElement",{enumerable:!0,get:function(){return M(y).default}});var m=n(7);Object.defineProperty(t,"getWindow",{enumerable:!0,get:function(){return M(m).default}});var P=n(6);Object.defineProperty(t,"getWindowViewPort",{enumerable:!0,get:function(){return M(P).default}});var O=n(2);Object.defineProperty(t,"AlignPoint",{enumerable:!0,get:function(){return M(O).default}});var j=n(23);function M(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Collision",{enumerable:!0,get:function(){return M(j).default}}),function(e){for(var t in e)w(t,e[t])}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=n(2),v=(r=u)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,u=e.elementAlign,o=e.margin,i=void 0===o?{}:o,l=n.horizontal,f=n.vertical,d=u.horizontal,a=u.vertical,c=i.horizontal||0,s=i.vertical||0,p=t.top,h=t.left;return f===v.default.bottom&&(p+=t.height),f!==v.default.center&&f!==v.default.middle||(p+=Math.round(t.height/2)),a===v.default.bottom&&(p-=r.height,s*=-1),a!==v.default.center&&a!==v.default.middle||(p-=Math.round(r.height/2),s*=-1),l===v.default.right&&(h+=t.width),l!==v.default.center&&l!==v.default.middle||(h+=Math.round(t.width/2)),d===v.default.right&&(h-=r.width,c*=-1),d!==v.default.center&&d!==v.default.middle||(h-=Math.round(r.width/2),c*=-1),{top:p+s,left:h+c}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e.top,u=e.left;n&&(r=u=0);return{top:r+t.top,left:u+t.left,height:e.height,width:e.width}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=n(6),o=(r=u)&&r.__esModule?r:{default:r};t.default=function(e){if(!e.getBoundingClientRect){var t=(0,o.default)(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,u.default)(e),n=(0,o.default)(e),r={height:t.innerHeight,width:t.innerWidth};0<n.scrollHeight-n.clientHeight&&(r.width-=(0,i.default)());return r};var u=r(n(7)),o=r(n(9)),i=r(n(10));function r(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=n(8),o=(r=u)&&r.__esModule?r:{default:r};t.default=function(e){return(0,o.default)(e).defaultView}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.ownerDocument||e.document||e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=n(8),o=(r=u)&&r.__esModule?r:{default:r};t.default=function(e){return(0,o.default)(e).documentElement}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),n=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return n};var n=0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=n(12),o=(r=u)&&r.__esModule?r:{default:r};t.default=function(e){return(0,o.default)(e)===e.ownerDocument.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=n(9),o=(r=u)&&r.__esModule?r:{default:r};t.default=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||(0,o.default)(e)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t=e.getBoundingClientRect(),n=t,r=n.left,u=n.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,r=t.left,u=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var o=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=u,o}(e)),{top:u,left:r,height:t.height,width:t.width}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,r.default)(e);return t?(0,u.default)(t):{x:0,y:0}};var r=o(n(12)),u=o(n(16));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,u=n(17),o=(r=u)&&r.__esModule?r:{default:r};t.default=function(e){return e===(e.ownerDocument||{}).body?(0,o.default)(e):{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,r.default)(e),n=(0,u.default)(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}};var r=o(n(9)),u=o(n(7));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(12)),c=r(n(13)),s=r(n(7));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=(0,s.default)(e),r=n.getComputedStyle(e),u=(0,c.default)(e),o=t||(0,a.default)(e),i=e.ownerDocument,l=o!==i.body&&o!==i.documentElement,f={top:0,left:0};if("fixed"!==r.position&&l){var d=n.getComputedStyle(o);(f=(0,c.default)(o)).top+=parseInt(d.borderTopWidth,10),f.left+=parseInt(d.borderLeftWidth,10)}return{top:u.top-f.top,left:u.left-f.left,height:u.height,width:u.width}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(20)),c=r(n(12)),s=r(n(18));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=t?(0,c.default)(t):null,r=(0,s.default)(e,n),u=r.top,o=r.left,i=r.height,l=r.width,f=(0,a.default)(n,e),d=f.x;return{top:u+f.y,left:o+d,height:i,width:l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(16)),u=o(n(15));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){return e?(0,r.default)(e):(0,u.default)(t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=r(n(2)),j=r(n(23));function r(e){return e&&e.__esModule?e:{default:e}}var M=function(e,t,n){var r=0;return n<e+t&&(r=n-(e+t)),e<0&&(r=-e),r},w=function(e){var t=e.offset,n=e.size,r=e.anchorSize,u=e.viewPortSize,o=e.anchorAlignPoint,i=e.elementAlignPoint,l=e.margin,f=0,d=i===p.default.center||i===p.default.middle,a=o===p.default.center||o===p.default.middle,c=2*l;if(i!==o&&!d&&!a){var s=o===p.default.top||o===p.default.left;t<0&&s?u<t+(f=n+r+c)+n&&(f=0):0<=t&&!s&&(u<t+n&&(f+=-(r+n+c)),t+f<0&&(f=0))}return f};t.default=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,u=e.elementAlign,o=e.collisions,i=e.viewPort,l=e.margin,f=void 0===l?{}:l,d=r.top,a=r.left,c=r.height,s=r.width,p=i.height,h=i.width,v=f.horizontal||0,g=f.vertical||0,b=0,_=0,y=o.horizontal===j.default.flip,m=o.vertical===j.default.flip;o.vertical===j.default.fit&&(_+=M(d,c,p)),o.horizontal===j.default.fit&&(b+=M(a,s,h)),m&&(_+=w({margin:g,offset:d,size:c,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:u.vertical})),y&&(b+=w({margin:v,offset:a,size:s,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:u.horizontal}));var P=y&&0!==b,O=m&&0!==_;return{flipped:P||O,flip:{horizontal:P,vertical:O},offset:{left:b,top:_}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={fit:"fit",flip:"flip"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(14)),l=r(n(25));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){for(var n=(0,i.default)(e),r=t,u=void 0,o=void 0;r&&(u=(0,l.default)(r),!(o=n.reduce(function(e,t){return e.concat(u.filter(function(e){return e===t}))},[])[0]));)r=r.parentElement;return o}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}}])}}}); |
@@ -6,3 +6,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "1.6.0-dev.201805161337", | ||
"version": "1.6.0-dev.201805230752", | ||
"main": "dist/npm/main.js", | ||
@@ -9,0 +9,0 @@ "module": "dist/es/main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113946
96
1458