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

atinc / ngx-tethys / 68ef226c-f83e-44c1-b8ed-e420a83c5d84

28 May 2025 10:31AM UTC coverage: 10.352% (-80.0%) from 90.316%
68ef226c-f83e-44c1-b8ed-e420a83c5d84

Pull #3460

circleci

pubuzhixing8
chore: xxx
Pull Request #3460: refactor(icon): migrate signal input #TINFR-1476

132 of 6823 branches covered (1.93%)

Branch coverage included in aggregate %.

10 of 14 new or added lines in 1 file covered. (71.43%)

11648 existing lines in 344 files now uncovered.

2078 of 14525 relevant lines covered (14.31%)

6.69 hits per line

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

18.18
/src/date-range/optional-dates/optional-dates.component.ts
1
import { Component, OnInit, Signal, inject } from '@angular/core';
2
import { DateRangeItemInfo } from '../date-range.class';
3
import { ThyPopover } from 'ngx-tethys/popover';
4
import { FormsModule } from '@angular/forms';
5
import { ThyRangePickerDirective } from 'ngx-tethys/date-picker';
6
import { ThyIcon } from 'ngx-tethys/icon';
7
import {
8
    ThyDropdownMenuComponent,
9
    ThyDropdownMenuItemDirective,
10
    ThyDropdownMenuItemNameDirective,
11
    ThyDropdownMenuItemExtendIconDirective
12
} from 'ngx-tethys/dropdown';
13
import { injectLocale, ThyDateRangeLocale } from 'ngx-tethys/i18n';
1✔
14

UNCOV
15
/**
×
UNCOV
16
 * @private
×
UNCOV
17
 */
×
UNCOV
18
@Component({
×
19
    // eslint-disable-next-line @angular-eslint/component-selector
20
    selector: 'date-range-optional',
21
    templateUrl: './optional-dates.component.html',
UNCOV
22
    imports: [
×
UNCOV
23
        ThyDropdownMenuComponent,
×
UNCOV
24
        ThyDropdownMenuItemDirective,
×
25
        ThyDropdownMenuItemNameDirective,
26
        ThyDropdownMenuItemExtendIconDirective,
UNCOV
27
        ThyIcon,
×
28
        ThyRangePickerDirective,
29
        FormsModule
30
    ]
31
})
32
export class OptionalDateRanges implements OnInit {
UNCOV
33
    private thyPopover = inject(ThyPopover);
×
34
    private locale: Signal<ThyDateRangeLocale> = injectLocale('dateRange');
35

36
    hiddenMenu = false;
1✔
37

38
    optionalDateRanges: DateRangeItemInfo[];
39

40
    customValue = this.locale().custom;
41

42
    customKey: string;
43

44
    minDate: number | Date;
45

46
    maxDate: number | Date;
47

48
    disabledDate: (d: Date) => boolean;
49

50
    selectedDateRange: (date: DateRangeItemInfo) => void;
51

52
    calendarChange: (date: Date[]) => void;
53

54
    selectedDate: DateRangeItemInfo;
55

56
    ngOnInit() {}
57

58
    _selectDateRange(dateRange: DateRangeItemInfo) {
59
        this.selectedDate = dateRange;
60
        this.selectedDateRange(dateRange);
61
        this.thyPopover.close();
62
    }
63

64
    _selectedCustomDate(date: DateRangeItemInfo) {
65
        this.selectedDate = {
66
            begin: date.begin,
67
            end: date.end,
68
            key: this.customKey,
69
            text: this.customValue
70
        };
71
        this.selectedDateRange(this.selectedDate);
72
    }
73
}
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