@progress/kendo-angular-common
Advanced tools
Comparing version 1.1.0-dev.201908081441 to 1.1.0-dev.201908210928
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@angular/common"),require("rxjs/operators")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","rxjs","@angular/common","rxjs/operators"],t):"object"==typeof exports?exports.KendoAngularCommon=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@angular/common"),require("rxjs/operators")):e.KendoAngularCommon=t(e.tslib,e["@angular/core"],e.rxjs,e["@angular/common"],e["rxjs/operators"])}(window,function(e,t,n,i,r){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(8),s=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular(function(){n.subscription=o.from(n.resolvedPromise).subscribe(n.flush)})},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find(function(t){return t.instance===e}))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,i=0;i<n;i++)if(t[i].instance===e)return t.splice(i,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach(function(e){e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[r.NgZone])],e)}();t.ResizeBatchService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(15),u=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new r.EventEmitter,this.kendoDrag=new r.EventEmitter,this.kendoRelease=new r.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){o.isChanged("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;o.isDocumentAvailable()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new s.default({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular(function(){return e.draggable.bindTo(e.element.nativeElement)})))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"enableDrag",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoPress",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoDrag",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoRelease",void 0),e=i.__decorate([r.Directive({selector:"[kendoDraggable]"}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone])],e)}();t.DraggableDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11);t.isDocumentAvailable=i.isDocumentAvailable;var r=n(5);t.isChanged=r.isChanged;var o=n(12);t.anyChanged=o.anyChanged;var s=n(13);t.hasObservers=s.hasObservers;var u=n(14);t.guid=u.guid},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChanged=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))})}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},i.__decorate([r.Input("kendoEventsOutsideAngular"),i.__metadata("design:type",Object)],e.prototype,"events",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"scope",void 0),e=i.__decorate([r.Directive({selector:"[kendoEventsOutsideAngular]"}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2])],e)}();t.EventsOutsideAngularDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(8),s=n(21),u=n(2),a=10,c="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",d=function(){function e(e,t,n,i){this.resizeBatchService=e,this.element=t,this.zone=n,this.renderer=i,this.rateLimit=a,this.resize=new r.EventEmitter,this.source=new o.Subject,this.state=0,this.acceptedSize=!1}return e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular(function(){var t=e.scroll.bind(e),n=e.renderer.listen(e.expand.nativeElement,"scroll",t),i=e.renderer.listen(e.shrink.nativeElement,"scroll",t);e.detachScrollHandlers=function(){n(),i()}})},e.prototype.ngAfterViewChecked=function(){"undefined"!=typeof document&&(2!==this.state?0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init)):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.scroll))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.detachScrollHandlers&&this.detachScrollHandlers(),this.resizeBatchService.cancel(this)},e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.scroll=function(e){var t=this;if(this.parentElement){var n=this.measure(),i=n.width,r=n.height;i===this.lastWidth&&r===this.lastHeight||(this.lastWidth=i,this.lastHeight=r,this.acceptedSize=!1,this.zone.runOutsideAngular(function(){t.source.next()}),this.reset())}},e.prototype.init=function(){var e,t,n=this,i=1e3/(this.rateLimit||a);this.subscription=this.source.asObservable().pipe(s.auditTime(i)).subscribe(function(){n.acceptedSize||n.resize.emit()}),this.parentElement=this.element.nativeElement.parentElement,"static"===(e=this.parentElement,t="position",getComputedStyle(e,null).getPropertyValue(t))&&(this.parentElement.style.position="relative"),this.reset(),this.lastWidth=this.parentElement.offsetWidth,this.lastHeight=this.parentElement.offsetHeight,this.state=2},e.prototype.reset=function(){var e=this.expandChild.nativeElement;e.style.width=1e5+"px",e.style.height=1e5+"px";var t=this.expand.nativeElement;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink.nativeElement;n.scrollLeft=1e5,n.scrollTop=1e5},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rateLimit",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"resize",void 0),i.__decorate([r.ViewChild("expand"),i.__metadata("design:type",r.ElementRef)],e.prototype,"expand",void 0),i.__decorate([r.ViewChild("expandChild"),i.__metadata("design:type",r.ElementRef)],e.prototype,"expandChild",void 0),i.__decorate([r.ViewChild("shrink"),i.__metadata("design:type",r.ElementRef)],e.prototype,"shrink",void 0),e=i.__decorate([r.Component({selector:"kendo-resize-sensor",styles:[":host { "+c+" }"],template:'<div #expand style="'+c+'"> <div #expandChild style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div #shrink style="'+c+'"> <div style="position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;"></div></div>'}),i.__metadata("design:paramtypes",[u.ResizeBatchService,r.ElementRef,r.NgZone,r.Renderer2])],e)}();t.ResizeSensorComponent=d},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(10),t),i.__exportStar(n(18),t),i.__exportStar(n(20),t),i.__exportStar(n(23),t),i.__exportStar(n(4),t),i.__exportStar(n(24),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.DraggableDirective=i.DraggableDirective;var r=n(16);t.DraggableModule=r.DraggableModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDocumentAvailable=function(){return"undefined"!=typeof document}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5);t.anyChanged=function(e,t,n){return void 0===n&&(n=!0),e.some(function(e){return i.isChanged(e,t,n)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasObservers=function(e){return e&&e.observers.length>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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}},function(e,t,n){"use strict";n.r(t),n.d(t,"Draggable",function(){return d});var i=function(e,t){return function(n){return t(e(n))}},r=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},o=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},s=function(){},u=function(e){return e.preventDefault()},a=/touch/;function c(e){return e.type.match(a)?{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 d=function(e){var t=this,n=e.press;void 0===n&&(n=s);var a=e.drag;void 0===a&&(a=s);var d=e.release;void 0===d&&(d=s);var l=e.mouseOnly;void 0===l&&(l=!1),this._pressHandler=i(c,n),this._dragHandler=i(c,a),this._releaseHandler=i(c,d),this._ignoreMouse=!1,this._mouseOnly=l,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(r(document,"mousemove",t._mousemove),r(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){o(document,"mousemove",t._mousemove),o(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(r(document,"pointermove",t._pointermove),r(document,"pointerup",t._pointerup),r(document,"pointercancel",t._pointerup),r(document,"contextmenu",u),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(o(document,"pointermove",t._pointermove),o(document,"pointerup",t._pointerup),o(document,"pointercancel",t._pointerup),o(document,"contextmenu",u),t._releaseHandler(e))}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},d.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},d.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?r(e,"pointerdown",this._pointerdown):(r(e,"mousedown",this._mousedown),this._mouseOnly||(r(e,"touchstart",this._touchstart),r(e,"touchmove",this._touchmove),r(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return o(e,"pointerdown",this._pointerdown),o(document,"pointermove",this._pointermove),o(document,"pointerup",this._pointerup),o(document,"contextmenu",u),void o(document,"pointercancel",this._pointerup);o(e,"mousedown",this._mousedown),this._mouseOnly||(o(e,"touchstart",this._touchstart),o(e,"touchmove",this._touchmove),o(e,"touchend",this._touchend))},d.prototype._usePointers=function(){return!this._mouseOnly&&d.supportPointerEvent()},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},d.default=d,t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=n(17),u=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.DraggableDirective],exports:[o.DraggableDirective],imports:[s.CommonModule]})],e)}();t.DraggableModule=u},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6);t.EventsOutsideAngularDirective=i.EventsOutsideAngularDirective;var r=n(19);t.EventsModule=r.EventsModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),s=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.EventsOutsideAngularDirective],exports:[o.EventsOutsideAngularDirective]})],e)}();t.EventsModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.ResizeSensorComponent=i.ResizeSensorComponent;var r=n(2);t.ResizeBatchService=r.ResizeBatchService;var o=n(22);t.ResizeSensorModule=o.ResizeSensorModule},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(7),s=n(2),u=[o.ResizeSensorComponent],a=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[u],exports:[u],providers:[s.ResizeBatchService]})],e)}();t.ResizeSensorModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.KendoInput=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25);t.Keys=i.Keys},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(t.Keys||(t.Keys={}))}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@angular/common"),require("rxjs/operators")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","rxjs","@angular/common","rxjs/operators"],t):"object"==typeof exports?exports.KendoAngularCommon=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@angular/common"),require("rxjs/operators")):e.KendoAngularCommon=t(e.tslib,e["@angular/core"],e.rxjs,e["@angular/common"],e["rxjs/operators"])}(window,function(e,t,n,i,r){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(8),s=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular(function(){n.subscription=o.from(n.resolvedPromise).subscribe(n.flush)})},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find(function(t){return t.instance===e}))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,i=0;i<n;i++)if(t[i].instance===e)return t.splice(i,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach(function(e){e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[r.NgZone])],e)}();t.ResizeBatchService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(15),u=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new r.EventEmitter,this.kendoDrag=new r.EventEmitter,this.kendoRelease=new r.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){o.isChanged("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;o.isDocumentAvailable()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new s.default({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular(function(){return e.draggable.bindTo(e.element.nativeElement)})))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"enableDrag",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoPress",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoDrag",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoRelease",void 0),e=i.__decorate([r.Directive({selector:"[kendoDraggable]"}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone])],e)}();t.DraggableDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11);t.isDocumentAvailable=i.isDocumentAvailable;var r=n(5);t.isChanged=r.isChanged;var o=n(12);t.anyChanged=o.anyChanged;var s=n(13);t.hasObservers=s.hasObservers;var u=n(14);t.guid=u.guid},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChanged=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))})}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},i.__decorate([r.Input("kendoEventsOutsideAngular"),i.__metadata("design:type",Object)],e.prototype,"events",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"scope",void 0),e=i.__decorate([r.Directive({selector:"[kendoEventsOutsideAngular]"}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2])],e)}();t.EventsOutsideAngularDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(8),s=n(21),u=n(2),a=10,c="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",d=function(){function e(e,t,n,i){this.resizeBatchService=e,this.element=t,this.zone=n,this.renderer=i,this.rateLimit=a,this.resize=new r.EventEmitter,this.dir="ltr",this.source=new o.Subject,this.state=0,this.acceptedSize=!1}return e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular(function(){var t=e.scroll.bind(e),n=e.renderer.listen(e.expand.nativeElement,"scroll",t),i=e.renderer.listen(e.shrink.nativeElement,"scroll",t);e.detachScrollHandlers=function(){n(),i()}})},e.prototype.ngAfterViewChecked=function(){"undefined"!=typeof document&&(2!==this.state?0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init)):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.scroll))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.detachScrollHandlers&&this.detachScrollHandlers(),this.resizeBatchService.cancel(this)},e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.scroll=function(e){var t=this;if(this.parentElement){var n=this.measure(),i=n.width,r=n.height;i===this.lastWidth&&r===this.lastHeight||(this.lastWidth=i,this.lastHeight=r,this.acceptedSize=!1,this.zone.runOutsideAngular(function(){t.source.next()}),this.reset())}},e.prototype.init=function(){var e,t,n=this,i=1e3/(this.rateLimit||a);this.subscription=this.source.asObservable().pipe(s.auditTime(i)).subscribe(function(){n.acceptedSize||n.resize.emit()}),this.parentElement=this.element.nativeElement.parentElement,"static"===(e=this.parentElement,t="position",getComputedStyle(e,null).getPropertyValue(t))&&(this.parentElement.style.position="relative"),this.reset(),this.lastWidth=this.parentElement.offsetWidth,this.lastHeight=this.parentElement.offsetHeight,this.state=2},e.prototype.reset=function(){var e=this.expandChild.nativeElement;e.style.width=1e5+"px",e.style.height=1e5+"px";var t=this.expand.nativeElement;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink.nativeElement;n.scrollLeft=1e5,n.scrollTop=1e5},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rateLimit",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"resize",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"dir",void 0),i.__decorate([r.ViewChild("expand"),i.__metadata("design:type",r.ElementRef)],e.prototype,"expand",void 0),i.__decorate([r.ViewChild("expandChild"),i.__metadata("design:type",r.ElementRef)],e.prototype,"expandChild",void 0),i.__decorate([r.ViewChild("shrink"),i.__metadata("design:type",r.ElementRef)],e.prototype,"shrink",void 0),e=i.__decorate([r.Component({selector:"kendo-resize-sensor",styles:[":host { "+c+" }"],template:'<div #expand style="'+c+'"> <div #expandChild style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div #shrink style="'+c+'"> <div style="position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;"></div></div>'}),i.__metadata("design:paramtypes",[u.ResizeBatchService,r.ElementRef,r.NgZone,r.Renderer2])],e)}();t.ResizeSensorComponent=d},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(10),t),i.__exportStar(n(18),t),i.__exportStar(n(20),t),i.__exportStar(n(23),t),i.__exportStar(n(4),t),i.__exportStar(n(24),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.DraggableDirective=i.DraggableDirective;var r=n(16);t.DraggableModule=r.DraggableModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDocumentAvailable=function(){return"undefined"!=typeof document}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5);t.anyChanged=function(e,t,n){return void 0===n&&(n=!0),e.some(function(e){return i.isChanged(e,t,n)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasObservers=function(e){return e&&e.observers.length>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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}},function(e,t,n){"use strict";n.r(t),n.d(t,"Draggable",function(){return d});var i=function(e,t){return function(n){return t(e(n))}},r=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},o=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},s=function(){},u=function(e){return e.preventDefault()},a=/touch/;function c(e){return e.type.match(a)?{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 d=function(e){var t=this,n=e.press;void 0===n&&(n=s);var a=e.drag;void 0===a&&(a=s);var d=e.release;void 0===d&&(d=s);var l=e.mouseOnly;void 0===l&&(l=!1),this._pressHandler=i(c,n),this._dragHandler=i(c,a),this._releaseHandler=i(c,d),this._ignoreMouse=!1,this._mouseOnly=l,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(r(document,"mousemove",t._mousemove),r(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){o(document,"mousemove",t._mousemove),o(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(r(document,"pointermove",t._pointermove),r(document,"pointerup",t._pointerup),r(document,"pointercancel",t._pointerup),r(document,"contextmenu",u),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(o(document,"pointermove",t._pointermove),o(document,"pointerup",t._pointerup),o(document,"pointercancel",t._pointerup),o(document,"contextmenu",u),t._releaseHandler(e))}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},d.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},d.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?r(e,"pointerdown",this._pointerdown):(r(e,"mousedown",this._mousedown),this._mouseOnly||(r(e,"touchstart",this._touchstart),r(e,"touchmove",this._touchmove),r(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return o(e,"pointerdown",this._pointerdown),o(document,"pointermove",this._pointermove),o(document,"pointerup",this._pointerup),o(document,"contextmenu",u),void o(document,"pointercancel",this._pointerup);o(e,"mousedown",this._mousedown),this._mouseOnly||(o(e,"touchstart",this._touchstart),o(e,"touchmove",this._touchmove),o(e,"touchend",this._touchend))},d.prototype._usePointers=function(){return!this._mouseOnly&&d.supportPointerEvent()},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},d.default=d,t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=n(17),u=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.DraggableDirective],exports:[o.DraggableDirective],imports:[s.CommonModule]})],e)}();t.DraggableModule=u},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6);t.EventsOutsideAngularDirective=i.EventsOutsideAngularDirective;var r=n(19);t.EventsModule=r.EventsModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),s=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.EventsOutsideAngularDirective],exports:[o.EventsOutsideAngularDirective]})],e)}();t.EventsModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.ResizeSensorComponent=i.ResizeSensorComponent;var r=n(2);t.ResizeBatchService=r.ResizeBatchService;var o=n(22);t.ResizeSensorModule=o.ResizeSensorModule},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(7),s=n(2),u=[o.ResizeSensorComponent],a=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[u],exports:[u],providers:[s.ResizeBatchService]})],e)}();t.ResizeSensorModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.KendoInput=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25);t.Keys=i.Keys},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(t.Keys||(t.Keys={}))}])}); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@telerik/kendo-draggable"),require("@angular/common"),require("rxjs/operators")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","rxjs","@telerik/kendo-draggable","@angular/common","rxjs/operators"],t):"object"==typeof exports?exports.KendoAngularCommon=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@telerik/kendo-draggable"),require("@angular/common"),require("rxjs/operators")):e.KendoAngularCommon=t(e.tslib,e["@angular/core"],e.rxjs,e["@telerik/kendo-draggable"],e["@angular/common"],e["rxjs/operators"])}(window,function(e,t,i,n,r,o){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=9)}([function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(8),s=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var i=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular(function(){i.subscription=o.from(i.resolvedPromise).subscribe(i.flush)})},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find(function(t){return t.instance===e}))},e.prototype.cancel=function(e){for(var t=this.scheduled,i=t.length,n=0;n<i;n++)if(t[n].instance===e)return t.splice(n,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach(function(e){e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()},e=n.__decorate([r.Injectable(),n.__metadata("design:paramtypes",[r.NgZone])],e)}();t.ResizeBatchService=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(4),s=i(15),a=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new r.EventEmitter,this.kendoDrag=new r.EventEmitter,this.kendoRelease=new r.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){o.isChanged("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;o.isDocumentAvailable()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new s.default({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular(function(){return e.draggable.bindTo(e.element.nativeElement)})))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"enableDrag",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoPress",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoDrag",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoRelease",void 0),e=n.__decorate([r.Directive({selector:"[kendoDraggable]"}),n.__metadata("design:paramtypes",[r.ElementRef,r.NgZone])],e)}();t.DraggableDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(11);t.isDocumentAvailable=n.isDocumentAvailable;var r=i(5);t.isChanged=r.isChanged;var o=i(12);t.anyChanged=o.anyChanged;var s=i(13);t.hasObservers=s.hasObservers;var a=i(14);t.guid=a.guid},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChanged=function(e,t,i){return void 0===i&&(i=!0),!(void 0===t[e]||t[e].isFirstChange()&&i||t[e].previousValue===t[e].currentValue)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=function(){function e(e,t,i){this.element=e,this.ngZone=t,this.renderer=i,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var i in t)t.hasOwnProperty(i)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,i,e.scope?t[i].bind(e.scope):t[i]))})}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},n.__decorate([r.Input("kendoEventsOutsideAngular"),n.__metadata("design:type",Object)],e.prototype,"events",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],e.prototype,"scope",void 0),e=n.__decorate([r.Directive({selector:"[kendoEventsOutsideAngular]"}),n.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2])],e)}();t.EventsOutsideAngularDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(8),s=i(21),a=i(2),u=10,c="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",l=function(){function e(e,t,i,n){this.resizeBatchService=e,this.element=t,this.zone=i,this.renderer=n,this.rateLimit=u,this.resize=new r.EventEmitter,this.source=new o.Subject,this.state=0,this.acceptedSize=!1}return e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular(function(){var t=e.scroll.bind(e),i=e.renderer.listen(e.expand.nativeElement,"scroll",t),n=e.renderer.listen(e.shrink.nativeElement,"scroll",t);e.detachScrollHandlers=function(){i(),n()}})},e.prototype.ngAfterViewChecked=function(){"undefined"!=typeof document&&(2!==this.state?0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init)):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.scroll))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.detachScrollHandlers&&this.detachScrollHandlers(),this.resizeBatchService.cancel(this)},e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.scroll=function(e){var t=this;if(this.parentElement){var i=this.measure(),n=i.width,r=i.height;n===this.lastWidth&&r===this.lastHeight||(this.lastWidth=n,this.lastHeight=r,this.acceptedSize=!1,this.zone.runOutsideAngular(function(){t.source.next()}),this.reset())}},e.prototype.init=function(){var e,t,i=this,n=1e3/(this.rateLimit||u);this.subscription=this.source.asObservable().pipe(s.auditTime(n)).subscribe(function(){i.acceptedSize||i.resize.emit()}),this.parentElement=this.element.nativeElement.parentElement,"static"===(e=this.parentElement,t="position",getComputedStyle(e,null).getPropertyValue(t))&&(this.parentElement.style.position="relative"),this.reset(),this.lastWidth=this.parentElement.offsetWidth,this.lastHeight=this.parentElement.offsetHeight,this.state=2},e.prototype.reset=function(){var e=this.expandChild.nativeElement;e.style.width=1e5+"px",e.style.height=1e5+"px";var t=this.expand.nativeElement;t.scrollLeft=1e5,t.scrollTop=1e5;var i=this.shrink.nativeElement;i.scrollLeft=1e5,i.scrollTop=1e5},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},n.__decorate([r.Input(),n.__metadata("design:type",Number)],e.prototype,"rateLimit",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"resize",void 0),n.__decorate([r.ViewChild("expand"),n.__metadata("design:type",r.ElementRef)],e.prototype,"expand",void 0),n.__decorate([r.ViewChild("expandChild"),n.__metadata("design:type",r.ElementRef)],e.prototype,"expandChild",void 0),n.__decorate([r.ViewChild("shrink"),n.__metadata("design:type",r.ElementRef)],e.prototype,"shrink",void 0),e=n.__decorate([r.Component({selector:"kendo-resize-sensor",styles:[":host { "+c+" }"],template:'<div #expand style="'+c+'"> <div #expandChild style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div #shrink style="'+c+'"> <div style="position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;"></div></div>'}),n.__metadata("design:paramtypes",[a.ResizeBatchService,r.ElementRef,r.NgZone,r.Renderer2])],e)}();t.ResizeSensorComponent=l},function(e,t){e.exports=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0);n.__exportStar(i(10),t),n.__exportStar(i(18),t),n.__exportStar(i(20),t),n.__exportStar(i(23),t),n.__exportStar(i(4),t),n.__exportStar(i(24),t)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(3);t.DraggableDirective=n.DraggableDirective;var r=i(16);t.DraggableModule=r.DraggableModule},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDocumentAvailable=function(){return"undefined"!=typeof document}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(5);t.anyChanged=function(e,t,i){return void 0===i&&(i=!0),e.some(function(e){return n.isChanged(e,t,i)})}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasObservers=function(e){return e&&e.observers.length>0}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guid=function(){for(var e="",t=0;t<32;t++){var i=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&i|8:i).toString(16)}return e}},function(e,t){e.exports=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(3),s=i(17),a=function(){function e(){}return e=n.__decorate([r.NgModule({declarations:[o.DraggableDirective],exports:[o.DraggableDirective],imports:[s.CommonModule]})],e)}();t.DraggableModule=a},function(e,t){e.exports=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6);t.EventsOutsideAngularDirective=n.EventsOutsideAngularDirective;var r=i(19);t.EventsModule=r.EventsModule},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(6),s=function(){function e(){}return e=n.__decorate([r.NgModule({declarations:[o.EventsOutsideAngularDirective],exports:[o.EventsOutsideAngularDirective]})],e)}();t.EventsModule=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(7);t.ResizeSensorComponent=n.ResizeSensorComponent;var r=i(2);t.ResizeBatchService=r.ResizeBatchService;var o=i(22);t.ResizeSensorModule=o.ResizeSensorModule},function(e,t){e.exports=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(7),s=i(2),a=[o.ResizeSensorComponent],u=function(){function e(){}return e=n.__decorate([r.NgModule({declarations:[a],exports:[a],providers:[s.ResizeBatchService]})],e)}();t.ResizeSensorModule=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.KendoInput=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(25);t.Keys=n.Keys},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(t.Keys||(t.Keys={}))}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@telerik/kendo-draggable"),require("@angular/common"),require("rxjs/operators")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","rxjs","@telerik/kendo-draggable","@angular/common","rxjs/operators"],t):"object"==typeof exports?exports.KendoAngularCommon=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@telerik/kendo-draggable"),require("@angular/common"),require("rxjs/operators")):e.KendoAngularCommon=t(e.tslib,e["@angular/core"],e.rxjs,e["@telerik/kendo-draggable"],e["@angular/common"],e["rxjs/operators"])}(window,function(e,t,i,n,r,o){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=9)}([function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(8),s=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var i=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular(function(){i.subscription=o.from(i.resolvedPromise).subscribe(i.flush)})},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find(function(t){return t.instance===e}))},e.prototype.cancel=function(e){for(var t=this.scheduled,i=t.length,n=0;n<i;n++)if(t[n].instance===e)return t.splice(n,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach(function(e){e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()},e=n.__decorate([r.Injectable(),n.__metadata("design:paramtypes",[r.NgZone])],e)}();t.ResizeBatchService=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(4),s=i(15),a=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new r.EventEmitter,this.kendoDrag=new r.EventEmitter,this.kendoRelease=new r.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){o.isChanged("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;o.isDocumentAvailable()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new s.default({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular(function(){return e.draggable.bindTo(e.element.nativeElement)})))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"enableDrag",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoPress",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoDrag",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"kendoRelease",void 0),e=n.__decorate([r.Directive({selector:"[kendoDraggable]"}),n.__metadata("design:paramtypes",[r.ElementRef,r.NgZone])],e)}();t.DraggableDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(11);t.isDocumentAvailable=n.isDocumentAvailable;var r=i(5);t.isChanged=r.isChanged;var o=i(12);t.anyChanged=o.anyChanged;var s=i(13);t.hasObservers=s.hasObservers;var a=i(14);t.guid=a.guid},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChanged=function(e,t,i){return void 0===i&&(i=!0),!(void 0===t[e]||t[e].isFirstChange()&&i||t[e].previousValue===t[e].currentValue)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=function(){function e(e,t,i){this.element=e,this.ngZone=t,this.renderer=i,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var i in t)t.hasOwnProperty(i)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,i,e.scope?t[i].bind(e.scope):t[i]))})}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},n.__decorate([r.Input("kendoEventsOutsideAngular"),n.__metadata("design:type",Object)],e.prototype,"events",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],e.prototype,"scope",void 0),e=n.__decorate([r.Directive({selector:"[kendoEventsOutsideAngular]"}),n.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2])],e)}();t.EventsOutsideAngularDirective=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(8),s=i(21),a=i(2),u=10,c="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",l=function(){function e(e,t,i,n){this.resizeBatchService=e,this.element=t,this.zone=i,this.renderer=n,this.rateLimit=u,this.resize=new r.EventEmitter,this.dir="ltr",this.source=new o.Subject,this.state=0,this.acceptedSize=!1}return e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular(function(){var t=e.scroll.bind(e),i=e.renderer.listen(e.expand.nativeElement,"scroll",t),n=e.renderer.listen(e.shrink.nativeElement,"scroll",t);e.detachScrollHandlers=function(){i(),n()}})},e.prototype.ngAfterViewChecked=function(){"undefined"!=typeof document&&(2!==this.state?0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init)):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.scroll))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.detachScrollHandlers&&this.detachScrollHandlers(),this.resizeBatchService.cancel(this)},e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.scroll=function(e){var t=this;if(this.parentElement){var i=this.measure(),n=i.width,r=i.height;n===this.lastWidth&&r===this.lastHeight||(this.lastWidth=n,this.lastHeight=r,this.acceptedSize=!1,this.zone.runOutsideAngular(function(){t.source.next()}),this.reset())}},e.prototype.init=function(){var e,t,i=this,n=1e3/(this.rateLimit||u);this.subscription=this.source.asObservable().pipe(s.auditTime(n)).subscribe(function(){i.acceptedSize||i.resize.emit()}),this.parentElement=this.element.nativeElement.parentElement,"static"===(e=this.parentElement,t="position",getComputedStyle(e,null).getPropertyValue(t))&&(this.parentElement.style.position="relative"),this.reset(),this.lastWidth=this.parentElement.offsetWidth,this.lastHeight=this.parentElement.offsetHeight,this.state=2},e.prototype.reset=function(){var e=this.expandChild.nativeElement;e.style.width=1e5+"px",e.style.height=1e5+"px";var t=this.expand.nativeElement;t.scrollLeft=1e5,t.scrollTop=1e5;var i=this.shrink.nativeElement;i.scrollLeft=1e5,i.scrollTop=1e5},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},n.__decorate([r.Input(),n.__metadata("design:type",Number)],e.prototype,"rateLimit",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"resize",void 0),n.__decorate([r.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"dir",void 0),n.__decorate([r.ViewChild("expand"),n.__metadata("design:type",r.ElementRef)],e.prototype,"expand",void 0),n.__decorate([r.ViewChild("expandChild"),n.__metadata("design:type",r.ElementRef)],e.prototype,"expandChild",void 0),n.__decorate([r.ViewChild("shrink"),n.__metadata("design:type",r.ElementRef)],e.prototype,"shrink",void 0),e=n.__decorate([r.Component({selector:"kendo-resize-sensor",styles:[":host { "+c+" }"],template:'<div #expand style="'+c+'"> <div #expandChild style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div #shrink style="'+c+'"> <div style="position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;"></div></div>'}),n.__metadata("design:paramtypes",[a.ResizeBatchService,r.ElementRef,r.NgZone,r.Renderer2])],e)}();t.ResizeSensorComponent=l},function(e,t){e.exports=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0);n.__exportStar(i(10),t),n.__exportStar(i(18),t),n.__exportStar(i(20),t),n.__exportStar(i(23),t),n.__exportStar(i(4),t),n.__exportStar(i(24),t)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(3);t.DraggableDirective=n.DraggableDirective;var r=i(16);t.DraggableModule=r.DraggableModule},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDocumentAvailable=function(){return"undefined"!=typeof document}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(5);t.anyChanged=function(e,t,i){return void 0===i&&(i=!0),e.some(function(e){return n.isChanged(e,t,i)})}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasObservers=function(e){return e&&e.observers.length>0}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guid=function(){for(var e="",t=0;t<32;t++){var i=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&i|8:i).toString(16)}return e}},function(e,t){e.exports=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(3),s=i(17),a=function(){function e(){}return e=n.__decorate([r.NgModule({declarations:[o.DraggableDirective],exports:[o.DraggableDirective],imports:[s.CommonModule]})],e)}();t.DraggableModule=a},function(e,t){e.exports=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6);t.EventsOutsideAngularDirective=n.EventsOutsideAngularDirective;var r=i(19);t.EventsModule=r.EventsModule},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(6),s=function(){function e(){}return e=n.__decorate([r.NgModule({declarations:[o.EventsOutsideAngularDirective],exports:[o.EventsOutsideAngularDirective]})],e)}();t.EventsModule=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(7);t.ResizeSensorComponent=n.ResizeSensorComponent;var r=i(2);t.ResizeBatchService=r.ResizeBatchService;var o=i(22);t.ResizeSensorModule=o.ResizeSensorModule},function(e,t){e.exports=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),o=i(7),s=i(2),a=[o.ResizeSensorComponent],u=function(){function e(){}return e=n.__decorate([r.NgModule({declarations:[a],exports:[a],providers:[s.ResizeBatchService]})],e)}();t.ResizeSensorModule=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.KendoInput=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(25);t.Keys=n.Keys},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(t.Keys||(t.Keys={}))}])}); |
@@ -1,2 +0,2 @@ | ||
import { Component, ElementRef, EventEmitter, Input, Output, ViewChild, NgZone, Renderer2 } from '@angular/core'; | ||
import { Component, ElementRef, EventEmitter, Input, Output, ViewChild, NgZone, Renderer2, HostBinding } from '@angular/core'; | ||
import { Subject } from 'rxjs'; | ||
@@ -39,2 +39,3 @@ import { auditTime } from 'rxjs/operators'; | ||
this.resize = new EventEmitter(); | ||
this.dir = 'ltr'; | ||
this.source = new Subject(); | ||
@@ -171,2 +172,3 @@ this.state = 0 /* Initial */; | ||
resize: [{ type: Output }], | ||
dir: [{ type: HostBinding, args: ['attr.dir',] }], | ||
expand: [{ type: ViewChild, args: ['expand',] }], | ||
@@ -173,0 +175,0 @@ expandChild: [{ type: ViewChild, args: ['expandChild',] }], |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"DraggableDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":4,"character":1},"arguments":[{"selector":"[kendoDraggable]"}]}],"members":{"enableDrag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":5}}]}],"kendoPress":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":11,"character":5}}]}],"kendoDrag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":12,"character":5}}]}],"kendoRelease":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":13,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":17,"character":33},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":17,"character":61}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"toggleDraggable":[{"__symbolic":"method"}],"destroyDraggable":[{"__symbolic":"method"}]}},"DraggableModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"DraggableDirective"}],"exports":[{"__symbolic":"reference","name":"DraggableDirective"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":14}]}]}],"members":{}},"EventsOutsideAngularDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"selector":"[kendoEventsOutsideAngular]"}]}],"members":{"events":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":5},"arguments":["kendoEventsOutsideAngular"]}]}],"scope":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":19,"character":33},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":20,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":21,"character":34}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"EventsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"EventsOutsideAngularDirective"}],"exports":[{"__symbolic":"reference","name":"EventsOutsideAngularDirective"}]}]}],"members":{}},"ResizeSensorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":43,"character":1},"arguments":[{"selector":"kendo-resize-sensor","styles":[":host { position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden; }"],"template":"<div #expand style=\"position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;\"> <div #expandChild style=\"position: absolute; left: 0; top: 0; transition: 0s;\"></div></div><div #shrink style=\"position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;\"> <div style=\"position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;\"></div></div>"}]}],"members":{"rateLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":5}}]}],"resize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":66,"character":5}}]}],"expand":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":72,"character":5},"arguments":["expand"]}]}],"expandChild":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":78,"character":5},"arguments":["expandChild"]}]}],"shrink":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":84,"character":5},"arguments":["shrink"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ResizeBatchService"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":98,"character":33},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":99,"character":30},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":100,"character":34}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngAfterViewChecked":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"acceptSize":[{"__symbolic":"method"}],"scroll":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"measure":[{"__symbolic":"method"}]}},"ResizeBatchService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":14,"character":32}]}],"schedule":[{"__symbolic":"method"}],"isScheduled":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"unsubscribe":[{"__symbolic":"method"}],"flush":[{"__symbolic":"method"}]}},"ResizeSensorModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"ResizeSensorComponent"}]],"exports":[[{"__symbolic":"reference","name":"ResizeSensorComponent"}]],"providers":[{"__symbolic":"reference","name":"ResizeBatchService"}]}]}],"members":{}},"KendoInput":{"__symbolic":"class","members":{}},"isDocumentAvailable":{"__symbolic":"error","message":"Lambda not supported","line":0,"character":35,"module":"./utils/is-document-available"},"isChanged":{"__symbolic":"error","message":"Lambda not supported","line":2,"character":25,"module":"./utils/is-changed"},"anyChanged":{"__symbolic":"error","message":"Lambda not supported","line":3,"character":26,"module":"./utils/any-changed"},"hasObservers":{"__symbolic":"error","message":"Lambda not supported","line":2,"character":28,"module":"./utils/has-observers"},"guid":{"__symbolic":"error","message":"Lambda not supported","line":0,"character":20,"module":"./utils/guid"},"Keys":{"Alt":18,"ArrowDown":40,"ArrowLeft":37,"ArrowRight":39,"ArrowUp":38,"Backspace":8,"Control":17,"Delete":46,"Digit0":48,"Digit1":49,"Digit2":50,"Digit3":51,"Digit4":52,"Digit5":53,"Digit6":54,"Digit7":55,"Digit8":56,"Digit9":57,"End":35,"Enter":13,"Escape":27,"F1":112,"F2":113,"F10":121,"Home":36,"Insert":45,"KeyA":65,"KeyB":66,"KeyC":67,"KeyD":68,"KeyE":69,"KeyF":70,"KeyG":71,"KeyH":72,"KeyI":73,"KeyJ":74,"KeyK":75,"KeyL":76,"KeyM":77,"KeyN":78,"KeyO":79,"KeyP":80,"KeyQ":81,"KeyR":82,"KeyS":83,"KeyT":84,"KeyU":85,"KeyV":86,"KeyW":87,"KeyX":88,"KeyY":89,"KeyZ":90,"NumpadDecimal":110,"PageDown":34,"PageUp":33,"Shift":16,"Space":32,"Tab":9}},"origins":{"DraggableDirective":"./draggable/draggable.directive","DraggableModule":"./draggable/draggable.module","EventsOutsideAngularDirective":"./events/events-outside-angular.directive","EventsModule":"./events/events.module","ResizeSensorComponent":"./resize-sensor/resize-sensor.component","ResizeBatchService":"./resize-sensor/resize-batch.service","ResizeSensorModule":"./resize-sensor/resize-sensor.module","KendoInput":"./tokens","isDocumentAvailable":"./utils/is-document-available","isChanged":"./utils/is-changed","anyChanged":"./utils/any-changed","hasObservers":"./utils/has-observers","guid":"./utils/guid","Keys":"./enums/keys"},"importAs":"@progress/kendo-angular-common"} | ||
{"__symbolic":"module","version":4,"metadata":{"DraggableDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":4,"character":1},"arguments":[{"selector":"[kendoDraggable]"}]}],"members":{"enableDrag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":5}}]}],"kendoPress":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":11,"character":5}}]}],"kendoDrag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":12,"character":5}}]}],"kendoRelease":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":13,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":17,"character":33},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":17,"character":61}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"toggleDraggable":[{"__symbolic":"method"}],"destroyDraggable":[{"__symbolic":"method"}]}},"DraggableModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"DraggableDirective"}],"exports":[{"__symbolic":"reference","name":"DraggableDirective"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":14}]}]}],"members":{}},"EventsOutsideAngularDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"selector":"[kendoEventsOutsideAngular]"}]}],"members":{"events":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":5},"arguments":["kendoEventsOutsideAngular"]}]}],"scope":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":19,"character":33},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":20,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":21,"character":34}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"EventsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"EventsOutsideAngularDirective"}],"exports":[{"__symbolic":"reference","name":"EventsOutsideAngularDirective"}]}]}],"members":{}},"ResizeSensorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":44,"character":1},"arguments":[{"selector":"kendo-resize-sensor","styles":[":host { position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden; }"],"template":"<div #expand style=\"position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;\"> <div #expandChild style=\"position: absolute; left: 0; top: 0; transition: 0s;\"></div></div><div #shrink style=\"position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;\"> <div style=\"position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;\"></div></div>"}]}],"members":{"rateLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":61,"character":5}}]}],"resize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":67,"character":5}}]}],"dir":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":70,"character":5},"arguments":["attr.dir"]}]}],"expand":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":76,"character":5},"arguments":["expand"]}]}],"expandChild":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":82,"character":5},"arguments":["expandChild"]}]}],"shrink":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":88,"character":5},"arguments":["shrink"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ResizeBatchService"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":102,"character":33},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":103,"character":30},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":104,"character":34}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngAfterViewChecked":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"acceptSize":[{"__symbolic":"method"}],"scroll":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"measure":[{"__symbolic":"method"}]}},"ResizeBatchService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":14,"character":32}]}],"schedule":[{"__symbolic":"method"}],"isScheduled":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"unsubscribe":[{"__symbolic":"method"}],"flush":[{"__symbolic":"method"}]}},"ResizeSensorModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"ResizeSensorComponent"}]],"exports":[[{"__symbolic":"reference","name":"ResizeSensorComponent"}]],"providers":[{"__symbolic":"reference","name":"ResizeBatchService"}]}]}],"members":{}},"KendoInput":{"__symbolic":"class","members":{}},"isDocumentAvailable":{"__symbolic":"error","message":"Lambda not supported","line":0,"character":35,"module":"./utils/is-document-available"},"isChanged":{"__symbolic":"error","message":"Lambda not supported","line":2,"character":25,"module":"./utils/is-changed"},"anyChanged":{"__symbolic":"error","message":"Lambda not supported","line":3,"character":26,"module":"./utils/any-changed"},"hasObservers":{"__symbolic":"error","message":"Lambda not supported","line":2,"character":28,"module":"./utils/has-observers"},"guid":{"__symbolic":"error","message":"Lambda not supported","line":0,"character":20,"module":"./utils/guid"},"Keys":{"Alt":18,"ArrowDown":40,"ArrowLeft":37,"ArrowRight":39,"ArrowUp":38,"Backspace":8,"Control":17,"Delete":46,"Digit0":48,"Digit1":49,"Digit2":50,"Digit3":51,"Digit4":52,"Digit5":53,"Digit6":54,"Digit7":55,"Digit8":56,"Digit9":57,"End":35,"Enter":13,"Escape":27,"F1":112,"F2":113,"F10":121,"Home":36,"Insert":45,"KeyA":65,"KeyB":66,"KeyC":67,"KeyD":68,"KeyE":69,"KeyF":70,"KeyG":71,"KeyH":72,"KeyI":73,"KeyJ":74,"KeyK":75,"KeyL":76,"KeyM":77,"KeyN":78,"KeyO":79,"KeyP":80,"KeyQ":81,"KeyR":82,"KeyS":83,"KeyT":84,"KeyU":85,"KeyV":86,"KeyW":87,"KeyX":88,"KeyY":89,"KeyZ":90,"NumpadDecimal":110,"PageDown":34,"PageUp":33,"Shift":16,"Space":32,"Tab":9}},"origins":{"DraggableDirective":"./draggable/draggable.directive","DraggableModule":"./draggable/draggable.module","EventsOutsideAngularDirective":"./events/events-outside-angular.directive","EventsModule":"./events/events.module","ResizeSensorComponent":"./resize-sensor/resize-sensor.component","ResizeBatchService":"./resize-sensor/resize-batch.service","ResizeSensorModule":"./resize-sensor/resize-sensor.module","KendoInput":"./tokens","isDocumentAvailable":"./utils/is-document-available","isChanged":"./utils/is-changed","anyChanged":"./utils/any-changed","hasObservers":"./utils/has-observers","guid":"./utils/guid","Keys":"./enums/keys"},"importAs":"@progress/kendo-angular-common"} |
@@ -23,2 +23,3 @@ import { ElementRef, EventEmitter, NgZone, AfterViewChecked, AfterViewInit, OnDestroy, Renderer2 } from '@angular/core'; | ||
resize: EventEmitter<any>; | ||
dir: string; | ||
/** | ||
@@ -25,0 +26,0 @@ * @hidden |
@@ -1,2 +0,2 @@ | ||
import { Component, ElementRef, EventEmitter, Input, Output, ViewChild, NgZone, Renderer2 } from '@angular/core'; | ||
import { Component, ElementRef, EventEmitter, Input, Output, ViewChild, NgZone, Renderer2, HostBinding } from '@angular/core'; | ||
import { Subject } from 'rxjs'; | ||
@@ -37,2 +37,3 @@ import { auditTime } from 'rxjs/operators'; | ||
this.resize = new EventEmitter(); | ||
this.dir = 'ltr'; | ||
this.source = new Subject(); | ||
@@ -166,2 +167,3 @@ this.state = 0 /* Initial */; | ||
resize: [{ type: Output }], | ||
dir: [{ type: HostBinding, args: ['attr.dir',] }], | ||
expand: [{ type: ViewChild, args: ['expand',] }], | ||
@@ -168,0 +170,0 @@ expandChild: [{ type: ViewChild, args: ['expandChild',] }], |
@@ -1,2 +0,2 @@ | ||
import { Component, Directive, ElementRef, EventEmitter, Injectable, Input, NgModule, NgZone, Output, Renderer2, ViewChild } from '@angular/core'; | ||
import { Component, Directive, ElementRef, EventEmitter, HostBinding, Injectable, Input, NgModule, NgZone, Output, Renderer2, ViewChild } from '@angular/core'; | ||
import Draggable from '@telerik/kendo-draggable'; | ||
@@ -254,2 +254,3 @@ import { CommonModule } from '@angular/common'; | ||
this.resize = new EventEmitter(); | ||
this.dir = 'ltr'; | ||
this.source = new Subject(); | ||
@@ -383,2 +384,3 @@ this.state = 0 /* Initial */; | ||
resize: [{ type: Output }], | ||
dir: [{ type: HostBinding, args: ['attr.dir',] }], | ||
expand: [{ type: ViewChild, args: ['expand',] }], | ||
@@ -385,0 +387,0 @@ expandChild: [{ type: ViewChild, args: ['expandChild',] }], |
@@ -1,2 +0,2 @@ | ||
import { Component, Directive, ElementRef, EventEmitter, Injectable, Input, NgModule, NgZone, Output, Renderer2, ViewChild } from '@angular/core'; | ||
import { Component, Directive, ElementRef, EventEmitter, HostBinding, Injectable, Input, NgModule, NgZone, Output, Renderer2, ViewChild } from '@angular/core'; | ||
import Draggable from '@telerik/kendo-draggable'; | ||
@@ -274,2 +274,3 @@ import { CommonModule } from '@angular/common'; | ||
this.resize = new EventEmitter(); | ||
this.dir = 'ltr'; | ||
this.source = new Subject(); | ||
@@ -406,2 +407,3 @@ this.state = 0 /* Initial */; | ||
resize: [{ type: Output }], | ||
dir: [{ type: HostBinding, args: ['attr.dir',] }], | ||
expand: [{ type: ViewChild, args: ['expand',] }], | ||
@@ -408,0 +410,0 @@ expandChild: [{ type: ViewChild, args: ['expandChild',] }], |
@@ -42,2 +42,3 @@ "use strict"; | ||
this.resize = new core_1.EventEmitter(); | ||
this.dir = 'ltr'; | ||
this.source = new rxjs_1.Subject(); | ||
@@ -174,2 +175,3 @@ this.state = 0 /* Initial */; | ||
resize: [{ type: core_1.Output }], | ||
dir: [{ type: core_1.HostBinding, args: ['attr.dir',] }], | ||
expand: [{ type: core_1.ViewChild, args: ['expand',] }], | ||
@@ -176,0 +178,0 @@ expandChild: [{ type: core_1.ViewChild, args: ['expandChild',] }], |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-angular-common",["tslib","@angular/core","@telerik/kendo-draggable","@angular/common","rxjs","rxjs/operators"],function(s){var o,a,u,c,l,d;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){o=t(e)},function(e){a=t(e)},function(e){u=t(e)},function(e){c=t(e)},function(e){l=t(e)},function(e){d=t(e)}],execute:function(){function n(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,r;r={},n.m=i=[function(e,t){e.exports=o},function(e,t){e.exports=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(3),o=(a.prototype.schedule=function(e,t){var i=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular(function(){i.subscription=s.from(i.resolvedPromise).subscribe(i.flush)})},a.prototype.isScheduled=function(t){return Boolean(this.scheduled.find(function(e){return e.instance===t}))},a.prototype.cancel=function(e){for(var t=this.scheduled,i=t.length,n=0;n<i;n++)if(t[n].instance===e)return t.splice(n,1),void(t.length||this.unsubscribe())},a.prototype.ngOnDestroy=function(){this.unsubscribe()},a.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},a.prototype.flush=function(){this.scheduled.forEach(function(e){e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()},n.__decorate([r.Injectable(),n.__metadata("design:paramtypes",[r.NgZone])],a));function a(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}t.ResizeBatchService=o},function(e,t){e.exports=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(3),o=i(13),a=i(2),u="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",c=(l.prototype.ngAfterViewInit=function(){var n=this;this.zone.runOutsideAngular(function(){var e=n.scroll.bind(n),t=n.renderer.listen(n.expand.nativeElement,"scroll",e),i=n.renderer.listen(n.shrink.nativeElement,"scroll",e);n.detachScrollHandlers=function(){t(),i()}})},l.prototype.ngAfterViewChecked=function(){"undefined"!=typeof document&&(2!==this.state?0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init)):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.scroll))},l.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.detachScrollHandlers&&this.detachScrollHandlers(),this.resizeBatchService.cancel(this)},l.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},l.prototype.scroll=function(e){var t=this;if(this.parentElement){var i=this.measure(),n=i.width,r=i.height;n===this.lastWidth&&r===this.lastHeight||(this.lastWidth=n,this.lastHeight=r,this.acceptedSize=!1,this.zone.runOutsideAngular(function(){t.source.next()}),this.reset())}},l.prototype.init=function(){var e,t=this,i=1e3/(this.rateLimit||10);this.subscription=this.source.asObservable().pipe(o.auditTime(i)).subscribe(function(){t.acceptedSize||t.resize.emit()}),this.parentElement=this.element.nativeElement.parentElement,"static"===(e=this.parentElement,getComputedStyle(e,null).getPropertyValue("position"))&&(this.parentElement.style.position="relative"),this.reset(),this.lastWidth=this.parentElement.offsetWidth,this.lastHeight=this.parentElement.offsetHeight,this.state=2},l.prototype.reset=function(){var e=this.expandChild.nativeElement;e.style.width=1e5+"px",e.style.height=1e5+"px";var t=this.expand.nativeElement;t.scrollLeft=1e5,t.scrollTop=1e5;var i=this.shrink.nativeElement;i.scrollLeft=1e5,i.scrollTop=1e5},l.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},n.__decorate([r.Input(),n.__metadata("design:type",Number)],l.prototype,"rateLimit",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],l.prototype,"resize",void 0),n.__decorate([r.ViewChild("expand"),n.__metadata("design:type",r.ElementRef)],l.prototype,"expand",void 0),n.__decorate([r.ViewChild("expandChild"),n.__metadata("design:type",r.ElementRef)],l.prototype,"expandChild",void 0),n.__decorate([r.ViewChild("shrink"),n.__metadata("design:type",r.ElementRef)],l.prototype,"shrink",void 0),n.__decorate([r.Component({selector:"kendo-resize-sensor",styles:[":host { "+u+" }"],template:'<div #expand style="'+u+'"> <div #expandChild style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div #shrink style="'+u+'"> <div style="position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;"></div></div>'}),n.__metadata("design:paramtypes",[a.ResizeBatchService,r.ElementRef,r.NgZone,r.Renderer2])],l));function l(e,t,i,n){this.resizeBatchService=e,this.element=t,this.zone=i,this.renderer=n,this.rateLimit=10,this.resize=new r.EventEmitter,this.source=new s.Subject,this.state=0,this.acceptedSize=!1}t.ResizeSensorComponent=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=(o.prototype.ngOnInit=function(){var t=this;if(this.element&&this.element.nativeElement){var i=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var e in i)i.hasOwnProperty(e)&&t.subscriptions.push(t.renderer.listen(t.element.nativeElement,e,t.scope?i[e].bind(t.scope):i[e]))})}},o.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},n.__decorate([r.Input("kendoEventsOutsideAngular"),n.__metadata("design:type",Object)],o.prototype,"events",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],o.prototype,"scope",void 0),n.__decorate([r.Directive({selector:"[kendoEventsOutsideAngular]"}),n.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2])],o));function o(e,t,i){this.element=e,this.ngZone=t,this.renderer=i,this.events={}}t.EventsOutsideAngularDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChanged=function(e,t,i){return void 0===i&&(i=!0),!(void 0===t[e]||t[e].isFirstChange()&&i||t[e].previousValue===t[e].currentValue)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(23);t.isDocumentAvailable=n.isDocumentAvailable;var r=i(6);t.isChanged=r.isChanged;var s=i(22);t.anyChanged=s.anyChanged;var o=i(21);t.hasObservers=o.hasObservers;var a=i(20);t.guid=a.guid},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(7),o=i(19),a=(u.prototype.ngOnInit=function(){this.toggleDraggable()},u.prototype.ngOnChanges=function(e){s.isChanged("enableDrag",e)&&this.toggleDraggable()},u.prototype.ngOnDestroy=function(){this.destroyDraggable()},u.prototype.toggleDraggable=function(){var t=this;s.isDocumentAvailable()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new o.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)})))},u.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],u.prototype,"enableDrag",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],u.prototype,"kendoPress",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],u.prototype,"kendoDrag",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],u.prototype,"kendoRelease",void 0),n.__decorate([r.Directive({selector:"[kendoDraggable]"}),n.__metadata("design:paramtypes",[r.ElementRef,r.NgZone])],u));function u(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new r.EventEmitter,this.kendoDrag=new r.EventEmitter,this.kendoRelease=new r.EventEmitter}t.DraggableDirective=a},function(e,t,i){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.Keys||(t.Keys={}))[n.Alt=18]="Alt",n[n.ArrowDown=40]="ArrowDown",n[n.ArrowLeft=37]="ArrowLeft",n[n.ArrowRight=39]="ArrowRight",n[n.ArrowUp=38]="ArrowUp",n[n.Backspace=8]="Backspace",n[n.Control=17]="Control",n[n.Delete=46]="Delete",n[n.Digit0=48]="Digit0",n[n.Digit1=49]="Digit1",n[n.Digit2=50]="Digit2",n[n.Digit3=51]="Digit3",n[n.Digit4=52]="Digit4",n[n.Digit5=53]="Digit5",n[n.Digit6=54]="Digit6",n[n.Digit7=55]="Digit7",n[n.Digit8=56]="Digit8",n[n.Digit9=57]="Digit9",n[n.End=35]="End",n[n.Enter=13]="Enter",n[n.Escape=27]="Escape",n[n.F1=112]="F1",n[n.F2=113]="F2",n[n.F10=121]="F10",n[n.Home=36]="Home",n[n.Insert=45]="Insert",n[n.KeyA=65]="KeyA",n[n.KeyB=66]="KeyB",n[n.KeyC=67]="KeyC",n[n.KeyD=68]="KeyD",n[n.KeyE=69]="KeyE",n[n.KeyF=70]="KeyF",n[n.KeyG=71]="KeyG",n[n.KeyH=72]="KeyH",n[n.KeyI=73]="KeyI",n[n.KeyJ=74]="KeyJ",n[n.KeyK=75]="KeyK",n[n.KeyL=76]="KeyL",n[n.KeyM=77]="KeyM",n[n.KeyN=78]="KeyN",n[n.KeyO=79]="KeyO",n[n.KeyP=80]="KeyP",n[n.KeyQ=81]="KeyQ",n[n.KeyR=82]="KeyR",n[n.KeyS=83]="KeyS",n[n.KeyT=84]="KeyT",n[n.KeyU=85]="KeyU",n[n.KeyV=86]="KeyV",n[n.KeyW=87]="KeyW",n[n.KeyX=88]="KeyX",n[n.KeyY=89]="KeyY",n[n.KeyZ=90]="KeyZ",n[n.NumpadDecimal=110]="NumpadDecimal",n[n.PageDown=34]="PageDown",n[n.PageUp=33]="PageUp",n[n.Shift=16]="Shift",n[n.Space=32]="Space",n[n.Tab=9]="Tab"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(9);t.Keys=n.Keys},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function n(){}t.KendoInput=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(4),o=i(2),a=[s.ResizeSensorComponent],u=n.__decorate([r.NgModule({declarations:[a],exports:[a],providers:[o.ResizeBatchService]})],c);function c(){}t.ResizeSensorModule=u},function(e,t){e.exports=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(4);t.ResizeSensorComponent=n.ResizeSensorComponent;var r=i(2);t.ResizeBatchService=r.ResizeBatchService;var s=i(12);t.ResizeSensorModule=s.ResizeSensorModule},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(5),o=n.__decorate([r.NgModule({declarations:[s.EventsOutsideAngularDirective],exports:[s.EventsOutsideAngularDirective]})],a);function a(){}t.EventsModule=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(5);t.EventsOutsideAngularDirective=n.EventsOutsideAngularDirective;var r=i(15);t.EventsModule=r.EventsModule},function(e,t){e.exports=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(8),o=i(17),a=n.__decorate([r.NgModule({declarations:[s.DraggableDirective],exports:[s.DraggableDirective],imports:[o.CommonModule]})],u);function u(){}t.DraggableModule=a},function(e,t){e.exports=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guid=function(){for(var e="",t=0;t<32;t++){var i=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&i|8:i).toString(16)}return e}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasObservers=function(e){return e&&0<e.observers.length}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6);t.anyChanged=function(e,t,i){return void 0===i&&(i=!0),e.some(function(e){return n.isChanged(e,t,i)})}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDocumentAvailable=function(){return"undefined"!=typeof document}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(8);t.DraggableDirective=n.DraggableDirective;var r=i(18);t.DraggableModule=r.DraggableModule},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0);n.__exportStar(i(24),t),n.__exportStar(i(16),t),n.__exportStar(i(14),t),n.__exportStar(i(11),t),n.__exportStar(i(7),t),n.__exportStar(i(10),t),function(e){for(var t in e)s(t,e[t])}(t)}],n.c=r,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=25)}}}); | ||
System.register("@progress/kendo-angular-common",["tslib","@angular/core","rxjs","@angular/common","rxjs/operators","@telerik/kendo-draggable"],function(s){var o,a,u,c,d,l;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){o=t(e)},function(e){a=t(e)},function(e){u=t(e)},function(e){c=t(e)},function(e){d=t(e)},function(e){l=t(e)}],execute:function(){function n(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,r;r={},n.m=i=[function(e,t){e.exports=o},function(e,t){e.exports=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(3),o=(a.prototype.schedule=function(e,t){var i=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular(function(){i.subscription=s.from(i.resolvedPromise).subscribe(i.flush)})},a.prototype.isScheduled=function(t){return Boolean(this.scheduled.find(function(e){return e.instance===t}))},a.prototype.cancel=function(e){for(var t=this.scheduled,i=t.length,n=0;n<i;n++)if(t[n].instance===e)return t.splice(n,1),void(t.length||this.unsubscribe())},a.prototype.ngOnDestroy=function(){this.unsubscribe()},a.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},a.prototype.flush=function(){this.scheduled.forEach(function(e){e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()},n.__decorate([r.Injectable(),n.__metadata("design:paramtypes",[r.NgZone])],a));function a(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}t.ResizeBatchService=o},function(e,t){e.exports=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(3),o=i(13),a=i(2),u="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",c=(d.prototype.ngAfterViewInit=function(){var n=this;this.zone.runOutsideAngular(function(){var e=n.scroll.bind(n),t=n.renderer.listen(n.expand.nativeElement,"scroll",e),i=n.renderer.listen(n.shrink.nativeElement,"scroll",e);n.detachScrollHandlers=function(){t(),i()}})},d.prototype.ngAfterViewChecked=function(){"undefined"!=typeof document&&(2!==this.state?0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init)):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.scroll))},d.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.detachScrollHandlers&&this.detachScrollHandlers(),this.resizeBatchService.cancel(this)},d.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},d.prototype.scroll=function(e){var t=this;if(this.parentElement){var i=this.measure(),n=i.width,r=i.height;n===this.lastWidth&&r===this.lastHeight||(this.lastWidth=n,this.lastHeight=r,this.acceptedSize=!1,this.zone.runOutsideAngular(function(){t.source.next()}),this.reset())}},d.prototype.init=function(){var e,t=this,i=1e3/(this.rateLimit||10);this.subscription=this.source.asObservable().pipe(o.auditTime(i)).subscribe(function(){t.acceptedSize||t.resize.emit()}),this.parentElement=this.element.nativeElement.parentElement,"static"===(e=this.parentElement,getComputedStyle(e,null).getPropertyValue("position"))&&(this.parentElement.style.position="relative"),this.reset(),this.lastWidth=this.parentElement.offsetWidth,this.lastHeight=this.parentElement.offsetHeight,this.state=2},d.prototype.reset=function(){var e=this.expandChild.nativeElement;e.style.width=1e5+"px",e.style.height=1e5+"px";var t=this.expand.nativeElement;t.scrollLeft=1e5,t.scrollTop=1e5;var i=this.shrink.nativeElement;i.scrollLeft=1e5,i.scrollTop=1e5},d.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},n.__decorate([r.Input(),n.__metadata("design:type",Number)],d.prototype,"rateLimit",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],d.prototype,"resize",void 0),n.__decorate([r.HostBinding("attr.dir"),n.__metadata("design:type",String)],d.prototype,"dir",void 0),n.__decorate([r.ViewChild("expand"),n.__metadata("design:type",r.ElementRef)],d.prototype,"expand",void 0),n.__decorate([r.ViewChild("expandChild"),n.__metadata("design:type",r.ElementRef)],d.prototype,"expandChild",void 0),n.__decorate([r.ViewChild("shrink"),n.__metadata("design:type",r.ElementRef)],d.prototype,"shrink",void 0),n.__decorate([r.Component({selector:"kendo-resize-sensor",styles:[":host { "+u+" }"],template:'<div #expand style="'+u+'"> <div #expandChild style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div #shrink style="'+u+'"> <div style="position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;"></div></div>'}),n.__metadata("design:paramtypes",[a.ResizeBatchService,r.ElementRef,r.NgZone,r.Renderer2])],d));function d(e,t,i,n){this.resizeBatchService=e,this.element=t,this.zone=i,this.renderer=n,this.rateLimit=10,this.resize=new r.EventEmitter,this.dir="ltr",this.source=new s.Subject,this.state=0,this.acceptedSize=!1}t.ResizeSensorComponent=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=(o.prototype.ngOnInit=function(){var t=this;if(this.element&&this.element.nativeElement){var i=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var e in i)i.hasOwnProperty(e)&&t.subscriptions.push(t.renderer.listen(t.element.nativeElement,e,t.scope?i[e].bind(t.scope):i[e]))})}},o.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},n.__decorate([r.Input("kendoEventsOutsideAngular"),n.__metadata("design:type",Object)],o.prototype,"events",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],o.prototype,"scope",void 0),n.__decorate([r.Directive({selector:"[kendoEventsOutsideAngular]"}),n.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2])],o));function o(e,t,i){this.element=e,this.ngZone=t,this.renderer=i,this.events={}}t.EventsOutsideAngularDirective=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChanged=function(e,t,i){return void 0===i&&(i=!0),!(void 0===t[e]||t[e].isFirstChange()&&i||t[e].previousValue===t[e].currentValue)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(23);t.isDocumentAvailable=n.isDocumentAvailable;var r=i(6);t.isChanged=r.isChanged;var s=i(22);t.anyChanged=s.anyChanged;var o=i(21);t.hasObservers=o.hasObservers;var a=i(20);t.guid=a.guid},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(7),o=i(19),a=(u.prototype.ngOnInit=function(){this.toggleDraggable()},u.prototype.ngOnChanges=function(e){s.isChanged("enableDrag",e)&&this.toggleDraggable()},u.prototype.ngOnDestroy=function(){this.destroyDraggable()},u.prototype.toggleDraggable=function(){var t=this;s.isDocumentAvailable()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new o.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)})))},u.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],u.prototype,"enableDrag",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],u.prototype,"kendoPress",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],u.prototype,"kendoDrag",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],u.prototype,"kendoRelease",void 0),n.__decorate([r.Directive({selector:"[kendoDraggable]"}),n.__metadata("design:paramtypes",[r.ElementRef,r.NgZone])],u));function u(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new r.EventEmitter,this.kendoDrag=new r.EventEmitter,this.kendoRelease=new r.EventEmitter}t.DraggableDirective=a},function(e,t,i){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.Keys||(t.Keys={}))[n.Alt=18]="Alt",n[n.ArrowDown=40]="ArrowDown",n[n.ArrowLeft=37]="ArrowLeft",n[n.ArrowRight=39]="ArrowRight",n[n.ArrowUp=38]="ArrowUp",n[n.Backspace=8]="Backspace",n[n.Control=17]="Control",n[n.Delete=46]="Delete",n[n.Digit0=48]="Digit0",n[n.Digit1=49]="Digit1",n[n.Digit2=50]="Digit2",n[n.Digit3=51]="Digit3",n[n.Digit4=52]="Digit4",n[n.Digit5=53]="Digit5",n[n.Digit6=54]="Digit6",n[n.Digit7=55]="Digit7",n[n.Digit8=56]="Digit8",n[n.Digit9=57]="Digit9",n[n.End=35]="End",n[n.Enter=13]="Enter",n[n.Escape=27]="Escape",n[n.F1=112]="F1",n[n.F2=113]="F2",n[n.F10=121]="F10",n[n.Home=36]="Home",n[n.Insert=45]="Insert",n[n.KeyA=65]="KeyA",n[n.KeyB=66]="KeyB",n[n.KeyC=67]="KeyC",n[n.KeyD=68]="KeyD",n[n.KeyE=69]="KeyE",n[n.KeyF=70]="KeyF",n[n.KeyG=71]="KeyG",n[n.KeyH=72]="KeyH",n[n.KeyI=73]="KeyI",n[n.KeyJ=74]="KeyJ",n[n.KeyK=75]="KeyK",n[n.KeyL=76]="KeyL",n[n.KeyM=77]="KeyM",n[n.KeyN=78]="KeyN",n[n.KeyO=79]="KeyO",n[n.KeyP=80]="KeyP",n[n.KeyQ=81]="KeyQ",n[n.KeyR=82]="KeyR",n[n.KeyS=83]="KeyS",n[n.KeyT=84]="KeyT",n[n.KeyU=85]="KeyU",n[n.KeyV=86]="KeyV",n[n.KeyW=87]="KeyW",n[n.KeyX=88]="KeyX",n[n.KeyY=89]="KeyY",n[n.KeyZ=90]="KeyZ",n[n.NumpadDecimal=110]="NumpadDecimal",n[n.PageDown=34]="PageDown",n[n.PageUp=33]="PageUp",n[n.Shift=16]="Shift",n[n.Space=32]="Space",n[n.Tab=9]="Tab"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(9);t.Keys=n.Keys},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function n(){}t.KendoInput=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(4),o=i(2),a=[s.ResizeSensorComponent],u=n.__decorate([r.NgModule({declarations:[a],exports:[a],providers:[o.ResizeBatchService]})],c);function c(){}t.ResizeSensorModule=u},function(e,t){e.exports=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(4);t.ResizeSensorComponent=n.ResizeSensorComponent;var r=i(2);t.ResizeBatchService=r.ResizeBatchService;var s=i(12);t.ResizeSensorModule=s.ResizeSensorModule},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(5),o=n.__decorate([r.NgModule({declarations:[s.EventsOutsideAngularDirective],exports:[s.EventsOutsideAngularDirective]})],a);function a(){}t.EventsModule=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(5);t.EventsOutsideAngularDirective=n.EventsOutsideAngularDirective;var r=i(15);t.EventsModule=r.EventsModule},function(e,t){e.exports=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=i(1),s=i(8),o=i(17),a=n.__decorate([r.NgModule({declarations:[s.DraggableDirective],exports:[s.DraggableDirective],imports:[o.CommonModule]})],u);function u(){}t.DraggableModule=a},function(e,t){e.exports=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guid=function(){for(var e="",t=0;t<32;t++){var i=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&i|8:i).toString(16)}return e}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasObservers=function(e){return e&&0<e.observers.length}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6);t.anyChanged=function(e,t,i){return void 0===i&&(i=!0),e.some(function(e){return n.isChanged(e,t,i)})}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDocumentAvailable=function(){return"undefined"!=typeof document}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(8);t.DraggableDirective=n.DraggableDirective;var r=i(18);t.DraggableModule=r.DraggableModule},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0);n.__exportStar(i(24),t),n.__exportStar(i(16),t),n.__exportStar(i(14),t),n.__exportStar(i(11),t),n.__exportStar(i(7),t),n.__exportStar(i(10),t),function(e){for(var t in e)s(t,e[t])}(t)}],n.c=r,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=25)}}}); |
@@ -6,3 +6,3 @@ { | ||
"license": "SEE LICENSE in LICENSE.md", | ||
"version": "1.1.0-dev.201908081441", | ||
"version": "1.1.0-dev.201908210928", | ||
"main": "dist/npm/index.js", | ||
@@ -9,0 +9,0 @@ "module": "dist/fesm5/index.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
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
158512
2801