• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atinc / ngx-tethys / d9ae709b-3c27-4b69-b125-b8b80b54f90b

pending completion
d9ae709b-3c27-4b69-b125-b8b80b54f90b

Pull #2757

circleci

mengshuicmq
fix: fix code review
Pull Request #2757: feat(color-picker): color-picker support disabled (#INFR-8645)

98 of 6315 branches covered (1.55%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

2392 of 13661 relevant lines covered (17.51%)

83.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

20.0
/src/tooltip/deprecated-tooltip.service.ts
1
import { ElementRef, ViewContainerRef, NgZone, Injectable, Inject } from '@angular/core';
2
import { Platform } from '@angular/cdk/platform';
3
import { FocusMonitor } from '@angular/cdk/a11y';
4
import { ThyTooltipDirective } from './tooltip.directive';
5
import { ThyTooltipService } from './tooltip.service';
6
import { ThyGlobalTooltipConfig, THY_TOOLTIP_DEFAULT_CONFIG_TOKEN } from './tooltip.config';
7

8
/**
9
 * @internal
10
 * @deprecated TooltipService deprecated,please use ThyTooltipService
11
 */
12
@Injectable()
1✔
13
export class TooltipService {
14
    thyTooltipDirective: ThyTooltipDirective;
×
15

×
16
    constructor(
×
17
        private ngZone: NgZone,
×
18
        private platform: Platform,
×
19
        private focusMonitor: FocusMonitor,
20
        private thyTooltipService: ThyTooltipService,
21
        @Inject(THY_TOOLTIP_DEFAULT_CONFIG_TOKEN)
×
22
        private defaultTooltipConfig: ThyGlobalTooltipConfig
×
23
    ) {}
×
24

25
    attach(elementRef: ElementRef, viewContainerRef: ViewContainerRef, trigger?: 'hover' | 'focus' | 'click') {
×
26
        this.thyTooltipDirective = new ThyTooltipDirective(
27
            elementRef,
28
            this.ngZone,
×
29
            this.platform,
30
            this.focusMonitor,
1✔
31
            viewContainerRef,
32
            this.thyTooltipService
33
        );
34
        if (trigger) {
35
            this.thyTooltipDirective.trigger = trigger;
36
        }
37

38
        this.thyTooltipDirective.ngOnInit();
1✔
39
    }
40

41
    detach() {
42
        this.thyTooltipDirective.ngOnDestroy();
43
    }
44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc