• 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

14.29
/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 { NgIf, 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
        NgIf,
38
        NgClass,
39
        NgStyle,
40
        NgTemplateOutlet,
41
        DecimalPipe,
42
        PercentPipe,
43
        CurrencyPipe,
44
        DatePipe,
45
        IgxChipComponent,
46
        IgxTextHighlightDirective,
47
        IgxIconComponent,
48
        ReactiveFormsModule,
49
        IgxInputGroupComponent,
50
        IgxInputDirective,
51
        IgxFocusDirective,
52
        IgxCheckboxComponent,
53
        IgxDatePickerComponent,
54
        IgxTimePickerComponent,
55
        IgxDateTimeEditorDirective,
56
        IgxPrefixDirective,
57
        IgxSuffixDirective,
58
        IgxCircularProgressBarComponent,
59
        IgxTooltipTargetDirective,
60
        IgxTooltipDirective,
61
        IgxGridCellImageAltPipe,
62
        IgxStringReplacePipe,
63
        IgxColumnFormatterPipe,
64
        IgxTextSelectionDirective
65
    ]
66
})
67
export class IgxTreeGridCellComponent extends IgxGridExpandableCellComponent {
2✔
68

69
    /**
70
     * @hidden
71
     */
72
    @Input()
UNCOV
73
    public level = 0;
×
74

75
    /**
76
     * @hidden
77
     */
78
    @Input()
UNCOV
79
    public showIndicator = false;
×
80

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

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

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

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