From 77e2bbfdae6de25547e9629ddaa6c7659391bfe5 Mon Sep 17 00:00:00 2001 From: waterplea Date: Tue, 18 Jun 2024 20:11:29 +0500 Subject: [PATCH] chore: fix Signed-off-by: waterplea --- .../core/directives/tooltip/tooltip.directive.ts | 6 +++--- .../legacy/components/tooltip/tooltip.module.ts | 15 ++++----------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/projects/core/directives/tooltip/tooltip.directive.ts b/projects/core/directives/tooltip/tooltip.directive.ts index 738636090e0f..bf2cb980c33d 100644 --- a/projects/core/directives/tooltip/tooltip.directive.ts +++ b/projects/core/directives/tooltip/tooltip.directive.ts @@ -17,7 +17,7 @@ import { } from '@taiga-ui/core/directives/appearance'; import { TUI_HINT_OPTIONS, - TuiHintDescribeDirective, + TuiHintDescribe, TuiHintDirective, TuiHintHoverDirective, } from '@taiga-ui/core/directives/hint'; @@ -56,7 +56,7 @@ class TuiTooltipStyles {} inputs: ['tuiAppearance: appearance'], }, { - directive: TuiHintDescribeDirective, + directive: TuiHintDescribe, inputs: ['tuiHintDescribe'], }, { @@ -69,7 +69,7 @@ class TuiTooltipStyles {} export class TuiTooltip implements DoCheck { private readonly textfield = inject(TuiTextfieldComponent, {optional: true}); private readonly isMobile = inject(TUI_IS_MOBILE); - private readonly describe = inject(TuiHintDescribeDirective); + private readonly describe = inject(TuiHintDescribe); private readonly driver = inject(TuiHintHoverDirective); protected readonly nothing = tuiWithStyles(TuiTooltipStyles); diff --git a/projects/legacy/components/tooltip/tooltip.module.ts b/projects/legacy/components/tooltip/tooltip.module.ts index c451f860af10..2702843cebdd 100644 --- a/projects/legacy/components/tooltip/tooltip.module.ts +++ b/projects/legacy/components/tooltip/tooltip.module.ts @@ -1,20 +1,13 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; -import {TuiButton, TuiHint, TuiIcon} from '@taiga-ui/core'; -import {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus'; +import {TuiAppearance, TuiHint, TuiIcon} from '@taiga-ui/core'; +import {PolymorpheusOutlet} from '@taiga-ui/polymorpheus'; import {TuiTooltipComponent} from './tooltip.component'; @NgModule({ - imports: [ - CommonModule, - TuiButton, - TuiIcon, - PolymorpheusOutlet, - PolymorpheusTemplate, - ...TuiHint, - ], + imports: [CommonModule, TuiIcon, PolymorpheusOutlet, TuiAppearance, ...TuiHint], declarations: [TuiTooltipComponent], exports: [TuiTooltipComponent], }) -export class TuiTooltipModule {} +export class TuiTooltip {}