@ngneat/helipopper
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -292,5 +292,2 @@ (function (global, factory) { | ||
} | ||
function zoneStable(zone) { | ||
return zone.onStable.pipe(operators.take(1)); | ||
} | ||
function isString(value) { | ||
@@ -424,5 +421,7 @@ return typeof value === 'string'; | ||
else { | ||
rxjs.forkJoin([inView(this.host.nativeElement), zoneStable(this.zone)]) | ||
.pipe(operators.takeUntil(this._destroy)) | ||
.subscribe(function () { return _this.create(); }); | ||
requestAnimationFrame(function () { | ||
inView(_this.host.nativeElement) | ||
.pipe(operators.takeUntil(_this._destroy)) | ||
.subscribe(function () { return _this.create(); }); | ||
}); | ||
} | ||
@@ -578,3 +577,3 @@ }, | ||
if (this.showOnlyOnTextOverflow) { | ||
zoneStable(this.zone).subscribe(function () { return _this.markDisabled(_this.isElementOverflow() === false); }); | ||
requestAnimationFrame(function () { return _this.markDisabled(_this.isElementOverflow() === false); }); | ||
} | ||
@@ -581,0 +580,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("tippy.js"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@ngneat/helipopper",["exports","@angular/core","tippy.js","rxjs","rxjs/operators"],t):t(((e=e||self).ngneat=e.ngneat||{},e.ngneat.helipopper={}),e.ng.core,e.tippy,e.rxjs,e.rxjs.operators)}(this,(function(e,t,o,n,i){"use strict";o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o;var r=function(){return(r=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function p(e,t,o,n){var i,r=arguments.length,p=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(p=(r<3?i(p):r>3?i(t,o,p):i(t,o))||p);return r>3&&p&&Object.defineProperty(t,o,p),p}function s(e,t){return function(o,n){t(o,n,e)}}function l(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),p=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)p.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return p}var c="IntersectionObserver"in window;var a="ResizeObserver"in window;function h(e,t){return a?function(e,t){void 0===t&&(t={box:"border-box"});return new n.Observable((function(o){var n=new ResizeObserver((function(e){var t=l(e,1)[0];t.borderBoxSize?o.next({width:t.borderBoxSize.inlineSize,height:t.borderBoxSize.blockSize}):o.next({width:t.target.offsetWidth,height:t.target.offsetHeight})}));return n.observe(e,t),function(){return n.disconnect()}}))}(e,t).pipe(i.auditTime(150)):function(e){return n.fromEvent(window,"resize").pipe(i.auditTime(150),i.map((function(){return{width:e.offsetWidth,height:e.offsetHeight}})),i.distinctUntilChanged((function(e,t){return e.width===t.width&&e.height===t.height})))}(e)}function u(e){return e instanceof t.ElementRef?e.nativeElement:e}function f(e){return e.onStable.pipe(i.take(1))}function d(e,t){Array.isArray(t)?t.forEach((function(t){return e.classList.add(t)})):e.classList.add(t)}var v=function(){function e(e){this.viewRef=e.createEmbeddedView({}),this.viewRef.detectChanges()}return Object.defineProperty(e.prototype,"elementRef",{get:function(){return this.viewRef.rootNodes[0]},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.viewRef.destroy()},e}(),y=new t.InjectionToken("HELIPOPPER_CONFIG"),g={options:{},textOverflow:!1,appendTo:document.body,placement:"top",variation:"tooltip",disabled:!1,allowClose:!0},b=function(){function e(e,t,o,i,r,p){this.host=e,this.appRef=t,this.zone=o,this.resolver=i,this.hostInjector=r,this.config=p,this.helipopperOptions=g.options,this.showOnlyOnTextOverflow=g.textOverflow,this.helipopperAppendTo=g.appendTo,this.helipopperAllowClose=g.allowClose,this.helipopperClose=new n.Subject,this.helipopperVisible=new n.Subject,this._destroy=new n.Subject,this._placement=g.placement,this._disabled=!1,this._variation=g.variation,this.whenStable=new n.Subject,this.mergedConfig=this.createConfig(p)}return Object.defineProperty(e.prototype,"placement",{set:function(e){this._placement=e,this.setProps({placement:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"variation",{set:function(e){this._variation=e,this.setProps(this.resolveTheme())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{set:function(e){this._disabled=e,this.markDisabled(this._disabled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sticky",{set:function(e){this.instance&&(e?(this.setProps({trigger:"manual",hideOnClick:!1}),this.show()):(this.hide(),this.setProps({trigger:this.helipopperTrigger})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"helipopper",{set:function(e){var t,o,r=this;this._content=e,this.instance?this.checkOverflow():n.forkJoin([(t=this.host.nativeElement,void 0===o&&(o={root:null,threshold:.3}),new n.Observable((function(e){c||(e.next(),e.complete());var n=new IntersectionObserver((function(t){l(t,1)[0].isIntersecting&&(e.next(),e.complete())}),o);return n.observe(t),function(){return n.disconnect()}}))),f(this.zone)]).pipe(i.takeUntil(this._destroy)).subscribe((function(){return r.create()}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_tooltipTarget",{get:function(){return u(this.triggerTarget)||this.host.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_tooltipHost",{get:function(){return u(this.helipopperHost)||this.host.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTooltip",{get:function(){return"tooltip"===this._variation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPopper",{get:function(){return"popper"===this._variation},enumerable:!0,configurable:!0}),e.prototype.setProps=function(e){this.instance&&this.instance.setProps(e)},e.prototype.hide=function(){this.instance.hide()},e.prototype.show=function(){this.instance.show()},e.prototype.ngOnDestroy=function(){this.destroyView(),this.instance&&this.instance.destroy(),this.instance=null,this._destroy.next()},e.prototype.destroy=function(){this.ngOnDestroy()},e.prototype.destroyView=function(){this.tplPortal&&this.destroyTemplate(),this.innerComponentRef&&this.destroyComponent()},e.prototype.create=function(){var e=this;this.zone.runOutsideAngular((function(){return e.createInstance()}))},e.prototype.createInstance=function(){var e=this;this.showOnlyOnTextOverflow&&h(this._tooltipHost).pipe(i.takeUntil(this._destroy)).subscribe((function(){e.markDisabled(!1===e.isElementOverflow())})),this.helipopperTrigger=this.resolveTrigger(),this.instance=o(this._tooltipHost,r(r({content:void 0,appendTo:this.getParent(),arrow:!this.isTooltip,allowHTML:!0,zIndex:1e6,trigger:this.helipopperTrigger,placement:this._placement,triggerTarget:this._tooltipTarget,hideOnClick:this.helipopperAllowClose,onCreate:function(t){e.helipopperClass&&d(t.popper,e.helipopperClass)},onShow:function(t){e.zone.run((function(){return e.instance.setContent(e.resolveContent())})),e.helipopperAllowClose&&e.isPopper&&e.addCloseButton(t),e.helipopperVisible.next(!0)},onHidden:function(t){e.helipopperAllowClose&&e.isPopper&&e.removeCloseButton(t),e.destroyView(),e.helipopperClose.next(),e.helipopperVisible.next(!1)}},this.resolveTheme()),this.helipopperOptions)),this.whenStable.next(!0),this.markDisabled(this._disabled)},e.prototype.resolveTrigger=function(){return this.helipopperTrigger||(this.isTooltip?"mouseenter":"click")},e.prototype.resolveTemplate=function(e){return this.tplPortal&&this.destroyTemplate(),this.tplPortal=new v(e),this.appRef.attachView(this.tplPortal.viewRef),this.tplPortal.elementRef},e.prototype.isElementOverflow=function(){var e=this._tooltipTarget,t=e.parentElement,o=e.offsetWidth>t.offsetWidth,n=e.offsetWidth<e.scrollWidth;return o||n},e.prototype.getParent=function(){var e,t,o;return"string"==typeof this.helipopperAppendTo?(t=this.host.nativeElement,o=this.helipopperAppendTo,window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,o=(this.document||this.ownerDocument).querySelectorAll(e),n=this;do{for(t=o.length;--t>=0&&o.item(t)!==n;);}while(t<0&&(n=n.parentElement));return n}),e=t.closest(o)):e=this.helipopperAppendTo,e||document.body},e.prototype.markDisabled=function(e){void 0===e&&(e=!0),this.instance&&(e?this.instance.disable():this.instance.enable())},e.prototype.resolveTheme=function(){return{offset:this.helipopperOffset||[0,this.isTooltip?5:10],theme:this.isTooltip?null:"light",arrow:!1===this.isTooltip,animation:this.isTooltip?"scale":null,interactive:!this.isTooltip}},e.prototype.addCloseButton=function(e){var t,o=this,i=e.popper,r=this.mergedConfig.closeIcon,p=(t="div",document.createElement(t));d(p,"tippy-close"),p.innerHTML=r;var s=n.fromEvent(p,"click").subscribe((function(){return o.hide()}));i.appendChild(p),e.closeButtonElement=p,e.closeButtonSubscription=s},e.prototype.removeCloseButton=function(e){e.popper.removeChild(e.closeButtonElement),e.closeButtonSubscription.unsubscribe(),e.closeButtonElement=null,e.closeButtonSubscription=null},e.prototype.checkOverflow=function(){var e=this;this.showOnlyOnTextOverflow&&f(this.zone).subscribe((function(){return e.markDisabled(!1===e.isElementOverflow())}))},e.prototype.destroyTemplate=function(){this.appRef.detachView(this.tplPortal.viewRef),this.tplPortal.destroy(),this.tplPortal=null},e.prototype.createConfig=function(e){return r(r({},{closeIcon:'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fit="" preserveAspectRatio="xMidYMid meet" focusable="false">\n<path d="M12.793 12l4.039-4.025c0.219-0.219 0.224-0.578 0.012-0.802-0.213-0.225-0.563-0.231-0.782-0.011l-4.062 4.049-4.062-4.049c-0.219-0.22-0.569-0.213-0.782 0.011s-0.208 0.583 0.012 0.802l4.039 4.025-4.039 4.025c-0.22 0.219-0.224 0.578-0.012 0.802 0.108 0.115 0.252 0.172 0.397 0.172 0.138 0 0.278-0.053 0.385-0.161l4.062-4.049 4.062 4.049c0.107 0.108 0.245 0.161 0.385 0.161 0.144 0 0.287-0.058 0.397-0.172 0.212-0.225 0.207-0.583-0.012-0.802l-4.039-4.025z"></path>\n</svg>\n ',beforeRender:function(e){return e}}),e)},e.prototype.resolveComponent=function(e){var t=this.resolver.resolveComponentFactory(e),o=this.injector||this.hostInjector;return this.innerComponentRef=t.create(o),this.appRef.attachView(this.innerComponentRef.hostView),this.innerComponentRef.hostView.detectChanges(),this.innerComponentRef.location.nativeElement},e.prototype.destroyComponent=function(){this.innerComponentRef.destroy(),this.appRef.attachView(this.innerComponentRef.hostView),this.innerComponentRef=null},e.prototype.resolveContent=function(){var e=this._content;return e instanceof t.TemplateRef?this.resolveTemplate(e):"string"==typeof e?this.mergedConfig.beforeRender(e):this.resolveComponent(e)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ApplicationRef},{type:t.NgZone},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:void 0,decorators:[{type:t.Inject,args:[y]}]}]},p([t.Input()],e.prototype,"helipopperOptions",void 0),p([t.Input("helipopperTextOverflow")],e.prototype,"showOnlyOnTextOverflow",void 0),p([t.Input()],e.prototype,"triggerTarget",void 0),p([t.Input()],e.prototype,"helipopperHost",void 0),p([t.Input()],e.prototype,"helipopperAppendTo",void 0),p([t.Input()],e.prototype,"helipopperTrigger",void 0),p([t.Input()],e.prototype,"helipopperAllowClose",void 0),p([t.Input()],e.prototype,"helipopperClass",void 0),p([t.Input()],e.prototype,"helipopperOffset",void 0),p([t.Input("helipopperInjector")],e.prototype,"injector",void 0),p([t.Input("helipopperPlacement")],e.prototype,"placement",null),p([t.Input("helipopperVariation")],e.prototype,"variation",null),p([t.Input("helipopperDisabled")],e.prototype,"disabled",null),p([t.Input("helipopperSticky")],e.prototype,"sticky",null),p([t.Input()],e.prototype,"helipopper",null),p([t.Output()],e.prototype,"helipopperClose",void 0),p([t.Output()],e.prototype,"helipopperVisible",void 0),e=p([t.Directive({selector:"[helipopper]",exportAs:"helipopper"}),s(5,t.Inject(y))],e)}(),m=function(){function e(){}var o;return o=e,e.forRoot=function(e){return void 0===e&&(e={}),{ngModule:o,providers:[{provide:y,useValue:e}]}},e=o=p([t.NgModule({declarations:[b],exports:[b]})],e)}(),w=function(){function e(e,t,o,n,i){this.appRef=e,this.zone=t,this.resolver=o,this.hostInjector=n,this.config=i}return e.prototype.open=function(e,t,o){var n=new b(e,this.appRef,this.zone,this.resolver,this.hostInjector,this.config);return n.helipopper=t,n.helipopperOptions=(null==o?void 0:o.options)||g.options,n.showOnlyOnTextOverflow=O(null==o?void 0:o.textOverflow)?null==o?void 0:o.textOverflow:g.textOverflow,n.triggerTarget=null==o?void 0:o.triggerTarget,n.helipopperAppendTo=(null==o?void 0:o.appendTo)||g.appendTo,n.helipopperTrigger=null==o?void 0:o.trigger,n.helipopperClass=null==o?void 0:o.class,n.helipopperOffset=null==o?void 0:o.offset,n.injector=null==o?void 0:o.injector,n.placement=(null==o?void 0:o.placement)||g.placement,n.variation=(null==o?void 0:o.variation)||g.variation,n.disabled=O(null==o?void 0:o.disabled)?null==o?void 0:o.disabled:g.disabled,n.sticky=null==o?void 0:o.sticky,n.helipopperAllowClose=O(null==o?void 0:o.allowClose)?null==o?void 0:o.allowClose:g.allowClose,n.whenStable.subscribe((function(){return n.show()})),n},e.ctorParameters=function(){return[{type:t.ApplicationRef},{type:t.NgZone},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:void 0,decorators:[{type:t.Inject,args:[y]}]}]},e.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(t.ApplicationRef),t.ɵɵinject(t.NgZone),t.ɵɵinject(t.ComponentFactoryResolver),t.ɵɵinject(t.INJECTOR),t.ɵɵinject(y))},token:e,providedIn:"root"}),e=p([t.Injectable({providedIn:"root"}),s(4,t.Inject(y))],e)}();function O(e){return void 0!==e}e.HelipopperDirective=b,e.HelipopperModule=m,e.HelipopperService=w,e.ɵb=y,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("tippy.js"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@ngneat/helipopper",["exports","@angular/core","tippy.js","rxjs","rxjs/operators"],t):t(((e=e||self).ngneat=e.ngneat||{},e.ngneat.helipopper={}),e.ng.core,e.tippy,e.rxjs,e.rxjs.operators)}(this,(function(e,t,o,n,i){"use strict";o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o;var r=function(){return(r=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function p(e,t,o,n){var i,r=arguments.length,p=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(p=(r<3?i(p):r>3?i(t,o,p):i(t,o))||p);return r>3&&p&&Object.defineProperty(t,o,p),p}function s(e,t){return function(o,n){t(o,n,e)}}function l(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),p=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)p.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return p}var a="IntersectionObserver"in window;var c="ResizeObserver"in window;function h(e,t){return c?function(e,t){void 0===t&&(t={box:"border-box"});return new n.Observable((function(o){var n=new ResizeObserver((function(e){var t=l(e,1)[0];t.borderBoxSize?o.next({width:t.borderBoxSize.inlineSize,height:t.borderBoxSize.blockSize}):o.next({width:t.target.offsetWidth,height:t.target.offsetHeight})}));return n.observe(e,t),function(){return n.disconnect()}}))}(e,t).pipe(i.auditTime(150)):function(e){return n.fromEvent(window,"resize").pipe(i.auditTime(150),i.map((function(){return{width:e.offsetWidth,height:e.offsetHeight}})),i.distinctUntilChanged((function(e,t){return e.width===t.width&&e.height===t.height})))}(e)}function u(e){return e instanceof t.ElementRef?e.nativeElement:e}function f(e,t){Array.isArray(t)?t.forEach((function(t){return e.classList.add(t)})):e.classList.add(t)}var d=function(){function e(e){this.viewRef=e.createEmbeddedView({}),this.viewRef.detectChanges()}return Object.defineProperty(e.prototype,"elementRef",{get:function(){return this.viewRef.rootNodes[0]},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.viewRef.destroy()},e}(),v=new t.InjectionToken("HELIPOPPER_CONFIG"),y={options:{},textOverflow:!1,appendTo:document.body,placement:"top",variation:"tooltip",disabled:!1,allowClose:!0},g=function(){function e(e,t,o,i,r,p){this.host=e,this.appRef=t,this.zone=o,this.resolver=i,this.hostInjector=r,this.config=p,this.helipopperOptions=y.options,this.showOnlyOnTextOverflow=y.textOverflow,this.helipopperAppendTo=y.appendTo,this.helipopperAllowClose=y.allowClose,this.helipopperClose=new n.Subject,this.helipopperVisible=new n.Subject,this._destroy=new n.Subject,this._placement=y.placement,this._disabled=!1,this._variation=y.variation,this.whenStable=new n.Subject,this.mergedConfig=this.createConfig(p)}return Object.defineProperty(e.prototype,"placement",{set:function(e){this._placement=e,this.setProps({placement:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"variation",{set:function(e){this._variation=e,this.setProps(this.resolveTheme())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{set:function(e){this._disabled=e,this.markDisabled(this._disabled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sticky",{set:function(e){this.instance&&(e?(this.setProps({trigger:"manual",hideOnClick:!1}),this.show()):(this.hide(),this.setProps({trigger:this.helipopperTrigger})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"helipopper",{set:function(e){var t=this;this._content=e,this.instance?this.checkOverflow():requestAnimationFrame((function(){var e,o;(e=t.host.nativeElement,void 0===o&&(o={root:null,threshold:.3}),new n.Observable((function(t){a||(t.next(),t.complete());var n=new IntersectionObserver((function(e){l(e,1)[0].isIntersecting&&(t.next(),t.complete())}),o);return n.observe(e),function(){return n.disconnect()}}))).pipe(i.takeUntil(t._destroy)).subscribe((function(){return t.create()}))}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_tooltipTarget",{get:function(){return u(this.triggerTarget)||this.host.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_tooltipHost",{get:function(){return u(this.helipopperHost)||this.host.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTooltip",{get:function(){return"tooltip"===this._variation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPopper",{get:function(){return"popper"===this._variation},enumerable:!0,configurable:!0}),e.prototype.setProps=function(e){this.instance&&this.instance.setProps(e)},e.prototype.hide=function(){this.instance.hide()},e.prototype.show=function(){this.instance.show()},e.prototype.ngOnDestroy=function(){this.destroyView(),this.instance&&this.instance.destroy(),this.instance=null,this._destroy.next()},e.prototype.destroy=function(){this.ngOnDestroy()},e.prototype.destroyView=function(){this.tplPortal&&this.destroyTemplate(),this.innerComponentRef&&this.destroyComponent()},e.prototype.create=function(){var e=this;this.zone.runOutsideAngular((function(){return e.createInstance()}))},e.prototype.createInstance=function(){var e=this;this.showOnlyOnTextOverflow&&h(this._tooltipHost).pipe(i.takeUntil(this._destroy)).subscribe((function(){e.markDisabled(!1===e.isElementOverflow())})),this.helipopperTrigger=this.resolveTrigger(),this.instance=o(this._tooltipHost,r(r({content:void 0,appendTo:this.getParent(),arrow:!this.isTooltip,allowHTML:!0,zIndex:1e6,trigger:this.helipopperTrigger,placement:this._placement,triggerTarget:this._tooltipTarget,hideOnClick:this.helipopperAllowClose,onCreate:function(t){e.helipopperClass&&f(t.popper,e.helipopperClass)},onShow:function(t){e.zone.run((function(){return e.instance.setContent(e.resolveContent())})),e.helipopperAllowClose&&e.isPopper&&e.addCloseButton(t),e.helipopperVisible.next(!0)},onHidden:function(t){e.helipopperAllowClose&&e.isPopper&&e.removeCloseButton(t),e.destroyView(),e.helipopperClose.next(),e.helipopperVisible.next(!1)}},this.resolveTheme()),this.helipopperOptions)),this.whenStable.next(!0),this.markDisabled(this._disabled)},e.prototype.resolveTrigger=function(){return this.helipopperTrigger||(this.isTooltip?"mouseenter":"click")},e.prototype.resolveTemplate=function(e){return this.tplPortal&&this.destroyTemplate(),this.tplPortal=new d(e),this.appRef.attachView(this.tplPortal.viewRef),this.tplPortal.elementRef},e.prototype.isElementOverflow=function(){var e=this._tooltipTarget,t=e.parentElement,o=e.offsetWidth>t.offsetWidth,n=e.offsetWidth<e.scrollWidth;return o||n},e.prototype.getParent=function(){var e,t,o;return"string"==typeof this.helipopperAppendTo?(t=this.host.nativeElement,o=this.helipopperAppendTo,window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,o=(this.document||this.ownerDocument).querySelectorAll(e),n=this;do{for(t=o.length;--t>=0&&o.item(t)!==n;);}while(t<0&&(n=n.parentElement));return n}),e=t.closest(o)):e=this.helipopperAppendTo,e||document.body},e.prototype.markDisabled=function(e){void 0===e&&(e=!0),this.instance&&(e?this.instance.disable():this.instance.enable())},e.prototype.resolveTheme=function(){return{offset:this.helipopperOffset||[0,this.isTooltip?5:10],theme:this.isTooltip?null:"light",arrow:!1===this.isTooltip,animation:this.isTooltip?"scale":null,interactive:!this.isTooltip}},e.prototype.addCloseButton=function(e){var t,o=this,i=e.popper,r=this.mergedConfig.closeIcon,p=(t="div",document.createElement(t));f(p,"tippy-close"),p.innerHTML=r;var s=n.fromEvent(p,"click").subscribe((function(){return o.hide()}));i.appendChild(p),e.closeButtonElement=p,e.closeButtonSubscription=s},e.prototype.removeCloseButton=function(e){e.popper.removeChild(e.closeButtonElement),e.closeButtonSubscription.unsubscribe(),e.closeButtonElement=null,e.closeButtonSubscription=null},e.prototype.checkOverflow=function(){var e=this;this.showOnlyOnTextOverflow&&requestAnimationFrame((function(){return e.markDisabled(!1===e.isElementOverflow())}))},e.prototype.destroyTemplate=function(){this.appRef.detachView(this.tplPortal.viewRef),this.tplPortal.destroy(),this.tplPortal=null},e.prototype.createConfig=function(e){return r(r({},{closeIcon:'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fit="" preserveAspectRatio="xMidYMid meet" focusable="false">\n<path d="M12.793 12l4.039-4.025c0.219-0.219 0.224-0.578 0.012-0.802-0.213-0.225-0.563-0.231-0.782-0.011l-4.062 4.049-4.062-4.049c-0.219-0.22-0.569-0.213-0.782 0.011s-0.208 0.583 0.012 0.802l4.039 4.025-4.039 4.025c-0.22 0.219-0.224 0.578-0.012 0.802 0.108 0.115 0.252 0.172 0.397 0.172 0.138 0 0.278-0.053 0.385-0.161l4.062-4.049 4.062 4.049c0.107 0.108 0.245 0.161 0.385 0.161 0.144 0 0.287-0.058 0.397-0.172 0.212-0.225 0.207-0.583-0.012-0.802l-4.039-4.025z"></path>\n</svg>\n ',beforeRender:function(e){return e}}),e)},e.prototype.resolveComponent=function(e){var t=this.resolver.resolveComponentFactory(e),o=this.injector||this.hostInjector;return this.innerComponentRef=t.create(o),this.appRef.attachView(this.innerComponentRef.hostView),this.innerComponentRef.hostView.detectChanges(),this.innerComponentRef.location.nativeElement},e.prototype.destroyComponent=function(){this.innerComponentRef.destroy(),this.appRef.attachView(this.innerComponentRef.hostView),this.innerComponentRef=null},e.prototype.resolveContent=function(){var e=this._content;return e instanceof t.TemplateRef?this.resolveTemplate(e):"string"==typeof e?this.mergedConfig.beforeRender(e):this.resolveComponent(e)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ApplicationRef},{type:t.NgZone},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:void 0,decorators:[{type:t.Inject,args:[v]}]}]},p([t.Input()],e.prototype,"helipopperOptions",void 0),p([t.Input("helipopperTextOverflow")],e.prototype,"showOnlyOnTextOverflow",void 0),p([t.Input()],e.prototype,"triggerTarget",void 0),p([t.Input()],e.prototype,"helipopperHost",void 0),p([t.Input()],e.prototype,"helipopperAppendTo",void 0),p([t.Input()],e.prototype,"helipopperTrigger",void 0),p([t.Input()],e.prototype,"helipopperAllowClose",void 0),p([t.Input()],e.prototype,"helipopperClass",void 0),p([t.Input()],e.prototype,"helipopperOffset",void 0),p([t.Input("helipopperInjector")],e.prototype,"injector",void 0),p([t.Input("helipopperPlacement")],e.prototype,"placement",null),p([t.Input("helipopperVariation")],e.prototype,"variation",null),p([t.Input("helipopperDisabled")],e.prototype,"disabled",null),p([t.Input("helipopperSticky")],e.prototype,"sticky",null),p([t.Input()],e.prototype,"helipopper",null),p([t.Output()],e.prototype,"helipopperClose",void 0),p([t.Output()],e.prototype,"helipopperVisible",void 0),e=p([t.Directive({selector:"[helipopper]",exportAs:"helipopper"}),s(5,t.Inject(v))],e)}(),m=function(){function e(){}var o;return o=e,e.forRoot=function(e){return void 0===e&&(e={}),{ngModule:o,providers:[{provide:v,useValue:e}]}},e=o=p([t.NgModule({declarations:[g],exports:[g]})],e)}(),b=function(){function e(e,t,o,n,i){this.appRef=e,this.zone=t,this.resolver=o,this.hostInjector=n,this.config=i}return e.prototype.open=function(e,t,o){var n=new g(e,this.appRef,this.zone,this.resolver,this.hostInjector,this.config);return n.helipopper=t,n.helipopperOptions=(null==o?void 0:o.options)||y.options,n.showOnlyOnTextOverflow=w(null==o?void 0:o.textOverflow)?null==o?void 0:o.textOverflow:y.textOverflow,n.triggerTarget=null==o?void 0:o.triggerTarget,n.helipopperAppendTo=(null==o?void 0:o.appendTo)||y.appendTo,n.helipopperTrigger=null==o?void 0:o.trigger,n.helipopperClass=null==o?void 0:o.class,n.helipopperOffset=null==o?void 0:o.offset,n.injector=null==o?void 0:o.injector,n.placement=(null==o?void 0:o.placement)||y.placement,n.variation=(null==o?void 0:o.variation)||y.variation,n.disabled=w(null==o?void 0:o.disabled)?null==o?void 0:o.disabled:y.disabled,n.sticky=null==o?void 0:o.sticky,n.helipopperAllowClose=w(null==o?void 0:o.allowClose)?null==o?void 0:o.allowClose:y.allowClose,n.whenStable.subscribe((function(){return n.show()})),n},e.ctorParameters=function(){return[{type:t.ApplicationRef},{type:t.NgZone},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:void 0,decorators:[{type:t.Inject,args:[v]}]}]},e.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(t.ApplicationRef),t.ɵɵinject(t.NgZone),t.ɵɵinject(t.ComponentFactoryResolver),t.ɵɵinject(t.INJECTOR),t.ɵɵinject(v))},token:e,providedIn:"root"}),e=p([t.Injectable({providedIn:"root"}),s(4,t.Inject(v))],e)}();function w(e){return void 0!==e}e.HelipopperDirective=g,e.HelipopperModule=m,e.HelipopperService=b,e.ɵb=v,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngneat-helipopper.umd.min.js.map |
import { __decorate, __param } from "tslib"; | ||
import { ApplicationRef, ComponentFactoryResolver, ComponentRef, Directive, ElementRef, Inject, Injector, Input, NgZone, OnDestroy, Output, TemplateRef, Type } from '@angular/core'; | ||
import tippy from 'tippy.js'; | ||
import { forkJoin, fromEvent, Subject } from 'rxjs'; | ||
import { addClass, closest, coerceElement, createElement, dimensionsChanges, inView, isString, TemplatePortal, zoneStable } from './utils'; | ||
import { fromEvent, Subject } from 'rxjs'; | ||
import { addClass, closest, coerceElement, createElement, dimensionsChanges, inView, isString, TemplatePortal } from './utils'; | ||
import { takeUntil } from 'rxjs/operators'; | ||
@@ -66,5 +66,7 @@ import { HELIPOPPER_CONFIG } from './helipopper.types'; | ||
else { | ||
forkJoin([inView(this.host.nativeElement), zoneStable(this.zone)]) | ||
.pipe(takeUntil(this._destroy)) | ||
.subscribe(() => this.create()); | ||
requestAnimationFrame(() => { | ||
inView(this.host.nativeElement) | ||
.pipe(takeUntil(this._destroy)) | ||
.subscribe(() => this.create()); | ||
}); | ||
} | ||
@@ -196,3 +198,3 @@ } | ||
if (this.showOnlyOnTextOverflow) { | ||
zoneStable(this.zone).subscribe(() => this.markDisabled(this.isElementOverflow() === false)); | ||
requestAnimationFrame(() => this.markDisabled(this.isElementOverflow() === false)); | ||
} | ||
@@ -306,2 +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WxDb250ZW50ID0gdGhpcy5yZXNvbHZlQ29tcG9uZW50KGNvbnRlbnQpO1xuICAgIH1cblxuICAgIHJldHVybiBmaW5hbENvbnRlbnQ7XG4gIH1cbn1cbiJdfQ== |
import { fromEvent, Observable } from 'rxjs'; | ||
import { auditTime, distinctUntilChanged, map, take } from 'rxjs/operators'; | ||
import { auditTime, distinctUntilChanged, map } from 'rxjs/operators'; | ||
import { ElementRef } from '@angular/core'; | ||
@@ -64,5 +64,2 @@ const hasSupport = 'IntersectionObserver' in window; | ||
} | ||
export function zoneStable(zone) { | ||
return zone.onStable.pipe(take(1)); | ||
} | ||
export function isString(value) { | ||
@@ -107,2 +104,2 @@ return typeof value === 'string'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L2hlbGlwb3BwZXIvIiwic291cmNlcyI6WyJsaWIvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDN0MsT0FBTyxFQUFFLFNBQVMsRUFBRSxvQkFBb0IsRUFBRSxHQUFHLEVBQUUsSUFBSSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDNUUsT0FBTyxFQUFFLFVBQVUsRUFBd0MsTUFBTSxlQUFlLENBQUM7QUFFakYsTUFBTSxVQUFVLEdBQUcsc0JBQXNCLElBQUksTUFBTSxDQUFDO0FBRXBELE1BQU0sVUFBVSxNQUFNLENBQ3BCLE9BQW9CLEVBQ3BCLFVBQW9DO0lBQ2xDLElBQUksRUFBRSxJQUFJO0lBQ1YsU0FBUyxFQUFFLEdBQUc7Q0FDZjtJQUVELE9BQU8sSUFBSSxVQUFVLENBQUMsVUFBVSxDQUFDLEVBQUU7UUFDakMsSUFBSSxDQUFDLFVBQVUsRUFBR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bWVudC5jbG9zZXN0KHNlbGVjdG9yKTtcbn1cblxuZXhwb3J0IGNsYXNzIFRlbXBsYXRlUG9ydGFsIHtcbiAgdmlld1JlZjogRW1iZWRkZWRWaWV3UmVmPGFueT47XG5cbiAgY29uc3RydWN0b3IodHBsOiBUZW1wbGF0ZVJlZjxhbnk+KSB7XG4gICAgdGhpcy52aWV3UmVmID0gdHBsLmNyZWF0ZUVtYmVkZGVkVmlldyh7fSk7XG4gICAgdGhpcy52aWV3UmVmLmRldGVjdENoYW5nZXMoKTtcbiAgfVxuXG4gIGdldCBlbGVtZW50UmVmKCkge1xuICAgIHJldHVybiB0aGlzLnZpZXdSZWYucm9vdE5vZGVzWzBdIGFzIEhUTUxFbGVtZW50O1xuICB9XG5cbiAgZGVzdHJveSgpIHtcbiAgICB0aGlzLnZpZXdSZWYuZGVzdHJveSgpO1xuICB9XG59XG4iXX0= |
import { __assign, __decorate, __param } from "tslib"; | ||
import { ApplicationRef, ComponentFactoryResolver, ComponentRef, Directive, ElementRef, Inject, Injector, Input, NgZone, OnDestroy, Output, TemplateRef, Type } from '@angular/core'; | ||
import tippy from 'tippy.js'; | ||
import { forkJoin, fromEvent, Subject } from 'rxjs'; | ||
import { addClass, closest, coerceElement, createElement, dimensionsChanges, inView, isString, TemplatePortal, zoneStable } from './utils'; | ||
import { fromEvent, Subject } from 'rxjs'; | ||
import { addClass, closest, coerceElement, createElement, dimensionsChanges, inView, isString, TemplatePortal } from './utils'; | ||
import { takeUntil } from 'rxjs/operators'; | ||
@@ -80,5 +80,7 @@ import { HELIPOPPER_CONFIG } from './helipopper.types'; | ||
else { | ||
forkJoin([inView(this.host.nativeElement), zoneStable(this.zone)]) | ||
.pipe(takeUntil(this._destroy)) | ||
.subscribe(function () { return _this.create(); }); | ||
requestAnimationFrame(function () { | ||
inView(_this.host.nativeElement) | ||
.pipe(takeUntil(_this._destroy)) | ||
.subscribe(function () { return _this.create(); }); | ||
}); | ||
} | ||
@@ -234,3 +236,3 @@ }, | ||
if (this.showOnlyOnTextOverflow) { | ||
zoneStable(this.zone).subscribe(function () { return _this.markDisabled(_this.isElementOverflow() === false); }); | ||
requestAnimationFrame(function () { return _this.markDisabled(_this.isElementOverflow() === false); }); | ||
} | ||
@@ -345,2 +347,2 @@ }; | ||
export { HelipopperDirective }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVsaXBvcHBlci5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L2hlbGlwb3BwZXIvIiwic291cmNlcyI6WyJsaWIvaGVsaXBvcHBlci5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFDTCxjQUFjLEVBQ2Qsd0JBQXdCLEVBQ3hCLFlBQVksRUFDWixTQUFTLEVBQ1QsVUFBVSxFQUNWLE1BQU0sRUFDTixRQUFRLEVBQ1IsS0FBSyxFQUNMLE1BQU0sRUFDTixTQUFTLEVBQ1QsTUFBTSxFQUNOLFdBQVcsRUFDWCxJQUFJLEVBQ0wsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxLQUEwQixNQUFNLFVBQVUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsUUFBUSxFQUFFLFNBQVMsRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFcEQsT0FBTyxFQUNMLFFBQVEsRUFDUixPQUFPLEVBQ1AsYUFBYSxFQUNiLGFBQWEsRUFDYixpQkFBaUIsRUFDakIsTUFBTSxFQUNOLFFBQVEsRUFDUixjQUFjLEVBQ2QsVUFBVSxFQUNYLE1BQU0sU0FBUyxDQUFDO0FBQ2pCLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUMzQyxPQUFPLEVBQUUsaUJBQWlCLEVBQWtELE1BQU0sb0JBQW9CLENBQUM7QUFDdkcsT0FBTyxFQUFFLHdCQU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ZWRDb25maWcuYmVmb3JlUmVuZGVyKGNvbnRlbnQpO1xuICAgIH0gZWxzZSB7XG4gICAgICBmaW5hbENvbnRlbnQgPSB0aGlzLnJlc29sdmVDb21wb25lbnQoY29udGVudCk7XG4gICAgfVxuXG4gICAgcmV0dXJuIGZpbmFsQ29udGVudDtcbiAgfVxufVxuIl19 |
import { __read } from "tslib"; | ||
import { fromEvent, Observable } from 'rxjs'; | ||
import { auditTime, distinctUntilChanged, map, take } from 'rxjs/operators'; | ||
import { auditTime, distinctUntilChanged, map } from 'rxjs/operators'; | ||
import { ElementRef } from '@angular/core'; | ||
@@ -69,5 +69,2 @@ var hasSupport = 'IntersectionObserver' in window; | ||
} | ||
export function zoneStable(zone) { | ||
return zone.onStable.pipe(take(1)); | ||
} | ||
export function isString(value) { | ||
@@ -118,2 +115,2 @@ return typeof value === 'string'; | ||
export { TemplatePortal }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbmduZWF0L2hlbGlwb3BwZXIvIiwic291cmNlcyI6WyJsaWIvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzdDLE9BQU8sRUFBRSxTQUFTLEVBQUUsb0JBQW9CLEVBQUUsR0FBRyxFQUFFLElBQUksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzVFLE9BQU8sRUFBRSxVQUFVLEVBQXdDLE1BQU0sZUFBZSxDQUFDO0FBRWpGLElBQU0sVUFBVSxHQUFHLHNCQUFzQixJQUFJLE1BQU0sQ0FBQztBQUVwRCxNQUFNLFVBQVUsTUFBTSxDQUNwQixPQUFvQixFQUNwQixPQUdDO0lBSEQsd0JBQUEsRUFBQTtRQUNFLElBQUksRUFBRSxJQUFJO1FBQ1YsU0FBU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ICAgIGVsID0gdGhpcztcbiAgICAgIGRvIHtcbiAgICAgICAgaSA9IG1hdGNoZXMubGVuZ3RoO1xuICAgICAgICB3aGlsZSAoLS1pID49IDAgJiYgbWF0Y2hlcy5pdGVtKGkpICE9PSBlbCkge31cbiAgICAgIH0gd2hpbGUgKGkgPCAwICYmIChlbCA9IGVsLnBhcmVudEVsZW1lbnQpKTtcbiAgICAgIHJldHVybiBlbDtcbiAgICB9O1xuICB9XG5cbiAgcmV0dXJuIGVsZW1lbnQuY2xvc2VzdChzZWxlY3Rvcik7XG59XG5cbmV4cG9ydCBjbGFzcyBUZW1wbGF0ZVBvcnRhbCB7XG4gIHZpZXdSZWY6IEVtYmVkZGVkVmlld1JlZjxhbnk+O1xuXG4gIGNvbnN0cnVjdG9yKHRwbDogVGVtcGxhdGVSZWY8YW55Pikge1xuICAgIHRoaXMudmlld1JlZiA9IHRwbC5jcmVhdGVFbWJlZGRlZFZpZXcoe30pO1xuICAgIHRoaXMudmlld1JlZi5kZXRlY3RDaGFuZ2VzKCk7XG4gIH1cblxuICBnZXQgZWxlbWVudFJlZigpIHtcbiAgICByZXR1cm4gdGhpcy52aWV3UmVmLnJvb3ROb2Rlc1swXSBhcyBIVE1MRWxlbWVudDtcbiAgfVxuXG4gIGRlc3Ryb3koKSB7XG4gICAgdGhpcy52aWV3UmVmLmRlc3Ryb3koKTtcbiAgfVxufVxuIl19 |
import { __decorate, __param } from 'tslib'; | ||
import { ElementRef, InjectionToken, TemplateRef, ApplicationRef, NgZone, ComponentFactoryResolver, Injector, Inject, Input, Output, Directive, NgModule, ɵɵdefineInjectable, ɵɵinject, INJECTOR, Injectable } from '@angular/core'; | ||
import tippy from 'tippy.js'; | ||
import { Observable, fromEvent, Subject, forkJoin } from 'rxjs'; | ||
import { auditTime, map, distinctUntilChanged, take, takeUntil } from 'rxjs/operators'; | ||
import { Observable, fromEvent, Subject } from 'rxjs'; | ||
import { auditTime, map, distinctUntilChanged, takeUntil } from 'rxjs/operators'; | ||
@@ -67,5 +67,2 @@ const hasSupport = 'IntersectionObserver' in window; | ||
} | ||
function zoneStable(zone) { | ||
return zone.onStable.pipe(take(1)); | ||
} | ||
function isString(value) { | ||
@@ -180,5 +177,7 @@ return typeof value === 'string'; | ||
else { | ||
forkJoin([inView(this.host.nativeElement), zoneStable(this.zone)]) | ||
.pipe(takeUntil(this._destroy)) | ||
.subscribe(() => this.create()); | ||
requestAnimationFrame(() => { | ||
inView(this.host.nativeElement) | ||
.pipe(takeUntil(this._destroy)) | ||
.subscribe(() => this.create()); | ||
}); | ||
} | ||
@@ -310,3 +309,3 @@ } | ||
if (this.showOnlyOnTextOverflow) { | ||
zoneStable(this.zone).subscribe(() => this.markDisabled(this.isElementOverflow() === false)); | ||
requestAnimationFrame(() => this.markDisabled(this.isElementOverflow() === false)); | ||
} | ||
@@ -313,0 +312,0 @@ } |
import { __read, __assign, __decorate, __param } from 'tslib'; | ||
import { ElementRef, InjectionToken, TemplateRef, ApplicationRef, NgZone, ComponentFactoryResolver, Injector, Inject, Input, Output, Directive, NgModule, ɵɵdefineInjectable, ɵɵinject, INJECTOR, Injectable } from '@angular/core'; | ||
import tippy from 'tippy.js'; | ||
import { Observable, fromEvent, Subject, forkJoin } from 'rxjs'; | ||
import { auditTime, map, distinctUntilChanged, take, takeUntil } from 'rxjs/operators'; | ||
import { Observable, fromEvent, Subject } from 'rxjs'; | ||
import { auditTime, map, distinctUntilChanged, takeUntil } from 'rxjs/operators'; | ||
@@ -71,5 +71,2 @@ var hasSupport = 'IntersectionObserver' in window; | ||
} | ||
function zoneStable(zone) { | ||
return zone.onStable.pipe(take(1)); | ||
} | ||
function isString(value) { | ||
@@ -203,5 +200,7 @@ return typeof value === 'string'; | ||
else { | ||
forkJoin([inView(this.host.nativeElement), zoneStable(this.zone)]) | ||
.pipe(takeUntil(this._destroy)) | ||
.subscribe(function () { return _this.create(); }); | ||
requestAnimationFrame(function () { | ||
inView(_this.host.nativeElement) | ||
.pipe(takeUntil(_this._destroy)) | ||
.subscribe(function () { return _this.create(); }); | ||
}); | ||
} | ||
@@ -357,3 +356,3 @@ }, | ||
if (this.showOnlyOnTextOverflow) { | ||
zoneStable(this.zone).subscribe(function () { return _this.markDisabled(_this.isElementOverflow() === false); }); | ||
requestAnimationFrame(function () { return _this.markDisabled(_this.isElementOverflow() === false); }); | ||
} | ||
@@ -360,0 +359,0 @@ }; |
import { Observable } from 'rxjs'; | ||
import { ElementRef, EmbeddedViewRef, NgZone, TemplateRef } from '@angular/core'; | ||
import { ElementRef, EmbeddedViewRef, TemplateRef } from '@angular/core'; | ||
export declare function inView(element: HTMLElement, options?: IntersectionObserverInit): Observable<unknown>; | ||
@@ -13,3 +13,2 @@ interface ResizeObserverOptions { | ||
export declare function coerceElement<T>(elementOrRef: ElementRef<T> | T): T; | ||
export declare function zoneStable(zone: NgZone): Observable<any>; | ||
export declare function isString(value: any): value is string; | ||
@@ -16,0 +15,0 @@ export declare function addClass(element: any, className: string | string[]): void; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"HelipopperModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"HelipopperDirective"}],"exports":[{"__symbolic":"reference","name":"HelipopperDirective"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"defaults":[{}],"value":{"ngModule":{"__symbolic":"reference","name":"HelipopperModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵb"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"HelipopperDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":41,"character":1},"arguments":[{"selector":"[helipopper]","exportAs":"helipopper"}]}],"members":{"helipopperOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"showOnlyOnTextOverflow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3},"arguments":["helipopperTextOverflow"]}]}],"triggerTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"helipopperHost":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":3}}]}],"helipopperAppendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":56,"character":3}}]}],"helipopperTrigger":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":59,"character":3}}]}],"helipopperAllowClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":62,"character":3}}]}],"helipopperClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":65,"character":3}}]}],"helipopperOffset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":68,"character":3}}]}],"injector":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":71,"character":3},"arguments":["helipopperInjector"]}]}],"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":74,"character":3},"arguments":["helipopperPlacement"]}]}],"variation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":80,"character":3},"arguments":["helipopperVariation"]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":86,"character":3},"arguments":["helipopperDisabled"]}]}],"sticky":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":92,"character":3},"arguments":["helipopperSticky"]}]}],"helipopper":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":107,"character":3}}]}],"helipopperClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":119,"character":3}}]}],"helipopperVisible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":120,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":139,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":134,"character":18},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":135,"character":20},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":136,"character":18},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":137,"character":22},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":138,"character":26},{"__symbolic":"reference","name":"ɵa"}]}],"setProps":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"destroyView":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"createInstance":[{"__symbolic":"method"}],"resolveTrigger":[{"__symbolic":"method"}],"resolveTemplate":[{"__symbolic":"method"}],"isElementOverflow":[{"__symbolic":"method"}],"getParent":[{"__symbolic":"method"}],"markDisabled":[{"__symbolic":"method"}],"resolveTheme":[{"__symbolic":"method"}],"addCloseButton":[{"__symbolic":"method"}],"removeCloseButton":[{"__symbolic":"method"}],"checkOverflow":[{"__symbolic":"method"}],"destroyTemplate":[{"__symbolic":"method"}],"createConfig":[{"__symbolic":"method"}],"resolveComponent":[{"__symbolic":"method"}],"destroyComponent":[{"__symbolic":"method"}],"resolveContent":[{"__symbolic":"method"}]}},"HelipopperService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":24,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":20,"character":20},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":21,"character":18},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":22,"character":22},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":23,"character":26},{"__symbolic":"reference","name":"ɵa"}]}],"open":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ɵa":{"__symbolic":"interface"},"ɵb":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":27,"character":37},"arguments":["HELIPOPPER_CONFIG"]}},"origins":{"HelipopperModule":"./lib/helipopper.module","HelipopperDirective":"./lib/helipopper.directive","HelipopperService":"./lib/helipopper.service","ɵa":"./lib/helipopper.types","ɵb":"./lib/helipopper.types"},"importAs":"@ngneat/helipopper"} | ||
{"__symbolic":"module","version":4,"metadata":{"HelipopperModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"HelipopperDirective"}],"exports":[{"__symbolic":"reference","name":"HelipopperDirective"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"defaults":[{}],"value":{"ngModule":{"__symbolic":"reference","name":"HelipopperModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵb"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"HelipopperDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":40,"character":1},"arguments":[{"selector":"[helipopper]","exportAs":"helipopper"}]}],"members":{"helipopperOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"showOnlyOnTextOverflow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3},"arguments":["helipopperTextOverflow"]}]}],"triggerTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"helipopperHost":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"helipopperAppendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":3}}]}],"helipopperTrigger":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3}}]}],"helipopperAllowClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":61,"character":3}}]}],"helipopperClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":64,"character":3}}]}],"helipopperOffset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":67,"character":3}}]}],"injector":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":70,"character":3},"arguments":["helipopperInjector"]}]}],"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":73,"character":3},"arguments":["helipopperPlacement"]}]}],"variation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":79,"character":3},"arguments":["helipopperVariation"]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":85,"character":3},"arguments":["helipopperDisabled"]}]}],"sticky":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":91,"character":3},"arguments":["helipopperSticky"]}]}],"helipopper":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":106,"character":3}}]}],"helipopperClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":120,"character":3}}]}],"helipopperVisible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":121,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":140,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":135,"character":18},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":136,"character":20},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":137,"character":18},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":138,"character":22},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":139,"character":26},{"__symbolic":"reference","name":"ɵa"}]}],"setProps":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"destroyView":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"createInstance":[{"__symbolic":"method"}],"resolveTrigger":[{"__symbolic":"method"}],"resolveTemplate":[{"__symbolic":"method"}],"isElementOverflow":[{"__symbolic":"method"}],"getParent":[{"__symbolic":"method"}],"markDisabled":[{"__symbolic":"method"}],"resolveTheme":[{"__symbolic":"method"}],"addCloseButton":[{"__symbolic":"method"}],"removeCloseButton":[{"__symbolic":"method"}],"checkOverflow":[{"__symbolic":"method"}],"destroyTemplate":[{"__symbolic":"method"}],"createConfig":[{"__symbolic":"method"}],"resolveComponent":[{"__symbolic":"method"}],"destroyComponent":[{"__symbolic":"method"}],"resolveContent":[{"__symbolic":"method"}]}},"HelipopperService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":24,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":20,"character":20},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":21,"character":18},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":22,"character":22},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":23,"character":26},{"__symbolic":"reference","name":"ɵa"}]}],"open":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ɵa":{"__symbolic":"interface"},"ɵb":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":27,"character":37},"arguments":["HELIPOPPER_CONFIG"]}},"origins":{"HelipopperModule":"./lib/helipopper.module","HelipopperDirective":"./lib/helipopper.directive","HelipopperService":"./lib/helipopper.service","ɵa":"./lib/helipopper.types","ɵb":"./lib/helipopper.types"},"importAs":"@ngneat/helipopper"} |
{ | ||
"name": "@ngneat/helipopper", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A Powerful Tooltip and Popover for Angular Applications", | ||
@@ -5,0 +5,0 @@ "schematics": "./schematics/collection.json", |
@@ -178,3 +178,3 @@ <p align="center"> | ||
| helipopper | `string` \| `TemplateRef` | The tooltip content | `none` | | ||
| helipopperPlacement | `Popper placement` | The tooltip placement | `bottom` | | ||
| helipopperPlacement | `Popper placement` | The tooltip placement | `top` | | ||
| helipopperClass | `string` \| `string[]` | Custom class that'll be added to the tooltip | `none` | | ||
@@ -181,0 +181,0 @@ | helipopperOffset | `[number, number]` | Set tooltip offset position | `[0, 10]` | |
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
535077
4769