• 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

25.0
/src/radio/button/radio-button.component.ts
1
import { Component, OnInit, HostBinding, HostListener, Input, Optional, ChangeDetectorRef } from '@angular/core';
2
import { ThyTranslate } from 'ngx-tethys/core';
3
import { ThyRadioGroupComponent } from './../group/radio-group.component';
4
import { coerceBooleanProperty } from 'ngx-tethys/util';
5
import { ThyRadioComponent } from '../radio.component';
6

7
/**
8
 * @name [thy-radio-button],[thyRadioButton]
9
 */
10
@Component({
11
    // eslint-disable-next-line @angular-eslint/component-selector
1✔
12
    selector: '[thy-radio-button],[thyRadioButton]',
13
    templateUrl: './radio-button.component.html',
×
14
    standalone: true
×
15
})
16
export class ThyRadioButtonComponent extends ThyRadioComponent implements OnInit {
17
    @HostBinding('class.btn') isButton = true;
×
18
    @HostBinding('class.active') isActive = false;
×
19

×
20
    name: string;
21

22
    @Input() thyValue: string;
×
23

×
24
    set thyChecked(value: boolean) {
×
25
        this.isActive = !!value;
×
26
        this.writeValue(coerceBooleanProperty(value));
27
    }
28

29
    constructor(
×
30
        thyTranslate: ThyTranslate,
31
        @Optional() thyRadioGroupComponent: ThyRadioGroupComponent,
1✔
32
        changeDetectorRef: ChangeDetectorRef
33
    ) {
34
        super(thyTranslate, thyRadioGroupComponent, changeDetectorRef);
35
    }
36

1✔
37
    ngOnInit() {
38
        this._isFormCheck = false;
39
        if (this.thyRadioGroupComponent) {
40
            this.thyRadioGroupComponent.addRadio(this);
41
            this.thyRadioGroupComponent.setGroup();
42
        }
43
    }
1✔
44

45
    @HostListener('click', ['$event'])
46
    click($event: MouseEvent) {
47
        this.change();
48
    }
49
}
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