@progress/kendo-popup-common
Advanced tools
Comparing version 1.6.1 to 1.7.0-dev.201903121333
@@ -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(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}}])}); | ||
!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=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t?(0,l.default)(t):null,u=(0,d.default)(e,r),i=u.top,f=u.left,a=u.height,c=u.width,s=(0,o.default)(r,e),p=s.x,h=s.y;return{top:i+h*n,left:f+p*n,height:a,width:c}}},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}}])}); |
@@ -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(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}}])}); | ||
!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=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t?(0,l.default)(t):null,u=(0,d.default)(e,r),i=u.top,f=u.left,a=u.height,c=u.width,s=(0,o.default)(r,e),p=s.x,h=s.y;return{top:i+h*n,left:f+p*n,height:a,width:c}}},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}}])}); |
@@ -5,3 +5,5 @@ import offsetParentScrollPosition from './offset-parent-scroll-position'; | ||
export default function (element, parent) { | ||
export default function (element, parent, scale) { | ||
if ( scale === void 0 ) scale = 1; | ||
var offsetParentElement = parent ? offsetParent(parent) : null; | ||
@@ -18,4 +20,4 @@ var ref = position(element, offsetParentElement); | ||
return { | ||
top: top + y, | ||
left: left + x, | ||
top: top + y * scale, | ||
left: left + x * scale, | ||
height: height, | ||
@@ -22,0 +24,0 @@ width: width |
@@ -5,3 +5,3 @@ import offsetParentScrollPosition from './offset-parent-scroll-position'; | ||
export default (element, parent) => { | ||
export default (element, parent, scale = 1) => { | ||
const offsetParentElement = parent ? offsetParent(parent) : null; | ||
@@ -12,4 +12,4 @@ const { top, left, height, width } = position(element, offsetParentElement); | ||
return { | ||
top: top + y, | ||
left: left + x, | ||
top: top + y * scale, | ||
left: left + x * scale, | ||
height: height, | ||
@@ -16,0 +16,0 @@ width: width |
@@ -286,3 +286,5 @@ 'use strict'; | ||
var positionWithScroll = function (element, parent) { | ||
var positionWithScroll = function (element, parent, scale) { | ||
if ( scale === void 0 ) scale = 1; | ||
var offsetParentElement = parent ? offsetParent(parent) : null; | ||
@@ -299,4 +301,4 @@ var ref = position(element, offsetParentElement); | ||
return { | ||
top: top + y, | ||
left: left + x, | ||
top: top + y * scale, | ||
left: left + x * scale, | ||
height: height, | ||
@@ -502,2 +504,2 @@ width: width | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjpudWxsLCJzb3VyY2VzIjpbIi91c3IvbG9jYWwvamVua2lucy93b3Jrc3BhY2Uva2VuZG8tcG9wdXAtY29tbW9uX3JlbGVhc2Uvc3JjL2FsaWduLXBvaW50LmpzIiwiL3Vzci9sb2NhbC9qZW5raW5zL3dvcmtzcGFjZS9rZW5kby1wb3B1cC1jb21tb25fcmVsZWFzZS9zcmMvYWxpZ24uanMiLCIvdXNyL2xvY2FsL2plbmtpbnMvd29ya3NwYWNlL2tlbmRvLXBvcHVwLWNvbW1vbl9yZWxlYXNlL3NyYy9hZGQtc2Nyb2xsLmpzIiwiL3Vzci9sb2NhbC9qZW5raW5zL3dvcmtzcGFjZS9rZW5kby1wb3B1cC1jb21tb25fcmVsZWFzZS9zcmMvYXBwbHktbG9jYXRpb24tb2Zmc2V0LmpzIiwiL3Vzci9sb2NhbC9qZW5raW5zL3dvcmtzcGFjZS9rZW5kby1wb3B1cC1jb21tb25fcmVsZWFzZS9zcmMvb3duZXItZG9jdW1lbnQuanMiLCIvdXNyL2xvY2FsL2plbmtpbnMvd29ya3NwYWNlL2tlbmRvLXBvcHVwLWNvbW1vbl9yZWxlYXNlL3NyYy93aW5kb3cuanMiLCIvdXNyL2xvY2FsL2plbmtpbnMvd29ya3NwYWNlL2tlbmRvLXBvcHVwLWNvbW1vbl9yZWxlYXNlL3Ny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uQ2VudGVyZWQgJiYgIWlzT3JpZ2luQ2VudGVyZWQpIHtcbiAgICAgICAgY29uc3QgaXNCZWZvcmVBbmNob3IgPSBhbmNob3JBbGlnblBvaW50ID09PSBhbGlnblBvaW50LnRvcCB8fCBhbmNob3JBbGlnblBvaW50ID09PSBhbGlnblBvaW50LmxlZnQ7XG4gICAgICAgIGlmIChvZmZzZXQgPCAwICYmIGlzQmVmb3JlQW5jaG9yKSB7XG4gICAgICAgICAgICBvdXRwdXQgPSBzaXplICsgYW5jaG9yU2l6ZSArIG1hcmdpblRvQWRkO1xuICAgICAgICAgICAgaWYgKG9mZnNldCArIG91dHB1dCArIHNpemUgPiB2aWV3UG9ydFNpemUpIHtcbiAgICAgICAgICAgICAgICBvdXRwdXQgPSAwOyAvL3NraXAgZmxpcFxuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2UgaWYgKG9mZnNldCA+PSAwICYmICFpc0JlZm9yZUFuY2hvcikge1xuICAgICAgICAgICAgaWYgKG9mZnNldCArIHNpemUgPiB2aWV3UG9ydFNpemUpIHtcbiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gLShhbmNob3JTaXplICsgc2l6ZSArIG1hcmdpblRvQWRkKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKG9mZnNldCArIG91dHB1dCA8IDApIHtcbiAgICAgICAgICAgICAgICBvdXRwdXQgPSAwOyAvL3NraXAgZmxpcFxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIG91dHB1dDtcbn07XG5cbmNvbnN0IHJlc3RyaWN0VG9WaWV3ID0gKG9wdGlvbnMpID0+IHtcbiAgICBjb25zdCB7IGFuY2hvclJlY3QsIGFuY2hvckFsaWduLCBlbGVtZW50UmVjdCwgZWxlbWVudEFsaWduLCBjb2xsaXNpb25zLCB2aWV3UG9ydCwgbWFyZ2luID0ge30gfSA9IG9wdGlvbnM7XG4gICAgY29uc3QgeyB0b3A6IGVsZW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xcbiAgICAgICAgICAgIHNpemU6IGVsZW1lbnRIZWlnaHQsXG4gICAgICAgICAgICBhbmNob3JTaXplOiBhbmNob3JSZWN0LmhlaWdodCxcbiAgICAgICAgICAgIHZpZXdQb3J0U2l6ZTogdmlld1BvcnRIZWlnaHQsXG4gICAgICAgICAgICBhbmNob3JBbGlnblBvaW50OiBhbmNob3JBbGlnbi52ZXJ0aWNhbCxcbiAgICAgICAgICAgIGVsZW1lbnRBbGlnblBvaW50OiBlbGVtZW50QWxpZ24udmVydGljYWxcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKGlzSG9yaXpvbnRhbEZsaXApIHtcbiAgICAgICAgbGVmdCArPSBmbGlwKHtcbiAgICAgICAgICAgIG1hcmdpbjogaG9yaXpvbnRhbE1hcmdpbixcbiAgICAgICAgICAgIG9mZnNldDogZWxlbWVudExlZnQsXG4gICAgICAgICAgICBzaXplOiBlbGVtZW50V2lkdGgsXG4gICAgICAgICAgICBhbmNob3JTaXplOiBhbmNob3JSZWN0LndpZHRoLFxuICAgICAgICAgICAgdmlld1BvcnRTaXplOiB2aWV3UG9ydFdpZHRoLFxuICAgICAgICAgICAgYW5jaG9yQWxpZ25Qb2ludDogYW5jaG9yQWxpZ24uaG9yaXpvbnRhbCxcbiAgICAgICAgICAgIGVsZW1lbnRBbGlnblBvaW50OiBlbGVtZW50QWxpZ24uaG9yaXpvbnRhbFxuICAgICAgICB9KTtcbiAgICB9XG4gICAgY29uc3QgZmxpcHBlZEhvcml6b250YWwgPSBpc0hvcml6b250YWxGbGlwICYmIGxlZnQgIT09IDA7XG4gICAgY29uc3QgZmxpcHBlZFZlcnRpY2FsID0gaXNWZXJ0aWNhbEZsaXAgJiYgdG9wICE9PSAwO1xuXG4gICAgcmV0dXJuIHtcbiAgICAgICAgZmxpcHBlZDogZmxpcHBlZEhvcml6b250YWwgfHwgZmxpcHBlZFZlcnRpY2FsLFxuICAgICAgICBmbGlwOiB7XG4gICAgICAgICAgICBob3Jp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BQTtZQUM5RCxFQUFFO1NBQ0wsQ0FBQyxDQUFDLENBQUMsQ0FBQzs7UUFFTCxJQUFJLE1BQU0sRUFBRSxFQUFFLE1BQU0sRUFBRTs7UUFFdEIsZ0JBQWdCLEdBQUcsZ0JBQWdCLENBQUMsYUFBYSxDQUFDO0tBQ3JEOztJQUVELE9BQU8sTUFBTSxDQUFDO0NBQ2pCLENBQUEsQUFBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== |
import Rect from "./rect"; | ||
declare var _default: (element: HTMLElement, popup: HTMLElement) => Rect; | ||
declare var _default: (element: HTMLElement, popup: HTMLElement, scale?: number) => Rect; | ||
export default _default; |
@@ -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(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}}])}}}); | ||
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 c=r(n(20)),s=r(n(12)),p=r(n(18));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,r=t?(0,s.default)(t):null,u=(0,p.default)(e,r),o=u.top,i=u.left,l=u.height,f=u.width,d=(0,c.default)(r,e),a=d.x;return{top:o+d.y*n,left:i+a*n,height:l,width:f}}},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.1", | ||
"version": "1.7.0-dev.201903121333", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
125598
1460
2