Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-angular-popup

Package Overview
Dependencies
Maintainers
1
Versions
902
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-angular-popup - npm Package Compare versions

Comparing version 0.14.0 to 0.14.1

2

dist/cdn/js/kendo-angular-popup.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("rxjs/Observable"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/auditTime"),require("rxjs/add/observable/merge"),require("@angular/common")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs/Observable","rxjs/add/observable/fromEvent","rxjs/add/operator/auditTime","rxjs/add/observable/merge","@angular/common"],e):"object"==typeof exports?exports.KendoAngularPopup=e(require("@angular/core"),require("rxjs/Observable"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/auditTime"),require("rxjs/add/observable/merge"),require("@angular/common")):t.KendoAngularPopup=e(t["@angular/core"],t["rxjs/Observable"],t["rxjs/add/observable/fromEvent"],t["rxjs/add/operator/auditTime"],t["rxjs/add/observable/merge"],t["@angular/common"])}(this,function(t,e,o,n,r,i){return function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";var n=o(1);e.PopupComponent=n.PopupComponent;var r=o(33);e.PopupModule=r.PopupModule},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(3),u=o(4),f=o(22),c=o(23),l=o(27),a=o(21);o(29);var p={left:0,top:0},d=function(){function t(t,e,o,n,r,s,u){this._alignService=t,this.container=e,this._cdr=o,this._positionService=n,this._resizeService=r,this._scrollableService=s,this._renderer=u,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.offset=p,this.anchorViewportLeave=new i.EventEmitter,this.direction="down",this.currentOffset=p,this.resolvedPromised=Promise.resolve(null),u.setElementClass(e.nativeElement,"k-animation-container",!0),u.setElementClass(e.nativeElement,"k-animation-container-fixed",!0)}return Object.defineProperty(t.prototype,"offsetLeft",{get:function(){return this.currentOffset.left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetTop",{get:function(){return this.currentOffset.top},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this.reposition.bind(this);this._resizeService.subscribe(t),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this))},t.prototype.ngAfterViewChecked=function(){var t=this,e=this.position(),o=e.flipped,n=e.offset,r=this.getDirection(o);(this.direction!==r||a.isDifferentOffset(this.currentOffset,n))&&this.resolvedPromised.then(function(){t.currentOffset=n,t.direction=r,t._cdr.markForCheck()})},t.prototype.ngOnDestroy=function(){this._resizeService.unsubscribe(),this._scrollableService.unsubscribe()},t.prototype.reposition=function(){if(a.isDocumentAvailable()){var t=this.position(),e=t.flipped,o=t.offset;this.direction=this.getDirection(e),this.currentOffset=o}},t.prototype.position=function(){var t=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,offset:this.offset});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:t,element:this.container,elementAlign:this.popupAlign})},t.prototype.getDirection=function(t){return this.animate?t?"up":"down":"none"},t.prototype.onScroll=function(t){t?this.reposition():this.anchorViewportLeave.emit()},n([i.Input(),r("design:type",Boolean)],t.prototype,"animate",void 0),n([i.Input(),r("design:type",i.ElementRef)],t.prototype,"anchor",void 0),n([i.Input(),r("design:type",Object)],t.prototype,"anchorAlign",void 0),n([i.Input(),r("design:type",Object)],t.prototype,"collision",void 0),n([i.Input(),r("design:type",Object)],t.prototype,"popupAlign",void 0),n([i.Input(),r("design:type",String)],t.prototype,"popupClass",void 0),n([i.Input(),r("design:type",Object)],t.prototype,"offset",void 0),n([i.Output(),r("design:type",i.EventEmitter)],t.prototype,"anchorViewportLeave",void 0),n([i.HostBinding("style.left.px"),r("design:type",Number)],t.prototype,"offsetLeft",null),n([i.HostBinding("style.top.px"),r("design:type",Number)],t.prototype,"offsetTop",null),t=n([i.Component({animations:[i.trigger("toggle",[i.transition("void => down, up => down",[i.style({transform:"translateY(-100%)"}),i.animate("0.2s ease-in",i.style({transform:"translateY(0)"}))]),i.transition("down => void",[i.style({transform:"translateY(0)"}),i.animate("0.2s ease-in",i.style({transform:"translateY(-100%)"}))]),i.transition("void => up, down => up",[i.style({transform:"translateY(100%)"}),i.animate("0.2s ease-in",i.style({transform:"translateY(0)"}))]),i.transition("up => void",[i.style({transform:"translateY(0)"}),i.animate("0.2s ease-in",i.style({transform:"translateY(100%)"}))])])],exportAs:"kendo-popup",providers:[s.AlignService,u.DOMService,f.PositionService,c.ResizeService,l.ScrollableService],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" [@toggle]="direction">\n <ng-content></ng-content>\n </div>\n '}),r("design:paramtypes",[s.AlignService,i.ElementRef,i.ChangeDetectorRef,f.PositionService,c.ResizeService,l.ScrollableService,i.Renderer])],t)}();e.PopupComponent=d},function(e,o){e.exports=t},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(4),u=o(21),f=function(){function t(t){this._dom=t}return t.prototype.alignElement=function(t){var e=t.anchor,o=t.element,n=t.anchorAlign,r=t.elementAlign,i=t.offset,s=u.eitherRect(this._dom.offset(e),i);return e||(s=this._dom.removeScroll(s,this._dom.scrollPosition(o))),this._dom.align({anchorAlign:n,anchorRect:s,elementAlign:r,elementRect:this._dom.offset(o)})},t=n([i.Injectable(),r("design:paramtypes",[s.DOMService])],t)}();e.AlignService=f},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(5),u=o(21),f=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.align=function(t){return s.align(t)},t.prototype.boundingOffset=function(t){return s.boundingOffset(this.nativeElement(t))},t.prototype.getWindow=function(){return u.isWindowAvailable()?window:null},t.prototype.isBodyOffset=function(t){return s.isBodyOffset(this.nativeElement(t))},t.prototype.offset=function(t){return t?s.offset(this.nativeElement(t)):null},t.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},t.prototype.position=function(t){return t?s.position(this.nativeElement(t)):null},t.prototype.relativeOffset=function(t,e){return s.applyLocationOffset(this.offset(t),e,this.isBodyOffset(t))},t.prototype.removeScroll=function(t,e){return s.removeScroll(t,e)},t.prototype.restrictToView=function(t){return s.restrictToView(t)},t.prototype.scrollPosition=function(t){return s.scrollPosition(this.nativeElement(t))},t.prototype.scrollableParents=function(t){return u.scrollableParents(this.nativeElement(t))},t.prototype.windowViewPort=function(t){return s.getWindowViewPort(this.nativeElement(t))},t=n([i.Injectable(),r("design:paramtypes",[])],t)}();e.DOMService=f},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){t.exports=o(10)},,function(t,e){t.exports=o(6)},,,,,,,function(t,e){t.exports=o(7)},function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.getWindowViewPort=e.getWindow=e.scrollPosition=e.restrictToView=e.removeScroll=e.position=e.offset=e.offsetParent=e.isBodyOffset=e.getDocumentElement=e.Collision=e.boundingOffset=e.applyLocationOffset=e.AlignPoint=e.align=void 0;var r=o(11),i=n(r),s=o(2),u=n(s),f=o(12),c=n(f),l=o(13),a=n(l),p=o(14),d=n(p),h=o(15),v=n(h),m=o(16),g=n(m),x=o(9),b=n(x),y=o(17),_=n(y),O=o(18),w=n(O),P=o(19),j=n(P),R=o(20),A=n(R),S=o(21),M=n(S),E=o(22),D=n(E),z=o(23),C=n(z);e.align=i.default,e.AlignPoint=u.default,e.applyLocationOffset=c.default,e.boundingOffset=a.default,e.Collision=d.default,e.getDocumentElement=v.default,e.isBodyOffset=g.default,e.offsetParent=b.default,e.offset=_.default,e.position=w.default,e.removeScroll=j.default,e.restrictToView=A.default,e.scrollPosition=M.default,e.getWindow=D.default,e.getWindowViewPort=C.default},function(t,e){t.exports=o(9)},function(t,e){t.exports=o(10)},function(t,e){t.exports=o(11)},function(t,e){t.exports=o(12)},function(t,e){t.exports=o(8)},function(t,e){t.exports=o(13)},function(t,e){t.exports=o(14)},function(t,e){t.exports=o(15)},function(t,e){t.exports=o(17)},function(t,e){t.exports=o(18)},function(t,e){t.exports=o(19)},function(t,e){t.exports=o(16)},function(t,e){t.exports=o(20)}])},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){t.exports=o(3)},,,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"}}])},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(25)},15:function(t,e){t.exports=o(8)},25:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(15),i=n(r);e.default=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||(0,i.default)(t)}}})},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(7)},7:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.ownerDocument.documentElement}}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){t.exports=o(1)},function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(2),i=n(r);e.default=function(t){var e=t.anchorRect,o=t.anchorAlign,n=t.elementRect,r=t.elementAlign,s=o.horizontal,u=o.vertical,f=r.horizontal,c=r.vertical,l=e.top,a=e.left;return u===i.default.bottom&&(l+=e.height),u!==i.default.center&&u!==i.default.middle||(l+=Math.round(e.height/2)),c===i.default.bottom&&(l-=n.height),c!==i.default.center&&c!==i.default.middle||(l-=Math.round(n.height/2)),s===i.default.right&&(a+=e.width),s!==i.default.center&&s!==i.default.middle||(a+=Math.round(e.width/2)),f===i.default.right&&(a-=n.width),f!==i.default.center&&f!==i.default.middle||(a-=Math.round(n.width/2)),{top:l,left:a}}},function(t,e){t.exports=o(6)}])},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){t.exports=o(4)},,,,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,o){var n=t.top,r=t.left;return o&&(r=0,n=0),{top:n+e.top,left:r+e.left,height:t.height,width:t.width}}}])},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(5)},5:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(!t.getBoundingClientRect)return{bottom:t.innerHeight,left:0,right:t.innerWidth,top:0};var e=t.getBoundingClientRect(),o=e.bottom,n=e.left,r=e.right,i=e.top;return{bottom:o,left:n,right:r,top:i}}}})},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(6)},6:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={fit:"fit",flip:"flip"}}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(8)},8:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(9),i=n(r);e.default=function(t){return(0,i.default)(t)===t.ownerDocument.body}},9:function(t,e){t.exports=o(7)}})},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(24)},24:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){var e=t.style,o=e.display,n=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=o,t.style.left=n,t.style.position=r,i};e.default=function(t){var e=t.getBoundingClientRect(),n=e,r=n.left,i=n.top;return e.height||e.width||(e=o(t),r=e.left,i=e.top),{top:i,left:r,height:e.height,width:e.width}}}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(27)},9:function(t,e){t.exports=o(7)},17:function(t,e){t.exports=o(14)},22:function(t,e){t.exports=o(16)},27:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(9),i=n(r),s=o(17),u=n(s),f=o(22),c=n(f);e.default=function(t){var e=(0,c.default)(t),o=e.getComputedStyle(t),n=(0,u.default)(t),r=(0,i.default)(t),s=e.getComputedStyle(r),f={top:0,left:0};return"fixed"!==o.position&&r!==t.ownerDocument.body&&(f=(0,u.default)(r),f.top+=parseInt(s.borderTopWidth,10),f.left+=parseInt(s.borderLeftWidth,10)),{top:n.top-f.top-parseInt(o.marginTop,10),left:n.left-f.left-parseInt(o.marginLeft,10),height:n.height,width:n.width}}}})},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(31)},31:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.ownerDocument.defaultView}}})},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(28)},28:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(29)},2:function(t,e){t.exports=o(6)},14:function(t,e){t.exports=o(12)},29:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(2),i=n(r),s=o(14),u=n(s),f=function(t,e,o){var n=0;return t+e>o&&(n=o-(t+e)),t<0&&(n=-t),n},c=function(t){var e=t.offset,o=t.size,n=t.anchorSize,r=t.viewPortSize,s=t.anchorAlignPoint,u=t.elementAlignPoint,f=0,c=u===i.default.center||u===i.default.middle,l=s===i.default.center||s===i.default.middle;return u===s||c||l||(e+o>r&&(f+=-(n+o)),e+f<0&&(f+=n+o)),f};e.default=function(t){var e=t.anchorRect,o=t.anchorAlign,n=t.elementRect,r=t.elementAlign,i=t.collisions,s=t.viewPort,l=n.top,a=n.left,p=n.height,d=n.width,h=s.height,v=s.width,m=0,g=0,x=i.horizontal===u.default.flip,b=i.vertical===u.default.flip;return i.vertical===u.default.fit&&(g+=f(l,p,h)),i.horizontal===u.default.fit&&(m+=f(a,d,v)),b&&(g+=c({offset:l,size:p,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:o.vertical,elementAlignPoint:r.vertical})),x&&(m+=c({offset:a,size:d,anchorSize:e.width,viewPortSize:v,anchorAlignPoint:o.horizontal,elementAlignPoint:r.horizontal})),{flipped:x&&0!==m||b&&0!==g,offset:{left:m,top:g}}}}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(30)},15:function(t,e){t.exports=o(8)},22:function(t,e){t.exports=o(16)},30:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)(t),o=(0,u.default)(t);return{x:o.pageXOffset||e.scrollLeft||0,y:o.pageYOffset||e.scrollTop||0}};var r=o(15),i=n(r),s=o(22),u=n(s)}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(32)},22:function(t,e){t.exports=o(16)},32:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)(t);return{height:e.innerHeight,width:e.innerWidth}};var r=o(22),i=n(r)}})},function(t,e){"use strict";var o=function(t,e){return t?t:{height:0,left:e.left,top:e.top,width:0}};e.eitherRect=o;var n=function(t,e){var o=t.left,n=t.top,r=e.left,i=e.top;return o!==r||n!==i};e.isDifferentOffset=n;var r=function(){return"undefined"!=typeof document};e.isDocumentAvailable=r;var i=function(){return"undefined"!=typeof window};e.isWindowAvailable=i;var s=function(t){return!!t.getBoundingClientRect};e.hasBoundingRect=s;var u=/auto|scroll/,f=function(t){var e=[];if(!r()||!i())return e;for(var o=t.parentElement;o;)u.test(window.getComputedStyle(o).overflow)&&e.push(o),o=o.parentElement;return e.push(window),e};e.scrollableParents=f;var c=1e3/60;e.FRAME_DURATION=c},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(4),u=o(21),f=function(){function t(t){this._dom=t}return t.prototype.positionElement=function(t){var e=t.anchor,o=t.currentLocation,n=t.element,r=t.anchorAlign,i=t.elementAlign,s=t.collisions,f=t.viewPort||this._dom.windowViewPort(n),c=u.eitherRect(this._dom.offset(e),o),l=this._dom.offset(n),a={height:l.height,left:o.left,top:o.top,width:l.width},p=this._dom.restrictToView({anchorAlign:r,anchorRect:c,collisions:s,elementAlign:i,elementRect:a,viewPort:f});return{flipped:p.flipped,offset:this._dom.addOffset(a,p.offset)}},t=n([i.Injectable(),r("design:paramtypes",[s.DOMService])],t)}();e.PositionService=f},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(24);o(25),o(26);var u=o(21),f=o(4),c=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.subscribe=function(t){var e=this;u.isDocumentAvailable()&&this._zone.runOutsideAngular(function(){e.subscription=s.Observable.fromEvent(e._dom.getWindow(),"resize").auditTime(u.FRAME_DURATION).subscribe(function(){return e._zone.run(function(){return t()})})})},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},t=n([i.Injectable(),r("design:paramtypes",[f.DOMService,i.NgZone])],t)}();e.ResizeService=c},function(t,o){t.exports=e},function(t,e){t.exports=o},function(t,e){t.exports=n},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(24);o(25),o(28),o(26);var u=o(4),f=o(21),c=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.forElement=function(t){return this.unsubscribe(),this.element=t,this},t.prototype.subscribe=function(t){var e=this;if(t&&f.isDocumentAvailable()&&this.element){var o=this._dom.nativeElement(this.element),n=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(function(){var r=n.map(function(t){return s.Observable.fromEvent(t,"scroll").auditTime(f.FRAME_DURATION)}),i=function(n){return e._zone.run(function(){return t(e.isVisible(o,n.target))})};e.subscription=s.Observable.merge.apply(s.Observable,r).subscribe(i)})}},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isVisible=function(t,e){var o=this._dom.boundingOffset(t),n=this._dom.boundingOffset(e);return!(o.bottom<n.top)&&(!(o.bottom>n.bottom)&&(!(o.right>n.right)&&!(o.left<n.left)))},t=n([i.Injectable(),r("design:paramtypes",[u.DOMService,i.NgZone])],t)}();e.ScrollableService=c},function(t,e){t.exports=r},function(t,e){},,,,function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(34),u=o(1),f=[u.PopupComponent],c=function(){function t(){}return t=n([i.NgModule({declarations:[f],exports:[f],imports:[s.CommonModule]}),r("design:paramtypes",[])],t)}();e.PopupModule=c},function(t,e){t.exports=i}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("rxjs/Observable"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/auditTime"),require("rxjs/add/observable/merge"),require("@angular/common")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs/Observable","rxjs/add/observable/fromEvent","rxjs/add/operator/auditTime","rxjs/add/observable/merge","@angular/common"],e):"object"==typeof exports?exports.KendoAngularPopup=e(require("@angular/core"),require("rxjs/Observable"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/auditTime"),require("rxjs/add/observable/merge"),require("@angular/common")):t.KendoAngularPopup=e(t["@angular/core"],t["rxjs/Observable"],t["rxjs/add/observable/fromEvent"],t["rxjs/add/operator/auditTime"],t["rxjs/add/observable/merge"],t["@angular/common"])}(this,function(t,e,o,n,r,i){return function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";var n=o(1);e.PopupComponent=n.PopupComponent;var r=o(29);e.PopupModule=r.PopupModule},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(3),u=o(4),f=o(22),c=o(23),l=o(27),a=o(21),p={left:0,top:0},d=function(){function t(t,e,o,n,r,s,u){this._alignService=t,this.container=e,this._cdr=o,this._positionService=n,this._resizeService=r,this._scrollableService=s,this._renderer=u,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.offset=p,this.anchorViewportLeave=new i.EventEmitter,this.direction="down",this.currentOffset=p,this.resolvedPromised=Promise.resolve(null),u.setElementClass(e.nativeElement,"k-animation-container",!0),u.setElementClass(e.nativeElement,"k-animation-container-fixed",!0)}return Object.defineProperty(t.prototype,"offsetLeft",{get:function(){return this.currentOffset.left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetTop",{get:function(){return this.currentOffset.top},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this.reposition.bind(this);this._resizeService.subscribe(t),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this))},t.prototype.ngAfterViewChecked=function(){var t=this,e=this.position(),o=e.flipped,n=e.offset,r=this.getDirection(o);(this.direction!==r||a.isDifferentOffset(this.currentOffset,n))&&this.resolvedPromised.then(function(){t.currentOffset=n,t.direction=r,t._cdr.markForCheck()})},t.prototype.ngOnDestroy=function(){this._resizeService.unsubscribe(),this._scrollableService.unsubscribe()},t.prototype.reposition=function(){if(a.isDocumentAvailable()){var t=this.position(),e=t.flipped,o=t.offset;this.direction=this.getDirection(e),this.currentOffset=o}},t.prototype.position=function(){var t=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,offset:this.offset});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:t,element:this.container,elementAlign:this.popupAlign})},t.prototype.getDirection=function(t){return this.animate?t?"up":"down":"none"},t.prototype.onScroll=function(t){t?this.reposition():this.anchorViewportLeave.emit()},n([i.Input(),r("design:type",Boolean)],t.prototype,"animate",void 0),n([i.Input(),r("design:type",i.ElementRef)],t.prototype,"anchor",void 0),n([i.Input(),r("design:type",Object)],t.prototype,"anchorAlign",void 0),n([i.Input(),r("design:type",Object)],t.prototype,"collision",void 0),n([i.Input(),r("design:type",Object)],t.prototype,"popupAlign",void 0),n([i.Input(),r("design:type",String)],t.prototype,"popupClass",void 0),n([i.Input(),r("design:type",Object)],t.prototype,"offset",void 0),n([i.Output(),r("design:type",i.EventEmitter)],t.prototype,"anchorViewportLeave",void 0),n([i.HostBinding("style.left.px"),r("design:type",Number)],t.prototype,"offsetLeft",null),n([i.HostBinding("style.top.px"),r("design:type",Number)],t.prototype,"offsetTop",null),t=n([i.Component({animations:[i.trigger("toggle",[i.transition("void => down, up => down",[i.style({transform:"translateY(-100%)"}),i.animate("0.2s ease-in",i.style({transform:"translateY(0)"}))]),i.transition("down => void",[i.style({transform:"translateY(0)"}),i.animate("0.2s ease-in",i.style({transform:"translateY(-100%)"}))]),i.transition("void => up, down => up",[i.style({transform:"translateY(100%)"}),i.animate("0.2s ease-in",i.style({transform:"translateY(0)"}))]),i.transition("up => void",[i.style({transform:"translateY(0)"}),i.animate("0.2s ease-in",i.style({transform:"translateY(100%)"}))])])],exportAs:"kendo-popup",providers:[s.AlignService,u.DOMService,f.PositionService,c.ResizeService,l.ScrollableService],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" [@toggle]="direction">\n <ng-content></ng-content>\n </div>\n '}),r("design:paramtypes",[s.AlignService,i.ElementRef,i.ChangeDetectorRef,f.PositionService,c.ResizeService,l.ScrollableService,i.Renderer])],t)}();e.PopupComponent=d},function(e,o){e.exports=t},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(4),u=o(21),f=function(){function t(t){this._dom=t}return t.prototype.alignElement=function(t){var e=t.anchor,o=t.element,n=t.anchorAlign,r=t.elementAlign,i=t.offset,s=u.eitherRect(this._dom.offset(e),i);return e||(s=this._dom.removeScroll(s,this._dom.scrollPosition(o))),this._dom.align({anchorAlign:n,anchorRect:s,elementAlign:r,elementRect:this._dom.offset(o)})},t=n([i.Injectable(),r("design:paramtypes",[s.DOMService])],t)}();e.AlignService=f},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(5),u=o(21),f=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.align=function(t){return s.align(t)},t.prototype.boundingOffset=function(t){return s.boundingOffset(this.nativeElement(t))},t.prototype.getWindow=function(){return u.isWindowAvailable()?window:null},t.prototype.isBodyOffset=function(t){return s.isBodyOffset(this.nativeElement(t))},t.prototype.offset=function(t){return t?s.offset(this.nativeElement(t)):null},t.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},t.prototype.position=function(t){return t?s.position(this.nativeElement(t)):null},t.prototype.relativeOffset=function(t,e){return s.applyLocationOffset(this.offset(t),e,this.isBodyOffset(t))},t.prototype.removeScroll=function(t,e){return s.removeScroll(t,e)},t.prototype.restrictToView=function(t){return s.restrictToView(t)},t.prototype.scrollPosition=function(t){return s.scrollPosition(this.nativeElement(t))},t.prototype.scrollableParents=function(t){return u.scrollableParents(this.nativeElement(t))},t.prototype.windowViewPort=function(t){return s.getWindowViewPort(this.nativeElement(t))},t=n([i.Injectable(),r("design:paramtypes",[])],t)}();e.DOMService=f},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){t.exports=o(10)},,function(t,e){t.exports=o(6)},,,,,,,function(t,e){t.exports=o(7)},function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.getWindowViewPort=e.getWindow=e.scrollPosition=e.restrictToView=e.removeScroll=e.position=e.offset=e.offsetParent=e.isBodyOffset=e.getDocumentElement=e.Collision=e.boundingOffset=e.applyLocationOffset=e.AlignPoint=e.align=void 0;var r=o(11),i=n(r),s=o(2),u=n(s),f=o(12),c=n(f),l=o(13),a=n(l),p=o(14),d=n(p),h=o(15),v=n(h),m=o(16),g=n(m),x=o(9),b=n(x),y=o(17),_=n(y),O=o(18),w=n(O),P=o(19),j=n(P),R=o(20),A=n(R),S=o(21),M=n(S),E=o(22),D=n(E),z=o(23),C=n(z);e.align=i.default,e.AlignPoint=u.default,e.applyLocationOffset=c.default,e.boundingOffset=a.default,e.Collision=d.default,e.getDocumentElement=v.default,e.isBodyOffset=g.default,e.offsetParent=b.default,e.offset=_.default,e.position=w.default,e.removeScroll=j.default,e.restrictToView=A.default,e.scrollPosition=M.default,e.getWindow=D.default,e.getWindowViewPort=C.default},function(t,e){t.exports=o(9)},function(t,e){t.exports=o(10)},function(t,e){t.exports=o(11)},function(t,e){t.exports=o(12)},function(t,e){t.exports=o(8)},function(t,e){t.exports=o(13)},function(t,e){t.exports=o(14)},function(t,e){t.exports=o(15)},function(t,e){t.exports=o(17)},function(t,e){t.exports=o(18)},function(t,e){t.exports=o(19)},function(t,e){t.exports=o(16)},function(t,e){t.exports=o(20)}])},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){t.exports=o(3)},,,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"}}])},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(25)},15:function(t,e){t.exports=o(8)},25:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(15),i=n(r);e.default=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||(0,i.default)(t)}}})},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(7)},7:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.ownerDocument.documentElement}}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){t.exports=o(1)},function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(2),i=n(r);e.default=function(t){var e=t.anchorRect,o=t.anchorAlign,n=t.elementRect,r=t.elementAlign,s=o.horizontal,u=o.vertical,f=r.horizontal,c=r.vertical,l=e.top,a=e.left;return u===i.default.bottom&&(l+=e.height),u!==i.default.center&&u!==i.default.middle||(l+=Math.round(e.height/2)),c===i.default.bottom&&(l-=n.height),c!==i.default.center&&c!==i.default.middle||(l-=Math.round(n.height/2)),s===i.default.right&&(a+=e.width),s!==i.default.center&&s!==i.default.middle||(a+=Math.round(e.width/2)),f===i.default.right&&(a-=n.width),f!==i.default.center&&f!==i.default.middle||(a-=Math.round(n.width/2)),{top:l,left:a}}},function(t,e){t.exports=o(6)}])},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){t.exports=o(4)},,,,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,o){var n=t.top,r=t.left;return o&&(r=0,n=0),{top:n+e.top,left:r+e.left,height:t.height,width:t.width}}}])},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(5)},5:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(!t.getBoundingClientRect)return{bottom:t.innerHeight,left:0,right:t.innerWidth,top:0};var e=t.getBoundingClientRect(),o=e.bottom,n=e.left,r=e.right,i=e.top;return{bottom:o,left:n,right:r,top:i}}}})},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(6)},6:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={fit:"fit",flip:"flip"}}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(8)},8:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(9),i=n(r);e.default=function(t){return(0,i.default)(t)===t.ownerDocument.body}},9:function(t,e){t.exports=o(7)}})},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(24)},24:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){var e=t.style,o=e.display,n=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=o,t.style.left=n,t.style.position=r,i};e.default=function(t){var e=t.getBoundingClientRect(),n=e,r=n.left,i=n.top;return e.height||e.width||(e=o(t),r=e.left,i=e.top),{top:i,left:r,height:e.height,width:e.width}}}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(27)},9:function(t,e){t.exports=o(7)},17:function(t,e){t.exports=o(14)},22:function(t,e){t.exports=o(16)},27:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(9),i=n(r),s=o(17),u=n(s),f=o(22),c=n(f);e.default=function(t){var e=(0,c.default)(t),o=e.getComputedStyle(t),n=(0,u.default)(t),r=(0,i.default)(t),s=e.getComputedStyle(r),f={top:0,left:0};return"fixed"!==o.position&&r!==t.ownerDocument.body&&(f=(0,u.default)(r),f.top+=parseInt(s.borderTopWidth,10),f.left+=parseInt(s.borderLeftWidth,10)),{top:n.top-f.top-parseInt(o.marginTop,10),left:n.left-f.left-parseInt(o.marginLeft,10),height:n.height,width:n.width}}}})},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(31)},31:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.ownerDocument.defaultView}}})},function(t,e){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(28)},28:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(29)},2:function(t,e){t.exports=o(6)},14:function(t,e){t.exports=o(12)},29:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(2),i=n(r),s=o(14),u=n(s),f=function(t,e,o){var n=0;return t+e>o&&(n=o-(t+e)),t<0&&(n=-t),n},c=function(t){var e=t.offset,o=t.size,n=t.anchorSize,r=t.viewPortSize,s=t.anchorAlignPoint,u=t.elementAlignPoint,f=0,c=u===i.default.center||u===i.default.middle,l=s===i.default.center||s===i.default.middle;return u===s||c||l||(e+o>r&&(f+=-(n+o)),e+f<0&&(f+=n+o)),f};e.default=function(t){var e=t.anchorRect,o=t.anchorAlign,n=t.elementRect,r=t.elementAlign,i=t.collisions,s=t.viewPort,l=n.top,a=n.left,p=n.height,d=n.width,h=s.height,v=s.width,m=0,g=0,x=i.horizontal===u.default.flip,b=i.vertical===u.default.flip;return i.vertical===u.default.fit&&(g+=f(l,p,h)),i.horizontal===u.default.fit&&(m+=f(a,d,v)),b&&(g+=c({offset:l,size:p,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:o.vertical,elementAlignPoint:r.vertical})),x&&(m+=c({offset:a,size:d,anchorSize:e.width,viewPortSize:v,anchorAlignPoint:o.horizontal,elementAlignPoint:r.horizontal})),{flipped:x&&0!==m||b&&0!==g,offset:{left:m,top:g}}}}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(30)},15:function(t,e){t.exports=o(8)},22:function(t,e){t.exports=o(16)},30:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)(t),o=(0,u.default)(t);return{x:o.pageXOffset||e.scrollLeft||0,y:o.pageYOffset||e.scrollTop||0}};var r=o(15),i=n(r),s=o(22),u=n(s)}})},function(t,e,o){t.exports=function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}({0:function(t,e,o){t.exports=o(32)},22:function(t,e){t.exports=o(16)},32:function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)(t);return{height:e.innerHeight,width:e.innerWidth}};var r=o(22),i=n(r)}})},function(t,e){"use strict";var o=function(t,e){return t?t:{height:0,left:e.left,top:e.top,width:0}};e.eitherRect=o;var n=function(t,e){var o=t.left,n=t.top,r=e.left,i=e.top;return o!==r||n!==i};e.isDifferentOffset=n;var r=function(){return"undefined"!=typeof document};e.isDocumentAvailable=r;var i=function(){return"undefined"!=typeof window};e.isWindowAvailable=i;var s=function(t){return!!t.getBoundingClientRect};e.hasBoundingRect=s;var u=/auto|scroll/,f=function(t){var e=[];if(!r()||!i())return e;for(var o=t.parentElement;o;)u.test(window.getComputedStyle(o).overflow)&&e.push(o),o=o.parentElement;return e.push(window),e};e.scrollableParents=f;var c=1e3/60;e.FRAME_DURATION=c},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(4),u=o(21),f=function(){function t(t){this._dom=t}return t.prototype.positionElement=function(t){var e=t.anchor,o=t.currentLocation,n=t.element,r=t.anchorAlign,i=t.elementAlign,s=t.collisions,f=t.viewPort||this._dom.windowViewPort(n),c=u.eitherRect(this._dom.offset(e),o),l=this._dom.offset(n),a={height:l.height,left:o.left,top:o.top,width:l.width},p=this._dom.restrictToView({anchorAlign:r,anchorRect:c,collisions:s,elementAlign:i,elementRect:a,viewPort:f});return{flipped:p.flipped,offset:this._dom.addOffset(a,p.offset)}},t=n([i.Injectable(),r("design:paramtypes",[s.DOMService])],t)}();e.PositionService=f},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(24);o(25),o(26);var u=o(21),f=o(4),c=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.subscribe=function(t){var e=this;u.isDocumentAvailable()&&this._zone.runOutsideAngular(function(){e.subscription=s.Observable.fromEvent(e._dom.getWindow(),"resize").auditTime(u.FRAME_DURATION).subscribe(function(){return e._zone.run(function(){return t()})})})},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},t=n([i.Injectable(),r("design:paramtypes",[f.DOMService,i.NgZone])],t)}();e.ResizeService=c},function(t,o){t.exports=e},function(t,e){t.exports=o},function(t,e){t.exports=n},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(24);o(25),o(28),o(26);var u=o(4),f=o(21),c=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.forElement=function(t){return this.unsubscribe(),this.element=t,this},t.prototype.subscribe=function(t){var e=this;if(t&&f.isDocumentAvailable()&&this.element){var o=this._dom.nativeElement(this.element),n=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(function(){var r=n.map(function(t){return s.Observable.fromEvent(t,"scroll").auditTime(f.FRAME_DURATION)}),i=function(n){return e._zone.run(function(){return t(e.isVisible(o,n.target))})};e.subscription=s.Observable.merge.apply(s.Observable,r).subscribe(i)})}},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isVisible=function(t,e){var o=this._dom.boundingOffset(t),n=this._dom.boundingOffset(e);return!(o.bottom<n.top)&&(!(o.bottom>n.bottom)&&(!(o.right>n.right)&&!(o.left<n.left)))},t=n([i.Injectable(),r("design:paramtypes",[u.DOMService,i.NgZone])],t)}();e.ScrollableService=c},function(t,e){t.exports=r},function(t,e,o){"use strict";var n=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=o(2),s=o(30),u=o(1),f=[u.PopupComponent],c=function(){function t(){}return t=n([i.NgModule({declarations:[f],exports:[f],imports:[s.CommonModule]}),r("design:paramtypes",[])],t)}();e.PopupModule=c},function(t,e){t.exports=i}])});

