@ngneat/helipopper
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -241,5 +241,5 @@ (function (global, factory) { | ||
var supportsResizeObserver = false; | ||
if (typeof window !== 'undefined') { | ||
supportsIntersectionObserver = 'IntersectionObserver' in window; | ||
supportsResizeObserver = 'ResizeObserver' in window; | ||
if (typeof window !== "undefined") { | ||
supportsIntersectionObserver = "IntersectionObserver" in window; | ||
supportsResizeObserver = "ResizeObserver" in window; | ||
} | ||
@@ -297,2 +297,24 @@ function inView(host, options) { | ||
} | ||
function onlyTippyProps(allProps) { | ||
var tippyProps = {}; | ||
var ownProps = [ | ||
"variations", | ||
"useHostWidth", | ||
"defaultVariation", | ||
"beforeRender", | ||
"lazy", | ||
"variation", | ||
"isEnabled", | ||
"className", | ||
"onlyTextOverflow", | ||
"data", | ||
"content" | ||
]; | ||
Object.keys(allProps).forEach(function (prop) { | ||
if (!ownProps.includes(prop)) { | ||
tippyProps[prop] = allProps[prop]; | ||
} | ||
}); | ||
return tippyProps; | ||
} | ||
@@ -329,2 +351,3 @@ var TippyDirective = /** @class */ (function () { | ||
variation = changes.variation.currentValue; | ||
this.variationDefined = true; | ||
} | ||
@@ -342,4 +365,2 @@ else if (!this.variationDefined) { | ||
} | ||
// We don't want to save the content, we control it manually | ||
delete props.content; | ||
this.setProps(props); | ||
@@ -411,3 +432,3 @@ }; | ||
this.props = props; | ||
(_a = this.instance) === null || _a === void 0 ? void 0 : _a.setProps(props); | ||
(_a = this.instance) === null || _a === void 0 ? void 0 : _a.setProps(onlyTippyProps(props)); | ||
}; | ||
@@ -427,3 +448,3 @@ TippyDirective.prototype.setStatus = function () { | ||
var _this = this; | ||
this.instance = tippy(this.host.nativeElement, __assign(__assign(__assign({ allowHTML: true, appendTo: document.body }, this.globalConfig), this.props), { onMount: function (instance) { | ||
this.instance = tippy(this.host.nativeElement, __assign(__assign(__assign({ allowHTML: true, appendTo: document.body }, onlyTippyProps(this.globalConfig)), onlyTippyProps(this.props)), { onMount: function (instance) { | ||
var _a, _b; | ||
@@ -660,9 +681,8 @@ _this.isVisible = true; | ||
if (options === void 0) { options = {}; } | ||
var view; | ||
var config = __assign(__assign(__assign({ $viewOptions: undefined, onShow: function (instance) { | ||
var config = __assign(__assign(__assign({ onShow: function (instance) { | ||
var _a; | ||
if (!config.$viewOptions) { | ||
config.$viewOptions = {}; | ||
if (!instance.$viewOptions) { | ||
instance.$viewOptions = {}; | ||
if (overview.isTemplateRef(content)) { | ||
config.$viewOptions.context = { | ||
instance.$viewOptions.context = { | ||
$implicit: instance.hide.bind(instance) | ||
@@ -672,3 +692,3 @@ }; | ||
else if (overview.isComponent(content)) { | ||
config.$viewOptions.injector = core.Injector.create({ | ||
instance.$viewOptions.injector = core.Injector.create({ | ||
providers: [{ provide: TIPPY_REF, useValue: instance }], | ||
@@ -679,19 +699,12 @@ parent: options.injector || _this.injector | ||
} | ||
view = _this.view.createView(content, __assign(__assign({}, options), config.$viewOptions)); | ||
instance.setContent(view.getElement()); | ||
instance.view = _this.view.createView(content, __assign(__assign({}, options), instance.$viewOptions)); | ||
instance.setContent(instance.view.getElement()); | ||
(_a = options === null || options === void 0 ? void 0 : options.onShow) === null || _a === void 0 ? void 0 : _a.call(options, instance); | ||
}, onHidden: function (instance) { | ||
var _a; | ||
view.destroy(); | ||
instance.view.destroy(); | ||
(_a = options === null || options === void 0 ? void 0 : options.onHidden) === null || _a === void 0 ? void 0 : _a.call(options, instance); | ||
view = null; | ||
} }, this.globalConfig), this.globalConfig.variations[options.variation || this.globalConfig.defaultVariation]), options); | ||
var instance = tippy(host, config); | ||
var original = instance.destroy; | ||
instance.destroy = function () { | ||
original.call(tippy); | ||
view === null || view === void 0 ? void 0 : view.destroy(); | ||
view = null; | ||
}; | ||
return instance; | ||
instance.view = null; | ||
} }, onlyTippyProps(this.globalConfig)), this.globalConfig.variations[options.variation || this.globalConfig.defaultVariation]), onlyTippyProps(options)); | ||
return tippy(host, config); | ||
}; | ||
@@ -711,2 +724,3 @@ TippyService.ctorParameters = function () { return [ | ||
exports.TIPPY_CONFIG = TIPPY_CONFIG; | ||
exports.TIPPY_REF = TIPPY_REF; | ||
@@ -721,3 +735,2 @@ exports.TippyDirective = TippyDirective; | ||
exports.withContextMenuVariation = withContextMenuVariation; | ||
exports.ɵa = TIPPY_CONFIG; | ||
@@ -724,0 +737,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("tippy.js"),require("rxjs"),require("rxjs/operators"),require("@ngneat/overview"),require("@angular/common")):"function"==typeof define&&define.amd?define("@ngneat/helipopper",["exports","@angular/core","tippy.js","rxjs","rxjs/operators","@ngneat/overview","@angular/common"],e):e(((t=t||self).ngneat=t.ngneat||{},t.ngneat.helipopper={}),t.ng.core,t.tippy,t.rxjs,t.rxjs.operators,t.ngneatOverview,t.ng.common)}(this,(function(t,e,n,i,o,r,s){"use strict";n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function p(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}var l=new e.InjectionToken("Tippy config",{providedIn:"root",factory:function(){return{}}}),u=new e.InjectionToken("TIPPY_REF");function d(t){return t instanceof e.ElementRef?t.nativeElement:t}var v=!1,h=!1;function f(t,e){void 0===e&&(e={root:null,threshold:.3});var n=d(t);return new i.Observable((function(t){if(!v)return t.next(),void t.complete();var i=new IntersectionObserver((function(e){e[e.length-1].isIntersecting&&(t.next(),t.complete())}),e);return i.observe(n),function(){return i.disconnect()}}))}function y(t){var e,n=d(t);return(e=n,function(t){return new i.Observable((function(e){if(!h)return e.next(),void e.complete();var n=new ResizeObserver((function(){return e.next(!0)}));return n.observe(t),function(){return n.disconnect()}}))}(e).pipe(o.auditTime(150))).pipe(o.map((function(){return function(t){var e=t.parentElement,n=t.offsetWidth>e.offsetWidth,i=t.offsetWidth<t.scrollWidth;return n||i}(n)})))}"undefined"!=typeof window&&(v="IntersectionObserver"in window,h="ResizeObserver"in window);var g=function(){function t(t,n,o,r,s,a,p){this.platformId=t,this.globalConfig=n,this.injector=o,this.viewService=r,this.vcr=s,this.zone=a,this.host=p,this.onlyTextOverflow=!1,this.useHostWidth=!1,this.visible=new e.EventEmitter,this.isVisible=!1,this.destroyed=new i.Subject,this.enabled=!0,this.variationDefined=!1}return t.prototype.ngOnChanges=function(t){if(!s.isPlatformServer(this.platformId)){t.content&&(this.view=t.content.currentValue);var e,n=Object.keys(t).reduce((function(e,n){return e[n]=t[n].currentValue,e}),{});w("variation",t)?e=t.variation.currentValue:this.variationDefined||(e=this.globalConfig.defaultVariation,this.variationDefined=!0),e&&(n=a(a({},this.globalConfig.variations[e]),n)),w("isEnabled",t)&&(this.enabled=t.isEnabled.currentValue,this.setStatus()),delete n.content,this.setProps(n)}},t.prototype.ngOnInit=function(){this.useHostWidth&&(this.props.maxWidth=this.hostWidth)},t.prototype.ngAfterViewInit=function(){var t=this;this.lazy?this.onlyTextOverflow?f(this.host).pipe(o.switchMap((function(){return y(t.host)})),o.takeUntil(this.destroyed)).subscribe((function(e){t.checkOverflow(e)})):f(this.host).pipe(o.takeUntil(this.destroyed)).subscribe((function(){t.createInstance()})):this.onlyTextOverflow?y(this.host).pipe(o.takeUntil(this.destroyed)).subscribe((function(e){t.checkOverflow(e)})):this.createInstance()},t.prototype.ngOnDestroy=function(){var t;this.destroyed.next(),null===(t=this.instance)||void 0===t||t.destroy(),this.destroyView()},t.prototype.destroyView=function(){var t;null===(t=this.viewRef)||void 0===t||t.destroy(),this.viewRef=null},t.prototype.show=function(){var t;null===(t=this.instance)||void 0===t||t.show()},t.prototype.hide=function(){var t;null===(t=this.instance)||void 0===t||t.hide()},t.prototype.enable=function(){var t;null===(t=this.instance)||void 0===t||t.enable()},t.prototype.disable=function(){var t;null===(t=this.instance)||void 0===t||t.disable()},t.prototype.setProps=function(t){var e;this.props=t,null===(e=this.instance)||void 0===e||e.setProps(t)},t.prototype.setStatus=function(){var t,e;this.enabled?null===(t=this.instance)||void 0===t||t.enable():null===(e=this.instance)||void 0===e||e.disable()},Object.defineProperty(t.prototype,"hostWidth",{get:function(){return this.host.nativeElement.getBoundingClientRect().width+"px"},enumerable:!0,configurable:!0}),t.prototype.createInstance=function(){var t=this;this.instance=n(this.host.nativeElement,a(a(a({allowHTML:!0,appendTo:document.body},this.globalConfig),this.props),{onMount:function(e){var n,i;t.isVisible=!0,t.visible.next(!0),null===(i=(n=t.globalConfig).onMount)||void 0===i||i.call(n,e)},onCreate:function(e){var n,i;t.className&&e.popper.classList.add(t.className),t.useHostWidth&&(e.popper.style.width=t.hostWidth),null===(i=(n=t.globalConfig).onCreate)||void 0===i||i.call(n,e)},onShow:function(e){var n,i;t.zone.run((function(){return t.instance.setContent(t.resolveContent())})),null===(i=(n=t.globalConfig).onShow)||void 0===i||i.call(n,e)},onHidden:function(e){var n,i;t.destroyView(),t.isVisible=!1,t.visible.next(!1),null===(i=(n=t.globalConfig).onHidden)||void 0===i||i.call(n,e)}})),this.setStatus(),this.setProps(this.props),"contextMenu"===this.variation&&this.handleContextMenu()},t.prototype.resolveContent=function(){this.viewOptions$||r.isString(this.content)||(r.isComponent(this.content)?this.viewOptions$={injector:e.Injector.create({providers:[{provide:u,useValue:this.instance}],parent:this.injector})}:r.isTemplateRef(this.content)&&(this.viewOptions$={context:{$implicit:this.hide.bind(this),data:this.data}})),this.viewRef=this.viewService.createView(this.content,a({vcr:this.vcr},this.viewOptions$));var t=this.viewRef.getElement();return r.isString(t)&&this.globalConfig.beforeRender&&(t=this.globalConfig.beforeRender(t)),t},t.prototype.handleContextMenu=function(){var t=this;i.fromEvent(this.host.nativeElement,"contextmenu").pipe(o.takeUntil(this.destroyed)).subscribe((function(e){e.preventDefault(),t.instance.setProps({getReferenceClientRect:function(){return{width:0,height:0,top:e.clientY,bottom:e.clientY,left:e.clientX,right:e.clientX}}}),t.instance.show()}))},t.prototype.checkOverflow=function(t){var e;t?this.instance?this.instance.enable():this.createInstance():null===(e=this.instance)||void 0===e||e.disable()},t.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[l]}]},{type:e.Injector},{type:r.ViewService},{type:e.ViewContainerRef},{type:e.NgZone},{type:e.ElementRef}]},p([e.Input()],t.prototype,"appendTo",void 0),p([e.Input()],t.prototype,"delay",void 0),p([e.Input()],t.prototype,"duration",void 0),p([e.Input()],t.prototype,"hideOnClick",void 0),p([e.Input()],t.prototype,"interactive",void 0),p([e.Input()],t.prototype,"interactiveBorder",void 0),p([e.Input()],t.prototype,"maxWidth",void 0),p([e.Input()],t.prototype,"offset",void 0),p([e.Input()],t.prototype,"placement",void 0),p([e.Input()],t.prototype,"popperOptions",void 0),p([e.Input()],t.prototype,"showOnCreate",void 0),p([e.Input()],t.prototype,"trigger",void 0),p([e.Input()],t.prototype,"triggerTarget",void 0),p([e.Input()],t.prototype,"zIndex",void 0),p([e.Input()],t.prototype,"lazy",void 0),p([e.Input()],t.prototype,"variation",void 0),p([e.Input()],t.prototype,"isEnabled",void 0),p([e.Input()],t.prototype,"className",void 0),p([e.Input()],t.prototype,"onlyTextOverflow",void 0),p([e.Input()],t.prototype,"data",void 0),p([e.Input()],t.prototype,"useHostWidth",void 0),p([e.Input("tippy")],t.prototype,"content",void 0),p([e.Output()],t.prototype,"visible",void 0),t=p([e.Directive({selector:"[tippy]",exportAs:"tippy"}),c(0,e.Inject(e.PLATFORM_ID)),c(1,e.Inject(l))],t)}();function w(t,e){return t in e}var b=function(){function t(){}var n;return n=t,t.forRoot=function(t){return void 0===t&&(t={}),{ngModule:n,providers:[{provide:l,useValue:t}]}},t=n=p([e.NgModule({declarations:[g],exports:[g]})],t)}();var I=function(){function t(t,e,n){this.globalConfig=t,this.view=e,this.injector=n}return t.prototype.create=function(t,i,o){var s,p=this;void 0===o&&(o={});var c=a(a(a({$viewOptions:void 0,onShow:function(t){var n;c.$viewOptions||(c.$viewOptions={},r.isTemplateRef(i)?c.$viewOptions.context={$implicit:t.hide.bind(t)}:r.isComponent(i)&&(c.$viewOptions.injector=e.Injector.create({providers:[{provide:u,useValue:t}],parent:o.injector||p.injector}))),s=p.view.createView(i,a(a({},o),c.$viewOptions)),t.setContent(s.getElement()),null===(n=null==o?void 0:o.onShow)||void 0===n||n.call(o,t)},onHidden:function(t){var e;s.destroy(),null===(e=null==o?void 0:o.onHidden)||void 0===e||e.call(o,t),s=null}},this.globalConfig),this.globalConfig.variations[o.variation||this.globalConfig.defaultVariation]),o),l=n(t,c),d=l.destroy;return l.destroy=function(){d.call(n),null==s||s.destroy(),s=null},l},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[l]}]},{type:r.ViewService},{type:e.Injector}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(l),e.ɵɵinject(r.ViewService),e.ɵɵinject(e.INJECTOR))},token:t,providedIn:"root"}),t=p([e.Injectable({providedIn:"root"}),c(0,e.Inject(l))],t)}();t.TIPPY_REF=u,t.TippyDirective=g,t.TippyModule=b,t.TippyService=I,t.inView=f,t.overflowChanges=y,t.popperVariation={theme:"light",arrow:!0,offset:[0,10],animation:null,trigger:"click",interactive:!0},t.tooltipVariation={theme:null,arrow:!1,animation:"scale",trigger:"mouseenter",offset:[0,5]},t.withContextMenuVariation=function(t){return a(a({},t),{placement:"right-start",trigger:"manual",arrow:!1,offset:[0,0]})},t.ɵa=l,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("tippy.js"),require("rxjs"),require("rxjs/operators"),require("@ngneat/overview"),require("@angular/common")):"function"==typeof define&&define.amd?define("@ngneat/helipopper",["exports","@angular/core","tippy.js","rxjs","rxjs/operators","@ngneat/overview","@angular/common"],e):e(((t=t||self).ngneat=t.ngneat||{},t.ngneat.helipopper={}),t.ng.core,t.tippy,t.rxjs,t.rxjs.operators,t.ngneatOverview,t.ng.common)}(this,(function(t,e,n,i,o,r,s){"use strict";n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function p(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}var l=new e.InjectionToken("Tippy config",{providedIn:"root",factory:function(){return{}}}),u=new e.InjectionToken("TIPPY_REF");function d(t){return t instanceof e.ElementRef?t.nativeElement:t}var v=!1,f=!1;function h(t,e){void 0===e&&(e={root:null,threshold:.3});var n=d(t);return new i.Observable((function(t){if(!v)return t.next(),void t.complete();var i=new IntersectionObserver((function(e){e[e.length-1].isIntersecting&&(t.next(),t.complete())}),e);return i.observe(n),function(){return i.disconnect()}}))}function y(t){var e,n=d(t);return(e=n,function(t){return new i.Observable((function(e){if(!f)return e.next(),void e.complete();var n=new ResizeObserver((function(){return e.next(!0)}));return n.observe(t),function(){return n.disconnect()}}))}(e).pipe(o.auditTime(150))).pipe(o.map((function(){return function(t){var e=t.parentElement,n=t.offsetWidth>e.offsetWidth,i=t.offsetWidth<t.scrollWidth;return n||i}(n)})))}function g(t){var e={},n=["variations","useHostWidth","defaultVariation","beforeRender","lazy","variation","isEnabled","className","onlyTextOverflow","data","content"];return Object.keys(t).forEach((function(i){n.includes(i)||(e[i]=t[i])})),e}"undefined"!=typeof window&&(v="IntersectionObserver"in window,f="ResizeObserver"in window);var w=function(){function t(t,n,o,r,s,a,p){this.platformId=t,this.globalConfig=n,this.injector=o,this.viewService=r,this.vcr=s,this.zone=a,this.host=p,this.onlyTextOverflow=!1,this.useHostWidth=!1,this.visible=new e.EventEmitter,this.isVisible=!1,this.destroyed=new i.Subject,this.enabled=!0,this.variationDefined=!1}return t.prototype.ngOnChanges=function(t){if(!s.isPlatformServer(this.platformId)){t.content&&(this.view=t.content.currentValue);var e,n=Object.keys(t).reduce((function(e,n){return e[n]=t[n].currentValue,e}),{});b("variation",t)?(e=t.variation.currentValue,this.variationDefined=!0):this.variationDefined||(e=this.globalConfig.defaultVariation,this.variationDefined=!0),e&&(n=a(a({},this.globalConfig.variations[e]),n)),b("isEnabled",t)&&(this.enabled=t.isEnabled.currentValue,this.setStatus()),this.setProps(n)}},t.prototype.ngOnInit=function(){this.useHostWidth&&(this.props.maxWidth=this.hostWidth)},t.prototype.ngAfterViewInit=function(){var t=this;this.lazy?this.onlyTextOverflow?h(this.host).pipe(o.switchMap((function(){return y(t.host)})),o.takeUntil(this.destroyed)).subscribe((function(e){t.checkOverflow(e)})):h(this.host).pipe(o.takeUntil(this.destroyed)).subscribe((function(){t.createInstance()})):this.onlyTextOverflow?y(this.host).pipe(o.takeUntil(this.destroyed)).subscribe((function(e){t.checkOverflow(e)})):this.createInstance()},t.prototype.ngOnDestroy=function(){var t;this.destroyed.next(),null===(t=this.instance)||void 0===t||t.destroy(),this.destroyView()},t.prototype.destroyView=function(){var t;null===(t=this.viewRef)||void 0===t||t.destroy(),this.viewRef=null},t.prototype.show=function(){var t;null===(t=this.instance)||void 0===t||t.show()},t.prototype.hide=function(){var t;null===(t=this.instance)||void 0===t||t.hide()},t.prototype.enable=function(){var t;null===(t=this.instance)||void 0===t||t.enable()},t.prototype.disable=function(){var t;null===(t=this.instance)||void 0===t||t.disable()},t.prototype.setProps=function(t){var e;this.props=t,null===(e=this.instance)||void 0===e||e.setProps(g(t))},t.prototype.setStatus=function(){var t,e;this.enabled?null===(t=this.instance)||void 0===t||t.enable():null===(e=this.instance)||void 0===e||e.disable()},Object.defineProperty(t.prototype,"hostWidth",{get:function(){return this.host.nativeElement.getBoundingClientRect().width+"px"},enumerable:!0,configurable:!0}),t.prototype.createInstance=function(){var t=this;this.instance=n(this.host.nativeElement,a(a(a({allowHTML:!0,appendTo:document.body},g(this.globalConfig)),g(this.props)),{onMount:function(e){var n,i;t.isVisible=!0,t.visible.next(!0),null===(i=(n=t.globalConfig).onMount)||void 0===i||i.call(n,e)},onCreate:function(e){var n,i;t.className&&e.popper.classList.add(t.className),t.useHostWidth&&(e.popper.style.width=t.hostWidth),null===(i=(n=t.globalConfig).onCreate)||void 0===i||i.call(n,e)},onShow:function(e){var n,i;t.zone.run((function(){return t.instance.setContent(t.resolveContent())})),null===(i=(n=t.globalConfig).onShow)||void 0===i||i.call(n,e)},onHidden:function(e){var n,i;t.destroyView(),t.isVisible=!1,t.visible.next(!1),null===(i=(n=t.globalConfig).onHidden)||void 0===i||i.call(n,e)}})),this.setStatus(),this.setProps(this.props),"contextMenu"===this.variation&&this.handleContextMenu()},t.prototype.resolveContent=function(){this.viewOptions$||r.isString(this.content)||(r.isComponent(this.content)?this.viewOptions$={injector:e.Injector.create({providers:[{provide:u,useValue:this.instance}],parent:this.injector})}:r.isTemplateRef(this.content)&&(this.viewOptions$={context:{$implicit:this.hide.bind(this),data:this.data}})),this.viewRef=this.viewService.createView(this.content,a({vcr:this.vcr},this.viewOptions$));var t=this.viewRef.getElement();return r.isString(t)&&this.globalConfig.beforeRender&&(t=this.globalConfig.beforeRender(t)),t},t.prototype.handleContextMenu=function(){var t=this;i.fromEvent(this.host.nativeElement,"contextmenu").pipe(o.takeUntil(this.destroyed)).subscribe((function(e){e.preventDefault(),t.instance.setProps({getReferenceClientRect:function(){return{width:0,height:0,top:e.clientY,bottom:e.clientY,left:e.clientX,right:e.clientX}}}),t.instance.show()}))},t.prototype.checkOverflow=function(t){var e;t?this.instance?this.instance.enable():this.createInstance():null===(e=this.instance)||void 0===e||e.disable()},t.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[l]}]},{type:e.Injector},{type:r.ViewService},{type:e.ViewContainerRef},{type:e.NgZone},{type:e.ElementRef}]},p([e.Input()],t.prototype,"appendTo",void 0),p([e.Input()],t.prototype,"delay",void 0),p([e.Input()],t.prototype,"duration",void 0),p([e.Input()],t.prototype,"hideOnClick",void 0),p([e.Input()],t.prototype,"interactive",void 0),p([e.Input()],t.prototype,"interactiveBorder",void 0),p([e.Input()],t.prototype,"maxWidth",void 0),p([e.Input()],t.prototype,"offset",void 0),p([e.Input()],t.prototype,"placement",void 0),p([e.Input()],t.prototype,"popperOptions",void 0),p([e.Input()],t.prototype,"showOnCreate",void 0),p([e.Input()],t.prototype,"trigger",void 0),p([e.Input()],t.prototype,"triggerTarget",void 0),p([e.Input()],t.prototype,"zIndex",void 0),p([e.Input()],t.prototype,"lazy",void 0),p([e.Input()],t.prototype,"variation",void 0),p([e.Input()],t.prototype,"isEnabled",void 0),p([e.Input()],t.prototype,"className",void 0),p([e.Input()],t.prototype,"onlyTextOverflow",void 0),p([e.Input()],t.prototype,"data",void 0),p([e.Input()],t.prototype,"useHostWidth",void 0),p([e.Input("tippy")],t.prototype,"content",void 0),p([e.Output()],t.prototype,"visible",void 0),t=p([e.Directive({selector:"[tippy]",exportAs:"tippy"}),c(0,e.Inject(e.PLATFORM_ID)),c(1,e.Inject(l))],t)}();function b(t,e){return t in e}var I=function(){function t(){}var n;return n=t,t.forRoot=function(t){return void 0===t&&(t={}),{ngModule:n,providers:[{provide:l,useValue:t}]}},t=n=p([e.NgModule({declarations:[w],exports:[w]})],t)}();var m=function(){function t(t,e,n){this.globalConfig=t,this.view=e,this.injector=n}return t.prototype.create=function(t,i,o){var s=this;void 0===o&&(o={});var p=a(a(a({onShow:function(t){var n;t.$viewOptions||(t.$viewOptions={},r.isTemplateRef(i)?t.$viewOptions.context={$implicit:t.hide.bind(t)}:r.isComponent(i)&&(t.$viewOptions.injector=e.Injector.create({providers:[{provide:u,useValue:t}],parent:o.injector||s.injector}))),t.view=s.view.createView(i,a(a({},o),t.$viewOptions)),t.setContent(t.view.getElement()),null===(n=null==o?void 0:o.onShow)||void 0===n||n.call(o,t)},onHidden:function(t){var e;t.view.destroy(),null===(e=null==o?void 0:o.onHidden)||void 0===e||e.call(o,t),t.view=null}},g(this.globalConfig)),this.globalConfig.variations[o.variation||this.globalConfig.defaultVariation]),g(o));return n(t,p)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[l]}]},{type:r.ViewService},{type:e.Injector}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(l),e.ɵɵinject(r.ViewService),e.ɵɵinject(e.INJECTOR))},token:t,providedIn:"root"}),t=p([e.Injectable({providedIn:"root"}),c(0,e.Inject(l))],t)}();t.TIPPY_CONFIG=l,t.TIPPY_REF=u,t.TippyDirective=w,t.TippyModule=I,t.TippyService=m,t.inView=h,t.overflowChanges=y,t.popperVariation={theme:"light",arrow:!0,offset:[0,10],animation:null,trigger:"click",interactive:!0},t.tooltipVariation={theme:null,arrow:!1,animation:"scale",trigger:"mouseenter",offset:[0,5]},t.withContextMenuVariation=function(t){return a(a({},t),{placement:"right-start",trigger:"manual",arrow:!1,offset:[0,0]})},Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngneat-helipopper.umd.min.js.map |
@@ -5,3 +5,3 @@ import { __decorate, __param } from "tslib"; | ||
import { TIPPY_CONFIG, TIPPY_REF } from "./tippy.types"; | ||
import { inView, overflowChanges } from "./utils"; | ||
import { inView, onlyTippyProps, overflowChanges } from "./utils"; | ||
import { fromEvent, Subject } from "rxjs"; | ||
@@ -41,2 +41,3 @@ import { switchMap, takeUntil } from "rxjs/operators"; | ||
variation = changes.variation.currentValue; | ||
this.variationDefined = true; | ||
} | ||
@@ -54,4 +55,2 @@ else if (!this.variationDefined) { | ||
} | ||
// We don't want to save the content, we control it manually | ||
delete props.content; | ||
this.setProps(props); | ||
@@ -122,3 +121,3 @@ } | ||
this.props = props; | ||
(_a = this.instance) === null || _a === void 0 ? void 0 : _a.setProps(props); | ||
(_a = this.instance) === null || _a === void 0 ? void 0 : _a.setProps(onlyTippyProps(props)); | ||
} | ||
@@ -133,3 +132,3 @@ setStatus() { | ||
createInstance() { | ||
this.instance = tippy(this.host.nativeElement, Object.assign(Object.assign(Object.assign({ allowHTML: true, appendTo: document.body }, this.globalConfig), this.props), { onMount: instance => { | ||
this.instance = tippy(this.host.nativeElement, Object.assign(Object.assign(Object.assign({ allowHTML: true, appendTo: document.body }, onlyTippyProps(this.globalConfig)), onlyTippyProps(this.props)), { onMount: instance => { | ||
var _a, _b; | ||
@@ -310,2 +309,2 @@ this.isVisible = true; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlwcHkuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC9oZWxpcG9wcGVyLyIsInNvdXJjZXMiOlsibGliL3RpcHB5LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxVQUFVLEVBQ1YsWUFBWSxFQUNaLE1BQU0sRUFDTixRQUFRLEVBQ1IsS0FBSyxFQUNMLE1BQU0sRUFDTixNQUFNLEVBQ04sV0FBVyxFQUNYLGdCQUFnQ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hbnQgdG8gc2F2ZSB0aGUgY29udGVudCwgd2UgY29udHJvbCBpdCBtYW51YWxseVxuICAgIGRlbGV0ZSBwcm9wcy5jb250ZW50O1xuXG4gICAgdGhpcy5zZXRQcm9wcyhwcm9wcyk7XG4gIH1cblxuICBuZ09uSW5pdCgpIHtcbiAgICBpZiAodGhpcy51c2VIb3N0V2lkdGgpIHtcbiAgICAgIHRoaXMucHJvcHMubWF4V2lkdGggPSB0aGlzLmhvc3RXaWR0aDtcbiAgICB9XG4gIH1cblxuICBuZ0FmdGVyVmlld0luaXQoKSB7XG4gICAgaWYgKHRoaXMubGF6eSkge1xuICAgICAgaWYgKHRoaXMub25seVRleHRPdmVyZmxvdykge1xuICAgICAgICBpblZpZXcodGhpcy5ob3N0KVxuICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgc3dpdGNoTWFwKCgpID0+IG92ZXJmbG93Q2hhbmdlcyh0aGlzLmhvc3QpKSxcbiAgICAgICAgICAgIHRha2VVbnRpbCh0aGlzLmRlc3Ryb3llZClcbiAgICAgICAgICApXG4gICAgICAgICAgLnN1YnNjcmliZShpc0VsZW1lbnRPdmVyZmxvdyA9PiB7XG4gICAgICAgICAgICB0aGlzLmNoZWNrT3ZlcmZsb3coaXNFbGVtZW50T3ZlcmZsb3cpO1xuICAgICAgICAgIH0pO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgaW5WaWV3KHRoaXMuaG9zdClcbiAgICAgICAgICAucGlwZSh0YWtlVW50aWwodGhpcy5kZXN0cm95ZWQpKVxuICAgICAgICAgIC5zdWJzY3JpYmUoKCkgPT4ge1xuICAgICAgICAgICAgdGhpcy5jcmVhdGVJbnN0YW5jZSgpO1xuICAgICAgICAgIH0pO1xuICAgICAgfVxuICAgIH0gZWxzZSBpZiAodGhpcy5vbmx5VGV4dE92ZXJmbG93KSB7XG4gICAgICBvdmVyZmxvd0NoYW5nZXModGhpcy5ob3N0KVxuICAgICAgICAucGlwZSh0YWtlVW50aWwodGhpcy5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TtcbiAgICAgICAgdGhpcy5nbG9iYWxDb25maWcub25TaG93Py4oaW5zdGFuY2UpO1xuICAgICAgfSxcbiAgICAgIG9uSGlkZGVuOiBpbnN0YW5jZSA9PiB7XG4gICAgICAgIHRoaXMuZGVzdHJveVZpZXcoKTtcbiAgICAgICAgdGhpcy5pc1Zpc2libGUgPSBmYWxzZTtcbiAgICAgICAgdGhpcy52aXNpYmxlLm5leHQoZmFsc2UpO1xuICAgICAgICB0aGlzLmdsb2JhbENvbmZpZy5vbkhpZGRlbj8uKGluc3RhbmNlKTtcbiAgICAgIH1cbiAgICB9KTtcblxuICAgIHRoaXMuc2V0U3RhdHVzKCk7XG4gICAgdGhpcy5zZXRQcm9wcyh0aGlzLnByb3BzKTtcblxuICAgIHRoaXMudmFyaWF0aW9uID09PSBcImNvbnRleHRNZW51XCIgJiYgdGhpcy5oYW5kbGVDb250ZXh0TWVudSgpO1xuICB9XG5cbiAgcHJpdmF0ZSByZXNvbHZlQ29udGVudCgpIHtcbiAgICBpZiAoIXRoaXMudmlld09wdGlvbnMkICYmICFpc1N0cmluZyh0aGlzLmNvbnRlbnQpKSB7XG4gICAgICBpZiAoaXNDb21wb25lbnQodGhpcy5jb250ZW50KSkge1xuICAgICAgICB0aGlzLnZpZXdPcHRpb25zJCA9IHtcbiAgICAgICAgICBpbmplY3RvcjogSW5qZWN0b3IuY3JlYXRlKHtcbiAgICAgICAgICAgIHByb3ZpZGVyczogW3sgcHJvdmlkZTogVElQUFlfUkVGLCB1c2VWYWx1ZTogdGhpcy5pbnN0YW5jZSB9XSxcbiAgICAgICAgICAgIHBhcmVudDogdGhpcy5pbmplY3RvclxuICAgICAgICAgIH0pXG4gICAgICAgIH07XG4gICAgICB9IGVsc2UgaWYgKGlzVGVtcGxhdGVSZWYodGhpcy5jb250ZW50KSkge1xuICAgICAgICB0aGlzLnZpZXdPcHRpb25zJCA9IHtcbiAgICAgICAgICBjb250ZXh0OiB7XG4gICAgICAgICAgICAkaW1wbGljaXQ6IHRoaXMuaGlkZS5iaW5kKHRoaXMpLFxuICAgICAgICAgICAgZGF0YTogdGhpcy5kYXRhXG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgfVxuICAgIH1cblxuICAgIHRoaXMudmlld1JlZiA9IHRoaXMudmlld1NlcnZpY2UuY3JlYXRlVmlldyh0aGlzLmNvbnRlbnQsIHtcbiAgICAgIHZjcjogdGhpcy52Y3IsXG4gICAgICAuLi50aGlzLnZpZXdPcHRpb25zJFxuICAgIH0pO1xuXG4gICAgbGV0IGNvbnRlbnQgPSB0aGlzLnZpZXdSZWYuZ2V0RWxlbWVudCgpO1xuXG4gICAgaWYgKGlzU3RyaW5nKGNvbnRlbnQpICYmIHRoaXMuZ2xvYmFsQ29uZmlnLmJlZm9yZVJlbmRlcikge1xuICAgICAgY29udGVudCA9IHRoaXMuZ2xvYmFsQ29uZmlnLmJlZm9yZVJlbmRlcihjb250ZW50KTtcbiAgICB9XG5cbiAgICByZXR1cm4gY29udGVudDtcbiAgfVxuXG4gIHByaXZhdGUgaGFuZGxlQ29udGV4dE1lbnUoKSB7XG4gICAgZnJvbUV2ZW50KHRoaXMuaG9zdC5uYXRpdmVFbGVtZW50LCBcImNvbnRleHRtZW51XCIpXG4gICAgICAucGlwZSh0YWtlVW50aWwodGhpcy5kZXN0cm95ZWQpKVxuICAgICAgLnN1YnNjcmliZSgoZXZlbnQ6IE1vdXNlRXZlbnQpID0+IHtcbiAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcblxuICAgICAgICB0aGlzLmluc3RhbmNlLnNldFByb3BzKHtcbiAgICAgICAgICBnZXRSZWZlcmVuY2VDbGllbnRSZWN0OiAoKSA9PiAoe1xuICAgICAgICAgICAgd2lkdGg6IDAsXG4gICAgICAgICAgICBoZWlnaHQ6IDAsXG4gICAgICAgICAgICB0b3A6IGV2ZW50LmNsaWVudFksXG4gICAgICAgICAgICBib3R0b206IGV2ZW50LmNsaWVudFksXG4gICAgICAgICAgICBsZW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AgICAgIHRoaXMudmlld09wdGlvbnMkID0ge1xuICAgICAgICAgIGNvbnRleHQ6IHtcbiAgICAgICAgICAgICRpbXBsaWNpdDogdGhpcy5oaWRlLmJpbmQodGhpcyksXG4gICAgICAgICAgICBkYXRhOiB0aGlzLmRhdGFcbiAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgICB9XG4gICAgfVxuXG4gICAgdGhpcy52aWV3UmVmID0gdGhpcy52aWV3U2VydmljZS5jcmVhdGVWaWV3KHRoaXMuY29udGVudCwge1xuICAgICAgdmNyOiB0aGlzLnZjcixcbiAgICAgIC4uLnRoaXMudmlld09wdGlvbnMkXG4gICAgfSk7XG5cbiAgICBsZXQgY29udGVudCA9IHRoaXMudmlld1JlZi5nZXRFbGVtZW50KCk7XG5cbiAgICBpZiAoaXNTdHJpbmcoY29udGVudCkgJiYgdGhpcy5nbG9iYWxDb25maWcuYmVmb3JlUmVuZGVyKSB7XG4gICAgICBjb250ZW50ID0gdGhpcy5nbG9iYWxDb25maWcuYmVmb3JlUmVuZGVyKGNvbnRlbnQpO1xuICAgIH1cblxuICAgIHJldHVybiBjb250ZW50O1xuICB9XG5cbiAgcHJpdmF0ZSBoYW5kbGVDb250ZXh0TWVudSgpIHtcbiAgICBmcm9tRXZlbnQodGhpcy5ob3N0Lm5hdGl2ZUVsZW1lbnQsIFwiY29udGV4dG1lbnVcIilcbiAgICAgIC5waXBlKHRha2VVbnRpbCh0aGlzLmRlc3Ryb3llZCkpXG4gICAgICAuc3Vic2NyaWJlKChldmVudDogTW91c2VFdmVudCkgPT4ge1xuICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuXG4gICAgICAgIHRoaXMuaW5zdGFuY2Uuc2V0UHJvcHMoe1xuICAgICAgICAgIGdldFJlZmVyZW5jZUNsaWVudFJlY3Q6ICgpID0+ICh7XG4gICAgICAgICAgICB3aWR0aDogMCxcbiAgICAgICAgICAgIGhlaWdodDogMCxcbiAgICAgICAgICAgIHRvcDogZXZlbnQuY2xpZW50WSxcbiAgICAgICAgICAgIGJvdHRvbTogZXZlbnQuY2xpZW50WSxcbiAgICAgICAgICAgIGxlZnQ6IGV2ZW50LmNsaWVudFgsXG4gICAgICAgICAgICByaWdodDogZXZlbnQuY2xpZW50WFxuICAgICAgICAgIH0pXG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMuaW5zdGFuY2Uuc2hvdygpO1xuICAgICAgfSk7XG4gIH1cblxuICBwcml2YXRlIGNoZWNrT3ZlcmZsb3coaXNFbGVtZW50T3ZlcmZsb3c6IGJvb2xlYW4pIHtcbiAgICBpZiAoaXNFbGVtZW50T3ZlcmZsb3cpIHtcbiAgICAgIGlmICghdGhpcy5pbnN0YW5jZSkge1xuICAgICAgICB0aGlzLmNyZWF0ZUluc3RhbmNlKCk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmluc3RhbmNlLmVuYWJsZSgpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICB0aGlzLmluc3RhbmNlPy5kaXNhYmxlKCk7XG4gICAgfVxuICB9XG59XG5cbmZ1bmN0aW9uIGlzQ2hhbmdlZDxUPihrZXk6IGtleW9mIFQsIGNoYW5nZXM6IFQpIHtcbiAgcmV0dXJuIGtleSBpbiBjaGFuZ2VzO1xufVxuIl19 |
import { __decorate, __param } from "tslib"; | ||
import { Inject, Injectable, Injector } from "@angular/core"; | ||
import tippy from "tippy.js"; | ||
import { isComponent, isTemplateRef, ViewService } from "@ngneat/overview"; | ||
import { Content, isComponent, isTemplateRef, ViewService } from "@ngneat/overview"; | ||
import { TIPPY_CONFIG, TIPPY_REF } from "./tippy.types"; | ||
import { onlyTippyProps } from "./utils"; | ||
import * as i0 from "@angular/core"; | ||
@@ -16,9 +17,8 @@ import * as i1 from "./tippy.types"; | ||
create(host, content, options = {}) { | ||
let view; | ||
const config = Object.assign(Object.assign(Object.assign({ $viewOptions: undefined, onShow: instance => { | ||
const config = Object.assign(Object.assign(Object.assign({ onShow: instance => { | ||
var _a; | ||
if (!config.$viewOptions) { | ||
config.$viewOptions = {}; | ||
if (!instance.$viewOptions) { | ||
instance.$viewOptions = {}; | ||
if (isTemplateRef(content)) { | ||
config.$viewOptions.context = { | ||
instance.$viewOptions.context = { | ||
$implicit: instance.hide.bind(instance) | ||
@@ -28,3 +28,3 @@ }; | ||
else if (isComponent(content)) { | ||
config.$viewOptions.injector = Injector.create({ | ||
instance.$viewOptions.injector = Injector.create({ | ||
providers: [{ provide: TIPPY_REF, useValue: instance }], | ||
@@ -35,19 +35,12 @@ parent: options.injector || this.injector | ||
} | ||
view = this.view.createView(content, Object.assign(Object.assign({}, options), config.$viewOptions)); | ||
instance.setContent(view.getElement()); | ||
instance.view = this.view.createView(content, Object.assign(Object.assign({}, options), instance.$viewOptions)); | ||
instance.setContent(instance.view.getElement()); | ||
(_a = options === null || options === void 0 ? void 0 : options.onShow) === null || _a === void 0 ? void 0 : _a.call(options, instance); | ||
}, onHidden: instance => { | ||
var _a; | ||
view.destroy(); | ||
instance.view.destroy(); | ||
(_a = options === null || options === void 0 ? void 0 : options.onHidden) === null || _a === void 0 ? void 0 : _a.call(options, instance); | ||
view = null; | ||
} }, this.globalConfig), this.globalConfig.variations[options.variation || this.globalConfig.defaultVariation]), options); | ||
const instance = tippy(host, config); | ||
const original = instance.destroy; | ||
instance.destroy = () => { | ||
original.call(tippy); | ||
view === null || view === void 0 ? void 0 : view.destroy(); | ||
view = null; | ||
}; | ||
return instance; | ||
instance.view = null; | ||
} }, onlyTippyProps(this.globalConfig)), this.globalConfig.variations[options.variation || this.globalConfig.defaultVariation]), onlyTippyProps(options)); | ||
return tippy(host, config); | ||
} | ||
@@ -66,2 +59,2 @@ }; | ||
export { TippyService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlwcHkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ25lYXQvaGVsaXBvcHBlci8iLCJzb3VyY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dGFuY2UgfSBmcm9tIFwiLi90aXBweS50eXBlc1wiO1xuXG5ASW5qZWN0YWJsZSh7IHByb3ZpZGVkSW46IFwicm9vdFwiIH0pXG5leHBvcnQgY2xhc3MgVGlwcHlTZXJ2aWNlIHtcbiAgY29uc3RydWN0b3IoXG4gICAgQEluamVjdChUSVBQWV9DT05GSUcpIHByaXZhdGUgZ2xvYmFsQ29uZmlnOiBUaXBweUNvbmZpZyxcbiAgICBwcml2YXRlIHZpZXc6IFZpZXdTZXJ2aWNlLFxuICAgIHByaXZhdGUgaW5qZWN0b3I6IEluamVjdG9yXG4gICkge31cblxuICBjcmVhdGUoaG9zdDogRWxlbWVudCwgY29udGVudDogQ29udGVudCwgb3B0aW9uczogUGFydGlhbDxDcmVhdGVPcHRpb25zPiA9IHt9KTogVGlwcHlJbnN0YW5jZSB7XG4gICAgbGV0IHZpZXc6IFZpZXdSZWY7XG5cbiAgICBjb25zdCBjb25maWcgPSB7XG4gICAgICAkdmlld09wdGlvbnM6IHVuZGVmaW5lZCxcbiAgICAgIG9uU2hvdzogaW5zdGFuY2UgPT4ge1xuICAgICAgICBpZiAoIWNvbmZpZy4kdmlld09wdGlvbnMpIHtcbiAgICAgICAgICBjb25maWcuJHZpZXdPcHRpb25zID0ge307XG5cbiAgICAgICAgICBpZiAoaXNUZW1wbGF0ZVJlZihjb250ZW50KSkge1xuICAgICAgICAgICAgY29uZmlnLiR2aWV3T3B0aW9ucy5jb250ZXh0ID0ge1xuICAgICAgICAgICAgICAkaW1wbGljaXQ6IGluc3RhbmNlLmhpZGUuYmluZChpbnN0YW5jZSlcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfSBlbHNlIGlmIChpc0NvbXBvbmVudChjb250ZW50KSkge1xuICAgICAgICAgICAgY29uZmlnLiR2aWV3T3B0aW9ucy5pbmplY3RvciA9IEluamVjdG9yLmNyZWF0ZSh7XG4gICAgICAgICAgICAgIHByb3ZpZGVyczogW3sgcHJvdmlkZTogVElQUFlfUkVGLC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BvcnQgY2xhc3MgVGlwcHlTZXJ2aWNlIHtcbiAgY29uc3RydWN0b3IoXG4gICAgQEluamVjdChUSVBQWV9DT05GSUcpIHByaXZhdGUgZ2xvYmFsQ29uZmlnOiBUaXBweUNvbmZpZyxcbiAgICBwcml2YXRlIHZpZXc6IFZpZXdTZXJ2aWNlLFxuICAgIHByaXZhdGUgaW5qZWN0b3I6IEluamVjdG9yXG4gICkge31cblxuICBjcmVhdGUoaG9zdDogRWxlbWVudCwgY29udGVudDogQ29udGVudCwgb3B0aW9uczogUGFydGlhbDxDcmVhdGVPcHRpb25zPiA9IHt9KTogVGlwcHlJbnN0YW5jZSB7XG4gICAgY29uc3QgY29uZmlnID0ge1xuICAgICAgb25TaG93OiBpbnN0YW5jZSA9PiB7XG4gICAgICAgIGlmICghaW5zdGFuY2UuJHZpZXdPcHRpb25zKSB7XG4gICAgICAgICAgaW5zdGFuY2UuJHZpZXdPcHRpb25zID0ge307XG5cbiAgICAgICAgICBpZiAoaXNUZW1wbGF0ZVJlZihjb250ZW50KSkge1xuICAgICAgICAgICAgaW5zdGFuY2UuJHZpZXdPcHRpb25zLmNvbnRleHQgPSB7XG4gICAgICAgICAgICAgICRpbXBsaWNpdDogaW5zdGFuY2UuaGlkZS5iaW5kKGluc3RhbmNlKVxuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9IGVsc2UgaWYgKGlzQ29tcG9uZW50KGNvbnRlbnQpKSB7XG4gICAgICAgICAgICBpbnN0YW5jZS4kdmlld09wdGlvbnMuaW5qZWN0b3IgPSBJbmplY3Rvci5jcmVhdGUoe1xuICAgICAgICAgICAgICBwcm92aWRlcnM6IFt7IHByb3ZpZGU6IFRJUFBZX1JFRiwgdXNlVmFsdWU6IGluc3RhbmNlIH1dLFxuICAgICAgICAgICAgICBwYXJlbnQ6IG9wdGlvbnMuaW5qZWN0b3IgfHwgdGhpcy5pbmplY3RvclxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGluc3RhbmNlLnZpZXcgPSB0aGlzLnZpZXcuY3JlYXRlVmlldyhjb250ZW50LCB7IC4uLm9wdGlvbnMsIC4uLmluc3RhbmNlLiR2aWV3T3B0aW9ucyB9KTtcbiAgICAgICAgaW5zdGFuY2Uuc2V0Q29udGVudChpbnN0YW5jZS52aWV3LmdldEVsZW1lbnQoKSk7XG4gICAgICAgIG9wdGlvbnM/Lm9uU2hvdz8uKGluc3RhbmNlKTtcbiAgICAgIH0sXG4gICAgICBvbkhpZGRlbjogaW5zdGFuY2UgPT4ge1xuICAgICAgICBpbnN0YW5jZS52aWV3LmRlc3Ryb3koKTtcbiAgICAgICAgb3B0aW9ucz8ub25IaWRkZW4/LihpbnN0YW5jZSk7XG4gICAgICAgIGluc3RhbmNlLnZpZXcgPSBudWxsO1xuICAgICAgfSxcbiAgICAgIC4uLm9ubHlUaXBweVByb3BzKHRoaXMuZ2xvYmFsQ29uZmlnKSxcbiAgICAgIC4uLnRoaXMuZ2xvYmFsQ29uZmlnLnZhcmlhdGlvbnNbb3B0aW9ucy52YXJpYXRpb24gfHwgdGhpcy5nbG9iYWxDb25maWcuZGVmYXVsdFZhcmlhdGlvbl0sXG4gICAgICAuLi5vbmx5VGlwcHlQcm9wcyhvcHRpb25zKVxuICAgIH07XG5cbiAgICByZXR1cm4gdGlwcHkoaG9zdCwgY29uZmlnKTtcbiAgfVxufVxuIl19 |
@@ -1,9 +0,9 @@ | ||
import { Observable } from 'rxjs'; | ||
import { auditTime, map } from 'rxjs/operators'; | ||
import { coerceElement } from './tippy.types'; | ||
import { Observable } from "rxjs"; | ||
import { auditTime, map } from "rxjs/operators"; | ||
import { coerceElement } from "./tippy.types"; | ||
let supportsIntersectionObserver = false; | ||
let supportsResizeObserver = false; | ||
if (typeof window !== 'undefined') { | ||
supportsIntersectionObserver = 'IntersectionObserver' in window; | ||
supportsResizeObserver = 'ResizeObserver' in window; | ||
if (typeof window !== "undefined") { | ||
supportsIntersectionObserver = "IntersectionObserver" in window; | ||
supportsResizeObserver = "ResizeObserver" in window; | ||
} | ||
@@ -60,2 +60,24 @@ export function inView(host, options = { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L2hlbGlwb3BwZXIvIiwic291cmNlcyI6WyJsaWIvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNsQyxPQUFPLEVBQUUsU0FBUyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxhQUFhLEVBQWdCLE1BQU0sZUFBZSxDQUFDO0FBSTVELElBQUksNEJBQTRCLEdBQUcsS0FBSyxDQUFDO0FBQ3pDLElBQUksc0JBQXNCLEdBQUcsS0FBSyxDQUFDO0FBRW5DLElBQUksT0FBTyxNQUFNLEtBQUssV0FBVyxFQUFFO0lBQ2pDLDRCQUE0QixHQUFHLHNCQUFzQixJQUFJLE1BQU0sQ0FBQztJQUNoRSxzQkFBc0IsR0FBRyxnQkFBZ0IsSUFBSSxNQUFNLENBQUM7Q0FDckQ7QUFFRCxNQUFNLFVBQVUsTUFBTSxDQUNwQixJQUFrQixFQUNsQixVQUFvQztJQUNsQyxJQUFJLEVBQUUsSUFBSTtJQUNWLFNBQVMsRUFBRSxHQUFHO0NBQ2Y7SUFFRCxNQUFNLE9BQU8sR0FBRyxhQUFhLENBQUMsSUFBSSxDQUFDLENBQUM7SUFFcEMsT0FBTyxJQUFJLFVBQVUsQ0FBQyxVQUFVLENBQUMsRUFBRTtRQUNqQyxJQUFJLENBQUMsNEJBQTRCLEVBQUU7WUFDakMsVUFBVSxDQUFDLElBQUksRUFBRSxDQUFDO1lBQ2xCLFVBQVUsQ0FBQyxRQUFRLEVBQUUsQ0FBQztZQUN0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Jlc2l6ZU9ic2VydmVyU3RyYXRlZ3kodGFyZ2V0OiBIVE1MRWxlbWVudCk6IE9ic2VydmFibGU8Ym9vbGVhbj4ge1xuICByZXR1cm4gbmV3IE9ic2VydmFibGUoc3Vic2NyaWJlciA9PiB7XG4gICAgaWYgKCFzdXBwb3J0c1Jlc2l6ZU9ic2VydmVyKSB7XG4gICAgICBzdWJzY3JpYmVyLm5leHQoKTtcbiAgICAgIHN1YnNjcmliZXIuY29tcGxldGUoKTtcbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICBjb25zdCBvYnNlcnZlciA9IG5ldyBSZXNpemVPYnNlcnZlcigoKSA9PiBzdWJzY3JpYmVyLm5leHQodHJ1ZSkpO1xuXG4gICAgb2JzZXJ2ZXIub2JzZXJ2ZSh0YXJnZXQpO1xuXG4gICAgcmV0dXJuICgpID0+IG9ic2VydmVyLmRpc2Nvbm5lY3QoKTtcbiAgfSk7XG59XG4iXX0= | ||
export function onlyTippyProps(allProps) { | ||
const tippyProps = {}; | ||
const ownProps = [ | ||
"variations", | ||
"useHostWidth", | ||
"defaultVariation", | ||
"beforeRender", | ||
"lazy", | ||
"variation", | ||
"isEnabled", | ||
"className", | ||
"onlyTextOverflow", | ||
"data", | ||
"content" | ||
]; | ||
Object.keys(allProps).forEach(prop => { | ||
if (!ownProps.includes(prop)) { | ||
tippyProps[prop] = allProps[prop]; | ||
} | ||
}); | ||
return tippyProps; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L2hlbGlwb3BwZXIvIiwic291cmNlcyI6WyJsaWIvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNsQyxPQUFPLEVBQUUsU0FBUyxFQUFFLEdBQUcsRUFBRSxNQUFNL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JjbGFzc05hbWVcIixcbiAgICBcIm9ubHlUZXh0T3ZlcmZsb3dcIixcbiAgICBcImRhdGFcIixcbiAgICBcImNvbnRlbnRcIlxuICBdO1xuXG4gIE9iamVjdC5rZXlzKGFsbFByb3BzKS5mb3JFYWNoKHByb3AgPT4ge1xuICAgIGlmICghb3duUHJvcHMuaW5jbHVkZXMocHJvcCkpIHtcbiAgICAgIHRpcHB5UHJvcHNbcHJvcF0gPSBhbGxQcm9wc1twcm9wXTtcbiAgICB9XG4gIH0pO1xuXG4gIHJldHVybiB0aXBweVByb3BzO1xufVxuIl19 |
@@ -5,3 +5,2 @@ /** | ||
export * from './public-api'; | ||
export { TIPPY_CONFIG as ɵa } from './lib/tippy.types'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmduZWF0LWhlbGlwb3BwZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L2hlbGlwb3BwZXIvIiwic291cmNlcyI6WyJuZ25lYXQtaGVsaXBvcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxZQUFZLElBQUksRUFBRSxFQUFtQixNQUFNLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge1RJUFBZX0NPTkZJRyBhcyDJtWEsVGlwcHlDb25maWcgYXMgybVifSBmcm9tICcuL2xpYi90aXBweS50eXBlcyc7Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmduZWF0LWhlbGlwb3BwZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L2hlbGlwb3BwZXIvIiwic291cmNlcyI6WyJuZ25lYXQtaGVsaXBvcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge1RpcHB5Q29uZmlnIGFzIMm1YX0gZnJvbSAnLi9saWIvdGlwcHkudHlwZXMnOyJdfQ== |
@@ -6,3 +6,3 @@ export { TippyModule } from "./lib/tippy.module"; | ||
export { inView, overflowChanges } from "./lib/utils"; | ||
export { TIPPY_REF } from "./lib/tippy.types"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ25lYXQvaGVsaXBvcHBlci8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUN2RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsZUFBZSxFQUFFLHdCQUF3QixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0YsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxNQUFNLEVBQUUsZUFBZSxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ3RELE9BQU8sRUFBaUIsU0FBUyxFQUFFLE1BQU0sbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcn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FLE1BQU0sYUFBYSxDQUFDO0FBQ3RELE9BQU8sRUFBaUIsU0FBUyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgVGlwcHlNb2R1bGUgfSBmcm9tIFwiLi9saWIvdGlwcHkubW9kdWxlXCI7XG5leHBvcnQgeyBUaXBweURpcmVjdGl2ZSB9IGZyb20gXCIuL2xpYi90aXBweS5kaXJlY3RpdmVcIjtcbmV4cG9ydCB7IHRvb2x0aXBWYXJpYXRpb24sIHBvcHBlclZhcmlhdGlvbiwgd2l0aENvbnRleHRNZW51VmFyaWF0aW9uIH0gZnJvbSBcIi4vbGliL2RlZmF1bHRzXCI7XG5leHBvcnQgeyBUaXBweVNlcnZpY2UgfSBmcm9tIFwiLi9saWIvdGlwcHkuc2VydmljZVwiO1xuZXhwb3J0IHsgaW5WaWV3LCBvdmVyZmxvd0NoYW5nZXMgfSBmcm9tIFwiLi9saWIvdXRpbHNcIjtcbmV4cG9ydCB7IFRpcHB5SW5zdGFuY2UsIFRJUFBZX1JFRiwgVElQUFlfQ09ORklHIH0gZnJvbSBcIi4vbGliL3RpcHB5LnR5cGVzXCI7XG4iXX0= |
@@ -5,3 +5,3 @@ import { __assign, __decorate, __param } from "tslib"; | ||
import { TIPPY_CONFIG, TIPPY_REF } from "./tippy.types"; | ||
import { inView, overflowChanges } from "./utils"; | ||
import { inView, onlyTippyProps, overflowChanges } from "./utils"; | ||
import { fromEvent, Subject } from "rxjs"; | ||
@@ -41,2 +41,3 @@ import { switchMap, takeUntil } from "rxjs/operators"; | ||
variation = changes.variation.currentValue; | ||
this.variationDefined = true; | ||
} | ||
@@ -54,4 +55,2 @@ else if (!this.variationDefined) { | ||
} | ||
// We don't want to save the content, we control it manually | ||
delete props.content; | ||
this.setProps(props); | ||
@@ -123,3 +122,3 @@ }; | ||
this.props = props; | ||
(_a = this.instance) === null || _a === void 0 ? void 0 : _a.setProps(props); | ||
(_a = this.instance) === null || _a === void 0 ? void 0 : _a.setProps(onlyTippyProps(props)); | ||
}; | ||
@@ -139,3 +138,3 @@ TippyDirective.prototype.setStatus = function () { | ||
var _this = this; | ||
this.instance = tippy(this.host.nativeElement, __assign(__assign(__assign({ allowHTML: true, appendTo: document.body }, this.globalConfig), this.props), { onMount: function (instance) { | ||
this.instance = tippy(this.host.nativeElement, __assign(__assign(__assign({ allowHTML: true, appendTo: document.body }, onlyTippyProps(this.globalConfig)), onlyTippyProps(this.props)), { onMount: function (instance) { | ||
var _a, _b; | ||
@@ -318,2 +317,2 @@ _this.isVisible = true; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlwcHkuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC9oZWxpcG9wcGVyLyIsInNvdXJjZXMiOlsibGliL3RpcHB5LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxVQUFVLEVBQ1YsWUFBWSxFQUNaLE1BQU0sRUFDTixRQUFRLEVBQ1IsS0FBSyxFQUNMLE1BQU0sRUFDTixNQUFNLEVBQ04sV0FBVyxFQUNYLGdCQUFnQixFQUNqQixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEtBQUssTUFBTSxVQUFVLENBQUM7QUFDN0IsT0FBTyxFQUFhLFlBQVksRUFBRSxTQUFTLEVBQTBDLE1BQU0sZUFBZSxDQUFDO0FBQzNHLE9BQU8sRUFBRSxNQUFNLEVBQUUsZUFBZSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQ2xELE9BQU8sRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzFDLE9BQU8sRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDdEQsT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vc3RXaWR0aDtcbiAgICB9XG4gIH1cblxuICBuZ0FmdGVyVmlld0luaXQoKSB7XG4gICAgaWYgKHRoaXMubGF6eSkge1xuICAgICAgaWYgKHRoaXMub25seVRleHRPdmVyZmxvdykge1xuICAgICAgICBpblZpZXcodGhpcy5ob3N0KVxuICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgc3dpdGNoTWFwKCgpID0+IG92ZXJmbG93Q2hhbmdlcyh0aGlzLmhvc3QpKSxcbiAgICAgICAgICAgIHRha2VVbnRpbCh0aGlzLmRlc3Ryb3llZClcbiAgICAgICAgICApXG4gICAgICAgICAgLnN1YnNjcmliZShpc0VsZW1lbnRPdmVyZmxvdyA9PiB7XG4gICAgICAgICAgICB0aGlzLmNoZWNrT3ZlcmZsb3coaXNFbGVtZW50T3ZlcmZsb3cpO1xuICAgICAgICAgIH0pO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgaW5WaWV3KHRoaXMuaG9zdClcbiAgICAgICAgICAucGlwZSh0YWtlVW50aWwodGhpcy5kZXN0cm95ZWQpKVxuICAgICAgICAgIC5zdWJzY3JpYmUoKCkgPT4ge1xuICAgICAgICAgICAgdGhpcy5jcmVhdGVJbnN0YW5jZSgpO1xuICAgICAgICAgIH0pO1xuICAgICAgfVxuICAgIH0gZWxzZSBpZiAodGhpcy5vbmx5VGV4dE92ZXJmbG93KSB7XG4gICAgICBvdmVyZmxvd0NoYW5nZXModGhpcy5ob3N0KVxuICAgICAgICAucGlwZSh0YWtlVW50aWwodGhpcy5kZXN0cm95ZWQpKVxuICAgICAgICAuc3Vic2NyaWJlKGlzRWxlbWVudE92ZXJmbG93ID0+IHtcbiAgICAgICAgICB0aGlzLmNoZWNrT3ZlcmZsb3coaXNFbGVtZW50T3ZlcmZsb3cpO1xuICAgICAgICB9KTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5jcmVhdGVJbnN0YW5jZSgpO1xuICAgIH1cbiAgfVxuXG4gIG5nT25EZXN0cm95KC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gICAgdGhpcy52aXNpYmxlLm5leHQoZmFsc2UpO1xuICAgICAgICB0aGlzLmdsb2JhbENvbmZpZy5vbkhpZGRlbj8uKGluc3RhbmNlKTtcbiAgICAgIH1cbiAgICB9KTtcblxuICAgIHRoaXMuc2V0U3RhdHVzKCk7XG4gICAgdGhpcy5zZXRQcm9wcyh0aGlzLnByb3BzKTtcblxuICAgIHRoaXMudmFyaWF0aW9uID09PSBcImNvbnRleHRNZW51XCIgJiYgdGhpcy5oYW5kbGVDb250ZXh0TWVudSgpO1xuICB9XG5cbiAgcHJpdmF0ZSByZXNvbHZlQ29udGVudCgpIHtcbiAgICBpZiAoIXRoaXMudmlld09wdGlvbnMkICYmICFpc1N0cmluZyh0aGlzLmNvbnRlbnQpKSB7XG4gICAgICBpZiAoaXNDb21wb25lbnQodGhpcy5jb250ZW50KSkge1xuICAgICAgICB0aGlzLnZpZXdPcHRpb25zJCA9IHtcbiAgICAgICAgICBpbmplY3RvcjogSW5qZWN0b3IuY3JlYXRlKHtcbiAgICAgICAgICAgIHByb3ZpZGVyczogW3sgcHJvdmlkZTogVElQUFlfUkVGLCB1c2VWYWx1ZTogdGhpcy5pbnN0YW5jZSB9XSxcbiAgICAgICAgICAgIHBhcmVudDogdGhpcy5pbmplY3RvclxuICAgICAgICAgIH0pXG4gICAgICAgIH07XG4gICAgICB9IGVsc2UgaWYgKGlzVGVtcGxhdGVSZWYodGhpcy5jb250ZW50KSkge1xuICAgICAgICB0aGlzLnZpZXdPcHRpb25zJCA9IHtcbiAgICAgICAgICBjb250ZXh0OiB7XG4gICAgICAgICAgICAkaW1wbGljaXQ6IHRoaXMuaGlkZS5iaW5kKHRoaXMpLFxuICAgICAgICAgICAgZGF0YTogdGhpcy5kYXRhXG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgfVxuICAgIH1cblxuICAgIHRoaXMudmlld1JlZiA9IHRoaXMudmlld1NlcnZpY2UuY3JlYXRlVmlldyh0aGlzLmNvbnRlbnQsIHtcbiAgICAgIHZjcjogdGhpcy52Y3IsXG4gICAgICAuLi50aGlzLnZpZXdPcHRpb25zJFxuICAgIH0pO1xuXG4gICAgbGV0IGNvbnRlbnQgPSB0aGlzLnZpZXdSZWYuZ2V0RWxlbWVudCgpO1xuXG4gICAgaWYgKGlzU3RyaW5nKGNvbnRlbnQpICYmIHRoaXMuZ2xvYmFsQ29uZmlnLmJlZm9yZVJlbmRlcikge1xuICAgICAgY29udGVudCA9IHRoaXMuZ2xvYmFsQ29uZmlnLmJlZm9yZVJlbmRlcihjb250ZW50KTtcbiAgICB9XG5cbiAgICByZXR1cm4gY29udGVudDtcbiAgfVxuXG4gIHByaXZhdGUgaGFuZGxlQ29udGV4dE1lbnUoKSB7XG4gICAgZnJvbUV2ZW50KHRoaXMuaG9zdC5uYXRpdmVFbGVtZW50LCBcImNvbnRleHRtZW51XCIpXG4gICAgICAucGlwZSh0YWtlVW50aWwodGhpcy5kZXN0cm95ZWQpKVxuICAgICAgLnN1YnNjcmliZSgoZXZlbnQ6IE1vdXNlRXZlbnQpID0+IHtcbiAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcblxuICAgICAgICB0aGlzLmluc3RhbmNlLnNldFByb3BzKHtcbiAgICAgICAgICBnZXRSZWZlcmVuY2VDbGllbnRSZWN0OiAoKSA9PiAoe1xuICAgICAgICAgICAgd2lkdGg6IDAsXG4gICAgICAgICAgICBoZWlnaHQ6IDAsXG4gICAgICAgICAgICB0b3A6IGV2ZW50LmNsaWVudFksXG4gICAgICAgICAgICBib3R0b206IGV2ZW50LmNsaWVudFksXG4gICAgICAgICAgICBsZWZ0OiBldmVudC5jbGllbnRYLFxuICAgICAgICAgICAgcmlnaHQ6IGV2ZW50LmNsaWVudFhcbiAgICAgICAgICB9KVxuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLmluc3RhbmNlLnNob3coKTtcbiAgICAgIH0pO1xuICB9XG5cbiAgcHJpdmF0ZSBjaGVja092ZXJmbG93KGlzRWxlbWVudE92ZXJmbG93OiBib29sZWFuKSB7XG4gICAgaWYgKGlzRWxlbWVudE92ZXJmbG93KSB7XG4gICAgICBpZiAoIXRoaXMuaW5zdGFuY2UpIHtcbiAgICAgICAgdGhpcy5jcmVhdGVJbnN0YW5jZSgpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdGhpcy5pbnN0YW5jZS5lbmFibGUoKTtcbiAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5pbnN0YW5jZT8uZGlzYWJsZSgpO1xuICAgIH1cbiAgfVxufVxuXG5mdW5jdGlvbiBpc0NoYW5nZWQ8VD4oa2V5OiBrZXlvZiBULCBjaGFuZ2VzOiBUKSB7XG4gIHJldHVybiBrZXkgaW4gY2hhbmdlcztcbn1cbiJdfQ== |
import { __assign, __decorate, __param } from "tslib"; | ||
import { Inject, Injectable, Injector } from "@angular/core"; | ||
import tippy from "tippy.js"; | ||
import { isComponent, isTemplateRef, ViewService } from "@ngneat/overview"; | ||
import { Content, isComponent, isTemplateRef, ViewService } from "@ngneat/overview"; | ||
import { TIPPY_CONFIG, TIPPY_REF } from "./tippy.types"; | ||
import { onlyTippyProps } from "./utils"; | ||
import * as i0 from "@angular/core"; | ||
@@ -18,9 +19,8 @@ import * as i1 from "./tippy.types"; | ||
if (options === void 0) { options = {}; } | ||
var view; | ||
var config = __assign(__assign(__assign({ $viewOptions: undefined, onShow: function (instance) { | ||
var config = __assign(__assign(__assign({ onShow: function (instance) { | ||
var _a; | ||
if (!config.$viewOptions) { | ||
config.$viewOptions = {}; | ||
if (!instance.$viewOptions) { | ||
instance.$viewOptions = {}; | ||
if (isTemplateRef(content)) { | ||
config.$viewOptions.context = { | ||
instance.$viewOptions.context = { | ||
$implicit: instance.hide.bind(instance) | ||
@@ -30,3 +30,3 @@ }; | ||
else if (isComponent(content)) { | ||
config.$viewOptions.injector = Injector.create({ | ||
instance.$viewOptions.injector = Injector.create({ | ||
providers: [{ provide: TIPPY_REF, useValue: instance }], | ||
@@ -37,19 +37,12 @@ parent: options.injector || _this.injector | ||
} | ||
view = _this.view.createView(content, __assign(__assign({}, options), config.$viewOptions)); | ||
instance.setContent(view.getElement()); | ||
instance.view = _this.view.createView(content, __assign(__assign({}, options), instance.$viewOptions)); | ||
instance.setContent(instance.view.getElement()); | ||
(_a = options === null || options === void 0 ? void 0 : options.onShow) === null || _a === void 0 ? void 0 : _a.call(options, instance); | ||
}, onHidden: function (instance) { | ||
var _a; | ||
view.destroy(); | ||
instance.view.destroy(); | ||
(_a = options === null || options === void 0 ? void 0 : options.onHidden) === null || _a === void 0 ? void 0 : _a.call(options, instance); | ||
view = null; | ||
} }, this.globalConfig), this.globalConfig.variations[options.variation || this.globalConfig.defaultVariation]), options); | ||
var instance = tippy(host, config); | ||
var original = instance.destroy; | ||
instance.destroy = function () { | ||
original.call(tippy); | ||
view === null || view === void 0 ? void 0 : view.destroy(); | ||
view = null; | ||
}; | ||
return instance; | ||
instance.view = null; | ||
} }, onlyTippyProps(this.globalConfig)), this.globalConfig.variations[options.variation || this.globalConfig.defaultVariation]), onlyTippyProps(options)); | ||
return tippy(host, config); | ||
}; | ||
@@ -69,2 +62,2 @@ TippyService.ctorParameters = function () { return [ | ||
export { TippyService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlwcHkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ25lYXQvaGVsaXBvcHBlci8iLCJzb3VyY2VzIjpbImxpYi90aXBweS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDN0QsT0FBTyxLQUFLLE1BQU0sVUFBVSxDQUFDO0FBQzdCLE9BQU8sRUFBRSxXQUFXLEVBQUUsYUFBYSxFQUFFLFdBQVcsRUFBRSxNQUFNLG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gIHByaXZhdGUgdmlldzogVmlld1NlcnZpY2UsXG4gICAgcHJpdmF0ZSBpbmplY3RvcjogSW5qZWN0b3JcbiAgKSB7fVxuXG4gIGNyZWF0ZShob3N0OiBFbGVtZW50LCBjb250ZW50OiBDb250ZW50LCBvcHRpb25zOiBQYXJ0aWFsPENyZWF0ZU9wdGlvbnM+ID0ge30pOiBUaXBweUluc3RhbmNlIHtcbiAgICBsZXQgdmlldzogVmlld1JlZjtcblxuICAgIGNvbnN0IGNvbmZpZyA9IHtcbiAgICAgICR2aWV3T3B0aW9uczogdW5kZWZpbmVkLFxuICAgICAgb25TaG93OiBpbnN0YW5jZSA9PiB7XG4gICAgICAgIGlmICghY29uZmlnLiR2aWV3T3B0aW9ucykge1xuICAgICAgICAgIGNvbmZpZy4kdmlld09wdGlvbnMgPSB7fTtcblxuICAgICAgICAgIGlmIChpc1RlbXBsYXRlUmVmKGNvbnRlbnQpKSB7XG4gICAgICAgICAgICBjb25maWcuJHZpZXdPcHRpb25zLmNvbnRleHQgPSB7XG4gICAgICAgICAgICAgICRpbXBsaWNpdDogaW5zdGFuY2UuaGlkZS5iaW5kKGluc3RhbmNlKVxuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9IGVsc2UgaWYgKGlzQ29tcG9uZW50KGNvbnRlbnQpKSB7XG4gICAgICAgICAgICBjb25maWcuJHZpZXdPcHRpb25zLmluamVjdG9yID0gSW5qZWN0b3IuY3JlYXRlKHtcbiAgICAgICAgICAgICAgcHJvdmlkZXJzOiBbeyBwcm92aWRlOiBUSVBQWV9SRUYsIHVzZVZhbHVlOiBpbnN0YW5jZSB9XSxcbiAgICAgICAgICAgICAgcGFyZW50OiBvcHRpb25zLmluamVjdG9yIHx8IHRoaXMuaW5qZWN0b3JcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICB2aWV3ID0gdGhpcy52aWV3LmNyZWF0ZVZpZXcoY29udGVudCwgeyAuLi5vcHRpb25zLCAuLi5jb25maWcuJHZpZXdPcHRpb25zIH0pO1xuICAgICAgICBpbnN0YW5jZS5zZXRDb250ZW50KHZpZXcuZ2V0RWxlbWVudCgpKTtcbiAgICAgICAgb3B0aW9ucz8ub25TaG93Py4oaW5zdGFuY2UpO1xuICAgICAgfSxcbiAgICAgIG9uSGlkZGVuOiBpbnN0YW5jZSA9PiB7XG4gICAgICAgIHZpZXcuZGVzdHJveSgpO1xuICAgICAgICBvcHRpb25zPy5vbkhpZGRlbj8uKGluc3RhbmNlKTtcbiAgICAgICAgdmlldyA9IG51bGw7XG4gICAgICB9LFxuICAgICAgLi4udGhpcy5nbG9iYWxDb25maWcsXG4gICAgICAuLi50aGlzLmdsb2JhbENvbmZpZy52YXJpYXRpb25zW29wdGlvbnMudmFyaWF0aW9uIHx8IHRoaXMuZ2xvYmFsQ29uZmlnLmRlZmF1bHRWYXJpYXRpb25dLFxuICAgICAgLi4ub3B0aW9uc1xuICAgIH07XG5cbiAgICBjb25zdCBpbnN0YW5jZSA9IHRpcHB5KGhvc3QsIGNvbmZpZyk7XG5cbiAgICBjb25zdCBvcmlnaW5hbCA9IGluc3RhbmNlLmRlc3Ryb3k7XG5cbiAgICBpbnN0YW5jZS5kZXN0cm95ID0gKCkgPT4ge1xuICAgICAgb3JpZ2luYWwuY2FsbCh0aXBweSk7XG4gICAgICB2aWV3Py5kZXN0cm95KCk7XG4gICAgICB2aWV3ID0gbnVsbDtcbiAgICB9O1xuXG4gICAgcmV0dXJuIGluc3RhbmNlO1xuICB9XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlwcHkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ25lYXQvaGVsaXBvcHBlci8iLCJzb3VyY2VzIjpbImxpYi90aXBweS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUF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hdGUgaW5qZWN0b3I6IEluamVjdG9yXG4gICkge31cblxuICBjcmVhdGUoaG9zdDogRWxlbWVudCwgY29udGVudDogQ29udGVudCwgb3B0aW9uczogUGFydGlhbDxDcmVhdGVPcHRpb25zPiA9IHt9KTogVGlwcHlJbnN0YW5jZSB7XG4gICAgY29uc3QgY29uZmlnID0ge1xuICAgICAgb25TaG93OiBpbnN0YW5jZSA9PiB7XG4gICAgICAgIGlmICghaW5zdGFuY2UuJHZpZXdPcHRpb25zKSB7XG4gICAgICAgICAgaW5zdGFuY2UuJHZpZXdPcHRpb25zID0ge307XG5cbiAgICAgICAgICBpZiAoaXNUZW1wbGF0ZVJlZihjb250ZW50KSkge1xuICAgICAgICAgICAgaW5zdGFuY2UuJHZpZXdPcHRpb25zLmNvbnRleHQgPSB7XG4gICAgICAgICAgICAgICRpbXBsaWNpdDogaW5zdGFuY2UuaGlkZS5iaW5kKGluc3RhbmNlKVxuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9IGVsc2UgaWYgKGlzQ29tcG9uZW50KGNvbnRlbnQpKSB7XG4gICAgICAgICAgICBpbnN0YW5jZS4kdmlld09wdGlvbnMuaW5qZWN0b3IgPSBJbmplY3Rvci5jcmVhdGUoe1xuICAgICAgICAgICAgICBwcm92aWRlcnM6IFt7IHByb3ZpZGU6IFRJUFBZX1JFRiwgdXNlVmFsdWU6IGluc3RhbmNlIH1dLFxuICAgICAgICAgICAgICBwYXJlbnQ6IG9wdGlvbnMuaW5qZWN0b3IgfHwgdGhpcy5pbmplY3RvclxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGluc3RhbmNlLnZpZXcgPSB0aGlzLnZpZXcuY3JlYXRlVmlldyhjb250ZW50LCB7IC4uLm9wdGlvbnMsIC4uLmluc3RhbmNlLiR2aWV3T3B0aW9ucyB9KTtcbiAgICAgICAgaW5zdGFuY2Uuc2V0Q29udGVudChpbnN0YW5jZS52aWV3LmdldEVsZW1lbnQoKSk7XG4gICAgICAgIG9wdGlvbnM/Lm9uU2hvdz8uKGluc3RhbmNlKTtcbiAgICAgIH0sXG4gICAgICBvbkhpZGRlbjogaW5zdGFuY2UgPT4ge1xuICAgICAgICBpbnN0YW5jZS52aWV3LmRlc3Ryb3koKTtcbiAgICAgICAgb3B0aW9ucz8ub25IaWRkZW4/LihpbnN0YW5jZSk7XG4gICAgICAgIGluc3RhbmNlLnZpZXcgPSBudWxsO1xuICAgICAgfSxcbiAgICAgIC4uLm9ubHlUaXBweVByb3BzKHRoaXMuZ2xvYmFsQ29uZmlnKSxcbiAgICAgIC4uLnRoaXMuZ2xvYmFsQ29uZmlnLnZhcmlhdGlvbnNbb3B0aW9ucy52YXJpYXRpb24gfHwgdGhpcy5nbG9iYWxDb25maWcuZGVmYXVsdFZhcmlhdGlvbl0sXG4gICAgICAuLi5vbmx5VGlwcHlQcm9wcyhvcHRpb25zKVxuICAgIH07XG5cbiAgICByZXR1cm4gdGlwcHkoaG9zdCwgY29uZmlnKTtcbiAgfVxufVxuIl19 |
@@ -1,9 +0,9 @@ | ||
import { Observable } from 'rxjs'; | ||
import { auditTime, map } from 'rxjs/operators'; | ||
import { coerceElement } from './tippy.types'; | ||
import { Observable } from "rxjs"; | ||
import { auditTime, map } from "rxjs/operators"; | ||
import { coerceElement } from "./tippy.types"; | ||
var supportsIntersectionObserver = false; | ||
var supportsResizeObserver = false; | ||
if (typeof window !== 'undefined') { | ||
supportsIntersectionObserver = 'IntersectionObserver' in window; | ||
supportsResizeObserver = 'ResizeObserver' in window; | ||
if (typeof window !== "undefined") { | ||
supportsIntersectionObserver = "IntersectionObserver" in window; | ||
supportsResizeObserver = "ResizeObserver" in window; | ||
} | ||
@@ -61,2 +61,24 @@ export function inView(host, options) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L2hlbGlwb3BwZXI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nNlcnZlcikge1xuICAgICAgc3Vic2NyaWJlci5uZXh0KCk7XG4gICAgICBzdWJzY3JpYmVyLmNvbXBsZXRlKCk7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgY29uc3Qgb2JzZXJ2ZXIgPSBuZXcgUmVzaXplT2JzZXJ2ZXIoKCkgPT4gc3Vic2NyaWJlci5uZXh0KHRydWUpKTtcblxuICAgIG9ic2VydmVyLm9ic2VydmUodGFyZ2V0KTtcblxuICAgIHJldHVybiAoKSA9PiBvYnNlcnZlci5kaXNjb25uZWN0KCk7XG4gIH0pO1xufVxuIl19 | ||
export function onlyTippyProps(allProps) { | ||
var tippyProps = {}; | ||
var ownProps = [ | ||
"variations", | ||
"useHostWidth", | ||
"defaultVariation", | ||
"beforeRender", | ||
"lazy", | ||
"variation", | ||
"isEnabled", | ||
"className", | ||
"onlyTextOverflow", | ||
"data", | ||
"content" | ||
]; | ||
Object.keys(allProps).forEach(function (prop) { | ||
if (!ownProps.includes(prop)) { | ||
tippyProps[prop] = allProps[prop]; | ||
} | ||
}); | ||
return tippyProps; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L2hlbGlwb3BwZXIvIiwic291cmNlcyI6WyJsaWIvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNsQyxPQUFPLEVBQUUsU0FBUyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxhQUFhLEVBQWdCLE1BQU0sZUFBZSxDQUFDO0FBSTVELElBQUksNEJBQTRCLEdBQUcsS0FBSyxDQUFDO0FBQ3pDLElBQUksc0JBQXNCLEdBQUcsS0FBSyxDQUFDO0FBRW5DLElBQUksT0FBTyxN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Rlcyhwcm9wKSkge1xuICAgICAgdGlwcHlQcm9wc1twcm9wXSA9IGFsbFByb3BzW3Byb3BdO1xuICAgIH1cbiAgfSk7XG5cbiAgcmV0dXJuIHRpcHB5UHJvcHM7XG59XG4iXX0= |
@@ -5,3 +5,2 @@ /** | ||
export * from './public-api'; | ||
export { TIPPY_CONFIG as ɵa } from './lib/tippy.types'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmduZWF0LWhlbGlwb3BwZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L2hlbGlwb3BwZXIvIiwic291cmNlcyI6WyJuZ25lYXQtaGVsaXBvcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxZQUFZLElBQUksRUFBRSxFQUFtQixNQUFNLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge1RJUFBZX0NPTkZJRyBhcyDJtWEsVGlwcHlDb25maWcgYXMgybVifSBmcm9tICcuL2xpYi90aXBweS50eXBlcyc7Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmduZWF0LWhlbGlwb3BwZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L2hlbGlwb3BwZXIvIiwic291cmNlcyI6WyJuZ25lYXQtaGVsaXBvcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge1RpcHB5Q29uZmlnIGFzIMm1YX0gZnJvbSAnLi9saWIvdGlwcHkudHlwZXMnOyJdfQ== |
@@ -6,3 +6,3 @@ export { TippyModule } from "./lib/tippy.module"; | ||
export { inView, overflowChanges } from "./lib/utils"; | ||
export { TIPPY_REF } from "./lib/tippy.types"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ25lYXQvaGVsaXBvcHBlci8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUN2RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsZUFBZSxFQUFFLHdCQUF3QixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0YsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxNQUFNLEVBQUUsZUFBZSxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ3RELE9BQU8sRUFBaUIsU0FBUyxFQUFFLE1BQU0sbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBUaXBweU1vZHVsZSB9IGZyb20gXCIuL2xpYi90aXBweS5tb2R1bGVcIjtcbmV4cG9ydCB7IFRpcHB5RGlyZWN0aXZlIH0gZnJvbSBcIi4vbGliL3RpcHB5LmRpcmVjdGl2ZVwiO1xuZXhwb3J0IHsgdG9vbHRpcFZhcmlhdGlvbiwgcG9w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XCI7XG5leHBvcnQgeyBUaXBweURpcmVjdGl2ZSB9IGZyb20gXCIuL2xpYi90aXBweS5kaXJlY3RpdmVcIjtcbmV4cG9ydCB7IHRvb2x0aXBWYXJpYXRpb24sIHBvcHBlclZhcmlhdGlvbiwgd2l0aENvbnRleHRNZW51VmFyaWF0aW9uIH0gZnJvbSBcIi4vbGliL2RlZmF1bHRzXCI7XG5leHBvcnQgeyBUaXBweVNlcnZpY2UgfSBmcm9tIFwiLi9saWIvdGlwcHkuc2VydmljZVwiO1xuZXhwb3J0IHsgaW5WaWV3LCBvdmVyZmxvd0NoYW5nZXMgfSBmcm9tIFwiLi9saWIvdXRpbHNcIjtcbmV4cG9ydCB7IFRpcHB5SW5zdGFuY2UsIFRJUFBZX1JFRiwgVElQUFlfQ09ORklHIH0gZnJvbSBcIi4vbGliL3RpcHB5LnR5cGVzXCI7XG4iXX0= |
@@ -22,5 +22,5 @@ import { __decorate, __param } from 'tslib'; | ||
let supportsResizeObserver = false; | ||
if (typeof window !== 'undefined') { | ||
supportsIntersectionObserver = 'IntersectionObserver' in window; | ||
supportsResizeObserver = 'ResizeObserver' in window; | ||
if (typeof window !== "undefined") { | ||
supportsIntersectionObserver = "IntersectionObserver" in window; | ||
supportsResizeObserver = "ResizeObserver" in window; | ||
} | ||
@@ -77,2 +77,24 @@ function inView(host, options = { | ||
} | ||
function onlyTippyProps(allProps) { | ||
const tippyProps = {}; | ||
const ownProps = [ | ||
"variations", | ||
"useHostWidth", | ||
"defaultVariation", | ||
"beforeRender", | ||
"lazy", | ||
"variation", | ||
"isEnabled", | ||
"className", | ||
"onlyTextOverflow", | ||
"data", | ||
"content" | ||
]; | ||
Object.keys(allProps).forEach(prop => { | ||
if (!ownProps.includes(prop)) { | ||
tippyProps[prop] = allProps[prop]; | ||
} | ||
}); | ||
return tippyProps; | ||
} | ||
@@ -109,2 +131,3 @@ let TippyDirective = class TippyDirective { | ||
variation = changes.variation.currentValue; | ||
this.variationDefined = true; | ||
} | ||
@@ -122,4 +145,2 @@ else if (!this.variationDefined) { | ||
} | ||
// We don't want to save the content, we control it manually | ||
delete props.content; | ||
this.setProps(props); | ||
@@ -190,3 +211,3 @@ } | ||
this.props = props; | ||
(_a = this.instance) === null || _a === void 0 ? void 0 : _a.setProps(props); | ||
(_a = this.instance) === null || _a === void 0 ? void 0 : _a.setProps(onlyTippyProps(props)); | ||
} | ||
@@ -201,3 +222,3 @@ setStatus() { | ||
createInstance() { | ||
this.instance = tippy(this.host.nativeElement, Object.assign(Object.assign(Object.assign({ allowHTML: true, appendTo: document.body }, this.globalConfig), this.props), { onMount: instance => { | ||
this.instance = tippy(this.host.nativeElement, Object.assign(Object.assign(Object.assign({ allowHTML: true, appendTo: document.body }, onlyTippyProps(this.globalConfig)), onlyTippyProps(this.props)), { onMount: instance => { | ||
var _a, _b; | ||
@@ -425,9 +446,8 @@ this.isVisible = true; | ||
create(host, content, options = {}) { | ||
let view; | ||
const config = Object.assign(Object.assign(Object.assign({ $viewOptions: undefined, onShow: instance => { | ||
const config = Object.assign(Object.assign(Object.assign({ onShow: instance => { | ||
var _a; | ||
if (!config.$viewOptions) { | ||
config.$viewOptions = {}; | ||
if (!instance.$viewOptions) { | ||
instance.$viewOptions = {}; | ||
if (isTemplateRef(content)) { | ||
config.$viewOptions.context = { | ||
instance.$viewOptions.context = { | ||
$implicit: instance.hide.bind(instance) | ||
@@ -437,3 +457,3 @@ }; | ||
else if (isComponent(content)) { | ||
config.$viewOptions.injector = Injector.create({ | ||
instance.$viewOptions.injector = Injector.create({ | ||
providers: [{ provide: TIPPY_REF, useValue: instance }], | ||
@@ -444,19 +464,12 @@ parent: options.injector || this.injector | ||
} | ||
view = this.view.createView(content, Object.assign(Object.assign({}, options), config.$viewOptions)); | ||
instance.setContent(view.getElement()); | ||
instance.view = this.view.createView(content, Object.assign(Object.assign({}, options), instance.$viewOptions)); | ||
instance.setContent(instance.view.getElement()); | ||
(_a = options === null || options === void 0 ? void 0 : options.onShow) === null || _a === void 0 ? void 0 : _a.call(options, instance); | ||
}, onHidden: instance => { | ||
var _a; | ||
view.destroy(); | ||
instance.view.destroy(); | ||
(_a = options === null || options === void 0 ? void 0 : options.onHidden) === null || _a === void 0 ? void 0 : _a.call(options, instance); | ||
view = null; | ||
} }, this.globalConfig), this.globalConfig.variations[options.variation || this.globalConfig.defaultVariation]), options); | ||
const instance = tippy(host, config); | ||
const original = instance.destroy; | ||
instance.destroy = () => { | ||
original.call(tippy); | ||
view === null || view === void 0 ? void 0 : view.destroy(); | ||
view = null; | ||
}; | ||
return instance; | ||
instance.view = null; | ||
} }, onlyTippyProps(this.globalConfig)), this.globalConfig.variations[options.variation || this.globalConfig.defaultVariation]), onlyTippyProps(options)); | ||
return tippy(host, config); | ||
} | ||
@@ -479,3 +492,3 @@ }; | ||
export { TIPPY_REF, TippyDirective, TippyModule, TippyService, inView, overflowChanges, popperVariation, tooltipVariation, withContextMenuVariation, TIPPY_CONFIG as ɵa }; | ||
export { TIPPY_CONFIG, TIPPY_REF, TippyDirective, TippyModule, TippyService, inView, overflowChanges, popperVariation, tooltipVariation, withContextMenuVariation }; | ||
//# sourceMappingURL=ngneat-helipopper.js.map |
@@ -22,5 +22,5 @@ import { __assign, __decorate, __param } from 'tslib'; | ||
var supportsResizeObserver = false; | ||
if (typeof window !== 'undefined') { | ||
supportsIntersectionObserver = 'IntersectionObserver' in window; | ||
supportsResizeObserver = 'ResizeObserver' in window; | ||
if (typeof window !== "undefined") { | ||
supportsIntersectionObserver = "IntersectionObserver" in window; | ||
supportsResizeObserver = "ResizeObserver" in window; | ||
} | ||
@@ -78,2 +78,24 @@ function inView(host, options) { | ||
} | ||
function onlyTippyProps(allProps) { | ||
var tippyProps = {}; | ||
var ownProps = [ | ||
"variations", | ||
"useHostWidth", | ||
"defaultVariation", | ||
"beforeRender", | ||
"lazy", | ||
"variation", | ||
"isEnabled", | ||
"className", | ||
"onlyTextOverflow", | ||
"data", | ||
"content" | ||
]; | ||
Object.keys(allProps).forEach(function (prop) { | ||
if (!ownProps.includes(prop)) { | ||
tippyProps[prop] = allProps[prop]; | ||
} | ||
}); | ||
return tippyProps; | ||
} | ||
@@ -110,2 +132,3 @@ var TippyDirective = /** @class */ (function () { | ||
variation = changes.variation.currentValue; | ||
this.variationDefined = true; | ||
} | ||
@@ -123,4 +146,2 @@ else if (!this.variationDefined) { | ||
} | ||
// We don't want to save the content, we control it manually | ||
delete props.content; | ||
this.setProps(props); | ||
@@ -192,3 +213,3 @@ }; | ||
this.props = props; | ||
(_a = this.instance) === null || _a === void 0 ? void 0 : _a.setProps(props); | ||
(_a = this.instance) === null || _a === void 0 ? void 0 : _a.setProps(onlyTippyProps(props)); | ||
}; | ||
@@ -208,3 +229,3 @@ TippyDirective.prototype.setStatus = function () { | ||
var _this = this; | ||
this.instance = tippy(this.host.nativeElement, __assign(__assign(__assign({ allowHTML: true, appendTo: document.body }, this.globalConfig), this.props), { onMount: function (instance) { | ||
this.instance = tippy(this.host.nativeElement, __assign(__assign(__assign({ allowHTML: true, appendTo: document.body }, onlyTippyProps(this.globalConfig)), onlyTippyProps(this.props)), { onMount: function (instance) { | ||
var _a, _b; | ||
@@ -441,9 +462,8 @@ _this.isVisible = true; | ||
if (options === void 0) { options = {}; } | ||
var view; | ||
var config = __assign(__assign(__assign({ $viewOptions: undefined, onShow: function (instance) { | ||
var config = __assign(__assign(__assign({ onShow: function (instance) { | ||
var _a; | ||
if (!config.$viewOptions) { | ||
config.$viewOptions = {}; | ||
if (!instance.$viewOptions) { | ||
instance.$viewOptions = {}; | ||
if (isTemplateRef(content)) { | ||
config.$viewOptions.context = { | ||
instance.$viewOptions.context = { | ||
$implicit: instance.hide.bind(instance) | ||
@@ -453,3 +473,3 @@ }; | ||
else if (isComponent(content)) { | ||
config.$viewOptions.injector = Injector.create({ | ||
instance.$viewOptions.injector = Injector.create({ | ||
providers: [{ provide: TIPPY_REF, useValue: instance }], | ||
@@ -460,19 +480,12 @@ parent: options.injector || _this.injector | ||
} | ||
view = _this.view.createView(content, __assign(__assign({}, options), config.$viewOptions)); | ||
instance.setContent(view.getElement()); | ||
instance.view = _this.view.createView(content, __assign(__assign({}, options), instance.$viewOptions)); | ||
instance.setContent(instance.view.getElement()); | ||
(_a = options === null || options === void 0 ? void 0 : options.onShow) === null || _a === void 0 ? void 0 : _a.call(options, instance); | ||
}, onHidden: function (instance) { | ||
var _a; | ||
view.destroy(); | ||
instance.view.destroy(); | ||
(_a = options === null || options === void 0 ? void 0 : options.onHidden) === null || _a === void 0 ? void 0 : _a.call(options, instance); | ||
view = null; | ||
} }, this.globalConfig), this.globalConfig.variations[options.variation || this.globalConfig.defaultVariation]), options); | ||
var instance = tippy(host, config); | ||
var original = instance.destroy; | ||
instance.destroy = function () { | ||
original.call(tippy); | ||
view === null || view === void 0 ? void 0 : view.destroy(); | ||
view = null; | ||
}; | ||
return instance; | ||
instance.view = null; | ||
} }, onlyTippyProps(this.globalConfig)), this.globalConfig.variations[options.variation || this.globalConfig.defaultVariation]), onlyTippyProps(options)); | ||
return tippy(host, config); | ||
}; | ||
@@ -496,3 +509,3 @@ TippyService.ctorParameters = function () { return [ | ||
export { TIPPY_REF, TippyDirective, TippyModule, TippyService, inView, overflowChanges, popperVariation, tooltipVariation, withContextMenuVariation, TIPPY_CONFIG as ɵa }; | ||
export { TIPPY_CONFIG, TIPPY_REF, TippyDirective, TippyModule, TippyService, inView, overflowChanges, popperVariation, tooltipVariation, withContextMenuVariation }; | ||
//# sourceMappingURL=ngneat-helipopper.js.map |
import { Injector } from "@angular/core"; | ||
import { ViewService } from "@ngneat/overview"; | ||
import { Content } from "@ngneat/overview"; | ||
import { Content, ViewService } from "@ngneat/overview"; | ||
import { CreateOptions, TippyConfig, TippyInstance } from "./tippy.types"; | ||
@@ -5,0 +4,0 @@ export declare class TippyService { |
@@ -1,5 +0,6 @@ | ||
import { Observable } from 'rxjs'; | ||
import { TippyElement } from './tippy.types'; | ||
import { Observable } from "rxjs"; | ||
import { TippyElement } from "./tippy.types"; | ||
export declare function inView(host: TippyElement, options?: IntersectionObserverInit): Observable<unknown>; | ||
export declare function overflowChanges(host: TippyElement): Observable<boolean>; | ||
export declare function dimensionsChanges(target: HTMLElement): Observable<boolean>; | ||
export declare function onlyTippyProps(allProps: any): {}; |
@@ -5,2 +5,2 @@ /** | ||
export * from './public-api'; | ||
export { TIPPY_CONFIG as ɵa, TippyConfig as ɵb } from './lib/tippy.types'; | ||
export { TippyConfig as ɵa } from './lib/tippy.types'; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"TippyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TippyDirective"}],"exports":[{"__symbolic":"reference","name":"TippyDirective"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"defaults":[{}],"value":{"ngModule":{"__symbolic":"reference","name":"TippyModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵa"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"TippyDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":22,"character":1},"arguments":[{"selector":"[tippy]","exportAs":"tippy"}]}],"members":{"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"delay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"hideOnClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"interactive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"interactiveBorder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"maxWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"popperOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"showOnCreate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"trigger":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"triggerTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"zIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":3}}]}],"lazy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"variation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"isEnabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"onlyTextOverflow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"useHostWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3},"arguments":["tippy"]}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":51,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":64,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":64,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":65,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵa"}]}],null,null,null,null,null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":66,"character":22},{"__symbolic":"reference","module":"@ngneat/overview","name":"ViewService","line":67,"character":25},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":68,"character":17},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":69,"character":18},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":70,"character":18}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"destroyView":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"enable":[{"__symbolic":"method"}],"disable":[{"__symbolic":"method"}],"setProps":[{"__symbolic":"method"}],"setStatus":[{"__symbolic":"method"}],"createInstance":[{"__symbolic":"method"}],"resolveContent":[{"__symbolic":"method"}],"handleContextMenu":[{"__symbolic":"method"}],"checkOverflow":[{"__symbolic":"method"}]}},"tooltipVariation":{"theme":null,"arrow":false,"animation":"scale","trigger":"mouseenter","offset":[0,5]},"popperVariation":{"theme":"light","arrow":true,"offset":[0,10],"animation":null,"trigger":"click","interactive":true},"withContextMenuVariation":{"__symbolic":"function","parameters":["baseVariation"],"value":{"placement":"right-start","trigger":"manual","arrow":false,"offset":[0,0]}},"TippyService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":9,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵa"}]}],null,null],"parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@ngneat/overview","name":"ViewService","line":10,"character":18},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":11,"character":22}]}],"create":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"inView":{"__symbolic":"function"},"overflowChanges":{"__symbolic":"function"},"ɵa":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":23,"character":32},"arguments":["Tippy config",{"providedIn":"root"}]},"ɵb":{"__symbolic":"interface"},"TippyInstance":{"__symbolic":"interface"},"TIPPY_REF":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":29,"character":29},"arguments":["TIPPY_REF"]}},"origins":{"TippyModule":"./lib/tippy.module","TippyDirective":"./lib/tippy.directive","tooltipVariation":"./lib/defaults","popperVariation":"./lib/defaults","withContextMenuVariation":"./lib/defaults","TippyService":"./lib/tippy.service","inView":"./lib/utils","overflowChanges":"./lib/utils","ɵa":"./lib/tippy.types","ɵb":"./lib/tippy.types","TippyInstance":"./lib/tippy.types","TIPPY_REF":"./lib/tippy.types"},"importAs":"@ngneat/helipopper"} | ||
{"__symbolic":"module","version":4,"metadata":{"TippyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TippyDirective"}],"exports":[{"__symbolic":"reference","name":"TippyDirective"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"defaults":[{}],"value":{"ngModule":{"__symbolic":"reference","name":"TippyModule"},"providers":[{"provide":{"__symbolic":"reference","name":"TIPPY_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"TippyDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":22,"character":1},"arguments":[{"selector":"[tippy]","exportAs":"tippy"}]}],"members":{"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"delay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"hideOnClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"interactive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"interactiveBorder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"maxWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"popperOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"showOnCreate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"trigger":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"triggerTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"zIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":3}}]}],"lazy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"variation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"isEnabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"onlyTextOverflow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"useHostWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3},"arguments":["tippy"]}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":51,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":64,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":64,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":65,"character":5},"arguments":[{"__symbolic":"reference","name":"TIPPY_CONFIG"}]}],null,null,null,null,null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":66,"character":22},{"__symbolic":"reference","module":"@ngneat/overview","name":"ViewService","line":67,"character":25},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":68,"character":17},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":69,"character":18},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":70,"character":18}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"destroyView":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"enable":[{"__symbolic":"method"}],"disable":[{"__symbolic":"method"}],"setProps":[{"__symbolic":"method"}],"setStatus":[{"__symbolic":"method"}],"createInstance":[{"__symbolic":"method"}],"resolveContent":[{"__symbolic":"method"}],"handleContextMenu":[{"__symbolic":"method"}],"checkOverflow":[{"__symbolic":"method"}]}},"tooltipVariation":{"theme":null,"arrow":false,"animation":"scale","trigger":"mouseenter","offset":[0,5]},"popperVariation":{"theme":"light","arrow":true,"offset":[0,10],"animation":null,"trigger":"click","interactive":true},"withContextMenuVariation":{"__symbolic":"function","parameters":["baseVariation"],"value":{"placement":"right-start","trigger":"manual","arrow":false,"offset":[0,0]}},"TippyService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":9,"character":5},"arguments":[{"__symbolic":"reference","name":"TIPPY_CONFIG"}]}],null,null],"parameters":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","module":"@ngneat/overview","name":"ViewService","line":10,"character":18},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":11,"character":22}]}],"create":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"inView":{"__symbolic":"function"},"overflowChanges":{"__symbolic":"function"},"ɵa":{"__symbolic":"interface"},"TippyInstance":{"__symbolic":"interface"},"TIPPY_REF":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":29,"character":29},"arguments":["TIPPY_REF"]},"TIPPY_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":23,"character":32},"arguments":["Tippy config",{"providedIn":"root"}]}},"origins":{"TippyModule":"./lib/tippy.module","TippyDirective":"./lib/tippy.directive","tooltipVariation":"./lib/defaults","popperVariation":"./lib/defaults","withContextMenuVariation":"./lib/defaults","TippyService":"./lib/tippy.service","inView":"./lib/utils","overflowChanges":"./lib/utils","ɵa":"./lib/tippy.types","TippyInstance":"./lib/tippy.types","TIPPY_REF":"./lib/tippy.types","TIPPY_CONFIG":"./lib/tippy.types"},"importAs":"@ngneat/helipopper"} |
{ | ||
"name": "@ngneat/helipopper", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "A Powerful Tooltip and Popover for Angular Applications", | ||
@@ -5,0 +5,0 @@ "schematics": "./schematics/collection.json", |
@@ -6,2 +6,2 @@ export { TippyModule } from "./lib/tippy.module"; | ||
export { inView, overflowChanges } from "./lib/utils"; | ||
export { TippyInstance, TIPPY_REF } from "./lib/tippy.types"; | ||
export { TippyInstance, TIPPY_REF, TIPPY_CONFIG } from "./lib/tippy.types"; |
@@ -141,2 +141,18 @@ <p align="center"> | ||
Note that it's using [`ResizeObserver`](https://caniuse.com/resizeobserver) api. | ||
### Lazy | ||
You can pass the `lazy` input when you want to defer the creation of tippy only when the element is in the view: | ||
```html | ||
<div *ngFor="let item of items" | ||
[tippy]="item.label" | ||
[lazy]="true">{{ item.label }} | ||
</div> | ||
``` | ||
Note that it's using [`IntersectionObserver`](https://caniuse.com/intersectionobserver) api. | ||
### Context Menu | ||
@@ -143,0 +159,0 @@ First, define the `contextMenu` variation: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
462182
4578
306