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.202203111250 to 0.2.0-dev.202205111349

4

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

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KendoDraggableCommon=t():e.KendoDraggableCommon=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],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 o in r)if(r.hasOwnProperty(o)&&(n=e.match(r[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t};t.getDocument=function(e){return e&&e.ownerDocument||window.document},t.getWindow=function(e){var n=t.getDocument(e);return n&&n.defaultView||window},t.scrollableRoot=function(e){var n=r(),o=t.getDocument(e);return n.edge||n.safari?o.body:o.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 n=t.scrollableRoot(e);if(!e||e===document.body||e===document.documentElement)return n;for(var r=e;r&&r!==document.body&&r.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&!t.isScrollable(r);)r=r.parentNode;return r===document.body||r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n:r},t.autoScrollVelocity=function(e,t,n){var r={x:0,y:0};return e-n.left<50?r.x=-(50-(e-n.left)):n.right-e<50&&(r.x=50-(n.right-e)),t-n.top<50?r.y=-(50-(t-n.top)):n.bottom-t<50&&(r.y=50-(n.bottom-t)),r},t.scrollableViewPort=function(e,n){var r=t.scrollableRoot(e);if(e===r)return{top:r.scrollTop,left:r.scrollLeft,bottom:r.scrollTop+n.innerHeight,right:r.scrollLeft+n.innerWidth};var o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}},t.isPointerInsideContainer=function(e,t,n){var r=n.getBoundingClientRect();return r.top<=t&&r.left<=e&&t<=r.bottom&&e<=r.right}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.dispatchDragAndDrop=r.dispatchDragAndDrop;var o=n(0);t.scrollableRoot=o.scrollableRoot,t.getScrollableParent=o.getScrollableParent;var i=n(6);t.autoScroll=i.autoScroll},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(3),i=n(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 l=function(){};t.dispatchDragAndDrop=function(e,n,a){void 0===a&&(a={});var c=a.onIsPressedChange,u=void 0===c?l:c,f=a.onIsScrollingChange,s=void 0===f?l:f,d=a.onVelocityChange,p=void 0===d?l:d,y=a.onOffsetChange,g=void 0===y?l:y,h=a.onPageOffsetChange,v=void 0===h?l:h,_=a.onClientOffsetChange,O=void 0===_?l:_,b=a.onScrollOffsetChange,m=void 0===b?l:b,w=a.onInitialScrollOffsetChange,E=void 0===w?l:w,D=n.payload,P=D.element,T=D.hint,S=e.autoScrollDirection,N=e.scrollableParent,x=t.normalizeEvent(n.event,e);switch(x.type){case r.POINTER_DOWN:if(x.type===r.POINTER_DOWN&&(!x.originalEvent.isPrimary||0!==x.originalEvent.button))break;case r.MOUSE_DOWN:if(x.type===r.MOUSE_DOWN&&x.originalEvent.which&&x.originalEvent.which>1||e.ignoreMouse)break;case r.TOUCH_START:if(x.type===r.TOUCH_START&&1!==x.originalEvent.touches.length)break;case r.START:var C=N||i.getScrollableParent(n.payload.element);E(C instanceof Window?{x:C.scrollX,y:C.scrollY}:{x:C.scrollLeft,y:C.scrollTop}),O({x:x.clientX,y:x.clientY}),v({x:x.pageX,y:x.pageY}),g({x:x.offsetX,y:x.offsetY}),u(!0),D.onPress&&D.onPress(x);break;case r.SCROLL:if(x.type===r.SCROLL&&!e.pressed)break;var R=N||i.getScrollableParent(P),M=R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop};x.scrollX=M.x-e.initialScrollOffset.x,x.scrollY=M.y-e.initialScrollOffset.y,m({x:x.scrollX,y:x.scrollY});case r.POINTER_MOVE:if(x.type===r.POINTER_MOVE&&!x.originalEvent.isPrimary)break;case r.MOUSE_MOVE:case r.TOUCH_MOVE:if(x.type===r.TOUCH_MOVE&&1!==x.originalEvent.touches.length)break;case r.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==x.originalEvent.type&&P){var A=i.getDocument(P),j=N||i.getScrollableParent(A.elementFromPoint(x.clientX,x.clientY)),X=i.autoScrollVelocity(x.pageX,x.pageY,i.scrollableViewPort(j,i.getWindow(P)));p({x:S&&!1===S.horizontal?0:X.x,y:S&&!1===S.vertical?0:X.y}),s(0!==X.y||0!==X.x)}!e.drag&&D.onDragStart&&D.onDragStart(x),D.onDrag&&D.onDrag(x);var I=o.intersect(T||P,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(T||P)}))),Y=e.drops.find((function(e){return e.element===I}));Y&&I&&i.isPointerInsideContainer(x.clientX,x.clientY,N||i.getScrollableParent(I))&&I!==P?(e.drop&&e.drop.element)!==I?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(x),Y.onDragEnter&&Y.onDragEnter(x)):Y.onDragOver&&Y.onDragOver(x):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(x)}O({x:x.clientX,y:x.clientY}),v({x:x.pageX,y:x.pageY});break;case r.POINTER_UP:if(x.type===r.POINTER_UP&&!x.originalEvent.isPrimary)break;case r.MOUSE_UP:case r.TOUCH_END:if(x.type===r.TOUCH_END&&1!==x.originalEvent.touches.length)break;case r.END:u(!1),s(!1),D.onRelease&&D.onRelease(x),e.drop&&e.drop.onDrop&&e.drop.onDrop(x),D.onDragEnd&&D.onDragEnd(x);break;case r.POINTER_CANCEL:case r.CONTEXT_MENU:case r.TOUCH_CANCEL:case r.CANCEL:u(!1),s(!1),D.onDragEnd&&D.onDragEnd(x),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(x)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(4).__exportStar(n(5),t)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return l})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return f})),n.d(t,"__generator",(function(){return s})),n.d(t,"__createBinding",(function(){return d})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return y})),n.d(t,"__read",(function(){return g})),n.d(t,"__spread",(function(){return h})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__await",(function(){return _})),n.d(t,"__asyncGenerator",(function(){return O})),n.d(t,"__asyncDelegator",(function(){return b})),n.d(t,"__asyncValues",(function(){return m})),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return E})),n.d(t,"__importDefault",(function(){return D})),n.d(t,"__classPrivateFieldGet",(function(){return P})),n.d(t,"__classPrivateFieldSet",(function(){return T}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KendoDraggableCommon=t():e.KendoDraggableCommon=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],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 o in r)if(r.hasOwnProperty(o)&&(n=e.match(r[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t};t.getDocument=function(e){return e&&e.ownerDocument||window.document},t.getWindow=function(e){var n=t.getDocument(e);return n&&n.defaultView||window},t.scrollableRoot=function(e){var n=r(),o=t.getDocument(e);return n.edge||n.safari?o.body:o.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 n=t.scrollableRoot(e);if(!e||e===document.body||e===document.documentElement)return n;for(var r=e;r&&r!==document.body&&r.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&r.nodeType!==Node.DOCUMENT_NODE&&!t.isScrollable(r);)r=r.parentNode;return!r||r!==document.body&&r.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?r:n},t.autoScrollVelocity=function(e,t,n){var r={x:0,y:0};return e-n.left<50?r.x=-(50-(e-n.left)):n.right-e<50&&(r.x=50-(n.right-e)),t-n.top<50?r.y=-(50-(t-n.top)):n.bottom-t<50&&(r.y=50-(n.bottom-t)),r},t.scrollableViewPort=function(e,n){var r=t.scrollableRoot(e);if(e===r)return{top:r.scrollTop,left:r.scrollLeft,bottom:r.scrollTop+n.innerHeight,right:r.scrollLeft+n.innerWidth};var o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}},t.isPointerInsideContainer=function(e,t,n){var r=n.getBoundingClientRect();return r.top<=t&&r.left<=e&&t<=r.bottom&&e<=r.right}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.dispatchDragAndDrop=r.dispatchDragAndDrop;var o=n(0);t.scrollableRoot=o.scrollableRoot,t.getScrollableParent=o.getScrollableParent;var i=n(6);t.autoScroll=i.autoScroll},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(3),i=n(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 l=function(){};t.dispatchDragAndDrop=function(e,n,a){void 0===a&&(a={});var c=a.onIsPressedChange,u=void 0===c?l:c,f=a.onIsScrollingChange,s=void 0===f?l:f,d=a.onVelocityChange,p=void 0===d?l:d,y=a.onOffsetChange,g=void 0===y?l:y,h=a.onPageOffsetChange,v=void 0===h?l:h,_=a.onClientOffsetChange,O=void 0===_?l:_,b=a.onScrollOffsetChange,m=void 0===b?l:b,E=a.onInitialScrollOffsetChange,w=void 0===E?l:E,D=n.payload,P=D.element,T=D.hint,S=e.autoScrollDirection,N=e.scrollableParent,x=t.normalizeEvent(n.event,e);switch(x.type){case r.POINTER_DOWN:if(x.type===r.POINTER_DOWN&&(!x.originalEvent.isPrimary||0!==x.originalEvent.button))break;case r.MOUSE_DOWN:if(x.type===r.MOUSE_DOWN&&x.originalEvent.which&&x.originalEvent.which>1||e.ignoreMouse)break;case r.TOUCH_START:if(x.type===r.TOUCH_START&&1!==x.originalEvent.touches.length)break;case r.START:var C=N||i.getScrollableParent(n.payload.element);w(C instanceof Window?{x:C.scrollX,y:C.scrollY}:{x:C.scrollLeft,y:C.scrollTop}),O({x:x.clientX,y:x.clientY}),v({x:x.pageX,y:x.pageY}),g({x:x.offsetX,y:x.offsetY}),u(!0),D.onPress&&D.onPress(x);break;case r.SCROLL:if(x.type===r.SCROLL&&!e.pressed)break;var R=N||i.getScrollableParent(P),M=R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop};x.scrollX=M.x-e.initialScrollOffset.x,x.scrollY=M.y-e.initialScrollOffset.y,m({x:x.scrollX,y:x.scrollY});case r.POINTER_MOVE:if(x.type===r.POINTER_MOVE&&!x.originalEvent.isPrimary)break;case r.MOUSE_MOVE:case r.TOUCH_MOVE:if(x.type===r.TOUCH_MOVE&&1!==x.originalEvent.touches.length)break;case r.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==x.originalEvent.type&&P){var A=i.getDocument(P),j=N||i.getScrollableParent(A.elementFromPoint(x.clientX,x.clientY)),X=i.autoScrollVelocity(x.pageX,x.pageY,i.scrollableViewPort(j,i.getWindow(P)));p({x:S&&!1===S.horizontal?0:X.x,y:S&&!1===S.vertical?0:X.y}),s(0!==X.y||0!==X.x)}!e.drag&&D.onDragStart&&D.onDragStart(x),D.onDrag&&D.onDrag(x);var I=o.intersect(T||P,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(T||P)}))),U=e.drops.find((function(e){return e.element===I}));U&&I&&i.isPointerInsideContainer(x.clientX,x.clientY,N||i.getScrollableParent(I))&&I!==P?(e.drop&&e.drop.element)!==I?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(x),U.onDragEnter&&U.onDragEnter(x)):U.onDragOver&&U.onDragOver(x):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(x)}O({x:x.clientX,y:x.clientY}),v({x:x.pageX,y:x.pageY});break;case r.POINTER_UP:if(x.type===r.POINTER_UP&&!x.originalEvent.isPrimary)break;case r.MOUSE_UP:case r.TOUCH_END:if(x.type===r.TOUCH_END&&1!==x.originalEvent.touches.length)break;case r.END:u(!1),s(!1),D.onRelease&&D.onRelease(x),e.drop&&e.drop.onDrop&&e.drop.onDrop(x),D.onDragEnd&&D.onDragEnd(x);break;case r.POINTER_CANCEL:case r.CONTEXT_MENU:case r.TOUCH_CANCEL:case r.CANCEL:u(!1),s(!1),D.onDragEnd&&D.onDragEnd(x),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(x)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(4).__exportStar(n(5),t)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return l})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return f})),n.d(t,"__generator",(function(){return s})),n.d(t,"__createBinding",(function(){return d})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return y})),n.d(t,"__read",(function(){return g})),n.d(t,"__spread",(function(){return h})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__await",(function(){return _})),n.d(t,"__asyncGenerator",(function(){return O})),n.d(t,"__asyncDelegator",(function(){return b})),n.d(t,"__asyncValues",(function(){return m})),n.d(t,"__makeTemplateObject",(function(){return E})),n.d(t,"__importStar",(function(){return w})),n.d(t,"__importDefault",(function(){return D})),n.d(t,"__classPrivateFieldGet",(function(){return P})),n.d(t,"__classPrivateFieldSet",(function(){return T}));
/*! *****************************************************************************

@@ -16,2 +16,2 @@ Copyright (c) Microsoft Corporation.

***************************************************************************** */
var r=function(e,t){return(r=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])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,i=arguments.length,l=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i<3?o(l):i>3?o(t,n,l):o(t,n))||l);return i>3&&l&&Object.defineProperty(t,n,l),l}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))((function(o,i){function l(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}c((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function d(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function p(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],l=0,a=i.length;l<a;l++,o++)r[o]=i[l];return r}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function O(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},l("next"),l("throw"),l("return"),r[Symbol.asyncIterator]=function(){return this},r;function l(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(c,u):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function m(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function D(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.intersect=function(e,t){var n=0,r=null;return t.forEach((function(t){if(t&&e){var o=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Math.max(r.top,n.top),i=Math.max(r.left,n.left),l=Math.min(r.left+r.width,n.left+n.width),a=Math.min(r.top+r.height,n.top+n.height),c=l-i,u=a-o;if(i<l&&o<a){var f=r.width*r.height,s=n.width*n.height,d=c*u;return Number((d/(f+s-d)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.autoScroll=function(e,t){if(e){var n,o;e===r.scrollableRoot(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var i=e.scrollTop+t.y,l=n&&i>0&&i<e.scrollHeight,a=e.scrollLeft+t.x,c=o&&a>0&&a<e.scrollWidth;l?e.scrollTop+=t.y:n&&i<0&&(e.scrollTop=0),c?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}}}])}));
var r=function(e,t){return(r=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])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,i=arguments.length,l=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(l=(i<3?o(l):i>3?o(t,n,l):o(t,n))||l);return i>3&&l&&Object.defineProperty(t,n,l),l}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))((function(o,i){function l(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}c((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function d(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function p(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],l=0,a=i.length;l<a;l++,o++)r[o]=i[l];return r}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function O(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},l("next"),l("throw"),l("return"),r[Symbol.asyncIterator]=function(){return this},r;function l(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(c,u):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function m(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function D(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.intersect=function(e,t){var n=0,r=null;return t.forEach((function(t){if(t&&e){var o=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Math.max(r.top,n.top),i=Math.max(r.left,n.left),l=Math.min(r.left+r.width,n.left+n.width),a=Math.min(r.top+r.height,n.top+n.height),c=l-i,u=a-o;if(i<l&&o<a){var f=r.width*r.height,s=n.width*n.height,d=c*u;return Number((d/(f+s-d)).toFixed(4))}return 0}(e,t);o>n&&(n=o,r=t)}})),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.autoScroll=function(e,t){if(e){var n,o;e===r.scrollableRoot(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var i=e.scrollTop+t.y,l=n&&i>0&&i<e.scrollHeight,a=e.scrollLeft+t.x,c=o&&a>0&&a<e.scrollWidth;l?e.scrollTop+=t.y:n&&i<0&&(e.scrollTop=0),c?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}}}])}));

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib")):"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KendoDraggableCommon=t(require("tslib")):e.KendoDraggableCommon=t(e.self)}(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(e){var o=r(),n=t.getDocument(e);return o.edge||o.safari?n.body:n.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(e);if(!e||e===document.body||e===document.documentElement)return o;for(var r=e;r&&r!==document.body&&r.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&!t.isScrollable(r);)r=r.parentNode;return r===document.body||r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?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(e);if(e===r)return{top:r.scrollTop,left:r.scrollLeft,bottom:r.scrollTop+o.innerHeight,right:r.scrollLeft+o.innerWidth};var n=e.getBoundingClientRect();return{bottom:n.top+n.height,right:n.left+n.width,left:n.left,top:n.top}},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,D=void 0===_?i:_,m=a.onInitialScrollOffsetChange,b=void 0===m?i:m,T=o.payload,N=T.element,C=T.hint,P=e.autoScrollDirection,S=e.scrollableParent,w=t.normalizeEvent(o.event,e);switch(w.type){case r.POINTER_DOWN:if(w.type===r.POINTER_DOWN&&(!w.originalEvent.isPrimary||0!==w.originalEvent.button))break;case r.MOUSE_DOWN:if(w.type===r.MOUSE_DOWN&&w.originalEvent.which&&w.originalEvent.which>1||e.ignoreMouse)break;case r.TOUCH_START:if(w.type===r.TOUCH_START&&1!==w.originalEvent.touches.length)break;case r.START:var R=S||l.getScrollableParent(o.payload.element);b(R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop}),E({x:w.clientX,y:w.clientY}),v({x:w.pageX,y:w.pageY}),O({x:w.offsetX,y:w.offsetY}),s(!0),T.onPress&&T.onPress(w);break;case r.SCROLL:if(w.type===r.SCROLL&&!e.pressed)break;var x=S||l.getScrollableParent(N),M=x instanceof Window?{x:x.scrollX,y:x.scrollY}:{x:x.scrollLeft,y:x.scrollTop};w.scrollX=M.x-e.initialScrollOffset.x,w.scrollY=M.y-e.initialScrollOffset.y,D({x:w.scrollX,y:w.scrollY});case r.POINTER_MOVE:if(w.type===r.POINTER_MOVE&&!w.originalEvent.isPrimary)break;case r.MOUSE_MOVE:case r.TOUCH_MOVE:if(w.type===r.TOUCH_MOVE&&1!==w.originalEvent.touches.length)break;case r.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==w.originalEvent.type&&N){var A=l.getDocument(N),X=S||l.getScrollableParent(A.elementFromPoint(w.clientX,w.clientY)),Y=l.autoScrollVelocity(w.pageX,w.pageY,l.scrollableViewPort(X,l.getWindow(N)));p({x:P&&!1===P.horizontal?0:Y.x,y:P&&!1===P.vertical?0:Y.y}),u(0!==Y.y||0!==Y.x)}!e.drag&&T.onDragStart&&T.onDragStart(w),T.onDrag&&T.onDrag(w);var U=n.intersect(C||N,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(C||N)}))),L=e.drops.find((function(e){return e.element===U}));L&&U&&l.isPointerInsideContainer(w.clientX,w.clientY,S||l.getScrollableParent(U))&&U!==N?(e.drop&&e.drop.element)!==U?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(w),L.onDragEnter&&L.onDragEnter(w)):L.onDragOver&&L.onDragOver(w):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(w)}E({x:w.clientX,y:w.clientY}),v({x:w.pageX,y:w.pageY});break;case r.POINTER_UP:if(w.type===r.POINTER_UP&&!w.originalEvent.isPrimary)break;case r.MOUSE_UP:case r.TOUCH_END:if(w.type===r.TOUCH_END&&1!==w.originalEvent.touches.length)break;case r.END:s(!1),u(!1),T.onRelease&&T.onRelease(w),e.drop&&e.drop.onDrop&&e.drop.onDrop(w),T.onDragEnd&&T.onDragEnd(w);break;case r.POINTER_CANCEL:case r.CONTEXT_MENU:case r.TOUCH_CANCEL:case r.CANCEL:s(!1),u(!1),T.onDragEnd&&T.onDragEnd(w),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(w)}}},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(e)?(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([],t):"object"==typeof exports?exports.KendoDraggableCommon=t(require("tslib")):e.KendoDraggableCommon=t(e.self)}(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(e){var o=r(),n=t.getDocument(e);return o.edge||o.safari?n.body:n.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(e);if(!e||e===document.body||e===document.documentElement)return o;for(var r=e;r&&r!==document.body&&r.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&r.nodeType!==Node.DOCUMENT_NODE&&!t.isScrollable(r);)r=r.parentNode;return!r||r!==document.body&&r.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?r:o},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(e);if(e===r)return{top:r.scrollTop,left:r.scrollLeft,bottom:r.scrollTop+o.innerHeight,right:r.scrollLeft+o.innerWidth};var n=e.getBoundingClientRect();return{bottom:n.top+n.height,right:n.left+n.width,left:n.left,top:n.top}},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,E=a.onClientOffsetChange,h=void 0===E?i:E,_=a.onScrollOffsetChange,D=void 0===_?i:_,m=a.onInitialScrollOffsetChange,b=void 0===m?i:m,T=o.payload,N=T.element,C=T.hint,P=e.autoScrollDirection,S=e.scrollableParent,w=t.normalizeEvent(o.event,e);switch(w.type){case r.POINTER_DOWN:if(w.type===r.POINTER_DOWN&&(!w.originalEvent.isPrimary||0!==w.originalEvent.button))break;case r.MOUSE_DOWN:if(w.type===r.MOUSE_DOWN&&w.originalEvent.which&&w.originalEvent.which>1||e.ignoreMouse)break;case r.TOUCH_START:if(w.type===r.TOUCH_START&&1!==w.originalEvent.touches.length)break;case r.START:var R=S||l.getScrollableParent(o.payload.element);b(R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop}),h({x:w.clientX,y:w.clientY}),v({x:w.pageX,y:w.pageY}),O({x:w.offsetX,y:w.offsetY}),s(!0),T.onPress&&T.onPress(w);break;case r.SCROLL:if(w.type===r.SCROLL&&!e.pressed)break;var x=S||l.getScrollableParent(N),M=x instanceof Window?{x:x.scrollX,y:x.scrollY}:{x:x.scrollLeft,y:x.scrollTop};w.scrollX=M.x-e.initialScrollOffset.x,w.scrollY=M.y-e.initialScrollOffset.y,D({x:w.scrollX,y:w.scrollY});case r.POINTER_MOVE:if(w.type===r.POINTER_MOVE&&!w.originalEvent.isPrimary)break;case r.MOUSE_MOVE:case r.TOUCH_MOVE:if(w.type===r.TOUCH_MOVE&&1!==w.originalEvent.touches.length)break;case r.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==w.originalEvent.type&&N){var A=l.getDocument(N),X=S||l.getScrollableParent(A.elementFromPoint(w.clientX,w.clientY)),U=l.autoScrollVelocity(w.pageX,w.pageY,l.scrollableViewPort(X,l.getWindow(N)));p({x:P&&!1===P.horizontal?0:U.x,y:P&&!1===P.vertical?0:U.y}),u(0!==U.y||0!==U.x)}!e.drag&&T.onDragStart&&T.onDragStart(w),T.onDrag&&T.onDrag(w);var Y=n.intersect(C||N,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(C||N)}))),L=e.drops.find((function(e){return e.element===Y}));L&&Y&&l.isPointerInsideContainer(w.clientX,w.clientY,S||l.getScrollableParent(Y))&&Y!==N?(e.drop&&e.drop.element)!==Y?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(w),L.onDragEnter&&L.onDragEnter(w)):L.onDragOver&&L.onDragOver(w):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(w)}h({x:w.clientX,y:w.clientY}),v({x:w.pageX,y:w.pageY});break;case r.POINTER_UP:if(w.type===r.POINTER_UP&&!w.originalEvent.isPrimary)break;case r.MOUSE_UP:case r.TOUCH_END:if(w.type===r.TOUCH_END&&1!==w.originalEvent.touches.length)break;case r.END:s(!1),u(!1),T.onRelease&&T.onRelease(w),e.drop&&e.drop.onDrop&&e.drop.onDrop(w),T.onDragEnd&&T.onDragEnd(w);break;case r.POINTER_CANCEL:case r.CONTEXT_MENU:case r.TOUCH_CANCEL:case r.CANCEL:s(!1),u(!1),T.onDragEnd&&T.onDragEnd(w),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(w)}}},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(e)?(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)}}}])}));

