@progress/kendo-angular-tooltip
Advanced tools
Comparing version 2.1.0-dev.201907251344 to 2.1.0
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/animations"),require("tslib"),require("@progress/kendo-angular-l10n")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs","rxjs/operators","@angular/common","@angular/animations","tslib","@progress/kendo-angular-l10n"],e):"object"==typeof exports?exports.KendoAngularTooltip=e(require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/animations"),require("tslib"),require("@progress/kendo-angular-l10n")):t.KendoAngularTooltip=e(t["@angular/core"],t.rxjs,t["rxjs/operators"],t["@angular/common"],t["@angular/animations"],t.tslib,t["@progress/kendo-angular-l10n"])}(window,function(t,e,n,o,i,r,s){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(0),r=n(2),s=n(1),a=n(10),p=n(7),u=n(8),l=n(9),c=function(){function t(t,e,n,o,i,a){var p=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=n,this.popupService=o,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],Object.assign(this,i,a),this.ngZone.runOutsideAngular(function(){var t=p.tooltipWrapper.nativeElement;p.anchorTitleSubscription=s.fromEvent(t,"mouseover").pipe(r.filter(function(){return""!==p.filter})).subscribe(function(t){var e=l.closest(t.target,p.filter);e&&p.hideElementTitle({nativeElement:e})}),p.mouseOverSubscription=s.fromEvent(t,"mouseover").pipe(r.debounceTime(100),r.filter(function(){return""!==p.filter})).subscribe(function(t){return p.onMouseOver(t)}),p.mouseOutSubscription=s.fromEvent(t,"mouseout").pipe(r.debounceTime(100)).subscribe(function(t){return p.onMouseOut(t)})})}return Object.defineProperty(t.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),t.prototype.show=function(t){var e=this;if(!this.popupRef)if(t instanceof Element&&(t={nativeElement:t}),this.anchor=t,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return e.showContent(e.anchor)},this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},t.prototype.hide=function(){clearTimeout(this.showTimeout);var t=this.anchor&&this.anchor.nativeElement;t&&t.getAttribute("data-title")&&(t.getAttribute("title")||t.setAttribute("title",t.getAttribute("data-title")),t.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},t.prototype.toggle=function(t,e){var n=this.anchor&&this.anchor.nativeElement;t instanceof Element&&(t={nativeElement:t}),n!==t.nativeElement&&this.hide(),n===t.nativeElement&&"click"===this.showOn&&this.hide(),void 0===e&&(e=!this.popupRef),e?this.show(t):this.hide()},t.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},t.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},t.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!l.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},t.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},t.prototype.showContent=function(t){var e=this;(t.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){e.openPopup(t),e.bindContent(e.popupRef.content,t)}),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe(function(){return e.hide()}))},t.prototype.bindContent=function(t,e){var n=this,o=t.instance;this.closeClickSubscription=o.close.subscribe(function(){n.hide()}),this.template?o.templateRef=this.template:o.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(o.titleTemplate=this.titleTemplate),o.anchor=e,o.callout=this.callout,o.closable=this.closable,o.position=this.position,o.tooltipWidth=this.tooltipWidth,o.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},t.prototype.hideElementTitle=function(t){var e=t.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},t.prototype.openPopup=function(t){var e=this,n=l.align(this.position,this.offset),o=n.anchorAlign,i=n.popupAlign,r=n.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:o,animate:!1,content:u.TooltipContentComponent,collision:l.collision(this.collision,this.position),margin:r,popupAlign:i,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var a=this.popupRef.content.instance;a.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(t){var n=t.flip,o=!0===n.horizontal||!0===n.vertical;a.updateCalloutPosition(e.position,o)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var t=e.popupRef.popupElement;e.popupMouseOutSubscription=s.fromEvent(t,"mouseout").subscribe(function(t){return e.onMouseOut(t)})})},t.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},t.prototype.subscribeClick=function(){var t=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=s.fromEvent(document,"click").pipe(r.filter(function(){return""!==t.filter})).subscribe(function(e){return t.onMouseClick(e,t.tooltipWrapper.nativeElement)}))},t.prototype.onMouseClick=function(t,e){var n=t.target,o=l.closest(n,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(n))return;if(this.closable)return}e.contains(n)&&o?this.toggle(o,!0):i&&this.hide()},t.prototype.onMouseOver=function(t){var e=l.closest(t.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},t.prototype.onMouseOut=function(t){if("hover"===this.showOn&&!this.closable){var e=this.popupRef&&this.popupRef.popupElement,n=t.relatedTarget;n&&this.anchor&&l.contains(this.anchor.nativeElement,n)||n&&l.contains(e,n)||this.hide()}},t.prototype.verifyProperties=function(){if(i.isDevMode()){if(!l.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!l.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"filter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],t.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"showOn",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],t.prototype,"showAfter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],t.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],t.prototype,"offset",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"tooltipClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],t.prototype,"collision",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef),o.__metadata("design:paramtypes",[i.TemplateRef])],t.prototype,"tooltipTemplate",null),t=o.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),o.__param(4,i.Optional()),o.__param(5,i.Optional()),o.__param(5,i.Inject(p.TOOLTIP_SETTINGS)),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2,a.PopupService,p.TooltipSettings,p.TooltipSettings])],t)}();e.TooltipDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(0);e.TOOLTIP_SETTINGS=new i.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function t(){}return t=o.__decorate([i.Injectable()],t)}();e.TooltipSettings=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(0),r=n(12),s=n(9),a=function(){function t(t,e){this.content=t,this.localizationService=e,this.close=new i.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(t,e,n){var o={},i="top"===t||"bottom"===t;return n?("top"===t?o.bottom="unset":"bottom"===t?o.top="unset":"left"===t?o.right="unset":"right"===t&&(o.left="unset"),o[t]=-e+"px",o.transform=i?"rotateX(180deg)":"rotateY(180deg)",o):(o.transform=i?"rotateX(0deg)":"rotateY(0deg)",o)},this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){var n=e.rtl;return t.direction=n?"rtl":"ltr"})},t.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},t.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},t.prototype.onCloseClick=function(t){t.preventDefault(),this.close.emit()},t.prototype.updateCalloutPosition=function(t,e){if(this.callout){var n=this.content.nativeElement.querySelector(".k-callout"),o="top"===t||"bottom"===t,i=o?"width":"height",r=o?"left":"top",a=o?"marginLeft":"marginTop",p=n.getBoundingClientRect()[i],u=s.getCenterOffset(this.anchor.nativeElement,r,i),l=s.getCenterOffset(this.content.nativeElement,r,i),c=Math.abs(l-u);if(c>1||0===c||0===Math.round(c)){var h=l-u+p/2;n.style[a]=-h+"px"}var d=this.calloutStyles(t,p,e);Object.keys(d).forEach(function(t){n.style[t]=d[t]})}},o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],t.prototype,"direction",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],t.prototype,"close",void 0),o.__decorate([i.HostBinding("class"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],t.prototype,"cssClasses",null),o.__decorate([i.HostBinding("class.k-tooltip-closable"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],t.prototype,"className",null),o.__decorate([i.HostBinding("style.position"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],t.prototype,"cssPosition",null),o.__decorate([i.HostBinding("style.width.px"),i.Input(),o.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),o.__decorate([i.HostBinding("style.height.px"),i.Input(),o.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],t.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.ElementRef)],t.prototype,"anchor",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],t.prototype,"templateRef",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"templateString",void 0),t=o.__decorate([i.Component({selector:"kendo-tooltip",template:'\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" title="Close"></a>\n </div>\n\n <div class="k-tooltip-content">\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),o.__metadata("design:paramtypes",[i.ElementRef,r.LocalizationService])],t)}();e.TooltipContentComponent=a},function(t,e,n){"use strict";function o(t){return 9===t.nodeType}Object.defineProperty(e,"__esModule",{value:!0}),e.align=function(t,e){var n={},o={},i={};switch(t){case"top":n={horizontal:"center",vertical:"top"},o={horizontal:"center",vertical:"bottom"},i={horizontal:0,vertical:e};break;case"bottom":n={horizontal:"center",vertical:"bottom"},o={horizontal:"center",vertical:"top"},i={horizontal:0,vertical:e};break;case"right":n={horizontal:"right",vertical:"center"},o={horizontal:"left",vertical:"center"},i={horizontal:e,vertical:0};break;case"left":n={horizontal:"left",vertical:"center"},o={horizontal:"right",vertical:"center"},i={horizontal:e,vertical:0}}return{anchorAlign:n,popupAlign:o,popupMargin:i}},e.collision=function(t,e){return t||("top"===e||"bottom"===e?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},i=t;i&&!o(i);){if(n(i,e))return i;i=i.parentNode}},e.contains=function(t,e){return!!t&&!o(t)&&(t.contains?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},e.hasParent=function(t,e){for(;t&&t!==e;)t=t.parentNode;return t},e.getCenterOffset=function(t,e,n){var o=t.getBoundingClientRect();return o[e]+o[n]/2},e.containsItem=function(t,e){return-1!==t.indexOf(e)}},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n(1),r="bottom",s="center",a="middle",p="left",u="right",l="top",c=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,i=t.elementAlign,p=t.margin;void 0===p&&(p={});var l=n.horizontal,c=n.vertical,h=i.horizontal,d=i.vertical,f=p.horizontal||0,m=p.vertical||0,g=e.top,v=e.left;return c===r&&(g+=e.height),c!==s&&c!==a||(g+=Math.round(e.height/2)),d===r&&(g-=o.height,m*=-1),d!==s&&d!==a||(g-=Math.round(o.height/2),m*=-1),l===u&&(v+=e.width),l!==s&&l!==a||(v+=Math.round(e.width/2)),h===u&&(v-=o.width,f*=-1),h!==s&&h!==a||(v-=Math.round(o.width/2),f*=-1),{top:g+m,left:v+f}};function h(t){return t.ownerDocument||t.document||t}var d=function(t){return h(t).defaultView},f=function(t){return h(t).documentElement},m=0;function g(){if(!m&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),m=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return m}function v(t){var e=d(t),n=f(t),o={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=g()),o}var y=function(t){if(!t.getBoundingClientRect){var e=v(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},b=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||f(t)},_=function(t){var e=t.getBoundingClientRect(),n=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,o=e.left,i=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var r=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=i,r}(t)),{top:o,left:n,height:e.height,width:e.width}},w=function(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n};function E(t){var e=f(t),n=d(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var C=function(t){return t===(t.ownerDocument||{}).body?E(t):{x:t.scrollLeft,y:t.scrollTop}};var S=function(t,e){var n=d(t),o=n.getComputedStyle(t),i=_(t),r=e||b(t),s=t.ownerDocument,a=r!==s.body&&r!==s.documentElement,p={top:0,left:0};if("fixed"!==o.position&&a){var u=n.getComputedStyle(r);(p=_(r)).top+=parseInt(u.borderTopWidth,10),p.left+=parseInt(u.borderLeftWidth,10)}return{top:i.top-p.top,left:i.left-p.left,height:i.height,width:i.width}},O=function(t,e){return t?C(t):function(t){var e=b(t);return e?C(e):{x:0,y:0}}(e)};var P="fit",T="flip",A=function(t,e,n){var o=0;return t+e>n&&(o=n-(t+e)),t<0&&(o=-t),o},x=function(t){var e=t.offset,n=t.size,o=t.anchorSize,i=t.viewPortSize,r=t.anchorAlignPoint,u=t.elementAlignPoint,c=0,h=2*t.margin;if(u!==r&&!(u===s||u===a)&&!(r===s||r===a)){var d=r===l||r===p;e<0&&d?e+(c=n+o+h)+n>i&&(c=0):e>=0&&!d&&(e+n>i&&(c+=-(o+n+h)),e+c<0&&(c=0))}return c},I=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,i=t.elementAlign,r=t.collisions,s=t.viewPort,a=t.margin;void 0===a&&(a={});var p=o.top,u=o.left,l=o.height,c=o.width,h=s.height,d=s.width,f=a.horizontal||0,m=a.vertical||0,g=0,v=0,y=r.horizontal===T,b=r.vertical===T;r.vertical===P&&(v+=A(p,l,h)),r.horizontal===P&&(g+=A(u,c,d)),b&&(v+=x({margin:m,offset:p,size:l,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:n.vertical,elementAlignPoint:i.vertical})),y&&(g+=x({margin:f,offset:u,size:c,anchorSize:e.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:i.horizontal}));var _=y&&0!==g,w=b&&0!==v;return{flipped:_||w,flip:{horizontal:_,vertical:w},offset:{left:g,top:v}}},R=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},k=function(t,e){return function(n){return e(t(n))}},z=function(t,e,n){return t.addEventListener&&t.addEventListener(e,n)},j=function(t,e,n){return t&&t.removeEventListener&&t.removeEventListener(e,n)},M=function(){},D=function(t){return t.preventDefault()},N=/touch/;function L(t){return t.type.match(N)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var H=function(t){var e=this,n=t.press;void 0===n&&(n=M);var o=t.drag;void 0===o&&(o=M);var i=t.release;void 0===i&&(i=M);var r=t.mouseOnly;void 0===r&&(r=!1),this._pressHandler=k(L,n),this._dragHandler=k(L,o),this._releaseHandler=k(L,i),this._ignoreMouse=!1,this._mouseOnly=r,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var n=t.which;n&&n>1||e._ignoreMouse||(z(document,"mousemove",e._mousemove),z(document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){j(document,"mousemove",e._mousemove),j(document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(z(document,"pointermove",e._pointermove),z(document,"pointerup",e._pointerup),z(document,"pointercancel",e._pointerup),z(document,"contextmenu",D),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(j(document,"pointermove",e._pointermove),j(document,"pointerup",e._pointerup),j(document,"pointercancel",e._pointerup),j(document,"contextmenu",D),e._releaseHandler(t))}};H.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},H.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},H.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?z(t,"pointerdown",this._pointerdown):(z(t,"mousedown",this._mousedown),this._mouseOnly||(z(t,"touchstart",this._touchstart),z(t,"touchmove",this._touchmove),z(t,"touchend",this._touchend)))},H.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return j(t,"pointerdown",this._pointerdown),j(document,"pointermove",this._pointermove),j(document,"pointerup",this._pointerup),j(document,"contextmenu",D),void j(document,"pointercancel",this._pointerup);j(t,"mousedown",this._mousedown),this._mouseOnly||(j(t,"touchstart",this._touchstart),j(t,"touchmove",this._touchmove),j(t,"touchend",this._touchend))},H.prototype._usePointers=function(){return!this._mouseOnly&&H.supportPointerEvent()},H.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},H.default=H;var V,F=H,B=n(3),W=n(2),Z=function(){return"undefined"!=typeof document},X=function(t,e,n){return void 0===n&&(n=!0),!(void 0===e[t]||e[t].isFirstChange()&&n||e[t].previousValue===e[t].currentValue)},Y=function(t){return t&&t.observers.length>0},q=function(){function t(t,e){this.element=t,this.ngZone=e,this.enableDrag=!0,this.kendoPress=new o.EventEmitter,this.kendoDrag=new o.EventEmitter,this.kendoRelease=new o.EventEmitter}return t.prototype.ngOnInit=function(){this.toggleDraggable()},t.prototype.ngOnChanges=function(t){X("enableDrag",t)&&this.toggleDraggable()},t.prototype.ngOnDestroy=function(){this.destroyDraggable()},t.prototype.toggleDraggable=function(){var t=this;Z()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new F({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)})))},t.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},t.decorators=[{type:o.Directive,args:[{selector:"[kendoDraggable]"}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:o.NgZone}]},t.propDecorators={enableDrag:[{type:o.Input}],kendoPress:[{type:o.Output}],kendoDrag:[{type:o.Output}],kendoRelease:[{type:o.Output}]},t}(),U=(function(){function t(){}t.decorators=[{type:o.NgModule,args:[{declarations:[q],exports:[q],imports:[B.CommonModule]}]}]}(),function(){function t(t,e,n){this.element=t,this.ngZone=e,this.renderer=n,this.events={}}return t.prototype.ngOnInit=function(){var t=this;if(this.element&&this.element.nativeElement){var e=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var n in e)e.hasOwnProperty(n)&&t.subscriptions.push(t.renderer.listen(t.element.nativeElement,n,t.scope?e[n].bind(t.scope):e[n]))})}},t.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var t=0;t<this.subscriptions.length;t++)this.subscriptions[t]();this.subscriptions=null}},t.decorators=[{type:o.Directive,args:[{selector:"[kendoEventsOutsideAngular]"}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:o.NgZone},{type:o.Renderer2}]},t.propDecorators={events:[{type:o.Input,args:["kendoEventsOutsideAngular"]}],scope:[{type:o.Input}]},t}()),K=(function(){function t(){}t.decorators=[{type:o.NgModule,args:[{declarations:[U],exports:[U]}]}]}(),function(){function t(t){this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return t.prototype.schedule=function(t,e){var n=this;this.scheduled.push({instance:t,method:e}),this.subscription||this.ngZone.runOutsideAngular(function(){n.subscription=Object(i.from)(n.resolvedPromise).subscribe(n.flush)})},t.prototype.isScheduled=function(t){return Boolean(this.scheduled.find(function(e){return e.instance===t}))},t.prototype.cancel=function(t){for(var e=this.scheduled,n=e.length,o=0;o<n;o++)if(e[o].instance===t)return e.splice(o,1),void(e.length||this.unsubscribe())},t.prototype.ngOnDestroy=function(){this.unsubscribe()},t.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},t.prototype.flush=function(){this.scheduled.forEach(function(t){t.method.call(t.instance)}),this.scheduled=[],this.unsubscribe()},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:o.NgZone}]},t}()),G=10,$="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",J=[function(){function t(t,e,n,r){this.resizeBatchService=t,this.element=e,this.zone=n,this.renderer=r,this.rateLimit=G,this.resize=new o.EventEmitter,this.source=new i.Subject,this.state=0,this.acceptedSize=!1}return t.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){var e=t.scroll.bind(t),n=t.renderer.listen(t.expand.nativeElement,"scroll",e),o=t.renderer.listen(t.shrink.nativeElement,"scroll",e);t.detachScrollHandlers=function(){n(),o()}})},t.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))},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.detachScrollHandlers&&this.detachScrollHandlers(),this.resizeBatchService.cancel(this)},t.prototype.acceptSize=function(t){void 0===t&&(t=this.measure()),this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0},t.prototype.scroll=function(t){var e=this;if(this.parentElement){var n=this.measure(),o=n.width,i=n.height;o===this.lastWidth&&i===this.lastHeight||(this.lastWidth=o,this.lastHeight=i,this.acceptedSize=!1,this.zone.runOutsideAngular(function(){e.source.next()}),this.reset())}},t.prototype.init=function(){var t,e,n=this,o=1e3/(this.rateLimit||G);this.subscription=this.source.asObservable().pipe(Object(W.auditTime)(o)).subscribe(function(){n.acceptedSize||n.resize.emit()}),this.parentElement=this.element.nativeElement.parentElement,"static"===(t=this.parentElement,e="position",getComputedStyle(t,null).getPropertyValue(e))&&(this.parentElement.style.position="relative"),this.reset(),this.lastWidth=this.parentElement.offsetWidth,this.lastHeight=this.parentElement.offsetHeight,this.state=2},t.prototype.reset=function(){var t=this.expandChild.nativeElement;t.style.width=1e5+"px",t.style.height=1e5+"px";var e=this.expand.nativeElement;e.scrollLeft=1e5,e.scrollTop=1e5;var n=this.shrink.nativeElement;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.measure=function(){var t=0,e=0;return this.parentElement&&(e=this.parentElement.offsetHeight,t=this.parentElement.offsetWidth),{height:e,width:t}},t.decorators=[{type:o.Component,args:[{selector:"kendo-resize-sensor",styles:[":host { "+$+" }"],template:'<div #expand style="'+$+'"> <div #expandChild style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div #shrink style="'+$+'"> <div style="position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;"></div></div>'}]}],t.ctorParameters=function(){return[{type:K},{type:o.ElementRef},{type:o.NgZone},{type:o.Renderer2}]},t.propDecorators={rateLimit:[{type:o.Input}],resize:[{type:o.Output}],expand:[{type:o.ViewChild,args:["expand"]}],expandChild:[{type:o.ViewChild,args:["expandChild"]}],shrink:[{type:o.ViewChild,args:["shrink"]}]},t}()];!function(){function t(){}t.decorators=[{type:o.NgModule,args:[{declarations:[J],exports:[J],providers:[K]}]}]}();!function(t){t[t.Alt=18]="Alt",t[t.ArrowDown=40]="ArrowDown",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowUp=38]="ArrowUp",t[t.Backspace=8]="Backspace",t[t.Control=17]="Control",t[t.Delete=46]="Delete",t[t.End=35]="End",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F10=121]="F10",t[t.Home=36]="Home",t[t.Insert=45]="Insert",t[t.PageDown=34]="PageDown",t[t.PageUp=33]="PageUp",t[t.Shift=16]="Shift",t[t.Space=32]="Space",t[t.Tab=9]="Tab",t[t.NumpadDecimal=110]="NumpadDecimal"}(V||(V={}));var Q=n(4);n.d(e,"AlignService",function(){return dt}),n.d(e,"AnimationService",function(){return yt}),n.d(e,"DOMService",function(){return ct}),n.d(e,"PositionService",function(){return ft}),n.d(e,"ResizeService",function(){return mt}),n.d(e,"ScrollableService",function(){return gt}),n.d(e,"PopupService",function(){return Ct}),n.d(e,"POPUP_CONTAINER",function(){return Et}),n.d(e,"PopupComponent",function(){return wt}),n.d(e,"PopupModule",function(){return Ot}),n.d(e,"SCALE",function(){return ht});var tt=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},et=function(){return"undefined"!=typeof window},nt=/auto|scroll/,ot=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)};var it,rt,st,at=(it=function(){if(!Z()&&null!==document.body)return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e},st=!1,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return st?rt:(rt=it.apply(void 0,t),st=!0,rt)}),pt=function(t,e){if(!t||!Z()||!et())return null;var n=function(t,e){for(var n,o,i=w(t),r=e;r&&(n=R(r),!(o=i.reduce(function(t,e){return t.concat(n.filter(function(t){return t===e}))},[])[0]));)r=r.parentElement;return o}(t,e);if(!n)return null;var o=[t].concat(w(t,n)).reduce(function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t},0);return o?o+1:null},ut=function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},lt=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],ct=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.addScroll=function(t,e){return function(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}(t,e)},t.prototype.align=function(t){return c(t)},t.prototype.boundingOffset=function(t){return y(this.nativeElement(t))},t.prototype.getFontStyles=function(t){var e=this.getWindow();if(!e||!t)return[];var n=e.getComputedStyle(this.nativeElement(t));return lt.map(function(t){return{key:t,value:n[t]}})},t.prototype.getWindow=function(){return et()?window:null},t.prototype.hasOffsetParent=function(t){return!!t&&!!this.nativeElement(t).offsetParent},t.prototype.offset=function(t){return t?_(this.nativeElement(t)):null},t.prototype.offsetAtPoint=function(t,e){if(!t)return null;var n=this.nativeElement(t),o=n.style,i=o.left,r=o.top,s=o.transition;n.style.transition="none",n.style.left=e.left+"px",n.style.top=e.top+"px";var a=_(n);return n.style.left=i,n.style.top=r,n.offsetHeight,n.style.transition=s,a},t.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},t.prototype.position=function(t,e,n){return void 0===n&&(n=1),t&&e?function(t,e,n){void 0===n&&(n=1);var o=e?b(e):null,i=S(t,o),r=i.top,s=i.left,a=i.height,p=i.width,u=O(o,t),l=u.x,c=u.y,h=t.ownerDocument,d=o===h.body||o===h.documentElement?1:n;return{top:r+c*d,left:s+l*d,height:a,width:p}}(this.nativeElement(t),this.nativeElement(e),n):null},t.prototype.removeScroll=function(t,e){return function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}(t,e)},t.prototype.restrictToView=function(t){return I(t)},t.prototype.scrollPosition=function(t){return E(this.nativeElement(t))},t.prototype.scrollableParents=function(t){return function(t){var e=[];if(!Z()||!et())return e;for(var n=t.parentElement;n;)(nt.test(ot(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e}(this.nativeElement(t))},t.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?_(e):null},t.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},t.prototype.getRelativeContextElement=function(t){if(!t||!at())return null;for(var e=this.nativeElement(t).parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},t.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},t.prototype.windowViewPort=function(t){return v(this.nativeElement(t))},t.prototype.zIndex=function(t,e){return pt(this.nativeElement(t),this.nativeElement(e))},t.prototype.zoomLevel=function(){return Z()&&et()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t.decorators=[{type:o.Injectable}],t}(),ht=new o.InjectionToken("Popup Document Scale"),dt=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.alignElement=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,i=t.elementAlign,r=t.margin,s=t.offset,a=t.positionMode,p=this.scale||1,u="fixed"===a||!this._dom.hasOffsetParent(n)?this.absoluteRect(e,n,s,p):this.relativeRect(e,n,s,p),l=ut(this._dom.offset(n),p);return this._dom.align({anchorAlign:o,anchorRect:u,elementAlign:i,elementRect:l,margin:r})},t.prototype.absoluteRect=function(t,e,n,o){var i=this.elementScrollPosition(t,e),r=tt(this._dom.offset(t),n),s=2*o,a=this._dom.stackingElementScroll(e);1!==o&&a&&(a.x/=s,a.y/=s);var p=this._dom.stackingElementOffset(e);return 1!==o&&p&&(p.left/=s,p.top/=s),this._dom.removeScroll(this._dom.addScroll(function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t}(ut(r,o),p),a),i)},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,n,o){var i=tt(this._dom.position(t,e,o),n);return ut(i,o)},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:ct},{type:Number,decorators:[{type:o.Inject,args:[ht]},{type:o.Optional}]}]},t}(),ft=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.positionElement=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,i=t.anchorAlign,r=t.elementAlign,s=t.collisions,a=t.margin,p=this._dom,u=this.scale||1,l=p.offsetAtPoint(o,n),c=ut(l,u),h=ut(p.offset(e),u),d=tt(h,n),f=t.viewPort||p.windowViewPort(o);f.width=f.width/u,f.height=f.height/u;var m=p.restrictToView({anchorAlign:i,anchorRect:d,collisions:s,elementAlign:r,elementRect:c,margin:a,viewPort:f}),g=p.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:g}},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:ct},{type:Number,decorators:[{type:o.Inject,args:[ht]},{type:o.Optional}]}]},t}(),mt=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.subscribe=function(t){var e=this;Z()&&this._zone.runOutsideAngular(function(){e.subscription=Object(i.fromEvent)(e._dom.getWindow(),"resize").pipe(Object(W.auditTime)(1e3/60)).subscribe(function(){return t()})})},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:ct},{type:o.NgZone}]},t}(),gt=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&&Z()&&this.element){var n=this._dom.nativeElement(this.element),o=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(function(){var r=o.map(function(t){return Object(i.fromEvent)(t,"scroll").pipe(Object(W.auditTime)(1e3/60))});e.subscription=i.merge.apply(void 0,r).subscribe(function(i){var r=i.target,s=o.filter(function(t){return t===r}).length>0,a=r===document,p=r===window;(s||a||p)&&t(e.isVisible(n,r))})})}},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isVisible=function(t,e){var n=this._dom.boundingOffset(t),o=this._dom.boundingOffset(e);return!(1<o.top-n.bottom)&&(!(1<n.top-o.bottom)&&(!(1<n.left-o.right)&&!(1<o.left-n.right)))},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:ct},{type:o.NgZone}]},t}(),vt={expand:function(t){var e="up"===t||"down"===t?"scaleY":"scaleX";return{start:{transform:e+"(0)",transformOrigin:"down"===t?"top":"left"===t?"right":"right"===t?"left":"bottom"},end:{transform:e+"(1)"}}},slide:function(t){var e="left"===t||"right"===t?"translateX":"translateY";return{start:{transform:e+"("+("right"===t||"down"===t?-100:100)+"%)"},end:{transform:e+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},yt=function(){function t(t){this.animationBuilder=t,this.start=new o.EventEmitter,this.end=new o.EventEmitter}return t.prototype.play=function(t,e,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var i=e.type||"slide",r=vt[i];if(r){var s=r(this.getDirection(n,e));this.playStates(t,s,e)}else if(Object(o.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},t.prototype.ngOnDestroy=function(){this.stopPlayer()},t.prototype.playStates=function(t,e,n){var o=this;this.stopPlayer();var i=n.duration||100,r=this.animationBuilder.build([Object(Q.style)(e.start),Object(Q.animate)(i+"ms ease-in",Object(Q.style)(e.end))]),s=this.player=r.create(t);s.onDone(function(){o.end.emit(),o.stopPlayer()}),this.start.emit(),s.play()},t.prototype.getDirection=function(t,e){var n=e.direction||"down";return t.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),t.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},t.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:Q.AnimationBuilder}]},t}(),bt={left:-1e4,top:0},_t="k-animation-container",wt=function(){function t(t,e,n,i,r,s,a,p,u){this.container=t,this._alignService=e,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=p,this._zone=u,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=bt,this.anchorViewportLeave=new o.EventEmitter,this.close=new o.EventEmitter,this.open=new o.EventEmitter,this.positionChange=new o.EventEmitter,this.resolvedPromise=Promise.resolve(null),this._renderer.addClass(t.nativeElement,_t),this.updateFixedClass()}return t.prototype.ngOnInit=function(){this.repositionCallback=this.reposition.bind(this),this._resizeService.subscribe(this.repositionCallback),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=bt,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()},t.prototype.ngOnChanges=function(t){t.copyAnchorStyles&&this.copyFontStyles(),t.positionMode&&this.updateFixedClass()},t.prototype.ngAfterViewInit=function(){var t=this;this.reposition(),this.animate||this.resolvedPromise.then(function(){t.onAnimationEnd()})},t.prototype.ngAfterViewChecked=function(){var t=this;this._zone.runOutsideAngular(function(){t.repositionSubscription&&t.repositionSubscription.unsubscribe(),t.repositionSubscription=Object(i.from)(t.resolvedPromise).subscribe(t.repositionCallback)})},t.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.repositionSubscription&&this.repositionSubscription.unsubscribe(),this.animationSubscriptions.unsubscribe()},t.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},t.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(t.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(t){this.setContainerStyle("left",t.left+"px"),this.setContainerStyle("top",t.top+"px"),this._currentOffset=t},enumerable:!0,configurable:!0}),t.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},t.prototype.reposition=function(){var t=this;if(Z()){var e,n,o,i,r,s,a=this.position(),p=a.flip,u=a.offset;(!this.currentOffset||(e=this.currentOffset,n=u,o=e.left,i=e.top,r=n.left,s=n.top,Math.abs(o-r)>=1||Math.abs(i-s)>=1))&&(this.currentOffset=u,Y(this.positionChange)&&this._zone.run(function(){return t.positionChange.emit({offset:u,flip:p})})),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,p)}},t.prototype.position=function(){var t=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:t,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},t.prototype.onScroll=function(t){var e=this,n=Y(this.anchorViewportLeave);t||!n?this.reposition():n&&this._zone.run(function(){e.anchorViewportLeave.emit()})},t.prototype.copyFontStyles=function(){var t=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach(function(e){return t.setContainerStyle(e.key,e.value)})},t.prototype.updateFixedClass=function(){var t="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[t](this.container.nativeElement,"k-animation-container-fixed")},t.prototype.setContainerStyle=function(t,e){this._renderer.setStyle(this.container.nativeElement,t,e)},t.decorators=[{type:o.Component,args:[{exportAs:"kendo-popup",providers:[dt,yt,ct,ft,mt,gt],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n </div>\n '}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:dt},{type:ct},{type:ft},{type:mt},{type:gt},{type:yt},{type:o.Renderer2},{type:o.NgZone}]},t.propDecorators={animate:[{type:o.Input}],anchor:[{type:o.Input}],anchorAlign:[{type:o.Input}],collision:[{type:o.Input}],popupAlign:[{type:o.Input}],copyAnchorStyles:[{type:o.Input}],popupClass:[{type:o.Input}],positionMode:[{type:o.Input}],offset:[{type:o.Input}],margin:[{type:o.Input}],anchorViewportLeave:[{type:o.Output}],close:[{type:o.Output}],open:[{type:o.Output}],positionChange:[{type:o.Output}],contentContainer:[{type:o.ViewChild,args:["container"]}]},t}(),Et=new o.InjectionToken("Popup Container"),Ct=function(){function t(t,e,n,o){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n,this.container=o}return Object.defineProperty(t.prototype,"rootViewContainer",{get:function(){var t=this.applicationRef.components||[];if(t[0])return t[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),t.prototype.open=function(t){void 0===t&&(t={});var e=this.contentFrom(t.content),n=e.component,o=e.nodes,i=this.appendPopup(o,t.appendTo),r=i.instance;this.projectComponentInputs(i,t),i.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var s=this.getComponentRootNode(i);return{close:function(){var t;n?n.destroy():i.hostView.destroyed||(i.instance.content=null,i.changeDetectorRef.detectChanges()),i.destroy(),(t=s)&&t.parentNode&&t.parentNode.removeChild(t)},content:n,popup:i,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}},t.prototype.appendPopup=function(t,e){var n=this.createComponent(wt,t,e);return e||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},t.prototype.getComponentRootNode=function(t){return t.hostView.rootNodes[0]},t.prototype.getComponentFactory=function(t){return this.componentFactoryResolver.resolveComponentFactory(t)},t.prototype.createComponent=function(t,e,n){var o=this.getComponentFactory(t);if(n)return n.createComponent(o,void 0,this.injector,e);var i=o.create(this.injector,e);return this.applicationRef.attachView(i.hostView),i},t.prototype.projectComponentInputs=function(t,e){return Object.getOwnPropertyNames(e).filter(function(t){return"content"!==t||e.content instanceof o.TemplateRef}).map(function(n){t.instance[n]=e[n]}),t},t.prototype.contentFrom=function(t){if(!t||t instanceof o.TemplateRef)return{component:null,nodes:[[]]};var e=this.createComponent(t);return{component:e,nodes:[e?[e.location.nativeElement]:[]]}},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:o.ApplicationRef},{type:o.ComponentFactoryResolver},{type:o.Injector},{type:o.ElementRef,decorators:[{type:o.Inject,args:[Et]},{type:o.Optional}]}]},t}(),St=[wt],Ot=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{declarations:[St],entryComponents:[St],exports:[St],imports:[B.CommonModule],providers:[Ct]}]}],t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6);e.TooltipDirective=o.TooltipDirective;var i=n(13);e.TooltipModule=i.TooltipModule;var r=n(7);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(0),r=n(3),s=n(6),a=n(10),p=n(8),u=[s.TooltipDirective,p.TooltipContentComponent],l=[a.PopupModule],c=function(){function t(){}return t=o.__decorate([i.NgModule({declarations:[u],entryComponents:[p.TooltipContentComponent],imports:[r.CommonModule].concat(l),exports:[u]})],t)}();e.TooltipModule=c}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/animations"),require("tslib"),require("@progress/kendo-angular-l10n")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs","rxjs/operators","@angular/common","@angular/animations","tslib","@progress/kendo-angular-l10n"],e):"object"==typeof exports?exports.KendoAngularTooltip=e(require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/animations"),require("tslib"),require("@progress/kendo-angular-l10n")):t.KendoAngularTooltip=e(t["@angular/core"],t.rxjs,t["rxjs/operators"],t["@angular/common"],t["@angular/animations"],t.tslib,t["@progress/kendo-angular-l10n"])}(window,function(t,e,n,o,i,r,s){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(0),r=n(2),s=n(1),a=n(10),p=n(7),u=n(8),l=n(9),c=function(){function t(t,e,n,o,i,a){var p=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=n,this.popupService=o,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],Object.assign(this,i,a),this.ngZone.runOutsideAngular(function(){var t=p.tooltipWrapper.nativeElement;p.anchorTitleSubscription=s.fromEvent(t,"mouseover").pipe(r.filter(function(){return""!==p.filter})).subscribe(function(t){var e=l.closest(t.target,p.filter);e&&p.hideElementTitle({nativeElement:e})}),p.mouseOverSubscription=s.fromEvent(t,"mouseover").pipe(r.debounceTime(100),r.filter(function(){return""!==p.filter})).subscribe(function(t){return p.onMouseOver(t)}),p.mouseOutSubscription=s.fromEvent(t,"mouseout").pipe(r.debounceTime(100)).subscribe(function(t){return p.onMouseOut(t)})})}return Object.defineProperty(t.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),t.prototype.show=function(t){var e=this;if(!this.popupRef)if(t instanceof Element&&(t={nativeElement:t}),this.anchor=t,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return e.showContent(e.anchor)},this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},t.prototype.hide=function(){clearTimeout(this.showTimeout);var t=this.anchor&&this.anchor.nativeElement;t&&t.getAttribute("data-title")&&(t.getAttribute("title")||t.setAttribute("title",t.getAttribute("data-title")),t.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},t.prototype.toggle=function(t,e){var n=this.anchor&&this.anchor.nativeElement;t instanceof Element&&(t={nativeElement:t}),n!==t.nativeElement&&this.hide(),n===t.nativeElement&&"click"===this.showOn&&this.hide(),void 0===e&&(e=!this.popupRef),e?this.show(t):this.hide()},t.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},t.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},t.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!l.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},t.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},t.prototype.showContent=function(t){var e=this;(t.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){e.openPopup(t),e.bindContent(e.popupRef.content,t)}),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe(function(){return e.hide()}))},t.prototype.bindContent=function(t,e){var n=this,o=t.instance;this.closeClickSubscription=o.close.subscribe(function(){n.hide()}),this.template?o.templateRef=this.template:o.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(o.titleTemplate=this.titleTemplate),o.anchor=e,o.callout=this.callout,o.closable=this.closable,o.position=this.position,o.tooltipWidth=this.tooltipWidth,o.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},t.prototype.hideElementTitle=function(t){var e=t.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},t.prototype.openPopup=function(t){var e=this,n=l.align(this.position,this.offset),o=n.anchorAlign,i=n.popupAlign,r=n.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:o,animate:!1,content:u.TooltipContentComponent,collision:l.collision(this.collision,this.position),margin:r,popupAlign:i,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var a=this.popupRef.content.instance;a.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(t){var n=t.flip,o=!0===n.horizontal||!0===n.vertical;a.updateCalloutPosition(e.position,o)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var t=e.popupRef.popupElement;e.popupMouseOutSubscription=s.fromEvent(t,"mouseout").subscribe(function(t){return e.onMouseOut(t)})})},t.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},t.prototype.subscribeClick=function(){var t=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=s.fromEvent(document,"click").pipe(r.filter(function(){return""!==t.filter})).subscribe(function(e){return t.onMouseClick(e,t.tooltipWrapper.nativeElement)}))},t.prototype.onMouseClick=function(t,e){var n=t.target,o=l.closest(n,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(n))return;if(this.closable)return}e.contains(n)&&o?this.toggle(o,!0):i&&this.hide()},t.prototype.onMouseOver=function(t){var e=l.closest(t.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},t.prototype.onMouseOut=function(t){if("hover"===this.showOn&&!this.closable){var e=this.popupRef&&this.popupRef.popupElement,n=t.relatedTarget;n&&this.anchor&&l.contains(this.anchor.nativeElement,n)||n&&l.contains(e,n)||this.hide()}},t.prototype.verifyProperties=function(){if(i.isDevMode()){if(!l.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!l.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"filter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],t.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"showOn",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],t.prototype,"showAfter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],t.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],t.prototype,"offset",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"tooltipClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],t.prototype,"collision",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef),o.__metadata("design:paramtypes",[i.TemplateRef])],t.prototype,"tooltipTemplate",null),t=o.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),o.__param(4,i.Optional()),o.__param(5,i.Optional()),o.__param(5,i.Inject(p.TOOLTIP_SETTINGS)),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2,a.PopupService,p.TooltipSettings,p.TooltipSettings])],t)}();e.TooltipDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(0);e.TOOLTIP_SETTINGS=new i.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function t(){}return t=o.__decorate([i.Injectable()],t)}();e.TooltipSettings=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(0),r=n(12),s=n(9),a=function(){function t(t,e){this.content=t,this.localizationService=e,this.close=new i.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(t,e,n){var o={},i="top"===t||"bottom"===t;return n?("top"===t?o.bottom="unset":"bottom"===t?o.top="unset":"left"===t?o.right="unset":"right"===t&&(o.left="unset"),o[t]=-e+"px",o.transform=i?"rotateX(180deg)":"rotateY(180deg)",o):(o.transform=i?"rotateX(0deg)":"rotateY(0deg)",o)},this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){var n=e.rtl;return t.direction=n?"rtl":"ltr"})},t.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},t.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},t.prototype.onCloseClick=function(t){t.preventDefault(),this.close.emit()},t.prototype.updateCalloutPosition=function(t,e){if(this.callout){var n=this.content.nativeElement.querySelector(".k-callout"),o="top"===t||"bottom"===t,i=o?"width":"height",r=o?"left":"top",a=o?"marginLeft":"marginTop",p=n.getBoundingClientRect()[i],u=s.getCenterOffset(this.anchor.nativeElement,r,i),l=s.getCenterOffset(this.content.nativeElement,r,i),c=Math.abs(l-u);if(c>1||0===c||0===Math.round(c)){var h=l-u+p/2;n.style[a]=-h+"px"}var d=this.calloutStyles(t,p,e);Object.keys(d).forEach(function(t){n.style[t]=d[t]})}},o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],t.prototype,"direction",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],t.prototype,"close",void 0),o.__decorate([i.HostBinding("class"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],t.prototype,"cssClasses",null),o.__decorate([i.HostBinding("class.k-tooltip-closable"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],t.prototype,"className",null),o.__decorate([i.HostBinding("style.position"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],t.prototype,"cssPosition",null),o.__decorate([i.HostBinding("style.width.px"),i.Input(),o.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),o.__decorate([i.HostBinding("style.height.px"),i.Input(),o.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],t.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.ElementRef)],t.prototype,"anchor",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],t.prototype,"templateRef",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"templateString",void 0),t=o.__decorate([i.Component({selector:"kendo-tooltip",template:'\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" title="Close"></a>\n </div>\n\n <div class="k-tooltip-content">\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),o.__metadata("design:paramtypes",[i.ElementRef,r.LocalizationService])],t)}();e.TooltipContentComponent=a},function(t,e,n){"use strict";function o(t){return 9===t.nodeType}Object.defineProperty(e,"__esModule",{value:!0}),e.align=function(t,e){var n={},o={},i={};switch(t){case"top":n={horizontal:"center",vertical:"top"},o={horizontal:"center",vertical:"bottom"},i={horizontal:0,vertical:e};break;case"bottom":n={horizontal:"center",vertical:"bottom"},o={horizontal:"center",vertical:"top"},i={horizontal:0,vertical:e};break;case"right":n={horizontal:"right",vertical:"center"},o={horizontal:"left",vertical:"center"},i={horizontal:e,vertical:0};break;case"left":n={horizontal:"left",vertical:"center"},o={horizontal:"right",vertical:"center"},i={horizontal:e,vertical:0}}return{anchorAlign:n,popupAlign:o,popupMargin:i}},e.collision=function(t,e){return t||("top"===e||"bottom"===e?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},i=t;i&&!o(i);){if(n(i,e))return i;i=i.parentNode}},e.contains=function(t,e){return!!t&&(!o(t)&&(t.contains?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0))},e.hasParent=function(t,e){for(;t&&t!==e;)t=t.parentNode;return t},e.getCenterOffset=function(t,e,n){var o=t.getBoundingClientRect();return o[e]+o[n]/2},e.containsItem=function(t,e){return-1!==t.indexOf(e)}},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n(1),r="bottom",s="center",a="middle",p="left",u="right",l="top",c=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,i=t.elementAlign,p=t.margin;void 0===p&&(p={});var l=n.horizontal,c=n.vertical,h=i.horizontal,d=i.vertical,f=p.horizontal||0,m=p.vertical||0,g=e.top,v=e.left;return c===r&&(g+=e.height),c!==s&&c!==a||(g+=Math.round(e.height/2)),d===r&&(g-=o.height,m*=-1),d!==s&&d!==a||(g-=Math.round(o.height/2),m*=-1),l===u&&(v+=e.width),l!==s&&l!==a||(v+=Math.round(e.width/2)),h===u&&(v-=o.width,f*=-1),h!==s&&h!==a||(v-=Math.round(o.width/2),f*=-1),{top:g+m,left:v+f}};function h(t){return t.ownerDocument||t.document||t}var d=function(t){return h(t).defaultView},f=function(t){return h(t).documentElement},m=0;function g(){if(!m&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),m=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return m}function v(t){var e=d(t),n=f(t),o={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=g()),o}var y=function(t){if(!t.getBoundingClientRect){var e=v(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},b=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||f(t)},_=function(t){var e=t.getBoundingClientRect(),n=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,o=e.left,i=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var r=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=i,r}(t)),{top:o,left:n,height:e.height,width:e.width}},w=function(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n};function E(t){var e=f(t),n=d(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var C=function(t){return t===(t.ownerDocument||{}).body?E(t):{x:t.scrollLeft,y:t.scrollTop}};var S=function(t,e){var n=d(t),o=n.getComputedStyle(t),i=_(t),r=e||b(t),s=t.ownerDocument,a=r!==s.body&&r!==s.documentElement,p={top:0,left:0};if("fixed"!==o.position&&a){var u=n.getComputedStyle(r);(p=_(r)).top+=parseInt(u.borderTopWidth,10),p.left+=parseInt(u.borderLeftWidth,10)}return{top:i.top-p.top,left:i.left-p.left,height:i.height,width:i.width}},O=function(t,e){return t?C(t):function(t){var e=b(t);return e?C(e):{x:0,y:0}}(e)};var P="fit",T="flip",A=function(t,e,n){var o=0;return t+e>n&&(o=n-(t+e)),t<0&&(o=-t),o},x=function(t){var e=t.offset,n=t.size,o=t.anchorSize,i=t.viewPortSize,r=t.anchorAlignPoint,u=t.elementAlignPoint,c=0,h=2*t.margin;if(u!==r&&!(u===s||u===a)&&!(r===s||r===a)){var d=r===l||r===p;e<0&&d?e+(c=n+o+h)+n>i&&(c=0):e>=0&&!d&&(e+n>i&&(c+=-(o+n+h)),e+c<0&&(c=0))}return c},I=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,i=t.elementAlign,r=t.collisions,s=t.viewPort,a=t.margin;void 0===a&&(a={});var p=o.top,u=o.left,l=o.height,c=o.width,h=s.height,d=s.width,f=a.horizontal||0,m=a.vertical||0,g=0,v=0,y=r.horizontal===T,b=r.vertical===T;r.vertical===P&&(v+=A(p,l,h)),r.horizontal===P&&(g+=A(u,c,d)),b&&(v+=x({margin:m,offset:p,size:l,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:n.vertical,elementAlignPoint:i.vertical})),y&&(g+=x({margin:f,offset:u,size:c,anchorSize:e.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:i.horizontal}));var _=y&&0!==g,w=b&&0!==v;return{flipped:_||w,flip:{horizontal:_,vertical:w},offset:{left:g,top:v}}},R=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},k=function(t,e){return function(n){return e(t(n))}},z=function(t,e,n){return t.addEventListener&&t.addEventListener(e,n)},j=function(t,e,n){return t&&t.removeEventListener&&t.removeEventListener(e,n)},M=function(){},D=function(t){return t.preventDefault()},N=/touch/;function L(t){return t.type.match(N)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var H=function(t){var e=this,n=t.press;void 0===n&&(n=M);var o=t.drag;void 0===o&&(o=M);var i=t.release;void 0===i&&(i=M);var r=t.mouseOnly;void 0===r&&(r=!1),this._pressHandler=k(L,n),this._dragHandler=k(L,o),this._releaseHandler=k(L,i),this._ignoreMouse=!1,this._mouseOnly=r,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var n=t.which;n&&n>1||e._ignoreMouse||(z(document,"mousemove",e._mousemove),z(document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){j(document,"mousemove",e._mousemove),j(document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(z(document,"pointermove",e._pointermove),z(document,"pointerup",e._pointerup),z(document,"pointercancel",e._pointerup),z(document,"contextmenu",D),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(j(document,"pointermove",e._pointermove),j(document,"pointerup",e._pointerup),j(document,"pointercancel",e._pointerup),j(document,"contextmenu",D),e._releaseHandler(t))}};H.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},H.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},H.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?z(t,"pointerdown",this._pointerdown):(z(t,"mousedown",this._mousedown),this._mouseOnly||(z(t,"touchstart",this._touchstart),z(t,"touchmove",this._touchmove),z(t,"touchend",this._touchend)))},H.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return j(t,"pointerdown",this._pointerdown),j(document,"pointermove",this._pointermove),j(document,"pointerup",this._pointerup),j(document,"contextmenu",D),void j(document,"pointercancel",this._pointerup);j(t,"mousedown",this._mousedown),this._mouseOnly||(j(t,"touchstart",this._touchstart),j(t,"touchmove",this._touchmove),j(t,"touchend",this._touchend))},H.prototype._usePointers=function(){return!this._mouseOnly&&H.supportPointerEvent()},H.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},H.default=H;var V,F=H,B=n(3),W=n(2),Z=function(){return"undefined"!=typeof document},X=function(t,e,n){return void 0===n&&(n=!0),!(void 0===e[t]||e[t].isFirstChange()&&n||e[t].previousValue===e[t].currentValue)},Y=function(t){return t&&t.observers.length>0},q=function(){function t(t,e){this.element=t,this.ngZone=e,this.enableDrag=!0,this.kendoPress=new o.EventEmitter,this.kendoDrag=new o.EventEmitter,this.kendoRelease=new o.EventEmitter}return t.prototype.ngOnInit=function(){this.toggleDraggable()},t.prototype.ngOnChanges=function(t){X("enableDrag",t)&&this.toggleDraggable()},t.prototype.ngOnDestroy=function(){this.destroyDraggable()},t.prototype.toggleDraggable=function(){var t=this;Z()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new F({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)})))},t.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},t.decorators=[{type:o.Directive,args:[{selector:"[kendoDraggable]"}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:o.NgZone}]},t.propDecorators={enableDrag:[{type:o.Input}],kendoPress:[{type:o.Output}],kendoDrag:[{type:o.Output}],kendoRelease:[{type:o.Output}]},t}(),U=(function(){function t(){}t.decorators=[{type:o.NgModule,args:[{declarations:[q],exports:[q],imports:[B.CommonModule]}]}]}(),function(){function t(t,e,n){this.element=t,this.ngZone=e,this.renderer=n,this.events={}}return t.prototype.ngOnInit=function(){var t=this;if(this.element&&this.element.nativeElement){var e=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var n in e)e.hasOwnProperty(n)&&t.subscriptions.push(t.renderer.listen(t.element.nativeElement,n,t.scope?e[n].bind(t.scope):e[n]))})}},t.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var t=0;t<this.subscriptions.length;t++)this.subscriptions[t]();this.subscriptions=null}},t.decorators=[{type:o.Directive,args:[{selector:"[kendoEventsOutsideAngular]"}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:o.NgZone},{type:o.Renderer2}]},t.propDecorators={events:[{type:o.Input,args:["kendoEventsOutsideAngular"]}],scope:[{type:o.Input}]},t}()),K=(function(){function t(){}t.decorators=[{type:o.NgModule,args:[{declarations:[U],exports:[U]}]}]}(),function(){function t(t){this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return t.prototype.schedule=function(t,e){var n=this;this.scheduled.push({instance:t,method:e}),this.subscription||this.ngZone.runOutsideAngular(function(){n.subscription=Object(i.from)(n.resolvedPromise).subscribe(n.flush)})},t.prototype.isScheduled=function(t){return Boolean(this.scheduled.find(function(e){return e.instance===t}))},t.prototype.cancel=function(t){for(var e=this.scheduled,n=e.length,o=0;o<n;o++)if(e[o].instance===t)return e.splice(o,1),void(e.length||this.unsubscribe())},t.prototype.ngOnDestroy=function(){this.unsubscribe()},t.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},t.prototype.flush=function(){this.scheduled.forEach(function(t){t.method.call(t.instance)}),this.scheduled=[],this.unsubscribe()},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:o.NgZone}]},t}()),G=10,$="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",J=[function(){function t(t,e,n,r){this.resizeBatchService=t,this.element=e,this.zone=n,this.renderer=r,this.rateLimit=G,this.resize=new o.EventEmitter,this.source=new i.Subject,this.state=0,this.acceptedSize=!1}return t.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){var e=t.scroll.bind(t),n=t.renderer.listen(t.expand.nativeElement,"scroll",e),o=t.renderer.listen(t.shrink.nativeElement,"scroll",e);t.detachScrollHandlers=function(){n(),o()}})},t.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))},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.detachScrollHandlers&&this.detachScrollHandlers(),this.resizeBatchService.cancel(this)},t.prototype.acceptSize=function(t){void 0===t&&(t=this.measure()),this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0},t.prototype.scroll=function(t){var e=this;if(this.parentElement){var n=this.measure(),o=n.width,i=n.height;o===this.lastWidth&&i===this.lastHeight||(this.lastWidth=o,this.lastHeight=i,this.acceptedSize=!1,this.zone.runOutsideAngular(function(){e.source.next()}),this.reset())}},t.prototype.init=function(){var t,e,n=this,o=1e3/(this.rateLimit||G);this.subscription=this.source.asObservable().pipe(Object(W.auditTime)(o)).subscribe(function(){n.acceptedSize||n.resize.emit()}),this.parentElement=this.element.nativeElement.parentElement,"static"===(t=this.parentElement,e="position",getComputedStyle(t,null).getPropertyValue(e))&&(this.parentElement.style.position="relative"),this.reset(),this.lastWidth=this.parentElement.offsetWidth,this.lastHeight=this.parentElement.offsetHeight,this.state=2},t.prototype.reset=function(){var t=this.expandChild.nativeElement;t.style.width=1e5+"px",t.style.height=1e5+"px";var e=this.expand.nativeElement;e.scrollLeft=1e5,e.scrollTop=1e5;var n=this.shrink.nativeElement;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.measure=function(){var t=0,e=0;return this.parentElement&&(e=this.parentElement.offsetHeight,t=this.parentElement.offsetWidth),{height:e,width:t}},t.decorators=[{type:o.Component,args:[{selector:"kendo-resize-sensor",styles:[":host { "+$+" }"],template:'<div #expand style="'+$+'"> <div #expandChild style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div #shrink style="'+$+'"> <div style="position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;"></div></div>'}]}],t.ctorParameters=function(){return[{type:K},{type:o.ElementRef},{type:o.NgZone},{type:o.Renderer2}]},t.propDecorators={rateLimit:[{type:o.Input}],resize:[{type:o.Output}],expand:[{type:o.ViewChild,args:["expand"]}],expandChild:[{type:o.ViewChild,args:["expandChild"]}],shrink:[{type:o.ViewChild,args:["shrink"]}]},t}()];!function(){function t(){}t.decorators=[{type:o.NgModule,args:[{declarations:[J],exports:[J],providers:[K]}]}]}();!function(t){t[t.Alt=18]="Alt",t[t.ArrowDown=40]="ArrowDown",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowUp=38]="ArrowUp",t[t.Backspace=8]="Backspace",t[t.Control=17]="Control",t[t.Delete=46]="Delete",t[t.End=35]="End",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F10=121]="F10",t[t.Home=36]="Home",t[t.Insert=45]="Insert",t[t.PageDown=34]="PageDown",t[t.PageUp=33]="PageUp",t[t.Shift=16]="Shift",t[t.Space=32]="Space",t[t.Tab=9]="Tab",t[t.NumpadDecimal=110]="NumpadDecimal"}(V||(V={}));var Q=n(4);n.d(e,"AlignService",function(){return dt}),n.d(e,"AnimationService",function(){return yt}),n.d(e,"DOMService",function(){return ct}),n.d(e,"PositionService",function(){return ft}),n.d(e,"ResizeService",function(){return mt}),n.d(e,"ScrollableService",function(){return gt}),n.d(e,"PopupService",function(){return Ct}),n.d(e,"POPUP_CONTAINER",function(){return Et}),n.d(e,"PopupComponent",function(){return wt}),n.d(e,"PopupModule",function(){return Ot}),n.d(e,"SCALE",function(){return ht});var tt=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},et=function(){return"undefined"!=typeof window},nt=/auto|scroll/,ot=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)};var it,rt,st,at=(it=function(){if(!Z()&&null!==document.body)return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e},st=!1,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return st?rt:(rt=it.apply(void 0,t),st=!0,rt)}),pt=function(t,e){if(!t||!Z()||!et())return null;var n=function(t,e){for(var n,o,i=w(t),r=e;r&&(n=R(r),!(o=i.reduce(function(t,e){return t.concat(n.filter(function(t){return t===e}))},[])[0]));)r=r.parentElement;return o}(t,e);if(!n)return null;var o=[t].concat(w(t,n)).reduce(function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t},0);return o?o+1:null},ut=function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},lt=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],ct=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.addScroll=function(t,e){return function(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}(t,e)},t.prototype.align=function(t){return c(t)},t.prototype.boundingOffset=function(t){return y(this.nativeElement(t))},t.prototype.getFontStyles=function(t){var e=this.getWindow();if(!e||!t)return[];var n=e.getComputedStyle(this.nativeElement(t));return lt.map(function(t){return{key:t,value:n[t]}})},t.prototype.getWindow=function(){return et()?window:null},t.prototype.hasOffsetParent=function(t){return!!t&&!!this.nativeElement(t).offsetParent},t.prototype.offset=function(t){return t?_(this.nativeElement(t)):null},t.prototype.offsetAtPoint=function(t,e){if(!t)return null;var n=this.nativeElement(t),o=n.style,i=o.left,r=o.top,s=o.transition;n.style.transition="none",n.style.left=e.left+"px",n.style.top=e.top+"px";var a=_(n);return n.style.left=i,n.style.top=r,n.offsetHeight,n.style.transition=s,a},t.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},t.prototype.position=function(t,e,n){return void 0===n&&(n=1),t&&e?function(t,e,n){void 0===n&&(n=1);var o=e?b(e):null,i=S(t,o),r=i.top,s=i.left,a=i.height,p=i.width,u=O(o,t),l=u.x,c=u.y,h=t.ownerDocument,d=o===h.body||o===h.documentElement?1:n;return{top:r+c*d,left:s+l*d,height:a,width:p}}(this.nativeElement(t),this.nativeElement(e),n):null},t.prototype.removeScroll=function(t,e){return function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}(t,e)},t.prototype.restrictToView=function(t){return I(t)},t.prototype.scrollPosition=function(t){return E(this.nativeElement(t))},t.prototype.scrollableParents=function(t){return function(t){var e=[];if(!Z()||!et())return e;for(var n=t.parentElement;n;)(nt.test(ot(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e}(this.nativeElement(t))},t.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?_(e):null},t.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},t.prototype.getRelativeContextElement=function(t){if(!t||!at())return null;for(var e=this.nativeElement(t).parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},t.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},t.prototype.windowViewPort=function(t){return v(this.nativeElement(t))},t.prototype.zIndex=function(t,e){return pt(this.nativeElement(t),this.nativeElement(e))},t.prototype.zoomLevel=function(){return Z()&&et()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t.decorators=[{type:o.Injectable}],t}(),ht=new o.InjectionToken("Popup Document Scale"),dt=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.alignElement=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,i=t.elementAlign,r=t.margin,s=t.offset,a=t.positionMode,p=this.scale||1,u="fixed"===a||!this._dom.hasOffsetParent(n)?this.absoluteRect(e,n,s,p):this.relativeRect(e,n,s,p),l=ut(this._dom.offset(n),p);return this._dom.align({anchorAlign:o,anchorRect:u,elementAlign:i,elementRect:l,margin:r})},t.prototype.absoluteRect=function(t,e,n,o){var i=this.elementScrollPosition(t,e),r=tt(this._dom.offset(t),n),s=2*o,a=this._dom.stackingElementScroll(e);1!==o&&a&&(a.x/=s,a.y/=s);var p=this._dom.stackingElementOffset(e);return 1!==o&&p&&(p.left/=s,p.top/=s),this._dom.removeScroll(this._dom.addScroll(function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t}(ut(r,o),p),a),i)},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,n,o){var i=tt(this._dom.position(t,e,o),n);return ut(i,o)},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:ct},{type:Number,decorators:[{type:o.Inject,args:[ht]},{type:o.Optional}]}]},t}(),ft=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.positionElement=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,i=t.anchorAlign,r=t.elementAlign,s=t.collisions,a=t.margin,p=this._dom,u=this.scale||1,l=p.offsetAtPoint(o,n),c=ut(l,u),h=ut(p.offset(e),u),d=tt(h,n),f=t.viewPort||p.windowViewPort(o);f.width=f.width/u,f.height=f.height/u;var m=p.restrictToView({anchorAlign:i,anchorRect:d,collisions:s,elementAlign:r,elementRect:c,margin:a,viewPort:f}),g=p.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:g}},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:ct},{type:Number,decorators:[{type:o.Inject,args:[ht]},{type:o.Optional}]}]},t}(),mt=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.subscribe=function(t){var e=this;Z()&&this._zone.runOutsideAngular(function(){e.subscription=Object(i.fromEvent)(e._dom.getWindow(),"resize").pipe(Object(W.auditTime)(1e3/60)).subscribe(function(){return t()})})},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:ct},{type:o.NgZone}]},t}(),gt=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&&Z()&&this.element){var n=this._dom.nativeElement(this.element),o=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(function(){var r=o.map(function(t){return Object(i.fromEvent)(t,"scroll").pipe(Object(W.auditTime)(1e3/60))});e.subscription=i.merge.apply(void 0,r).subscribe(function(i){var r=i.target,s=o.filter(function(t){return t===r}).length>0,a=r===document,p=r===window;(s||a||p)&&t(e.isVisible(n,r))})})}},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isVisible=function(t,e){var n=this._dom.boundingOffset(t),o=this._dom.boundingOffset(e);return!(1<o.top-n.bottom)&&(!(1<n.top-o.bottom)&&(!(1<n.left-o.right)&&!(1<o.left-n.right)))},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:ct},{type:o.NgZone}]},t}(),vt={expand:function(t){var e="up"===t||"down"===t?"scaleY":"scaleX";return{start:{transform:e+"(0)",transformOrigin:"down"===t?"top":"left"===t?"right":"right"===t?"left":"bottom"},end:{transform:e+"(1)"}}},slide:function(t){var e="left"===t||"right"===t?"translateX":"translateY";return{start:{transform:e+"("+("right"===t||"down"===t?-100:100)+"%)"},end:{transform:e+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},yt=function(){function t(t){this.animationBuilder=t,this.start=new o.EventEmitter,this.end=new o.EventEmitter}return t.prototype.play=function(t,e,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var i=e.type||"slide",r=vt[i];if(r){var s=r(this.getDirection(n,e));this.playStates(t,s,e)}else if(Object(o.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},t.prototype.ngOnDestroy=function(){this.stopPlayer()},t.prototype.playStates=function(t,e,n){var o=this;this.stopPlayer();var i=n.duration||100,r=this.animationBuilder.build([Object(Q.style)(e.start),Object(Q.animate)(i+"ms ease-in",Object(Q.style)(e.end))]),s=this.player=r.create(t);s.onDone(function(){o.end.emit(),o.stopPlayer()}),this.start.emit(),s.play()},t.prototype.getDirection=function(t,e){var n=e.direction||"down";return t.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),t.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},t.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:Q.AnimationBuilder}]},t}(),bt={left:-1e4,top:0},_t="k-animation-container",wt=function(){function t(t,e,n,i,r,s,a,p,u){this.container=t,this._alignService=e,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=p,this._zone=u,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=bt,this.anchorViewportLeave=new o.EventEmitter,this.close=new o.EventEmitter,this.open=new o.EventEmitter,this.positionChange=new o.EventEmitter,this.resolvedPromise=Promise.resolve(null),this._renderer.addClass(t.nativeElement,_t),this.updateFixedClass()}return t.prototype.ngOnInit=function(){this.repositionCallback=this.reposition.bind(this),this._resizeService.subscribe(this.repositionCallback),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=bt,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()},t.prototype.ngOnChanges=function(t){t.copyAnchorStyles&&this.copyFontStyles(),t.positionMode&&this.updateFixedClass()},t.prototype.ngAfterViewInit=function(){var t=this;this.reposition(),this.animate||this.resolvedPromise.then(function(){t.onAnimationEnd()})},t.prototype.ngAfterViewChecked=function(){var t=this;this._zone.runOutsideAngular(function(){t.repositionSubscription&&t.repositionSubscription.unsubscribe(),t.repositionSubscription=Object(i.from)(t.resolvedPromise).subscribe(t.repositionCallback)})},t.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.repositionSubscription&&this.repositionSubscription.unsubscribe(),this.animationSubscriptions.unsubscribe()},t.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},t.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(t.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(t){this.setContainerStyle("left",t.left+"px"),this.setContainerStyle("top",t.top+"px"),this._currentOffset=t},enumerable:!0,configurable:!0}),t.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},t.prototype.reposition=function(){var t=this;if(Z()){var e,n,o,i,r,s,a=this.position(),p=a.flip,u=a.offset;(!this.currentOffset||(e=this.currentOffset,n=u,o=e.left,i=e.top,r=n.left,s=n.top,Math.abs(o-r)>=1||Math.abs(i-s)>=1))&&(this.currentOffset=u,Y(this.positionChange)&&this._zone.run(function(){return t.positionChange.emit({offset:u,flip:p})})),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,p)}},t.prototype.position=function(){var t=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:t,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},t.prototype.onScroll=function(t){var e=this,n=Y(this.anchorViewportLeave);t||!n?this.reposition():n&&this._zone.run(function(){e.anchorViewportLeave.emit()})},t.prototype.copyFontStyles=function(){var t=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach(function(e){return t.setContainerStyle(e.key,e.value)})},t.prototype.updateFixedClass=function(){var t="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[t](this.container.nativeElement,"k-animation-container-fixed")},t.prototype.setContainerStyle=function(t,e){this._renderer.setStyle(this.container.nativeElement,t,e)},t.decorators=[{type:o.Component,args:[{exportAs:"kendo-popup",providers:[dt,yt,ct,ft,mt,gt],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n </div>\n '}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:dt},{type:ct},{type:ft},{type:mt},{type:gt},{type:yt},{type:o.Renderer2},{type:o.NgZone}]},t.propDecorators={animate:[{type:o.Input}],anchor:[{type:o.Input}],anchorAlign:[{type:o.Input}],collision:[{type:o.Input}],popupAlign:[{type:o.Input}],copyAnchorStyles:[{type:o.Input}],popupClass:[{type:o.Input}],positionMode:[{type:o.Input}],offset:[{type:o.Input}],margin:[{type:o.Input}],anchorViewportLeave:[{type:o.Output}],close:[{type:o.Output}],open:[{type:o.Output}],positionChange:[{type:o.Output}],contentContainer:[{type:o.ViewChild,args:["container"]}]},t}(),Et=new o.InjectionToken("Popup Container"),Ct=function(){function t(t,e,n,o){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n,this.container=o}return Object.defineProperty(t.prototype,"rootViewContainer",{get:function(){var t=this.applicationRef.components||[];if(t[0])return t[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),t.prototype.open=function(t){void 0===t&&(t={});var e=this.contentFrom(t.content),n=e.component,o=e.nodes,i=this.appendPopup(o,t.appendTo),r=i.instance;this.projectComponentInputs(i,t),i.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var s=this.getComponentRootNode(i);return{close:function(){var t;n?n.destroy():i.hostView.destroyed||(i.instance.content=null,i.changeDetectorRef.detectChanges()),i.destroy(),(t=s)&&t.parentNode&&t.parentNode.removeChild(t)},content:n,popup:i,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}},t.prototype.appendPopup=function(t,e){var n=this.createComponent(wt,t,e);return e||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},t.prototype.getComponentRootNode=function(t){return t.hostView.rootNodes[0]},t.prototype.getComponentFactory=function(t){return this.componentFactoryResolver.resolveComponentFactory(t)},t.prototype.createComponent=function(t,e,n){var o=this.getComponentFactory(t);if(n)return n.createComponent(o,void 0,this.injector,e);var i=o.create(this.injector,e);return this.applicationRef.attachView(i.hostView),i},t.prototype.projectComponentInputs=function(t,e){return Object.getOwnPropertyNames(e).filter(function(t){return"content"!==t||e.content instanceof o.TemplateRef}).map(function(n){t.instance[n]=e[n]}),t},t.prototype.contentFrom=function(t){if(!t||t instanceof o.TemplateRef)return{component:null,nodes:[[]]};var e=this.createComponent(t);return{component:e,nodes:[e?[e.location.nativeElement]:[]]}},t.decorators=[{type:o.Injectable}],t.ctorParameters=function(){return[{type:o.ApplicationRef},{type:o.ComponentFactoryResolver},{type:o.Injector},{type:o.ElementRef,decorators:[{type:o.Inject,args:[Et]},{type:o.Optional}]}]},t}(),St=[wt],Ot=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{declarations:[St],entryComponents:[St],exports:[St],imports:[B.CommonModule],providers:[Ct]}]}],t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6);e.TooltipDirective=o.TooltipDirective;var i=n(13);e.TooltipModule=i.TooltipModule;var r=n(7);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(0),r=n(3),s=n(6),a=n(10),p=n(8),u=[s.TooltipDirective,p.TooltipContentComponent],l=[a.PopupModule],c=function(){function t(){}return t=o.__decorate([i.NgModule({declarations:[u],entryComponents:[p.TooltipContentComponent],imports:[r.CommonModule].concat(l),exports:[u]})],t)}();e.TooltipModule=c}])}); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-popup"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@angular/common")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-popup","rxjs/operators","rxjs","@progress/kendo-angular-l10n","@angular/common"],e):"object"==typeof exports?exports.KendoAngularTooltip=e(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-popup"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@angular/common")):t.KendoAngularTooltip=e(t.tslib,t["@angular/core"],t["@progress/kendo-angular-popup"],t["rxjs/operators"],t.rxjs,t["@progress/kendo-angular-l10n"],t["@angular/common"])}(window,function(t,e,o,i,n,r,s){return function(t){var e={};function o(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=7)}([function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(8),s=o(9),p=o(3),a=o(4),l=o(5),u=o(6),c=function(){function t(t,e,o,i,n,p){var a=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],Object.assign(this,n,p),this.ngZone.runOutsideAngular(function(){var t=a.tooltipWrapper.nativeElement;a.anchorTitleSubscription=s.fromEvent(t,"mouseover").pipe(r.filter(function(){return""!==a.filter})).subscribe(function(t){var e=u.closest(t.target,a.filter);e&&a.hideElementTitle({nativeElement:e})}),a.mouseOverSubscription=s.fromEvent(t,"mouseover").pipe(r.debounceTime(100),r.filter(function(){return""!==a.filter})).subscribe(function(t){return a.onMouseOver(t)}),a.mouseOutSubscription=s.fromEvent(t,"mouseout").pipe(r.debounceTime(100)).subscribe(function(t){return a.onMouseOut(t)})})}return Object.defineProperty(t.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),t.prototype.show=function(t){var e=this;if(!this.popupRef)if(t instanceof Element&&(t={nativeElement:t}),this.anchor=t,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return e.showContent(e.anchor)},this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},t.prototype.hide=function(){clearTimeout(this.showTimeout);var t=this.anchor&&this.anchor.nativeElement;t&&t.getAttribute("data-title")&&(t.getAttribute("title")||t.setAttribute("title",t.getAttribute("data-title")),t.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},t.prototype.toggle=function(t,e){var o=this.anchor&&this.anchor.nativeElement;t instanceof Element&&(t={nativeElement:t}),o!==t.nativeElement&&this.hide(),o===t.nativeElement&&"click"===this.showOn&&this.hide(),void 0===e&&(e=!this.popupRef),e?this.show(t):this.hide()},t.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},t.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},t.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!u.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},t.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},t.prototype.showContent=function(t){var e=this;(t.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){e.openPopup(t),e.bindContent(e.popupRef.content,t)}),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe(function(){return e.hide()}))},t.prototype.bindContent=function(t,e){var o=this,i=t.instance;this.closeClickSubscription=i.close.subscribe(function(){o.hide()}),this.template?i.templateRef=this.template:i.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(i.titleTemplate=this.titleTemplate),i.anchor=e,i.callout=this.callout,i.closable=this.closable,i.position=this.position,i.tooltipWidth=this.tooltipWidth,i.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},t.prototype.hideElementTitle=function(t){var e=t.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},t.prototype.openPopup=function(t){var e=this,o=u.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:u.collision(this.collision,this.position),margin:r,popupAlign:n,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var p=this.popupRef.content.instance;p.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(t){var o=t.flip,i=!0===o.horizontal||!0===o.vertical;p.updateCalloutPosition(e.position,i)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var t=e.popupRef.popupElement;e.popupMouseOutSubscription=s.fromEvent(t,"mouseout").subscribe(function(t){return e.onMouseOut(t)})})},t.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},t.prototype.subscribeClick=function(){var t=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=s.fromEvent(document,"click").pipe(r.filter(function(){return""!==t.filter})).subscribe(function(e){return t.onMouseClick(e,t.tooltipWrapper.nativeElement)}))},t.prototype.onMouseClick=function(t,e){var o=t.target,i=u.closest(o,this.filter),n=this.popupRef&&this.popupRef.popupElement;if(n){if(n.contains(o))return;if(this.closable)return}e.contains(o)&&i?this.toggle(i,!0):n&&this.hide()},t.prototype.onMouseOver=function(t){var e=u.closest(t.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},t.prototype.onMouseOut=function(t){if("hover"===this.showOn&&!this.closable){var e=this.popupRef&&this.popupRef.popupElement,o=t.relatedTarget;o&&this.anchor&&u.contains(this.anchor.nativeElement,o)||o&&u.contains(e,o)||this.hide()}},t.prototype.verifyProperties=function(){if(n.isDevMode()){if(!u.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!u.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],t.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],t.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],t.prototype,"tooltipTemplate",null),t=i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(a.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,p.PopupService,a.TooltipSettings,a.TooltipSettings])],t)}();e.TooltipDirective=c},function(t,e){t.exports=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(1);e.TOOLTIP_SETTINGS=new n.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function t(){}return t=i.__decorate([n.Injectable()],t)}();e.TooltipSettings=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(10),s=o(6),p=function(){function t(t,e){this.content=t,this.localizationService=e,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(t,e,o){var i={},n="top"===t||"bottom"===t;return o?("top"===t?i.bottom="unset":"bottom"===t?i.top="unset":"left"===t?i.right="unset":"right"===t&&(i.left="unset"),i[t]=-e+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)",i):(i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i)},this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){var o=e.rtl;return t.direction=o?"rtl":"ltr"})},t.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},t.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},t.prototype.onCloseClick=function(t){t.preventDefault(),this.close.emit()},t.prototype.updateCalloutPosition=function(t,e){if(this.callout){var o=this.content.nativeElement.querySelector(".k-callout"),i="top"===t||"bottom"===t,n=i?"width":"height",r=i?"left":"top",p=i?"marginLeft":"marginTop",a=o.getBoundingClientRect()[n],l=s.getCenterOffset(this.anchor.nativeElement,r,n),u=s.getCenterOffset(this.content.nativeElement,r,n),c=Math.abs(u-l);if(c>1||0===c||0===Math.round(c)){var h=u-l+a/2;o.style[p]=-h+"px"}var d=this.calloutStyles(t,a,e);Object.keys(d).forEach(function(t){o.style[t]=d[t]})}},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],t.prototype,"direction",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],t.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],t.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],t.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"templateString",void 0),t=i.__decorate([n.Component({selector:"kendo-tooltip",template:'\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" title="Close"></a>\n </div>\n\n <div class="k-tooltip-content">\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],t)}();e.TooltipContentComponent=p},function(t,e,o){"use strict";function i(t){return 9===t.nodeType}Object.defineProperty(e,"__esModule",{value:!0}),e.align=function(t,e){var o={},i={},n={};switch(t){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:e};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:e};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:e,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:e,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},e.collision=function(t,e){return t||("top"===e||"bottom"===e?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},e.closest=function(t,e){if(t.closest)return t.closest(e);for(var o=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},n=t;n&&!i(n);){if(o(n,e))return n;n=n.parentNode}},e.contains=function(t,e){return!!t&&!i(t)&&(t.contains?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},e.hasParent=function(t,e){for(;t&&t!==e;)t=t.parentNode;return t},e.getCenterOffset=function(t,e,o){var i=t.getBoundingClientRect();return i[e]+i[o]/2},e.containsItem=function(t,e){return-1!==t.indexOf(e)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2);e.TooltipDirective=i.TooltipDirective;var n=o(11);e.TooltipModule=n.TooltipModule;var r=o(4);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS},function(t,e){t.exports=i},function(t,e){t.exports=n},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(12),s=o(2),p=o(3),a=o(5),l=[s.TooltipDirective,a.TooltipContentComponent],u=[p.PopupModule],c=function(){function t(){}return t=i.__decorate([n.NgModule({declarations:[l],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(u),exports:[l]})],t)}();e.TooltipModule=c},function(t,e){t.exports=s}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-popup"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@angular/common")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-popup","rxjs/operators","rxjs","@progress/kendo-angular-l10n","@angular/common"],e):"object"==typeof exports?exports.KendoAngularTooltip=e(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-popup"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@angular/common")):t.KendoAngularTooltip=e(t.tslib,t["@angular/core"],t["@progress/kendo-angular-popup"],t["rxjs/operators"],t.rxjs,t["@progress/kendo-angular-l10n"],t["@angular/common"])}(window,function(t,e,o,i,n,r,s){return function(t){var e={};function o(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=7)}([function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(8),s=o(9),p=o(3),a=o(4),l=o(5),u=o(6),c=function(){function t(t,e,o,i,n,p){var a=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],Object.assign(this,n,p),this.ngZone.runOutsideAngular(function(){var t=a.tooltipWrapper.nativeElement;a.anchorTitleSubscription=s.fromEvent(t,"mouseover").pipe(r.filter(function(){return""!==a.filter})).subscribe(function(t){var e=u.closest(t.target,a.filter);e&&a.hideElementTitle({nativeElement:e})}),a.mouseOverSubscription=s.fromEvent(t,"mouseover").pipe(r.debounceTime(100),r.filter(function(){return""!==a.filter})).subscribe(function(t){return a.onMouseOver(t)}),a.mouseOutSubscription=s.fromEvent(t,"mouseout").pipe(r.debounceTime(100)).subscribe(function(t){return a.onMouseOut(t)})})}return Object.defineProperty(t.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),t.prototype.show=function(t){var e=this;if(!this.popupRef)if(t instanceof Element&&(t={nativeElement:t}),this.anchor=t,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return e.showContent(e.anchor)},this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},t.prototype.hide=function(){clearTimeout(this.showTimeout);var t=this.anchor&&this.anchor.nativeElement;t&&t.getAttribute("data-title")&&(t.getAttribute("title")||t.setAttribute("title",t.getAttribute("data-title")),t.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},t.prototype.toggle=function(t,e){var o=this.anchor&&this.anchor.nativeElement;t instanceof Element&&(t={nativeElement:t}),o!==t.nativeElement&&this.hide(),o===t.nativeElement&&"click"===this.showOn&&this.hide(),void 0===e&&(e=!this.popupRef),e?this.show(t):this.hide()},t.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},t.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},t.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!u.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},t.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},t.prototype.showContent=function(t){var e=this;(t.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){e.openPopup(t),e.bindContent(e.popupRef.content,t)}),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe(function(){return e.hide()}))},t.prototype.bindContent=function(t,e){var o=this,i=t.instance;this.closeClickSubscription=i.close.subscribe(function(){o.hide()}),this.template?i.templateRef=this.template:i.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(i.titleTemplate=this.titleTemplate),i.anchor=e,i.callout=this.callout,i.closable=this.closable,i.position=this.position,i.tooltipWidth=this.tooltipWidth,i.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},t.prototype.hideElementTitle=function(t){var e=t.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},t.prototype.openPopup=function(t){var e=this,o=u.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:u.collision(this.collision,this.position),margin:r,popupAlign:n,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var p=this.popupRef.content.instance;p.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(t){var o=t.flip,i=!0===o.horizontal||!0===o.vertical;p.updateCalloutPosition(e.position,i)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var t=e.popupRef.popupElement;e.popupMouseOutSubscription=s.fromEvent(t,"mouseout").subscribe(function(t){return e.onMouseOut(t)})})},t.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},t.prototype.subscribeClick=function(){var t=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=s.fromEvent(document,"click").pipe(r.filter(function(){return""!==t.filter})).subscribe(function(e){return t.onMouseClick(e,t.tooltipWrapper.nativeElement)}))},t.prototype.onMouseClick=function(t,e){var o=t.target,i=u.closest(o,this.filter),n=this.popupRef&&this.popupRef.popupElement;if(n){if(n.contains(o))return;if(this.closable)return}e.contains(o)&&i?this.toggle(i,!0):n&&this.hide()},t.prototype.onMouseOver=function(t){var e=u.closest(t.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},t.prototype.onMouseOut=function(t){if("hover"===this.showOn&&!this.closable){var e=this.popupRef&&this.popupRef.popupElement,o=t.relatedTarget;o&&this.anchor&&u.contains(this.anchor.nativeElement,o)||o&&u.contains(e,o)||this.hide()}},t.prototype.verifyProperties=function(){if(n.isDevMode()){if(!u.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!u.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],t.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],t.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],t.prototype,"tooltipTemplate",null),t=i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(a.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,p.PopupService,a.TooltipSettings,a.TooltipSettings])],t)}();e.TooltipDirective=c},function(t,e){t.exports=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(1);e.TOOLTIP_SETTINGS=new n.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function t(){}return t=i.__decorate([n.Injectable()],t)}();e.TooltipSettings=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(10),s=o(6),p=function(){function t(t,e){this.content=t,this.localizationService=e,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(t,e,o){var i={},n="top"===t||"bottom"===t;return o?("top"===t?i.bottom="unset":"bottom"===t?i.top="unset":"left"===t?i.right="unset":"right"===t&&(i.left="unset"),i[t]=-e+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)",i):(i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i)},this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){var o=e.rtl;return t.direction=o?"rtl":"ltr"})},t.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},t.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},t.prototype.onCloseClick=function(t){t.preventDefault(),this.close.emit()},t.prototype.updateCalloutPosition=function(t,e){if(this.callout){var o=this.content.nativeElement.querySelector(".k-callout"),i="top"===t||"bottom"===t,n=i?"width":"height",r=i?"left":"top",p=i?"marginLeft":"marginTop",a=o.getBoundingClientRect()[n],l=s.getCenterOffset(this.anchor.nativeElement,r,n),u=s.getCenterOffset(this.content.nativeElement,r,n),c=Math.abs(u-l);if(c>1||0===c||0===Math.round(c)){var h=u-l+a/2;o.style[p]=-h+"px"}var d=this.calloutStyles(t,a,e);Object.keys(d).forEach(function(t){o.style[t]=d[t]})}},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],t.prototype,"direction",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],t.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],t.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],t.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"templateString",void 0),t=i.__decorate([n.Component({selector:"kendo-tooltip",template:'\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" title="Close"></a>\n </div>\n\n <div class="k-tooltip-content">\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],t)}();e.TooltipContentComponent=p},function(t,e,o){"use strict";function i(t){return 9===t.nodeType}Object.defineProperty(e,"__esModule",{value:!0}),e.align=function(t,e){var o={},i={},n={};switch(t){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:e};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:e};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:e,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:e,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},e.collision=function(t,e){return t||("top"===e||"bottom"===e?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},e.closest=function(t,e){if(t.closest)return t.closest(e);for(var o=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},n=t;n&&!i(n);){if(o(n,e))return n;n=n.parentNode}},e.contains=function(t,e){return!!t&&(!i(t)&&(t.contains?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0))},e.hasParent=function(t,e){for(;t&&t!==e;)t=t.parentNode;return t},e.getCenterOffset=function(t,e,o){var i=t.getBoundingClientRect();return i[e]+i[o]/2},e.containsItem=function(t,e){return-1!==t.indexOf(e)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2);e.TooltipDirective=i.TooltipDirective;var n=o(11);e.TooltipModule=n.TooltipModule;var r=o(4);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS},function(t,e){t.exports=i},function(t,e){t.exports=n},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(12),s=o(2),p=o(3),a=o(5),l=[s.TooltipDirective,a.TooltipContentComponent],u=[p.PopupModule],c=function(){function t(){}return t=i.__decorate([n.NgModule({declarations:[l],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(u),exports:[l]})],t)}();e.TooltipModule=c},function(t,e){t.exports=s}])}); |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-angular-tooltip",["tslib","@angular/core","@angular/common","@progress/kendo-angular-popup","rxjs/operators","rxjs","@progress/kendo-angular-l10n"],function(s){var r,p,a,l,u,c,h;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){r=e(t)},function(t){p=e(t)},function(t){a=e(t)},function(t){l=e(t)},function(t){u=e(t)},function(t){c=e(t)},function(t){h=e(t)}],execute:function(){function i(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var o,n;n={},i.m=o=[function(t,e){t.exports=p},function(t,e){t.exports=r},function(t,e,o){"use strict";function n(t){return 9===t.nodeType}Object.defineProperty(e,"__esModule",{value:!0}),e.align=function(t,e){var o={},i={},n={};switch(t){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:e};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:e};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:e,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:e,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},e.collision=function(t,e){return t||("top"===e||"bottom"===e?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},e.closest=function(t,e){if(t.closest)return t.closest(e);for(var o=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},i=t;i&&!n(i);){if(o(i,e))return i;i=i.parentNode}},e.contains=function(t,e){return!!t&&!n(t)&&(t.contains?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},e.hasParent=function(t,e){for(;t&&t!==e;)t=t.parentNode;return t},e.getCenterOffset=function(t,e,o){var i=t.getBoundingClientRect();return i[e]+i[o]/2},e.containsItem=function(t,e){return-1!==t.indexOf(e)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),r=o(9),d=o(2),s=(Object.defineProperty(p.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),p.prototype.ngOnInit=function(){var o=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(t){var e=t.rtl;return o.direction=e?"rtl":"ltr"})},p.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},p.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},p.prototype.onCloseClick=function(t){t.preventDefault(),this.close.emit()},p.prototype.updateCalloutPosition=function(t,e){if(this.callout){var o=this.content.nativeElement.querySelector(".k-callout"),i="top"===t||"bottom"===t,n=i?"width":"height",r=i?"left":"top",s=i?"marginLeft":"marginTop",p=o.getBoundingClientRect()[n],a=d.getCenterOffset(this.anchor.nativeElement,r,n),l=d.getCenterOffset(this.content.nativeElement,r,n),u=Math.abs(l-a);if(1<u||0===u||0===Math.round(u)){var c=l-a+p/2;o.style[s]=-c+"px"}var h=this.calloutStyles(t,p,e);Object.keys(h).forEach(function(t){o.style[t]=h[t]})}},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],p.prototype,"direction",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],p.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],p.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],p.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],p.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],p.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],p.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],p.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],p.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],p.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],p.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],p.prototype,"templateString",void 0),i.__decorate([n.Component({selector:"kendo-tooltip",template:'\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" title="Close"></a>\n </div>\n\n <div class="k-tooltip-content">\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],p));function p(t,e){this.content=t,this.localizationService=e,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(t,e,o){var i={},n="top"===t||"bottom"===t;return o?("top"===t?i.bottom="unset":"bottom"===t?i.top="unset":"left"===t?i.right="unset":"right"===t&&(i.left="unset"),i[t]=-e+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)"):i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i},this.direction=e.rtl?"rtl":"ltr"}e.TooltipContentComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0);e.TOOLTIP_SETTINGS=new n.InjectionToken("kendo-ui-tooltip-settings");var r=i.__decorate([n.Injectable()],s);function s(){}e.TooltipSettings=r},function(t,e){t.exports=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),p=o(11),a=o(10),r=o(5),s=o(4),l=o(3),u=o(2),c=(Object.defineProperty(h.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),h.prototype.show=function(t){var e=this;if(!this.popupRef)if(t instanceof Element&&(t={nativeElement:t}),this.anchor=t,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return e.showContent(e.anchor)},this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},h.prototype.hide=function(){clearTimeout(this.showTimeout);var t=this.anchor&&this.anchor.nativeElement;t&&t.getAttribute("data-title")&&(t.getAttribute("title")||t.setAttribute("title",t.getAttribute("data-title")),t.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},h.prototype.toggle=function(t,e){var o=this.anchor&&this.anchor.nativeElement;t instanceof Element&&(t={nativeElement:t}),o!==t.nativeElement&&this.hide(),o===t.nativeElement&&"click"===this.showOn&&this.hide(),void 0===e&&(e=!this.popupRef),e?this.show(t):this.hide()},h.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},h.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},h.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!u.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},h.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},h.prototype.showContent=function(t){var e=this;(t.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){e.openPopup(t),e.bindContent(e.popupRef.content,t)}),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe(function(){return e.hide()}))},h.prototype.bindContent=function(t,e){var o=this,i=t.instance;this.closeClickSubscription=i.close.subscribe(function(){o.hide()}),this.template?i.templateRef=this.template:i.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(i.titleTemplate=this.titleTemplate),i.anchor=e,i.callout=this.callout,i.closable=this.closable,i.position=this.position,i.tooltipWidth=this.tooltipWidth,i.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},h.prototype.hideElementTitle=function(t){var e=t.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},h.prototype.openPopup=function(t){var i=this,e=u.align(this.position,this.offset),o=e.anchorAlign,n=e.popupAlign,r=e.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:o,animate:!1,content:l.TooltipContentComponent,collision:u.collision(this.collision,this.position),margin:r,popupAlign:n,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var s=this.popupRef.content.instance;s.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(t){var e=t.flip,o=!0===e.horizontal||!0===e.vertical;s.updateCalloutPosition(i.position,o)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var t=i.popupRef.popupElement;i.popupMouseOutSubscription=a.fromEvent(t,"mouseout").subscribe(function(t){return i.onMouseOut(t)})})},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},h.prototype.subscribeClick=function(){var e=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=a.fromEvent(document,"click").pipe(p.filter(function(){return""!==e.filter})).subscribe(function(t){return e.onMouseClick(t,e.tooltipWrapper.nativeElement)}))},h.prototype.onMouseClick=function(t,e){var o=t.target,i=u.closest(o,this.filter),n=this.popupRef&&this.popupRef.popupElement;if(n){if(n.contains(o))return;if(this.closable)return}e.contains(o)&&i?this.toggle(i,!0):n&&this.hide()},h.prototype.onMouseOver=function(t){var e=u.closest(t.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},h.prototype.onMouseOut=function(t){if("hover"===this.showOn&&!this.closable){var e=this.popupRef&&this.popupRef.popupElement,o=t.relatedTarget;o&&this.anchor&&u.contains(this.anchor.nativeElement,o)||o&&u.contains(e,o)||this.hide()}},h.prototype.verifyProperties=function(){if(n.isDevMode()){if(!u.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!u.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],h.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],h.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],h.prototype,"tooltipTemplate",null),i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(s.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,r.PopupService,s.TooltipSettings,s.TooltipSettings])],h));function h(t,e,o,i,n,r){var s=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],Object.assign(this,n,r),this.ngZone.runOutsideAngular(function(){var t=s.tooltipWrapper.nativeElement;s.anchorTitleSubscription=a.fromEvent(t,"mouseover").pipe(p.filter(function(){return""!==s.filter})).subscribe(function(t){var e=u.closest(t.target,s.filter);e&&s.hideElementTitle({nativeElement:e})}),s.mouseOverSubscription=a.fromEvent(t,"mouseover").pipe(p.debounceTime(100),p.filter(function(){return""!==s.filter})).subscribe(function(t){return s.onMouseOver(t)}),s.mouseOutSubscription=a.fromEvent(t,"mouseout").pipe(p.debounceTime(100)).subscribe(function(t){return s.onMouseOut(t)})})}e.TooltipDirective=c},function(t,e){t.exports=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),r=o(7),s=o(6),p=o(5),a=o(3),l=[s.TooltipDirective,a.TooltipContentComponent],u=[p.PopupModule],c=i.__decorate([n.NgModule({declarations:[l],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(u),exports:[l]})],h);function h(){}e.TooltipModule=c},function(t,e){t.exports=h},function(t,e){t.exports=c},function(t,e){t.exports=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(6);e.TooltipDirective=i.TooltipDirective;var n=o(8);e.TooltipModule=n.TooltipModule;var r=o(4);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS,function(t){for(var e in t)s(e,t[e])}(e)}],i.c=n,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=12)}}}); | ||
System.register("@progress/kendo-angular-tooltip",["@angular/common","tslib","@progress/kendo-angular-popup","@angular/core","rxjs/operators","rxjs","@progress/kendo-angular-l10n"],function(s){var r,p,a,l,u,c,h;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){r=e(t)},function(t){p=e(t)},function(t){a=e(t)},function(t){l=e(t)},function(t){u=e(t)},function(t){c=e(t)},function(t){h=e(t)}],execute:function(){function i(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var o,n;n={},i.m=o=[function(t,e){t.exports=l},function(t,e){t.exports=p},function(t,e,o){"use strict";function n(t){return 9===t.nodeType}Object.defineProperty(e,"__esModule",{value:!0}),e.align=function(t,e){var o={},i={},n={};switch(t){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:e};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:e};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:e,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:e,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},e.collision=function(t,e){return t||("top"===e||"bottom"===e?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},e.closest=function(t,e){if(t.closest)return t.closest(e);for(var o=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},i=t;i&&!n(i);){if(o(i,e))return i;i=i.parentNode}},e.contains=function(t,e){return!!t&&!n(t)&&(t.contains?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},e.hasParent=function(t,e){for(;t&&t!==e;)t=t.parentNode;return t},e.getCenterOffset=function(t,e,o){var i=t.getBoundingClientRect();return i[e]+i[o]/2},e.containsItem=function(t,e){return-1!==t.indexOf(e)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),r=o(9),d=o(2),s=(Object.defineProperty(p.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),p.prototype.ngOnInit=function(){var o=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(t){var e=t.rtl;return o.direction=e?"rtl":"ltr"})},p.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},p.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},p.prototype.onCloseClick=function(t){t.preventDefault(),this.close.emit()},p.prototype.updateCalloutPosition=function(t,e){if(this.callout){var o=this.content.nativeElement.querySelector(".k-callout"),i="top"===t||"bottom"===t,n=i?"width":"height",r=i?"left":"top",s=i?"marginLeft":"marginTop",p=o.getBoundingClientRect()[n],a=d.getCenterOffset(this.anchor.nativeElement,r,n),l=d.getCenterOffset(this.content.nativeElement,r,n),u=Math.abs(l-a);if(1<u||0===u||0===Math.round(u)){var c=l-a+p/2;o.style[s]=-c+"px"}var h=this.calloutStyles(t,p,e);Object.keys(h).forEach(function(t){o.style[t]=h[t]})}},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],p.prototype,"direction",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],p.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],p.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],p.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],p.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],p.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],p.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],p.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],p.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],p.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],p.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],p.prototype,"templateString",void 0),i.__decorate([n.Component({selector:"kendo-tooltip",template:'\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" title="Close"></a>\n </div>\n\n <div class="k-tooltip-content">\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],p));function p(t,e){this.content=t,this.localizationService=e,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(t,e,o){var i={},n="top"===t||"bottom"===t;return o?("top"===t?i.bottom="unset":"bottom"===t?i.top="unset":"left"===t?i.right="unset":"right"===t&&(i.left="unset"),i[t]=-e+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)"):i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i},this.direction=e.rtl?"rtl":"ltr"}e.TooltipContentComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0);e.TOOLTIP_SETTINGS=new n.InjectionToken("kendo-ui-tooltip-settings");var r=i.__decorate([n.Injectable()],s);function s(){}e.TooltipSettings=r},function(t,e){t.exports=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),p=o(11),a=o(10),r=o(5),s=o(4),l=o(3),u=o(2),c=(Object.defineProperty(h.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),h.prototype.show=function(t){var e=this;if(!this.popupRef)if(t instanceof Element&&(t={nativeElement:t}),this.anchor=t,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return e.showContent(e.anchor)},this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},h.prototype.hide=function(){clearTimeout(this.showTimeout);var t=this.anchor&&this.anchor.nativeElement;t&&t.getAttribute("data-title")&&(t.getAttribute("title")||t.setAttribute("title",t.getAttribute("data-title")),t.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},h.prototype.toggle=function(t,e){var o=this.anchor&&this.anchor.nativeElement;t instanceof Element&&(t={nativeElement:t}),o!==t.nativeElement&&this.hide(),o===t.nativeElement&&"click"===this.showOn&&this.hide(),void 0===e&&(e=!this.popupRef),e?this.show(t):this.hide()},h.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},h.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},h.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!u.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},h.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},h.prototype.showContent=function(t){var e=this;(t.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){e.openPopup(t),e.bindContent(e.popupRef.content,t)}),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe(function(){return e.hide()}))},h.prototype.bindContent=function(t,e){var o=this,i=t.instance;this.closeClickSubscription=i.close.subscribe(function(){o.hide()}),this.template?i.templateRef=this.template:i.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(i.titleTemplate=this.titleTemplate),i.anchor=e,i.callout=this.callout,i.closable=this.closable,i.position=this.position,i.tooltipWidth=this.tooltipWidth,i.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},h.prototype.hideElementTitle=function(t){var e=t.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},h.prototype.openPopup=function(t){var i=this,e=u.align(this.position,this.offset),o=e.anchorAlign,n=e.popupAlign,r=e.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:o,animate:!1,content:l.TooltipContentComponent,collision:u.collision(this.collision,this.position),margin:r,popupAlign:n,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var s=this.popupRef.content.instance;s.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(t){var e=t.flip,o=!0===e.horizontal||!0===e.vertical;s.updateCalloutPosition(i.position,o)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var t=i.popupRef.popupElement;i.popupMouseOutSubscription=a.fromEvent(t,"mouseout").subscribe(function(t){return i.onMouseOut(t)})})},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},h.prototype.subscribeClick=function(){var e=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=a.fromEvent(document,"click").pipe(p.filter(function(){return""!==e.filter})).subscribe(function(t){return e.onMouseClick(t,e.tooltipWrapper.nativeElement)}))},h.prototype.onMouseClick=function(t,e){var o=t.target,i=u.closest(o,this.filter),n=this.popupRef&&this.popupRef.popupElement;if(n){if(n.contains(o))return;if(this.closable)return}e.contains(o)&&i?this.toggle(i,!0):n&&this.hide()},h.prototype.onMouseOver=function(t){var e=u.closest(t.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},h.prototype.onMouseOut=function(t){if("hover"===this.showOn&&!this.closable){var e=this.popupRef&&this.popupRef.popupElement,o=t.relatedTarget;o&&this.anchor&&u.contains(this.anchor.nativeElement,o)||o&&u.contains(e,o)||this.hide()}},h.prototype.verifyProperties=function(){if(n.isDevMode()){if(!u.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!u.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],h.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],h.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],h.prototype,"tooltipTemplate",null),i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(s.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,r.PopupService,s.TooltipSettings,s.TooltipSettings])],h));function h(t,e,o,i,n,r){var s=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],Object.assign(this,n,r),this.ngZone.runOutsideAngular(function(){var t=s.tooltipWrapper.nativeElement;s.anchorTitleSubscription=a.fromEvent(t,"mouseover").pipe(p.filter(function(){return""!==s.filter})).subscribe(function(t){var e=u.closest(t.target,s.filter);e&&s.hideElementTitle({nativeElement:e})}),s.mouseOverSubscription=a.fromEvent(t,"mouseover").pipe(p.debounceTime(100),p.filter(function(){return""!==s.filter})).subscribe(function(t){return s.onMouseOver(t)}),s.mouseOutSubscription=a.fromEvent(t,"mouseout").pipe(p.debounceTime(100)).subscribe(function(t){return s.onMouseOut(t)})})}e.TooltipDirective=c},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),r=o(7),s=o(6),p=o(5),a=o(3),l=[s.TooltipDirective,a.TooltipContentComponent],u=[p.PopupModule],c=i.__decorate([n.NgModule({declarations:[l],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(u),exports:[l]})],h);function h(){}e.TooltipModule=c},function(t,e){t.exports=h},function(t,e){t.exports=c},function(t,e){t.exports=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(6);e.TooltipDirective=i.TooltipDirective;var n=o(8);e.TooltipModule=n.TooltipModule;var r=o(4);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS,function(t){for(var e in t)s(e,t[e])}(e)}],i.c=n,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=12)}}}); |
@@ -6,3 +6,3 @@ { | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
"version": "2.1.0-dev.201907251344", | ||
"version": "2.1.0", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3
271842