@progress/kendo-draggable-common
Advanced tools
Comparing version 0.2.0 to 0.2.1-dev.202206151211
@@ -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&&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})); | ||
!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.clientX,x.clientY,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})); | ||
/*! ***************************************************************************** | ||
@@ -3,0 +3,0 @@ Copyright (c) Microsoft Corporation. |
@@ -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&&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)}}}])})); | ||
!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.clientX,w.clientY,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)}}}])})); |
@@ -163,3 +163,3 @@ import { intersect } from "./algorithms"; | ||
var scrollableParent_2 = overrideScrollableParent || getScrollableParent(document_1.elementFromPoint(event.clientX, event.clientY)); | ||
var newVelocity = autoScrollVelocity(event.pageX, event.pageY, scrollableViewPort(scrollableParent_2, getWindow(element))); | ||
var newVelocity = autoScrollVelocity(event.clientX, event.clientY, scrollableViewPort(scrollableParent_2, getWindow(element))); | ||
onVelocityChange({ | ||
@@ -166,0 +166,0 @@ x: (autoScrollDirection && autoScrollDirection.horizontal === false) ? 0 : newVelocity.x, |
@@ -162,3 +162,3 @@ import { intersect } from "./algorithms"; | ||
const scrollableParent = overrideScrollableParent || getScrollableParent(document.elementFromPoint(event.clientX, event.clientY)); | ||
const newVelocity = autoScrollVelocity(event.pageX, event.pageY, scrollableViewPort(scrollableParent, getWindow(element))); | ||
const newVelocity = autoScrollVelocity(event.clientX, event.clientY, scrollableViewPort(scrollableParent, getWindow(element))); | ||
onVelocityChange({ | ||
@@ -165,0 +165,0 @@ x: (autoScrollDirection && autoScrollDirection.horizontal === false) ? 0 : newVelocity.x, |
@@ -165,3 +165,3 @@ "use strict"; | ||
var scrollableParent_2 = overrideScrollableParent || utils_1.getScrollableParent(document_1.elementFromPoint(event.clientX, event.clientY)); | ||
var newVelocity = utils_1.autoScrollVelocity(event.pageX, event.pageY, utils_1.scrollableViewPort(scrollableParent_2, utils_1.getWindow(element))); | ||
var newVelocity = utils_1.autoScrollVelocity(event.clientX, event.clientY, utils_1.scrollableViewPort(scrollableParent_2, utils_1.getWindow(element))); | ||
onVelocityChange({ | ||
@@ -168,0 +168,0 @@ x: (autoScrollDirection && autoScrollDirection.horizontal === false) ? 0 : newVelocity.x, |
@@ -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&&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)}}}); | ||
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.clientX,h.clientY,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", | ||
"version": "0.2.1-dev.202206151211", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "Kendo UI" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135590