@telerik/kendo-draggable
Advanced tools
Comparing version 2.1.1-dev.202004291030 to 2.1.1-dev.202004291141
@@ -1,1 +0,1 @@ | ||
System.register("@telerik/kendo-draggable",[],function(c){return{setters:[],execute:function(){function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,r;r={},o.m=n=[function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Draggable=void 0;function d(t,n){return function(e){return n(t(e))}}function l(e,t,n){return e.addEventListener&&e.addEventListener(t,n)}function h(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)}function p(){}function m(e){return e.preventDefault()}var u=/touch/;function _(e){return e.type.match(u)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var i=(r(f,null,[{key:"supportPointerEvent",value:function(){return"undefined"!=typeof window&&window.PointerEvent}}]),r(f,[{key:"bindTo",value:function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())}},{key:"_bindToCurrent",value:function(){var e=this._element;this._usePointers()?l(e,"pointerdown",this._pointerdown):(l(e,"mousedown",this._mousedown),this._mouseOnly||(l(e,"touchstart",this._touchstart),l(e,"touchmove",this._touchmove),l(e,"touchend",this._touchend)))}},{key:"_unbindFromCurrent",value:function(){var e=this._element;if(this._usePointers())return h(e,"pointerdown",this._pointerdown),h(document,"pointermove",this._pointermove),h(document,"pointerup",this._pointerup),h(document,"contextmenu",m),void h(document,"pointercancel",this._pointerup);h(e,"mousedown",this._mousedown),this._mouseOnly||(h(e,"touchstart",this._touchstart),h(e,"touchmove",this._touchmove),h(e,"touchend",this._touchend))}},{key:"_usePointers",value:function(){return!this._mouseOnly&&f.supportPointerEvent()}},{key:"update",value:function(e){var t=e.press,n=void 0===t?p:t,o=e.drag,r=void 0===o?p:o,u=e.release,i=void 0===u?p:u,s=e.mouseOnly,c=void 0!==s&&s;this._pressHandler=d(_,n),this._dragHandler=d(_,r),this._releaseHandler=d(_,i),this._mouseOnly=c}},{key:"destroy",value:function(){this._unbindFromCurrent(),this._element=null}}]),f);function f(e){var n=this,t=e.press,o=void 0===t?p:t,r=e.drag,u=void 0===r?p:r,i=e.release,s=void 0===i?p:i,c=e.mouseOnly,a=void 0!==c&&c;!function(e){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function")}(this),this._pressHandler=d(_,o),this._dragHandler=d(_,u),this._releaseHandler=d(_,s),this._ignoreMouse=!1,this._mouseOnly=a,this._touchstart=function(e){1===e.touches.length&&n._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&n._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(n._releaseHandler(e),n._ignoreMouse=!0,setTimeout(n._restoreMouse,2e3))},this._restoreMouse=function(){n._ignoreMouse=!1},this._mousedown=function(e){var t=e.which;t&&1<t||n._ignoreMouse||(l(document,"mousemove",n._mousemove),l(document,"mouseup",n._mouseup),n._pressHandler(e))},this._mousemove=function(e){n._dragHandler(e)},this._mouseup=function(e){h(document,"mousemove",n._mousemove),h(document,"mouseup",n._mouseup),n._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(l(document,"pointermove",n._pointermove),l(document,"pointerup",n._pointerup),l(document,"pointercancel",n._pointerup),l(document,"contextmenu",m),n._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&n._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(h(document,"pointermove",n._pointermove),h(document,"pointerup",n._pointerup),h(document,"pointercancel",n._pointerup),h(document,"contextmenu",m),n._releaseHandler(e))}}var s=(t.Draggable=i).default=i;t.default=s,function(e){for(var t in e)c(t,e[t])}(t)}],o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=0)}}}); | ||
System.register("@telerik/kendo-draggable",[],function(i){return{setters:[],execute:function(){function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,r;r={},o.m=n=[function(e,t,n){"use strict";n.r(t),n.d(t,"Draggable",function(){return r});function u(t,n){return function(e){return n(t(e))}}function s(e,t,n){return e.addEventListener&&e.addEventListener(t,n)}function c(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)}function d(){}function a(e){return e.preventDefault()}var o=/touch/;function p(e){return e.type.match(o)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var r=function(e){var n=this,t=e.press;void 0===t&&(t=d);var o=e.drag;void 0===o&&(o=d);var r=e.release;void 0===r&&(r=d);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=u(p,t),this._dragHandler=u(p,o),this._releaseHandler=u(p,r),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&n._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&n._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(n._releaseHandler(e),n._ignoreMouse=!0,setTimeout(n._restoreMouse,2e3))},this._restoreMouse=function(){n._ignoreMouse=!1},this._mousedown=function(e){var t=e.which;t&&1<t||n._ignoreMouse||(s(document,"mousemove",n._mousemove),s(document,"mouseup",n._mouseup),n._pressHandler(e))},this._mousemove=function(e){n._dragHandler(e)},this._mouseup=function(e){c(document,"mousemove",n._mousemove),c(document,"mouseup",n._mouseup),n._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(s(document,"pointermove",n._pointermove),s(document,"pointerup",n._pointerup),s(document,"pointercancel",n._pointerup),s(document,"contextmenu",a),n._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&n._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(c(document,"pointermove",n._pointermove),c(document,"pointerup",n._pointerup),c(document,"pointercancel",n._pointerup),c(document,"contextmenu",a),n._releaseHandler(e))}};r.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},r.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},r.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?s(e,"pointerdown",this._pointerdown):(s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend)))},r.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return c(e,"pointerdown",this._pointerdown),c(document,"pointermove",this._pointermove),c(document,"pointerup",this._pointerup),c(document,"contextmenu",a),void c(document,"pointercancel",this._pointerup);c(e,"mousedown",this._mousedown),this._mouseOnly||(c(e,"touchstart",this._touchstart),c(e,"touchmove",this._touchmove),c(e,"touchend",this._touchend))},r.prototype._usePointers=function(){return!this._mouseOnly&&r.supportPointerEvent()},r.prototype.update=function(e){var t=e.press;void 0===t&&(t=d);var n=e.drag;void 0===n&&(n=d);var o=e.release;void 0===o&&(o=d);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=u(p,t),this._dragHandler=u(p,n),this._releaseHandler=u(p,o),this._mouseOnly=r},r.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},r.default=r,t.default=r,function(e){for(var t in e)i(t,e[t])}(t)}],o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=0)}}}); |
@@ -6,3 +6,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "2.1.1-dev.202004291030", | ||
"version": "2.1.1-dev.202004291141", | ||
"main": "dist/npm/main.js", | ||
@@ -25,3 +25,3 @@ "module": "dist/es/main.js", | ||
"@types/node": "10.17.13", | ||
"@progress/kendo-package-tasks": "^4.0.1", | ||
"@progress/kendo-package-tasks": "dev", | ||
"@telerik/eslint-config": "^1.0.0", | ||
@@ -28,0 +28,0 @@ "@telerik/semantic-prerelease": "^1.3.3", |
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
69487