Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-popup-common

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-popup-common - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2-dev.201709291016

14

dist/es/element-scroll-position.js

@@ -1,8 +0,14 @@

export default function (element) { return (
{
import scrollPosition from './scroll-position';
export default function (element) {
if (element === (element.ownerDocument || {}).body) {
return scrollPosition(element);
}
return {
x: element.scrollLeft,
y: element.scrollTop
}
); };
};
};
//# sourceMappingURL=element-scroll-position.js.map
import elementScrollPosition from './element-scroll-position';
import parentScrollPosition from './parent-scroll-position';
import scrollPosition from './scroll-position';
export default function (offsetParentElement, element) {
if (offsetParentElement && offsetParentElement === offsetParentElement.ownerDocument.body) {
return scrollPosition(offsetParentElement);
}
export default function (offsetParentElement, element) { return ( // eslint-disable-line no-arrow-condition
offsetParentElement ? elementScrollPosition(offsetParentElement) : parentScrollPosition(element)
); };
return offsetParentElement ? elementScrollPosition(offsetParentElement) : parentScrollPosition(element);
};
//# sourceMappingURL=offset-parent-scroll-position.js.map

@@ -180,8 +180,24 @@ 'use strict';

var elementScrollPosition = function (element) { return (
{
var getWindow = function (element) { return ( element.ownerDocument.defaultView ); };
function scrollPosition(element) {
var documentElement = getDocument(element);
var win = getWindow(element);
return {
x: win.pageXOffset || documentElement.scrollLeft || 0,
y: win.pageYOffset || documentElement.scrollTop || 0
};
}
var elementScrollPosition = function (element) {
if (element === (element.ownerDocument || {}).body) {
return scrollPosition(element);
}
return {
x: element.scrollLeft,
y: element.scrollTop
}
); };
};
};