@@ -7,3 +7,2 @@ import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnInit, OnDestroy, Renderer } from '@angular/core';

import { AlignStrategy, CollisionStrategy, OffsetPosition } from '@progress/kendo-popup-common';
import '@telerik/kendo-theme-default/styles/packages/popup';
/**

@@ -10,0 +9,0 @@ * Represents the Kendo UI Popup component for Angular.

@@ -8,3 +8,2 @@ import { ChangeDetectorRef, Component, ElementRef, EventEmitter, HostBinding, Input, Output, Renderer, trigger, style, transition, animate } from '@angular/core';

import { isDifferentOffset, isDocumentAvailable } from './util';
import '@telerik/kendo-theme-default/styles/packages/popup';
var DEFAULT_OFFSET = { left: 0, top: 0 };

@@ -11,0 +10,0 @@ /**

@@ -7,3 +7,2 @@ import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnInit, OnDestroy, Renderer } from '@angular/core';

import { AlignStrategy, CollisionStrategy, OffsetPosition } from '@progress/kendo-popup-common';
import '@telerik/kendo-theme-default/styles/packages/popup';
/**

@@ -10,0 +9,0 @@ * Represents the Kendo UI Popup component for Angular.

@@ -9,3 +9,2 @@ "use strict";

var util_1 = require('./util');
require('@telerik/kendo-theme-default/styles/packages/popup');
var DEFAULT_OFFSET = { left: 0, top: 0 };

@@ -12,0 +11,0 @@ /**

{
"name": "@progress/kendo-angular-popup",
"description": "Kendo UI Angular 2 Popup component",
"version": "0.14.0",
"version": "0.14.1",
"publishConfig": {

@@ -6,0 +6,0 @@ "registry": "https://registry.npm.telerik.com"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc