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

atinc / ngx-tethys / #71

06 Aug 2025 02:34AM UTC coverage: 9.672% (-80.6%) from 90.298%
#71

push

web-flow
feat(date-picker): add dateCellRender #TINFR-2386 (#3495) (#3499)

104 of 6813 branches covered (1.53%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 1 file covered. (100.0%)

11855 existing lines in 343 files now uncovered.

1969 of 14620 relevant lines covered (13.47%)

6.13 hits per line

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

13.04
/src/form/form-group-error/form-group-error.component.ts
1
import { Component, HostBinding, ViewEncapsulation, OnInit, Input, inject, input } from '@angular/core';
2
import { ThyFormDirective } from '../form.directive';
3
import { ThyAlert } from 'ngx-tethys/alert';
4
import { NgClass } from '@angular/common';
5
import { coerceBooleanProperty } from 'ngx-tethys/util';
6

7
/**
8
 * @name thy-form-group-error
9
 * @order 50
10
 */
11
@Component({
12
    selector: 'thy-form-group-error',
13
    templateUrl: './form-group-error.component.html',
1✔
14
    encapsulation: ViewEncapsulation.None,
UNCOV
15
    imports: [NgClass, ThyAlert]
×
UNCOV
16
})
×
UNCOV
17
export class ThyFormGroupError implements OnInit {
×
18
    private thyParentForm = inject(ThyFormDirective, { optional: true })!;
19

UNCOV
20
    public errors: string[];
×
21

22
    readonly thyShowFirst = input(true, { transform: coerceBooleanProperty });
UNCOV
23

×
UNCOV
24
    /**
×
25
     * @type string[]
26
     */
UNCOV
27
    @Input()
×
28
    set thyErrors(errors: string[]) {
29
        this.errors = errors;
UNCOV
30
    }
×
UNCOV
31

×
32
    get thyErrors() {
33
        const errors = this.errors || this.thyParentForm.validator.errors;
34
        return errors && errors.length > 0 && this.thyShowFirst() ? [errors[0]] : errors;
1✔
35
    }
36

37
    @HostBinding('class.form-group')
38
    get _isFormGroup() {
39
        return this.thyErrors && this.thyErrors.length > 0;
40
    }
41

1✔
42
    @HostBinding('class.row') isHorizontal = true;
43

44
    ngOnInit() {
45
        if (this.thyParentForm) {
46
            this.isHorizontal = this.thyParentForm.isHorizontal;
47
        }
48
    }
49
}
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