• 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

55.56
/src/checkbox/checkbox.component.ts
1
import { Component, forwardRef, Input } from '@angular/core';
2
import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
import { InputBoolean, ThyTranslate } from 'ngx-tethys/core';
4
import { coerceBooleanProperty } from 'ngx-tethys/util';
5
import { ThyFormCheckBaseComponent } from 'ngx-tethys/shared';
6
import { NgClass, NgIf } from '@angular/common';
7

8
/**
9
 * 多选框组件
10
 * @name thy-checkbox,[thy-checkbox],[thyCheckbox]
11
 * @order 10
12
 */
13
@Component({
14
    selector: 'thy-checkbox,[thy-checkbox],[thyCheckbox]',
15
    templateUrl: './checkbox.component.html',
1✔
16
    providers: [
17
        {
×
18
            provide: NG_VALUE_ACCESSOR,
19
            useExisting: forwardRef(() => ThyCheckboxComponent),
20
            multi: true
×
21
        }
×
22
    ],
23
    host: {
1✔
24
        class: 'thy-checkbox',
25
        '[class.disabled]': '_disabled'
26
    },
1✔
27
    standalone: true,
28
    imports: [NgClass, NgIf]
29
})
30
export class ThyCheckboxComponent extends ThyFormCheckBaseComponent {
1✔
31
    isIndeterminate = false;
32

33
    /**
34
     * 设置 indeterminate 状态,只负责样式控制
35
     * @description.en-us Set the indeterminate state, responsible only for style control
1✔
36
     * @default false
37
     */
38
    @Input()
39
    @InputBoolean()
40
    set thyIndeterminate(value: boolean) {
41
        this.isIndeterminate = coerceBooleanProperty(value);
42
    }
×
43

44
    constructor(thyTranslate: ThyTranslate) {
45
        super(thyTranslate);
46
    }
47
}
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