Socket
Socket
Sign inDemoInstall

@progress/kendo-vue-popup

Package Overview
Dependencies
Maintainers
1
Versions
569
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.3.7-dev.201910240657 to 0.3.7-dev.201910290845

2

dist/systemjs/kendo-vue-popup.js

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

System.register("@progress/kendo-vue-popup",["vue-class-component","@progress/kendo-vue-animation","@progress/kendo-vue-common","@progress/kendo-popup-common"],function(r){var s,l,a,p;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){s=e(t)},function(t){l=e(t)},function(t){a=e(t)},function(t){p=e(t)}],execute:function(){function i(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,o;o={},i.m=n=[function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e(1);r.eitherRect=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},r.replaceOffset=function(t,e){return e?{height:t.height,left:e.left,top:e.top,width:t.width}:t},r.removeStackingOffset=function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},r.isDifferentOffset=function(t,e){var n=t.left,o=t.top,i=e.left,r=e.top;return 1<=Math.abs(n-i)||1<=Math.abs(o-r)},r.isDocumentAvailable=function(){return"undefined"!=typeof document&&!!document.body},r.isWindowAvailable=function(){return"undefined"!=typeof window},r.hasBoundingRect=function(t){return!!t.getBoundingClientRect},r.OVERFLOW_REGEXP=/auto|scroll/;r.scrollableParents=function(t){var e,n,o=[];if(!r.isDocumentAvailable()||!r.isWindowAvailable())return o;for(var i=t.parentElement;i;)r.OVERFLOW_REGEXP.test((e=i,void 0,""+(n=window.getComputedStyle(e)).overflow+n.overflowX+n.overflowY))&&o.push(i),i=i.parentElement;return o.push(window),o},r.FRAME_DURATION=1e3/60,r.hasRelativeStackingContext=function(){if(!r.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 e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e},r.HAS_RELATIVE_STACKING_CONTEXT=r.hasRelativeStackingContext(),r.zIndex=function(t,e){if(!t||!r.isDocumentAvailable()||!r.isWindowAvailable())return null;var n=i.siblingContainer(t,e);if(!n)return null;var o=[t].concat(i.parents(t,n)).reduce(function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return t<o?o:t},0);return o?o+1:null},r.CollisionType={fit:"fit",flip:"flip"},r.AlignPoint={left:"left",center:"center",right:"right",bottom:"bottom",top:"top"},r.throttle=function(n,o,i){var r,s,l,a;void 0===i&&(i={});var p=0;i=i||{};function f(){p=!1===i.leading?0:(new Date).getTime(),r=null,a=n.apply(s,l),r||(s=l=null)}return function(){var t=(new Date).getTime();p||!1!==i.leading||(p=t);var e=o-(t-p);return s=this,l=arguments,e<=0||o<e?(r&&(clearTimeout(r),r=null),p=t,a=n.apply(s,l),r||(s=l=null)):r||!1===i.trailing||(r=setTimeout(f,e)),a}}},function(t,e){t.exports=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,i=(o=n(3))&&o.__esModule?o:{default:o};e.Popup=i.default,function(t){for(var e in t)r(e,t[e])}(e)},function(t,e,n){"use strict";var o,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=(o=function(t,e){return(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])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var r,s,l=(s=n(4))&&s.__esModule?s:{default:s},p=n(5),c=n(6),d=n(0),f=n(7),u=n(8),h=n(9),v={left:-1e3,top:0},m=(r=p.VueComponent,i(y,r),y.prototype.created=function(){this._prevShow=this.$props.show,this._domService=new u.DOMService,this._alignService=new f.AlignService(this._domService),this._positionService=new h.PositionService(this._domService),this.onOpened=this.onOpened.bind(this),this.onClosing=this.onClosing.bind(this),this.reposition=d.throttle(this.reposition.bind(this),d.FRAME_DURATION)},y.prototype.render=function(t){var e=this.$props,n=e.className,o=e.popupClass,i=e.show,r=e.id,s=d.isWindowAvailable()?this.$props.appendTo?this.getParendRef(this.$props.appendTo):document.body:void 0;if(this.$props.show){var l=this.calculatePosition(this.$props,s);this._offsetLeft=l.offset.left,this._offsetTop=l.offset.top,this._flipped=!!l.flipped}var a=this._flipped&&i?"up":"down",p=this.transitionDuration,f=p.transitionEnterDuration,u=p.transitionExitDuration;return this._exitingAnimation=this._exitingAnimation||this._prevShow&&!i,i||this._exitingAnimation&&s?t(c.Slide,{attrs:{componentChildClassName:[o,"k-popup"],id:r,className:n,direction:a,transitionEnterDuration:f,transitionExitDuration:u,appear:!0},on:{entered:this.onOpened,exiting:this.onClosing,exited:this.onClosed},style:{position:"absolute",top:this._offsetTop+"px",left:this._offsetLeft+"px"}},[i?this.$slots.default:null]):null},y.prototype.mounted=function(){(this.$props.appendTo?this.getParendRef(this.$props.appendTo):document.body).appendChild(this.$el)},y.prototype.updated=function(){this._prevShow=this.$props.show},y.prototype.destroyed=function(){this.detachRepositionHandlers()},y.prototype.onOpened=function(){var t=this.$el;this.$props.show&&t.classList.add("k-animation-container-shown"),this.attachRepositionHandlers(t),this.$props.open&&this.$props.open.call(void 0,{target:this})},y.prototype.onClosing=function(){this.$props.show||this.$el.classList.remove("k-animation-container-shown"),this.detachRepositionHandlers()},y.prototype.onClosed=function(){this._exitingAnimation&&(this._exitingAnimation=!1,this.$forceUpdate()),this.$props.close&&this.$props.close.call(void 0,{target:this})},Object.defineProperty(y.prototype,"transitionDuration",{get:function(){var t=this.$props.animate,e=0,n=0;return t&&(!0===t?e=n=void 0:(e=t.openDuration,n=t.closeDuration)),{transitionEnterDuration:e,transitionExitDuration:n}},enumerable:!0,configurable:!0}),y.prototype.getParendRef=function(t){for(var e=this.$parent;!e.$refs[t];)e=e.$parent;return e.$refs[t].$el||e.$refs[t]},y.prototype.position=function(t,e,n){var o=t.anchorAlign,i=t.popupAlign,r=t.collision,s=t.offset,l=n?this.getParendRef(n):document.body,a=this._alignService.alignElement({anchor:l,element:e,elementAlign:i,anchorAlign:o,offset:s});return this._positionService.positionElement({anchor:l,anchorAlign:o,collisions:r,element:e,currentLocation:a,elementAlign:i})},y.prototype.calculatePosition=function(t,e){if(!this.$props.anchor||!e||!d.isWindowAvailable())return{flipped:!1,offset:t.offset};var n=document.createElement("div");e.appendChild(n);var o=this.$slots.default&&this.$slots.default[0].data?this.$slots.default[0].data.staticClass:"",i=this.$slots.default&&this.$slots.default[0].data?this.$slots.default[0].data.class:"";n.innerHTML='<div class="k-animation-container k-animation-container-relative"\n style="position: absolute; visibility: hidden; left: -1000; top: 0;">\t\n <div class="k-popup k-animation-container k-animation-container-relative">\n <div class="'+o+" "+i+'" >\n </div>\t\n </div>\t\n </div>';var r=this.position(t,n.firstChild,this.$props.anchor);return n.parentNode.removeChild(n),r},y.prototype.attachRepositionHandlers=function(t){var e=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.$props.anchor?this.getParendRef(this.$props.anchor):t),this._scrollableParents.map(function(t){return t.addEventListener("scroll",e.reposition)}),window.addEventListener("resize",this.reposition)},y.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)},y.prototype.reposition=function(){this.$forceUpdate()},function(t,e,n,o){var i,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":a(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;0<=l;l--)(i=t[l])&&(s=(r<3?i(s):3<r?i(e,n,s):i(e,n))||s);return 3<r&&s&&Object.defineProperty(e,n,s),s}([l.default({props:{appendTo:{type:String,default:""},anchor:{type:String,default:""},className:String,id:String,popupClass:String,collision:{type:Object,default:function(){return{horizontal:d.CollisionType.fit,vertical:d.CollisionType.flip}}},anchorAlign:{type:Object,default:function(){return{horizontal:d.AlignPoint.left,vertical:d.AlignPoint.bottom}}},popupAlign:{type:Object,default:function(){return{horizontal:d.AlignPoint.left,vertical:d.AlignPoint.top}}},offset:{type:Object,default:function(){return v}},children:Object,show:{type:Boolean,default:!1},animate:{type:[Boolean,Object],default:function(){return!0}},direction:{type:String,default:"down"},transition:{type:String,default:"expand"}}})],y));function y(){var t=null!==r&&r.apply(this,arguments)||this;return t._flipped=!1,t._offsetTop=0,t._offsetLeft=-1e3,t._exitingAnimation=!1,t._prevShow=!1,t}e.default=m},function(t,e){t.exports=s},function(t,e){t.exports=a},function(t,e){t.exports=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var u=n(0),o=(i.prototype.alignElement=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,i=t.elementAlign,r=t.offset,s=this._dom.hasOffsetParent(n)?this.relativeRect(e,n,r):this.absoluteRect(e,n,r);return this._dom.align({anchorAlign:o,anchorRect:s,elementAlign:i,elementRect:this._dom.offset(n)})},i.prototype.absoluteRect=function(t,e,n){var o=this._dom,i=u.eitherRect(o.offset(t),n),r=o.stackingElementOffset(e),s=u.removeStackingOffset(i,r),l=o.stackingElementScroll(e),a=o.addScroll(s,l),p=this.elementScrollPosition(t,e),f=o.removeScroll(a,p);return f.left+=window.scrollX||window.pageXOffset,f.top+=window.scrollY||window.pageYOffset,f},i.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},i.prototype.relativeRect=function(t,e,n){return u.eitherRect(this._dom.position(t,e),n)},i);function i(t){this._dom=t}e.AlignService=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(0),i=(s.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},s.prototype.align=function(t){return r.align(t)},s.prototype.boundingOffset=function(t){return r.boundingOffset(t)},s.prototype.getWindow=function(){return o.isWindowAvailable()?window:null},s.prototype.isBodyOffset=function(t){return r.isBodyOffset(t)},s.prototype.hasOffsetParent=function(t){if(!t)return!1;var e=t.offsetParent;return e&&!("BODY"===e.nodeName&&"static"===window.getComputedStyle(e).position)},s.prototype.offset=function(t){return t?r.offset(t):null},s.prototype.staticOffset=function(t){if(!t)return null;var e=t.style,n=e.left,o=e.top;t.style.left="0px",t.style.top="0px";var i=r.offset(t);return t.style.left=n,t.style.top=o,i},s.prototype.position=function(t,e){if(!t||!e)return null;var n=r.siblingContainer(t,e);return r.positionWithScroll(t,n)},s.prototype.relativeOffset=function(t,e){return r.applyLocationOffset(this.offset(t),e,this.isBodyOffset(t))},s.prototype.addScroll=function(t,e){return r.addScroll(t,e)},s.prototype.removeScroll=function(t,e){return r.removeScroll(t,e)},s.prototype.restrictToView=function(t){return r.restrictToView(t)},s.prototype.scrollPosition=function(t){return r.scrollPosition(t)},s.prototype.scrollableParents=function(t){return o.scrollableParents(t)},s.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?r.offset(e):null},s.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},s.prototype.stackingElementViewPort=function(t){var e=this.getRelativeContextElement(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},s.prototype.getRelativeContextElement=function(t){if(!t||!o.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},s.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},s.prototype.windowViewPort=function(t){return r.getWindowViewPort(t)},s.prototype.zIndex=function(t,e){return o.zIndex(t,e)},s.prototype.zoomLevel=function(){return o.isDocumentAvailable()&&o.isWindowAvailable()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},s.prototype.isZoomed=function(){return 1<this.zoomLevel()},s);function s(){}e.DOMService=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var d=n(0),o=(i.prototype.positionElement=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,i=t.anchorAlign,r=t.elementAlign,s=t.collisions,l=this._dom,a=t.viewPort||l.stackingElementViewPort(o)||l.windowViewPort(o),p=d.eitherRect(l.offset(e),n),f=d.replaceOffset(l.staticOffset(o),n),u=this.elementRect(o,f),c=l.restrictToView({anchorAlign:i,anchorRect:p,collisions:s,elementAlign:r,elementRect:u,viewPort:a});return{flipped:c.flipped,offset:l.addOffset(f,c.offset)}},i.prototype.elementRect=function(t,e){return this._dom.removeScroll(e,this._dom.scrollPosition(t))},i);function i(t){this._dom=t}e.PositionService=o}],i.c=o,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=2)}}});
System.register("@progress/kendo-vue-popup",["vue-class-component","@progress/kendo-vue-common","@progress/kendo-vue-animation","@progress/kendo-popup-common"],function(r){var s,l,a,p;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){s=e(t)},function(t){l=e(t)},function(t){a=e(t)},function(t){p=e(t)}],execute:function(){function i(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,o;o={},i.m=n=[function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e(1);r.eitherRect=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},r.replaceOffset=function(t,e){return e?{height:t.height,left:e.left,top:e.top,width:t.width}:t},r.removeStackingOffset=function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},r.isDifferentOffset=function(t,e){var n=t.left,o=t.top,i=e.left,r=e.top;return 1<=Math.abs(n-i)||1<=Math.abs(o-r)},r.isDocumentAvailable=function(){return"undefined"!=typeof document&&!!document.body},r.isWindowAvailable=function(){return"undefined"!=typeof window},r.hasBoundingRect=function(t){return!!t.getBoundingClientRect},r.OVERFLOW_REGEXP=/auto|scroll/;r.scrollableParents=function(t){var e,n,o=[];if(!r.isDocumentAvailable()||!r.isWindowAvailable())return o;for(var i=t.parentElement;i;)r.OVERFLOW_REGEXP.test((e=i,void 0,""+(n=window.getComputedStyle(e)).overflow+n.overflowX+n.overflowY))&&o.push(i),i=i.parentElement;return o.push(window),o},r.FRAME_DURATION=1e3/60,r.hasRelativeStackingContext=function(){if(!r.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 e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e},r.HAS_RELATIVE_STACKING_CONTEXT=r.hasRelativeStackingContext(),r.zIndex=function(t,e){if(!t||!r.isDocumentAvailable()||!r.isWindowAvailable())return null;var n=i.siblingContainer(t,e);if(!n)return null;var o=[t].concat(i.parents(t,n)).reduce(function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return t<o?o:t},0);return o?o+1:null},r.CollisionType={fit:"fit",flip:"flip"},r.AlignPoint={left:"left",center:"center",right:"right",bottom:"bottom",top:"top"},r.throttle=function(n,o,i){var r,s,l,a;void 0===i&&(i={});var p=0;i=i||{};function f(){p=!1===i.leading?0:(new Date).getTime(),r=null,a=n.apply(s,l),r||(s=l=null)}return function(){var t=(new Date).getTime();p||!1!==i.leading||(p=t);var e=o-(t-p);return s=this,l=arguments,e<=0||o<e?(r&&(clearTimeout(r),r=null),p=t,a=n.apply(s,l),r||(s=l=null)):r||!1===i.trailing||(r=setTimeout(f,e)),a}}},function(t,e){t.exports=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,i=(o=n(3))&&o.__esModule?o:{default:o};e.Popup=i.default,function(t){for(var e in t)r(e,t[e])}(e)},function(t,e,n){"use strict";var o,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=(o=function(t,e){return(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])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var r,s,l=(s=n(4))&&s.__esModule?s:{default:s},p=n(5),c=n(6),d=n(0),f=n(7),u=n(8),h=n(9),v={left:-1e3,top:0},m=(r=p.VueComponent,i(y,r),y.prototype.created=function(){this._prevShow=this.$props.show,this._domService=new u.DOMService,this._alignService=new f.AlignService(this._domService),this._positionService=new h.PositionService(this._domService),this.onOpened=this.onOpened.bind(this),this.onClosing=this.onClosing.bind(this),this.reposition=d.throttle(this.reposition.bind(this),d.FRAME_DURATION)},y.prototype.render=function(t){var e=this.$props,n=e.className,o=e.popupClass,i=e.show,r=e.id,s=d.isWindowAvailable()?this.$props.appendTo?this.getParendRef(this.$props.appendTo):document.body:void 0;if(this.$props.show){var l=this.calculatePosition(this.$props,s);this._offsetLeft=l.offset.left,this._offsetTop=l.offset.top,this._flipped=!!l.flipped}var a=this._flipped&&i?"up":"down",p=this.transitionDuration,f=p.transitionEnterDuration,u=p.transitionExitDuration;return this._exitingAnimation=this._exitingAnimation||this._prevShow&&!i,i||this._exitingAnimation&&s?t(c.Slide,{attrs:{componentChildClassName:[o,"k-popup"],id:r,className:n,direction:a,transitionEnterDuration:f,transitionExitDuration:u,appear:!0},on:{entered:this.onOpened,exiting:this.onClosing,exited:this.onClosed},style:{position:"absolute",top:this._offsetTop+"px",left:this._offsetLeft+"px"}},[i?this.$slots.default:null]):null},y.prototype.mounted=function(){(this.$props.appendTo?this.getParendRef(this.$props.appendTo):document.body).appendChild(this.$el)},y.prototype.updated=function(){this._prevShow=this.$props.show},y.prototype.destroyed=function(){this.detachRepositionHandlers()},y.prototype.onOpened=function(){var t=this.$el;this.$props.show&&t.classList.add("k-animation-container-shown"),this.attachRepositionHandlers(t),this.$props.open&&this.$props.open.call(void 0,{target:this})},y.prototype.onClosing=function(){this.$props.show||this.$el.classList.remove("k-animation-container-shown"),this.detachRepositionHandlers()},y.prototype.onClosed=function(){this._exitingAnimation&&(this._exitingAnimation=!1,this.$forceUpdate()),this.$props.close&&this.$props.close.call(void 0,{target:this})},Object.defineProperty(y.prototype,"transitionDuration",{get:function(){var t=this.$props.animate,e=0,n=0;return t&&(!0===t?e=n=void 0:(e=t.openDuration,n=t.closeDuration)),{transitionEnterDuration:e,transitionExitDuration:n}},enumerable:!0,configurable:!0}),y.prototype.getParendRef=function(t){for(var e=this.$parent;!e.$refs[t];)e=e.$parent;return e.$refs[t].$el||e.$refs[t]},y.prototype.position=function(t,e,n){var o=t.anchorAlign,i=t.popupAlign,r=t.collision,s=t.offset,l=n?this.getParendRef(n):document.body,a=this._alignService.alignElement({anchor:l,element:e,elementAlign:i,anchorAlign:o,offset:s});return this._positionService.positionElement({anchor:l,anchorAlign:o,collisions:r,element:e,currentLocation:a,elementAlign:i})},y.prototype.calculatePosition=function(t,e){if(!this.$props.anchor||!e||!d.isWindowAvailable())return{flipped:!1,offset:t.offset};var n=document.createElement("div");e.appendChild(n);var o=this.$slots.default&&this.$slots.default[0].data?this.$slots.default[0].data.staticClass:"",i=this.$slots.default&&this.$slots.default[0].data?this.$slots.default[0].data.class:"";n.innerHTML='<div class="k-animation-container k-animation-container-relative"\n style="position: absolute; visibility: hidden; left: -1000; top: 0;">\t\n <div class="k-popup k-animation-container k-animation-container-relative">\n <div class="'+o+" "+i+'" >\n </div>\t\n </div>\t\n </div>';var r=this.position(t,n.firstChild,this.$props.anchor);return n.parentNode.removeChild(n),r},y.prototype.attachRepositionHandlers=function(t){var e=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.$props.anchor?this.getParendRef(this.$props.anchor):t),this._scrollableParents.map(function(t){return t.addEventListener("scroll",e.reposition)}),window.addEventListener("resize",this.reposition)},y.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)},y.prototype.reposition=function(){this.$forceUpdate()},function(t,e,n,o){var i,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":a(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;0<=l;l--)(i=t[l])&&(s=(r<3?i(s):3<r?i(e,n,s):i(e,n))||s);return 3<r&&s&&Object.defineProperty(e,n,s),s}([l.default({props:{appendTo:{type:String,default:""},anchor:{type:String,default:""},className:String,id:String,popupClass:String,collision:{type:Object,default:function(){return{horizontal:d.CollisionType.fit,vertical:d.CollisionType.flip}}},anchorAlign:{type:Object,default:function(){return{horizontal:d.AlignPoint.left,vertical:d.AlignPoint.bottom}}},popupAlign:{type:Object,default:function(){return{horizontal:d.AlignPoint.left,vertical:d.AlignPoint.top}}},offset:{type:Object,default:function(){return v}},children:Object,show:{type:Boolean,default:!1},animate:{type:[Boolean,Object],default:function(){return!0}},direction:{type:String,default:"down"},transition:{type:String,default:"expand"}}})],y));function y(){var t=null!==r&&r.apply(this,arguments)||this;return t._flipped=!1,t._offsetTop=0,t._offsetLeft=-1e3,t._exitingAnimation=!1,t._prevShow=!1,t}e.default=m},function(t,e){t.exports=s},function(t,e){t.exports=l},function(t,e){t.exports=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var u=n(0),o=(i.prototype.alignElement=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,i=t.elementAlign,r=t.offset,s=this._dom.hasOffsetParent(n)?this.relativeRect(e,n,r):this.absoluteRect(e,n,r);return this._dom.align({anchorAlign:o,anchorRect:s,elementAlign:i,elementRect:this._dom.offset(n)})},i.prototype.absoluteRect=function(t,e,n){var o=this._dom,i=u.eitherRect(o.offset(t),n),r=o.stackingElementOffset(e),s=u.removeStackingOffset(i,r),l=o.stackingElementScroll(e),a=o.addScroll(s,l),p=this.elementScrollPosition(t,e),f=o.removeScroll(a,p);return f.left+=window.scrollX||window.pageXOffset,f.top+=window.scrollY||window.pageYOffset,f},i.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},i.prototype.relativeRect=function(t,e,n){return u.eitherRect(this._dom.position(t,e),n)},i);function i(t){this._dom=t}e.AlignService=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(0),i=(s.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},s.prototype.align=function(t){return r.align(t)},s.prototype.boundingOffset=function(t){return r.boundingOffset(t)},s.prototype.getWindow=function(){return o.isWindowAvailable()?window:null},s.prototype.isBodyOffset=function(t){return r.isBodyOffset(t)},s.prototype.hasOffsetParent=function(t){if(!t)return!1;var e=t.offsetParent;return e&&!("BODY"===e.nodeName&&"static"===window.getComputedStyle(e).position)},s.prototype.offset=function(t){return t?r.offset(t):null},s.prototype.staticOffset=function(t){if(!t)return null;var e=t.style,n=e.left,o=e.top;t.style.left="0px",t.style.top="0px";var i=r.offset(t);return t.style.left=n,t.style.top=o,i},s.prototype.position=function(t,e){if(!t||!e)return null;var n=r.siblingContainer(t,e);return r.positionWithScroll(t,n)},s.prototype.relativeOffset=function(t,e){return r.applyLocationOffset(this.offset(t),e,this.isBodyOffset(t))},s.prototype.addScroll=function(t,e){return r.addScroll(t,e)},s.prototype.removeScroll=function(t,e){return r.removeScroll(t,e)},s.prototype.restrictToView=function(t){return r.restrictToView(t)},s.prototype.scrollPosition=function(t){return r.scrollPosition(t)},s.prototype.scrollableParents=function(t){return o.scrollableParents(t)},s.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?r.offset(e):null},s.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},s.prototype.stackingElementViewPort=function(t){var e=this.getRelativeContextElement(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},s.prototype.getRelativeContextElement=function(t){if(!t||!o.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},s.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},s.prototype.windowViewPort=function(t){return r.getWindowViewPort(t)},s.prototype.zIndex=function(t,e){return o.zIndex(t,e)},s.prototype.zoomLevel=function(){return o.isDocumentAvailable()&&o.isWindowAvailable()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},s.prototype.isZoomed=function(){return 1<this.zoomLevel()},s);function s(){}e.DOMService=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var d=n(0),o=(i.prototype.positionElement=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,i=t.anchorAlign,r=t.elementAlign,s=t.collisions,l=this._dom,a=t.viewPort||l.stackingElementViewPort(o)||l.windowViewPort(o),p=d.eitherRect(l.offset(e),n),f=d.replaceOffset(l.staticOffset(o),n),u=this.elementRect(o,f),c=l.restrictToView({anchorAlign:i,anchorRect:p,collisions:s,elementAlign:r,elementRect:u,viewPort:a});return{flipped:c.flipped,offset:l.addOffset(f,c.offset)}},i.prototype.elementRect=function(t,e){return this._dom.removeScroll(e,this._dom.scrollPosition(t))},i);function i(t){this._dom=t}e.PositionService=o}],i.c=o,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=2)}}});
{
"name": "@progress/kendo-vue-popup",
"description": "KendoVue Popup package",
"version": "0.3.7-dev.201910240657",
"version": "0.3.7-dev.201910290845",
"repository": {

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

"@progress/kendo-popup-common": "^1.6.1",
"@progress/kendo-vue-animation": "0.3.7-dev.201910240657",
"@progress/kendo-vue-common": "0.3.7-dev.201910240657"
"@progress/kendo-vue-animation": "0.3.7-dev.201910290845",
"@progress/kendo-vue-common": "0.3.7-dev.201910290845"
},

@@ -35,0 +35,0 @@ "devDependencies": {

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