@progress/kendo-angular-tooltip
Advanced tools
Comparing version 1.2.2-dev.201905291049 to 1.2.2
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("rxjs/observable/fromEvent"),require("@angular/animations"),require("tslib"),require("rxjs/operators/auditTime"),require("@angular/common"),require("rxjs/observable/fromPromise"),require("rxjs/observable/merge"),require("rxjs/operators/take"),require("rxjs/operators/debounceTime"),require("rxjs/operators/filter"),require("@progress/kendo-angular-l10n")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs/observable/fromEvent","@angular/animations","tslib","rxjs/operators/auditTime","@angular/common","rxjs/observable/fromPromise","rxjs/observable/merge","rxjs/operators/take","rxjs/operators/debounceTime","rxjs/operators/filter","@progress/kendo-angular-l10n"],e):"object"==typeof exports?exports.KendoAngularTooltip=e(require("@angular/core"),require("rxjs/observable/fromEvent"),require("@angular/animations"),require("tslib"),require("rxjs/operators/auditTime"),require("@angular/common"),require("rxjs/observable/fromPromise"),require("rxjs/observable/merge"),require("rxjs/operators/take"),require("rxjs/operators/debounceTime"),require("rxjs/operators/filter"),require("@progress/kendo-angular-l10n")):t.KendoAngularTooltip=e(t["@angular/core"],t["rxjs/observable/fromEvent"],t["@angular/animations"],t.tslib,t["rxjs/operators/auditTime"],t["@angular/common"],t["rxjs/observable/fromPromise"],t["rxjs/observable/merge"],t["rxjs/operators/take"],t["rxjs/operators/debounceTime"],t["rxjs/operators/filter"],t["@progress/kendo-angular-l10n"])}(window,function(t,e,o,n,i,r,s,a,p,l,u,c){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},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 n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},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=13)}([function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e){t.exports=o},function(t,e){t.exports=n},function(t,e){t.exports=i},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),i=o(0),r=o(14),s=o(1),a=o(15),p=o(16),l=o(10),u=o(7),c=o(8),h=o(9),f=o(17),d=function(){function t(t,e,o,n,i,r,l){var u=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=o,this.popupService=n,this.localizationService=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"],this.direction=i.rtl?"rtl":"ltr",Object.assign(this,r,l),this.ngZone.runOutsideAngular(function(){var t=u.tooltipWrapper.nativeElement;u.anchorTitleSubscription=s.fromEvent(t,"mouseover").pipe(p.filter(function(){return""!==u.filter})).subscribe(function(t){var e=h.closest(t.target,u.filter);e&&u.hideElementTitle({nativeElement:e})}),u.mouseOverSubscription=s.fromEvent(t,"mouseover").pipe(a.debounceTime(100),p.filter(function(){return""!==u.filter})).subscribe(function(t){return u.onMouseOver(t)}),u.mouseOutSubscription=s.fromEvent(t,"mouseout").pipe(a.debounceTime(100)).subscribe(function(t){return u.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(){var t=this;void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties(),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){var o=e.rtl;return t.direction=o?"rtl":"ltr"})},t.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},t.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!h.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.dynamicRTLSubscription&&this.dynamicRTLSubscription.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,n=t.instance;this.closeClickSubscription=n.close.subscribe(function(){o.hide()}),this.template?n.templateRef=this.template:n.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(n.titleTemplate=this.titleTemplate),n.anchor=e,n.callout=this.callout,n.closable=this.closable,n.position=this.position,n.tooltipWidth=this.tooltipWidth,n.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=h.align(this.position,this.offset),n=o.anchorAlign,i=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:n,animate:!1,content:c.TooltipContentComponent,collision:h.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 o=t.flip,n=!0===o.horizontal||!0===o.vertical;a.updateCalloutPosition(e.position,n)})),"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(p.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,n=h.closest(o,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(o))return;if(this.closable)return}e.contains(o)&&n?this.toggle(n,!0):i&&this.hide()},t.prototype.onMouseOver=function(t){var e=h.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&&h.contains(this.anchor.nativeElement,o)||o&&h.contains(e,o)||this.hide()}},t.prototype.verifyProperties=function(){if(i.isDevMode()){if(!h.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!h.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String)],t.prototype,"direction",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"filter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"position",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],t.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"showOn",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],t.prototype,"showAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],t.prototype,"callout",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],t.prototype,"offset",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"tooltipClass",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"collision",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef),n.__metadata("design:paramtypes",[i.TemplateRef])],t.prototype,"tooltipTemplate",null),t=n.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip",providers:[f.LocalizationService,{provide:f.L10N_PREFIX,useValue:"kendo.tooltip"}]}),n.__param(5,i.Optional()),n.__param(6,i.Optional()),n.__param(6,i.Inject(u.TOOLTIP_SETTINGS)),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2,l.PopupService,f.LocalizationService,u.TooltipSettings,u.TooltipSettings])],t)}();e.TooltipDirective=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),i=o(0);e.TOOLTIP_SETTINGS=new i.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function t(){}return t=n.__decorate([i.Injectable()],t)}();e.TooltipSettings=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),i=o(0),r=o(9),s=function(){function t(t){this.content=t,this.close=new i.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(t,e,o){var n={},i="top"===t||"bottom"===t;return o?("top"===t?n.bottom="unset":"bottom"===t?n.top="unset":"left"===t?n.right="unset":"right"===t&&(n.left="unset"),n[t]=-e+"px",n.transform=i?"rotateX(180deg)":"rotateY(180deg)",n):(n.transform=i?"rotateX(0deg)":"rotateY(0deg)",n)}}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.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"),n="top"===t||"bottom"===t,i=n?"width":"height",s=n?"left":"top",a=n?"marginLeft":"marginTop",p=o.getBoundingClientRect()[i],l=r.getCenterOffset(this.anchor.nativeElement,s,i),u=r.getCenterOffset(this.content.nativeElement,s,i),c=Math.abs(u-l);if(c>1||0===c||0===Math.round(c)){var h=u-l+p/2;o.style[a]=-h+"px"}var f=this.calloutStyles(t,p,e);Object.keys(f).forEach(function(t){o.style[t]=f[t]})}},n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],t.prototype,"close",void 0),n.__decorate([i.HostBinding("class"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],t.prototype,"cssClasses",null),n.__decorate([i.HostBinding("class.k-tooltip-closable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],t.prototype,"className",null),n.__decorate([i.HostBinding("style.position"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],t.prototype,"cssPosition",null),n.__decorate([i.HostBinding("style.width.px"),i.Input(),n.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),n.__decorate([i.HostBinding("style.height.px"),i.Input(),n.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],t.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.ElementRef)],t.prototype,"anchor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],t.prototype,"templateRef",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"templateString",void 0),t=n.__decorate([i.Component({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 '}),n.__metadata("design:paramtypes",[i.ElementRef])],t)}();e.TooltipContentComponent=s},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={},n={},i={};switch(t){case"top":o={horizontal:"center",vertical:"top"},n={horizontal:"center",vertical:"bottom"},i={horizontal:0,vertical:e};break;case"bottom":o={horizontal:"center",vertical:"bottom"},n={horizontal:"center",vertical:"top"},i={horizontal:0,vertical:e};break;case"right":o={horizontal:"right",vertical:"center"},n={horizontal:"left",vertical:"center"},i={horizontal:e,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},n={horizontal:"right",vertical:"center"},i={horizontal:e,vertical:0}}return{anchorAlign:o,popupAlign:n,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 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 n=t.getBoundingClientRect();return n[e]+n[o]/2},e.containsItem=function(t,e){return-1!==t.indexOf(e)}},function(t,e,o){"use strict";o.r(e);var n=o(0),i=o(11),r="bottom",s="center",a="middle",p="left",l="right",u="top",c=function(t){var e=t.anchorRect,o=t.anchorAlign,n=t.elementRect,i=t.elementAlign,p=t.margin;void 0===p&&(p={});var u=o.horizontal,c=o.vertical,h=i.horizontal,f=i.vertical,d=p.horizontal||0,m=p.vertical||0,v=e.top,g=e.left;return c===r&&(v+=e.height),c!==s&&c!==a||(v+=Math.round(e.height/2)),f===r&&(v-=n.height,m*=-1),f!==s&&f!==a||(v-=Math.round(n.height/2),m*=-1),u===l&&(g+=e.width),u!==s&&u!==a||(g+=Math.round(e.width/2)),h===l&&(g-=n.width,d*=-1),h!==s&&h!==a||(g-=Math.round(n.width/2),d*=-1),{top:v+m,left:g+d}};function h(t){return t.ownerDocument||t.document||t}var f=function(t){return h(t).defaultView},d=function(t){return h(t).documentElement},m=0;function v(){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 g(t){var e=f(t),o=d(t),n={height:e.innerHeight,width:e.innerWidth};return o.scrollHeight-o.clientHeight>0&&(n.width-=v()),n}var y=function(t){if(!t.getBoundingClientRect){var e=g(t);return{bottom:e.height,left:0,right:e.width,top:0}}var o=t.getBoundingClientRect();return{bottom:o.bottom,left:o.left,right:o.right,top:o.top}},b=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||d(t)},_=function(t){var e=t.getBoundingClientRect(),o=e.left,n=e.top;return e.height||e.width||(e=function(t){var e=t.style,o=e.display,n=e.left,i=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var r=t.getBoundingClientRect();return t.style.display=o,t.style.left=n,t.style.position=i,r}(t)),{top:n,left:o,height:e.height,width:e.width}},w=function(t,e){for(var o=[],n=t.parentNode;n&&(o.push(n),n!==e);)n=n.parentNode;return o};function C(t){var e=d(t),o=f(t);return{x:o.pageXOffset||e.scrollLeft||0,y:o.pageYOffset||e.scrollTop||0}}var S=function(t){return t===(t.ownerDocument||{}).body?C(t):{x:t.scrollLeft,y:t.scrollTop}};var E=function(t,e){var o=f(t),n=o.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"!==n.position&&a){var l=o.getComputedStyle(r);(p=_(r)).top+=parseInt(l.borderTopWidth,10),p.left+=parseInt(l.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?S(t):function(t){var e=b(t);return e?S(e):{x:0,y:0}}(e)};var P="fit",T="flip",x=function(t,e,o){var n=0;return t+e>o&&(n=o-(t+e)),t<0&&(n=-t),n},I=function(t){var e=t.offset,o=t.size,n=t.anchorSize,i=t.viewPortSize,r=t.anchorAlignPoint,l=t.elementAlignPoint,c=0,h=2*t.margin;if(l!==r&&!(l===s||l===a)&&!(r===s||r===a)){var f=r===u||r===p;e<0&&f?e+(c=o+n+h)+o>i&&(c=0):e>=0&&!f&&(e+o>i&&(c+=-(n+o+h)),e+c<0&&(c=0))}return c},R=function(t){var e=t.anchorRect,o=t.anchorAlign,n=t.elementRect,i=t.elementAlign,r=t.collisions,s=t.viewPort,a=t.margin;void 0===a&&(a={});var p=n.top,l=n.left,u=n.height,c=n.width,h=s.height,f=s.width,d=a.horizontal||0,m=a.vertical||0,v=0,g=0,y=r.horizontal===T,b=r.vertical===T;r.vertical===P&&(g+=x(p,u,h)),r.horizontal===P&&(v+=x(l,c,f)),b&&(g+=I({margin:m,offset:p,size:u,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:o.vertical,elementAlignPoint:i.vertical})),y&&(v+=I({margin:d,offset:l,size:c,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:o.horizontal,elementAlignPoint:i.horizontal}));var _=y&&0!==v,w=b&&0!==g;return{flipped:_||w,flip:{horizontal:_,vertical:w},offset:{left:v,top:g}}},j=function(t){for(var e=[],o=t.parentNode.firstElementChild;o;)o!==t&&e.push(o),o=o.nextElementSibling;return e},A=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},k=function(){return"undefined"!=typeof document&&!!document.body},z=function(){return"undefined"!=typeof window},M=/auto|scroll/,N=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)},V=function(){if(!k())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}(),L=function(t,e){if(!t||!k()||!z())return null;var o=function(t,e){for(var o,n,i=w(t),r=e;r&&(o=j(r),!(n=i.reduce(function(t,e){return t.concat(o.filter(function(t){return t===e}))},[])[0]));)r=r.parentElement;return n}(t,e);if(!o)return null;var n=[t].concat(w(t,o)).reduce(function(t,e){var o=e.style.zIndex||window.getComputedStyle(e).zIndex,n=parseInt(o,10);return n>t?n:t},0);return n?n+1:null},D=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],q=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 o=e.getComputedStyle(this.nativeElement(t));return D.map(function(t){return{key:t,value:o[t]}})},t.prototype.getWindow=function(){return z()?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 o=this.nativeElement(t),n=o.style,i=n.left,r=n.top,s=n.transition;o.style.transition="none",o.style.left=e.left+"px",o.style.top=e.top+"px";var a=_(o);return o.style.left=i,o.style.top=r,o.offsetHeight,o.style.transition=s,a},t.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},t.prototype.position=function(t,e){return t&&e?function(t,e){var o=e?b(e):null,n=E(t,o),i=n.top,r=n.left,s=n.height,a=n.width,p=O(o,t),l=p.x;return{top:i+p.y,left:r+l,height:s,width:a}}(this.nativeElement(t),this.nativeElement(e)):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 R(t)},t.prototype.scrollPosition=function(t){return C(this.nativeElement(t))},t.prototype.scrollableParents=function(t){return function(t){var e=[];if(!k()||!z())return e;for(var o=t.parentElement;o;)(M.test(N(o))||o.hasAttribute("data-scrollable"))&&e.push(o),o=o.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||!V)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 g(this.nativeElement(t))},t.prototype.zIndex=function(t,e){return L(this.nativeElement(t),this.nativeElement(e))},t.prototype.zoomLevel=function(){return k()&&z()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),B=function(){function t(t){this._dom=t}return t.prototype.alignElement=function(t){var e=t.anchor,o=t.element,n=t.anchorAlign,i=t.elementAlign,r=t.margin,s=t.offset,a="fixed"===t.positionMode||!this._dom.hasOffsetParent(o)?this.absoluteRect(e,o,s):this.relativeRect(e,o,s);return this._dom.align({anchorAlign:n,anchorRect:a,elementAlign:i,elementRect:this._dom.offset(o),margin:r})},t.prototype.absoluteRect=function(t,e,o){return this._dom.removeScroll(this._dom.addScroll((n=A(this._dom.offset(t),o),(i=this._dom.stackingElementOffset(e))?{height:n.height,left:n.left-i.left,top:n.top-i.top,width:n.width}:n),this._dom.stackingElementScroll(e)),this.elementScrollPosition(t,e));var n,i},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,o){return A(this._dom.position(t,e),o)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:q}]},t}(),F=function(){function t(t){this._dom=t}return t.prototype.positionElement=function(t){var e=t.anchor,o=t.currentLocation,n=t.element,i=t.anchorAlign,r=t.elementAlign,s=t.collisions,a=t.margin,p=this._dom,l=p.restrictToView({anchorAlign:i,anchorRect:A(p.offset(e),o),collisions:s,elementAlign:r,elementRect:p.offsetAtPoint(n,o),margin:a,viewPort:t.viewPort||p.windowViewPort(n)});return{flip:l.flip,flipped:l.flipped,offset:p.addOffset(o,l.offset)}},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:q}]},t}(),W=o(1),H=o(4),Z=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.subscribe=function(t){var e=this;k()&&this._zone.runOutsideAngular(function(){e.subscription=Object(W.fromEvent)(e._dom.getWindow(),"resize").pipe(Object(H.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:n.Injectable}],t.ctorParameters=function(){return[{type:q},{type:n.NgZone}]},t}(),X=o(12),Y=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&&k()&&this.element){var o=this._dom.nativeElement(this.element),n=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(function(){var i=n.map(function(t){return Object(W.fromEvent)(t,"scroll").pipe(Object(H.auditTime)(1e3/60))});e.subscription=X.merge.apply(void 0,i).subscribe(function(i){var r=i.target,s=n.filter(function(t){return t===r}).length>0,a=r===document,p=r===window;(s||a||p)&&t(e.isVisible(o,r))})})}},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isVisible=function(t,e){var o=this._dom.boundingOffset(t),n=this._dom.boundingOffset(e);return!(1<n.top-o.bottom)&&(!(1<o.top-n.bottom)&&(!(1<o.left-n.right)&&!(1<n.left-o.right)))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:q},{type:n.NgZone}]},t}(),U=o(2),G={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)"}}}},$=function(){function t(t){this.animationBuilder=t,this.start=new n.EventEmitter,this.end=new n.EventEmitter}return t.prototype.play=function(t,e,o){if(!this.flip||this.flip.horizontal!==o.horizontal||this.flip.vertical!==o.vertical){this.flip=o;var i=e.type||"slide",r=G[i];if(r){var s=r(this.getDirection(o,e));this.playStates(t,s,e)}else if(Object(n.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,o){var n=this;this.stopPlayer();var i=o.duration||100,r=this.animationBuilder.build([Object(U.style)(e.start),Object(U.animate)(i+"ms ease-in",Object(U.style)(e.end))]),s=this.player=r.create(t);s.onDone(function(){n.end.emit(),n.stopPlayer()}),this.start.emit(),s.play()},t.prototype.getDirection=function(t,e){var o=e.direction||"down";return t.horizontal&&("left"===o?o="right":"right"===o&&(o="left")),t.vertical&&("down"===o?o="up":"up"===o&&(o="down")),o},t.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:U.AnimationBuilder}]},t}(),K={left:-1e4,top:0},J="k-animation-container",Q=function(t){return t.observers.length>0},tt=function(){function t(t,e,o,i,r,s,a,p,l){this.container=t,this._alignService=e,this.domService=o,this._positionService=i,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=p,this._zone=l,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=K,this.anchorViewportLeave=new n.EventEmitter,this.close=new n.EventEmitter,this.open=new n.EventEmitter,this.positionChange=new n.EventEmitter,this.resolvedPromise=Promise.resolve(null),this._renderer.addClass(t.nativeElement,J),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=K,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.fromPromise)(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(k()){var e,o,n,i,r,s,a=this.position(),p=a.flip,l=a.offset;(!this._currentOffset||(e=this._currentOffset,o=l,n=e.left,i=e.top,r=o.left,s=o.top,Math.abs(n-r)>=1||Math.abs(i-s)>=1))&&(this.currentOffset=l,Q(this.positionChange)&&this._zone.run(function(){return t.positionChange.emit({offset:l,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,o=Q(this.anchorViewportLeave);t||!o?this.reposition():o&&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:n.Component,args:[{exportAs:"kendo-popup",providers:[B,$,q,F,Z,Y],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:n.ElementRef},{type:B},{type:q},{type:F},{type:Z},{type:Y},{type:$},{type:n.Renderer2},{type:n.NgZone}]},t.propDecorators={animate:[{type:n.Input}],anchor:[{type:n.Input}],anchorAlign:[{type:n.Input}],collision:[{type:n.Input}],popupAlign:[{type:n.Input}],copyAnchorStyles:[{type:n.Input}],popupClass:[{type:n.Input}],positionMode:[{type:n.Input}],offset:[{type:n.Input}],margin:[{type:n.Input}],anchorViewportLeave:[{type:n.Output}],close:[{type:n.Output}],open:[{type:n.Output}],positionChange:[{type:n.Output}],contentContainer:[{type:n.ViewChild,args:["container"]}]},t}(),et=new n.InjectionToken("Popup Container"),ot=function(){function t(t,e,o,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=o,this.container=n}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),o=e.component,n=e.nodes,i=this.appendPopup(n,t.appendTo),r=i.instance;this.projectComponentInputs(i,t),i.changeDetectorRef.detectChanges(),o&&o.changeDetectorRef.detectChanges();var s=this.getComponentRootNode(i);return{close:function(){var t;o?o.destroy():i.hostView.destroyed||(i.instance.content=null,i.changeDetectorRef.detectChanges()),i.destroy(),(t=s)&&t.parentNode&&t.parentNode.removeChild(t)},content:o,popup:i,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}},t.prototype.appendPopup=function(t,e){var o=this.createComponent(tt,t,e);return e||this.rootViewContainerNode.appendChild(this.getComponentRootNode(o)),o},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,o){var n=this.getComponentFactory(t);if(o)return o.createComponent(n,void 0,this.injector,e);var i=n.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 n.TemplateRef}).map(function(o){t.instance[o]=e[o]}),t},t.prototype.contentFrom=function(t){if(!t||t instanceof n.TemplateRef)return{component:null,nodes:[[]]};var e=this.createComponent(t);return{component:e,nodes:[e?[e.location.nativeElement]:[]]}},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:n.ApplicationRef},{type:n.ComponentFactoryResolver},{type:n.Injector},{type:n.ElementRef,decorators:[{type:n.Inject,args:[et]},{type:n.Optional}]}]},t}(),nt=o(5),it=[tt],rt=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{declarations:[it],entryComponents:[it],exports:[it],imports:[nt.CommonModule],providers:[ot]}]}],t.ctorParameters=function(){return[]},t}();o.d(e,"PopupService",function(){return ot}),o.d(e,"POPUP_CONTAINER",function(){return et}),o.d(e,"PopupComponent",function(){return tt}),o.d(e,"PopupModule",function(){return rt}),o.d(e,"ɵa",function(){return B}),o.d(e,"ɵc",function(){return $}),o.d(e,"ɵb",function(){return q}),o.d(e,"ɵd",function(){return F}),o.d(e,"ɵe",function(){return Z}),o.d(e,"ɵf",function(){return Y})},function(t,e){t.exports=s},function(t,e){t.exports=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(6);e.TooltipDirective=n.TooltipDirective;var i=o(18);e.TooltipModule=i.TooltipModule;var r=o(7);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS},function(t,e){t.exports=p},function(t,e){t.exports=l},function(t,e){t.exports=u},function(t,e){t.exports=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),i=o(0),r=o(5),s=o(6),a=o(10),p=o(8),l=[s.TooltipDirective,p.TooltipContentComponent],u=[a.PopupModule],c=function(){function t(){}return t=n.__decorate([i.NgModule({declarations:[l],entryComponents:[p.TooltipContentComponent],imports:[r.CommonModule].concat(u),exports:[l]})],t)}();e.TooltipModule=c}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("rxjs/observable/fromEvent"),require("@angular/animations"),require("tslib"),require("rxjs/operators/auditTime"),require("@angular/common"),require("rxjs/observable/fromPromise"),require("rxjs/observable/merge"),require("rxjs/operators/take"),require("rxjs/operators/debounceTime"),require("rxjs/operators/filter"),require("@progress/kendo-angular-l10n")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs/observable/fromEvent","@angular/animations","tslib","rxjs/operators/auditTime","@angular/common","rxjs/observable/fromPromise","rxjs/observable/merge","rxjs/operators/take","rxjs/operators/debounceTime","rxjs/operators/filter","@progress/kendo-angular-l10n"],e):"object"==typeof exports?exports.KendoAngularTooltip=e(require("@angular/core"),require("rxjs/observable/fromEvent"),require("@angular/animations"),require("tslib"),require("rxjs/operators/auditTime"),require("@angular/common"),require("rxjs/observable/fromPromise"),require("rxjs/observable/merge"),require("rxjs/operators/take"),require("rxjs/operators/debounceTime"),require("rxjs/operators/filter"),require("@progress/kendo-angular-l10n")):t.KendoAngularTooltip=e(t["@angular/core"],t["rxjs/observable/fromEvent"],t["@angular/animations"],t.tslib,t["rxjs/operators/auditTime"],t["@angular/common"],t["rxjs/observable/fromPromise"],t["rxjs/observable/merge"],t["rxjs/operators/take"],t["rxjs/operators/debounceTime"],t["rxjs/operators/filter"],t["@progress/kendo-angular-l10n"])}(window,function(t,e,o,n,i,r,s,a,p,l,u,c){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},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 n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},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=13)}([function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e){t.exports=o},function(t,e){t.exports=n},function(t,e){t.exports=i},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),i=o(0),r=o(14),s=o(1),a=o(15),p=o(16),l=o(10),u=o(7),c=o(8),h=o(9),f=o(17),d=function(){function t(t,e,o,n,i,r,l){var u=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=o,this.popupService=n,this.localizationService=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"],this.direction=i.rtl?"rtl":"ltr",Object.assign(this,r,l),this.ngZone.runOutsideAngular(function(){var t=u.tooltipWrapper.nativeElement;u.anchorTitleSubscription=s.fromEvent(t,"mouseover").pipe(p.filter(function(){return""!==u.filter})).subscribe(function(t){var e=h.closest(t.target,u.filter);e&&u.hideElementTitle({nativeElement:e})}),u.mouseOverSubscription=s.fromEvent(t,"mouseover").pipe(a.debounceTime(100),p.filter(function(){return""!==u.filter})).subscribe(function(t){return u.onMouseOver(t)}),u.mouseOutSubscription=s.fromEvent(t,"mouseout").pipe(a.debounceTime(100)).subscribe(function(t){return u.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(){var t=this;void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties(),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){var o=e.rtl;return t.direction=o?"rtl":"ltr"})},t.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},t.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!h.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.dynamicRTLSubscription&&this.dynamicRTLSubscription.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,n=t.instance;this.closeClickSubscription=n.close.subscribe(function(){o.hide()}),this.template?n.templateRef=this.template:n.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(n.titleTemplate=this.titleTemplate),n.anchor=e,n.callout=this.callout,n.closable=this.closable,n.position=this.position,n.tooltipWidth=this.tooltipWidth,n.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=h.align(this.position,this.offset),n=o.anchorAlign,i=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:n,animate:!1,content:c.TooltipContentComponent,collision:h.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 o=t.flip,n=!0===o.horizontal||!0===o.vertical;a.updateCalloutPosition(e.position,n)})),"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(p.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,n=h.closest(o,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(o))return;if(this.closable)return}e.contains(o)&&n?this.toggle(n,!0):i&&this.hide()},t.prototype.onMouseOver=function(t){var e=h.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&&h.contains(this.anchor.nativeElement,o)||o&&h.contains(e,o)||this.hide()}},t.prototype.verifyProperties=function(){if(i.isDevMode()){if(!h.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!h.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String)],t.prototype,"direction",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"filter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"position",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],t.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"showOn",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],t.prototype,"showAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],t.prototype,"callout",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],t.prototype,"offset",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"tooltipClass",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"collision",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef),n.__metadata("design:paramtypes",[i.TemplateRef])],t.prototype,"tooltipTemplate",null),t=n.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip",providers:[f.LocalizationService,{provide:f.L10N_PREFIX,useValue:"kendo.tooltip"}]}),n.__param(5,i.Optional()),n.__param(6,i.Optional()),n.__param(6,i.Inject(u.TOOLTIP_SETTINGS)),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2,l.PopupService,f.LocalizationService,u.TooltipSettings,u.TooltipSettings])],t)}();e.TooltipDirective=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),i=o(0);e.TOOLTIP_SETTINGS=new i.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function t(){}return t=n.__decorate([i.Injectable()],t)}();e.TooltipSettings=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),i=o(0),r=o(9),s=function(){function t(t){this.content=t,this.close=new i.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(t,e,o){var n={},i="top"===t||"bottom"===t;return o?("top"===t?n.bottom="unset":"bottom"===t?n.top="unset":"left"===t?n.right="unset":"right"===t&&(n.left="unset"),n[t]=-e+"px",n.transform=i?"rotateX(180deg)":"rotateY(180deg)",n):(n.transform=i?"rotateX(0deg)":"rotateY(0deg)",n)}}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.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"),n="top"===t||"bottom"===t,i=n?"width":"height",s=n?"left":"top",a=n?"marginLeft":"marginTop",p=o.getBoundingClientRect()[i],l=r.getCenterOffset(this.anchor.nativeElement,s,i),u=r.getCenterOffset(this.content.nativeElement,s,i),c=Math.abs(u-l);if(c>1||0===c||0===Math.round(c)){var h=u-l+p/2;o.style[a]=-h+"px"}var f=this.calloutStyles(t,p,e);Object.keys(f).forEach(function(t){o.style[t]=f[t]})}},n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],t.prototype,"close",void 0),n.__decorate([i.HostBinding("class"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],t.prototype,"cssClasses",null),n.__decorate([i.HostBinding("class.k-tooltip-closable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],t.prototype,"className",null),n.__decorate([i.HostBinding("style.position"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],t.prototype,"cssPosition",null),n.__decorate([i.HostBinding("style.width.px"),i.Input(),n.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),n.__decorate([i.HostBinding("style.height.px"),i.Input(),n.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],t.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.ElementRef)],t.prototype,"anchor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],t.prototype,"templateRef",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"templateString",void 0),t=n.__decorate([i.Component({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 '}),n.__metadata("design:paramtypes",[i.ElementRef])],t)}();e.TooltipContentComponent=s},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={},n={},i={};switch(t){case"top":o={horizontal:"center",vertical:"top"},n={horizontal:"center",vertical:"bottom"},i={horizontal:0,vertical:e};break;case"bottom":o={horizontal:"center",vertical:"bottom"},n={horizontal:"center",vertical:"top"},i={horizontal:0,vertical:e};break;case"right":o={horizontal:"right",vertical:"center"},n={horizontal:"left",vertical:"center"},i={horizontal:e,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},n={horizontal:"right",vertical:"center"},i={horizontal:e,vertical:0}}return{anchorAlign:o,popupAlign:n,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 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 n=t.getBoundingClientRect();return n[e]+n[o]/2},e.containsItem=function(t,e){return-1!==t.indexOf(e)}},function(t,e,o){"use strict";o.r(e);var n=o(0),i=o(11),r="bottom",s="center",a="middle",p="left",l="right",u="top",c=function(t){var e=t.anchorRect,o=t.anchorAlign,n=t.elementRect,i=t.elementAlign,p=t.margin;void 0===p&&(p={});var u=o.horizontal,c=o.vertical,h=i.horizontal,f=i.vertical,d=p.horizontal||0,m=p.vertical||0,v=e.top,g=e.left;return c===r&&(v+=e.height),c!==s&&c!==a||(v+=Math.round(e.height/2)),f===r&&(v-=n.height,m*=-1),f!==s&&f!==a||(v-=Math.round(n.height/2),m*=-1),u===l&&(g+=e.width),u!==s&&u!==a||(g+=Math.round(e.width/2)),h===l&&(g-=n.width,d*=-1),h!==s&&h!==a||(g-=Math.round(n.width/2),d*=-1),{top:v+m,left:g+d}};function h(t){return t.ownerDocument||t.document||t}var f=function(t){return h(t).defaultView},d=function(t){return h(t).documentElement},m=0;function v(){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 g(t){var e=f(t),o=d(t),n={height:e.innerHeight,width:e.innerWidth};return o.scrollHeight-o.clientHeight>0&&(n.width-=v()),n}var y=function(t){if(!t.getBoundingClientRect){var e=g(t);return{bottom:e.height,left:0,right:e.width,top:0}}var o=t.getBoundingClientRect();return{bottom:o.bottom,left:o.left,right:o.right,top:o.top}},b=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||d(t)},_=function(t){var e=t.getBoundingClientRect(),o=e.left,n=e.top;return e.height||e.width||(e=function(t){var e=t.style,o=e.display,n=e.left,i=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var r=t.getBoundingClientRect();return t.style.display=o,t.style.left=n,t.style.position=i,r}(t)),{top:n,left:o,height:e.height,width:e.width}},w=function(t,e){for(var o=[],n=t.parentNode;n&&(o.push(n),n!==e);)n=n.parentNode;return o};function C(t){var e=d(t),o=f(t);return{x:o.pageXOffset||e.scrollLeft||0,y:o.pageYOffset||e.scrollTop||0}}var S=function(t){return t===(t.ownerDocument||{}).body?C(t):{x:t.scrollLeft,y:t.scrollTop}};var E=function(t,e){var o=f(t),n=o.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"!==n.position&&a){var l=o.getComputedStyle(r);(p=_(r)).top+=parseInt(l.borderTopWidth,10),p.left+=parseInt(l.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?S(t):function(t){var e=b(t);return e?S(e):{x:0,y:0}}(e)};var P="fit",T="flip",x=function(t,e,o){var n=0;return t+e>o&&(n=o-(t+e)),t<0&&(n=-t),n},I=function(t){var e=t.offset,o=t.size,n=t.anchorSize,i=t.viewPortSize,r=t.anchorAlignPoint,l=t.elementAlignPoint,c=0,h=2*t.margin;if(l!==r&&!(l===s||l===a)&&!(r===s||r===a)){var f=r===u||r===p;e<0&&f?e+(c=o+n+h)+o>i&&(c=0):e>=0&&!f&&(e+o>i&&(c+=-(n+o+h)),e+c<0&&(c=0))}return c},R=function(t){var e=t.anchorRect,o=t.anchorAlign,n=t.elementRect,i=t.elementAlign,r=t.collisions,s=t.viewPort,a=t.margin;void 0===a&&(a={});var p=n.top,l=n.left,u=n.height,c=n.width,h=s.height,f=s.width,d=a.horizontal||0,m=a.vertical||0,v=0,g=0,y=r.horizontal===T,b=r.vertical===T;r.vertical===P&&(g+=x(p,u,h)),r.horizontal===P&&(v+=x(l,c,f)),b&&(g+=I({margin:m,offset:p,size:u,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:o.vertical,elementAlignPoint:i.vertical})),y&&(v+=I({margin:d,offset:l,size:c,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:o.horizontal,elementAlignPoint:i.horizontal}));var _=y&&0!==v,w=b&&0!==g;return{flipped:_||w,flip:{horizontal:_,vertical:w},offset:{left:v,top:g}}},j=function(t){for(var e=[],o=t.parentNode.firstElementChild;o;)o!==t&&e.push(o),o=o.nextElementSibling;return e},A=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},k=function(){return"undefined"!=typeof document&&!!document.body},z=function(){return"undefined"!=typeof window},M=/auto|scroll/,N=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)},V=function(){if(!k())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}(),L=function(t,e){if(!t||!k()||!z())return null;var o=function(t,e){for(var o,n,i=w(t),r=e;r&&(o=j(r),!(n=i.reduce(function(t,e){return t.concat(o.filter(function(t){return t===e}))},[])[0]));)r=r.parentElement;return n}(t,e);if(!o)return null;var n=[t].concat(w(t,o)).reduce(function(t,e){var o=e.style.zIndex||window.getComputedStyle(e).zIndex,n=parseInt(o,10);return n>t?n:t},0);return n?n+1:null},D=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],q=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 o=e.getComputedStyle(this.nativeElement(t));return D.map(function(t){return{key:t,value:o[t]}})},t.prototype.getWindow=function(){return z()?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 o=this.nativeElement(t),n=o.style,i=n.left,r=n.top,s=n.transition;o.style.transition="none",o.style.left=e.left+"px",o.style.top=e.top+"px";var a=_(o);return o.style.left=i,o.style.top=r,o.offsetHeight,o.style.transition=s,a},t.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},t.prototype.position=function(t,e){return t&&e?function(t,e,o){void 0===o&&(o=1);var n=e?b(e):null,i=E(t,n),r=i.top,s=i.left,a=i.height,p=i.width,l=O(n,t),u=l.x,c=l.y,h=t.ownerDocument,f=n===h.body||n===h.documentElement?1:o;return{top:r+c*f,left:s+u*f,height:a,width:p}}(this.nativeElement(t),this.nativeElement(e)):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 R(t)},t.prototype.scrollPosition=function(t){return C(this.nativeElement(t))},t.prototype.scrollableParents=function(t){return function(t){var e=[];if(!k()||!z())return e;for(var o=t.parentElement;o;)(M.test(N(o))||o.hasAttribute("data-scrollable"))&&e.push(o),o=o.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||!V)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 g(this.nativeElement(t))},t.prototype.zIndex=function(t,e){return L(this.nativeElement(t),this.nativeElement(e))},t.prototype.zoomLevel=function(){return k()&&z()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),B=function(){function t(t){this._dom=t}return t.prototype.alignElement=function(t){var e=t.anchor,o=t.element,n=t.anchorAlign,i=t.elementAlign,r=t.margin,s=t.offset,a="fixed"===t.positionMode||!this._dom.hasOffsetParent(o)?this.absoluteRect(e,o,s):this.relativeRect(e,o,s);return this._dom.align({anchorAlign:n,anchorRect:a,elementAlign:i,elementRect:this._dom.offset(o),margin:r})},t.prototype.absoluteRect=function(t,e,o){return this._dom.removeScroll(this._dom.addScroll((n=A(this._dom.offset(t),o),(i=this._dom.stackingElementOffset(e))?{height:n.height,left:n.left-i.left,top:n.top-i.top,width:n.width}:n),this._dom.stackingElementScroll(e)),this.elementScrollPosition(t,e));var n,i},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,o){return A(this._dom.position(t,e),o)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:q}]},t}(),F=function(){function t(t){this._dom=t}return t.prototype.positionElement=function(t){var e=t.anchor,o=t.currentLocation,n=t.element,i=t.anchorAlign,r=t.elementAlign,s=t.collisions,a=t.margin,p=this._dom,l=p.restrictToView({anchorAlign:i,anchorRect:A(p.offset(e),o),collisions:s,elementAlign:r,elementRect:p.offsetAtPoint(n,o),margin:a,viewPort:t.viewPort||p.windowViewPort(n)});return{flip:l.flip,flipped:l.flipped,offset:p.addOffset(o,l.offset)}},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:q}]},t}(),W=o(1),H=o(4),Z=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.subscribe=function(t){var e=this;k()&&this._zone.runOutsideAngular(function(){e.subscription=Object(W.fromEvent)(e._dom.getWindow(),"resize").pipe(Object(H.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:n.Injectable}],t.ctorParameters=function(){return[{type:q},{type:n.NgZone}]},t}(),X=o(12),Y=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&&k()&&this.element){var o=this._dom.nativeElement(this.element),n=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(function(){var i=n.map(function(t){return Object(W.fromEvent)(t,"scroll").pipe(Object(H.auditTime)(1e3/60))});e.subscription=X.merge.apply(void 0,i).subscribe(function(i){var r=i.target,s=n.filter(function(t){return t===r}).length>0,a=r===document,p=r===window;(s||a||p)&&t(e.isVisible(o,r))})})}},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isVisible=function(t,e){var o=this._dom.boundingOffset(t),n=this._dom.boundingOffset(e);return!(1<n.top-o.bottom)&&(!(1<o.top-n.bottom)&&(!(1<o.left-n.right)&&!(1<n.left-o.right)))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:q},{type:n.NgZone}]},t}(),U=o(2),G={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)"}}}},$=function(){function t(t){this.animationBuilder=t,this.start=new n.EventEmitter,this.end=new n.EventEmitter}return t.prototype.play=function(t,e,o){if(!this.flip||this.flip.horizontal!==o.horizontal||this.flip.vertical!==o.vertical){this.flip=o;var i=e.type||"slide",r=G[i];if(r){var s=r(this.getDirection(o,e));this.playStates(t,s,e)}else if(Object(n.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,o){var n=this;this.stopPlayer();var i=o.duration||100,r=this.animationBuilder.build([Object(U.style)(e.start),Object(U.animate)(i+"ms ease-in",Object(U.style)(e.end))]),s=this.player=r.create(t);s.onDone(function(){n.end.emit(),n.stopPlayer()}),this.start.emit(),s.play()},t.prototype.getDirection=function(t,e){var o=e.direction||"down";return t.horizontal&&("left"===o?o="right":"right"===o&&(o="left")),t.vertical&&("down"===o?o="up":"up"===o&&(o="down")),o},t.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:U.AnimationBuilder}]},t}(),K={left:-1e4,top:0},J="k-animation-container",Q=function(t){return t.observers.length>0},tt=function(){function t(t,e,o,i,r,s,a,p,l){this.container=t,this._alignService=e,this.domService=o,this._positionService=i,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=p,this._zone=l,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=K,this.anchorViewportLeave=new n.EventEmitter,this.close=new n.EventEmitter,this.open=new n.EventEmitter,this.positionChange=new n.EventEmitter,this.resolvedPromise=Promise.resolve(null),this._renderer.addClass(t.nativeElement,J),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=K,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.fromPromise)(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(k()){var e,o,n,i,r,s,a=this.position(),p=a.flip,l=a.offset;(!this._currentOffset||(e=this._currentOffset,o=l,n=e.left,i=e.top,r=o.left,s=o.top,Math.abs(n-r)>=1||Math.abs(i-s)>=1))&&(this.currentOffset=l,Q(this.positionChange)&&this._zone.run(function(){return t.positionChange.emit({offset:l,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,o=Q(this.anchorViewportLeave);t||!o?this.reposition():o&&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:n.Component,args:[{exportAs:"kendo-popup",providers:[B,$,q,F,Z,Y],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:n.ElementRef},{type:B},{type:q},{type:F},{type:Z},{type:Y},{type:$},{type:n.Renderer2},{type:n.NgZone}]},t.propDecorators={animate:[{type:n.Input}],anchor:[{type:n.Input}],anchorAlign:[{type:n.Input}],collision:[{type:n.Input}],popupAlign:[{type:n.Input}],copyAnchorStyles:[{type:n.Input}],popupClass:[{type:n.Input}],positionMode:[{type:n.Input}],offset:[{type:n.Input}],margin:[{type:n.Input}],anchorViewportLeave:[{type:n.Output}],close:[{type:n.Output}],open:[{type:n.Output}],positionChange:[{type:n.Output}],contentContainer:[{type:n.ViewChild,args:["container"]}]},t}(),et=new n.InjectionToken("Popup Container"),ot=function(){function t(t,e,o,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=o,this.container=n}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),o=e.component,n=e.nodes,i=this.appendPopup(n,t.appendTo),r=i.instance;this.projectComponentInputs(i,t),i.changeDetectorRef.detectChanges(),o&&o.changeDetectorRef.detectChanges();var s=this.getComponentRootNode(i);return{close:function(){var t;o?o.destroy():i.hostView.destroyed||(i.instance.content=null,i.changeDetectorRef.detectChanges()),i.destroy(),(t=s)&&t.parentNode&&t.parentNode.removeChild(t)},content:o,popup:i,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}},t.prototype.appendPopup=function(t,e){var o=this.createComponent(tt,t,e);return e||this.rootViewContainerNode.appendChild(this.getComponentRootNode(o)),o},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,o){var n=this.getComponentFactory(t);if(o)return o.createComponent(n,void 0,this.injector,e);var i=n.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 n.TemplateRef}).map(function(o){t.instance[o]=e[o]}),t},t.prototype.contentFrom=function(t){if(!t||t instanceof n.TemplateRef)return{component:null,nodes:[[]]};var e=this.createComponent(t);return{component:e,nodes:[e?[e.location.nativeElement]:[]]}},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:n.ApplicationRef},{type:n.ComponentFactoryResolver},{type:n.Injector},{type:n.ElementRef,decorators:[{type:n.Inject,args:[et]},{type:n.Optional}]}]},t}(),nt=o(5),it=[tt],rt=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{declarations:[it],entryComponents:[it],exports:[it],imports:[nt.CommonModule],providers:[ot]}]}],t.ctorParameters=function(){return[]},t}();o.d(e,"PopupService",function(){return ot}),o.d(e,"POPUP_CONTAINER",function(){return et}),o.d(e,"PopupComponent",function(){return tt}),o.d(e,"PopupModule",function(){return rt}),o.d(e,"ɵa",function(){return B}),o.d(e,"ɵc",function(){return $}),o.d(e,"ɵb",function(){return q}),o.d(e,"ɵd",function(){return F}),o.d(e,"ɵe",function(){return Z}),o.d(e,"ɵf",function(){return Y})},function(t,e){t.exports=s},function(t,e){t.exports=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(6);e.TooltipDirective=n.TooltipDirective;var i=o(18);e.TooltipModule=i.TooltipModule;var r=o(7);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS},function(t,e){t.exports=p},function(t,e){t.exports=l},function(t,e){t.exports=u},function(t,e){t.exports=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),i=o(0),r=o(5),s=o(6),a=o(10),p=o(8),l=[s.TooltipDirective,p.TooltipContentComponent],u=[a.PopupModule],c=function(){function t(){}return t=n.__decorate([i.NgModule({declarations:[l],entryComponents:[p.TooltipContentComponent],imports:[r.CommonModule].concat(u),exports:[l]})],t)}();e.TooltipModule=c}])}); |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-angular-tooltip",["tslib","@angular/core","@angular/common","@progress/kendo-angular-popup","rxjs/operators/take","rxjs/observable/fromEvent","rxjs/operators/debounceTime","rxjs/operators/filter","@progress/kendo-angular-l10n"],function(s){var r,p,a,l,u,c,h,d,f;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)},function(t){d=e(t)},function(t){f=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),d=o(2),r=(Object.defineProperty(s.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),s.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},s.prototype.onCloseClick=function(t){t.preventDefault(),this.close.emit()},s.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.Output(),i.__metadata("design:type",n.EventEmitter)],s.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],s.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],s.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],s.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],s.prototype,"templateString",void 0),i.__decorate([n.Component({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 '}),i.__metadata("design:paramtypes",[n.ElementRef])],s));function s(t){this.content=t,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}}e.TooltipContentComponent=r},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),r=o(13),a=o(12),l=o(11),u=o(10),s=o(5),p=o(4),c=o(3),h=o(2),d=o(9),f=(Object.defineProperty(m.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),m.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)},m.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()},m.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()},m.prototype.ngOnInit=function(){var o=this;void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties(),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(t){var e=t.rtl;return o.direction=e?"rtl":"ltr"})},m.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},m.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!h.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},m.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},m.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()}))},m.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()},m.prototype.hideElementTitle=function(t){var e=t.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},m.prototype.openPopup=function(t){var i=this,e=h.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:c.TooltipContentComponent,collision:h.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)})})},m.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},m.prototype.subscribeClick=function(){var e=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=a.fromEvent(document,"click").pipe(u.filter(function(){return""!==e.filter})).subscribe(function(t){return e.onMouseClick(t,e.tooltipWrapper.nativeElement)}))},m.prototype.onMouseClick=function(t,e){var o=t.target,i=h.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()},m.prototype.onMouseOver=function(t){var e=h.closest(t.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},m.prototype.onMouseOut=function(t){if("hover"===this.showOn&&!this.closable){var e=this.popupRef&&this.popupRef.popupElement,o=t.relatedTarget;o&&this.anchor&&h.contains(this.anchor.nativeElement,o)||o&&h.contains(e,o)||this.hide()}},m.prototype.verifyProperties=function(){if(n.isDevMode()){if(!h.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!h.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],m.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],m.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],m.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],m.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],m.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],m.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],m.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],m.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],m.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],m.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],m.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],m.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],m.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],m.prototype,"tooltipTemplate",null),i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip",providers:[d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__param(5,n.Optional()),i.__param(6,n.Optional()),i.__param(6,n.Inject(p.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,s.PopupService,d.LocalizationService,p.TooltipSettings,p.TooltipSettings])],m));function m(t,e,o,i,n,r,s){var p=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=o,this.popupService=i,this.localizationService=n,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"],this.direction=n.rtl?"rtl":"ltr",Object.assign(this,r,s),this.ngZone.runOutsideAngular(function(){var t=p.tooltipWrapper.nativeElement;p.anchorTitleSubscription=a.fromEvent(t,"mouseover").pipe(u.filter(function(){return""!==p.filter})).subscribe(function(t){var e=h.closest(t.target,p.filter);e&&p.hideElementTitle({nativeElement:e})}),p.mouseOverSubscription=a.fromEvent(t,"mouseover").pipe(l.debounceTime(100),u.filter(function(){return""!==p.filter})).subscribe(function(t){return p.onMouseOver(t)}),p.mouseOutSubscription=a.fromEvent(t,"mouseout").pipe(l.debounceTime(100)).subscribe(function(t){return p.onMouseOut(t)})})}e.TooltipDirective=f},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=f},function(t,e){t.exports=d},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=14)}}}); | ||
System.register("@progress/kendo-angular-tooltip",["tslib","@angular/core","@angular/common","@progress/kendo-angular-popup","rxjs/operators/take","rxjs/operators/debounceTime","rxjs/observable/fromEvent","@progress/kendo-angular-l10n","rxjs/operators/filter"],function(s){var r,p,a,l,u,c,h,d,f;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)},function(t){d=e(t)},function(t){f=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),d=o(2),r=(Object.defineProperty(s.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),s.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},s.prototype.onCloseClick=function(t){t.preventDefault(),this.close.emit()},s.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.Output(),i.__metadata("design:type",n.EventEmitter)],s.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],s.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],s.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],s.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],s.prototype,"templateString",void 0),i.__decorate([n.Component({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 '}),i.__metadata("design:paramtypes",[n.ElementRef])],s));function s(t){this.content=t,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}}e.TooltipContentComponent=r},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),r=o(13),a=o(12),l=o(11),u=o(10),s=o(5),p=o(4),c=o(3),h=o(2),d=o(9),f=(Object.defineProperty(m.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),m.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)},m.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()},m.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()},m.prototype.ngOnInit=function(){var o=this;void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties(),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(t){var e=t.rtl;return o.direction=e?"rtl":"ltr"})},m.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},m.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!h.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},m.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},m.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()}))},m.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()},m.prototype.hideElementTitle=function(t){var e=t.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},m.prototype.openPopup=function(t){var i=this,e=h.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:c.TooltipContentComponent,collision:h.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)})})},m.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},m.prototype.subscribeClick=function(){var e=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=a.fromEvent(document,"click").pipe(u.filter(function(){return""!==e.filter})).subscribe(function(t){return e.onMouseClick(t,e.tooltipWrapper.nativeElement)}))},m.prototype.onMouseClick=function(t,e){var o=t.target,i=h.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()},m.prototype.onMouseOver=function(t){var e=h.closest(t.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},m.prototype.onMouseOut=function(t){if("hover"===this.showOn&&!this.closable){var e=this.popupRef&&this.popupRef.popupElement,o=t.relatedTarget;o&&this.anchor&&h.contains(this.anchor.nativeElement,o)||o&&h.contains(e,o)||this.hide()}},m.prototype.verifyProperties=function(){if(n.isDevMode()){if(!h.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!h.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],m.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],m.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],m.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],m.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],m.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],m.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],m.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],m.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],m.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],m.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],m.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],m.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],m.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],m.prototype,"tooltipTemplate",null),i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip",providers:[d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__param(5,n.Optional()),i.__param(6,n.Optional()),i.__param(6,n.Inject(p.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,s.PopupService,d.LocalizationService,p.TooltipSettings,p.TooltipSettings])],m));function m(t,e,o,i,n,r,s){var p=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=o,this.popupService=i,this.localizationService=n,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"],this.direction=n.rtl?"rtl":"ltr",Object.assign(this,r,s),this.ngZone.runOutsideAngular(function(){var t=p.tooltipWrapper.nativeElement;p.anchorTitleSubscription=a.fromEvent(t,"mouseover").pipe(u.filter(function(){return""!==p.filter})).subscribe(function(t){var e=h.closest(t.target,p.filter);e&&p.hideElementTitle({nativeElement:e})}),p.mouseOverSubscription=a.fromEvent(t,"mouseover").pipe(l.debounceTime(100),u.filter(function(){return""!==p.filter})).subscribe(function(t){return p.onMouseOver(t)}),p.mouseOutSubscription=a.fromEvent(t,"mouseout").pipe(l.debounceTime(100)).subscribe(function(t){return p.onMouseOut(t)})})}e.TooltipDirective=f},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=d},function(t,e){t.exports=f},function(t,e){t.exports=c},function(t,e){t.exports=h},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=14)}}}); |
@@ -6,3 +6,3 @@ { | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
"version": "1.2.2-dev.201905291049", | ||
"version": "1.2.2", | ||
"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
260978
3