@telerik/kendo-draggable
Advanced tools
Comparing version 2.2.0 to 2.2.1-dev.202104200517
@@ -91,4 +91,4 @@ var proxy = function (a, b) { return function (e) { return b(a(e)); }; }; | ||
bind(document, "mousemove", this$1._mousemove); | ||
bind(document, "mouseup", this$1._mouseup); | ||
bind(this$1.document, "mousemove", this$1._mousemove); | ||
bind(this$1.document, "mouseup", this$1._mouseup); | ||
this$1._pressHandler(e); | ||
@@ -102,4 +102,4 @@ }; | ||
this._mouseup = function (e) { | ||
unbind(document, "mousemove", this$1._mousemove); | ||
unbind(document, "mouseup", this$1._mouseup); | ||
unbind(this$1.document, "mousemove", this$1._mousemove); | ||
unbind(this$1.document, "mouseup", this$1._mouseup); | ||
this$1._releaseHandler(e); | ||
@@ -110,6 +110,6 @@ }; | ||
if (e.isPrimary && e.button === 0) { | ||
bind(document, "pointermove", this$1._pointermove); | ||
bind(document, "pointerup", this$1._pointerup); | ||
bind(document, "pointercancel", this$1._pointerup); | ||
bind(document, "contextmenu", preventDefault); | ||
bind(this$1.document, "pointermove", this$1._pointermove); | ||
bind(this$1.document, "pointerup", this$1._pointerup); | ||
bind(this$1.document, "pointercancel", this$1._pointerup); | ||
bind(this$1.document, "contextmenu", preventDefault); | ||
@@ -128,6 +128,6 @@ this$1._pressHandler(e); | ||
if (e.isPrimary) { | ||
unbind(document, "pointermove", this$1._pointermove); | ||
unbind(document, "pointerup", this$1._pointerup); | ||
unbind(document, "pointercancel", this$1._pointerup); | ||
unbind(document, "contextmenu", preventDefault); | ||
unbind(this$1.document, "pointermove", this$1._pointermove); | ||
unbind(this$1.document, "pointerup", this$1._pointerup); | ||
unbind(this$1.document, "pointercancel", this$1._pointerup); | ||
unbind(this$1.document, "contextmenu", preventDefault); | ||
@@ -139,2 +139,4 @@ this$1._releaseHandler(e); | ||
var prototypeAccessors = { document: { configurable: true } }; | ||
Draggable.supportPointerEvent = function supportPointerEvent () { | ||
@@ -144,2 +146,8 @@ return (typeof window !== 'undefined') && window.PointerEvent; | ||
prototypeAccessors.document.get = function () { | ||
return this._element | ||
? this._element.ownerDocument | ||
: document; | ||
}; | ||
Draggable.prototype.bindTo = function bindTo (element) { | ||
@@ -180,6 +188,6 @@ if (element === this._element) { | ||
unbind(element, "pointerdown", this._pointerdown); | ||
unbind(document, "pointermove", this._pointermove); | ||
unbind(document, "pointerup", this._pointerup); | ||
unbind(document, "contextmenu", preventDefault); | ||
unbind(document, "pointercancel", this._pointerup); | ||
unbind(this.document, "pointermove", this._pointermove); | ||
unbind(this.document, "pointerup", this._pointerup); | ||
unbind(this.document, "contextmenu", preventDefault); | ||
unbind(this.document, "pointercancel", this._pointerup); | ||
return; | ||
@@ -218,2 +226,4 @@ } | ||
Object.defineProperties( Draggable.prototype, prototypeAccessors ); | ||
// Re-export as "default" field to address a bug | ||
@@ -220,0 +230,0 @@ // where the ES Module is imported by CommonJS code. |
@@ -52,2 +52,8 @@ const proxy = (a, b) => (e) => b(a(e)); | ||
get document() { | ||
return this._element | ||
? this._element.ownerDocument | ||
: document; | ||
} | ||
constructor({ press = noop, drag = noop, release = noop, mouseOnly = false }) { | ||
@@ -93,4 +99,4 @@ this._pressHandler = proxy(normalizeEvent, press); | ||
bind(document, "mousemove", this._mousemove); | ||
bind(document, "mouseup", this._mouseup); | ||
bind(this.document, "mousemove", this._mousemove); | ||
bind(this.document, "mouseup", this._mouseup); | ||
this._pressHandler(e); | ||
@@ -104,4 +110,4 @@ }; | ||
this._mouseup = (e) => { | ||
unbind(document, "mousemove", this._mousemove); | ||
unbind(document, "mouseup", this._mouseup); | ||
unbind(this.document, "mousemove", this._mousemove); | ||
unbind(this.document, "mouseup", this._mouseup); | ||
this._releaseHandler(e); | ||
@@ -112,6 +118,6 @@ }; | ||
if (e.isPrimary && e.button === 0) { | ||
bind(document, "pointermove", this._pointermove); | ||
bind(document, "pointerup", this._pointerup); | ||
bind(document, "pointercancel", this._pointerup); | ||
bind(document, "contextmenu", preventDefault); | ||
bind(this.document, "pointermove", this._pointermove); | ||
bind(this.document, "pointerup", this._pointerup); | ||
bind(this.document, "pointercancel", this._pointerup); | ||
bind(this.document, "contextmenu", preventDefault); | ||
@@ -130,6 +136,6 @@ this._pressHandler(e); | ||
if (e.isPrimary) { | ||
unbind(document, "pointermove", this._pointermove); | ||
unbind(document, "pointerup", this._pointerup); | ||
unbind(document, "pointercancel", this._pointerup); | ||
unbind(document, "contextmenu", preventDefault); | ||
unbind(this.document, "pointermove", this._pointermove); | ||
unbind(this.document, "pointerup", this._pointerup); | ||
unbind(this.document, "pointercancel", this._pointerup); | ||
unbind(this.document, "contextmenu", preventDefault); | ||
@@ -176,6 +182,6 @@ this._releaseHandler(e); | ||
unbind(element, "pointerdown", this._pointerdown); | ||
unbind(document, "pointermove", this._pointermove); | ||
unbind(document, "pointerup", this._pointerup); | ||
unbind(document, "contextmenu", preventDefault); | ||
unbind(document, "pointercancel", this._pointerup); | ||
unbind(this.document, "pointermove", this._pointermove); | ||
unbind(this.document, "pointerup", this._pointerup); | ||
unbind(this.document, "contextmenu", preventDefault); | ||
unbind(this.document, "pointercancel", this._pointerup); | ||
return; | ||
@@ -182,0 +188,0 @@ } |
@@ -95,4 +95,4 @@ 'use strict'; | ||
bind(document, "mousemove", this$1._mousemove); | ||
bind(document, "mouseup", this$1._mouseup); | ||
bind(this$1.document, "mousemove", this$1._mousemove); | ||
bind(this$1.document, "mouseup", this$1._mouseup); | ||
this$1._pressHandler(e); | ||
@@ -106,4 +106,4 @@ }; | ||
this._mouseup = function (e) { | ||
unbind(document, "mousemove", this$1._mousemove); | ||
unbind(document, "mouseup", this$1._mouseup); | ||
unbind(this$1.document, "mousemove", this$1._mousemove); | ||
unbind(this$1.document, "mouseup", this$1._mouseup); | ||
this$1._releaseHandler(e); | ||
@@ -114,6 +114,6 @@ }; | ||
if (e.isPrimary && e.button === 0) { | ||
bind(document, "pointermove", this$1._pointermove); | ||
bind(document, "pointerup", this$1._pointerup); | ||
bind(document, "pointercancel", this$1._pointerup); | ||
bind(document, "contextmenu", preventDefault); | ||
bind(this$1.document, "pointermove", this$1._pointermove); | ||
bind(this$1.document, "pointerup", this$1._pointerup); | ||
bind(this$1.document, "pointercancel", this$1._pointerup); | ||
bind(this$1.document, "contextmenu", preventDefault); | ||
@@ -132,6 +132,6 @@ this$1._pressHandler(e); | ||
if (e.isPrimary) { | ||
unbind(document, "pointermove", this$1._pointermove); | ||
unbind(document, "pointerup", this$1._pointerup); | ||
unbind(document, "pointercancel", this$1._pointerup); | ||
unbind(document, "contextmenu", preventDefault); | ||
unbind(this$1.document, "pointermove", this$1._pointermove); | ||
unbind(this$1.document, "pointerup", this$1._pointerup); | ||
unbind(this$1.document, "pointercancel", this$1._pointerup); | ||
unbind(this$1.document, "contextmenu", preventDefault); | ||
@@ -143,2 +143,4 @@ this$1._releaseHandler(e); | ||
var prototypeAccessors = { document: {} }; | ||
Draggable.supportPointerEvent = function supportPointerEvent () { | ||
@@ -148,2 +150,8 @@ return (typeof window !== 'undefined') && window.PointerEvent; | ||
prototypeAccessors.document.get = function () { | ||
return this._element | ||
? this._element.ownerDocument | ||
: document; | ||
}; | ||
Draggable.prototype.bindTo = function bindTo (element) { | ||
@@ -184,6 +192,6 @@ if (element === this._element) { | ||
unbind(element, "pointerdown", this._pointerdown); | ||
unbind(document, "pointermove", this._pointermove); | ||
unbind(document, "pointerup", this._pointerup); | ||
unbind(document, "contextmenu", preventDefault); | ||
unbind(document, "pointercancel", this._pointerup); | ||
unbind(this.document, "pointermove", this._pointermove); | ||
unbind(this.document, "pointerup", this._pointerup); | ||
unbind(this.document, "contextmenu", preventDefault); | ||
unbind(this.document, "pointercancel", this._pointerup); | ||
return; | ||
@@ -222,2 +230,4 @@ } | ||
Object.defineProperties( Draggable.prototype, prototypeAccessors ); | ||
// Re-export as "default" field to address a bug | ||
@@ -232,2 +242,2 @@ // where the ES Module is imported by CommonJS code. | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjpudWxsLCJzb3VyY2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XG4gICAgICAgIHRoaXMuX3BvaW50ZXJkb3duID0gKGUpID0+IHtcbiAgICAgICAgICAgIGlmIChlLmlzUHJpbWFyeSAmJiBlLmJ1dHRvbiA9PT0gMCkge1xuICAgICAgICAgICAgICAgIGJpbmQoZG9jdW1lbnQsIFwicG9pbnRlcm1vdmVcIiwgdGhpcy5fcG9pbnRlcm1vdmUpO1xuICAgICAgICAgICAgICAgIGJpbmQoZG9jdW1lbnQsIFwicG9pbnRlcnVwXCIsIHRoaXMuX3BvaW50ZXJ1cCk7XG4gICAgICAgICAgICAgICAgYmluZChkb2N1bWVudCwgXCJwb2ludGVyY2FuY2VsXCIsIHRoaXMuX3BvaW50ZXJ1cCk7XG4gICAgICAgICAgICAgICAgYmluZChkb2N1bWVudCwgXCJjb250ZXh0bWVudVwiLCBwcmV2ZW50RGVmYXVsdCk7XG5cbiAgICAgICAgICAgICAgICB0aGlzLl9wcmVzc0hhbmRsZXIoZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG5cbiAgICAgICAgdGhpcy5fcG9pbnRlcm1vdmUgPSAoZSkgPT4ge1xuICAgICAgICAgICAgaWYgKGUuaXNQcmltYXJ5KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5fZHJhZ0hhbmRsZXIoZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG5cbiAgICAgICAgdGhpcy5fcG9pbnRlcnVwID0gKGUpID0+IHtcbiAgICAgICAgICAgIGlmIChlLmlzUHJpbWFyeSkge1xuICAgICAgICAgICAgICAgIHVuYmluZChkb2N1bWVudCwgXCJwb2ludGVybW92ZVwiLCB0aGlzLl9wb2ludGVybW92ZSk7XG4gICAgICAgICAgICAgICAgdW5iaW5kKGRvY3VtZW50LCBcInBvaW50ZXJ1cFwiLCB0aGlzLl9wb2ludGVydXApO1xuICAgICAgICAgICAgICAgIHVuYmluZChkb2N1bWVudCwgXCJwb2ludGVyY2FuY2VsXCIsIHRoaXMuX3BvaW50ZXJ1cCk7XG4gICAgICAgICAgICAgICAgdW5iaW5kKGRvY3VtZW50LCBcImNvbnRleHRtZW51XCIsIHByZXZlbnREZWZhdWx0KTtcblxuICAgICAgICAgICAgICAgIHRoaXMuX3JlbGVhc2VIYW5kbGVyKGUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuICAgIH1cblxuICAgIGJpbmRUbyhlbGVtZW50KSB7XG4gICAgICAgIGlmIChlbGVtZW50ID09PSB0aGlzLl9lbGVtZW50KSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5fZWxlbWVudCkge1xuICAgICAgICAgICAgdGhpcy5fdW5iaW5kRnJvbUN1cnJlbnQoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuX2VsZW1lbnQgPSBlbGVtZW50O1xuICAgICAgICB0aGlzLl9iaW5kVG9DdXJyZW50KCk7XG4gICAgfVxuXG4gICAgX2JpbmRUb0N1cnJlbnQoKSB7XG4gICAgICAgIGNvbnN0IGVsZW1lbnQgPSB0aGlzLl9lbGVtZW50O1xuXG4gICAgICAgIGlmICh0aGlzLl91c2VQb2ludGVycygpKSB7XG4gICAgICAgICAgICBiaW5kKGVsZW1lbnQsIFwicG9pbnRlcmRvd25cIiwgdGhpcy5fcG9pbnRlcmRvd24pO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgYmluZChlbGVtZW50LCBcIm1vdXNlZG93blwiLCB0aGlzLl9tb3VzZWRvd24pO1xuXG4gICAgICAgIGlmICghdGhpcy5fbW91c2VPbmx5KSB7XG4gICAgICAgICAgICBiaW5kKGVsZW1lbnQsIFwidG91Y2hzdGFydFwiLCB0aGlzLl90b3VjaHN0YXJ0KTtcbiAgICAgICAgICAgIGJpbmQoZWxlbWVudCwgXCJ0b3VjaG1vdmVcIiwgdGhpcy5fdG91Y2htb3ZlKTtcbiAgICAgICAgICAgIGJpbmQoZWxlbWVudCwgXCJ0b3VjaGVuZFwiLCB0aGlzLl90b3VjaGVuZCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBfdW5iaW5kRnJvbUN1cnJlbnQoKSB7XG4gICAgICAgIGNvbnN0IGVsZW1lbnQgPSB0aGlzLl9lbGVtZW50O1xuXG4gICAgICAgIGlmICh0aGlzLl91c2VQb2ludGVycygpKSB7XG4gICAgICAgICAgICB1bmJpbmQoZWxlbWVudCwgXCJwb2ludGVyZG93blwiLCB0aGlzLl9wb2ludGVyZG93bik7XG4gICAgICAgICAgICB1bmJpbmQoZG9jdW1lbnQsIFwicG9pbnRlcm1vdmVcIiwgdGhpcy5fcG9pbnRlcm1vdmUpO1xuICAgICAgICAgICAgdW5iaW5kKGRvY3VtZW50LCBcInBvaW50ZXJ1cFwiLCB0aGlzLl9wb2ludGVydXApO1xuICAgICAgICAgICAgdW5iaW5kKGRvY3VtZW50LCBcImNvbnRleHRtZW51XCIsIHByZXZlbnREZWZhdWx0KTtcbiAgICAgICAgICAgIHVuYmluZChkb2N1bWVudCwgXCJwb2ludGVyY2FuY2VsXCIsIHRoaXMuX3BvaW50ZXJ1cCk7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB1bmJpbmQoZWxlbWVudCwgXCJtb3VzZWRvd25cIiwgdGhpcy5fbW91c2Vkb3duKTtcblxuICAgICAgICBpZiAoIXRoaXMuX21vdXNlT25seSkge1xuICAgICAgICAgICAgdW5iaW5kKGVsZW1lbnQsIFwidG91Y2hzdGFydFwiLCB0aGlzLl90b3VjaHN0YXJ0KTtcbiAgICAgICAgICAgIHVuYmluZChlbGVtZW50LCBcInRvdWNobW92ZVwiLCB0aGlzLl90b3VjaG1vdmUpO1xuICAgICAgICAgICAgdW5iaW5kKGVsZW1lbnQsIFwidG91Y2hlbmRcIiwgdGhpcy5fdG91Y2hlbmQpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgX3VzZVBvaW50ZXJzKCkge1xuICAgICAgICByZXR1cm4gIXRoaX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VPVVQpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuXG4gICAgICAgIHRoaXMuX3Jlc3RvcmVNb3VzZSA9ICgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuX2lnbm9yZU1vdXNlID0gZmFsc2U7XG4gICAgICAgIH07XG5cbiAgICAgICAgdGhpcy5fbW91c2Vkb3duID0gKGUpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IHsgd2hpY2ggfSA9IGU7XG5cbiAgICAgICAgICAgIGlmICgod2hpY2ggJiYgd2hpY2ggPiAxKSB8fCB0aGlzLl9pZ25vcmVNb3VzZSkge1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgYmluZCh0aGlzLmRvY3VtZW50LCBcIm1vdXNlbW92ZVwiLCB0aGlzLl9tb3VzZW1vdmUpO1xuICAgICAgICAgICAgYmluZCh0aGlzLmRvY3VtZW50LCBcIm1vdXNldXBcIiwgdGhpcy5fbW91c2V1cCk7XG4gICAgICAgICAgICB0aGlzLl9wcmVzc0hhbmRsZXIoZSk7XG4gICAgICAgIH07XG5cbiAgICAgICAgdGhpcy5fbW91c2Vtb3ZlID0gKGUpID0+IHtcbiAgICAgICAgICAgIHRoaXMuX2RyYWdIYW5kbGVyKGUpO1xuICAgICAgICB9O1xuXG4gICAgICAgIHRoaXMuX21vdXNldXAgPSAoZSkgPT4ge1xuICAgICAgICAgICAgdW5iaW5kKHRoaXMuZG9jdW1lbnQsIFwibW91c2Vtb3ZlXCIsIHRoaXMuX21vdXNlbW92ZSk7XG4gICAgICAgICAgICB1bmJpbmQodGhpcy5kb2N1bWVudCwgXCJtb3VzZXVwXCIsIHRoaXMuX21vdXNldXApO1xuICAgICAgICAgICAgdGhpcy5fcmVsZWFzZUhhbmRsZXIoZSk7XG4gICAgICAgIH07XG5cbiAgICAgICAgdGhpcy5fcG9pbnRlcmRvd24gPSAoZSkgPT4ge1xuICAgICAgICAgICAgaWYgKGUuaXNQc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GlzLmRvY3VtZW50LCBcImNvbnRleHRtZW51XCIsIHByZXZlbnREZWZhdWx0KTtcblxuICAgICAgICAgICAgICAgIHRoaXMuX3JlbGVhc2VIYW5kbGVyKGUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuICAgIH1cblxuICAgIGJpbmRUbyhlbGVtZW50KSB7XG4gICAgICAgIGlmIChlbGVtZW50ID09PSB0aGlzLl9lbGVtZW50KSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5fZWxlbWVudCkge1xuICAgICAgICAgICAgdGhpcy5fdW5iaW5kRnJvbUN1cnJlbnQoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuX2VsZW1lbnQgPSBlbGVtZW50O1xuICAgICAgICB0aGlzLl9iaW5kVG9DdXJyZW50KCk7XG4gICAgfVxuXG4gICAgX2JpbmRUb0N1cnJlbnQoKSB7XG4gICAgICAgIGNvbnN0IGVsZW1lbnQgPSB0aGlzLl9lbGVtZW50O1xuXG4gICAgICAgIGlmICh0aGlzLl91c2VQb2ludGVycygpKSB7XG4gICAgICAgICAgICBiaW5kKGVsZW1lbnQsIFwicG9pbnRlcmRvd25cIiwgdGhpcy5fcG9pbnRlcmRvd24pO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgYmluZChlbGVtZW50LCBcIm1vdXNlZG93blwiLCB0aGlzLl9tb3VzZWRvd24pO1xuXG4gICAgICAgIGlmICghdGhpcy5fbW91c2VPbmx5KSB7XG4gICAgICAgICAgICBiaW5kKGVsZW1lbnQsIFwidG91Y2hzdGFydFwiLCB0aGlzLl90b3VjaHN0YXJ0KTtcbiAgICAgICAgICAgIGJpbmQoZWxlbWVudCwgXCJ0b3VjaG1vdmVcIiwgdGhpcy5fdG91Y2htb3ZlKTtcbiAgICAgICAgICAgIGJpbmQoZWxlbWVudCwgXCJ0b3VjaGVuZFwiLCB0aGlzLl90b3VjaG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o7Ozs7OztBQU1ELFNBQVMsQ0FBQyxPQUFPLEdBQUcsU0FBUyxDQUFDLEFBR0w7OzsifQ== |
@@ -1,1 +0,1 @@ | ||
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)}}}); | ||
System.register("@telerik/kendo-draggable",[],function(p){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 i(t,n){return function(e){return n(t(e))}}function u(e,t,n){return e.addEventListener&&e.addEventListener(t,n)}function s(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)}function c(){}function d(e){return e.preventDefault()}var o=/touch/;function h(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,o=e.drag;void 0===o&&(o=c);var r=e.release;void 0===r&&(r=c);e=e.mouseOnly;void 0===e&&(e=!1),this._pressHandler=i(h,t=void 0===t?c:t),this._dragHandler=i(h,o),this._releaseHandler=i(h,r),this._ignoreMouse=!1,this._mouseOnly=e,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||(u(n.document,"mousemove",n._mousemove),u(n.document,"mouseup",n._mouseup),n._pressHandler(e))},this._mousemove=function(e){n._dragHandler(e)},this._mouseup=function(e){s(n.document,"mousemove",n._mousemove),s(n.document,"mouseup",n._mouseup),n._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(u(n.document,"pointermove",n._pointermove),u(n.document,"pointerup",n._pointerup),u(n.document,"pointercancel",n._pointerup),u(n.document,"contextmenu",d),n._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&n._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(s(n.document,"pointermove",n._pointermove),s(n.document,"pointerup",n._pointerup),s(n.document,"pointercancel",n._pointerup),s(n.document,"contextmenu",d),n._releaseHandler(e))}},n={document:{configurable:!0}};r.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},n.document.get=function(){return this._element?this._element.ownerDocument:document},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()?u(e,"pointerdown",this._pointerdown):(u(e,"mousedown",this._mousedown),this._mouseOnly||(u(e,"touchstart",this._touchstart),u(e,"touchmove",this._touchmove),u(e,"touchend",this._touchend)))},r.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return s(e,"pointerdown",this._pointerdown),s(this.document,"pointermove",this._pointermove),s(this.document,"pointerup",this._pointerup),s(this.document,"contextmenu",d),void s(this.document,"pointercancel",this._pointerup);s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend))},r.prototype._usePointers=function(){return!this._mouseOnly&&r.supportPointerEvent()},r.prototype.update=function(e){var t=e.press,n=e.drag;void 0===n&&(n=c);var o=e.release;void 0===o&&(o=c);e=e.mouseOnly;void 0===e&&(e=!1),this._pressHandler=i(h,t=void 0===t?c:t),this._dragHandler=i(h,n),this._releaseHandler=i(h,o),this._mouseOnly=e},r.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(r.prototype,n),r.default=r,t.default=r,function(e){for(var t in e)p(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)}}}); |
295
NOTICE.txt
@@ -1,4 +0,4 @@ | ||
Progress Kendo UI 2020 | ||
Progress Kendo UI for Angular 2021 | ||
Copyright © 2016-2020 Progress Software Corporation and/or one of its | ||
Copyright © 2016-2021 Progress Software Corporation and/or one of its | ||
subsidiaries or affiliates. All rights reserved. | ||
@@ -26,3 +26,3 @@ | ||
Progress Kendo UI for Angular 2020 incorporates tslib v1.9.3. Such technology | ||
Progress Kendo UI for Angular 2021 incorporates tslib v1.9.3. Such technology | ||
is subject to the following terms and conditions: Apache Software License Version 2.0. | ||
@@ -250,7 +250,69 @@ | ||
(2) MIT-Style Licenses: | ||
(2) BSD-Style Licenses: | ||
(a) Progress Kendo UI for Angular 2020 incorporates HammerJS v2.0.8. Such | ||
(a) Progress Kendo UI for Angular 2021 incorporates xlf-translate v2.0.4. Such | ||
technology is subject to the following terms and conditions: | ||
BSD 3-Clause License | ||
Copyright (c) 2017, Tsvetomir Tsonev | ||
All rights reserved. | ||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
* Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
(3) The ISC License: | ||
(a) Progress Kendo UI for Angular 2021 incorporates glob v7.1.3. Such technology | ||
is subject to the following terms and conditions: | ||
The ISC License | ||
Copyright (c) Isaac Z. Schlueter and Contributors | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR | ||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
## Glob Logo | ||
Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed | ||
under a Creative Commons Attribution-ShareAlike 4.0 International License | ||
https://creativecommons.org/licenses/by-sa/4.0/ | ||
(4) MIT-Style Licenses: | ||
(a) Progress Kendo UI for Angular 2021 incorporates HammerJS v2.0.8. Such | ||
technology is subject to the following terms and conditions: | ||
The MIT License (MIT) | ||
@@ -278,9 +340,8 @@ | ||
(b) Progress Kendo UI for Angular 2020 incorporates prosemirror-commands v1.0.7, | ||
prosemirror-dropcursor v1.0.1, proseirror-gapcursor v1.0.2, prosemirror-history | ||
v1.0.2, prosemirror-inputrules v1.0.1, prosemirror-keymap v1.0.1, | ||
prosemirror-model v1.6.1, prosemirror-schema-list v1.0.1, prosemirror-state | ||
v1.2.2, prosemirror-tables v0.7.10, prosemirror-transform v1.1.3, and | ||
prosemirror-view v1.5.2. Such technology is subject to the following terms and | ||
conditions: | ||
(b) Progress Kendo UI for Angular 2021 incorporates prosemirror-commands v1*, | ||
prosemirror-cursor v1*, prosemirror-gapcursor v1*, prosemirror-history v1*, | ||
prosemirror-inputrules v1*, prosemirror-keymap v1*, prosemirror-model v1*, | ||
prosemirror-schema-list v1*, prosemirror-state v1*, prosemirror-tables v0.7*, | ||
prosemirror-transform v1*, and prosemirror-view v1*. Such technologies are | ||
subject to the following terms and conditions: | ||
@@ -307,28 +368,190 @@ Copyright (C) 2015-2017 by Marijn Haverbeke <marijnh@gmail.com> and others | ||
(c) Progress Kendo UI for Angular 2020 incorporates jszip v3.1.5. Such | ||
(c) Progress Kendo UI for Angular 2021 incorporates cheerio v0.2.2. Such | ||
technology is subject to the following terms and conditions: | ||
The MIT License | ||
MIT License | ||
Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, António Afonso | ||
Copyright (c) 2016 Matt Mueller | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
(d) Progress Kendo UI for Angular 2020 incorporates Unicode CLDR Database v33. | ||
(d) Progress Kendo UI for Angular 2021 incorporates @types/prosemirror-commands v1*, | ||
@types/prosemirror-dropcursor v1*, @types/prosemirror-gapcursor v1*, | ||
@types/prosemirror-history v1*, @types/prosemirror-inputrules v1*, | ||
@types/prosemirror-keymap v1*, @types/prosemirror-model v1*, | ||
@types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, | ||
@types/prosemirror-tables v0.9*, @types/prosemirror-transform v1*, and | ||
@types/prosemirror-view v1*. Such technologies are subject to the following terms | ||
and conditions: | ||
This project is licensed under the MIT license. | ||
Copyrights are respective of each contributor listed at the beginning of each | ||
definition file. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
(e) Progress Kendo UI for Angular 2021 incorporates pako-esm v1.0.0. Such | ||
technology is subject to the following terms and conditions: | ||
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries | ||
or affiliates. All rights reserved. (as modified) | ||
Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
(f) Progress Kendo UI for Angular 2021 incorporates jszip-esm v1.0.0. Such | ||
technology is subject to the following terms and conditions: | ||
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries | ||
or affiliates. All rights reserved. (as modified) | ||
Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, | ||
António Afonso | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
(g) Progress Kendo UI for Angular 2021 incorporates data.task v3.1.2. Such | ||
technology is subject to the following terms and conditions: | ||
The MIT License | ||
Copyright (c) 2013-2015 Quildreen Motta | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
(h) Progress Kendo UI for Angular 2021 incorporates ramda v0.23. Such technology | ||
is subject to the following terms and conditions: | ||
The MIT License (MIT) | ||
Copyright (c) 2013-2020 Scott Sauyet and Michael Hurley | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
(i) Progress Kendo UI for Angular 2021 incorporates js-yaml v3.14.0. Such | ||
technology is subject to the following terms and conditions: | ||
(The MIT License) | ||
Copyright (C) 2011-2015 by Vitaly Puzrin | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
(5) UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE: | ||
Progress Kendo UI for Angular 2021 incorporates Unicode CLDR Database v37. | ||
Such technology is subject to the following terms and conditions: | ||
@@ -351,3 +574,3 @@ | ||
Copyright © 1991-2019 Unicode, Inc. All rights reserved. | ||
Copyright © 1991-2021 Unicode, Inc. All rights reserved. | ||
Distributed under the Terms of Use in https://www.unicode.org/copyright.html. | ||
@@ -385,4 +608,8 @@ | ||
2. Special Notices Regarding Commercially Licensed Third-Party Components | ||
incorporated in the Product: NONE | ||
incorporated in the Product: | ||
(a) Progress Kendo UI for Angular 2021 incorporates Kendo UI Licensing CLI v1.1 | ||
from Progress Software Corporation. For third-party component information, see | ||
the product’s NOTICE.txt file. | ||
NOTICE FROM PROGRESS SOFTWARE CORPORATION: Additional notices may be included in | ||
@@ -393,2 +620,2 @@ the release notes or other documentation that accompanies updates received in | ||
Updated 2/3/2020 | ||
Updated 3/2/2021 |
@@ -6,3 +6,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "2.2.0", | ||
"version": "2.2.1-dev.202104200517", | ||
"main": "dist/npm/main.js", | ||
@@ -9,0 +9,0 @@ "module": "dist/es/main.js", |
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
82863
556
4
70
2