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

atinc / ngx-tethys / ba7e05e2-37c0-44c6-8725-6f617aa0d43e

pending completion
ba7e05e2-37c0-44c6-8725-6f617aa0d43e

Pull #2756

circleci

huanhuanwa
test(color-picker): add test #INFR-8673
Pull Request #2756: feat(color-picker): add popoverRef param when panel open and close #INFR-8673

187 of 6315 branches covered (2.96%)

Branch coverage included in aggregate %.

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

2645 of 13660 relevant lines covered (19.36%)

83.2 hits per line

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

14.29
/src/nav/icon-nav/icon-nav.component.ts
1
import { Component, OnInit, HostBinding, Input, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
2
import { useHostRenderer } from '@tethys/cdk/dom';
3
import { warnDeprecation } from 'ngx-tethys/util';
4

5
type IconNavTypes = 'primary' | 'secondary' | 'individual' | '';
6

7
/**
8
 * @private
9
 */
1✔
10
@Component({
11
    selector: 'thy-icon-nav',
×
12
    templateUrl: './icon-nav.component.html',
×
13
    changeDetection: ChangeDetectionStrategy.OnPush,
×
14
    standalone: true
15
})
16
export class ThyIconNavComponent implements OnInit {
×
17
    private initialized = false;
×
18

19
    private hostRenderer = useHostRenderer();
×
20

21
    type: IconNavTypes;
22

×
23
    @HostBinding(`class.thy-icon-nav`) isIconNav = true;
×
24

×
25
    @Input() set thyType(type: IconNavTypes) {
×
26
        this.type = type;
×
27
        this.updateClasses();
×
28
        this.changeDetectorRef.markForCheck();
29
    }
30

31
    private updateClasses(bypassInitialized?: boolean) {
×
32
        if (!bypassInitialized && !this.initialized) {
×
33
            return;
34
        }
1✔
35
        this.hostRenderer.updateClass(this.type ? [`thy-icon-nav-${this.type}`] : []);
36
    }
37

1✔
38
    constructor(private changeDetectorRef: ChangeDetectorRef) {
39
        if (typeof ngDevMode === 'undefined' || ngDevMode) {
40
            warnDeprecation('thy-icon-nav has been deprecated, please use thyAction and thy-space components instead of it');
41
        }
42
    }
1✔
43

44
    ngOnInit(): void {
45
        this.initialized = true;
46
        this.updateClasses(true);
47
    }
48
}
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