• 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

30.77
/src/date-picker/year-picker.component.ts
1
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, forwardRef, Input } from '@angular/core';
2
import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
import { useHostRenderer } from '@tethys/cdk/dom';
4

5
import { NgIf } from '@angular/common';
6
import { BasePickerComponent } from './base-picker.component';
7
import { DatePopupComponent } from './lib/popups/date-popup.component';
8
import { ThyPickerComponent } from './picker.component';
9
import { ThyPanelMode } from './standard-types';
10

11
/**
12
 * 年份选择组件
13
 * @name thy-year-picker
14
 * @order 50
15
 */
16
@Component({
1✔
17
    changeDetection: ChangeDetectionStrategy.OnPush,
18
    selector: 'thy-year-picker',
×
19
    exportAs: 'thyYearPicker',
×
20
    templateUrl: './base-picker.component.html',
×
21
    providers: [
×
22
        {
×
23
            provide: NG_VALUE_ACCESSOR,
×
24
            multi: true,
×
25
            useExisting: forwardRef(() => ThyYearPickerComponent)
×
26
        }
27
    ],
1✔
28
    standalone: true,
29
    imports: [ThyPickerComponent, NgIf, DatePopupComponent]
30
})
31
export class ThyYearPickerComponent extends BasePickerComponent {
1✔
32
    /**
33
     * 展示的年份格式
34
     * @type string
35
     */
1✔
36
    @Input() thyFormat = 'yyyy';
37

38
    thyMode: ThyPanelMode = 'year';
39

40
    isRange = false;
41

42
    endPanelMode: ThyPanelMode = 'year';
43

44
    private hostRenderer = useHostRenderer();
45

×
46
    constructor(cdr: ChangeDetectorRef, protected elementRef: ElementRef) {
47
        super(cdr, elementRef);
48
        this.hostRenderer.addClass('thy-calendar-picker');
49
    }
50
}
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