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

@progress/kendo-react-popup

Package Overview
Dependencies
Maintainers
1
Versions
1235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.3.0-dev.201801301727 to 0.3.0-dev.201802021152

2

dist/systemjs/kendo-react-popup.js

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

System.register("@progress/kendo-react-popup",["react","classnames","prop-types","react-dom","@progress/kendo-react-animation","react-dom/server","@progress/kendo-popup-common"],function(t){var e,n,o,i,r,l,s;function p(t){return t.__useDefault?t.default:t}return{setters:[function(t){e=p(t)},function(t){n=p(t)},function(t){o=p(t)},function(t){i=p(t)},function(t){r=p(t)},function(t){l=p(t)},function(t){s=p(t)}],execute:function(){!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=t,n.c=e,n.p="",n(0)}([function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=o(1);n.Popup=i.default,function(e){for(var n in e)t(n,e[n])}(n)},function(t,e,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};Object.defineProperty(e,"__esModule",{value:!0});var l=n(2),s=n(3),p=n(4),c=n(5),a=n(6),f=n(7),u=n(8),d=n(10),h=n(11),m=n(12),v="k-animation-container-shown",g="k-popup",y=function(t){return s.findDOMNode(t)},_=function(t){function e(e){var n=t.call(this,e)||this;return n.position=function(t,e,o){var i=t.anchorAlign,r=t.popupAlign,l=t.collision,s=t.offset,p=n._alignService.alignElement({anchor:e,element:o,elementAlign:r,anchorAlign:i,offset:s});return n._positionService.positionElement({anchor:e,anchorAlign:i,collisions:l,element:o,currentLocation:p,elementAlign:r})},n.onOpened=function(){n.props.show&&n._element&&n._element.classList.add(v),n.props.open&&n.props.open.call(void 0,{target:n})},n.onClosing=function(){!n.props.show&&n._element&&n._element.classList.remove(v)},n.onClosed=function(){n.props.close&&n.props.close.call(void 0,{target:n})},n._flipped=!1,n._offset=n.props.offset,n._domService=new h.DOMService,n._alignService=new d.AlignService(n._domService),n._positionService=new m.PositionService(n._domService),n}return i(e,t),e.prototype.componentWillReceiveProps=function(t){this._element=y(this),this._appendTo=y(t.appendTo);var e=y(t.anchor);if(t.show&&e){var n=this.calculatePosition(e,t);this._offset=n.offset,this._flipped=n.flipped}},e.prototype.render=function(){var t=this.props,e=t.animate,n=t.children,o=t.className,i=t.popupClass,p=t.show,a=this._flipped&&p?"up":"down",u=e?void 0:0,d=this._offset||{},h=Object.assign({},this.props.style||{},r({},d)),m=l.createElement(f.Slide,{componentChildClassName:c(i,g),className:c(o),onEntered:this.onOpened,onExiting:this.onClosing,onExited:this.onClosed,direction:a,style:h,transitionEnterDuration:u,transitionExitDuration:u},p?n:null);return this._appendTo?s.createPortal(m,this._appendTo):m},e.prototype.calculatePosition=function(t,e){var n=document.createElement("div");this._appendTo?this._appendTo.appendChild(n):t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling);var o=Object.assign({},e.style||{},{visibility:"hidden"}),i={className:c(e.popupClass,g)},s=l.createElement("div",{className:c("k-animation-container",e.className),style:o},l.Children.map(e.children,function(t,e){return l.createElement("div",r({key:e},i),t)}));n.innerHTML=a.renderToStaticMarkup(s);var p=this.position(e,t,n.firstChild);return n.parentNode.removeChild(n),p},e}(l.Component);_.propTypes={anchor:function(t){var e=t.anchor;if(e&&"number"!=typeof e.nodeType&&!e.isReactComponent)return new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed.")},appendTo:function(t){var e=t.appendTo;if(e&&"number"!=typeof e.nodeType&&!e.isReactComponent)return new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed.")},className:p.string,popupClass:p.string,collision:p.shape({horizontal:p.oneOf([u.CollisionType.fit,u.CollisionType.flip]),vertical:p.oneOf([u.CollisionType.fit,u.CollisionType.flip])}),anchorAlign:p.shape({horizontal:p.oneOf([u.AlignPoint.left,u.AlignPoint.center,u.AlignPoint.right]),vertical:p.oneOf([u.AlignPoint.top,u.AlignPoint.center,u.AlignPoint.bottom])}),popupAlign:p.shape({horizontal:p.oneOf([u.AlignPoint.left,u.AlignPoint.center,u.AlignPoint.right]),vertical:p.oneOf([u.AlignPoint.top,u.AlignPoint.center,u.AlignPoint.bottom])}),offset:p.shape({left:p.number,top:p.number}),children:p.oneOfType([p.element,p.node]),show:p.bool,animate:p.bool},_.defaultProps={collision:{horizontal:u.CollisionType.fit,vertical:u.CollisionType.flip},anchorAlign:{horizontal:u.AlignPoint.left,vertical:u.AlignPoint.bottom},popupAlign:{horizontal:u.AlignPoint.left,vertical:u.AlignPoint.top},offset:{left:-1e3,top:0},animate:!0,show:!1},e.default=_},function(t,n){t.exports=e},function(t,e){t.exports=i},function(t,e){t.exports=o},function(t,e){t.exports=n},function(t,e){t.exports=l},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(9);e.eitherRect=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},e.replaceOffset=function(t,e){return e?{height:t.height,left:e.left,top:e.top,width:t.width}:t},e.removeStackingOffset=function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},e.isDifferentOffset=function(t,e){var n=t.left,o=t.top,i=e.left,r=e.top;return Math.abs(n-i)>=1||Math.abs(o-r)>=1},e.isDocumentAvailable=function(){return"undefined"!=typeof document&&!!document.body},e.isWindowAvailable=function(){return"undefined"!=typeof window},e.hasBoundingRect=function(t){return!!t.getBoundingClientRect},e.OVERFLOW_REGEXP=/auto|scroll/;e.scrollableParents=function(t){var n=[];if(!e.isDocumentAvailable()||!e.isWindowAvailable())return n;for(var o,i,r=t.parentElement;r;)e.OVERFLOW_REGEXP.test((o=r,void 0,""+(i=window.getComputedStyle(o)).overflow+i.overflowX+i.overflowY))&&n.push(r),r=r.parentElement;return n.push(window),n},e.FRAME_DURATION=1e3/60,e.hasRelativeStackingContext=function(){if(!e.isDocumentAvailable())return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var n=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),n},e.HAS_RELATIVE_STACKING_CONTEXT=e.hasRelativeStackingContext(),e.zIndex=function(t,n){if(!t||!e.isDocumentAvailable()||!e.isWindowAvailable())return null;var i=o.siblingContainer(t,n);if(!i)return null;var r=[t].concat(o.parents(t,i)).reduce(function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t},0);return r?r+1:null},e.noop=function(){},e.CollisionType={fit:"fit",flip:"flip"},e.AlignPoint={left:"left",center:"center",right:"right",bottom:"bottom",top:"top"}},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=function(){function t(t){this._dom=t}return t.prototype.alignElement=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,i=t.elementAlign,r=t.offset,l=!this._dom.hasOffsetParent(n)?this.absoluteRect(e,n,r):this.relativeRect(e,n,r);return this._dom.align({anchorAlign:o,anchorRect:l,elementAlign:i,elementRect:this._dom.offset(n)})},t.prototype.absoluteRect=function(t,e,n){return this._dom.removeScroll(this._dom.addScroll(o.removeStackingOffset(o.eitherRect(this._dom.offset(t),n),this._dom.stackingElementOffset(e)),this._dom.stackingElementScroll(e)),this.elementScrollPosition(t,e))},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,n){return o.eitherRect(this._dom.position(t,e),n)},t}();e.AlignService=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),i=n(8),r=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.align=function(t){return o.align(t)},t.prototype.boundingOffset=function(t){return o.boundingOffset(t)},t.prototype.getWindow=function(){return i.isWindowAvailable()?window:null},t.prototype.isBodyOffset=function(t){return o.isBodyOffset(t)},t.prototype.hasOffsetParent=function(t){if(!t)return!1;var e=t.offsetParent;return e&&!("BODY"===e.nodeName&&"static"===window.getComputedStyle(e).position)},t.prototype.offset=function(t){return t?o.offset(t):null},t.prototype.staticOffset=function(t){if(!t)return null;var e=t.style,n=e.left,i=e.top;t.style.left="0px",t.style.top="0px";var r=o.offset(t);return t.style.left=n,t.style.top=i,r},t.prototype.position=function(t,e){if(!t||!e)return null;var n=o.siblingContainer(t,e);return o.positionWithScroll(t,n)},t.prototype.relativeOffset=function(t,e){return o.applyLocationOffset(this.offset(t),e,this.isBodyOffset(t))},t.prototype.addScroll=function(t,e){return o.addScroll(t,e)},t.prototype.removeScroll=function(t,e){return o.removeScroll(t,e)},t.prototype.restrictToView=function(t){return o.restrictToView(t)},t.prototype.scrollPosition=function(t){return o.scrollPosition(t)},t.prototype.scrollableParents=function(t){return i.scrollableParents(t)},t.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?o.offset(e):null},t.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},t.prototype.stackingElementViewPort=function(t){var e=this.getRelativeContextElement(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},t.prototype.getRelativeContextElement=function(t){if(!t||!i.HAS_RELATIVE_STACKING_CONTEXT)return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},t.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},t.prototype.windowViewPort=function(t){return o.getWindowViewPort(t)},t.prototype.zIndex=function(t,e){return i.zIndex(t,e)},t.prototype.zoomLevel=function(){return i.isDocumentAvailable()&&i.isWindowAvailable()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t}();e.DOMService=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=function(){function t(t){this._dom=t}return t.prototype.positionElement=function(t){var e=t.anchor,n=t.currentLocation,i=t.element,r=t.anchorAlign,l=t.elementAlign,s=t.collisions,p=this._dom,c=t.viewPort||p.stackingElementViewPort(i)||p.windowViewPort(i),a=o.eitherRect(p.offset(e),n),f=o.replaceOffset(p.staticOffset(i),n),u=this.elementRect(i,f),d=p.restrictToView({anchorAlign:r,anchorRect:a,collisions:s,elementAlign:l,elementRect:u,viewPort:c});return{flipped:d.flipped,offset:p.addOffset(f,d.offset)}},t.prototype.elementRect=function(t,e){return this._dom.removeScroll(e,this._dom.scrollPosition(t))},t}();e.PositionService=i}])}}});
System.register("@progress/kendo-react-popup",["react","react-dom","classnames","prop-types","react-dom/server","@progress/kendo-react-animation","@progress/kendo-popup-common"],function(t){var e,n,o,i,r,l,s;function p(t){return t.__useDefault?t.default:t}return{setters:[function(t){e=p(t)},function(t){n=p(t)},function(t){o=p(t)},function(t){i=p(t)},function(t){r=p(t)},function(t){l=p(t)},function(t){s=p(t)}],execute:function(){!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=t,n.c=e,n.p="",n(0)}([function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=o(1);n.Popup=i.default,function(e){for(var n in e)t(n,e[n])}(n)},function(t,e,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};Object.defineProperty(e,"__esModule",{value:!0});var l=n(2),s=n(3),p=n(4),c=n(5),a=n(6),f=n(7),u=n(8),d=n(10),h=n(11),m=n(12),v="k-animation-container-shown",g="k-popup",y=function(t){return s.findDOMNode(t)},_=function(t){function e(e){var n=t.call(this,e)||this;return n.position=function(t,e,o){var i=t.anchorAlign,r=t.popupAlign,l=t.collision,s=t.offset,p=n._alignService.alignElement({anchor:e,element:o,elementAlign:r,anchorAlign:i,offset:s});return n._positionService.positionElement({anchor:e,anchorAlign:i,collisions:l,element:o,currentLocation:p,elementAlign:r})},n.onOpened=function(){n.props.show&&n._element&&n._element.classList.add(v),n.props.open&&n.props.open.call(void 0,{target:n})},n.onClosing=function(){!n.props.show&&n._element&&n._element.classList.remove(v)},n.onClosed=function(){n.props.close&&n.props.close.call(void 0,{target:n})},n._flipped=!1,n._offset=n.props.offset,n._domService=new h.DOMService,n._alignService=new d.AlignService(n._domService),n._positionService=new m.PositionService(n._domService),n}return i(e,t),e.prototype.componentWillReceiveProps=function(t){this._element=y(this),this._appendTo=y(t.appendTo);var e=y(t.anchor);if(t.show&&e){var n=this.calculatePosition(e,t);this._offset=n.offset,this._flipped=n.flipped}},e.prototype.render=function(){var t=this.props,e=t.animate,n=t.children,o=t.className,i=t.popupClass,p=t.show,a=this._flipped&&p?"up":"down",u=e?void 0:0,d=this._offset||{},h=Object.assign({},this.props.style||{},r({},d)),m=l.createElement(f.Slide,{componentChildClassName:c(i,g),className:c(o),onEntered:this.onOpened,onExiting:this.onClosing,onExited:this.onClosed,direction:a,style:h,transitionEnterDuration:u,transitionExitDuration:u},p?n:null);return this._appendTo?s.createPortal(m,this._appendTo):m},e.prototype.calculatePosition=function(t,e){var n=document.createElement("div");this._appendTo?this._appendTo.appendChild(n):t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling);var o=Object.assign({},e.style||{},{visibility:"hidden"}),i={className:c(e.popupClass,g)},s=l.createElement("div",{className:c("k-animation-container",e.className),style:o},l.Children.map(e.children,function(t,e){return l.createElement("div",r({key:e},i),t)}));n.innerHTML=a.renderToStaticMarkup(s);var p=this.position(e,t,n.firstChild);return n.parentNode.removeChild(n),p},e}(l.Component);_.propTypes={anchor:function(t){var e=t.anchor;if(e&&"number"!=typeof e.nodeType&&!e.isReactComponent)return new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed.")},appendTo:function(t){var e=t.appendTo;if(e&&"number"!=typeof e.nodeType&&!e.isReactComponent)return new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed.")},className:p.string,popupClass:p.string,collision:p.shape({horizontal:p.oneOf([u.CollisionType.fit,u.CollisionType.flip]),vertical:p.oneOf([u.CollisionType.fit,u.CollisionType.flip])}),anchorAlign:p.shape({horizontal:p.oneOf([u.AlignPoint.left,u.AlignPoint.center,u.AlignPoint.right]),vertical:p.oneOf([u.AlignPoint.top,u.AlignPoint.center,u.AlignPoint.bottom])}),popupAlign:p.shape({horizontal:p.oneOf([u.AlignPoint.left,u.AlignPoint.center,u.AlignPoint.right]),vertical:p.oneOf([u.AlignPoint.top,u.AlignPoint.center,u.AlignPoint.bottom])}),offset:p.shape({left:p.number,top:p.number}),children:p.oneOfType([p.element,p.node]),show:p.bool,animate:p.bool},_.defaultProps={collision:{horizontal:u.CollisionType.fit,vertical:u.CollisionType.flip},anchorAlign:{horizontal:u.AlignPoint.left,vertical:u.AlignPoint.bottom},popupAlign:{horizontal:u.AlignPoint.left,vertical:u.AlignPoint.top},offset:{left:-1e3,top:0},animate:!0,show:!1},e.default=_},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e){t.exports=i},function(t,e){t.exports=o},function(t,e){t.exports=r},function(t,e){t.exports=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(9);e.eitherRect=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},e.replaceOffset=function(t,e){return e?{height:t.height,left:e.left,top:e.top,width:t.width}:t},e.removeStackingOffset=function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},e.isDifferentOffset=function(t,e){var n=t.left,o=t.top,i=e.left,r=e.top;return Math.abs(n-i)>=1||Math.abs(o-r)>=1},e.isDocumentAvailable=function(){return"undefined"!=typeof document&&!!document.body},e.isWindowAvailable=function(){return"undefined"!=typeof window},e.hasBoundingRect=function(t){return!!t.getBoundingClientRect},e.OVERFLOW_REGEXP=/auto|scroll/;e.scrollableParents=function(t){var n=[];if(!e.isDocumentAvailable()||!e.isWindowAvailable())return n;for(var o,i,r=t.parentElement;r;)e.OVERFLOW_REGEXP.test((o=r,void 0,""+(i=window.getComputedStyle(o)).overflow+i.overflowX+i.overflowY))&&n.push(r),r=r.parentElement;return n.push(window),n},e.FRAME_DURATION=1e3/60,e.hasRelativeStackingContext=function(){if(!e.isDocumentAvailable())return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var n=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),n},e.HAS_RELATIVE_STACKING_CONTEXT=e.hasRelativeStackingContext(),e.zIndex=function(t,n){if(!t||!e.isDocumentAvailable()||!e.isWindowAvailable())return null;var i=o.siblingContainer(t,n);if(!i)return null;var r=[t].concat(o.parents(t,i)).reduce(function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t},0);return r?r+1:null},e.noop=function(){},e.CollisionType={fit:"fit",flip:"flip"},e.AlignPoint={left:"left",center:"center",right:"right",bottom:"bottom",top:"top"}},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=function(){function t(t){this._dom=t}return t.prototype.alignElement=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,i=t.elementAlign,r=t.offset,l=!this._dom.hasOffsetParent(n)?this.absoluteRect(e,n,r):this.relativeRect(e,n,r);return this._dom.align({anchorAlign:o,anchorRect:l,elementAlign:i,elementRect:this._dom.offset(n)})},t.prototype.absoluteRect=function(t,e,n){return this._dom.removeScroll(this._dom.addScroll(o.removeStackingOffset(o.eitherRect(this._dom.offset(t),n),this._dom.stackingElementOffset(e)),this._dom.stackingElementScroll(e)),this.elementScrollPosition(t,e))},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,n){return o.eitherRect(this._dom.position(t,e),n)},t}();e.AlignService=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),i=n(8),r=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.align=function(t){return o.align(t)},t.prototype.boundingOffset=function(t){return o.boundingOffset(t)},t.prototype.getWindow=function(){return i.isWindowAvailable()?window:null},t.prototype.isBodyOffset=function(t){return o.isBodyOffset(t)},t.prototype.hasOffsetParent=function(t){if(!t)return!1;var e=t.offsetParent;return e&&!("BODY"===e.nodeName&&"static"===window.getComputedStyle(e).position)},t.prototype.offset=function(t){return t?o.offset(t):null},t.prototype.staticOffset=function(t){if(!t)return null;var e=t.style,n=e.left,i=e.top;t.style.left="0px",t.style.top="0px";var r=o.offset(t);return t.style.left=n,t.style.top=i,r},t.prototype.position=function(t,e){if(!t||!e)return null;var n=o.siblingContainer(t,e);return o.positionWithScroll(t,n)},t.prototype.relativeOffset=function(t,e){return o.applyLocationOffset(this.offset(t),e,this.isBodyOffset(t))},t.prototype.addScroll=function(t,e){return o.addScroll(t,e)},t.prototype.removeScroll=function(t,e){return o.removeScroll(t,e)},t.prototype.restrictToView=function(t){return o.restrictToView(t)},t.prototype.scrollPosition=function(t){return o.scrollPosition(t)},t.prototype.scrollableParents=function(t){return i.scrollableParents(t)},t.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?o.offset(e):null},t.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},t.prototype.stackingElementViewPort=function(t){var e=this.getRelativeContextElement(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},t.prototype.getRelativeContextElement=function(t){if(!t||!i.HAS_RELATIVE_STACKING_CONTEXT)return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},t.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},t.prototype.windowViewPort=function(t){return o.getWindowViewPort(t)},t.prototype.zIndex=function(t,e){return i.zIndex(t,e)},t.prototype.zoomLevel=function(){return i.isDocumentAvailable()&&i.isWindowAvailable()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t}();e.DOMService=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=function(){function t(t){this._dom=t}return t.prototype.positionElement=function(t){var e=t.anchor,n=t.currentLocation,i=t.element,r=t.anchorAlign,l=t.elementAlign,s=t.collisions,p=this._dom,c=t.viewPort||p.stackingElementViewPort(i)||p.windowViewPort(i),a=o.eitherRect(p.offset(e),n),f=o.replaceOffset(p.staticOffset(i),n),u=this.elementRect(i,f),d=p.restrictToView({anchorAlign:r,anchorRect:a,collisions:s,elementAlign:l,elementRect:u,viewPort:c});return{flipped:d.flipped,offset:p.addOffset(f,d.offset)}},t.prototype.elementRect=function(t,e){return this._dom.removeScroll(e,this._dom.scrollPosition(t))},t}();e.PositionService=i}])}}});
{
"name": "@progress/kendo-react-popup",
"description": "Kendo UI for React Popup package",
"version": "0.3.0-dev.201801301727",
"version": "0.3.0-dev.201802021152",
"repository": {

@@ -31,3 +31,3 @@ "type": "git",

"@progress/kendo-popup-common": "^1.2.2",
"@progress/kendo-react-animation": "0.3.0-dev.201801301727",
"@progress/kendo-react-animation": "0.3.0-dev.201802021152",
"classnames": "^2.2.5",

@@ -34,0 +34,0 @@ "prop-types": "^15.6.0"

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