• 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

10.0
/projects/igniteui-angular/src/lib/date-common/calendar-container/calendar-container.component.ts
1
import { NgIf, NgTemplateOutlet } from '@angular/common';
2
import {
3
    Component,
4
    ViewChild,
5
    Output, EventEmitter,
6
    HostListener,
7
    HostBinding
8
} from '@angular/core';
9
import { IBaseEventArgs } from '../../core/utils';
10
import { PickerInteractionMode } from '../../date-common/types';
11
import { IgxButtonDirective } from '../../directives/button/button.directive';
12
import { IgxRippleDirective } from '../../directives/ripple/ripple.directive';
13
import { IgxPickerActionsDirective } from '../picker-icons.common';
14
import { IgxCalendarComponent } from '../../calendar/calendar.component';
15
import { IgxDividerDirective } from "../../directives/divider/divider.directive";
16

17
/** @hidden */
18
@Component({
19
    selector: 'igx-calendar-container',
20
    styles: [':host {display: block;}'],
21
    templateUrl: 'calendar-container.component.html',
22
    imports: [
23
        NgIf,
24
        IgxButtonDirective,
25
        IgxRippleDirective,
26
        IgxCalendarComponent,
27
        NgTemplateOutlet,
28
        IgxDividerDirective,
29
    ]
30
})
31
export class IgxCalendarContainerComponent {
2✔
32
    @ViewChild(IgxCalendarComponent, { static: true })
33
    public calendar: IgxCalendarComponent;
34

35
    @Output()
UNCOV
36
    public calendarClose = new EventEmitter<IBaseEventArgs>();
×
37

38
    @Output()
UNCOV
39
    public todaySelection = new EventEmitter<IBaseEventArgs>();
×
40

41
    @HostBinding('class.igx-date-picker')
UNCOV
42
    public styleClass = 'igx-date-picker';
×
43

44
    @HostBinding('class.igx-date-picker--dropdown')
45
    public get dropdownCSS(): boolean {
UNCOV
46
        return this.mode === PickerInteractionMode.DropDown;
×
47
    }
48

UNCOV
49
    public vertical = false;
×
50
    public closeButtonLabel: string;
51
    public todayButtonLabel: string;
UNCOV
52
    public mode: PickerInteractionMode = PickerInteractionMode.DropDown;
×
53
    public pickerActions: IgxPickerActionsDirective;
54

55
    @HostListener('keydown.alt.arrowup', ['$event'])
56
    public onEscape(event) {
UNCOV
57
        event.preventDefault();
×
UNCOV
58
        this.calendarClose.emit();
×
59
    }
60

61
    public get isReadonly() {
62
        return this.mode === PickerInteractionMode.Dialog;
×
63
    }
64
}
65

66
/** @hidden */
67

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