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

IgniteUI / igniteui-angular / 13331632524

14 Feb 2025 02:51PM CUT coverage: 22.015% (-69.6%) from 91.622%
13331632524

Pull #15372

github

web-flow
Merge d52d57714 into bcb78ae0a
Pull Request #15372: chore(*): test ci passing

1990 of 15592 branches covered (12.76%)

431 of 964 new or added lines in 18 files covered. (44.71%)

19956 existing lines in 307 files now uncovered.

6452 of 29307 relevant lines covered (22.02%)

249.17 hits per line

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

57.14
/projects/igniteui-angular/src/lib/date-common/picker-icons.common.ts
1
import { Component, Output, EventEmitter, HostListener, Directive, TemplateRef } from '@angular/core';
2

3
/**
4
 * Templates the default toggle icon in the picker.
5
 *
6
 * @remarks Can be applied to IgxDatePickerComponent, IgxTimePickerComponent, IgxDateRangePickerComponent
7
 *
8
 * @example
9
 * ```html
10
 * <igx-date-range-picker>
11
 *   <igx-picker-toggle igxSuffix>
12
 *      <igx-icon>calendar_view_day</igx-icon>
13
 *   </igx-picker-toggle>
14
 * </igx-date-range-picker>
15
 * ```
16
 */
17
@Component({
18
    template: `<ng-content></ng-content>`,
19
    selector: 'igx-picker-toggle',
20
    standalone: true
21
})
22
export class IgxPickerToggleComponent {
2✔
23
    @Output()
24
    public clicked = new EventEmitter();
4✔
25

26
    @HostListener('click', ['$event'])
27
    public onClick(event: MouseEvent) {
28
        // do not focus input on click
UNCOV
29
        event.stopPropagation();
×
UNCOV
30
        this.clicked.emit();
×
31
    }
32
}
33

34
/**
35
 * Templates the default clear icon in the picker.
36
 *
37
 * @remarks Can be applied to IgxDatePickerComponent, IgxTimePickerComponent, IgxDateRangePickerComponent
38
 *
39
 * @example
40
 * ```html
41
 * <igx-date-picker>
42
 *   <igx-picker-clear igxSuffix>
43
 *      <igx-icon>delete</igx-icon>
44
 *   </igx-picker-clear>
45
 * </igx-date-picker>
46
 * ```
47
 */
48
@Component({
49
    template: `<ng-content></ng-content>`,
50
    selector: 'igx-picker-clear',
51
    standalone: true
52
})
53
export class IgxPickerClearComponent extends IgxPickerToggleComponent { }
2✔
54

55
/**
56
 * IgxPickerActionsDirective can be used to re-template the dropdown/dialog action buttons.
57
 *
58
 * @remarks Can be applied to IgxDatePickerComponent, IgxTimePickerComponent, IgxDateRangePickerComponent
59
 *
60
 */
61
@Directive({
62
    selector: '[igxPickerActions]',
63
    standalone: true
64
})
65
export class IgxPickerActionsDirective {
2✔
UNCOV
66
    constructor(public template: TemplateRef<any>) { }
×
67
}
68

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