@progress/kendo-angular-tooltip
Advanced tools
Comparing version 3.1.0 to 3.1.1-dev.202201191851
@@ -5,2 +5,2 @@ /**----------------------------------------------------------------------------------------- | ||
*-------------------------------------------------------------------------------------------*/ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","rxjs/operators","@progress/kendo-angular-popup","rxjs","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@progress/kendo-licensing","@angular/common"],t):"object"==typeof exports?exports.KendoAngularTooltip=t(require("tslib"),require("@angular/core"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):e.KendoAngularTooltip=t(e.tslib,e["@angular/core"],e["rxjs/operators"],e["@progress/kendo-angular-popup"],e.rxjs,e["@progress/kendo-angular-common"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-licensing"],e["@angular/common"])}(window,(function(e,t,o,n,i,r,s,p,a){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=26)}([function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t){e.exports=o},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,o){"use strict";function n(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var o={},n={},i={};switch(e){case"top":o={horizontal:"center",vertical:"top"},n={horizontal:"center",vertical:"bottom"},i={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},n={horizontal:"center",vertical:"top"},i={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},n={horizontal:"left",vertical:"center"},i={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},n={horizontal:"right",vertical:"center"},i={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:n,popupMargin:i}},t.collision=function(e,t){return e||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},t.closestBySelector=function(e,t){if(e.closest)return e.closest(t);for(var o=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&!n(i);){if(o(i,t))return i;i=i.parentNode}},t.contains=function(e,t){return!!e&&(!n(e)&&(e.contains?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0))},t.hasParent=function(e,t){for(;e&&e!==t;)e=e.parentNode;return e},t.getCenterOffset=function(e,t,o){var n=e.getBoundingClientRect();return n[t]+n[o]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),s=o(4),p=o(13),a=o(14),u=o(17),c=o(9),l=o(10),d=o(11),h=function(){function e(e){this.localization=e,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new i.EventEmitter,this.shown=new i.EventEmitter,this.hide=new i.EventEmitter,this.hidden=new i.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new s.Subscription,this._templateData=function(){return null},p.validatePackage(a.packageMetadata)}return Object.defineProperty(e.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(i.isDevMode&&"function"!=typeof e)throw new Error(u.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subs.add(this.localization.changes.subscribe((function(t){var o=t.rtl;e.direction=o?"rtl":"ltr"})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"position",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"offset",null),n.__decorate([i.HostBinding("style.width"),i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"width",null),n.__decorate([i.HostBinding("style.height"),i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"height",null),n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"subtitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"body",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"animation",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"templateData",null),n.__decorate([i.HostBinding("class.k-hidden"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isHidden",null),n.__decorate([i.HostBinding("attr.aria-hidden"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"hasAttributeHidden",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"show",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"shown",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"hide",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"hidden",void 0),n.__decorate([i.ContentChild(c.PopoverTitleTemplateDirective,{static:!1}),n.__metadata("design:type",c.PopoverTitleTemplateDirective)],e.prototype,"titleTemplate",void 0),n.__decorate([i.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),n.__metadata("design:type",l.PopoverBodyTemplateDirective)],e.prototype,"bodyTemplate",void 0),n.__decorate([i.ContentChild(d.PopoverActionsTemplateDirective,{static:!1}),n.__metadata("design:type",d.PopoverActionsTemplateDirective)],e.prototype,"actionsTemplate",void 0),e=n.__decorate([i.Component({selector:"kendo-popover",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),n.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.PopoverComponent=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverTitleTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverTitleTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverBodyTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverBodyTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverActionsTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverActionsTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(2),s=o(4),p=o(3),a=o(13),u=o(14),c=o(15),l=o(16),d=o(5),h=function(){function e(e,t,o,n,i,p){var c=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=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"],a.validatePackage(u.packageMetadata),Object.assign(this,i,p),this.ngZone.runOutsideAngular((function(){var e=c.tooltipWrapper.nativeElement;c.anchorTitleSubscription=s.fromEvent(e,"mouseover").pipe(r.filter((function(){return""!==c.filter}))).subscribe((function(e){var t=d.closestBySelector(e.target,c.filter);t&&c.hideElementTitle({nativeElement:t})})),c.mouseOverSubscription=s.fromEvent(e,"mouseover").pipe(r.debounceTime(100),r.filter((function(){return""!==c.filter}))).subscribe((function(e){return c.onMouseOver(e)})),c.mouseOutSubscription=s.fromEvent(e,"mouseout").pipe(r.debounceTime(100)).subscribe((function(e){return c.onMouseOut(e)}))}))}return Object.defineProperty(e.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var t=this;if(!this.popupRef)if(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout((function(){return t.showContent(t.anchor)}),this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},e.prototype.hide=function(){clearTimeout(this.showTimeout);var e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},e.prototype.toggle=function(e,t){var o=this.anchor&&this.anchor.nativeElement;e instanceof Element&&(e={nativeElement:e}),o!==e.nativeElement&&this.hide(),o===e.nativeElement&&"click"===this.showOn&&this.hide(),void 0===t&&(t=!this.popupRef),t?this.show(e):this.hide()},e.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},e.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},e.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!d.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},e.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},e.prototype.showContent=function(e){var t=this;(e.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run((function(){t.openPopup(e),t.bindContent(t.popupRef.content,e)})),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe((function(){return t.hide()})))},e.prototype.bindContent=function(e,t){var o=this,n=e.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.closeTitle=this.closeTitle,n.anchor=t,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()},e.prototype.hideElementTitle=function(e){var t=e.nativeElement;t.getAttribute("title")&&(t.setAttribute("data-title",t.getAttribute("title")),t.setAttribute("title",""))},e.prototype.openPopup=function(e){var t=this,o=d.align(this.position,this.offset),n=o.anchorAlign,i=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:n,animate:!1,content:l.TooltipContentComponent,collision:d.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 p=this.popupRef.content.instance;p.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe((function(e){var o=e.flip,n=!0===o.horizontal||!0===o.vertical;p.updateCalloutPosition(t.position,n)}))),"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var e=t.popupRef.popupElement;t.popupMouseOutSubscription=s.fromEvent(e,"mouseout").subscribe((function(e){return t.onMouseOut(e)}))}))},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},e.prototype.subscribeClick=function(){var e=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=s.fromEvent(document,"click").pipe(r.filter((function(){return""!==e.filter}))).subscribe((function(t){return e.onMouseClick(t,e.tooltipWrapper.nativeElement)})))},e.prototype.onMouseClick=function(e,t){var o=e.target,n=d.closestBySelector(o,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(o))return;if(this.closable)return}t.contains(o)&&n?this.toggle(n,!0):i&&this.hide()},e.prototype.onMouseOver=function(e){var t=d.closestBySelector(e.target,this.filter);"hover"===this.showOn&&t&&this.toggle(t,!0)},e.prototype.onMouseOut=function(e){if("hover"===this.showOn&&!this.closable){var t=this.popupRef&&this.popupRef.popupElement,o=e.relatedTarget;o&&this.anchor&&d.contains(this.anchor.nativeElement,o)||o&&d.contains(t,o)||this.hide()}},e.prototype.verifyProperties=function(){if(i.isDevMode()){if(!d.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!d.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"filter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"position",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"showOn",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"showAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"offset",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"tooltipClass",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"collision",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef),n.__metadata("design:paramtypes",[i.TemplateRef])],e.prototype,"tooltipTemplate",null),e=n.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),n.__param(4,i.Optional()),n.__param(5,i.Optional()),n.__param(5,i.Inject(c.TOOLTIP_SETTINGS)),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2,p.PopupService,c.TooltipSettings,c.TooltipSettings])],e)}();t.TooltipDirective=h},function(e,t){e.exports=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642590228,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1);t.TOOLTIP_SETTINGS=new i.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function e(){}return e=n.__decorate([i.Injectable()],e)}();t.TooltipSettings=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),s=o(5),p=function(){function e(e,t){this.content=e,this.localizationService=t,this.close=new i.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var n={},i="top"===e||"bottom"===e;return o?("top"===e?n.bottom="unset":"bottom"===e?n.top="unset":"left"===e?n.right="unset":"right"===e&&(n.left="unset"),n[e]=-t+"px",n.transform=i?"rotateX(180deg)":"rotateY(180deg)",n):(n.transform=i?"rotateX(0deg)":"rotateY(0deg)",n)},this.direction=t.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(t){var o=t.rtl;return e.direction=o?"rtl":"ltr"}))},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(e.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),e.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},e.prototype.onCloseClick=function(e){e.preventDefault(),this.close.emit()},e.prototype.updateCalloutPosition=function(e,t){if(this.callout){var o=this.content.nativeElement.querySelector(".k-callout"),n="top"===e||"bottom"===e,i=n?"width":"height",r=n?"left":"top",p=n?"marginLeft":"marginTop",a=o.getBoundingClientRect()[i],u=s.getCenterOffset(this.anchor.nativeElement,r,i),c=s.getCenterOffset(this.content.nativeElement,r,i),l=Math.abs(c-u);if(l>1||0===l||0===Math.round(l)){var d=c-u+a/2;o.style[p]=-d+"px"}var h=this.calloutStyles(e,a,t);Object.keys(h).forEach((function(e){o.style[e]=h[e]}))}},n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"close",void 0),n.__decorate([i.HostBinding("class"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"cssClasses",null),n.__decorate([i.HostBinding("class.k-tooltip-closable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"className",null),n.__decorate([i.HostBinding("style.position"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"cssPosition",null),n.__decorate([i.HostBinding("style.width.px"),i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),n.__decorate([i.HostBinding("style.height.px"),i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.ElementRef)],e.prototype,"anchor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"templateRef",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"templateString",void 0),e=n.__decorate([i.Component({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\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\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\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),n.__metadata("design:paramtypes",[i.ElementRef,r.LocalizationService])],e)}();t.TooltipContentComponent=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(6),s=o(3),p=o(2),a=o(5),u=o(19),c=o(21),l=function(e){function t(t,o,n,i,s){var a=e.call(this,o,n,i)||this;return a.wrapperEl=t,a.ngZone=o,a.popupService=n,a.renderer=i,a.popoverService=s,a.mouseenterHandler=function(e){a.controlVisibility(e,!0)},a.mouseleaveHandler=function(e){var t=e.anchor;a.isPrevented(t,!1)||a._hideSub||(a._hideSub=a.popoverService.hidePopover.subscribe((function(e){var t=e[0],o=e[2],n=e[3];t||o||(a.hide(),!o&&n&&a.show(n))})))},a.focusHandler=function(e){a.controlVisibility(e,!0)},a.blurHandler=function(e){var t=e.anchor,o=e.domEvent;if(!a.isPrevented(t,!1)){var n=!!r.closest(o.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}));n||a.hide(),a._focusInsideSub||(a._focusInsideSub=a.popoverService.isFocusInsidePopover.pipe(p.filter((function(e){return null!==e}))).subscribe((function(e){e||n||a.hide()})))}},a._popoverService=a.popoverService,a}return n.__extends(t,e),t.prototype.show=function(e){this.popupRef||this.openPopup(e)},t.prototype.toggle=function(e){var t=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),t!==e&&this.show(e)):this.show(e)},t.prototype.subscribeClick=function(){var e=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(t){var o=a.closestBySelector(t.target,e.filter);e.clickHandler(o,t)}))},t.prototype.subscribeToEvents=function(e){var t=this;Array.from(document.querySelectorAll(this.filter)).forEach((function(o){t.subs.add(t.renderer.listen(o,e[0].name,(function(){t.popoverService.emitAnchorState(!0,o),e[0].handler(o)}))),t.subs.add(t.renderer.listen(o,e[1].name,(function(n){t.popoverService.emitAnchorState(!1,null),e[1].handler({anchor:o,domEvent:n})})))}))},t.prototype.clickHandler=function(e,t){var o=!!r.closest(t.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),n=this.popupRef&&this.popupRef.content.instance.anchor,i=!!r.closest(t.target,(function(t){return t===(n||e)}));"click"!==this.showOn||o||this.popupRef&&i||(e||!this.popupRef?i?this.controlVisibility(e,!0):this.popupRef&&(this.controlVisibility(e,!1),this.controlVisibility(e,!0)):this.controlVisibility(e,!1))},t.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"filter",void 0),t=n.__decorate([i.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[c.PopoverService]}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,c.PopoverService])],t)}(u.PopoverDirectivesBase);t.PopoverContainerDirective=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(2),s=o(6),p=o(17),a=o(20),u=o(5),c=o(8),l=o(4),d=["hover","click","none","focus"],h=function(){function e(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new l.Subscription,this._showOn="click"}return Object.defineProperty(e.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof c.PopoverComponent||"function"==typeof e)this._popover=e;else if(i.isDevMode)throw new Error(p.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(i.isDevMode&&!u.containsItem(d,e))throw new Error(p.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular((function(){switch(e.showOn){case"hover":e.subscribeToEvents([{name:"mouseenter",handler:e.mouseenterHandler},{name:"mouseleave",handler:e.mouseleaveHandler}]);break;case"focus":e.subscribeToEvents([{name:"focus",handler:e.focusHandler},{name:"blur",handler:e.blurHandler}]);break;case"click":e.subscribeClick()}}))},e.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},e.prototype.hide=function(){this.closePopup()},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},e.prototype.openPopup=function(e){var t=this,o=e instanceof i.ElementRef?e.nativeElement:e,n=this.popover instanceof c.PopoverComponent?this.popover:this.popover(o),s=u.align(n.position,n.offset),p=s.anchorAlign,a=s.popupAlign,l=s.popupMargin,d=n.animation;this.ngZone.run((function(){t.popupRef=t.popupService.open({anchor:{nativeElement:o},animate:d,content:c.PopoverComponent,popupAlign:a,anchorAlign:p,margin:l,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}});var i=t.popupRef.content.instance;Object.assign(i,n),i.anchor=e,i.contextData=i.templateData(e),i.visible=!0,t.popupRef.content.changeDetectorRef.detectChanges(),t.monitorPopup(),t.initializeFinishingEvents(n,o)})),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe((function(){return t.hide()}))},e.prototype.isPrevented=function(e,t){var o,n=this.popover instanceof c.PopoverComponent?this.popover:this.popover(e);return(o=this.initializeEvents(n,o,t,e)).isDefaultPrevented()},e.prototype.monitorPopup=function(){var e=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var t=e.popupRef.popupElement;e.disposePopupHoverInListener=e.renderer.listen(t,"mouseenter",(function(t){e.ngZone.run((function(t){return e._popoverService.emitPopoverState(!0)}))})),e.disposePopupHoverOutListener=e.renderer.listen(t,"mouseleave",(function(t){e.ngZone.run((function(t){return e._popoverService.emitPopoverState(!1)}))}))})),"focus"===this.showOn&&this.ngZone.runOutsideAngular((function(){var t=e.popupRef.popupElement;e.disposePopupFocusOutListener=e.renderer.listen(t,"focusout",(function(t){s.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||e.ngZone.run((function(t){return e._popoverService.emitFocusInsidePopover(!1)}))}))}))},e.prototype.initializeEvents=function(e,t,o,n){var i=this;return o?this.ngZone.run((function(o){t=new a.PopoverShowEvent(n),i.popupRef||e.show.emit(t)})):this.ngZone.run((function(o){t=new a.PopoverHideEvent(n,i.popupRef),i.popupRef&&e.hide.emit(t)})),t},e.prototype.initializeFinishingEvents=function(e,t){var o=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe((function(){var n=new a.PopoverShownEvent(t,o.popupRef);e.shown.emit(n)})),this._popupCloseSub||this.popupRef.popupClose.subscribe((function(){o.ngZone.run((function(o){var n=new a.PopoverHiddenEvent(t);e.hidden.emit(n)}))}))},n.__decorate([i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popover",null),n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"showOn",null),e}();t.PopoverDirectivesBase=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(6),r=function(e){function t(t){var o=e.call(this)||this;return o.anchor=t,o}return n.__extends(t,e),t}(i.PreventableEvent);t.PopoverShowEvent=r;var s=function(e){function t(t,o){var n=e.call(this)||this;return n.anchor=t,n.popover=o,n}return n.__extends(t,e),t}(i.PreventableEvent);t.PopoverHideEvent=s;var p=function(e,t){this.anchor=e,this.popover=t};t.PopoverShownEvent=p;var a=function(e){this.anchor=e};t.PopoverHiddenEvent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),s=o(2),p=function(){function e(e){this.ngZone=e,this._pointerOverPopup=new r.BehaviorSubject(null),this._pointerOverAnchor=new r.BehaviorSubject(null),this._focusInsidePopover=new r.BehaviorSubject(null),this._hidePopover=new r.Subject,this.subs=new r.Subscription,this.monitor()}return e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(e.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitPopoverState=function(e){var t=this;this.ngZone.run((function(o){return t._pointerOverPopup.next(e)}))},Object.defineProperty(e.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitAnchorState=function(e,t){var o=this;this._isOrigin=this.originAnchor===t,this.currentAnchor=t,e&&(this.originAnchor=t),this.ngZone.run((function(t){return o._pointerOverAnchor.next(e)}))},Object.defineProperty(e.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitFocusInsidePopover=function(e){var t=this;this.ngZone.run((function(o){return t._focusInsidePopover.next(e)})),this._focusInsidePopover.next(null)},Object.defineProperty(e.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),e.prototype.monitor=function(){var e=this;this.subs.add(r.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe((function(t){var o=t[0],n=t[1];e._hidePopover.next([o,n,e._isOrigin,e.currentAnchor])})))},e=n.__decorate([i.Injectable(),n.__metadata("design:paramtypes",[i.NgZone])],e)}();t.PopoverService=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(6),s=o(3),p=o(2),a=o(19),u=o(21),c=function(e){function t(t,o,n,i,s){var a=e.call(this,o,n,i)||this;return a.hostEl=t,a.ngZone=o,a.popupService=n,a.renderer=i,a.popoverService=s,a.mouseenterHandler=function(){a.controlVisibility(a.hostEl.nativeElement,!0)},a.mouseleaveHandler=function(){a.isPrevented(a.hostEl.nativeElement,!1)||a._hideSub||(a._hideSub=a.popoverService.hidePopover.subscribe((function(e){var t=e[0],o=e[1];t||o||a.hide()})))},a.focusHandler=function(){a.controlVisibility(a.hostEl.nativeElement,!0)},a.blurHandler=function(e){var t=e.domEvent;a.isPrevented(a.hostEl.nativeElement,!1)||(!!r.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||a.hide(),a._focusInsideSub||(a._focusInsideSub=a.popoverService.isFocusInsidePopover.pipe(p.filter((function(e){return null!==e}))).subscribe((function(e){e||a.hide()}))))},a._popoverService=a.popoverService,a}return n.__extends(t,e),t.prototype.show=function(){this.popupRef||this.openPopup(this.hostEl.nativeElement)},t.prototype.toggle=function(){this.popupRef?this.hide():this.show()},t.prototype.subscribeToEvents=function(e){var t=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,e[0].name,(function(){t.popoverService.emitAnchorState(!0,t.hostEl.nativeElement),e[0].handler()}))),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,e[1].name,(function(o){t.popoverService.emitAnchorState(!1,null),e[1].handler({domEvent:o})})))},t.prototype.subscribeClick=function(){var e=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(t){e.onClick(t)}))},t.prototype.onClick=function(e){var t=this,o=!!r.closest(e.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),n=!!r.closest(e.target,(function(e){return e===t.hostEl.nativeElement}));o||this.popupRef&&n||(n?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},t.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},t=n.__decorate([i.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[u.PopoverService]}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,u.PopoverService])],t)}(a.PopoverDirectivesBase);t.PopoverAnchorDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(24),s=o(12),p=o(3),a=o(16),u=o(27),c=[s.TooltipDirective,a.TooltipContentComponent,u.LocalizedMessagesDirective],l=[p.PopupModule],d=function(){function e(){}return e=n.__decorate([i.NgModule({declarations:[c],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(l),exports:[c]})],e)}();t.TooltipModule=d},function(e,t){e.exports=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(24),r=o(1),s=o(3),p=o(22),a=o(18),u=o(8),c=o(9),l=o(10),d=[o(11).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,c.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],h=function(){function e(){}return e=n.__decorate([r.NgModule({declarations:d.concat([u.PopoverComponent]),entryComponents:[u.PopoverComponent],exports:d.concat([u.PopoverComponent]),imports:[i.CommonModule,s.PopupModule]})],e)}();t.PopoverModule=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(12);t.TooltipDirective=n.TooltipDirective;var i=o(15);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.TOOLTIP_SETTINGS;var r=o(8);t.PopoverComponent=r.PopoverComponent;var s=o(18);t.PopoverContainerDirective=s.PopoverContainerDirective;var p=o(22);t.PopoverAnchorDirective=p.PopoverAnchorDirective;var a=o(9);t.PopoverTitleTemplateDirective=a.PopoverTitleTemplateDirective;var u=o(10);t.PopoverBodyTemplateDirective=u.PopoverBodyTemplateDirective;var c=o(11);t.PopoverActionsTemplateDirective=c.PopoverActionsTemplateDirective;var l=o(20);t.PopoverShowEvent=l.PopoverShowEvent,t.PopoverShownEvent=l.PopoverShownEvent,t.PopoverHideEvent=l.PopoverHideEvent,t.PopoverHiddenEvent=l.PopoverHiddenEvent;var d=o(23);t.TooltipModule=d.TooltipModule;var h=o(25);t.PopoverModule=h.PopoverModule;var v=o(28);t.TooltipsModule=v.TooltipsModule},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),s=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),t=o=n.__decorate([i.Directive({providers:[{provide:r.ComponentMessages,useExisting:i.forwardRef((function(){return o}))}],selector:"[kendoTooltipLocalizedMessages]"}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(r.ComponentMessages);t.LocalizedMessagesDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(23),s=o(25),p=function(){function e(){}return e=n.__decorate([i.NgModule({exports:[r.TooltipModule,s.PopoverModule]})],e)}();t.TooltipsModule=p}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","rxjs/operators","@progress/kendo-angular-popup","rxjs","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@progress/kendo-licensing","@angular/common"],t):"object"==typeof exports?exports.KendoAngularTooltip=t(require("tslib"),require("@angular/core"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):e.KendoAngularTooltip=t(e.tslib,e["@angular/core"],e["rxjs/operators"],e["@progress/kendo-angular-popup"],e.rxjs,e["@progress/kendo-angular-common"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-licensing"],e["@angular/common"])}(window,(function(e,t,o,n,i,r,s,p,a){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=26)}([function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t){e.exports=o},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,o){"use strict";function n(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var o={},n={},i={};switch(e){case"top":o={horizontal:"center",vertical:"top"},n={horizontal:"center",vertical:"bottom"},i={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},n={horizontal:"center",vertical:"top"},i={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},n={horizontal:"left",vertical:"center"},i={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},n={horizontal:"right",vertical:"center"},i={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:n,popupMargin:i}},t.collision=function(e,t){return e||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},t.closestBySelector=function(e,t){if(e.closest)return e.closest(t);for(var o=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&!n(i);){if(o(i,t))return i;i=i.parentNode}},t.contains=function(e,t){return!!e&&(!n(e)&&(e.contains?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0))},t.hasParent=function(e,t){for(;e&&e!==t;)e=e.parentNode;return e},t.getCenterOffset=function(e,t,o){var n=e.getBoundingClientRect();return n[t]+n[o]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),s=o(4),p=o(13),a=o(14),u=o(17),c=o(9),l=o(10),d=o(11),h=function(){function e(e){this.localization=e,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new i.EventEmitter,this.shown=new i.EventEmitter,this.hide=new i.EventEmitter,this.hidden=new i.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new s.Subscription,this._templateData=function(){return null},p.validatePackage(a.packageMetadata)}return Object.defineProperty(e.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(i.isDevMode&&"function"!=typeof e)throw new Error(u.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subs.add(this.localization.changes.subscribe((function(t){var o=t.rtl;e.direction=o?"rtl":"ltr"})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"position",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"offset",null),n.__decorate([i.HostBinding("style.width"),i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"width",null),n.__decorate([i.HostBinding("style.height"),i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"height",null),n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"subtitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"body",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"animation",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"templateData",null),n.__decorate([i.HostBinding("class.k-hidden"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isHidden",null),n.__decorate([i.HostBinding("attr.aria-hidden"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"hasAttributeHidden",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"show",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"shown",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"hide",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"hidden",void 0),n.__decorate([i.ContentChild(c.PopoverTitleTemplateDirective,{static:!1}),n.__metadata("design:type",c.PopoverTitleTemplateDirective)],e.prototype,"titleTemplate",void 0),n.__decorate([i.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),n.__metadata("design:type",l.PopoverBodyTemplateDirective)],e.prototype,"bodyTemplate",void 0),n.__decorate([i.ContentChild(d.PopoverActionsTemplateDirective,{static:!1}),n.__metadata("design:type",d.PopoverActionsTemplateDirective)],e.prototype,"actionsTemplate",void 0),e=n.__decorate([i.Component({selector:"kendo-popover",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),n.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.PopoverComponent=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverTitleTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverTitleTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverBodyTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverBodyTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverActionsTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverActionsTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(2),s=o(4),p=o(3),a=o(13),u=o(14),c=o(15),l=o(16),d=o(5),h=function(){function e(e,t,o,n,i,p){var c=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=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"],a.validatePackage(u.packageMetadata),Object.assign(this,i,p),this.ngZone.runOutsideAngular((function(){var e=c.tooltipWrapper.nativeElement;c.anchorTitleSubscription=s.fromEvent(e,"mouseover").pipe(r.filter((function(){return""!==c.filter}))).subscribe((function(e){var t=d.closestBySelector(e.target,c.filter);t&&c.hideElementTitle({nativeElement:t})})),c.mouseOverSubscription=s.fromEvent(e,"mouseover").pipe(r.debounceTime(100),r.filter((function(){return""!==c.filter}))).subscribe((function(e){return c.onMouseOver(e)})),c.mouseOutSubscription=s.fromEvent(e,"mouseout").pipe(r.debounceTime(100)).subscribe((function(e){return c.onMouseOut(e)}))}))}return Object.defineProperty(e.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var t=this;if(!this.popupRef)if(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout((function(){return t.showContent(t.anchor)}),this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},e.prototype.hide=function(){clearTimeout(this.showTimeout);var e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},e.prototype.toggle=function(e,t){var o=this.anchor&&this.anchor.nativeElement;e instanceof Element&&(e={nativeElement:e}),o!==e.nativeElement&&this.hide(),o===e.nativeElement&&"click"===this.showOn&&this.hide(),void 0===t&&(t=!this.popupRef),t?this.show(e):this.hide()},e.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},e.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},e.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!d.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},e.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},e.prototype.showContent=function(e){var t=this;(e.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run((function(){t.openPopup(e),t.bindContent(t.popupRef.content,e)})),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe((function(){return t.hide()})))},e.prototype.bindContent=function(e,t){var o=this,n=e.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.closeTitle=this.closeTitle,n.anchor=t,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()},e.prototype.hideElementTitle=function(e){var t=e.nativeElement;t.getAttribute("title")&&(t.setAttribute("data-title",t.getAttribute("title")),t.setAttribute("title",""))},e.prototype.openPopup=function(e){var t=this,o=d.align(this.position,this.offset),n=o.anchorAlign,i=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:n,animate:!1,content:l.TooltipContentComponent,collision:d.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 p=this.popupRef.content.instance;p.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe((function(e){var o=e.flip,n=!0===o.horizontal||!0===o.vertical;p.updateCalloutPosition(t.position,n)}))),"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var e=t.popupRef.popupElement;t.popupMouseOutSubscription=s.fromEvent(e,"mouseout").subscribe((function(e){return t.onMouseOut(e)}))}))},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},e.prototype.subscribeClick=function(){var e=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=s.fromEvent(document,"click").pipe(r.filter((function(){return""!==e.filter}))).subscribe((function(t){return e.onMouseClick(t,e.tooltipWrapper.nativeElement)})))},e.prototype.onMouseClick=function(e,t){var o=e.target,n=d.closestBySelector(o,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(o))return;if(this.closable)return}t.contains(o)&&n?this.toggle(n,!0):i&&this.hide()},e.prototype.onMouseOver=function(e){var t=d.closestBySelector(e.target,this.filter);"hover"===this.showOn&&t&&this.toggle(t,!0)},e.prototype.onMouseOut=function(e){if("hover"===this.showOn&&!this.closable){var t=this.popupRef&&this.popupRef.popupElement,o=e.relatedTarget;o&&this.anchor&&d.contains(this.anchor.nativeElement,o)||o&&d.contains(t,o)||this.hide()}},e.prototype.verifyProperties=function(){if(i.isDevMode()){if(!d.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!d.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"filter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"position",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"showOn",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"showAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"offset",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"tooltipClass",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"collision",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef),n.__metadata("design:paramtypes",[i.TemplateRef])],e.prototype,"tooltipTemplate",null),e=n.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),n.__param(4,i.Optional()),n.__param(5,i.Optional()),n.__param(5,i.Inject(c.TOOLTIP_SETTINGS)),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2,p.PopupService,c.TooltipSettings,c.TooltipSettings])],e)}();t.TooltipDirective=h},function(e,t){e.exports=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642618255,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1);t.TOOLTIP_SETTINGS=new i.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function e(){}return e=n.__decorate([i.Injectable()],e)}();t.TooltipSettings=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),s=o(5),p=function(){function e(e,t){this.content=e,this.localizationService=t,this.close=new i.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var n={},i="top"===e||"bottom"===e;return o?("top"===e?n.bottom="unset":"bottom"===e?n.top="unset":"left"===e?n.right="unset":"right"===e&&(n.left="unset"),n[e]=-t+"px",n.transform=i?"rotateX(180deg)":"rotateY(180deg)",n):(n.transform=i?"rotateX(0deg)":"rotateY(0deg)",n)},this.direction=t.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(t){var o=t.rtl;return e.direction=o?"rtl":"ltr"}))},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(e.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),e.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},e.prototype.onCloseClick=function(e){e.preventDefault(),this.close.emit()},e.prototype.updateCalloutPosition=function(e,t){if(this.callout){var o=this.content.nativeElement.querySelector(".k-callout"),n="top"===e||"bottom"===e,i=n?"width":"height",r=n?"left":"top",p=n?"marginLeft":"marginTop",a=o.getBoundingClientRect()[i],u=s.getCenterOffset(this.anchor.nativeElement,r,i),c=s.getCenterOffset(this.content.nativeElement,r,i),l=Math.abs(c-u);if(l>1||0===l||0===Math.round(l)){var d=c-u+a/2;o.style[p]=-d+"px"}var h=this.calloutStyles(e,a,t);Object.keys(h).forEach((function(e){o.style[e]=h[e]}))}},n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"close",void 0),n.__decorate([i.HostBinding("class"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"cssClasses",null),n.__decorate([i.HostBinding("class.k-tooltip-closable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"className",null),n.__decorate([i.HostBinding("style.position"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"cssPosition",null),n.__decorate([i.HostBinding("style.width.px"),i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),n.__decorate([i.HostBinding("style.height.px"),i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.ElementRef)],e.prototype,"anchor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"templateRef",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"templateString",void 0),e=n.__decorate([i.Component({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\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\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\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),n.__metadata("design:paramtypes",[i.ElementRef,r.LocalizationService])],e)}();t.TooltipContentComponent=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(6),s=o(3),p=o(2),a=o(5),u=o(19),c=o(21),l=function(e){function t(t,o,n,i,s){var a=e.call(this,o,n,i)||this;return a.wrapperEl=t,a.ngZone=o,a.popupService=n,a.renderer=i,a.popoverService=s,a.mouseenterHandler=function(e){a.controlVisibility(e,!0)},a.mouseleaveHandler=function(e){var t=e.anchor;a.isPrevented(t,!1)||a._hideSub||(a._hideSub=a.popoverService.hidePopover.subscribe((function(e){var t=e[0],o=e[2],n=e[3];t||o||(a.hide(),!o&&n&&a.show(n))})))},a.focusHandler=function(e){a.controlVisibility(e,!0)},a.blurHandler=function(e){var t=e.anchor,o=e.domEvent;if(!a.isPrevented(t,!1)){var n=!!r.closest(o.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}));n||a.hide(),a._focusInsideSub||(a._focusInsideSub=a.popoverService.isFocusInsidePopover.pipe(p.filter((function(e){return null!==e}))).subscribe((function(e){e||n||a.hide()})))}},a._popoverService=a.popoverService,a}return n.__extends(t,e),t.prototype.show=function(e){this.popupRef||this.openPopup(e)},t.prototype.toggle=function(e){var t=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),t!==e&&this.show(e)):this.show(e)},t.prototype.subscribeClick=function(){var e=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(t){var o=a.closestBySelector(t.target,e.filter);e.clickHandler(o,t)}))},t.prototype.subscribeToEvents=function(e){var t=this;Array.from(document.querySelectorAll(this.filter)).forEach((function(o){t.subs.add(t.renderer.listen(o,e[0].name,(function(){t.popoverService.emitAnchorState(!0,o),e[0].handler(o)}))),t.subs.add(t.renderer.listen(o,e[1].name,(function(n){t.popoverService.emitAnchorState(!1,null),e[1].handler({anchor:o,domEvent:n})})))}))},t.prototype.clickHandler=function(e,t){var o=!!r.closest(t.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),n=this.popupRef&&this.popupRef.content.instance.anchor,i=!!r.closest(t.target,(function(t){return t===(n||e)}));"click"!==this.showOn||o||this.popupRef&&i||(e||!this.popupRef?i?this.controlVisibility(e,!0):this.popupRef&&(this.controlVisibility(e,!1),this.controlVisibility(e,!0)):this.controlVisibility(e,!1))},t.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"filter",void 0),t=n.__decorate([i.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[c.PopoverService]}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,c.PopoverService])],t)}(u.PopoverDirectivesBase);t.PopoverContainerDirective=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(2),s=o(6),p=o(17),a=o(20),u=o(5),c=o(8),l=o(4),d=["hover","click","none","focus"],h=function(){function e(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new l.Subscription,this._showOn="click"}return Object.defineProperty(e.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof c.PopoverComponent||"function"==typeof e)this._popover=e;else if(i.isDevMode)throw new Error(p.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(i.isDevMode&&!u.containsItem(d,e))throw new Error(p.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular((function(){switch(e.showOn){case"hover":e.subscribeToEvents([{name:"mouseenter",handler:e.mouseenterHandler},{name:"mouseleave",handler:e.mouseleaveHandler}]);break;case"focus":e.subscribeToEvents([{name:"focus",handler:e.focusHandler},{name:"blur",handler:e.blurHandler}]);break;case"click":e.subscribeClick()}}))},e.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},e.prototype.hide=function(){this.closePopup()},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},e.prototype.openPopup=function(e){var t=this,o=e instanceof i.ElementRef?e.nativeElement:e,n=this.popover instanceof c.PopoverComponent?this.popover:this.popover(o),s=u.align(n.position,n.offset),p=s.anchorAlign,a=s.popupAlign,l=s.popupMargin,d=n.animation;this.ngZone.run((function(){t.popupRef=t.popupService.open({anchor:{nativeElement:o},animate:d,content:c.PopoverComponent,popupAlign:a,anchorAlign:p,margin:l,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}});var i=t.popupRef.content.instance;Object.assign(i,n),i.anchor=e,i.contextData=i.templateData(e),i.visible=!0,t.popupRef.content.changeDetectorRef.detectChanges(),t.monitorPopup(),t.initializeFinishingEvents(n,o)})),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe((function(){return t.hide()}))},e.prototype.isPrevented=function(e,t){var o,n=this.popover instanceof c.PopoverComponent?this.popover:this.popover(e);return(o=this.initializeEvents(n,o,t,e)).isDefaultPrevented()},e.prototype.monitorPopup=function(){var e=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var t=e.popupRef.popupElement;e.disposePopupHoverInListener=e.renderer.listen(t,"mouseenter",(function(t){e.ngZone.run((function(t){return e._popoverService.emitPopoverState(!0)}))})),e.disposePopupHoverOutListener=e.renderer.listen(t,"mouseleave",(function(t){e.ngZone.run((function(t){return e._popoverService.emitPopoverState(!1)}))}))})),"focus"===this.showOn&&this.ngZone.runOutsideAngular((function(){var t=e.popupRef.popupElement;e.disposePopupFocusOutListener=e.renderer.listen(t,"focusout",(function(t){s.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||e.ngZone.run((function(t){return e._popoverService.emitFocusInsidePopover(!1)}))}))}))},e.prototype.initializeEvents=function(e,t,o,n){var i=this;return o?this.ngZone.run((function(o){t=new a.PopoverShowEvent(n),i.popupRef||e.show.emit(t)})):this.ngZone.run((function(o){t=new a.PopoverHideEvent(n,i.popupRef),i.popupRef&&e.hide.emit(t)})),t},e.prototype.initializeFinishingEvents=function(e,t){var o=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe((function(){var n=new a.PopoverShownEvent(t,o.popupRef);e.shown.emit(n)})),this._popupCloseSub||this.popupRef.popupClose.subscribe((function(){o.ngZone.run((function(o){var n=new a.PopoverHiddenEvent(t);e.hidden.emit(n)}))}))},n.__decorate([i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popover",null),n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"showOn",null),e}();t.PopoverDirectivesBase=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(6),r=function(e){function t(t){var o=e.call(this)||this;return o.anchor=t,o}return n.__extends(t,e),t}(i.PreventableEvent);t.PopoverShowEvent=r;var s=function(e){function t(t,o){var n=e.call(this)||this;return n.anchor=t,n.popover=o,n}return n.__extends(t,e),t}(i.PreventableEvent);t.PopoverHideEvent=s;var p=function(e,t){this.anchor=e,this.popover=t};t.PopoverShownEvent=p;var a=function(e){this.anchor=e};t.PopoverHiddenEvent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),s=o(2),p=function(){function e(e){this.ngZone=e,this._pointerOverPopup=new r.BehaviorSubject(null),this._pointerOverAnchor=new r.BehaviorSubject(null),this._focusInsidePopover=new r.BehaviorSubject(null),this._hidePopover=new r.Subject,this.subs=new r.Subscription,this.monitor()}return e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(e.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitPopoverState=function(e){var t=this;this.ngZone.run((function(o){return t._pointerOverPopup.next(e)}))},Object.defineProperty(e.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitAnchorState=function(e,t){var o=this;this._isOrigin=this.originAnchor===t,this.currentAnchor=t,e&&(this.originAnchor=t),this.ngZone.run((function(t){return o._pointerOverAnchor.next(e)}))},Object.defineProperty(e.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitFocusInsidePopover=function(e){var t=this;this.ngZone.run((function(o){return t._focusInsidePopover.next(e)})),this._focusInsidePopover.next(null)},Object.defineProperty(e.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),e.prototype.monitor=function(){var e=this;this.subs.add(r.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe((function(t){var o=t[0],n=t[1];e._hidePopover.next([o,n,e._isOrigin,e.currentAnchor])})))},e=n.__decorate([i.Injectable(),n.__metadata("design:paramtypes",[i.NgZone])],e)}();t.PopoverService=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(6),s=o(3),p=o(2),a=o(19),u=o(21),c=function(e){function t(t,o,n,i,s){var a=e.call(this,o,n,i)||this;return a.hostEl=t,a.ngZone=o,a.popupService=n,a.renderer=i,a.popoverService=s,a.mouseenterHandler=function(){a.controlVisibility(a.hostEl.nativeElement,!0)},a.mouseleaveHandler=function(){a.isPrevented(a.hostEl.nativeElement,!1)||a._hideSub||(a._hideSub=a.popoverService.hidePopover.subscribe((function(e){var t=e[0],o=e[1];t||o||a.hide()})))},a.focusHandler=function(){a.controlVisibility(a.hostEl.nativeElement,!0)},a.blurHandler=function(e){var t=e.domEvent;a.isPrevented(a.hostEl.nativeElement,!1)||(!!r.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||a.hide(),a._focusInsideSub||(a._focusInsideSub=a.popoverService.isFocusInsidePopover.pipe(p.filter((function(e){return null!==e}))).subscribe((function(e){e||a.hide()}))))},a._popoverService=a.popoverService,a}return n.__extends(t,e),t.prototype.show=function(){this.popupRef||this.openPopup(this.hostEl.nativeElement)},t.prototype.toggle=function(){this.popupRef?this.hide():this.show()},t.prototype.subscribeToEvents=function(e){var t=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,e[0].name,(function(){t.popoverService.emitAnchorState(!0,t.hostEl.nativeElement),e[0].handler()}))),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,e[1].name,(function(o){t.popoverService.emitAnchorState(!1,null),e[1].handler({domEvent:o})})))},t.prototype.subscribeClick=function(){var e=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(t){e.onClick(t)}))},t.prototype.onClick=function(e){var t=this,o=!!r.closest(e.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),n=!!r.closest(e.target,(function(e){return e===t.hostEl.nativeElement}));o||this.popupRef&&n||(n?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},t.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},t=n.__decorate([i.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[u.PopoverService]}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,u.PopoverService])],t)}(a.PopoverDirectivesBase);t.PopoverAnchorDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(24),s=o(12),p=o(3),a=o(16),u=o(27),c=[s.TooltipDirective,a.TooltipContentComponent,u.LocalizedMessagesDirective],l=[p.PopupModule],d=function(){function e(){}return e=n.__decorate([i.NgModule({declarations:[c],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(l),exports:[c]})],e)}();t.TooltipModule=d},function(e,t){e.exports=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(24),r=o(1),s=o(3),p=o(22),a=o(18),u=o(8),c=o(9),l=o(10),d=[o(11).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,c.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],h=function(){function e(){}return e=n.__decorate([r.NgModule({declarations:d.concat([u.PopoverComponent]),entryComponents:[u.PopoverComponent],exports:d.concat([u.PopoverComponent]),imports:[i.CommonModule,s.PopupModule]})],e)}();t.PopoverModule=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(12);t.TooltipDirective=n.TooltipDirective;var i=o(15);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.TOOLTIP_SETTINGS;var r=o(8);t.PopoverComponent=r.PopoverComponent;var s=o(18);t.PopoverContainerDirective=s.PopoverContainerDirective;var p=o(22);t.PopoverAnchorDirective=p.PopoverAnchorDirective;var a=o(9);t.PopoverTitleTemplateDirective=a.PopoverTitleTemplateDirective;var u=o(10);t.PopoverBodyTemplateDirective=u.PopoverBodyTemplateDirective;var c=o(11);t.PopoverActionsTemplateDirective=c.PopoverActionsTemplateDirective;var l=o(20);t.PopoverShowEvent=l.PopoverShowEvent,t.PopoverShownEvent=l.PopoverShownEvent,t.PopoverHideEvent=l.PopoverHideEvent,t.PopoverHiddenEvent=l.PopoverHiddenEvent;var d=o(23);t.TooltipModule=d.TooltipModule;var h=o(25);t.PopoverModule=h.PopoverModule;var v=o(28);t.TooltipsModule=v.TooltipsModule},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),s=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),t=o=n.__decorate([i.Directive({providers:[{provide:r.ComponentMessages,useExisting:i.forwardRef((function(){return o}))}],selector:"[kendoTooltipLocalizedMessages]"}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(r.ComponentMessages);t.LocalizedMessagesDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(23),s=o(25),p=function(){function e(){}return e=n.__decorate([i.NgModule({exports:[r.TooltipModule,s.PopoverModule]})],e)}();t.TooltipsModule=p}])})); |
@@ -12,5 +12,5 @@ /**----------------------------------------------------------------------------------------- | ||
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'], | ||
publishDate: 1642590228, | ||
publishDate: 1642618255, | ||
version: '', | ||
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning' | ||
}; |
@@ -12,5 +12,5 @@ /**----------------------------------------------------------------------------------------- | ||
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'], | ||
publishDate: 1642590228, | ||
publishDate: 1642618255, | ||
version: '', | ||
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning' | ||
}; |
@@ -14,5 +14,5 @@ /**----------------------------------------------------------------------------------------- | ||
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'], | ||
publishDate: 1642590228, | ||
publishDate: 1642618255, | ||
version: '', | ||
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning' | ||
}; |
@@ -5,2 +5,2 @@ /**----------------------------------------------------------------------------------------- | ||
*-------------------------------------------------------------------------------------------*/ | ||
System.register("@progress/kendo-angular-tooltip",["@angular/core","tslib","@progress/kendo-angular-popup","@angular/common","@progress/kendo-angular-common","rxjs/operators","@progress/kendo-licensing","rxjs","@progress/kendo-angular-l10n"],function(r){var s,p,a,c,u,l,d,h,v;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){s=t(e)},function(e){p=t(e)},function(e){a=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){h=t(e)},function(e){v=t(e)}],execute:function(){function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var o,n;n={},i.m=o=[function(e,t){e.exports=p},function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t){e.exports=l},function(e,t){e.exports=u},function(e,t,o){"use strict";function n(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var o={},i={},n={};switch(e){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},t.collision=function(e,t){return e||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},t.closestBySelector=function(e,t){if(e.closest)return e.closest(t);for(var o=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&!n(i);){if(o(i,t))return i;i=i.parentNode}},t.contains=function(e,t){return!!e&&!n(e)&&(e.contains?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},t.hasParent=function(e,t){for(;e&&e!==t;)e=e.parentNode;return e},t.getCenterOffset=function(e,t,o){e=e.getBoundingClientRect();return e[t]+e[o]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t){e.exports=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverActionsTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverActionsTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverBodyTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverBodyTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverTitleTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverTitleTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),s=o(6),p=o(24),a=o(23),c=o(20),u=o(9),l=o(8),o=o(7),r=(Object.defineProperty(d.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(n.isDevMode&&"function"!=typeof e)throw new Error(c.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},d.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},d.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],d.prototype,"offset",null),i.__decorate([n.HostBinding("style.width"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"width",null),i.__decorate([n.HostBinding("style.height"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"height",null),i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],d.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"title",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"subtitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"body",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],d.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],d.prototype,"animation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],d.prototype,"templateData",null),i.__decorate([n.HostBinding("class.k-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"isHidden",null),i.__decorate([n.HostBinding("attr.aria-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"hasAttributeHidden",null),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"show",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"shown",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hide",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hidden",void 0),i.__decorate([n.ContentChild(u.PopoverTitleTemplateDirective,{static:!1}),i.__metadata("design:type",u.PopoverTitleTemplateDirective)],d.prototype,"titleTemplate",void 0),i.__decorate([n.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),i.__metadata("design:type",l.PopoverBodyTemplateDirective)],d.prototype,"bodyTemplate",void 0),i.__decorate([n.ContentChild(o.PopoverActionsTemplateDirective,{static:!1}),i.__metadata("design:type",o.PopoverActionsTemplateDirective)],d.prototype,"actionsTemplate",void 0),i.__decorate([n.Component({selector:"kendo-popover",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService])],d));function d(e){this.localization=e,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new n.EventEmitter,this.shown=new n.EventEmitter,this.hide=new n.EventEmitter,this.hidden=new n.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new s.Subscription,this._templateData=function(){return null},p.validatePackage(a.packageMetadata)}t.PopoverComponent=r},function(e,t){e.exports=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(13),r=o(1),s=o(2),p=o(15),a=o(19),c=o(10),u=o(9),l=o(8),a=[o(7).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,u.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],s=i.__decorate([r.NgModule({declarations:a.concat([c.PopoverComponent]),entryComponents:[c.PopoverComponent],exports:a.concat([c.PopoverComponent]),imports:[n.CommonModule,s.PopupModule]})],d);function d(){}t.PopoverModule=s},function(e,t){e.exports=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(13),s=o(25),p=o(2),a=o(21),o=o(27),o=[s.TooltipDirective,a.TooltipContentComponent,o.LocalizedMessagesDirective],p=[p.PopupModule],o=i.__decorate([n.NgModule({declarations:[o],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(p),exports:[o]})],c);function c(){}t.TooltipModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(4),r=o(2),a=o(3),c=o(18),o=o(16),o=(s=c.PopoverDirectivesBase,i.__extends(u,s),u.prototype.show=function(){this.popupRef||this.openPopup(this.hostEl.nativeElement)},u.prototype.toggle=function(){this.popupRef?this.hide():this.show()},u.prototype.subscribeToEvents=function(t){var o=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[0].name,function(){o.popoverService.emitAnchorState(!0,o.hostEl.nativeElement),t[0].handler()})),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[1].name,function(e){o.popoverService.emitAnchorState(!1,null),t[1].handler({domEvent:e})}))},u.prototype.subscribeClick=function(){var t=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){t.onClick(e)})},u.prototype.onClick=function(e){var t=this,o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),e=!!p.closest(e.target,function(e){return e===t.hostEl.nativeElement});o||this.popupRef&&e||(e?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},u.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},i.__decorate([n.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],u));function u(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.hostEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.mouseleaveHandler=function(){r.isPrevented(r.hostEl.nativeElement,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],e=e[1];t||e||r.hide()}))},r.focusHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.blurHandler=function(e){e=e.domEvent;r.isPrevented(r.hostEl.nativeElement,!1)||(p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||r.hide()})))},r._popoverService=r.popoverService,r}t.PopoverAnchorDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(6),s=o(3),n=(p.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(p.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitPopoverState=function(t){var o=this;this.ngZone.run(function(e){return o._pointerOverPopup.next(t)})},Object.defineProperty(p.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitAnchorState=function(t,e){var o=this;this._isOrigin=this.originAnchor===e,this.currentAnchor=e,t&&(this.originAnchor=e),this.ngZone.run(function(e){return o._pointerOverAnchor.next(t)})},Object.defineProperty(p.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitFocusInsidePopover=function(t){var o=this;this.ngZone.run(function(e){return o._focusInsidePopover.next(t)}),this._focusInsidePopover.next(null)},Object.defineProperty(p.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.monitor=function(){var o=this;this.subs.add(r.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe(function(e){var t=e[0],e=e[1];o._hidePopover.next([t,e,o._isOrigin,o.currentAnchor])}))},i.__decorate([n.Injectable(),i.__metadata("design:paramtypes",[n.NgZone])],p));function p(e){this.ngZone=e,this._pointerOverPopup=new r.BehaviorSubject(null),this._pointerOverAnchor=new r.BehaviorSubject(null),this._focusInsidePopover=new r.BehaviorSubject(null),this._hidePopover=new r.Subject,this.subs=new r.Subscription,this.monitor()}t.PopoverService=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(4),o=(i=r.PreventableEvent,n.__extends(s,i),s);function s(e){var t=i.call(this)||this;return t.anchor=e,t}t.PopoverShowEvent=o;var p,n=(p=r.PreventableEvent,n.__extends(a,p),a);function a(e,t){var o=p.call(this)||this;return o.anchor=e,o.popover=t,o}t.PopoverHideEvent=n,t.PopoverShownEvent=function(e,t){this.anchor=e,this.popover=t},t.PopoverHiddenEvent=function(e){this.anchor=e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),c=o(1),u=o(3),n=o(4),r=o(20),s=o(17),l=o(5),d=o(10),p=o(6),a=["hover","click","none","focus"],i=(Object.defineProperty(h.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof d.PopoverComponent||"function"==typeof e)this._popover=e;else if(c.isDevMode)throw new Error(r.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(c.isDevMode&&!l.containsItem(a,e))throw new Error(r.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),h.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular(function(){switch(e.showOn){case"hover":e.subscribeToEvents([{name:"mouseenter",handler:e.mouseenterHandler},{name:"mouseleave",handler:e.mouseleaveHandler}]);break;case"focus":e.subscribeToEvents([{name:"focus",handler:e.focusHandler},{name:"blur",handler:e.blurHandler}]);break;case"click":e.subscribeClick()}})},h.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},h.prototype.hide=function(){this.closePopup()},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},h.prototype.openPopup=function(t){var o=this,i=t instanceof c.ElementRef?t.nativeElement:t,n=this.popover instanceof d.PopoverComponent?this.popover:this.popover(i),e=l.align(n.position,n.offset),r=e.anchorAlign,s=e.popupAlign,p=e.popupMargin,a=n.animation;this.ngZone.run(function(){o.popupRef=o.popupService.open({anchor:{nativeElement:i},animate:a,content:d.PopoverComponent,popupAlign:s,anchorAlign:r,margin:p,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}});var e=o.popupRef.content.instance;Object.assign(e,n),e.anchor=t,e.contextData=e.templateData(t),e.visible=!0,o.popupRef.content.changeDetectorRef.detectChanges(),o.monitorPopup(),o.initializeFinishingEvents(n,i)}),this.popupRef.popupAnchorViewportLeave.pipe(u.take(1)).subscribe(function(){return o.hide()})},h.prototype.isPrevented=function(e,t){var o=this.popover instanceof d.PopoverComponent?this.popover:this.popover(e);return this.initializeEvents(o,void 0,t,e).isDefaultPrevented()},h.prototype.monitorPopup=function(){var t=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupHoverInListener=t.renderer.listen(e,"mouseenter",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!0)})}),t.disposePopupHoverOutListener=t.renderer.listen(e,"mouseleave",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!1)})})}),"focus"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupFocusOutListener=t.renderer.listen(e,"focusout",function(e){n.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||t.ngZone.run(function(e){return t._popoverService.emitFocusInsidePopover(!1)})})})},h.prototype.initializeEvents=function(t,o,e,i){var n=this;return e?this.ngZone.run(function(e){o=new s.PopoverShowEvent(i),n.popupRef||t.show.emit(o)}):this.ngZone.run(function(e){o=new s.PopoverHideEvent(i,n.popupRef),n.popupRef&&t.hide.emit(o)}),o},h.prototype.initializeFinishingEvents=function(o,i){var t=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe(function(){var e=new s.PopoverShownEvent(i,t.popupRef);o.shown.emit(e)}),this._popupCloseSub||this.popupRef.popupClose.subscribe(function(){t.ngZone.run(function(e){var t=new s.PopoverHiddenEvent(i);o.hidden.emit(t)})})},i.__decorate([c.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],h.prototype,"popover",null),i.__decorate([c.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],h.prototype,"showOn",null),h);function h(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new p.Subscription,this._showOn="click"}t.PopoverDirectivesBase=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(4),r=o(2),a=o(3),c=o(5),u=o(18),o=o(16),o=(s=u.PopoverDirectivesBase,i.__extends(l,s),l.prototype.show=function(e){this.popupRef||this.openPopup(e)},l.prototype.toggle=function(e){var t=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),t!==e&&this.show(e)):this.show(e)},l.prototype.subscribeClick=function(){var o=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){var t=c.closestBySelector(e.target,o.filter);o.clickHandler(t,e)})},l.prototype.subscribeToEvents=function(o){var i=this;Array.from(document.querySelectorAll(this.filter)).forEach(function(t){i.subs.add(i.renderer.listen(t,o[0].name,function(){i.popoverService.emitAnchorState(!0,t),o[0].handler(t)})),i.subs.add(i.renderer.listen(t,o[1].name,function(e){i.popoverService.emitAnchorState(!1,null),o[1].handler({anchor:t,domEvent:e})}))})},l.prototype.clickHandler=function(t,e){var o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),i=this.popupRef&&this.popupRef.content.instance.anchor,e=!!p.closest(e.target,function(e){return e===(i||t)});"click"!==this.showOn||o||this.popupRef&&e||(t||!this.popupRef?e?this.controlVisibility(t,!0):this.popupRef&&(this.controlVisibility(t,!1),this.controlVisibility(t,!0)):this.controlVisibility(t,!1))},l.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},i.__decorate([n.Input(),i.__metadata("design:type",String)],l.prototype,"filter",void 0),i.__decorate([n.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],l));function l(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.wrapperEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(e){r.controlVisibility(e,!0)},r.mouseleaveHandler=function(e){e=e.anchor;r.isPrevented(e,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],o=e[2],e=e[3];t||o||(r.hide(),!o&&e&&r.show(e))}))},r.focusHandler=function(e){r.controlVisibility(e,!0)},r.blurHandler=function(e){var t,o=e.anchor,e=e.domEvent;r.isPrevented(o,!1)||((t=!!p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")}))||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||t||r.hide()})))},r._popoverService=r.popoverService,r}t.PopoverContainerDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),c=o(5),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.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"})},s.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(s.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},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(e){e.preventDefault(),this.close.emit()},s.prototype.updateCalloutPosition=function(e,t){var o,i,n,r,s,p,a;this.callout&&(p=(r="top"===e||"bottom"===e)?"width":"height",s=r?"left":"top",i=r?"marginLeft":"marginTop",n=(o=this.content.nativeElement.querySelector(".k-callout")).getBoundingClientRect()[p],r=c.getCenterOffset(this.anchor.nativeElement,s,p),s=c.getCenterOffset(this.content.nativeElement,s,p),(1<(p=Math.abs(s-r))||0===p||0===Math.round(p))&&(o.style[i]=-(s-r+n/2)+"px"),a=this.calloutStyles(e,n,t),Object.keys(a).forEach(function(e){o.style[e]=a[e]}))},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],s.prototype,"direction",void 0),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({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\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\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\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],s));function s(e,t){this.content=e,this.localizationService=t,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var i={},n="top"===e||"bottom"===e;return o?("top"===e?i.bottom="unset":"bottom"===e?i.top="unset":"left"===e?i.right="unset":"right"===e&&(i.left="unset"),i[e]=-t+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)"):i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i},this.direction=t.rtl?"rtl":"ltr"}t.TooltipContentComponent=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1);t.TOOLTIP_SETTINGS=new o.InjectionToken("kendo-ui-tooltip-settings");o=i.__decorate([o.Injectable()],n);function n(){}t.TooltipSettings=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642590228,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),p=o(3),a=o(6),r=o(2),c=o(24),u=o(23),s=o(22),l=o(21),d=o(5),s=(Object.defineProperty(h.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),h.prototype.show=function(e){var t=this;this.popupRef||(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn?this.popupRef||(clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return t.showContent(t.anchor)},this.showAfter)):(this.hideElementTitle(this.anchor),this.showContent(this.anchor)))},h.prototype.hide=function(){clearTimeout(this.showTimeout);var e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},h.prototype.toggle=function(e,t){var o=this.anchor&&this.anchor.nativeElement;o!==(e=e instanceof Element?{nativeElement:e}:e).nativeElement&&this.hide(),o===e.nativeElement&&"click"===this.showOn&&this.hide(),(t=void 0===t?!this.popupRef:t)?this.show(e):this.hide()},h.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},h.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},h.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!d.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},h.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},h.prototype.showContent=function(e){var t=this;(e.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){t.openPopup(e),t.bindContent(t.popupRef.content,e)}),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe(function(){return t.hide()}))},h.prototype.bindContent=function(e,t){var o=this,e=e.instance;this.closeClickSubscription=e.close.subscribe(function(){o.hide()}),this.template?e.templateRef=this.template:e.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(e.titleTemplate=this.titleTemplate),e.closeTitle=this.closeTitle,e.anchor=t,e.callout=this.callout,e.closable=this.closable,e.position=this.position,e.tooltipWidth=this.tooltipWidth,e.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},h.prototype.hideElementTitle=function(e){e=e.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},h.prototype.openPopup=function(e){var t=this,o=d.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,o=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:d.collision(this.collision,this.position),margin:o,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 r=this.popupRef.content.instance;r.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(e){e=e.flip,e=!0===e.horizontal||!0===e.vertical;r.updateCalloutPosition(t.position,e)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.popupMouseOutSubscription=a.fromEvent(e,"mouseout").subscribe(function(e){return t.onMouseOut(e)})})},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},h.prototype.subscribeClick=function(){var t=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=a.fromEvent(document,"click").pipe(p.filter(function(){return""!==t.filter})).subscribe(function(e){return t.onMouseClick(e,t.tooltipWrapper.nativeElement)}))},h.prototype.onMouseClick=function(e,t){var o=e.target,i=d.closestBySelector(o,this.filter),e=this.popupRef&&this.popupRef.popupElement;if(e){if(e.contains(o))return;if(this.closable)return}t.contains(o)&&i?this.toggle(i,!0):e&&this.hide()},h.prototype.onMouseOver=function(e){e=d.closestBySelector(e.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},h.prototype.onMouseOut=function(e){var t;"hover"!==this.showOn||this.closable||(t=this.popupRef&&this.popupRef.popupElement,(e=e.relatedTarget)&&this.anchor&&d.contains(this.anchor.nativeElement,e)||e&&d.contains(t,e)||this.hide())},h.prototype.verifyProperties=function(){if(n.isDevMode()){if(!d.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!d.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],h.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],h.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"closeTitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],h.prototype,"tooltipTemplate",null),i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(s.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,r.PopupService,s.TooltipSettings,s.TooltipSettings])],h));function h(e,t,o,i,n,r){var s=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],c.validatePackage(u.packageMetadata),Object.assign(this,n,r),this.ngZone.runOutsideAngular(function(){var e=s.tooltipWrapper.nativeElement;s.anchorTitleSubscription=a.fromEvent(e,"mouseover").pipe(p.filter(function(){return""!==s.filter})).subscribe(function(e){e=d.closestBySelector(e.target,s.filter);e&&s.hideElementTitle({nativeElement:e})}),s.mouseOverSubscription=a.fromEvent(e,"mouseover").pipe(p.debounceTime(100),p.filter(function(){return""!==s.filter})).subscribe(function(e){return s.onMouseOver(e)}),s.mouseOutSubscription=a.fromEvent(e,"mouseout").pipe(p.debounceTime(100)).subscribe(function(e){return s.onMouseOut(e)})})}t.TooltipDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(14),o=o(12),o=i.__decorate([n.NgModule({exports:[r.TooltipModule,o.PopoverModule]})],s);function s(){}t.TooltipsModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),s=o(1),o=o(11),o=(i=o.ComponentMessages,r.__extends(p,i),n=p,r.__decorate([s.Input(),r.__metadata("design:type",String)],p.prototype,"closeTitle",void 0),n=r.__decorate([s.Directive({providers:[{provide:o.ComponentMessages,useExisting:s.forwardRef(function(){return n})}],selector:"[kendoTooltipLocalizedMessages]"}),r.__metadata("design:paramtypes",[o.LocalizationService])],p));function p(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(25);t.TooltipDirective=i.TooltipDirective;i=o(22);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.TOOLTIP_SETTINGS;i=o(10);t.PopoverComponent=i.PopoverComponent;i=o(19);t.PopoverContainerDirective=i.PopoverContainerDirective;i=o(15);t.PopoverAnchorDirective=i.PopoverAnchorDirective;i=o(9);t.PopoverTitleTemplateDirective=i.PopoverTitleTemplateDirective;i=o(8);t.PopoverBodyTemplateDirective=i.PopoverBodyTemplateDirective;i=o(7);t.PopoverActionsTemplateDirective=i.PopoverActionsTemplateDirective;i=o(17);t.PopoverShowEvent=i.PopoverShowEvent,t.PopoverShownEvent=i.PopoverShownEvent,t.PopoverHideEvent=i.PopoverHideEvent,t.PopoverHiddenEvent=i.PopoverHiddenEvent;i=o(14);t.TooltipModule=i.TooltipModule;i=o(12);t.PopoverModule=i.PopoverModule;o=o(26);t.TooltipsModule=o.TooltipsModule,function(e){for(var t in e)r(t,e[t])}(t)}],i.c=n,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=28)}}}); | ||
System.register("@progress/kendo-angular-tooltip",["tslib","@angular/core","@angular/common","@progress/kendo-angular-popup","@progress/kendo-angular-common","rxjs/operators","rxjs","@progress/kendo-licensing","@progress/kendo-angular-l10n"],function(r){var s,p,a,c,u,l,d,h,v;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){s=t(e)},function(e){p=t(e)},function(e){a=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){h=t(e)},function(e){v=t(e)}],execute:function(){function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var o,n;n={},i.m=o=[function(e,t){e.exports=s},function(e,t){e.exports=p},function(e,t){e.exports=c},function(e,t){e.exports=l},function(e,t){e.exports=u},function(e,t,o){"use strict";function n(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var o={},i={},n={};switch(e){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},t.collision=function(e,t){return e||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},t.closestBySelector=function(e,t){if(e.closest)return e.closest(t);for(var o=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&!n(i);){if(o(i,t))return i;i=i.parentNode}},t.contains=function(e,t){return!!e&&!n(e)&&(e.contains?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},t.hasParent=function(e,t){for(;e&&e!==t;)e=e.parentNode;return e},t.getCenterOffset=function(e,t,o){e=e.getBoundingClientRect();return e[t]+e[o]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t){e.exports=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverActionsTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverActionsTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverBodyTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverBodyTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverTitleTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverTitleTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),s=o(6),p=o(24),a=o(23),c=o(20),u=o(9),l=o(8),o=o(7),r=(Object.defineProperty(d.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(n.isDevMode&&"function"!=typeof e)throw new Error(c.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},d.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},d.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],d.prototype,"offset",null),i.__decorate([n.HostBinding("style.width"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"width",null),i.__decorate([n.HostBinding("style.height"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"height",null),i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],d.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"title",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"subtitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"body",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],d.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],d.prototype,"animation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],d.prototype,"templateData",null),i.__decorate([n.HostBinding("class.k-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"isHidden",null),i.__decorate([n.HostBinding("attr.aria-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"hasAttributeHidden",null),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"show",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"shown",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hide",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hidden",void 0),i.__decorate([n.ContentChild(u.PopoverTitleTemplateDirective,{static:!1}),i.__metadata("design:type",u.PopoverTitleTemplateDirective)],d.prototype,"titleTemplate",void 0),i.__decorate([n.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),i.__metadata("design:type",l.PopoverBodyTemplateDirective)],d.prototype,"bodyTemplate",void 0),i.__decorate([n.ContentChild(o.PopoverActionsTemplateDirective,{static:!1}),i.__metadata("design:type",o.PopoverActionsTemplateDirective)],d.prototype,"actionsTemplate",void 0),i.__decorate([n.Component({selector:"kendo-popover",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService])],d));function d(e){this.localization=e,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new n.EventEmitter,this.shown=new n.EventEmitter,this.hide=new n.EventEmitter,this.hidden=new n.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new s.Subscription,this._templateData=function(){return null},p.validatePackage(a.packageMetadata)}t.PopoverComponent=r},function(e,t){e.exports=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(13),r=o(1),s=o(2),p=o(15),a=o(19),c=o(10),u=o(9),l=o(8),a=[o(7).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,u.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],s=i.__decorate([r.NgModule({declarations:a.concat([c.PopoverComponent]),entryComponents:[c.PopoverComponent],exports:a.concat([c.PopoverComponent]),imports:[n.CommonModule,s.PopupModule]})],d);function d(){}t.PopoverModule=s},function(e,t){e.exports=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(13),s=o(25),p=o(2),a=o(21),o=o(27),o=[s.TooltipDirective,a.TooltipContentComponent,o.LocalizedMessagesDirective],p=[p.PopupModule],o=i.__decorate([n.NgModule({declarations:[o],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(p),exports:[o]})],c);function c(){}t.TooltipModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(4),r=o(2),a=o(3),c=o(18),o=o(16),o=(s=c.PopoverDirectivesBase,i.__extends(u,s),u.prototype.show=function(){this.popupRef||this.openPopup(this.hostEl.nativeElement)},u.prototype.toggle=function(){this.popupRef?this.hide():this.show()},u.prototype.subscribeToEvents=function(t){var o=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[0].name,function(){o.popoverService.emitAnchorState(!0,o.hostEl.nativeElement),t[0].handler()})),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[1].name,function(e){o.popoverService.emitAnchorState(!1,null),t[1].handler({domEvent:e})}))},u.prototype.subscribeClick=function(){var t=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){t.onClick(e)})},u.prototype.onClick=function(e){var t=this,o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),e=!!p.closest(e.target,function(e){return e===t.hostEl.nativeElement});o||this.popupRef&&e||(e?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},u.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},i.__decorate([n.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],u));function u(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.hostEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.mouseleaveHandler=function(){r.isPrevented(r.hostEl.nativeElement,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],e=e[1];t||e||r.hide()}))},r.focusHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.blurHandler=function(e){e=e.domEvent;r.isPrevented(r.hostEl.nativeElement,!1)||(p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||r.hide()})))},r._popoverService=r.popoverService,r}t.PopoverAnchorDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(6),s=o(3),n=(p.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(p.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitPopoverState=function(t){var o=this;this.ngZone.run(function(e){return o._pointerOverPopup.next(t)})},Object.defineProperty(p.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitAnchorState=function(t,e){var o=this;this._isOrigin=this.originAnchor===e,this.currentAnchor=e,t&&(this.originAnchor=e),this.ngZone.run(function(e){return o._pointerOverAnchor.next(t)})},Object.defineProperty(p.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitFocusInsidePopover=function(t){var o=this;this.ngZone.run(function(e){return o._focusInsidePopover.next(t)}),this._focusInsidePopover.next(null)},Object.defineProperty(p.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.monitor=function(){var o=this;this.subs.add(r.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe(function(e){var t=e[0],e=e[1];o._hidePopover.next([t,e,o._isOrigin,o.currentAnchor])}))},i.__decorate([n.Injectable(),i.__metadata("design:paramtypes",[n.NgZone])],p));function p(e){this.ngZone=e,this._pointerOverPopup=new r.BehaviorSubject(null),this._pointerOverAnchor=new r.BehaviorSubject(null),this._focusInsidePopover=new r.BehaviorSubject(null),this._hidePopover=new r.Subject,this.subs=new r.Subscription,this.monitor()}t.PopoverService=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(4),o=(i=r.PreventableEvent,n.__extends(s,i),s);function s(e){var t=i.call(this)||this;return t.anchor=e,t}t.PopoverShowEvent=o;var p,n=(p=r.PreventableEvent,n.__extends(a,p),a);function a(e,t){var o=p.call(this)||this;return o.anchor=e,o.popover=t,o}t.PopoverHideEvent=n,t.PopoverShownEvent=function(e,t){this.anchor=e,this.popover=t},t.PopoverHiddenEvent=function(e){this.anchor=e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),c=o(1),u=o(3),n=o(4),r=o(20),s=o(17),l=o(5),d=o(10),p=o(6),a=["hover","click","none","focus"],i=(Object.defineProperty(h.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof d.PopoverComponent||"function"==typeof e)this._popover=e;else if(c.isDevMode)throw new Error(r.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(c.isDevMode&&!l.containsItem(a,e))throw new Error(r.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),h.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular(function(){switch(e.showOn){case"hover":e.subscribeToEvents([{name:"mouseenter",handler:e.mouseenterHandler},{name:"mouseleave",handler:e.mouseleaveHandler}]);break;case"focus":e.subscribeToEvents([{name:"focus",handler:e.focusHandler},{name:"blur",handler:e.blurHandler}]);break;case"click":e.subscribeClick()}})},h.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},h.prototype.hide=function(){this.closePopup()},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},h.prototype.openPopup=function(t){var o=this,i=t instanceof c.ElementRef?t.nativeElement:t,n=this.popover instanceof d.PopoverComponent?this.popover:this.popover(i),e=l.align(n.position,n.offset),r=e.anchorAlign,s=e.popupAlign,p=e.popupMargin,a=n.animation;this.ngZone.run(function(){o.popupRef=o.popupService.open({anchor:{nativeElement:i},animate:a,content:d.PopoverComponent,popupAlign:s,anchorAlign:r,margin:p,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}});var e=o.popupRef.content.instance;Object.assign(e,n),e.anchor=t,e.contextData=e.templateData(t),e.visible=!0,o.popupRef.content.changeDetectorRef.detectChanges(),o.monitorPopup(),o.initializeFinishingEvents(n,i)}),this.popupRef.popupAnchorViewportLeave.pipe(u.take(1)).subscribe(function(){return o.hide()})},h.prototype.isPrevented=function(e,t){var o=this.popover instanceof d.PopoverComponent?this.popover:this.popover(e);return this.initializeEvents(o,void 0,t,e).isDefaultPrevented()},h.prototype.monitorPopup=function(){var t=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupHoverInListener=t.renderer.listen(e,"mouseenter",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!0)})}),t.disposePopupHoverOutListener=t.renderer.listen(e,"mouseleave",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!1)})})}),"focus"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupFocusOutListener=t.renderer.listen(e,"focusout",function(e){n.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||t.ngZone.run(function(e){return t._popoverService.emitFocusInsidePopover(!1)})})})},h.prototype.initializeEvents=function(t,o,e,i){var n=this;return e?this.ngZone.run(function(e){o=new s.PopoverShowEvent(i),n.popupRef||t.show.emit(o)}):this.ngZone.run(function(e){o=new s.PopoverHideEvent(i,n.popupRef),n.popupRef&&t.hide.emit(o)}),o},h.prototype.initializeFinishingEvents=function(o,i){var t=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe(function(){var e=new s.PopoverShownEvent(i,t.popupRef);o.shown.emit(e)}),this._popupCloseSub||this.popupRef.popupClose.subscribe(function(){t.ngZone.run(function(e){var t=new s.PopoverHiddenEvent(i);o.hidden.emit(t)})})},i.__decorate([c.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],h.prototype,"popover",null),i.__decorate([c.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],h.prototype,"showOn",null),h);function h(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new p.Subscription,this._showOn="click"}t.PopoverDirectivesBase=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(4),r=o(2),a=o(3),c=o(5),u=o(18),o=o(16),o=(s=u.PopoverDirectivesBase,i.__extends(l,s),l.prototype.show=function(e){this.popupRef||this.openPopup(e)},l.prototype.toggle=function(e){var t=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),t!==e&&this.show(e)):this.show(e)},l.prototype.subscribeClick=function(){var o=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){var t=c.closestBySelector(e.target,o.filter);o.clickHandler(t,e)})},l.prototype.subscribeToEvents=function(o){var i=this;Array.from(document.querySelectorAll(this.filter)).forEach(function(t){i.subs.add(i.renderer.listen(t,o[0].name,function(){i.popoverService.emitAnchorState(!0,t),o[0].handler(t)})),i.subs.add(i.renderer.listen(t,o[1].name,function(e){i.popoverService.emitAnchorState(!1,null),o[1].handler({anchor:t,domEvent:e})}))})},l.prototype.clickHandler=function(t,e){var o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),i=this.popupRef&&this.popupRef.content.instance.anchor,e=!!p.closest(e.target,function(e){return e===(i||t)});"click"!==this.showOn||o||this.popupRef&&e||(t||!this.popupRef?e?this.controlVisibility(t,!0):this.popupRef&&(this.controlVisibility(t,!1),this.controlVisibility(t,!0)):this.controlVisibility(t,!1))},l.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},i.__decorate([n.Input(),i.__metadata("design:type",String)],l.prototype,"filter",void 0),i.__decorate([n.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],l));function l(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.wrapperEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(e){r.controlVisibility(e,!0)},r.mouseleaveHandler=function(e){e=e.anchor;r.isPrevented(e,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],o=e[2],e=e[3];t||o||(r.hide(),!o&&e&&r.show(e))}))},r.focusHandler=function(e){r.controlVisibility(e,!0)},r.blurHandler=function(e){var t,o=e.anchor,e=e.domEvent;r.isPrevented(o,!1)||((t=!!p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")}))||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||t||r.hide()})))},r._popoverService=r.popoverService,r}t.PopoverContainerDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),c=o(5),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.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"})},s.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(s.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},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(e){e.preventDefault(),this.close.emit()},s.prototype.updateCalloutPosition=function(e,t){var o,i,n,r,s,p,a;this.callout&&(p=(r="top"===e||"bottom"===e)?"width":"height",s=r?"left":"top",i=r?"marginLeft":"marginTop",n=(o=this.content.nativeElement.querySelector(".k-callout")).getBoundingClientRect()[p],r=c.getCenterOffset(this.anchor.nativeElement,s,p),s=c.getCenterOffset(this.content.nativeElement,s,p),(1<(p=Math.abs(s-r))||0===p||0===Math.round(p))&&(o.style[i]=-(s-r+n/2)+"px"),a=this.calloutStyles(e,n,t),Object.keys(a).forEach(function(e){o.style[e]=a[e]}))},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],s.prototype,"direction",void 0),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({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\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\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\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],s));function s(e,t){this.content=e,this.localizationService=t,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var i={},n="top"===e||"bottom"===e;return o?("top"===e?i.bottom="unset":"bottom"===e?i.top="unset":"left"===e?i.right="unset":"right"===e&&(i.left="unset"),i[e]=-t+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)"):i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i},this.direction=t.rtl?"rtl":"ltr"}t.TooltipContentComponent=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1);t.TOOLTIP_SETTINGS=new o.InjectionToken("kendo-ui-tooltip-settings");o=i.__decorate([o.Injectable()],n);function n(){}t.TooltipSettings=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642618255,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),p=o(3),a=o(6),r=o(2),c=o(24),u=o(23),s=o(22),l=o(21),d=o(5),s=(Object.defineProperty(h.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),h.prototype.show=function(e){var t=this;this.popupRef||(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn?this.popupRef||(clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return t.showContent(t.anchor)},this.showAfter)):(this.hideElementTitle(this.anchor),this.showContent(this.anchor)))},h.prototype.hide=function(){clearTimeout(this.showTimeout);var e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},h.prototype.toggle=function(e,t){var o=this.anchor&&this.anchor.nativeElement;o!==(e=e instanceof Element?{nativeElement:e}:e).nativeElement&&this.hide(),o===e.nativeElement&&"click"===this.showOn&&this.hide(),(t=void 0===t?!this.popupRef:t)?this.show(e):this.hide()},h.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},h.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},h.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!d.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},h.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},h.prototype.showContent=function(e){var t=this;(e.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){t.openPopup(e),t.bindContent(t.popupRef.content,e)}),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe(function(){return t.hide()}))},h.prototype.bindContent=function(e,t){var o=this,e=e.instance;this.closeClickSubscription=e.close.subscribe(function(){o.hide()}),this.template?e.templateRef=this.template:e.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(e.titleTemplate=this.titleTemplate),e.closeTitle=this.closeTitle,e.anchor=t,e.callout=this.callout,e.closable=this.closable,e.position=this.position,e.tooltipWidth=this.tooltipWidth,e.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},h.prototype.hideElementTitle=function(e){e=e.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},h.prototype.openPopup=function(e){var t=this,o=d.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,o=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:d.collision(this.collision,this.position),margin:o,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 r=this.popupRef.content.instance;r.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(e){e=e.flip,e=!0===e.horizontal||!0===e.vertical;r.updateCalloutPosition(t.position,e)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.popupMouseOutSubscription=a.fromEvent(e,"mouseout").subscribe(function(e){return t.onMouseOut(e)})})},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},h.prototype.subscribeClick=function(){var t=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=a.fromEvent(document,"click").pipe(p.filter(function(){return""!==t.filter})).subscribe(function(e){return t.onMouseClick(e,t.tooltipWrapper.nativeElement)}))},h.prototype.onMouseClick=function(e,t){var o=e.target,i=d.closestBySelector(o,this.filter),e=this.popupRef&&this.popupRef.popupElement;if(e){if(e.contains(o))return;if(this.closable)return}t.contains(o)&&i?this.toggle(i,!0):e&&this.hide()},h.prototype.onMouseOver=function(e){e=d.closestBySelector(e.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},h.prototype.onMouseOut=function(e){var t;"hover"!==this.showOn||this.closable||(t=this.popupRef&&this.popupRef.popupElement,(e=e.relatedTarget)&&this.anchor&&d.contains(this.anchor.nativeElement,e)||e&&d.contains(t,e)||this.hide())},h.prototype.verifyProperties=function(){if(n.isDevMode()){if(!d.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!d.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],h.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],h.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"closeTitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],h.prototype,"tooltipTemplate",null),i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(s.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,r.PopupService,s.TooltipSettings,s.TooltipSettings])],h));function h(e,t,o,i,n,r){var s=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],c.validatePackage(u.packageMetadata),Object.assign(this,n,r),this.ngZone.runOutsideAngular(function(){var e=s.tooltipWrapper.nativeElement;s.anchorTitleSubscription=a.fromEvent(e,"mouseover").pipe(p.filter(function(){return""!==s.filter})).subscribe(function(e){e=d.closestBySelector(e.target,s.filter);e&&s.hideElementTitle({nativeElement:e})}),s.mouseOverSubscription=a.fromEvent(e,"mouseover").pipe(p.debounceTime(100),p.filter(function(){return""!==s.filter})).subscribe(function(e){return s.onMouseOver(e)}),s.mouseOutSubscription=a.fromEvent(e,"mouseout").pipe(p.debounceTime(100)).subscribe(function(e){return s.onMouseOut(e)})})}t.TooltipDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(14),o=o(12),o=i.__decorate([n.NgModule({exports:[r.TooltipModule,o.PopoverModule]})],s);function s(){}t.TooltipsModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),s=o(1),o=o(11),o=(i=o.ComponentMessages,r.__extends(p,i),n=p,r.__decorate([s.Input(),r.__metadata("design:type",String)],p.prototype,"closeTitle",void 0),n=r.__decorate([s.Directive({providers:[{provide:o.ComponentMessages,useExisting:s.forwardRef(function(){return n})}],selector:"[kendoTooltipLocalizedMessages]"}),r.__metadata("design:paramtypes",[o.LocalizationService])],p));function p(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(25);t.TooltipDirective=i.TooltipDirective;i=o(22);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.TOOLTIP_SETTINGS;i=o(10);t.PopoverComponent=i.PopoverComponent;i=o(19);t.PopoverContainerDirective=i.PopoverContainerDirective;i=o(15);t.PopoverAnchorDirective=i.PopoverAnchorDirective;i=o(9);t.PopoverTitleTemplateDirective=i.PopoverTitleTemplateDirective;i=o(8);t.PopoverBodyTemplateDirective=i.PopoverBodyTemplateDirective;i=o(7);t.PopoverActionsTemplateDirective=i.PopoverActionsTemplateDirective;i=o(17);t.PopoverShowEvent=i.PopoverShowEvent,t.PopoverShownEvent=i.PopoverShownEvent,t.PopoverHideEvent=i.PopoverHideEvent,t.PopoverHiddenEvent=i.PopoverHiddenEvent;i=o(14);t.TooltipModule=i.TooltipModule;i=o(12);t.PopoverModule=i.PopoverModule;o=o(26);t.TooltipsModule=o.TooltipsModule,function(e){for(var t in e)r(t,e[t])}(t)}],i.c=n,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=28)}}}); |
@@ -6,3 +6,3 @@ { | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
"version": "3.1.0", | ||
"version": "3.1.1-dev.202201191851", | ||
"main": "dist/npm/index.js", | ||
@@ -9,0 +9,0 @@ "module": "dist/fesm5/index.js", |
@@ -5,4 +5,3 @@ "use strict"; | ||
function default_1(options) { | ||
const finalOptions = Object.assign({}, options, { mainNgModule: 'TooltipModule', package: 'tooltip' //package name, e.g grid | ||
}); | ||
const finalOptions = Object.assign({}, options, { mainNgModule: 'TooltipsModule', package: 'tooltip' }); | ||
return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions); | ||
@@ -9,0 +8,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
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
783198
12826
3