• 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

36.84
/src/cascader/cascader-li.component.ts
1
import { InputBoolean } from 'ngx-tethys/core';
2
import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, Input, OnInit, Output, ViewEncapsulation } from '@angular/core';
3
import { ThyCascaderOption } from './types';
4
import { FormsModule } from '@angular/forms';
5
import { ThyCheckboxComponent } from 'ngx-tethys/checkbox';
6
import { ThyFlexibleTextComponent } from 'ngx-tethys/flexible-text';
7
import { NgIf } from '@angular/common';
8

9
/**
10
 * @internal
11
 */
12
@Component({
1✔
13
    changeDetection: ChangeDetectionStrategy.OnPush,
14
    encapsulation: ViewEncapsulation.None,
×
15
    // eslint-disable-next-line @angular-eslint/component-selector
16
    selector: '[thy-cascader-option]',
17
    templateUrl: './cascader-li.component.html',
×
18
    standalone: true,
19
    imports: [NgIf, ThyFlexibleTextComponent, ThyCheckboxComponent, FormsModule]
20
})
×
21
export class ThyCascaderOptionComponent implements OnInit {
×
22
    @Input() option: ThyCascaderOption;
×
23

×
24
    @Input()
×
25
    @InputBoolean()
×
26
    multiple = false;
×
27

28
    @Input()
29
    @InputBoolean()
30
    isOnlySelectLeaf = true;
×
31

32
    @HostBinding('class') class = 'd-flex';
1✔
33

1✔
34
    @HostBinding('class.thy-cascader-menu-item') item = true;
35

36
    @HostBinding('class.thy-cascader-menu-item-active')
37
    @Input()
38
    @InputBoolean()
39
    active: boolean = false;
40

41
    @HostBinding('class.thy-cascader-menu-item-disabled')
42
    get disabled() {
43
        return this.option.disabled;
44
    }
45

46
    @HostBinding('class.thy-cascader-menu-item-expand')
1✔
47
    get expand() {
48
        return this.option && !this.option.isLeaf;
49
    }
50

1✔
51
    @Input() labelProperty: string = 'label';
52

53
    @Output() toggleSelectChange: EventEmitter<boolean> = new EventEmitter();
54

1✔
55
    constructor() {}
56

57
    ngOnInit() {}
58

1✔
59
    public toggleOption(value: boolean) {
60
        this.toggleSelectChange.emit(value);
61
    }
62
}
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