@@ -194,4 +210,2 @@ function parentScrollPosition(element) {

var getWindow = function (element) { return ( element.ownerDocument.defaultView ); };
var position = function (element, parent) {

@@ -221,20 +235,6 @@ var win = getWindow(element);

function scrollPosition(element) {
var documentElement = getDocument(element);
var win = getWindow(element);
var offsetParentScrollPosition = function (offsetParentElement, element) { return ( // eslint-disable-line no-arrow-condition
offsetParentElement ? elementScrollPosition(offsetParentElement) : parentScrollPosition(element)
); };
return {
x: win.pageXOffset || documentElement.scrollLeft || 0,
y: win.pageYOffset || documentElement.scrollTop || 0
};
}
var offsetParentScrollPosition = function (offsetParentElement, element) {
if (offsetParentElement && offsetParentElement === offsetParentElement.ownerDocument.body) {
return scrollPosition(offsetParentElement);
}
return offsetParentElement ? elementScrollPosition(offsetParentElement) : parentScrollPosition(element);
};
var positionWithScroll = function (element, parent) {

@@ -241,0 +241,0 @@ var offsetParentElement = parent ? offsetParent(parent) : null;

@@ -1,1 +0,1 @@

System.register("@progress/kendo-popup-common",[],function(e){function t(t){for(var n in t)e(n,t[n])}return{setters:[],execute:function(){!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={};t.m=e,t.c=n,t.p="",t(0)}([function(e,n,r){"use strict";function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=r(1);Object.defineProperty(n,"align",{enumerable:!0,get:function(){return u(o).default}});var i=r(3);Object.defineProperty(n,"addScroll",{enumerable:!0,get:function(){return u(i).default}});var f=r(4);Object.defineProperty(n,"applyLocationOffset",{enumerable:!0,get:function(){return u(f).default}});var l=r(5);Object.defineProperty(n,"boundingOffset",{enumerable:!0,get:function(){return u(l).default}});var d=r(6);Object.defineProperty(n,"isBodyOffset",{enumerable:!0,get:function(){return u(d).default}});var a=r(7);Object.defineProperty(n,"offsetParent",{enumerable:!0,get:function(){return u(a).default}});var c=r(9);Object.defineProperty(n,"offset",{enumerable:!0,get:function(){return u(c).default}});var s=r(10);Object.defineProperty(n,"parents",{enumerable:!0,get:function(){return u(s).default}});var p=r(11);Object.defineProperty(n,"parentScrollPosition",{enumerable:!0,get:function(){return u(p).default}});var h=r(13);Object.defineProperty(n,"position",{enumerable:!0,get:function(){return u(h).default}});var v=r(15);Object.defineProperty(n,"positionWithScroll",{enumerable:!0,get:function(){return u(v).default}});var g=r(18);Object.defineProperty(n,"removeScroll",{enumerable:!0,get:function(){return u(g).default}});var b=r(19);Object.defineProperty(n,"restrictToView",{enumerable:!0,get:function(){return u(b).default}});var _=r(17);Object.defineProperty(n,"scrollPosition",{enumerable:!0,get:function(){return u(_).default}});var y=r(21);Object.defineProperty(n,"siblingContainer",{enumerable:!0,get:function(){return u(y).default}});var m=r(22);Object.defineProperty(n,"siblings",{enumerable:!0,get:function(){return u(m).default}});var P=r(8);Object.defineProperty(n,"getDocumentElement",{enumerable:!0,get:function(){return u(P).default}});var O=r(14);Object.defineProperty(n,"getWindow",{enumerable:!0,get:function(){return u(O).default}});var j=r(23);Object.defineProperty(n,"getWindowViewPort",{enumerable:!0,get:function(){return u(j).default}});var M=r(2);Object.defineProperty(n,"AlignPoint",{enumerable:!0,get:function(){return u(M).default}});var w=r(20);Object.defineProperty(n,"Collision",{enumerable:!0,get:function(){return u(w).default}}),t(n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2));t.default=function(e){var t=e.anchorRect,n=e.anchorAlign,u=e.elementRect,o=e.elementAlign,i=n.horizontal,f=n.vertical,l=o.horizontal,d=o.vertical,a=t.top,c=t.left;return f===r.default.bottom&&(a+=t.height),f!==r.default.center&&f!==r.default.middle||(a+=Math.round(t.height/2)),d===r.default.bottom&&(a-=u.height),d!==r.default.center&&d!==r.default.middle||(a-=Math.round(u.height/2)),i===r.default.right&&(c+=t.width),i!==r.default.center&&i!==r.default.middle||(c+=Math.round(t.width/2)),l===r.default.right&&(c-=u.width),l!==r.default.center&&l!==r.default.middle||(c-=Math.round(u.width/2)),{top:a,left: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;return n&&(u=0,r=0),{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=function(e){return e&&e.__esModule?e:{default:e}}(n(7));t.default=function(e){return(0,r.default)(e)===e.ownerDocument.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(8));t.default=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||(0,r.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});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};t.default=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}}},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}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,u.default)(e);return t?(0,o.default)(t):{x:0,y:0}};var u=r(n(7)),o=r(n(12))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(n(7)),o=r(n(9)),i=r(n(14));t.default=function(e,t){var n=(0,i.default)(e),r=n.getComputedStyle(e),f=(0,o.default)(e),l=t||(0,u.default)(e),d=n.getComputedStyle(l),a={top:0,left:0};return"fixed"!==r.position&&l!==e.ownerDocument.body&&((a=(0,o.default)(l)).top+=parseInt(d.borderTopWidth,10),a.left+=parseInt(d.borderLeftWidth,10)),{top:f.top-a.top-parseInt(r.marginTop,10),left:f.left-a.left-parseInt(r.marginLeft,10),height:f.height,width:f.width}}},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";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(n(16)),o=r(n(7)),i=r(n(13));t.default=function(e,t){var n=t?(0,o.default)(t):null,r=(0,i.default)(e,n),f=r.top,l=r.left,d=r.height,a=r.width,c=(0,u.default)(n,e),s=c.x;return{top:f+c.y,left:l+s,height:d,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=r(n(12)),o=r(n(11)),i=r(n(17));t.default=function(e,t){return e&&e===e.ownerDocument.body?(0,i.default)(e):e?(0,u.default)(e):(0,o.default)(t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,u.default)(e),n=(0,o.default)(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}};var u=r(n(8)),o=r(n(14))},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";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(n(2)),o=r(n(20)),i=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},f=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,i=e.anchorAlignPoint,f=e.elementAlignPoint,l=0,d=f===u.default.center||f===u.default.middle,a=i===u.default.center||i===u.default.middle;return f!==i&&!d&&!a&&t>-1&&(t+n>o&&(l+=-(r+n)),t+l<0&&(l+=r+n)),l};t.default=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,u=e.elementAlign,l=e.collisions,d=e.viewPort,a=r.top,c=r.left,s=r.height,p=r.width,h=d.height,v=d.width,g=0,b=0,_=l.horizontal===o.default.flip,y=l.vertical===o.default.flip;return l.vertical===o.default.fit&&(b+=i(a,s,h)),l.horizontal===o.default.fit&&(g+=i(c,p,v)),y&&(b+=f({offset:a,size:s,anchorSize:t.height,viewPortSize:h,anchorAlignPoint:n.vertical,elementAlignPoint:u.vertical})),_&&(g+=f({offset:c,size:p,anchorSize:t.width,viewPortSize:v,anchorAlignPoint:n.horizontal,elementAlignPoint:u.horizontal})),{flipped:_&&0!==g||y&&0!==b,offset:{left:g,top:b}}}},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=r(n(10)),o=r(n(22));t.default=function(e,t){for(var n=(0,u.default)(e),r=t,i=void 0,f=void 0;r&&(i=(0,o.default)(r),!(f=n.reduce(function(e,t){return e.concat(i.filter(function(e){return e===t}))},[])[0]));)r=r.parentElement;return f}},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,r.default)(e);return{height:t.innerHeight,width:t.innerWidth}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(14))}])}}});
System.register("@progress/kendo-popup-common",[],function(e){function t(t){for(var n in t)e(n,t[n])}return{setters:[],execute:function(){!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={};t.m=e,t.c=n,t.p="",t(0)}([function(e,n,r){"use strict";function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=r(1);Object.defineProperty(n,"align",{enumerable:!0,get:function(){return u(o).default}});var i=r(3);Object.defineProperty(n,"addScroll",{enumerable:!0,get:function(){return u(i).default}});var f=r(4);Object.defineProperty(n,"applyLocationOffset",{enumerable:!0,get:function(){return u(f).default}});var l=r(5);Object.defineProperty(n,"boundingOffset",{enumerable:!0,get:function(){return u(l).default}});var d=r(6);Object.defineProperty(n,"isBodyOffset",{enumerable:!0,get:function(){return u(d).default}});var a=r(7);Object.defineProperty(n,"offsetParent",{enumerable:!0,get:function(){return u(a).default}});var c=r(9);Object.defineProperty(n,"offset",{enumerable:!0,get:function(){return u(c).default}});var s=r(10);Object.defineProperty(n,"parents",{enumerable:!0,get:function(){return u(s).default}});var p=r(11);Object.defineProperty(n,"parentScrollPosition",{enumerable:!0,get:function(){return u(p).default}});var h=r(15);Object.defineProperty(n,"position",{enumerable:!0,get:function(){return u(h).default}});var v=r(16);Object.defineProperty(n,"positionWithScroll",{enumerable:!0,get:function(){return u(v).default}});var g=r(18);Object.defineProperty(n,"removeScroll",{enumerable:!0,get:function(){return u(g).default}});var b=r(19);Object.defineProperty(n,"restrictToView",{enumerable:!0,get:function(){return u(b).default}});var _=r(13);Object.defineProperty(n,"scrollPosition",{enumerable:!0,get:function(){return u(_).default}});var y=r(21);Object.defineProperty(n,"siblingContainer",{enumerable:!0,get:function(){return u(y).default}});var m=r(22);Object.defineProperty(n,"siblings",{enumerable:!0,get:function(){return u(m).default}});var P=r(8);Object.defineProperty(n,"getDocumentElement",{enumerable:!0,get:function(){return u(P).default}});var O=r(14);Object.defineProperty(n,"getWindow",{enumerable:!0,get:function(){return u(O).default}});var j=r(23);Object.defineProperty(n,"getWindowViewPort",{enumerable:!0,get:function(){return u(j).default}});var M=r(2);Object.defineProperty(n,"AlignPoint",{enumerable:!0,get:function(){return u(M).default}});var w=r(20);Object.defineProperty(n,"Collision",{enumerable:!0,get:function(){return u(w).default}}),t(n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2));t.default=function(e){var t=e.anchorRect,n=e.anchorAlign,u=e.elementRect,o=e.elementAlign,i=n.horizontal,f=n.vertical,l=o.horizontal,d=o.vertical,a=t.top,c=t.left;return f===r.default.bottom&&(a+=t.height),f!==r.default.center&&f!==r.default.middle||(a+=Math.round(t.height/2)),d===r.default.bottom&&(a-=u.height),d!==r.default.center&&d!==r.default.middle||(a-=Math.round(u.height/2)),i===r.default.right&&(c+=t.width),i!==r.default.center&&i!==r.default.middle||(c+=Math.round(t.width/2)),l===r.default.right&&(c-=u.width),l!==r.default.center&&l!==r.default.middle||(c-=Math.round(u.width/2)),{top:a,left: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;return n&&(u=0,r=0),{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=function(e){return e&&e.__esModule?e:{default:e}}(n(7));t.default=function(e){return(0,r.default)(e)===e.ownerDocument.body}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(8));t.default=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||(0,r.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});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};t.default=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}}},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}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,u.default)(e);return t?(0,o.default)(t):{x:0,y:0}};var u=r(n(7)),o=r(n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(13));t.default=function(e){return e===(e.ownerDocument||{}).body?(0,r.default)(e):{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,u.default)(e),n=(0,o.default)(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}};var u=r(n(8)),o=r(n(14))},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";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(n(7)),o=r(n(9)),i=r(n(14));t.default=function(e,t){var n=(0,i.default)(e),r=n.getComputedStyle(e),f=(0,o.default)(e),l=t||(0,u.default)(e),d=n.getComputedStyle(l),a={top:0,left:0};return"fixed"!==r.position&&l!==e.ownerDocument.body&&((a=(0,o.default)(l)).top+=parseInt(d.borderTopWidth,10),a.left+=parseInt(d.borderLeftWidth,10)),{top:f.top-a.top-parseInt(r.marginTop,10),left:f.left-a.left-parseInt(r.marginLeft,10),height:f.height,width:f.width}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(n(17)),o=r(n(7)),i=r(n(15));t.default=function(e,t){var n=t?(0,o.default)(t):null,r=(0,i.default)(e,n),f=r.top,l=r.left,d=r.height,a=r.width,c=(0,u.default)(n,e),s=c.x;return{top:f+c.y,left:l+s,height:d,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=r(n(12)),o=r(n(11));t.default=function(e,t){return e?(0,u.default)(e):(0,o.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";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(n(2)),o=r(n(20)),i=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},f=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,i=e.anchorAlignPoint,f=e.elementAlignPoint,l=0,d=f===u.default.center||f===u.default.middle,a=i===u.default.center||i===u.default.middle;return f!==i&&!d&&!a&&t>-1&&(t+n>o&&(l+=-(r+n)),t+l<0&&(l+=r+n)),l};t.default=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,u=e.elementAlign,l=e.collisions,d=e.viewPort,a=r.top,c=r.left,s=r.height,p=r.width,h=d.height,v=d.width,g=0,b=0,_=l.horizontal===o.default.flip,y=l.vertical===o.default.flip;return l.vertical===o.default.fit&&(b+=i(a,s,h)),l.horizontal===o.default.fit&&(g+=i(c,p,v)),y&&(b+=f({offset:a,size:s,anchorSize:t.height,viewPortSize:h,anchorAlignPoint:n.vertical,elementAlignPoint:u.vertical})),_&&(g+=f({offset:c,size:p,anchorSize:t.width,viewPortSize:v,anchorAlignPoint:n.horizontal,elementAlignPoint:u.horizontal})),{flipped:_&&0!==g||y&&0!==b,offset:{left:g,top:b}}}},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=r(n(10)),o=r(n(22));t.default=function(e,t){for(var n=(0,u.default)(e),r=t,i=void 0,f=void 0;r&&(i=(0,o.default)(r),!(f=n.reduce(function(e,t){return e.concat(i.filter(function(e){return e===t}))},[])[0]));)r=r.parentElement;return f}},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,r.default)(e);return{height:t.innerHeight,width:t.innerWidth}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(14))}])}}});
{
"name": "@progress/kendo-popup-common",
"description": "Kendo UI Popup common package",
"version": "1.2.1",
"version": "1.2.2-dev.201709291016",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc