• 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

26.32
/src/guider/guider-hint/guider-hint.component.ts
1
import { HostBinding, Component, OnInit, TemplateRef } from '@angular/core';
2
import { ThyGuiderRef } from '../guider-ref';
3
import { helpers } from 'ngx-tethys/util';
4
import { defaultGuiderPositionConfig, ThyGuiderStep } from '../guider.class';
5
import { ThyGuiderStepRef } from '../guider-step-ref';
6
import { NgIf, NgTemplateOutlet, NgFor, NgClass } from '@angular/common';
7

8
/**
9
 * @private
10
 */
1✔
11
@Component({
12
    selector: 'thy-guider-hint',
×
13
    templateUrl: 'guider-hint.component.html',
14
    standalone: true,
15
    imports: [NgIf, NgTemplateOutlet, NgFor, NgClass]
×
16
})
17
export class ThyGuiderHintComponent implements OnInit {
18
    @HostBinding('class.thy-guider-tip-container') guiderHint = true;
×
19

×
20
    public guiderRef: ThyGuiderRef;
21

22
    public stepRef: ThyGuiderStepRef;
×
23

24
    public descriptionString: string;
25

26
    public descriptionTemplateRef: TemplateRef<any>;
×
27

28
    public currentStepIndex: number;
29

×
30
    constructor() {}
31

32
    ngOnInit() {
×
33
        this.setDescription(this.stepRef.step.data.description);
34
    }
35

×
36
    private setDescription(value: string | TemplateRef<any>) {
37
        if (helpers.isString(value)) {
38
            this.descriptionString = value as string;
×
39
        } else {
40
            this.descriptionTemplateRef = value as TemplateRef<any>;
1✔
41
        }
1✔
42
    }
43

44
    public jump() {
45
        this.guiderRef.end();
1✔
46
    }
47

48
    public prev() {
49
        this.guiderRef.previous();
50
    }
51

52
    public next() {
53
        this.guiderRef.next();
54
    }
55

1✔
56
    public end() {
57
        this.guiderRef.end();
58
    }
59

60
    public trackByFn(index: number, step: ThyGuiderStep) {
61
        return step.key || index;
62
    }
63
}
64

65
defaultGuiderPositionConfig.hintComponent = ThyGuiderHintComponent;
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