@@ -62,6 +62,10 @@ var detectBrowser = function () {

var parent = el;
while (parent && parent !== document.body && parent.nodeType !== Node.DOCUMENT_FRAGMENT_NODE && !isScrollable(parent)) {
while (parent
&& parent !== document.body
&& parent.nodeType !== Node.DOCUMENT_FRAGMENT_NODE
&& parent.nodeType !== Node.DOCUMENT_NODE
&& !isScrollable(parent)) {
parent = parent.parentNode;
}
if (parent === document.body || parent.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
if (parent && (parent === document.body || parent.nodeType === Node.DOCUMENT_FRAGMENT_NODE)) {
return root;

@@ -68,0 +72,0 @@ }

@@ -62,6 +62,10 @@ const detectBrowser = () => {

let parent = el;
while (parent && parent !== document.body && parent.nodeType !== Node.DOCUMENT_FRAGMENT_NODE && !isScrollable(parent)) {
while (parent
&& parent !== document.body
&& parent.nodeType !== Node.DOCUMENT_FRAGMENT_NODE
&& parent.nodeType !== Node.DOCUMENT_NODE
&& !isScrollable(parent)) {
parent = parent.parentNode;
}
if (parent === document.body || parent.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
if (parent && (parent === document.body || parent.nodeType === Node.DOCUMENT_FRAGMENT_NODE)) {
return root;

@@ -68,0 +72,0 @@ }

@@ -64,6 +64,10 @@ "use strict";

var parent = el;
while (parent && parent !== document.body && parent.nodeType !== Node.DOCUMENT_FRAGMENT_NODE && !exports.isScrollable(parent)) {
while (parent
&& parent !== document.body
&& parent.nodeType !== Node.DOCUMENT_FRAGMENT_NODE
&& parent.nodeType !== Node.DOCUMENT_NODE
&& !exports.isScrollable(parent)) {
parent = parent.parentNode;
}
if (parent === document.body || parent.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
if (parent && (parent === document.body || parent.nodeType === Node.DOCUMENT_FRAGMENT_NODE)) {
return root;

@@ -70,0 +74,0 @@ }

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

System.register("@progress/kendo-draggable-common",["tslib"],function(i){var l;return{setters:[function(e){l=e.__useDefault?e.default:e}],execute:function(){function r(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,n;o=[function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getDocument=function(e){return e&&e.ownerDocument||window.document},r.getWindow=function(e){e=r.getDocument(e);return e&&e.defaultView||window},r.scrollableRoot=function(e){var t=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t,o=!1,r=[],n={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(t in n)if(n.hasOwnProperty(t)&&(r=e.match(n[t]))){(o={})[t]=!0,o[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,o.version=parseInt(document.DOCUMENT_NODE||r[2],10);break}return o}(),e=r.getDocument(e);return t.edge||t.safari?e.body:e.documentElement},r.isScrollable=function(e){if(e&&e.className&&"string"==typeof e.className&&-1<e.className.indexOf("k-auto-scrollable"))return!0;e=window.getComputedStyle(e,"overflow").overflow;return-1<e.indexOf("auto")||-1<e.indexOf("scroll")},r.getScrollableParent=function(e){var t=r.scrollableRoot(e);if(!e||e===document.body||e===document.documentElement)return t;for(var o=e;o&&o!==document.body&&o.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&!r.isScrollable(o);)o=o.parentNode;return o===document.body||o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t:o},r.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},r.scrollableViewPort=function(e,t){var o=r.scrollableRoot(e);if(e===o)return{top:o.scrollTop,left:o.scrollLeft,bottom:o.scrollTop+t.innerHeight,right:o.scrollLeft+t.innerWidth};o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}},r.isPointerInsideContainer=function(e,t,o){o=o.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=o(0);t.autoScroll=function(e,t){var o,r,n,l,i,a;e&&(r=e===c.scrollableRoot(e)?(o=document.body.scrollHeight>window.innerHeight,document.body.scrollWidth>window.innerWidth):(o=e.offsetHeight<=e.scrollHeight,e.offsetWidth<=e.scrollWidth),n=e.scrollTop+t.y,l=o&&0<n&&n<e.scrollHeight,i=e.scrollLeft+t.x,a=r&&0<i&&i<e.scrollWidth,l?e.scrollTop+=t.y:o&&n<0&&(e.scrollTop=0),a?e.scrollLeft+=t.x:r&&i<0&&(e.scrollLeft=0))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.intersect=function(a,e){var c=0,s=null;return e.forEach(function(e){var t,o,r,n,l,i;e&&a&&(t=e,o=a.getBoundingClientRect(),t=t.getBoundingClientRect(),r=Math.max(t.top,o.top),n=Math.max(t.left,o.left),l=Math.min(t.left+t.width,o.left+o.width),i=Math.min(t.top+t.height,o.top+o.height),n=n<l&&r<i?(t=t.width*t.height,o=o.width*o.height,l=(l-n)*(i-r),Number((l/(t+o-l)).toFixed(4))):0,c<n&&(c=n,s=e))}),s}},function(e,t){e.exports=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(3).__exportStar(o(2),t)},function(e,D,t){"use strict";Object.defineProperty(D,"__esModule",{value:!0});function v(){}var m,N=t(4),T=t(0);(t=m=D.DRAG_AND_DROP_DISPATCH_ACTION||(D.DRAG_AND_DROP_DISPATCH_ACTION={})).POINTER_DOWN="pointerdown",t.POINTER_MOVE="pointermove",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.MOUSE_DOWN="mousedown",t.MOUSE_MOVE="mousemove",t.MOUSE_UP="mouseup",t.CONTEXT_MENU="contextmenu",t.TOUCH_START="touchstart",t.TOUCH_MOVE="touchmove",t.TOUCH_END="touchend",t.TOUCH_CANCEL="touchcancel",t.SCROLL="scroll",t.START="KENDO_DRAG_AND_DROP_START",t.MOVE="KENDO_DRAG_AND_DROP_MOVE",t.END="KENDO_DRAG_AND_DROP_END",t.CANCEL="KENDO_DRAG_AND_DROP_CANCEL",D.normalizeEvent=function(e,t){return/^touch/.test(e.type)?{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}:/^(scroll)/.test(e.type)?{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}};D.dispatchDragAndDrop=function(e,t,o){var r,n=(o=void 0===o?{}:o).onIsPressedChange,l=void 0===n?v:n,n=o.onIsScrollingChange,i=void 0===n?v:n,n=o.onVelocityChange,a=void 0===n?v:n,n=o.onOffsetChange,c=void 0===n?v:n,n=o.onPageOffsetChange,s=void 0===n?v:n,n=o.onClientOffsetChange,f=void 0===n?v:n,n=o.onScrollOffsetChange,u=void 0===n?v:n,n=o.onInitialScrollOffsetChange,d=void 0===n?v:n,g=t.payload,p=g.element,O=g.hint,y=e.autoScrollDirection,h=e.scrollableParent,E=D.normalizeEvent(t.event,e);switch(E.type){case m.POINTER_DOWN:if(E.type===m.POINTER_DOWN&&(!E.originalEvent.isPrimary||0!==E.originalEvent.button))break;case m.MOUSE_DOWN:if(E.type===m.MOUSE_DOWN&&E.originalEvent.which&&1<E.originalEvent.which||e.ignoreMouse)break;case m.TOUCH_START:if(E.type===m.TOUCH_START&&1!==E.originalEvent.touches.length)break;case m.START:var _=h||T.getScrollableParent(t.payload.element);d(_ instanceof Window?{x:_.scrollX,y:_.scrollY}:{x:_.scrollLeft,y:_.scrollTop}),f({x:E.clientX,y:E.clientY}),s({x:E.pageX,y:E.pageY}),c({x:E.offsetX,y:E.offsetY}),l(!0),g.onPress&&g.onPress(E);break;case m.SCROLL:if(E.type===m.SCROLL&&!e.pressed)break;var _=h||T.getScrollableParent(p),_=_ instanceof Window?{x:_.scrollX,y:_.scrollY}:{x:_.scrollLeft,y:_.scrollTop};E.scrollX=_.x-e.initialScrollOffset.x,E.scrollY=_.y-e.initialScrollOffset.y,u({x:E.scrollX,y:E.scrollY});case m.POINTER_MOVE:if(E.type===m.POINTER_MOVE&&!E.originalEvent.isPrimary)break;case m.MOUSE_MOVE:case m.TOUCH_MOVE:if(E.type===m.TOUCH_MOVE&&1!==E.originalEvent.touches.length)break;case m.MOVE:e.pressed&&(e.autoScroll&&"scroll"!==E.originalEvent.type&&p&&(_=T.getDocument(p),_=h||T.getScrollableParent(_.elementFromPoint(E.clientX,E.clientY)),_=T.autoScrollVelocity(E.pageX,E.pageY,T.scrollableViewPort(_,T.getWindow(p))),a({x:y&&!1===y.horizontal?0:_.x,y:y&&!1===y.vertical?0:_.y}),i(0!==_.y||0!==_.x)),!e.drag&&g.onDragStart&&g.onDragStart(E),g.onDrag&&g.onDrag(E),r=N.intersect(O||p,e.drops.map(function(e){return e&&e.element}).filter(function(e){return e!==(O||p)})),(_=e.drops.find(function(e){return e.element===r}))&&r&&T.isPointerInsideContainer(E.clientX,E.clientY,h||T.getScrollableParent(r))&&r!==p?(e.drop&&e.drop.element)!==r?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(E),_.onDragEnter&&_.onDragEnter(E)):_.onDragOver&&_.onDragOver(E):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(E)),f({x:E.clientX,y:E.clientY}),s({x:E.pageX,y:E.pageY});break;case m.POINTER_UP:if(E.type===m.POINTER_UP&&!E.originalEvent.isPrimary)break;case m.MOUSE_UP:case m.TOUCH_END:if(E.type===m.TOUCH_END&&1!==E.originalEvent.touches.length)break;case m.END:l(!1),i(!1),g.onRelease&&g.onRelease(E),e.drop&&e.drop.onDrop&&e.drop.onDrop(E),g.onDragEnd&&g.onDragEnd(E);break;case m.POINTER_CANCEL:case m.CONTEXT_MENU:case m.TOUCH_CANCEL:case m.CANCEL:l(!1),i(!1),g.onDragEnd&&g.onDragEnd(E),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(E)}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=o(5),n=(t.dispatchDragAndDrop=n.dispatchDragAndDrop,o(0)),n=(t.scrollableRoot=n.scrollableRoot,t.getScrollableParent=n.getScrollableParent,o(1)),l=(t.autoScroll=n.autoScroll,t);for(r in l)i(r,l[r])}],n={},r.m=o,r.c=n,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}}});
System.register("@progress/kendo-draggable-common",["tslib"],function(i){var l;return{setters:[function(e){l=e.__useDefault?e.default:e}],execute:function(){function r(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,n;o=[function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getDocument=function(e){return e&&e.ownerDocument||window.document},r.getWindow=function(e){e=r.getDocument(e);return e&&e.defaultView||window},r.scrollableRoot=function(e){var t=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t,o=!1,r=[],n={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(t in n)if(n.hasOwnProperty(t)&&(r=e.match(n[t]))){(o={})[t]=!0,o[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,o.version=parseInt(document.DOCUMENT_NODE||r[2],10);break}return o}(),e=r.getDocument(e);return t.edge||t.safari?e.body:e.documentElement},r.isScrollable=function(e){if(e&&e.className&&"string"==typeof e.className&&-1<e.className.indexOf("k-auto-scrollable"))return!0;e=window.getComputedStyle(e,"overflow").overflow;return-1<e.indexOf("auto")||-1<e.indexOf("scroll")},r.getScrollableParent=function(e){var t=r.scrollableRoot(e);if(!e||e===document.body||e===document.documentElement)return t;for(var o=e;o&&o!==document.body&&o.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&o.nodeType!==Node.DOCUMENT_NODE&&!r.isScrollable(o);)o=o.parentNode;return!o||o!==document.body&&o.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?o:t},r.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},r.scrollableViewPort=function(e,t){var o=r.scrollableRoot(e);if(e===o)return{top:o.scrollTop,left:o.scrollLeft,bottom:o.scrollTop+t.innerHeight,right:o.scrollLeft+t.innerWidth};o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}},r.isPointerInsideContainer=function(e,t,o){o=o.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=o(0);t.autoScroll=function(e,t){var o,r,n,l,i,a;e&&(r=e===c.scrollableRoot(e)?(o=document.body.scrollHeight>window.innerHeight,document.body.scrollWidth>window.innerWidth):(o=e.offsetHeight<=e.scrollHeight,e.offsetWidth<=e.scrollWidth),n=e.scrollTop+t.y,l=o&&0<n&&n<e.scrollHeight,i=e.scrollLeft+t.x,a=r&&0<i&&i<e.scrollWidth,l?e.scrollTop+=t.y:o&&n<0&&(e.scrollTop=0),a?e.scrollLeft+=t.x:r&&i<0&&(e.scrollLeft=0))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.intersect=function(a,e){var c=0,s=null;return e.forEach(function(e){var t,o,r,n,l,i;e&&a&&(t=e,o=a.getBoundingClientRect(),t=t.getBoundingClientRect(),r=Math.max(t.top,o.top),n=Math.max(t.left,o.left),l=Math.min(t.left+t.width,o.left+o.width),i=Math.min(t.top+t.height,o.top+o.height),n=n<l&&r<i?(t=t.width*t.height,o=o.width*o.height,l=(l-n)*(i-r),Number((l/(t+o-l)).toFixed(4))):0,c<n&&(c=n,s=e))}),s}},function(e,t){e.exports=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(3).__exportStar(o(2),t)},function(e,D,t){"use strict";Object.defineProperty(D,"__esModule",{value:!0});function v(){}var m,N=t(4),T=t(0);(t=m=D.DRAG_AND_DROP_DISPATCH_ACTION||(D.DRAG_AND_DROP_DISPATCH_ACTION={})).POINTER_DOWN="pointerdown",t.POINTER_MOVE="pointermove",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.MOUSE_DOWN="mousedown",t.MOUSE_MOVE="mousemove",t.MOUSE_UP="mouseup",t.CONTEXT_MENU="contextmenu",t.TOUCH_START="touchstart",t.TOUCH_MOVE="touchmove",t.TOUCH_END="touchend",t.TOUCH_CANCEL="touchcancel",t.SCROLL="scroll",t.START="KENDO_DRAG_AND_DROP_START",t.MOVE="KENDO_DRAG_AND_DROP_MOVE",t.END="KENDO_DRAG_AND_DROP_END",t.CANCEL="KENDO_DRAG_AND_DROP_CANCEL",D.normalizeEvent=function(e,t){return/^touch/.test(e.type)?{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}:/^(scroll)/.test(e.type)?{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}};D.dispatchDragAndDrop=function(e,t,o){var r,n=(o=void 0===o?{}:o).onIsPressedChange,l=void 0===n?v:n,n=o.onIsScrollingChange,i=void 0===n?v:n,n=o.onVelocityChange,a=void 0===n?v:n,n=o.onOffsetChange,c=void 0===n?v:n,n=o.onPageOffsetChange,s=void 0===n?v:n,n=o.onClientOffsetChange,f=void 0===n?v:n,n=o.onScrollOffsetChange,u=void 0===n?v:n,n=o.onInitialScrollOffsetChange,d=void 0===n?v:n,g=t.payload,p=g.element,O=g.hint,y=e.autoScrollDirection,E=e.scrollableParent,h=D.normalizeEvent(t.event,e);switch(h.type){case m.POINTER_DOWN:if(h.type===m.POINTER_DOWN&&(!h.originalEvent.isPrimary||0!==h.originalEvent.button))break;case m.MOUSE_DOWN:if(h.type===m.MOUSE_DOWN&&h.originalEvent.which&&1<h.originalEvent.which||e.ignoreMouse)break;case m.TOUCH_START:if(h.type===m.TOUCH_START&&1!==h.originalEvent.touches.length)break;case m.START:var _=E||T.getScrollableParent(t.payload.element);d(_ instanceof Window?{x:_.scrollX,y:_.scrollY}:{x:_.scrollLeft,y:_.scrollTop}),f({x:h.clientX,y:h.clientY}),s({x:h.pageX,y:h.pageY}),c({x:h.offsetX,y:h.offsetY}),l(!0),g.onPress&&g.onPress(h);break;case m.SCROLL:if(h.type===m.SCROLL&&!e.pressed)break;var _=E||T.getScrollableParent(p),_=_ instanceof Window?{x:_.scrollX,y:_.scrollY}:{x:_.scrollLeft,y:_.scrollTop};h.scrollX=_.x-e.initialScrollOffset.x,h.scrollY=_.y-e.initialScrollOffset.y,u({x:h.scrollX,y:h.scrollY});case m.POINTER_MOVE:if(h.type===m.POINTER_MOVE&&!h.originalEvent.isPrimary)break;case m.MOUSE_MOVE:case m.TOUCH_MOVE:if(h.type===m.TOUCH_MOVE&&1!==h.originalEvent.touches.length)break;case m.MOVE:e.pressed&&(e.autoScroll&&"scroll"!==h.originalEvent.type&&p&&(_=T.getDocument(p),_=E||T.getScrollableParent(_.elementFromPoint(h.clientX,h.clientY)),_=T.autoScrollVelocity(h.pageX,h.pageY,T.scrollableViewPort(_,T.getWindow(p))),a({x:y&&!1===y.horizontal?0:_.x,y:y&&!1===y.vertical?0:_.y}),i(0!==_.y||0!==_.x)),!e.drag&&g.onDragStart&&g.onDragStart(h),g.onDrag&&g.onDrag(h),r=N.intersect(O||p,e.drops.map(function(e){return e&&e.element}).filter(function(e){return e!==(O||p)})),(_=e.drops.find(function(e){return e.element===r}))&&r&&T.isPointerInsideContainer(h.clientX,h.clientY,E||T.getScrollableParent(r))&&r!==p?(e.drop&&e.drop.element)!==r?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(h),_.onDragEnter&&_.onDragEnter(h)):_.onDragOver&&_.onDragOver(h):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(h)),f({x:h.clientX,y:h.clientY}),s({x:h.pageX,y:h.pageY});break;case m.POINTER_UP:if(h.type===m.POINTER_UP&&!h.originalEvent.isPrimary)break;case m.MOUSE_UP:case m.TOUCH_END:if(h.type===m.TOUCH_END&&1!==h.originalEvent.touches.length)break;case m.END:l(!1),i(!1),g.onRelease&&g.onRelease(h),e.drop&&e.drop.onDrop&&e.drop.onDrop(h),g.onDragEnd&&g.onDragEnd(h);break;case m.POINTER_CANCEL:case m.CONTEXT_MENU:case m.TOUCH_CANCEL:case m.CANCEL:l(!1),i(!1),g.onDragEnd&&g.onDragEnd(h),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(h)}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=o(5),n=(t.dispatchDragAndDrop=n.dispatchDragAndDrop,o(0)),n=(t.scrollableRoot=n.scrollableRoot,t.getScrollableParent=n.getScrollableParent,o(1)),l=(t.autoScroll=n.autoScroll,t);for(r in l)i(r,l[r])}],n={},r.m=o,r.c=n,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}}});
{
"name": "@progress/kendo-draggable-common",
"description": "Kendo UI TypeScript package starter template",
"version": "0.2.0-dev.202203111250",
"version": "0.2.0-dev.202205111349",
"keywords": [

@@ -6,0 +6,0 @@ "Kendo UI"

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