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

atinc / ngx-tethys / 68ef226c-f83e-44c1-b8ed-e420a83c5d84

28 May 2025 10:31AM UTC coverage: 10.352% (-80.0%) from 90.316%
68ef226c-f83e-44c1-b8ed-e420a83c5d84

Pull #3460

circleci

pubuzhixing8
chore: xxx
Pull Request #3460: refactor(icon): migrate signal input #TINFR-1476

132 of 6823 branches covered (1.93%)

Branch coverage included in aggregate %.

10 of 14 new or added lines in 1 file covered. (71.43%)

11648 existing lines in 344 files now uncovered.

2078 of 14525 relevant lines covered (14.31%)

6.69 hits per line

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

25.0
/src/guider/guider-hint/guider-hint.component.ts
1
import { HostBinding, Component, OnInit, TemplateRef, Signal } 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 { NgTemplateOutlet, NgClass } from '@angular/common';
7
import { injectLocale, ThyGuiderLocale } from 'ngx-tethys/i18n';
8

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

UNCOV
20
    locale: Signal<ThyGuiderLocale> = injectLocale('guider');
×
UNCOV
21

×
22
    public guiderRef: ThyGuiderRef;
23

UNCOV
24
    public stepRef: ThyGuiderStepRef;
×
25

26
    public descriptionString: string;
27

UNCOV
28
    public descriptionTemplateRef: TemplateRef<any>;
×
29

30
    public currentStepIndex: number;
UNCOV
31

×
32
    constructor() {}
33

UNCOV
34
    ngOnInit() {
×
35
        this.setDescription(this.stepRef.step.data.description);
36
    }
UNCOV
37

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

46
    public jump() {
47
        this.guiderRef.end();
1✔
48
    }
49

50
    public prev() {
51
        this.guiderRef.previous();
52
    }
53

54
    public next() {
55
        this.guiderRef.next();
56
    }
1✔
57

58
    public end() {
59
        this.guiderRef.end();
60
    }
61

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

67
defaultGuiderPositionConfig.hintComponent = ThyGuiderHint;
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