@progress/kendo-angular-tooltip
Advanced tools
Comparing version 0.1.0 to 0.1.1-dev.201804301159
"use strict"; | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tooltip_directive_1 = require("./tooltip/tooltip.directive"); | ||
exports.TooltipDirective = tooltip_directive_1.TooltipDirective; | ||
var tooltip_module_1 = require("./tooltip.module"); | ||
exports.TooltipModule = tooltip_module_1.TooltipModule; | ||
var tooltip_settings_1 = require("./tooltip/tooltip.settings"); | ||
exports.TooltipSettings = tooltip_settings_1.TooltipSettings; | ||
exports.TOOLTIP_SETTINGS = tooltip_settings_1.TOOLTIP_SETTINGS; | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./public_api"), exports); | ||
var tooltip_content_component_1 = require("./tooltip/tooltip.content.component"); | ||
exports.ɵa = tooltip_content_component_1.TooltipContentComponent; |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-angular-tooltip",["tslib","@angular/core","rxjs/observable/fromEvent","rxjs/operators","rxjs/operators/take","@progress/kendo-angular-popup","@progress/kendo-angular-l10n","@angular/common"],function(p){var o,i,n,r,s,a,u,l;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){o=e(t)},function(t){i=e(t)},function(t){n=e(t)},function(t){r=e(t)},function(t){s=e(t)},function(t){a=e(t)},function(t){u=e(t)},function(t){l=e(t)}],execute:function(){!function(o){var i={};function n(t){if(i[t])return i[t].exports;var e=i[t]={exports:{},id:t,loaded:!1};return o[t].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}n.m=o,n.c=i,n.p="",n(0)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1);e.TooltipDirective=i.TooltipDirective;var n=o(12);e.TooltipModule=n.TooltipModule;var r=o(8);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS,function(t){for(var e in t)p(e,t[e])}(e)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(3),r=o(4),s=o(5),p=o(6),a=o(7),u=o(8),l=o(9),c=o(10),h=o(11),d=function(){function t(t,e,o,i,n){var r=this;this.tooltipWrapper=t,this.ngZone=e,this.popupService=o,this.localizationService=i,this.filter="[title]",this.position="top",this.showOn="hover",this.showAfter=100,this.callout=!0,this.offset=6,this.collision={horizontal:"fit",vertical:"flip"},this.anchor=null,this.direction=i.rtl?"rtl":"ltr",n&&(this.position=n.position,this.callout=n.callout,this.showOn=n.showOn),this.ngZone.runOutsideAngular(function(){var t=r.tooltipWrapper.nativeElement;r.anchorTitleSubscription=s.fromEvent(t,"mouseover").subscribe(function(t){if(""!==r.filter){var e=c.closest(t.target,r.filter);e&&r._hideElementTitle(e)}}),r.mouseOverSubscription=s.fromEvent(t,"mouseover").pipe(p.debounceTime(100)).subscribe(function(t){return r._onMouseOver(t)}),r.mouseOutSubscription=s.fromEvent(t,"mouseout").pipe(p.debounceTime(100)).subscribe(function(t){return r._onMouseOut(t)})})}return Object.defineProperty(t.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),t.prototype.show=function(t){var e=this,o={nativeElement:t};if(this.anchor=t,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return e._show(o)},this.showAfter)}else this._hideElementTitle(this.anchor),this._show(o)},t.prototype.hide=function(){clearTimeout(this.showTimeout),this.anchor&&this.anchor.getAttribute("data-title")&&(this.anchor.setAttribute("title",this.anchor.getAttribute("data-title")),this.anchor.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this._closePopup()},t.prototype.toggle=function(t,e){this.anchor!==t&&this.hide(),void 0===e&&(e=!this.popupRef),e?this.show(t):this.hide()},t.prototype.ngOnInit=function(){var o=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(t){var e=t.rtl;return o.direction=e?"rtl":"ltr"})},t.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},t.prototype._show=function(t){var e,o=this;(t.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){o._openPopup(t),e=o.popupRef.content,o._bindContent(e,t)}),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe(function(){return o.hide()}))},t.prototype._bindContent=function(t,e){var o=t.instance;this.template?o.templateRef=this.template:o.templateString=this.anchor.getAttribute("data-title"),o.anchor=e,o.callout=this.callout,o.position=this.position,o.tooltipWidth=this.tooltipWidth,o.tooltipHeight=this.tooltipHeight},t.prototype._hideElementTitle=function(t){t.getAttribute("title")&&(t.setAttribute("data-title",t.getAttribute("title")),t.setAttribute("title",""))},t.prototype._openPopup=function(t){var e=this,o=c.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:this.collision,margin:r,popupAlign:n,popupClass:"k-popup-transparent"});var p=this.popupRef.content.instance;p.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(){return p.updateCalloutPosition(e.position)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var t=e.popupRef.popupElement;e.popupMouseOutSubscription=s.fromEvent(t,"mouseout").subscribe(function(t){return e._onMouseOut(t)})})},t.prototype._closePopup=function(){var t=this;this.popupRef&&(this.ngZone.run(function(){return t.popupRef.close()}),this.popupRef=null,this.popupPositionChangeSubscription.unsubscribe())},t.prototype._onMouseOver=function(t){if("hover"===this.showOn&&""!==this.filter){var e=c.closest(t.target,this.filter);e&&this.toggle(e,!0)}},t.prototype._onMouseOut=function(t){if("hover"===this.showOn){var e=this.popupRef&&this.popupRef.popupElement,o=t.relatedTarget;o&&c.contains(this.anchor,o)||o&&c.contains(e,o)||this.hide()}},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],t.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],t.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],t.prototype,"tooltipTemplate",null),t=i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip",providers:[h.LocalizationService,{provide:h.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__param(4,n.Optional()),i.__param(4,n.Inject(u.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,a.PopupService,h.LocalizationService,u.TooltipSettings])],t)}();e.TooltipDirective=d},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e){t.exports=s},function(t,e){t.exports=n},function(t,e){t.exports=r},function(t,e){t.exports=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(3);e.TOOLTIP_SETTINGS=new n.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function t(){this.callout=!0,this.position="top",this.showOn="hover"}return t=i.__decorate([n.Injectable()],t)}();e.TooltipSettings=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(3),l=o(10),r=function(){function t(t){this.content=t,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0}return Object.defineProperty(t.prototype,"elementClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),t.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},t.prototype.updateCalloutPosition=function(t){var e=""+t=="top"||""+t=="bottom",o=e?"width":"height",i=e?"left":"top",n=e?"marginLeft":"marginTop",r=this.content.nativeElement.lastElementChild,p=r.getBoundingClientRect()[o],s=l.getCenterOffset(this.anchor,i,o),a=l.getCenterOffset(this.content,i,o);if(1<Math.abs(a-s)){var u=a-s+p/2;r.style[n]=-u+"px"}},i.__decorate([n.HostBinding("class.k-tooltip"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"elementClass",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],t.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],t.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"templateString",void 0),t=i.__decorate([n.Component({template:'\n <div class="k-tooltip-content">\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n '}),i.__metadata("design:paramtypes",[n.ElementRef])],t)}();e.TooltipContentComponent=r},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.align=function(t,e){var o={},i={},n={};switch(t){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:e};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:e};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:e,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:e,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},e.closest=function(t,e){if(t.closest)return t.closest(e);for(var o=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},i=t;i;){if(o(i,e))return i;i=i.parentElement}},e.contains=function(t,e){return t&&t.contains(e)},e.getCenterOffset=function(t,e,o){var i=t.nativeElement.getBoundingClientRect();return i[e]+i[o]/2}},function(t,e){t.exports=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(3),r=o(13),p=o(1),s=o(7),a=o(9),u=[p.TooltipDirective,a.TooltipContentComponent],l=[s.PopupModule],c=function(){function t(){}return t=i.__decorate([n.NgModule({declarations:[u],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(l),exports:[u]})],t)}();e.TooltipModule=c},function(t,e){t.exports=l}])}}}); | ||
System.register("@progress/kendo-angular-tooltip",["@angular/common","tslib","@angular/core","@progress/kendo-angular-popup","rxjs/operators/take","rxjs/operators","rxjs/observable/fromEvent","@progress/kendo-angular-l10n"],function(p){var o,i,n,r,s,a,u,l;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){o=e(t)},function(t){i=e(t)},function(t){n=e(t)},function(t){r=e(t)},function(t){s=e(t)},function(t){a=e(t)},function(t){u=e(t)},function(t){l=e(t)}],execute:function(){!function(o){var i={};function n(t){if(i[t])return i[t].exports;var e=i[t]={exports:{},id:t,loaded:!1};return o[t].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}n.m=o,n.c=i,n.p="",n(0)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1);e.TooltipDirective=i.TooltipDirective;var n=o(12);e.TooltipModule=n.TooltipModule;var r=o(8);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS,function(t){for(var e in t)p(e,t[e])}(e)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(3),r=o(4),s=o(5),p=o(6),a=o(7),u=o(8),l=o(9),c=o(10),h=o(11),d=function(){function t(t,e,o,i,n){var r=this;this.tooltipWrapper=t,this.ngZone=e,this.popupService=o,this.localizationService=i,this.filter="[title]",this.position="top",this.showOn="hover",this.showAfter=100,this.callout=!0,this.offset=6,this.collision={horizontal:"fit",vertical:"flip"},this.anchor=null,this.direction=i.rtl?"rtl":"ltr",n&&(this.position=n.position,this.callout=n.callout,this.showOn=n.showOn),this.ngZone.runOutsideAngular(function(){var t=r.tooltipWrapper.nativeElement;r.anchorTitleSubscription=s.fromEvent(t,"mouseover").subscribe(function(t){if(""!==r.filter){var e=c.closest(t.target,r.filter);e&&r._hideElementTitle(e)}}),r.mouseOverSubscription=s.fromEvent(t,"mouseover").pipe(p.debounceTime(100)).subscribe(function(t){return r._onMouseOver(t)}),r.mouseOutSubscription=s.fromEvent(t,"mouseout").pipe(p.debounceTime(100)).subscribe(function(t){return r._onMouseOut(t)})})}return Object.defineProperty(t.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),t.prototype.show=function(t){var e=this,o={nativeElement:t};if(this.anchor=t,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return e._show(o)},this.showAfter)}else this._hideElementTitle(this.anchor),this._show(o)},t.prototype.hide=function(){clearTimeout(this.showTimeout),this.anchor&&this.anchor.getAttribute("data-title")&&(this.anchor.setAttribute("title",this.anchor.getAttribute("data-title")),this.anchor.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this._closePopup()},t.prototype.toggle=function(t,e){this.anchor!==t&&this.hide(),void 0===e&&(e=!this.popupRef),e?this.show(t):this.hide()},t.prototype.ngOnInit=function(){var o=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(t){var e=t.rtl;return o.direction=e?"rtl":"ltr"})},t.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},t.prototype._show=function(t){var e,o=this;(t.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){o._openPopup(t),e=o.popupRef.content,o._bindContent(e,t)}),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe(function(){return o.hide()}))},t.prototype._bindContent=function(t,e){var o=t.instance;this.template?o.templateRef=this.template:o.templateString=this.anchor.getAttribute("data-title"),o.anchor=e,o.callout=this.callout,o.position=this.position,o.tooltipWidth=this.tooltipWidth,o.tooltipHeight=this.tooltipHeight},t.prototype._hideElementTitle=function(t){t.getAttribute("title")&&(t.setAttribute("data-title",t.getAttribute("title")),t.setAttribute("title",""))},t.prototype._openPopup=function(t){var e=this,o=c.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:this.collision,margin:r,popupAlign:n,popupClass:"k-popup-transparent"});var p=this.popupRef.content.instance;p.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(){return p.updateCalloutPosition(e.position)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var t=e.popupRef.popupElement;e.popupMouseOutSubscription=s.fromEvent(t,"mouseout").subscribe(function(t){return e._onMouseOut(t)})})},t.prototype._closePopup=function(){var t=this;this.popupRef&&(this.ngZone.run(function(){return t.popupRef.close()}),this.popupRef=null,this.popupPositionChangeSubscription.unsubscribe())},t.prototype._onMouseOver=function(t){if("hover"===this.showOn&&""!==this.filter){var e=c.closest(t.target,this.filter);e&&this.toggle(e,!0)}},t.prototype._onMouseOut=function(t){if("hover"===this.showOn){var e=this.popupRef&&this.popupRef.popupElement,o=t.relatedTarget;o&&c.contains(this.anchor,o)||o&&c.contains(e,o)||this.hide()}},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],t.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],t.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],t.prototype,"tooltipTemplate",null),t=i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip",providers:[h.LocalizationService,{provide:h.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__param(4,n.Optional()),i.__param(4,n.Inject(u.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,a.PopupService,h.LocalizationService,u.TooltipSettings])],t)}();e.TooltipDirective=d},function(t,e){t.exports=i},function(t,e){t.exports=n},function(t,e){t.exports=s},function(t,e){t.exports=u},function(t,e){t.exports=a},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(3);e.TOOLTIP_SETTINGS=new n.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function t(){this.callout=!0,this.position="top",this.showOn="hover"}return t=i.__decorate([n.Injectable()],t)}();e.TooltipSettings=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(3),l=o(10),r=function(){function t(t){this.content=t,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0}return Object.defineProperty(t.prototype,"elementClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),t.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},t.prototype.updateCalloutPosition=function(t){var e=""+t=="top"||""+t=="bottom",o=e?"width":"height",i=e?"left":"top",n=e?"marginLeft":"marginTop",r=this.content.nativeElement.lastElementChild,p=r.getBoundingClientRect()[o],s=l.getCenterOffset(this.anchor,i,o),a=l.getCenterOffset(this.content,i,o);if(1<Math.abs(a-s)){var u=a-s+p/2;r.style[n]=-u+"px"}},i.__decorate([n.HostBinding("class.k-tooltip"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"elementClass",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],t.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],t.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"templateString",void 0),t=i.__decorate([n.Component({template:'\n <div class="k-tooltip-content">\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n '}),i.__metadata("design:paramtypes",[n.ElementRef])],t)}();e.TooltipContentComponent=r},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.align=function(t,e){var o={},i={},n={};switch(t){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:e};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:e};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:e,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:e,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},e.closest=function(t,e){if(t.closest)return t.closest(e);for(var o=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},i=t;i;){if(o(i,e))return i;i=i.parentElement}},e.contains=function(t,e){return t&&t.contains(e)},e.getCenterOffset=function(t,e,o){var i=t.nativeElement.getBoundingClientRect();return i[e]+i[o]/2}},function(t,e){t.exports=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(3),r=o(13),p=o(1),s=o(7),a=o(9),u=[p.TooltipDirective,a.TooltipContentComponent],l=[s.PopupModule],c=function(){function t(){}return t=i.__decorate([n.NgModule({declarations:[u],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(l),exports:[u]})],t)}();e.TooltipModule=c},function(t,e){t.exports=o}])}}}); |
{ | ||
"name": "@progress/kendo-angular-tooltip", | ||
"description": "Kendo UI Angular 2 component starter template", | ||
"description": "Kendo UI Tooltip for Angular", | ||
"author": "Progress", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
"version": "0.1.0", | ||
"main": "dist/npm/main.js", | ||
"module": "dist/es/main.js", | ||
"jsnext:main": "dist/es/main.js", | ||
"es2015": "dist/es2015/main.js", | ||
"typings": "dist/es/main.d.ts", | ||
"version": "0.1.1-dev.201804301159", | ||
"main": "dist/npm/index.js", | ||
"module": "dist/es/index.js", | ||
"jsnext:main": "dist/es/index.js", | ||
"es2015": "dist/es2015/index.js", | ||
"typings": "dist/es2015/index.d.ts", | ||
"jsdelivr": "dist/cdn/js/kendo-angular-tooltip.js", | ||
@@ -21,8 +21,11 @@ "unpkg": "dist/cdn/js/kendo-angular-tooltip.js", | ||
"api-check": "gulp api-check", | ||
"build-cdn": "gulp build-cdn", | ||
"build-package": "gulp build-package", | ||
"semantic-release": "semantic-release pre && semantic-prerelease publish --public && semantic-release post" | ||
"semantic-release": "semantic-release pre && semantic-prerelease publish && semantic-release post" | ||
}, | ||
"keywords": [ | ||
"Kendo UI", | ||
"Angular" | ||
"Angular", | ||
"Progress", | ||
"Tooltip" | ||
], | ||
@@ -52,3 +55,3 @@ "peerDependencies": { | ||
"@progress/kendo-angular-jest-preset": "^1.1.0", | ||
"@progress/kendo-angular-tasks": "^12.0.0", | ||
"@progress/kendo-angular-tasks": "^12.0.2", | ||
"@progress/kendo-angular-l10n": "^1.1.0", | ||
@@ -102,3 +105,3 @@ "@progress/kendo-theme-default": "^2.0.0", | ||
"type": "git", | ||
"url": "https://github.com/telerik/kendo-angular-component-base.git" | ||
"url": "https://github.com/telerik/kendo-angular-tooltip.git" | ||
}, | ||
@@ -108,2 +111,5 @@ "bugs": { | ||
}, | ||
"@progress": { | ||
"friendlyName": "Tooltip" | ||
}, | ||
"release": { | ||
@@ -110,0 +116,0 @@ "debug": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149940
53
2425