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

@progress/kendo-draggable-common

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.2.0-dev.202111040834 to 0.2.0-dev.202111111330

dist/cdn/js/kendo-draggable-common.js

2

dist/cdn/main.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib")):"function"==typeof define&&define.amd?define(["tslib"],t):"object"==typeof exports?exports.KendoTypescriptPackageBase=t(require("tslib")):e.KendoTypescriptPackageBase=t(e.tslib)}(window,(function(e){return function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e=navigator.userAgent,t=!1,o=[],r={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var n in r)if(r.hasOwnProperty(n)&&(o=e.match(r[n]))){(t={})[n]=!0,t[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||o[2],10);break}return t}();t.getDocument=function(e){return e&&e.ownerDocument||window.document},t.getWindow=function(e){var o=t.getDocument(e);return o&&o.defaultView||window},t.scrollableRoot=function(){return r.edge||r.safari?document.body:document.documentElement},t.isScrollable=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},t.getScrollableParent=function(e){var o=t.scrollableRoot();if(!e||e===document.body||e===document.documentElement)return o;for(var r=e;r&&!t.isScrollable(r)&&r!==document.body;)r=r.parentNode;return r===document.body?o:r},t.autoScrollVelocity=function(e,t,o){var r={x:0,y:0};return e-o.left<50?r.x=-(50-(e-o.left)):o.right-e<50&&(r.x=50-(o.right-e)),t-o.top<50?r.y=-(50-(t-o.top)):o.bottom-t<50&&(r.y=50-(o.bottom-t)),r},t.scrollableViewPort=function(e,o){var r=t.scrollableRoot();return e===r?{top:r.scrollTop,left:r.scrollLeft,bottom:r.scrollTop+o.innerHeight,right:r.scrollLeft+o.innerWidth}:{bottom:e.offsetTop+e.offsetHeight,right:e.offsetLeft+e.offsetWidth,left:e.offsetLeft,top:e.offsetTop}},t.isPointerInsideContainer=function(e,t,o){var r=o.getBoundingClientRect();return r.top<=t&&r.left<=e&&t<=r.bottom&&e<=r.right}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2);t.dispatchDragAndDrop=r.dispatchDragAndDrop;var n=o(0);t.scrollableRoot=n.scrollableRoot,t.getScrollableParent=n.getScrollableParent;var l=o(6);t.autoScroll=l.autoScroll},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=o(3),l=o(0);!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(r=t.DRAG_AND_DROP_DISPATCH_ACTION||(t.DRAG_AND_DROP_DISPATCH_ACTION={}));t.normalizeEvent=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}};var i=function(){};t.dispatchDragAndDrop=function(e,o,a){void 0===a&&(a={});var c=a.onIsPressedChange,s=void 0===c?i:c,f=a.onIsScrollingChange,u=void 0===f?i:f,d=a.onVelocityChange,p=void 0===d?i:d,g=a.onOffsetChange,y=void 0===g?i:g,O=a.onPageOffsetChange,v=void 0===O?i:O,h=a.onClientOffsetChange,E=void 0===h?i:h,_=a.onScrollOffsetChange,b=void 0===_?i:_,m=a.onInitialScrollOffsetChange,D=void 0===m?i:m,T=o.payload,P=T.element,N=T.hint,C=t.normalizeEvent(o.event,e);switch(C.type){case r.POINTER_DOWN:if(C.type===r.POINTER_DOWN&&(!C.originalEvent.isPrimary||0!==C.originalEvent.button))break;case r.MOUSE_DOWN:if(C.type===r.MOUSE_DOWN&&C.originalEvent.which&&C.originalEvent.which>1||e.ignoreMouse)break;case r.TOUCH_START:if(C.type===r.TOUCH_START&&1!==C.originalEvent.touches.length)break;case r.START:var S=l.getScrollableParent(o.payload.element);D(S instanceof Window?{x:S.scrollX,y:S.scrollY}:{x:S.scrollLeft,y:S.scrollTop}),E({x:C.clientX,y:C.clientY}),v({x:C.pageX,y:C.pageY}),y({x:C.offsetX,y:C.offsetY}),s(!0),T.onPress&&T.onPress(C);break;case r.SCROLL:if(C.type===r.SCROLL&&!e.pressed)break;var x=l.getScrollableParent(P),R=x instanceof Window?{x:x.scrollX,y:x.scrollY}:{x:x.scrollLeft,y:x.scrollTop};C.scrollX=R.x-e.initialScrollOffset.x,C.scrollY=R.y-e.initialScrollOffset.y,b({x:C.scrollX,y:C.scrollY});case r.POINTER_MOVE:if(C.type===r.POINTER_MOVE&&!C.originalEvent.isPrimary)break;case r.MOUSE_MOVE:case r.TOUCH_MOVE:if(C.type===r.TOUCH_MOVE&&1!==C.originalEvent.touches.length)break;case r.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==C.originalEvent.type&&P){var w=l.getScrollableParent(document.elementFromPoint(C.clientX,C.clientY)),M=l.autoScrollVelocity(C.pageX,C.pageY,l.scrollableViewPort(w,l.getWindow(P)));p({x:M.x,y:M.y}),u(0!==M.y||0!==M.x)}!e.drag&&T.onDragStart&&T.onDragStart(C),T.onDrag&&T.onDrag(C);var A=n.intersect(N||P,e.drops.map((function(e){return e&&e.element}))),X=e.drops.find((function(e){return e.element===A}));X&&A&&l.isPointerInsideContainer(C.clientX,C.clientY,l.getScrollableParent(A))&&A!==P?(e.drop&&e.drop.element)!==A?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(C),X.onDragEnter&&X.onDragEnter(C)):X.onDragOver&&X.onDragOver(C):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(C)}E({x:C.clientX,y:C.clientY}),v({x:C.pageX,y:C.pageY});break;case r.POINTER_UP:if(C.type===r.POINTER_UP&&!C.originalEvent.isPrimary)break;case r.MOUSE_UP:case r.TOUCH_END:if(C.type===r.TOUCH_END&&1!==C.originalEvent.touches.length)break;case r.END:s(!1),T.onRelease&&T.onRelease(C),e.drop&&e.drop.onDrop&&e.drop.onDrop(C),T.onDragEnd&&T.onDragEnd(C);break;case r.POINTER_CANCEL:case r.CONTEXT_MENU:case r.TOUCH_CANCEL:case r.CANCEL:s(!1),T.onDragEnd&&T.onDragEnd(C),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(C)}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(4).__exportStar(o(5),t)},function(t,o){t.exports=e},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.intersect=function(e,t){var o=0,r=null;return t.forEach((function(t){if(t&&e){var n=function(e,t){var o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=Math.max(r.top,o.top),l=Math.max(r.left,o.left),i=Math.min(r.left+r.width,o.left+o.width),a=Math.min(r.top+r.height,o.top+o.height),c=i-l,s=a-n;if(l<i&&n<a){var f=r.width*r.height,u=o.width*o.height,d=c*s;return Number((d/(f+u-d)).toFixed(4))}return 0}(e,t);n>o&&(o=n,r=t)}})),r}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(0);t.autoScroll=function(e,t){if(e){var o,n;e===r.scrollableRoot()?(o=document.body.scrollHeight>window.innerHeight,n=document.body.scrollWidth>window.innerWidth):(o=e.offsetHeight<=e.scrollHeight,n=e.offsetWidth<=e.scrollWidth);var l=e.scrollTop+t.y,i=o&&l>0&&l<e.scrollHeight,a=e.scrollLeft+t.x,c=n&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:o&&l<0&&(e.scrollTop=0),c?e.scrollLeft+=t.x:n&&a<0&&(e.scrollLeft=0)}}}])}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib")):"function"==typeof define&&define.amd?define(["tslib"],t):"object"==typeof exports?exports.KendoDraggableCommon=t(require("tslib")):e.KendoDraggableCommon=t(e.tslib)}(window,(function(e){return function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,o=[],r={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var n in r)if(r.hasOwnProperty(n)&&(o=e.match(r[n]))){(t={})[n]=!0,t[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||o[2],10);break}return t}();t.getDocument=function(e){return e&&e.ownerDocument||window.document},t.getWindow=function(e){var o=t.getDocument(e);return o&&o.defaultView||window},t.scrollableRoot=function(){return r.edge||r.safari?document.body:document.documentElement},t.isScrollable=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},t.getScrollableParent=function(e){var o=t.scrollableRoot();if(!e||e===document.body||e===document.documentElement)return o;for(var r=e;r&&!t.isScrollable(r)&&r!==document.body;)r=r.parentNode;return r===document.body?o:r},t.autoScrollVelocity=function(e,t,o){var r={x:0,y:0};return e-o.left<50?r.x=-(50-(e-o.left)):o.right-e<50&&(r.x=50-(o.right-e)),t-o.top<50?r.y=-(50-(t-o.top)):o.bottom-t<50&&(r.y=50-(o.bottom-t)),r},t.scrollableViewPort=function(e,o){var r=t.scrollableRoot();return e===r?{top:r.scrollTop,left:r.scrollLeft,bottom:r.scrollTop+o.innerHeight,right:r.scrollLeft+o.innerWidth}:{bottom:e.offsetTop+e.offsetHeight,right:e.offsetLeft+e.offsetWidth,left:e.offsetLeft,top:e.offsetTop}},t.isPointerInsideContainer=function(e,t,o){var r=o.getBoundingClientRect();return r.top<=t&&r.left<=e&&t<=r.bottom&&e<=r.right}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(2);t.dispatchDragAndDrop=r.dispatchDragAndDrop;var n=o(0);t.scrollableRoot=n.scrollableRoot,t.getScrollableParent=n.getScrollableParent;var l=o(6);t.autoScroll=l.autoScroll},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=o(3),l=o(0);!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(r=t.DRAG_AND_DROP_DISPATCH_ACTION||(t.DRAG_AND_DROP_DISPATCH_ACTION={}));t.normalizeEvent=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}};var i=function(){};t.dispatchDragAndDrop=function(e,o,a){void 0===a&&(a={});var c=a.onIsPressedChange,s=void 0===c?i:c,f=a.onIsScrollingChange,u=void 0===f?i:f,d=a.onVelocityChange,p=void 0===d?i:d,g=a.onOffsetChange,O=void 0===g?i:g,y=a.onPageOffsetChange,v=void 0===y?i:y,h=a.onClientOffsetChange,E=void 0===h?i:h,_=a.onScrollOffsetChange,m=void 0===_?i:_,b=a.onInitialScrollOffsetChange,D=void 0===b?i:b,T=o.payload,P=T.element,C=T.hint,N=t.normalizeEvent(o.event,e);switch(N.type){case r.POINTER_DOWN:if(N.type===r.POINTER_DOWN&&(!N.originalEvent.isPrimary||0!==N.originalEvent.button))break;case r.MOUSE_DOWN:if(N.type===r.MOUSE_DOWN&&N.originalEvent.which&&N.originalEvent.which>1||e.ignoreMouse)break;case r.TOUCH_START:if(N.type===r.TOUCH_START&&1!==N.originalEvent.touches.length)break;case r.START:var S=l.getScrollableParent(o.payload.element);D(S instanceof Window?{x:S.scrollX,y:S.scrollY}:{x:S.scrollLeft,y:S.scrollTop}),E({x:N.clientX,y:N.clientY}),v({x:N.pageX,y:N.pageY}),O({x:N.offsetX,y:N.offsetY}),s(!0),T.onPress&&T.onPress(N);break;case r.SCROLL:if(N.type===r.SCROLL&&!e.pressed)break;var w=l.getScrollableParent(P),x=w instanceof Window?{x:w.scrollX,y:w.scrollY}:{x:w.scrollLeft,y:w.scrollTop};N.scrollX=x.x-e.initialScrollOffset.x,N.scrollY=x.y-e.initialScrollOffset.y,m({x:N.scrollX,y:N.scrollY});case r.POINTER_MOVE:if(N.type===r.POINTER_MOVE&&!N.originalEvent.isPrimary)break;case r.MOUSE_MOVE:case r.TOUCH_MOVE:if(N.type===r.TOUCH_MOVE&&1!==N.originalEvent.touches.length)break;case r.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==N.originalEvent.type&&P){var R=l.getScrollableParent(document.elementFromPoint(N.clientX,N.clientY)),M=l.autoScrollVelocity(N.pageX,N.pageY,l.scrollableViewPort(R,l.getWindow(P)));p({x:M.x,y:M.y}),u(0!==M.y||0!==M.x)}!e.drag&&T.onDragStart&&T.onDragStart(N),T.onDrag&&T.onDrag(N);var A=n.intersect(C||P,e.drops.map((function(e){return e&&e.element}))),X=e.drops.find((function(e){return e.element===A}));X&&A&&l.isPointerInsideContainer(N.clientX,N.clientY,l.getScrollableParent(A))&&A!==P?(e.drop&&e.drop.element)!==A?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N),X.onDragEnter&&X.onDragEnter(N)):X.onDragOver&&X.onDragOver(N):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}E({x:N.clientX,y:N.clientY}),v({x:N.pageX,y:N.pageY});break;case r.POINTER_UP:if(N.type===r.POINTER_UP&&!N.originalEvent.isPrimary)break;case r.MOUSE_UP:case r.TOUCH_END:if(N.type===r.TOUCH_END&&1!==N.originalEvent.touches.length)break;case r.END:s(!1),T.onRelease&&T.onRelease(N),e.drop&&e.drop.onDrop&&e.drop.onDrop(N),T.onDragEnd&&T.onDragEnd(N);break;case r.POINTER_CANCEL:case r.CONTEXT_MENU:case r.TOUCH_CANCEL:case r.CANCEL:s(!1),T.onDragEnd&&T.onDragEnd(N),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(N)}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(4).__exportStar(o(5),t)},function(t,o){t.exports=e},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.intersect=function(e,t){var o=0,r=null;return t.forEach((function(t){if(t&&e){var n=function(e,t){var o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=Math.max(r.top,o.top),l=Math.max(r.left,o.left),i=Math.min(r.left+r.width,o.left+o.width),a=Math.min(r.top+r.height,o.top+o.height),c=i-l,s=a-n;if(l<i&&n<a){var f=r.width*r.height,u=o.width*o.height,d=c*s;return Number((d/(f+u-d)).toFixed(4))}return 0}(e,t);n>o&&(o=n,r=t)}})),r}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(0);t.autoScroll=function(e,t){if(e){var o,n;e===r.scrollableRoot()?(o=document.body.scrollHeight>window.innerHeight,n=document.body.scrollWidth>window.innerWidth):(o=e.offsetHeight<=e.scrollHeight,n=e.offsetWidth<=e.scrollWidth);var l=e.scrollTop+t.y,i=o&&l>0&&l<e.scrollHeight,a=e.scrollLeft+t.x,c=n&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:o&&l<0&&(e.scrollTop=0),c?e.scrollLeft+=t.x:n&&a<0&&(e.scrollLeft=0)}}}])}));
var detectBrowser = function () {
var ua = navigator.userAgent;
var ua = window && window.navigator.userAgent;
if (!ua) {
return false;
}
var browser = false;

@@ -4,0 +7,0 @@ var match = [];

const detectBrowser = () => {
const ua = navigator.userAgent;
const ua = window && window.navigator.userAgent;
if (!ua) {
return false;
}
let browser = false;

@@ -4,0 +7,0 @@ let match = [];

@@ -60,20 +60,67 @@ /** @hidden */

}
/** @hidden */
export declare type NormalizedDragEvent = {
/**
* Represents a unified drag event that is triggered regardless if the native event underneath is a pointer, mouse, touch, or scroll event.
*/
export interface NormalizedDragEvent {
/**
* Represents the horizontal coordinate within the viewport
*/
clientX: number;
/**
* Represents the vertical coordinate within the viewport
*/
clientY: number;
/**
* Represents the horizontal coordinate at which the mouse was clicked, relative to the left edge of the entire document.
*/
pageX: number;
/**
* Represents the vertical coordinate at which the mouse was clicked, relative to the left edge of the entire document.
*/
pageY: number;
/**
* Represents the number of pixels that the document is currently scrolled horizontally.
*/
scrollX: number;
/**
* Represents the number of pixels that the document is currently scrolled vertically.
*/
scrollY: number;
/**
* Represents the horizontal offset coordinate of the mouse pointer between that event and the padding edge of the target node.
*/
offsetX: number;
/**
* Represents the vertical offset coordinate of the mouse pointer between that event and the padding edge of the target node.
*/
offsetY: number;
/**
* Represents the event's type.
*/
type: string;
/**
* Indicates if the native event is a touch event.
*/
isTouch?: boolean;
/**
* Represents the original event which resulted in a drag event.
*/
originalEvent: PointerEvent | MouseEvent | TouchEvent | Event;
/**
* Indicates if the `control` key was pressed when the event occurred.
*/
ctrlKey: boolean;
/**
* Indicates if the `shift` key was pressed when the event occurred.
*/
shiftKey: boolean;
/**
* Indicates if the `alt` key was pressed when the event occurred.
*/
altKey: boolean;
/**
* Indicates if the `command` (on Mac) key was pressed when the event occurred.
*/
metaKey: boolean;
};
}
/** @hidden */

@@ -80,0 +127,0 @@ export declare const normalizeEvent: (event: Event | MouseEvent | PointerEvent | TouchEvent, state: DragAndDropState) => NormalizedDragEvent;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var detectBrowser = function () {
var ua = navigator.userAgent;
var ua = window && window.navigator.userAgent;
if (!ua) {
return false;
}
var browser = false;

@@ -6,0 +9,0 @@ var match = [];

{
"name": "@progress/kendo-draggable-common",
"description": "Kendo UI TypeScript package starter template",
"version": "0.2.0-dev.202111040834",
"version": "0.2.0-dev.202111111330",
"keywords": [
"Kendo UI"
],
"friendlyName": "Draggable Common",
"author": "Progress",

@@ -9,0 +10,0 @@ "license": "SEE LICENSE IN LICENSE.md",

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