|
|
@ -31,7 +31,7 @@ import { ShortDatePipe } from './pipes/short-date.pipe'; |
|
|
import { SafeHtmlPipe } from './pipes/safe-html.pipe'; |
|
|
import { SafeHtmlPipe } from './pipes/safe-html.pipe'; |
|
|
import { provideAbpCoreChild, provideAbpCore, withOptions } from './providers'; |
|
|
import { provideAbpCoreChild, provideAbpCore, withOptions } from './providers'; |
|
|
|
|
|
|
|
|
const standaloneDirectives = [ |
|
|
const CORE_DIRECTIVES = [ |
|
|
AutofocusDirective, |
|
|
AutofocusDirective, |
|
|
InputEventDebounceDirective, |
|
|
InputEventDebounceDirective, |
|
|
ForDirective, |
|
|
ForDirective, |
|
|
@ -41,6 +41,23 @@ const standaloneDirectives = [ |
|
|
ReplaceableTemplateDirective, |
|
|
ReplaceableTemplateDirective, |
|
|
StopPropagationDirective, |
|
|
StopPropagationDirective, |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
const CORE_PIPES = [ |
|
|
|
|
|
LocalizationPipe, |
|
|
|
|
|
SortPipe, |
|
|
|
|
|
SafeHtmlPipe, |
|
|
|
|
|
ShortDateTimePipe, |
|
|
|
|
|
ShortTimePipe, |
|
|
|
|
|
ShortDatePipe, |
|
|
|
|
|
ToInjectorPipe, |
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
const CORE_COMPONENTS = [ |
|
|
|
|
|
DynamicLayoutComponent, |
|
|
|
|
|
ReplaceableRouteContainerComponent, |
|
|
|
|
|
RouterOutletComponent, |
|
|
|
|
|
AbstractNgModelComponent, |
|
|
|
|
|
]; |
|
|
/** |
|
|
/** |
|
|
* BaseCoreModule is the module that holds |
|
|
* BaseCoreModule is the module that holds |
|
|
* all imports, declarations, exports, and entryComponents |
|
|
* all imports, declarations, exports, and entryComponents |
|
|
@ -54,17 +71,9 @@ const standaloneDirectives = [ |
|
|
ReactiveFormsModule, |
|
|
ReactiveFormsModule, |
|
|
RouterModule, |
|
|
RouterModule, |
|
|
LocalizationModule, |
|
|
LocalizationModule, |
|
|
AbstractNgModelComponent, |
|
|
...CORE_DIRECTIVES, |
|
|
DynamicLayoutComponent, |
|
|
...CORE_PIPES, |
|
|
ReplaceableRouteContainerComponent, |
|
|
...CORE_COMPONENTS, |
|
|
RouterOutletComponent, |
|
|
|
|
|
SortPipe, |
|
|
|
|
|
SafeHtmlPipe, |
|
|
|
|
|
ToInjectorPipe, |
|
|
|
|
|
ShortDateTimePipe, |
|
|
|
|
|
ShortTimePipe, |
|
|
|
|
|
ShortDatePipe, |
|
|
|
|
|
...standaloneDirectives, |
|
|
|
|
|
], |
|
|
], |
|
|
imports: [ |
|
|
imports: [ |
|
|
CommonModule, |
|
|
CommonModule, |
|
|
@ -72,17 +81,9 @@ const standaloneDirectives = [ |
|
|
ReactiveFormsModule, |
|
|
ReactiveFormsModule, |
|
|
RouterModule, |
|
|
RouterModule, |
|
|
LocalizationModule, |
|
|
LocalizationModule, |
|
|
...standaloneDirectives, |
|
|
...CORE_DIRECTIVES, |
|
|
DynamicLayoutComponent, |
|
|
...CORE_PIPES, |
|
|
ReplaceableRouteContainerComponent, |
|
|
...CORE_COMPONENTS, |
|
|
ShortDateTimePipe, |
|
|
|
|
|
ShortTimePipe, |
|
|
|
|
|
ShortDatePipe, |
|
|
|
|
|
SafeHtmlPipe, |
|
|
|
|
|
SortPipe, |
|
|
|
|
|
ToInjectorPipe, |
|
|
|
|
|
RouterOutletComponent, |
|
|
|
|
|
AbstractNgModelComponent, |
|
|
|
|
|
], |
|
|
], |
|
|
declarations: [], |
|
|
declarations: [], |
|
|
providers: [LocalizationPipe, provideHttpClient(withInterceptorsFromDi())], |
|
|
providers: [LocalizationPipe, provideHttpClient(withInterceptorsFromDi())], |
|
|
|