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

IgniteUI / igniteui-angular / 13561607909

27 Feb 2025 08:03AM UTC coverage: 91.644% (+0.003%) from 91.641%
13561607909

push

github

web-flow
fix(grid): Update grid cell active state selector specificity (#15402)

13328 of 15596 branches covered (85.46%)

26882 of 29333 relevant lines covered (91.64%)

33708.8 hits per line

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

85.71
/projects/igniteui-angular/src/lib/grids/tree-grid/tree-cell.component.ts
1
import {
2
    ChangeDetectionStrategy,
3
    Component,
4
    Input
5
} from '@angular/core';
6
import { NgClass, NgStyle, NgTemplateOutlet, DecimalPipe, PercentPipe, CurrencyPipe, DatePipe } from '@angular/common';
7

8
import { HammerGesturesManager } from '../../core/touch';
9
import { IgxGridExpandableCellComponent } from '../grid/expandable-cell.component';
10
import { IgxTreeGridRow } from '../grid-public-row';
11
import { RowType } from '../common/grid.interface';
12
import { IgxGridCellImageAltPipe, IgxStringReplacePipe, IgxColumnFormatterPipe } from '../common/pipes';
13
import { IgxTooltipDirective } from '../../directives/tooltip/tooltip.directive';
14
import { IgxTooltipTargetDirective } from '../../directives/tooltip/tooltip-target.directive';
15
import { IgxCircularProgressBarComponent } from '../../progressbar/progressbar.component';
16
import { IgxSuffixDirective } from '../../directives/suffix/suffix.directive';
17
import { IgxPrefixDirective } from '../../directives/prefix/prefix.directive';
18
import { IgxDateTimeEditorDirective } from '../../directives/date-time-editor/date-time-editor.directive';
19
import { IgxTimePickerComponent } from '../../time-picker/time-picker.component';
20
import { IgxDatePickerComponent } from '../../date-picker/date-picker.component';
21
import { IgxCheckboxComponent } from '../../checkbox/checkbox.component';
22
import { IgxFocusDirective } from '../../directives/focus/focus.directive';
23
import { IgxInputDirective } from '../../directives/input/input.directive';
24
import { IgxInputGroupComponent } from '../../input-group/input-group.component';
25
import { ReactiveFormsModule } from '@angular/forms';
26
import { IgxIconComponent } from '../../icon/icon.component';
27
import { IgxTextHighlightDirective } from '../../directives/text-highlight/text-highlight.directive';
28
import { IgxChipComponent } from '../../chips/chip.component';
29
import { IgxTextSelectionDirective } from '../../directives/text-selection/text-selection.directive';
30

31
@Component({
32
    changeDetection: ChangeDetectionStrategy.OnPush,
33
    selector: 'igx-tree-grid-cell',
34
    templateUrl: 'tree-cell.component.html',
35
    providers: [HammerGesturesManager],
36
    imports: [
37
        NgClass,
38
        NgStyle,
39
        NgTemplateOutlet,
40
        DecimalPipe,
41
        PercentPipe,
42
        CurrencyPipe,
43
        DatePipe,
44
        IgxChipComponent,
45
        IgxTextHighlightDirective,
46
        IgxIconComponent,
47
        ReactiveFormsModule,
48
        IgxInputGroupComponent,
49
        IgxInputDirective,
50
        IgxFocusDirective,
51
        IgxCheckboxComponent,
52
        IgxDatePickerComponent,
53
        IgxTimePickerComponent,
54
        IgxDateTimeEditorDirective,
55
        IgxPrefixDirective,
56
        IgxSuffixDirective,
57
        IgxCircularProgressBarComponent,
58
        IgxTooltipTargetDirective,
59
        IgxTooltipDirective,
60
        IgxGridCellImageAltPipe,
61
        IgxStringReplacePipe,
62
        IgxColumnFormatterPipe,
63
        IgxTextSelectionDirective
64
    ]
65
})
66
export class IgxTreeGridCellComponent extends IgxGridExpandableCellComponent {
2✔
67

68
    /**
69
     * @hidden
70
     */
71
    @Input()
72
    public level = 0;
5,766✔
73

74
    /**
75
     * @hidden
76
     */
77
    @Input()
78
    public showIndicator = false;
5,766✔
79

80
    /**
81
     * @hidden
82
     */
83
    @Input()
84
    public isLoading: boolean;
85

86
    /**
87
     * Gets the row of the cell.
88
     * ```typescript
89
     * let cellRow = this.cell.row;
90
     * ```
91
     *
92
     * @memberof IgxGridCellComponent
93
     */
94
    @Input()
95
    public override get row(): RowType {
96
        // TODO: Fix types
97
        return new IgxTreeGridRow(this.grid as any, this.intRow.index, this.intRow.data);
90✔
98
    }
99

100
    /**
101
     * @hidden
102
     */
103
    public override toggle(event: Event) {
104
        event.stopPropagation();
64✔
105
        this.grid.gridAPI.set_row_expansion_state(this.intRow.key, !this.intRow.expanded, event);
64✔
106
    }
107

108
    /**
109
     * @hidden
110
     */
111
    public onLoadingDblClick(event: Event) {
112
        event.stopPropagation();
×
113
    }
114
}
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