• 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

15.79
/src/form/from-group-footer/form-group-footer.component.ts
1
import { Component, HostBinding, ViewEncapsulation, OnInit, ContentChild, TemplateRef, inject, input } from '@angular/core';
2
import { ThyFormDirective } from '../form.directive';
3
import { ThyFormGroupFooterAlign, THY_FORM_CONFIG, ThyFormConfig } from '../form.class';
4
import { NgClass, NgTemplateOutlet } from '@angular/common';
5

6
/**
7
 * 表单组底部组件
8
 * @name thy-form-group-footer
9
 * @order 55
10
 */
11
@Component({
12
    selector: 'thy-form-group-footer',
13
    templateUrl: './form-group-footer.component.html',
1✔
14
    encapsulation: ViewEncapsulation.None,
UNCOV
15
    imports: [NgClass, NgTemplateOutlet]
×
UNCOV
16
})
×
UNCOV
17
export class ThyFormGroupFooter implements OnInit {
×
UNCOV
18
    private thyParentForm = inject(ThyFormDirective, { optional: true })!;
×
UNCOV
19
    private defaultConfig = inject(THY_FORM_CONFIG);
×
UNCOV
20

×
21
    @HostBinding('class.form-group') _isFormGroup = true;
22

UNCOV
23
    @HostBinding('class.row') isHorizontal = true;
×
UNCOV
24

×
25
    @ContentChild('description') description: TemplateRef<any>;
26

UNCOV
27
    /**
×
UNCOV
28
     * 对齐方式
×
29
     * @type left | right | center
UNCOV
30
     * @default left
×
31
     */
32
    readonly thyAlign = input<ThyFormGroupFooterAlign>(undefined);
UNCOV
33

×
34
    public footerClassMap = {};
35

36
    private get align() {
37
        const thyAlign = this.thyAlign();
38
        return !!thyAlign ? thyAlign : this.defaultConfig.footerAlign;
39
    }
1✔
40

41
    ngOnInit() {
42
        if (this.thyParentForm) {
43
            this.isHorizontal = this.thyParentForm.isHorizontal;
44
        }
45
        this.setFooterClassMap();
46
    }
1✔
47

48
    setFooterClassMap() {
49
        this.footerClassMap = {
50
            'form-group-footer': true,
51
            'col-sm-10 offset-sm-2 col-form-control': this.isHorizontal,
52
            [`form-group-footer-align-${this.align}`]: true
53
        };
54
    }
55
}
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