@progress/kendo-angular-common 3.0.0-next.202110121328 → 3.0.0-next.202204010854
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-common.umd.js +1 -1
- package/esm2015/draggable/draggable.directive.js +3 -3
- package/esm2015/draggable/draggable.module.js +4 -4
- package/esm2015/events/events-outside-angular.directive.js +3 -4
- package/esm2015/events/events.module.js +4 -4
- package/esm2015/resize-sensor/compat.service.js +1 -1
- package/esm2015/resize-sensor/resize-batch.service.js +3 -4
- package/esm2015/resize-sensor/resize-sensor.component.js +3 -3
- package/esm2015/resize-sensor/resize-sensor.module.js +4 -4
- package/esm2015/utils/guid.js +2 -2
- package/fesm2015/kendo-angular-common.js +27 -29
- package/package.json +3 -2
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@telerik/kendo-draggable"),require("@angular/common"),require("rxjs/operators"),require("rxjs")):"function"==typeof define&&define.amd?define("KendoAngularCommon",["exports","@angular/core","@telerik/kendo-draggable","@angular/common","rxjs/operators","rxjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularCommon={},e.ng.core,e.Draggable,e.ng.common,e.rxjs.operators,e.rxjs)}(this,function(e,o,t,n,s,r){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(n){if(n&&n.__esModule)return n;var r=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),r.default=n,Object.freeze(r)}function c(){return"undefined"!=typeof document}function u(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)}var p=a(o),l=i(t),h=(d.prototype.ngOnInit=function(){this.toggleDraggable()},d.prototype.ngOnChanges=function(e){u("enableDrag",e)&&this.toggleDraggable()},d.prototype.ngOnDestroy=function(){this.destroyDraggable()},d.prototype.toggleDraggable=function(){var t=this;c()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new l.default({drag:function(e){return t.kendoDrag.next(e)},press:function(e){return t.kendoPress.next(e)},release:function(e){return t.kendoRelease.next(e)}}),this.ngZone.runOutsideAngular(function(){return t.draggable.bindTo(t.element.nativeElement)})))},d.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},d);function d(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new o.EventEmitter,this.kendoDrag=new o.EventEmitter,this.kendoRelease=new o.EventEmitter}h.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:h,deps:[{token:p.ElementRef},{token:p.NgZone}],target:p.ɵɵFactoryTarget.Directive}),h.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.9",type:h,selector:"[kendoDraggable]",inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},usesOnChanges:!0,ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:h,decorators:[{type:o.Directive,args:[{selector:"[kendoDraggable]"}]}],ctorParameters:function(){return[{type:p.ElementRef},{type:p.NgZone}]},propDecorators:{enableDrag:[{type:o.Input}],kendoPress:[{type:o.Output}],kendoDrag:[{type:o.Output}],kendoRelease:[{type:o.Output}]}});var g=function(){};g.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:g,deps:[],target:p.ɵɵFactoryTarget.NgModule}),g.ɵmod=p.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:g,declarations:[h],imports:[n.CommonModule],exports:[h]}),g.ɵinj=p.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:g,imports:[[n.CommonModule]]}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:g,decorators:[{type:o.NgModule,args:[{declarations:[h],exports:[h],imports:[n.CommonModule]}]}]});function y(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function f(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=f(e,t);if(r)return r}e=e.nextSibling}}}function m(e,t){if(void 0===t&&(t=!0),!K(e))return!1;var n=e.getAttribute("tabIndex");return(!t||k(e))&&"-1"!==n}function v(e){return String(e).trim().split(" ")}function b(e,t){var n=v(t);return Boolean(v(e.className).find(function(e){return 0<=n.indexOf(e)}))}var D=/^(?:a|input|select|option|textarea|button|object)$/i,K=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&D.test(t)||n},k=function(e){var t=e.getBoundingClientRect(),n=0<t.width&&0<t.height,t=0!==t.x&&0!==t.y;return(n||t)&&"hidden"!==window.getComputedStyle(e).visibility},E={};var C=(z.prototype.ngOnInit=function(){var t,n=this;this.element&&this.element.nativeElement&&(t=this.events,this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var e in t)t.hasOwnProperty(e)&&n.subscriptions.push(n.renderer.listen(n.element.nativeElement,e,n.scope?t[e].bind(n.scope):t[e]))}))},z.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},z);function z(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}C.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:C,deps:[{token:p.ElementRef},{token:p.NgZone},{token:p.Renderer2}],target:p.ɵɵFactoryTarget.Directive}),C.ɵdir=p.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.9",type:C,selector:"[kendoEventsOutsideAngular]",inputs:{events:["kendoEventsOutsideAngular","events"],scope:"scope"},ngImport:p}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:C,decorators:[{type:o.Directive,args:[{selector:"[kendoEventsOutsideAngular]"}]}],ctorParameters:function(){return[{type:p.ElementRef},{type:p.NgZone},{type:p.Renderer2}]},propDecorators:{events:[{type:o.Input,args:["kendoEventsOutsideAngular"]}],scope:[{type:o.Input}]}});var O=function(){};O.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:O,deps:[],target:p.ɵɵFactoryTarget.NgModule}),O.ɵmod=p.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:O,declarations:[C],exports:[C]}),O.ɵinj=p.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:O}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:O,decorators:[{type:o.NgModule,args:[{declarations:[C],exports:[C]}]}]});var S=function(e,t){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function I(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var x=(w.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},w.prototype.checkChanges=function(){c()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},w.prototype.destroy=function(){this.resizeBatchService.cancel(this)},w.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,e=e.height;if(!(t===this.lastWidth&&e===this.lastHeight))return this.lastWidth=t,this.lastHeight=e,this.acceptedSize=!1,this.resize.emit(),!0}},w.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},w.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},w);function w(e){this.resizeBatchService=e,this.resize=new o.EventEmitter,this.acceptedSize=!1,this.state=0}function V(e){var t=document.createElement("div");return t.style.cssText=e,t}var A,j="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",N="position: absolute; left: 0; top: 0; transition: 0s;",P=(I(F,A=x),F.prototype.checkChanges=function(){2!==this.state?A.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},F.prototype.destroy=function(){var e;A.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand&&((e=this.element.nativeElement).removeChild(this.expand),e.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null)},F.prototype.checkSize=function(){if(A.prototype.checkSize.call(this))return this.reset(),!0},F.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},F.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=j,e.setAttribute("dir","ltr"),this.expand=V(j),this.expandChild=V(N),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=V(j);var t=V("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},F.prototype.reset=function(){var e=this.expandChild;e.style.width=1e5+"px",e.style.height=1e5+"px";e=this.expand;e.scrollLeft=1e5,e.scrollTop=1e5;e=this.shrink;e.scrollLeft=1e5,e.scrollTop=1e5},F.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.subscription=r.merge(r.fromEvent(e.shrink,"scroll"),r.fromEvent(e.expand,"scroll")).subscribe(function(){e.checkSize()})})},F);function F(e,t,n){e=A.call(this,e)||this;return e.element=t,e.ngZone=n,e}var M,R="undefined"!=typeof ResizeObserver,T=(I(Z,M=x),Z.supported=function(){return R},Z.prototype.destroy=function(){M.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},Z.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(function(){e.resizeObserver=new ResizeObserver(function(){e.checkSize()}),e.resizeObserver.observe(e.parentElement)})},Z);function Z(e,t,n){e=M.call(this,e)||this;return e.element=t,e.ngZone=n,e}var B=(L.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular(function(){n.subscription=r.from(n.resolvedPromise).subscribe(n.flush)})},L.prototype.isScheduled=function(t){return Boolean(this.scheduled.find(function(e){return e.instance===t}))},L.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,r=0;r<n;r++)if(t[r].instance===e)return t.splice(r,1),void(t.length||this.unsubscribe())},L.prototype.ngOnDestroy=function(){this.unsubscribe()},L.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},L.prototype.flush=function(){this.scheduled.forEach(function(e){e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()},L);function L(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}B.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:B,deps:[{token:p.NgZone}],target:p.ɵɵFactoryTarget.Injectable}),B.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:B}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:B,decorators:[{type:o.Injectable}],ctorParameters:function(){return[{type:p.NgZone}]}});var _=(W.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},W.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},W.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},W);function W(e,t,n){var r=this;this.rateLimit=10,this.resize=new o.EventEmitter;var i=T.supported()?T:P;this.resizeService=new i(e,t,n);n=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(s.auditTime(n)).subscribe(function(){r.resizeService.acceptedSize||r.resize.emit()})}_.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:_,deps:[{token:B},{token:p.ElementRef},{token:p.NgZone}],target:p.ɵɵFactoryTarget.Component}),_.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.9",type:_,selector:"kendo-resize-sensor",inputs:{rateLimit:"rateLimit"},outputs:{resize:"resize"},ngImport:p,template:"",isInline:!0}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:_,decorators:[{type:o.Component,args:[{selector:"kendo-resize-sensor",template:""}]}],ctorParameters:function(){return[{type:B},{type:p.ElementRef},{type:p.NgZone}]},propDecorators:{rateLimit:[{type:o.Input}],resize:[{type:o.Output}]}});t=[_],n=function(){};n.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:n,deps:[],target:p.ɵɵFactoryTarget.NgModule}),n.ɵmod=p.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:n,declarations:[_],exports:[_]}),n.ɵinj=p.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:n,providers:[B]}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.9",ngImport:p,type:n,decorators:[{type:o.NgModule,args:[{declarations:[t],exports:[t],providers:[B]}]}]});x=function(){};e.Keys=void 0,(t=e.Keys||(e.Keys={}))[t.Alt=18]="Alt",t[t.ArrowDown=40]="ArrowDown",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowUp=38]="ArrowUp",t[t.Backspace=8]="Backspace",t[t.Control=17]="Control",t[t.Delete=46]="Delete",t[t.Digit0=48]="Digit0",t[t.Digit1=49]="Digit1",t[t.Digit2=50]="Digit2",t[t.Digit3=51]="Digit3",t[t.Digit4=52]="Digit4",t[t.Digit5=53]="Digit5",t[t.Digit6=54]="Digit6",t[t.Digit7=55]="Digit7",t[t.Digit8=56]="Digit8",t[t.Digit9=57]="Digit9",t[t.End=35]="End",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F10=121]="F10",t[t.Home=36]="Home",t[t.Insert=45]="Insert",t[t.KeyA=65]="KeyA",t[t.KeyB=66]="KeyB",t[t.KeyC=67]="KeyC",t[t.KeyD=68]="KeyD",t[t.KeyE=69]="KeyE",t[t.KeyF=70]="KeyF",t[t.KeyG=71]="KeyG",t[t.KeyH=72]="KeyH",t[t.KeyI=73]="KeyI",t[t.KeyJ=74]="KeyJ",t[t.KeyK=75]="KeyK",t[t.KeyL=76]="KeyL",t[t.KeyM=77]="KeyM",t[t.KeyN=78]="KeyN",t[t.KeyO=79]="KeyO",t[t.KeyP=80]="KeyP",t[t.KeyQ=81]="KeyQ",t[t.KeyR=82]="KeyR",t[t.KeyS=83]="KeyS",t[t.KeyT=84]="KeyT",t[t.KeyU=85]="KeyU",t[t.KeyV=86]="KeyV",t[t.KeyW=87]="KeyW",t[t.KeyX=88]="KeyX",t[t.KeyY=89]="KeyY",t[t.KeyZ=90]="KeyZ",t[t.NumpadDecimal=110]="NumpadDecimal",t[t.PageDown=34]="PageDown",t[t.PageUp=33]="PageUp",t[t.Shift=16]="Shift",t[t.Space=32]="Space",t[t.Tab=9]="Tab";H.prototype.preventDefault=function(){this.prevented=!0},H.prototype.isDefaultPrevented=function(){return this.prevented},t=H;function H(){this.prevented=!1}e.DraggableDirective=h,e.DraggableModule=g,e.EventsModule=O,e.EventsOutsideAngularDirective=C,e.KendoInput=x,e.PreventableEvent=t,e.ResizeBatchService=B,e.ResizeCompatService=P,e.ResizeObserverService=T,e.ResizeSensorComponent=_,e.ResizeSensorModule=n,e.anyChanged=function(e,t,n){return void 0===n&&(n=!0),e.some(function(e){return u(e,t,n)})},e.closest=y,e.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},e.contains=function(t,n,e){if(void 0===e&&(e=!1),!y(n,function(e){return e===t}))return!1;var r=y(n,function(e){return e===n});return r&&(e||r!==t)},e.findElement=f,e.findFocusable=function(e,t){return void 0===t&&(t=!0),f(e,function(e){return m(e,t)})},e.findFocusableChild=function(e,t){return void 0===t&&(t=!0),f(e,function(e){return m(e,t)},!1)},e.guid=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},e.hasClasses=b,e.hasObservers=function(e){return e&&0<e.observers.length},e.isChanged=u,e.isDocumentAvailable=c,e.isFocusable=K,e.isFocusableWithTabKey=m,e.isVisible=k,e.matchesClasses=function(t){return function(e){return b(e,t)}},e.matchesNodeName=function(t){return E[t]||(E[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),E[t]},e.rtlScrollPosition=function(e,t,n){var r=e;return n<0?r=-e:0<n&&(r=t.scrollWidth-t.offsetWidth-e),r},Object.defineProperty(e,"__esModule",{value:!0})});
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@telerik/kendo-draggable"),require("@angular/common"),require("rxjs/operators"),require("rxjs")):"function"==typeof define&&define.amd?define("KendoAngularCommon",["exports","@angular/core","@telerik/kendo-draggable","@angular/common","rxjs/operators","rxjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularCommon={},e.ng.core,e.Draggable,e.ng.common,e.rxjs.operators,e.rxjs)}(this,function(e,o,t,n,F,r){"use strict";function M(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function R(n){if(n&&n.__esModule)return n;var r=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),r.default=n,Object.freeze(r)}function i(){return"undefined"!=typeof document}function s(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)}var a=R(o),T=M(t),t=(c.prototype.ngOnInit=function(){this.toggleDraggable()},c.prototype.ngOnChanges=function(e){s("enableDrag",e)&&this.toggleDraggable()},c.prototype.ngOnDestroy=function(){this.destroyDraggable()},c.prototype.toggleDraggable=function(){var t=this;i()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new T.default({drag:function(e){return t.kendoDrag.next(e)},press:function(e){return t.kendoPress.next(e)},release:function(e){return t.kendoRelease.next(e)}}),this.ngZone.runOutsideAngular(function(){return t.draggable.bindTo(t.element.nativeElement)})))},c.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},c);function c(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new o.EventEmitter,this.kendoDrag=new o.EventEmitter,this.kendoRelease=new o.EventEmitter}t.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:t,deps:[{token:a.ElementRef},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),t.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"[kendoDraggable]",inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},usesOnChanges:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:t,decorators:[{type:o.Directive,args:[{selector:"[kendoDraggable]"}]}],ctorParameters:function(){return[{type:a.ElementRef},{type:a.NgZone}]},propDecorators:{enableDrag:[{type:o.Input}],kendoPress:[{type:o.Output}],kendoDrag:[{type:o.Output}],kendoRelease:[{type:o.Output}]}});function u(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function p(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=p(e,t);if(r)return r}e=e.nextSibling}}}function l(e,t){if(void 0===t&&(t=!0),!y(e))return!1;var n=e.getAttribute("tabIndex");return(!t||f(e))&&"-1"!==n}function h(e){return String(e).trim().split(" ")}function d(e,t){var n=h(t);return Boolean(h(e.className).find(function(e){return 0<=n.indexOf(e)}))}var g=function(){},Z=(g.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:g,deps:[],target:a.ɵɵFactoryTarget.NgModule}),g.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:g,declarations:[t],imports:[n.CommonModule],exports:[t]}),g.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:g,imports:[[n.CommonModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:g,decorators:[{type:o.NgModule,args:[{declarations:[t],exports:[t],imports:[n.CommonModule]}]}]}),/^(?:a|input|select|option|textarea|button|object)$/i),y=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&Z.test(t)||n},f=function(e){var t=e.getBoundingClientRect(),n=0<t.width&&0<t.height,t=0!==t.x&&0!==t.y;return(n||t)&&"hidden"!==window.getComputedStyle(e).visibility},m={};v.prototype.ngOnInit=function(){var t,n=this;this.element&&this.element.nativeElement&&(t=this.events,this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var e in t)t.hasOwnProperty(e)&&n.subscriptions.push(n.renderer.listen(n.element.nativeElement,e,n.scope?t[e].bind(n.scope):t[e]))}))},v.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}};n=v;function v(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}n.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:n,deps:[{token:a.ElementRef},{token:a.NgZone},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Directive}),n.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:n,selector:"[kendoEventsOutsideAngular]",inputs:{events:["kendoEventsOutsideAngular","events"],scope:"scope"},ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:n,decorators:[{type:o.Directive,args:[{selector:"[kendoEventsOutsideAngular]"}]}],ctorParameters:function(){return[{type:a.ElementRef},{type:a.NgZone},{type:a.Renderer2}]},propDecorators:{events:[{type:o.Input,args:["kendoEventsOutsideAngular"]}],scope:[{type:o.Input}]}});var b=function(){},D=(b.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,deps:[],target:a.ɵɵFactoryTarget.NgModule}),b.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,declarations:[n],exports:[n]}),b.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,decorators:[{type:o.NgModule,args:[{declarations:[n],exports:[n]}]}]}),function(e,t){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)});function B(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;k.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},k.prototype.checkChanges=function(){i()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},k.prototype.destroy=function(){this.resizeBatchService.cancel(this)},k.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,e=e.height,n=t===this.lastWidth&&e===this.lastHeight;if(!n)return this.lastWidth=t,this.lastHeight=e,this.acceptedSize=!1,this.resize.emit(),!0}},k.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},k.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}};var K=k;function k(e){this.resizeBatchService=e,this.resize=new o.EventEmitter,this.acceptedSize=!1,this.state=0}function E(e){var t=document.createElement("div");return t.style.cssText=e,t}var C,z="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",L="position: absolute; left: 0; top: 0; transition: 0s;",_=(B(O,C=K),O.prototype.checkChanges=function(){2===this.state?this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize):C.prototype.checkChanges.call(this)},O.prototype.destroy=function(){var e;C.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand&&((e=this.element.nativeElement).removeChild(this.expand),e.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null)},O.prototype.checkSize=function(){if(C.prototype.checkSize.call(this))return this.reset(),!0},O.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},O.prototype.render=function(){var e=this.element.nativeElement,t=(e.style.cssText=z,e.setAttribute("dir","ltr"),this.expand=E(z),this.expandChild=E(L),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=E(z),E("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;"));this.shrink.appendChild(t),e.appendChild(this.shrink)},O.prototype.reset=function(){var e=this.expandChild,e=(e.style.width=1e5+"px",e.style.height=1e5+"px",this.expand),e=(e.scrollLeft=1e5,e.scrollTop=1e5,this.shrink);e.scrollLeft=1e5,e.scrollTop=1e5},O.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.subscription=r.merge(r.fromEvent(e.shrink,"scroll"),r.fromEvent(e.expand,"scroll")).subscribe(function(){e.checkSize()})})},O);function O(e,t,n){e=C.call(this,e)||this;return e.element=t,e.ngZone=n,e}var S,W="undefined"!=typeof ResizeObserver,I=(B(x,S=K),x.supported=function(){return W},x.prototype.destroy=function(){S.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},x.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(function(){e.resizeObserver=new ResizeObserver(function(){e.checkSize()}),e.resizeObserver.observe(e.parentElement)})},x);function x(e,t,n){e=S.call(this,e)||this;return e.element=t,e.ngZone=n,e}V.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular(function(){n.subscription=r.from(n.resolvedPromise).subscribe(n.flush)})},V.prototype.isScheduled=function(t){return Boolean(this.scheduled.find(function(e){return e.instance===t}))},V.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,r=0;r<n;r++)if(t[r].instance===e)return t.splice(r,1),void(t.length||this.unsubscribe())},V.prototype.ngOnDestroy=function(){this.unsubscribe()},V.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},V.prototype.flush=function(){this.scheduled.forEach(function(e){e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()};var w=V;function V(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}w.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,deps:[{token:a.NgZone}],target:a.ɵɵFactoryTarget.Injectable}),w.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,decorators:[{type:o.Injectable}],ctorParameters:function(){return[{type:a.NgZone}]}});A.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},A.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},A.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)};K=A;function A(e,t,n){var r=this,i=(this.rateLimit=10,this.resize=new o.EventEmitter,I.supported()?I:_),i=(this.resizeService=new i(e,t,n),1e3/(this.rateLimit||10));this.subscription=this.resizeService.resize.pipe(F.auditTime(i)).subscribe(function(){r.resizeService.acceptedSize||r.resize.emit()})}K.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:K,deps:[{token:w},{token:a.ElementRef},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Component}),K.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:K,selector:"kendo-resize-sensor",inputs:{rateLimit:"rateLimit"},outputs:{resize:"resize"},ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:K,decorators:[{type:o.Component,args:[{selector:"kendo-resize-sensor",template:""}]}],ctorParameters:function(){return[{type:w},{type:a.ElementRef},{type:a.NgZone}]},propDecorators:{rateLimit:[{type:o.Input}],resize:[{type:o.Output}]}});function H(){}var j=[K],N=function(){},j=(N.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:N,deps:[],target:a.ɵɵFactoryTarget.NgModule}),N.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:N,declarations:[K],exports:[K]}),N.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:N,providers:[w]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:N,decorators:[{type:o.NgModule,args:[{declarations:[j],exports:[j],providers:[w]}]}]}),e.Keys=void 0,(j=e.Keys||(e.Keys={}))[j.Alt=18]="Alt",j[j.ArrowDown=40]="ArrowDown",j[j.ArrowLeft=37]="ArrowLeft",j[j.ArrowRight=39]="ArrowRight",j[j.ArrowUp=38]="ArrowUp",j[j.Backspace=8]="Backspace",j[j.Control=17]="Control",j[j.Delete=46]="Delete",j[j.Digit0=48]="Digit0",j[j.Digit1=49]="Digit1",j[j.Digit2=50]="Digit2",j[j.Digit3=51]="Digit3",j[j.Digit4=52]="Digit4",j[j.Digit5=53]="Digit5",j[j.Digit6=54]="Digit6",j[j.Digit7=55]="Digit7",j[j.Digit8=56]="Digit8",j[j.Digit9=57]="Digit9",j[j.End=35]="End",j[j.Enter=13]="Enter",j[j.Escape=27]="Escape",j[j.F1=112]="F1",j[j.F2=113]="F2",j[j.F10=121]="F10",j[j.Home=36]="Home",j[j.Insert=45]="Insert",j[j.KeyA=65]="KeyA",j[j.KeyB=66]="KeyB",j[j.KeyC=67]="KeyC",j[j.KeyD=68]="KeyD",j[j.KeyE=69]="KeyE",j[j.KeyF=70]="KeyF",j[j.KeyG=71]="KeyG",j[j.KeyH=72]="KeyH",j[j.KeyI=73]="KeyI",j[j.KeyJ=74]="KeyJ",j[j.KeyK=75]="KeyK",j[j.KeyL=76]="KeyL",j[j.KeyM=77]="KeyM",j[j.KeyN=78]="KeyN",j[j.KeyO=79]="KeyO",j[j.KeyP=80]="KeyP",j[j.KeyQ=81]="KeyQ",j[j.KeyR=82]="KeyR",j[j.KeyS=83]="KeyS",j[j.KeyT=84]="KeyT",j[j.KeyU=85]="KeyU",j[j.KeyV=86]="KeyV",j[j.KeyW=87]="KeyW",j[j.KeyX=88]="KeyX",j[j.KeyY=89]="KeyY",j[j.KeyZ=90]="KeyZ",j[j.NumpadDecimal=110]="NumpadDecimal",j[j.PageDown=34]="PageDown",j[j.PageUp=33]="PageUp",j[j.Shift=16]="Shift",j[j.Space=32]="Space",j[j.Tab=9]="Tab",P.prototype.preventDefault=function(){this.prevented=!0},P.prototype.isDefaultPrevented=function(){return this.prevented},P);function P(){this.prevented=!1}e.DraggableDirective=t,e.DraggableModule=g,e.EventsModule=b,e.EventsOutsideAngularDirective=n,e.KendoInput=H,e.PreventableEvent=j,e.ResizeBatchService=w,e.ResizeCompatService=_,e.ResizeObserverService=I,e.ResizeSensorComponent=K,e.ResizeSensorModule=N,e.anyChanged=function(e,t,n){return void 0===n&&(n=!0),e.some(function(e){return s(e,t,n)})},e.closest=u,e.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},e.contains=function(t,n,e){if(void 0===e&&(e=!1),!u(n,function(e){return e===t}))return!1;var r=u(n,function(e){return e===n});return r&&(e||r!==t)},e.findElement=p,e.findFocusable=function(e,t){return void 0===t&&(t=!0),p(e,function(e){return l(e,t)})},e.findFocusableChild=function(e,t){return void 0===t&&(t=!0),p(e,function(e){return l(e,t)},!1)},e.guid=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},e.hasClasses=d,e.hasObservers=function(e){return e&&0<e.observers.length},e.isChanged=s,e.isDocumentAvailable=i,e.isFocusable=y,e.isFocusableWithTabKey=l,e.isVisible=f,e.matchesClasses=function(t){return function(e){return d(e,t)}},e.matchesNodeName=function(t){return m[t]||(m[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),m[t]},e.rtlScrollPosition=function(e,t,n){var r=e;return n<0?r=-e:0<n&&(r=t.scrollWidth-t.offsetWidth-e),r},Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -46,9 +46,9 @@ export class DraggableDirective {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
50
|
-
DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
49
|
+
DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
50
|
+
DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DraggableDirective, selector: "[kendoDraggable]", inputs: { enableDrag: "enableDrag" }, outputs: { kendoPress: "kendoPress", kendoDrag: "kendoDrag", kendoRelease: "kendoRelease" }, usesOnChanges: true, ngImport: i0 });
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableDirective, decorators: [{
|
|
52
52
|
type: Directive,
|
|
53
53
|
args: [{
|
|
54
54
|
selector: '[kendoDraggable]'
|
|
@@ -11,10 +11,10 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
*/
|
|
12
12
|
export class DraggableModule {
|
|
13
13
|
}
|
|
14
|
-
DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
15
|
-
DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
16
|
-
DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14
|
+
DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
15
|
+
DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, declarations: [DraggableDirective], imports: [CommonModule], exports: [DraggableDirective] });
|
|
16
|
+
DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, imports: [[CommonModule]] });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, decorators: [{
|
|
18
18
|
type: NgModule,
|
|
19
19
|
args: [{
|
|
20
20
|
declarations: [DraggableDirective],
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Directive, Input } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
/* tslint:disable:no-input-rename */
|
|
8
7
|
/**
|
|
9
8
|
* @hidden
|
|
10
9
|
*/
|
|
@@ -38,9 +37,9 @@ export class EventsOutsideAngularDirective {
|
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
|
-
EventsOutsideAngularDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
42
|
-
EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
40
|
+
EventsOutsideAngularDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsOutsideAngularDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
41
|
+
EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: { events: ["kendoEventsOutsideAngular", "events"], scope: "scope" }, ngImport: i0 });
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsOutsideAngularDirective, decorators: [{
|
|
44
43
|
type: Directive,
|
|
45
44
|
args: [{
|
|
46
45
|
selector: '[kendoEventsOutsideAngular]'
|
|
@@ -10,10 +10,10 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export class EventsModule {
|
|
12
12
|
}
|
|
13
|
-
EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14
|
-
EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
15
|
-
EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13
|
+
EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14
|
+
EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, declarations: [EventsOutsideAngularDirective], exports: [EventsOutsideAngularDirective] });
|
|
15
|
+
EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, decorators: [{
|
|
17
17
|
type: NgModule,
|
|
18
18
|
args: [{
|
|
19
19
|
declarations: [EventsOutsideAngularDirective],
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
//
|
|
5
|
+
// eslint-disable import/no-deprecated
|
|
6
6
|
import { ResizeService } from './resize.service';
|
|
7
7
|
import { fromEvent, merge } from 'rxjs';
|
|
8
8
|
const div = style => {
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { Injectable } from '@angular/core';
|
|
6
6
|
import { from as fromPromise } from 'rxjs';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
/* tslint:disable:align */
|
|
9
8
|
/**
|
|
10
9
|
* @hidden
|
|
11
10
|
*/
|
|
@@ -58,8 +57,8 @@ export class ResizeBatchService {
|
|
|
58
57
|
this.unsubscribe();
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
|
-
ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
62
|
-
ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
60
|
+
ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
61
|
+
ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService });
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService, decorators: [{
|
|
64
63
|
type: Injectable
|
|
65
64
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
@@ -52,9 +52,9 @@ export class ResizeSensorComponent {
|
|
|
52
52
|
this.resizeService.acceptSize(size);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
56
|
-
ResizeSensorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
55
|
+
ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorComponent, deps: [{ token: i1.ResizeBatchService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
+
ResizeSensorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: { rateLimit: "rateLimit" }, outputs: { resize: "resize" }, ngImport: i0, template: '', isInline: true });
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorComponent, decorators: [{
|
|
58
58
|
type: Component,
|
|
59
59
|
args: [{
|
|
60
60
|
selector: 'kendo-resize-sensor',
|
|
@@ -12,10 +12,10 @@ const COMPONENT_DIRECTIVES = [ResizeSensorComponent];
|
|
|
12
12
|
*/
|
|
13
13
|
export class ResizeSensorModule {
|
|
14
14
|
}
|
|
15
|
-
ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
16
|
-
ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
17
|
-
ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
15
|
+
ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16
|
+
ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, declarations: [ResizeSensorComponent], exports: [ResizeSensorComponent] });
|
|
17
|
+
ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, providers: [ResizeBatchService] });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, decorators: [{
|
|
19
19
|
type: NgModule,
|
|
20
20
|
args: [{
|
|
21
21
|
declarations: [COMPONENT_DIRECTIVES],
|
package/esm2015/utils/guid.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
export const guid = () => {
|
|
6
6
|
let id = "";
|
|
7
7
|
for (let i = 0; i < 32; i++) {
|
|
8
|
-
const random = Math.random() * 16 | 0; //
|
|
8
|
+
const random = Math.random() * 16 | 0; // eslint-disable-line no-bitwise
|
|
9
9
|
if (i === 8 || i === 12 || i === 16 || i === 20) {
|
|
10
10
|
id += "-";
|
|
11
11
|
}
|
|
12
|
-
//
|
|
12
|
+
// eslint-disable-next-line no-bitwise
|
|
13
13
|
id += (i === 12 ? 4 : (i === 16 ? (random & 3 | 8) : random)).toString(16);
|
|
14
14
|
}
|
|
15
15
|
return id;
|
|
@@ -22,11 +22,11 @@ const hasObservers = (emitter) => emitter && emitter.observers.length > 0;
|
|
|
22
22
|
const guid = () => {
|
|
23
23
|
let id = "";
|
|
24
24
|
for (let i = 0; i < 32; i++) {
|
|
25
|
-
const random = Math.random() * 16 | 0; //
|
|
25
|
+
const random = Math.random() * 16 | 0; // eslint-disable-line no-bitwise
|
|
26
26
|
if (i === 8 || i === 12 || i === 16 || i === 20) {
|
|
27
27
|
id += "-";
|
|
28
28
|
}
|
|
29
|
-
//
|
|
29
|
+
// eslint-disable-next-line no-bitwise
|
|
30
30
|
id += (i === 12 ? 4 : (i === 16 ? (random & 3 | 8) : random)).toString(16);
|
|
31
31
|
}
|
|
32
32
|
return id;
|
|
@@ -72,9 +72,9 @@ class DraggableDirective {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
76
|
-
DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
75
|
+
DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
76
|
+
DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DraggableDirective, selector: "[kendoDraggable]", inputs: { enableDrag: "enableDrag" }, outputs: { kendoPress: "kendoPress", kendoDrag: "kendoDrag", kendoRelease: "kendoRelease" }, usesOnChanges: true, ngImport: i0 });
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableDirective, decorators: [{
|
|
78
78
|
type: Directive,
|
|
79
79
|
args: [{
|
|
80
80
|
selector: '[kendoDraggable]'
|
|
@@ -94,10 +94,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.9", ngImpor
|
|
|
94
94
|
*/
|
|
95
95
|
class DraggableModule {
|
|
96
96
|
}
|
|
97
|
-
DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
98
|
-
DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
99
|
-
DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
97
|
+
DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
98
|
+
DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, declarations: [DraggableDirective], imports: [CommonModule], exports: [DraggableDirective] });
|
|
99
|
+
DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, imports: [[CommonModule]] });
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, decorators: [{
|
|
101
101
|
type: NgModule,
|
|
102
102
|
args: [{
|
|
103
103
|
declarations: [DraggableDirective],
|
|
@@ -217,7 +217,6 @@ function rtlScrollPosition(position, element, initial) {
|
|
|
217
217
|
return result;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
/* tslint:disable:no-input-rename */
|
|
221
220
|
/**
|
|
222
221
|
* @hidden
|
|
223
222
|
*/
|
|
@@ -251,9 +250,9 @@ class EventsOutsideAngularDirective {
|
|
|
251
250
|
}
|
|
252
251
|
}
|
|
253
252
|
}
|
|
254
|
-
EventsOutsideAngularDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
255
|
-
EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
253
|
+
EventsOutsideAngularDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsOutsideAngularDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
254
|
+
EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: { events: ["kendoEventsOutsideAngular", "events"], scope: "scope" }, ngImport: i0 });
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsOutsideAngularDirective, decorators: [{
|
|
257
256
|
type: Directive,
|
|
258
257
|
args: [{
|
|
259
258
|
selector: '[kendoEventsOutsideAngular]'
|
|
@@ -270,10 +269,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.9", ngImpor
|
|
|
270
269
|
*/
|
|
271
270
|
class EventsModule {
|
|
272
271
|
}
|
|
273
|
-
EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
274
|
-
EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
275
|
-
EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
272
|
+
EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
273
|
+
EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, declarations: [EventsOutsideAngularDirective], exports: [EventsOutsideAngularDirective] });
|
|
274
|
+
EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule });
|
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, decorators: [{
|
|
277
276
|
type: NgModule,
|
|
278
277
|
args: [{
|
|
279
278
|
declarations: [EventsOutsideAngularDirective],
|
|
@@ -337,7 +336,7 @@ class ResizeService {
|
|
|
337
336
|
}
|
|
338
337
|
}
|
|
339
338
|
|
|
340
|
-
//
|
|
339
|
+
// eslint-disable import/no-deprecated
|
|
341
340
|
const div = style => {
|
|
342
341
|
const el = document.createElement('div');
|
|
343
342
|
el.style.cssText = style;
|
|
@@ -461,7 +460,6 @@ class ResizeObserverService extends ResizeService {
|
|
|
461
460
|
}
|
|
462
461
|
}
|
|
463
462
|
|
|
464
|
-
/* tslint:disable:align */
|
|
465
463
|
/**
|
|
466
464
|
* @hidden
|
|
467
465
|
*/
|
|
@@ -514,9 +512,9 @@ class ResizeBatchService {
|
|
|
514
512
|
this.unsubscribe();
|
|
515
513
|
}
|
|
516
514
|
}
|
|
517
|
-
ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
518
|
-
ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
515
|
+
ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
516
|
+
ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService });
|
|
517
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService, decorators: [{
|
|
520
518
|
type: Injectable
|
|
521
519
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
522
520
|
|
|
@@ -564,9 +562,9 @@ class ResizeSensorComponent {
|
|
|
564
562
|
this.resizeService.acceptSize(size);
|
|
565
563
|
}
|
|
566
564
|
}
|
|
567
|
-
ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
568
|
-
ResizeSensorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
569
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
565
|
+
ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorComponent, deps: [{ token: ResizeBatchService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
566
|
+
ResizeSensorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: { rateLimit: "rateLimit" }, outputs: { resize: "resize" }, ngImport: i0, template: '', isInline: true });
|
|
567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorComponent, decorators: [{
|
|
570
568
|
type: Component,
|
|
571
569
|
args: [{
|
|
572
570
|
selector: 'kendo-resize-sensor',
|
|
@@ -584,10 +582,10 @@ const COMPONENT_DIRECTIVES = [ResizeSensorComponent];
|
|
|
584
582
|
*/
|
|
585
583
|
class ResizeSensorModule {
|
|
586
584
|
}
|
|
587
|
-
ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
588
|
-
ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
589
|
-
ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
585
|
+
ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
586
|
+
ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, declarations: [ResizeSensorComponent], exports: [ResizeSensorComponent] });
|
|
587
|
+
ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, providers: [ResizeBatchService] });
|
|
588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, decorators: [{
|
|
591
589
|
type: NgModule,
|
|
592
590
|
args: [{
|
|
593
591
|
declarations: [COMPONENT_DIRECTIVES],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-common",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.202204010854",
|
|
4
4
|
"description": "Kendo UI for Angular - Utility Package",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@telerik/kendo-draggable": "^2.0.0",
|
|
22
|
-
"tslib": "^2.3.1"
|
|
22
|
+
"tslib": "^2.3.1",
|
|
23
|
+
"@progress/kendo-schematics": "next"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {
|
|
25
26
|
"@angular/animations": "^12.0.0 || ^13.0.0",
|