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

atinc / ngx-tethys / 68ef226c-f83e-44c1-b8ed-e420a83c5d84

28 May 2025 10:31AM UTC coverage: 10.352% (-80.0%) from 90.316%
68ef226c-f83e-44c1-b8ed-e420a83c5d84

Pull #3460

circleci

pubuzhixing8
chore: xxx
Pull Request #3460: refactor(icon): migrate signal input #TINFR-1476

132 of 6823 branches covered (1.93%)

Branch coverage included in aggregate %.

10 of 14 new or added lines in 1 file covered. (71.43%)

11648 existing lines in 344 files now uncovered.

2078 of 14525 relevant lines covered (14.31%)

6.69 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

© 2025 Coveralls, Inc