mirror of https://github.com/abpframework/abp.git
Browse Source
Angular UI: Added ThemeBasicTestingModule and secondary entry point for itpull/6990/head
committed by
GitHub
4 changed files with 46 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||
{ |
|||
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json", |
|||
"dest": "../../dist/theme-basic/testing", |
|||
"lib": { |
|||
"entryFile": "src/public-api.ts" |
|||
} |
|||
} |
|||
@ -0,0 +1,32 @@ |
|||
import { |
|||
BaseThemeBasicModule, |
|||
BASIC_THEME_NAV_ITEM_PROVIDERS, |
|||
BASIC_THEME_STYLES_PROVIDERS, |
|||
ValidationErrorComponent, |
|||
} from '@abp/ng.theme.basic'; |
|||
import { ModuleWithProviders, NgModule } from '@angular/core'; |
|||
import { VALIDATION_ERROR_TEMPLATE, VALIDATION_TARGET_SELECTOR } from '@ngx-validate/core'; |
|||
|
|||
@NgModule({ |
|||
exports: [BaseThemeBasicModule], |
|||
imports: [BaseThemeBasicModule], |
|||
}) |
|||
export class ThemeBasicTestingModule { |
|||
static forRoot(): ModuleWithProviders<ThemeBasicTestingModule> { |
|||
return { |
|||
ngModule: ThemeBasicTestingModule, |
|||
providers: [ |
|||
BASIC_THEME_NAV_ITEM_PROVIDERS, |
|||
BASIC_THEME_STYLES_PROVIDERS, |
|||
{ |
|||
provide: VALIDATION_ERROR_TEMPLATE, |
|||
useValue: ValidationErrorComponent, |
|||
}, |
|||
{ |
|||
provide: VALIDATION_TARGET_SELECTOR, |
|||
useValue: '.form-group', |
|||
}, |
|||
], |
|||
}; |
|||
} |
|||
} |
|||
@ -0,0 +1 @@ |
|||
export * from './lib/theme-basic-testing.module'; |
|||
Loading…
Reference in new issue