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

atinc / ngx-tethys / #55

30 Jul 2025 07:08AM UTC coverage: 9.866% (-80.4%) from 90.297%
#55

push

why520crazy
feat(empty): add setMessage for update display text #TINFR-2616

92 of 6794 branches covered (1.35%)

Branch coverage included in aggregate %.

2014 of 14552 relevant lines covered (13.84%)

6.15 hits per line

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

66.67
/src/form/module.ts
1
import { ThyAlertModule } from 'ngx-tethys/alert';
2
import { ThyIconModule } from 'ngx-tethys/icon';
3
import { ThyInputModule } from 'ngx-tethys/input';
4
import { ThyTooltipModule } from 'ngx-tethys/tooltip';
5

6
import { CommonModule } from '@angular/common';
7
import { ModuleWithProviders, NgModule } from '@angular/core';
8
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
9

10
import { ThyFormGroupError } from './form-group-error/form-group-error.component';
11
import { ThyFormGroupLabelDirective } from './form-group-label.directive';
12
import { ThyFormGroup } from './form-group.component';
13
import { ThyFormSubmitDirective } from './form-submit.directive';
14
import { ThyFormValidatorLoader } from './form-validator-loader';
15
import { ThyFormValidatorGlobalConfig, THY_FORM_CONFIG_PROVIDER, THY_VALIDATOR_CONFIG } from './form.class';
16
import { ThyFormDirective } from './form.directive';
17
import { ThyFormGroupFooter } from './from-group-footer/form-group-footer.component';
18
import { ThyConfirmValidatorDirective, ThyMaxDirective, ThyMinDirective, ThyUniqueCheckValidator } from './validator/index';
19

1✔
20
@NgModule({
21
    imports: [
×
22
        CommonModule,
23
        FormsModule,
24
        ReactiveFormsModule,
25
        ThyInputModule,
26
        ThyAlertModule,
27
        ThyIconModule,
28
        ThyTooltipModule,
29
        ThyFormDirective,
30
        ThyFormGroup,
31
        ThyFormGroupLabelDirective,
32
        ThyFormSubmitDirective,
1✔
33
        ThyFormGroupFooter,
34
        ThyUniqueCheckValidator,
35
        ThyFormGroupError,
36
        ThyMinDirective,
37
        ThyMaxDirective,
38
        ThyConfirmValidatorDirective
39
    ],
40
    exports: [
41
        ThyFormDirective,
42
        ThyFormGroup,
43
        ThyFormGroupLabelDirective,
44
        ThyFormSubmitDirective,
45
        ThyFormGroupFooter,
46
        ThyUniqueCheckValidator,
47
        ThyFormGroupError,
48
        ThyMinDirective,
49
        ThyMaxDirective,
50
        ThyConfirmValidatorDirective
51
    ],
52
    providers: [ThyFormValidatorLoader, THY_FORM_CONFIG_PROVIDER]
53
})
54
export class ThyFormModule {
55
    static forRoot(config: ThyFormValidatorGlobalConfig): ModuleWithProviders<ThyFormModule> {
56
        return {
57
            ngModule: ThyFormModule,
58
            providers: [
59
                {
60
                    provide: THY_VALIDATOR_CONFIG,
61
                    useValue: config
62
                }
63
            ]
64
        };
65
    }
66
}
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