• 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

7.14
/projects/igniteui-angular/src/lib/slider/label/thumb-label.component.ts
1
import { Component, Input, TemplateRef, HostBinding, ElementRef, booleanAttribute } from '@angular/core';
2
import { SliderHandle } from '../slider.common';
3
import { IgxSliderThumbComponent } from '../thumb/thumb-slider.component';
4
import { NgClass, NgTemplateOutlet } from '@angular/common';
5

6
/**
7
 * @hidden
8
 */
9
@Component({
10
    selector: 'igx-thumb-label',
11
    templateUrl: 'thumb-label.component.html',
12
    imports: [NgClass, NgTemplateOutlet]
13
})
14
export class IgxThumbLabelComponent {
2✔
15
    @Input()
16
    public value: any;
17

18
    @Input()
19
    public templateRef: TemplateRef<any>;
20

21
    @Input()
22
    public context: any;
23

24
    @Input()
25
    public type: SliderHandle;
26

27
    @Input({ transform: booleanAttribute })
28
    public continuous: boolean;
29

30
    @Input({ transform: booleanAttribute })
31
    public deactiveState: boolean;
32

33
    @Input()
34
    public thumb: IgxSliderThumbComponent;
35

36

37
    @HostBinding('class.igx-slider-thumb-label-from')
38
    public get thumbFromClass() {
UNCOV
39
        return this.type === SliderHandle.FROM;
×
40
    }
41

42
    @HostBinding('class.igx-slider-thumb-label-to')
43
    public get thumbToClass() {
UNCOV
44
        return this.type === SliderHandle.TO;
×
45
    }
46

47
    @HostBinding('class.igx-slider-thumb-label-from--active')
48
    public get thumbFromActiveClass() {
UNCOV
49
        return this.type === SliderHandle.FROM && this.active;
×
50
    }
51

52
    @HostBinding('class.igx-slider-thumb-label-to--active')
53
    public get thumbToActiveClass() {
UNCOV
54
        return this.type === SliderHandle.TO && this.active;
×
55
    }
56

57
    @HostBinding('class.igx-slider-thumb-label-from--pressed')
58
    public get labelFromPressedClass() {
UNCOV
59
        return this.thumb?.thumbFromPressedClass;
×
60
    }
61

62
    @HostBinding('class.igx-slider-thumb-label-to--pressed')
63
    public get labelToPressedClass() {
UNCOV
64
        return this.thumb?.thumbToPressedClass;
×
65
    }
66

67
    public get getLabelClass() {
UNCOV
68
        return {
×
69
            'igx-slider-thumb-label-from__container': this.type === SliderHandle.FROM,
70
            'igx-slider-thumb-label-to__container': this.type === SliderHandle.TO
71
        };
72
    }
73

74
    private _active: boolean;
75

UNCOV
76
    constructor(private _elementRef: ElementRef) { }
×
77

78
    public get nativeElement() {
UNCOV
79
        return this._elementRef.nativeElement;
×
80
    }
81

82
    public get active() {
UNCOV
83
        return this._active;
×
84
    }
85

86
    public set active(val: boolean) {
UNCOV
87
        if (this.continuous || this.deactiveState) {
×
UNCOV
88
            this._active = false;
×
89
        } else {
UNCOV
90
            this._active = val;
×
91
        }
92
    }
93
}
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