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

atinc / ngx-tethys / 02cb62e9-e047-4aaa-9ac8-6a073341efc5

30 Oct 2023 07:50AM UTC coverage: 90.219% (-0.004%) from 90.223%
02cb62e9-e047-4aaa-9ac8-6a073341efc5

Pull #2870

circleci

walkerkay
test: fix
Pull Request #2870: Walker/fix

5172 of 6391 branches covered (0.0%)

Branch coverage included in aggregate %.

13 of 13 new or added lines in 3 files covered. (100.0%)

13054 of 13811 relevant lines covered (94.52%)

985.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

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

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

10
/**
11
 * 周选择组件
12
 * @name thy-week-picker
13
 * @order 30
14
 */
15
@Component({
16
    changeDetection: ChangeDetectionStrategy.OnPush,
1✔
17
    selector: 'thy-week-picker',
18
    exportAs: 'thyWeekPicker',
×
19
    templateUrl: './base-picker.component.html',
×
20
    providers: [
×
21
        {
×
22
            provide: NG_VALUE_ACCESSOR,
×
23
            multi: true,
×
24
            useExisting: forwardRef(() => ThyWeekPickerComponent)
25
        }
1✔
26
    ],
27
    standalone: true,
28
    imports: [ThyPickerComponent, NgIf, DatePopupComponent]
29
})
30
export class ThyWeekPickerComponent extends BasePickerComponent {
1✔
31
    showWeek = true;
32

33
    private hostRenderer = useHostRenderer();
34

35
    constructor(cdr: ChangeDetectorRef, protected elementRef: ElementRef) {
36
        super(cdr, elementRef);
37
        this.hostRenderer.addClass('thy-calendar-picker');
38
        this.thyMode = 'week';
39
    }
40
}
×
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