• 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

44.44
/src/color-picker/color-picker-custom-panel.component.ts
1
import { ChangeDetectionStrategy, Component, HostBinding, Input, OnInit } from '@angular/core';
2
import ThyColor from './helpers/color.class';
3
import { ThyColorInputsComponent } from './parts/inputs/inputs.component';
4
import { ThyIndicatorComponent } from './parts/indicator/indicator.component';
5
import { ThyAlphaComponent } from './parts/alpha/alpha.component';
6
import { ThyHueComponent } from './parts/hue/hue.component';
7
import { ThySaturationComponent } from './parts/saturation/saturation.component';
8

9
/**
10
 * @internal
11
 */
12
@Component({
13
    selector: 'thy-color-picker-custom-panel',
1✔
14
    templateUrl: './color-picker-custom-panel.component.html',
15
    changeDetection: ChangeDetectionStrategy.OnPush,
×
16
    standalone: true,
17
    imports: [ThySaturationComponent, ThyHueComponent, ThyAlphaComponent, ThyIndicatorComponent, ThyColorInputsComponent]
18
})
×
19
export class ThyColorPickerCustomPanelComponent implements OnInit {
20
    @HostBinding('class.thy-color-picker-custom-panel') className = true;
21

×
22
    colorInstance: ThyColor;
×
23

×
24
    @Input() color?: string;
25

1✔
26
    @Input() pickerColorChange: (color: string) => {};
1✔
27

28
    constructor() {}
29

30
    ngOnInit() {
31
        this.colorInstance = new ThyColor(this.color);
32
    }
1✔
33

34
    colorChangeEvent($event: ThyColor) {
35
        this.colorInstance = $event;
36
        this.color = this.colorInstance.displayValue;
37
        this.pickerColorChange(this.color);
38
    }
39
}
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