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

atinc / ngx-tethys / 0bbb2cec-209e-4d8a-b1b3-6bc54e05daa6

04 Sep 2023 08:40AM UTC coverage: 15.616% (-74.6%) from 90.2%
0bbb2cec-209e-4d8a-b1b3-6bc54e05daa6

Pull #2829

circleci

cmm-va
fix: add test
Pull Request #2829: fix: add tabIndex

300 of 6386 branches covered (0.0%)

Branch coverage included in aggregate %.

78 of 78 new or added lines in 26 files covered. (100.0%)

2849 of 13779 relevant lines covered (20.68%)

83.41 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
        '[attr.tabindex]': '-1',
25
        class: 'thy-checkbox',
26
        '[class.disabled]': '_disabled'
1✔
27
    },
28
    standalone: true,
29
    imports: [NgClass, NgIf]
30
})
1✔
31
export class ThyCheckboxComponent extends ThyFormCheckBaseComponent {
32
    isIndeterminate = false;
33

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

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

© 2026 Coveralls, Inc