@progress/kendo-angular-tooltip
Advanced tools
Comparing version 3.1.6 to 3.1.7-dev.202203090915
@@ -12,5 +12,5 @@ /**----------------------------------------------------------------------------------------- | ||
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'], | ||
publishDate: 1646219971, | ||
publishDate: 1646817261, | ||
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: 1646219971, | ||
publishDate: 1646817261, | ||
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: 1646219971, | ||
publishDate: 1646817261, | ||
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",["tslib","@angular/core","@progress/kendo-angular-popup","@angular/common","@progress/kendo-angular-common","rxjs/operators","rxjs","@progress/kendo-licensing","@progress/kendo-angular-l10n"],function(s){var r,p,a,c,u,l,d,h,v;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=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;o=[function(e,t){e.exports=r},function(e,t){e.exports=p},function(e,t){e.exports=a},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){e.exports=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=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=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=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=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=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=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),s=o(5),p=o(24),a=o(23),c=o(20),u=o(9),l=o(8),o=o(7),u=(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=u},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),o=[o(7).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,u.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],l=i.__decorate([r.NgModule({declarations:o.concat([c.PopoverComponent]),entryComponents:[c.PopoverComponent],exports:o.concat([c.PopoverComponent]),imports:[n.CommonModule,s.PopupModule]})],d);function d(){}t.PopoverModule=l},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),s=[s.TooltipDirective,a.TooltipContentComponent,o.LocalizedMessagesDirective],o=[p.PopupModule],p=i.__decorate([n.NgModule({declarations:[s],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(o),exports:[s]})],c);function c(){}t.TooltipModule=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(3),r=o(2),a=o(6),c=o(18),o=o(16),c=(s=c.PopoverDirectivesBase,i.__extends(u,s),u.prototype.show=function(){var e=this;this.popupRef||(this.ngZone.run(function(){e.openPopup(e.hostEl)}),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe(function(){return e.hide()}))},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=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(5),s=o(6),o=(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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),o=o(3),r=(i=o.PreventableEvent,n.__extends(s,i),s);function s(e){var t=i.call(this)||this;return t.anchor=e,t}t.PopoverShowEvent=r;p=o.PreventableEvent,n.__extends(a,p);var p,r=a;function a(e,t){var o=p.call(this)||this;return o.anchor=e,o.popover=t,o}t.PopoverHideEvent=r;function c(e){this.anchor=e}t.PopoverShownEvent=function(e,t){this.anchor=e,this.popover=t};t.PopoverHiddenEvent=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),p=o(1),n=o(3),r=o(20),s=o(17),a=o(4),c=o(10),u=o(5),l=["hover","click","none","focus"];function d(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new u.Subscription,this._showOn="click"}Object.defineProperty(d.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof c.PopoverComponent||"function"==typeof e)this._popover=e;else if(p.isDevMode)throw new Error(r.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(p.isDevMode&&!a.containsItem(l,e))throw new Error(r.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),d.prototype.ngAfterViewInit=function(){var e=this;n.isDocumentAvailable()&&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()}})},d.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()},d.prototype.hide=function(){this.closePopup()},d.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},d.prototype.openPopup=function(e){var t=e instanceof p.ElementRef?e.nativeElement:e,o=this.popover instanceof c.PopoverComponent?this.popover:this.popover(t),i=a.align(o.position,o.offset),n=i.anchorAlign,r=i.popupAlign,i=i.popupMargin,s=o.animation;this.popupRef=this.popupService.open({anchor:{nativeElement:t},animate:s,content:c.PopoverComponent,popupAlign:r,anchorAlign:n,margin:i,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}}),this.applySettings(this.popupRef.content,o,e),this.monitorPopup(),this.initializeCompletionEvents(o,t)},d.prototype.isPrevented=function(e,t){var o=this.popover instanceof c.PopoverComponent?this.popover:this.popover(e);return this.initializeEvents(o,void 0,t,e).isDefaultPrevented()},d.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)})})})},d.prototype.applySettings=function(e,t,o){e=e.instance,o=o instanceof p.ElementRef?o.nativeElement:o;e.visible=!0,e.anchor=o,e.position=t.position,e.offset=t.offset,e.width=t.width,e.height=t.height,e.title=t.title,e.body=t.body,e.callout=t.callout,e.animation=t.animation,e.contextData=t.templateData(o),e.titleTemplate=t.titleTemplate,e.bodyTemplate=t.bodyTemplate,e.actionsTemplate=t.actionsTemplate,this.popupRef.content.changeDetectorRef.detectChanges()},d.prototype.initializeEvents=function(e,t,o,i){return o?(t=new s.PopoverShowEvent(i),this.shouldEmitEvent(!!this.popupRef,"show",e)&&this.ngZone.run(function(){return e.show.emit(t)})):(t=new s.PopoverHideEvent(i,this.popupRef),this.shouldEmitEvent(!!this.popupRef,"hide",e)&&this.ngZone.run(function(){return e.hide.emit(t)})),t},d.prototype.initializeCompletionEvents=function(o,i){var t=this;this.shouldEmitCompletionEvents("shown",o)&&this.popupRef.popupOpen.subscribe(function(){var e=new s.PopoverShownEvent(i,t.popupRef);o.shown.emit(e)}),this.shouldEmitCompletionEvents("hidden",o)&&this.popupRef.popupClose.subscribe(function(){t.ngZone.run(function(e){var t=new s.PopoverHiddenEvent(i);o.hidden.emit(t)})})},d.prototype.shouldEmitEvent=function(e,t,o){return!!("show"===t&&!e&&n.hasObservers(o[t])||"hide"===t&&e&&n.hasObservers(o[t]))},d.prototype.shouldEmitCompletionEvents=function(e,t){return!!(n.hasObservers(t[e])&&!this._popupOpenSub||n.hasObservers(t[e])&&!this._popupCloseSub)},i.__decorate([p.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"popover",null),i.__decorate([p.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],d.prototype,"showOn",null),t.PopoverDirectivesBase=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(3),r=o(2),a=o(6),c=o(4),u=o(18),o=o(16),u=(s=u.PopoverDirectivesBase,i.__extends(l,s),l.prototype.show=function(e){var t=this;this.popupRef||(this.ngZone.run(function(){t.openPopup(e)}),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe(function(){return t.hide()}))},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=u},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(4),o=(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=(i="top"===e||"bottom"===e)?"width":"height",s=i?"left":"top",i=i?"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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=(t.TOOLTIP_SETTINGS=new o.InjectionToken("kendo-ui-tooltip-settings"),i.__decorate([o.Injectable()],n));function n(){}t.TooltipSettings=i},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:1646219971,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(6),a=o(5),r=o(2),c=o(24),u=o(23),s=o(22),l=o(21),d=o(4),o=(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,r=(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),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 e=e.target,o=d.closestBySelector(e,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(e))return;if(this.closable)return}t.contains(e)&&o?this.toggle(o,!0):i&&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=o},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),i=i.__decorate([n.NgModule({exports:[r.TooltipModule,o.PopoverModule]})],s);function s(){}t.TooltipsModule=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),s=o(1),o=o(11),s=(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=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(25),n=(t.TooltipDirective=n.TooltipDirective,o(22)),n=(t.TooltipSettings=n.TooltipSettings,t.TOOLTIP_SETTINGS=n.TOOLTIP_SETTINGS,o(10)),n=(t.PopoverComponent=n.PopoverComponent,o(19)),n=(t.PopoverContainerDirective=n.PopoverContainerDirective,o(15)),n=(t.PopoverAnchorDirective=n.PopoverAnchorDirective,o(9)),n=(t.PopoverTitleTemplateDirective=n.PopoverTitleTemplateDirective,o(8)),n=(t.PopoverBodyTemplateDirective=n.PopoverBodyTemplateDirective,o(7)),n=(t.PopoverActionsTemplateDirective=n.PopoverActionsTemplateDirective,o(17)),n=(t.PopoverShowEvent=n.PopoverShowEvent,t.PopoverShownEvent=n.PopoverShownEvent,t.PopoverHideEvent=n.PopoverHideEvent,t.PopoverHiddenEvent=n.PopoverHiddenEvent,o(14)),n=(t.TooltipModule=n.TooltipModule,o(12)),n=(t.PopoverModule=n.PopoverModule,o(26)),r=(t.TooltipsModule=n.TooltipsModule,t);for(i in r)s(i,r[i])}],n={},i.m=o,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","@progress/kendo-angular-popup","@angular/common","@angular/core","rxjs","@progress/kendo-angular-l10n","@progress/kendo-licensing","rxjs/operators","@progress/kendo-angular-common"],function(s){var r,p,a,c,u,l,d,h,v;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=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;o=[function(e,t){e.exports=r},function(e,t){e.exports=c},function(e,t){e.exports=p},function(e,t){e.exports=v},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=u},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),i=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=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=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=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=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=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),s=o(5),p=o(24),a=o(23),c=o(20),u=o(9),l=o(8),o=o(7),u=(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=u},function(e,t){e.exports=l},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),o=[o(7).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,u.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],l=i.__decorate([r.NgModule({declarations:o.concat([c.PopoverComponent]),entryComponents:[c.PopoverComponent],exports:o.concat([c.PopoverComponent]),imports:[n.CommonModule,s.PopupModule]})],d);function d(){}t.PopoverModule=l},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),s=[s.TooltipDirective,a.TooltipContentComponent,o.LocalizedMessagesDirective],o=[p.PopupModule],p=i.__decorate([n.NgModule({declarations:[s],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(o),exports:[s]})],c);function c(){}t.TooltipModule=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(3),r=o(2),a=o(6),c=o(18),o=o(16),c=(s=c.PopoverDirectivesBase,i.__extends(u,s),u.prototype.show=function(){var e=this;this.popupRef||(this.ngZone.run(function(){e.openPopup(e.hostEl)}),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe(function(){return e.hide()}))},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=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(5),s=o(6),o=(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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),o=o(3),r=(i=o.PreventableEvent,n.__extends(s,i),s);function s(e){var t=i.call(this)||this;return t.anchor=e,t}t.PopoverShowEvent=r;p=o.PreventableEvent,n.__extends(a,p);var p,r=a;function a(e,t){var o=p.call(this)||this;return o.anchor=e,o.popover=t,o}t.PopoverHideEvent=r;function c(e){this.anchor=e}t.PopoverShownEvent=function(e,t){this.anchor=e,this.popover=t};t.PopoverHiddenEvent=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),p=o(1),n=o(3),r=o(20),s=o(17),a=o(4),c=o(10),u=o(5),l=["hover","click","none","focus"];function d(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new u.Subscription,this._showOn="click"}Object.defineProperty(d.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof c.PopoverComponent||"function"==typeof e)this._popover=e;else if(p.isDevMode)throw new Error(r.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(p.isDevMode&&!a.containsItem(l,e))throw new Error(r.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),d.prototype.ngAfterViewInit=function(){var e=this;n.isDocumentAvailable()&&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()}})},d.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()},d.prototype.hide=function(){this.closePopup()},d.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},d.prototype.openPopup=function(e){var t=e instanceof p.ElementRef?e.nativeElement:e,o=this.popover instanceof c.PopoverComponent?this.popover:this.popover(t),i=a.align(o.position,o.offset),n=i.anchorAlign,r=i.popupAlign,i=i.popupMargin,s=o.animation;this.popupRef=this.popupService.open({anchor:{nativeElement:t},animate:s,content:c.PopoverComponent,popupAlign:r,anchorAlign:n,margin:i,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}}),this.applySettings(this.popupRef.content,o,e),this.monitorPopup(),this.initializeCompletionEvents(o,t)},d.prototype.isPrevented=function(e,t){var o=this.popover instanceof c.PopoverComponent?this.popover:this.popover(e);return this.initializeEvents(o,void 0,t,e).isDefaultPrevented()},d.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)})})})},d.prototype.applySettings=function(e,t,o){e=e.instance,o=o instanceof p.ElementRef?o.nativeElement:o;e.visible=!0,e.anchor=o,e.position=t.position,e.offset=t.offset,e.width=t.width,e.height=t.height,e.title=t.title,e.body=t.body,e.callout=t.callout,e.animation=t.animation,e.contextData=t.templateData(o),e.titleTemplate=t.titleTemplate,e.bodyTemplate=t.bodyTemplate,e.actionsTemplate=t.actionsTemplate,this.popupRef.content.changeDetectorRef.detectChanges()},d.prototype.initializeEvents=function(e,t,o,i){return o?(t=new s.PopoverShowEvent(i),this.shouldEmitEvent(!!this.popupRef,"show",e)&&this.ngZone.run(function(){return e.show.emit(t)})):(t=new s.PopoverHideEvent(i,this.popupRef),this.shouldEmitEvent(!!this.popupRef,"hide",e)&&this.ngZone.run(function(){return e.hide.emit(t)})),t},d.prototype.initializeCompletionEvents=function(o,i){var t=this;this.shouldEmitCompletionEvents("shown",o)&&this.popupRef.popupOpen.subscribe(function(){var e=new s.PopoverShownEvent(i,t.popupRef);o.shown.emit(e)}),this.shouldEmitCompletionEvents("hidden",o)&&this.popupRef.popupClose.subscribe(function(){t.ngZone.run(function(e){var t=new s.PopoverHiddenEvent(i);o.hidden.emit(t)})})},d.prototype.shouldEmitEvent=function(e,t,o){return!!("show"===t&&!e&&n.hasObservers(o[t])||"hide"===t&&e&&n.hasObservers(o[t]))},d.prototype.shouldEmitCompletionEvents=function(e,t){return!!(n.hasObservers(t[e])&&!this._popupOpenSub||n.hasObservers(t[e])&&!this._popupCloseSub)},i.__decorate([p.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"popover",null),i.__decorate([p.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],d.prototype,"showOn",null),t.PopoverDirectivesBase=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(3),r=o(2),a=o(6),c=o(4),u=o(18),o=o(16),u=(s=u.PopoverDirectivesBase,i.__extends(l,s),l.prototype.show=function(e){var t=this;this.popupRef||(this.ngZone.run(function(){t.openPopup(e)}),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe(function(){return t.hide()}))},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=u},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(4),o=(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=(i="top"===e||"bottom"===e)?"width":"height",s=i?"left":"top",i=i?"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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=(t.TOOLTIP_SETTINGS=new o.InjectionToken("kendo-ui-tooltip-settings"),i.__decorate([o.Injectable()],n));function n(){}t.TooltipSettings=i},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:1646817261,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(6),a=o(5),r=o(2),c=o(24),u=o(23),s=o(22),l=o(21),d=o(4),o=(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,r=(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),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 e=e.target,o=d.closestBySelector(e,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(e))return;if(this.closable)return}t.contains(e)&&o?this.toggle(o,!0):i&&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=o},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),i=i.__decorate([n.NgModule({exports:[r.TooltipModule,o.PopoverModule]})],s);function s(){}t.TooltipsModule=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),s=o(1),o=o(11),s=(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=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(25),n=(t.TooltipDirective=n.TooltipDirective,o(22)),n=(t.TooltipSettings=n.TooltipSettings,t.TOOLTIP_SETTINGS=n.TOOLTIP_SETTINGS,o(10)),n=(t.PopoverComponent=n.PopoverComponent,o(19)),n=(t.PopoverContainerDirective=n.PopoverContainerDirective,o(15)),n=(t.PopoverAnchorDirective=n.PopoverAnchorDirective,o(9)),n=(t.PopoverTitleTemplateDirective=n.PopoverTitleTemplateDirective,o(8)),n=(t.PopoverBodyTemplateDirective=n.PopoverBodyTemplateDirective,o(7)),n=(t.PopoverActionsTemplateDirective=n.PopoverActionsTemplateDirective,o(17)),n=(t.PopoverShowEvent=n.PopoverShowEvent,t.PopoverShownEvent=n.PopoverShownEvent,t.PopoverHideEvent=n.PopoverHideEvent,t.PopoverHiddenEvent=n.PopoverHiddenEvent,o(14)),n=(t.TooltipModule=n.TooltipModule,o(12)),n=(t.PopoverModule=n.PopoverModule,o(26)),r=(t.TooltipsModule=n.TooltipsModule,t);for(i in r)s(i,r[i])}],n={},i.m=o,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.6", | ||
"version": "3.1.7-dev.202203090915", | ||
"main": "dist/npm/index.js", | ||
@@ -77,3 +77,3 @@ "module": "dist/fesm5/index.js", | ||
"@progress/kendo-angular-popup": "^4.0.2", | ||
"@progress/kendo-angular-tasks": "^19.3.1", | ||
"@progress/kendo-angular-tasks": "^19.3.3", | ||
"@progress/kendo-angular-treeview": "^6.0.0", | ||
@@ -80,0 +80,0 @@ "@progress/kendo-data-query": "^1.5.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 too big to display
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
12995
748252
3