• 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

21.43
/projects/igniteui-angular/src/lib/navigation-drawer/navigation-drawer.directives.ts
1
import { Directive, HostBinding, Input, TemplateRef, booleanAttribute } from '@angular/core';
2

3
@Directive({
4
    selector: '[igxDrawerItem]',
5
    exportAs: 'igxDrawerItem',
6
    standalone: true
7
})
8
export class IgxNavDrawerItemDirective {
2✔
9

10
    /**
11
     * Styles a navigation drawer item as selected.
12
     * If not set, `active` will have default value `false`.
13
     *
14
     * @example
15
     * ```html
16
     * <span igxDrawerItem [active]="true">Active Item</span>
17
     * ```
18
     */
UNCOV
19
    @Input({ transform: booleanAttribute }) public active = false;
×
20

21
    /**
22
     * Disables a navigation drawer item.
23
     * If not set, `disabled` will have default value `false`.
24
     *
25
     * @example
26
     * ```html
27
     * <span igxDrawerItem [disabled]="true">Disabled Item</span>
28
     * ```
29
     */
UNCOV
30
    @Input({ transform: booleanAttribute }) public disabled = false;
×
31

32
    /**
33
     * Styles a navigation drawer item as a group header.
34
     * If not set, `isHeader` will have default value `false`.
35
     *
36
     * @example
37
     * ```html
38
     * <span igxDrawerItem [isHeader]="true">Header</span>
39
     * ```
40
     */
UNCOV
41
    @Input({ transform: booleanAttribute }) public isHeader = false;
×
42

43
    /**
44
     * @hidden
45
     */
UNCOV
46
    public readonly activeClass = 'igx-nav-drawer__item--active';
×
47

48
     /**
49
     * @hidden
50
     */
UNCOV
51
     public readonly disabledClass = 'igx-nav-drawer__item--disabled';
×
52

53
    /**
54
     * @hidden
55
     */
56
    @HostBinding('class.igx-nav-drawer__item')
57
    public get defaultCSS(): boolean {
UNCOV
58
        return !this.active && !this.isHeader;
×
59
    }
60

61
    /**
62
     * @hidden
63
     */
64
    @HostBinding('class.igx-nav-drawer__item--active')
65
    public get currentCSS(): boolean {
UNCOV
66
        return this.active && !this.isHeader && !this.disabled;
×
67
    }
68

69
    /**
70
     * @hidden
71
     */
72
    @HostBinding('class.igx-nav-drawer__item--header')
73
    public get headerCSS(): boolean {
UNCOV
74
        return this.isHeader;
×
75
    }
76

77
    /**
78
     * @hidden
79
     */
80
    @HostBinding('class.igx-nav-drawer__item--disabled')
81
    public get disabledCSS(): boolean {
UNCOV
82
        return this.disabled;
×
83
    }
84
}
85

86
@Directive({
87
    selector: '[igxDrawer]',
88
    standalone: true
89
})
90
export class IgxNavDrawerTemplateDirective {
2✔
91

UNCOV
92
    constructor(public template: TemplateRef<any>) {
×
93
    }
94
}
95

96
@Directive({
97
    selector: '[igxDrawerMini]',
98
    standalone: true
99
})
100
export class IgxNavDrawerMiniTemplateDirective {
2✔
101

UNCOV
102
    constructor(public template: TemplateRef<any>) {
×
103
    }
104
}
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