@@ -8,7 +8,6 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
88import { EffectsModule } from '@ngrx/effects' ;
99import { RouterStateSerializer , StoreRouterConnectingModule } from '@ngrx/router-store' ;
1010import { MetaReducer , StoreModule , USER_PROVIDED_META_REDUCERS } from '@ngrx/store' ;
11- import { DYNAMIC_ERROR_MESSAGES_MATCHER , DYNAMIC_MATCHER_PROVIDERS , DynamicErrorMessagesMatcher } from '@ng-dynamic-forms/core' ;
1211import { TranslateModule } from '@ngx-translate/core' ;
1312import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to' ;
1413import { AppRoutingModule } from './app-routing.module' ;
@@ -28,7 +27,6 @@ import { XsrfInterceptor } from './core/xsrf/xsrf.interceptor';
2827import { LogInterceptor } from './core/log/log.interceptor' ;
2928import { EagerThemesModule } from '../themes/eager-themes.module' ;
3029import { APP_CONFIG , AppConfig } from '../config/app-config.interface' ;
31- import { NgxMaskModule } from 'ngx-mask' ;
3230import { StoreDevModules } from '../config/store/devtools' ;
3331import { RootModule } from './root.module' ;
3432
@@ -46,14 +44,6 @@ export function getMetaReducers(appConfig: AppConfig): MetaReducer<AppState>[] {
4644 return appConfig . debug ? [ ...appMetaReducers , ...debugMetaReducers ] : appMetaReducers ;
4745}
4846
49- /**
50- * Condition for displaying error messages on email form field
51- */
52- export const ValidateEmailErrorStateMatcher : DynamicErrorMessagesMatcher =
53- ( control : AbstractControl , model : any , hasFocus : boolean ) => {
54- return ( control . touched && ! hasFocus ) || ( control . errors ?. emailTaken && hasFocus ) ;
55- } ;
56-
5747const IMPORTS = [
5848 CommonModule ,
5949 SharedModule ,
@@ -64,7 +54,6 @@ const IMPORTS = [
6454 ScrollToModule . forRoot ( ) ,
6555 NgbModule ,
6656 TranslateModule . forRoot ( ) ,
67- NgxMaskModule . forRoot ( ) ,
6857 EffectsModule . forRoot ( appEffects ) ,
6958 StoreModule . forRoot ( appReducers , storeModuleConfig ) ,
7059 StoreRouterConnectingModule . forRoot ( ) ,
@@ -113,11 +102,6 @@ const PROVIDERS = [
113102 useClass : LogInterceptor ,
114103 multi : true
115104 } ,
116- {
117- provide : DYNAMIC_ERROR_MESSAGES_MATCHER ,
118- useValue : ValidateEmailErrorStateMatcher
119- } ,
120- ...DYNAMIC_MATCHER_PROVIDERS ,
121105] ;
122106
123107const DECLARATIONS = [
0 commit comments