@vallift/ngl 21.0.3 → 21.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/vallift-ngl.mjs
CHANGED
|
@@ -3666,14 +3666,20 @@ class TooltipDirective {
|
|
|
3666
3666
|
libTooltip = '';
|
|
3667
3667
|
tooltipPosition = input('bottom', ...(ngDevMode ? [{ debugName: "tooltipPosition" }] : []));
|
|
3668
3668
|
tooltipClass = input({ alias: 'tooltipClass' }, ...(ngDevMode ? [{ debugName: "tooltipClass" }] : []));
|
|
3669
|
+
tooltipDisabled = input(false, ...(ngDevMode ? [{ debugName: "tooltipDisabled" }] : []));
|
|
3669
3670
|
constructor() {
|
|
3670
3671
|
effect(() => {
|
|
3671
3672
|
this.hideTooltip();
|
|
3672
3673
|
});
|
|
3673
3674
|
}
|
|
3674
3675
|
showTooltip() {
|
|
3675
|
-
if (this.
|
|
3676
|
+
if (this.tooltipDisabled()) {
|
|
3676
3677
|
return;
|
|
3678
|
+
}
|
|
3679
|
+
if (this.overlayRef?.hasAttached()) {
|
|
3680
|
+
return;
|
|
3681
|
+
}
|
|
3682
|
+
;
|
|
3677
3683
|
const position = this.getPosition(this.tooltipPosition());
|
|
3678
3684
|
const positionStrategy = this.positionBuilder
|
|
3679
3685
|
.flexibleConnectedTo(this.elementRef)
|
|
@@ -3760,7 +3766,7 @@ class TooltipDirective {
|
|
|
3760
3766
|
this.hideTooltip();
|
|
3761
3767
|
}
|
|
3762
3768
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3763
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.3", type: TooltipDirective, isStandalone: true, selector: "[libTooltip]", inputs: { libTooltip: { classPropertyName: "libTooltip", publicName: "libTooltip", isSignal: false, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipClass: { classPropertyName: "tooltipClass", publicName: "tooltipClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "touchstart": "onTouchStart()", "touchend": "onTouchEnd()", "touchcancel": "onTouchEnd()" } }, ngImport: i0 });
|
|
3769
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.3", type: TooltipDirective, isStandalone: true, selector: "[libTooltip]", inputs: { libTooltip: { classPropertyName: "libTooltip", publicName: "libTooltip", isSignal: false, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipClass: { classPropertyName: "tooltipClass", publicName: "tooltipClass", isSignal: true, isRequired: false, transformFunction: null }, tooltipDisabled: { classPropertyName: "tooltipDisabled", publicName: "tooltipDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "touchstart": "onTouchStart()", "touchend": "onTouchEnd()", "touchcancel": "onTouchEnd()" } }, ngImport: i0 });
|
|
3764
3770
|
}
|
|
3765
3771
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
3766
3772
|
type: Directive,
|
|
@@ -3770,7 +3776,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImpor
|
|
|
3770
3776
|
}]
|
|
3771
3777
|
}], ctorParameters: () => [], propDecorators: { libTooltip: [{
|
|
3772
3778
|
type: Input
|
|
3773
|
-
}], tooltipPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosition", required: false }] }], tooltipClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipClass", required: false }] }], onMouseEnter: [{
|
|
3779
|
+
}], tooltipPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosition", required: false }] }], tooltipClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipClass", required: false }] }], tooltipDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipDisabled", required: false }] }], onMouseEnter: [{
|
|
3774
3780
|
type: HostListener,
|
|
3775
3781
|
args: ['mouseenter']
|
|
3776
3782
|
}], onMouseLeave: [{
|