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
1246
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.4.0-dev.201802141312 to 0.4.0-dev.201802150802

2

dist/es/Popup.js

@@ -22,5 +22,5 @@ var __extends = (this && this.__extends) || (function () {

import * as PropTypes from 'prop-types';
import * as classNames from 'classnames';
import * as ReactDOMServer from 'react-dom/server';
import { Slide } from '@progress/kendo-react-animation';
import { classNames } from '@progress/kendo-react-common';
import { CollisionType, AlignPoint, throttle, FRAME_DURATION } from './util';

@@ -27,0 +27,0 @@ import { AlignService } from './services/alignService';

@@ -57,6 +57,2 @@ import { ElementRect, OffsetPosition } from '@progress/kendo-popup-common';

*/
export declare function noop(): void;
/**
* @hidden
*/
export declare const CollisionType: {

@@ -63,0 +59,0 @@ fit: string;

@@ -140,6 +140,2 @@ import { parents, siblingContainer } from '@progress/kendo-popup-common';

*/
export function noop() { }
/**
* @hidden
*/
export var CollisionType = {

@@ -146,0 +142,0 @@ fit: 'fit',

@@ -24,5 +24,5 @@ "use strict";

var PropTypes = require("prop-types");
var classNames = require("classnames");
var ReactDOMServer = require("react-dom/server");
var kendo_react_animation_1 = require("@progress/kendo-react-animation");
var kendo_react_common_1 = require("@progress/kendo-react-common");
var util_1 = require("./util");

@@ -128,3 +128,3 @@ var alignService_1 = require("./services/alignService");

var style = Object.assign({}, this.props.style || {}, __assign({}, this._offset));
var popup = (React.createElement(kendo_react_animation_1.Slide, { componentChildClassName: classNames(popupClass, K_POPUP), className: classNames(className), onEntered: this.onOpened, onExiting: this.onClosing, onExited: this.onClosed, direction: direction, style: style, transitionEnterDuration: transitionDuration, transitionExitDuration: transitionDuration }, show ? children : null));
var popup = (React.createElement(kendo_react_animation_1.Slide, { componentChildClassName: kendo_react_common_1.classNames(popupClass, K_POPUP), className: kendo_react_common_1.classNames(className), onEntered: this.onOpened, onExiting: this.onClosing, onExited: this.onClosed, direction: direction, style: style, transitionEnterDuration: transitionDuration, transitionExitDuration: transitionDuration }, show ? children : null));
if (this._appendTo) {

@@ -146,4 +146,4 @@ return ReactDOM.createPortal(popup, this._appendTo);

var style = Object.assign({}, props.style || {}, { visibility: 'hidden' });
var innerClasses = { className: classNames(props.popupClass, K_POPUP) };
var popup = (React.createElement("div", { className: classNames(ANIMATION_CONTAINER, props.className), style: style }, React.Children.map(props.children, function (child, index) {
var innerClasses = { className: kendo_react_common_1.classNames(props.popupClass, K_POPUP) };
var popup = (React.createElement("div", { className: kendo_react_common_1.classNames(ANIMATION_CONTAINER, props.className), style: style }, React.Children.map(props.children, function (child, index) {
return React.createElement("div", __assign({ key: index }, innerClasses), child);

@@ -150,0 +150,0 @@ })));

@@ -57,6 +57,2 @@ import { ElementRect, OffsetPosition } from '@progress/kendo-popup-common';

*/
export declare function noop(): void;
/**
* @hidden
*/
export declare const CollisionType: {

@@ -63,0 +59,0 @@ fit: string;

@@ -141,7 +141,2 @@ "use strict";

*/
function noop() { }
exports.noop = noop;
/**
* @hidden
*/
exports.CollisionType = {

@@ -148,0 +143,0 @@ fit: 'fit',

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

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

@@ -31,9 +31,6 @@ "type": "git",

"@progress/kendo-popup-common": "^1.2.2",
"@progress/kendo-react-animation": "0.4.0-dev.201802141312",
"classnames": "^2.2.5",
"@progress/kendo-react-animation": "0.4.0-dev.201802150802",
"@progress/kendo-react-common": "0.4.0-dev.201802150802",
"prop-types": "^15.6.0"
},
"devDependencies": {
"@types/classnames": "^2.2.0"
},
"@progress": {

@@ -40,0 +37,0 @@ "friendlyName": "Popup",

Sorry, the diff of this file is too big to display

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

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