|
|
@ -1,6 +1,5 @@ |
|
|
import { CoreModule, LazyLoadService } from '@abp/ng.core'; |
|
|
import { CoreModule, LazyLoadService } from '@abp/ng.core'; |
|
|
import { APP_INITIALIZER, Injector, ModuleWithProviders, NgModule } from '@angular/core'; |
|
|
import { APP_INITIALIZER, Injector, ModuleWithProviders, NgModule } from '@angular/core'; |
|
|
import { NgxValidateCoreModule } from '@ngx-validate/core'; |
|
|
|
|
|
import { MessageService } from 'primeng/components/common/messageservice'; |
|
|
import { MessageService } from 'primeng/components/common/messageservice'; |
|
|
import { ToastModule } from 'primeng/toast'; |
|
|
import { ToastModule } from 'primeng/toast'; |
|
|
import { forkJoin } from 'rxjs'; |
|
|
import { forkJoin } from 'rxjs'; |
|
|
@ -11,7 +10,6 @@ import { ChangePasswordComponent } from './components/change-password/change-pas |
|
|
import { ChartComponent } from './components/chart/chart.component'; |
|
|
import { ChartComponent } from './components/chart/chart.component'; |
|
|
import { ConfirmationComponent } from './components/confirmation/confirmation.component'; |
|
|
import { ConfirmationComponent } from './components/confirmation/confirmation.component'; |
|
|
import { ErrorComponent } from './components/errors/error.component'; |
|
|
import { ErrorComponent } from './components/errors/error.component'; |
|
|
import { ValidationErrorComponent } from './components/errors/validation-error.component'; |
|
|
|
|
|
import { LoaderBarComponent } from './components/loader-bar/loader-bar.component'; |
|
|
import { LoaderBarComponent } from './components/loader-bar/loader-bar.component'; |
|
|
import { ModalComponent } from './components/modal/modal.component'; |
|
|
import { ModalComponent } from './components/modal/modal.component'; |
|
|
import { ProfileComponent } from './components/profile/profile.component'; |
|
|
import { ProfileComponent } from './components/profile/profile.component'; |
|
|
@ -19,6 +17,7 @@ import { ToastComponent } from './components/toast/toast.component'; |
|
|
import styles from './contants/styles'; |
|
|
import styles from './contants/styles'; |
|
|
import { ErrorHandler } from './handlers/error.handler'; |
|
|
import { ErrorHandler } from './handlers/error.handler'; |
|
|
import { chartJsLoaded$ } from './utils/widget-utils'; |
|
|
import { chartJsLoaded$ } from './utils/widget-utils'; |
|
|
|
|
|
import { TableEmptyMessageComponent } from './components/table-empty-message/table-empty-message.component'; |
|
|
|
|
|
|
|
|
export function appendScript(injector: Injector) { |
|
|
export function appendScript(injector: Injector) { |
|
|
const fn = function() { |
|
|
const fn = function() { |
|
|
@ -41,23 +40,7 @@ export function appendScript(injector: Injector) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@NgModule({ |
|
|
@NgModule({ |
|
|
imports: [ |
|
|
imports: [CoreModule, ToastModule], |
|
|
CoreModule, |
|
|
|
|
|
ToastModule, |
|
|
|
|
|
NgxValidateCoreModule.forRoot({ |
|
|
|
|
|
targetSelector: '.form-group', |
|
|
|
|
|
blueprints: { |
|
|
|
|
|
email: `AbpAccount::ThisFieldIsNotAValidEmailAddress.`, |
|
|
|
|
|
max: `AbpAccount::ThisFieldMustBeBetween{0}And{1}[{{ min }},{{ max }}]`, |
|
|
|
|
|
maxlength: `AbpAccount::ThisFieldMustBeAStringWithAMaximumLengthOf{1}[{{ requiredLength }}]`, |
|
|
|
|
|
min: `AbpAccount::ThisFieldMustBeBetween{0}And{1}[{{ min }},{{ max }}]`, |
|
|
|
|
|
minlength: `AbpAccount::ThisFieldMustBeAStringOrArrayTypeWithAMinimumLengthOf[{{ min }},{{ max }}]`, |
|
|
|
|
|
required: `AbpAccount::ThisFieldIsRequired.`, |
|
|
|
|
|
passwordMismatch: `AbpIdentity::Identity.PasswordConfirmationFailed`, |
|
|
|
|
|
}, |
|
|
|
|
|
errorTemplate: ValidationErrorComponent, |
|
|
|
|
|
}), |
|
|
|
|
|
], |
|
|
|
|
|
declarations: [ |
|
|
declarations: [ |
|
|
BreadcrumbComponent, |
|
|
BreadcrumbComponent, |
|
|
ButtonComponent, |
|
|
ButtonComponent, |
|
|
@ -68,8 +51,8 @@ export function appendScript(injector: Injector) { |
|
|
LoaderBarComponent, |
|
|
LoaderBarComponent, |
|
|
ModalComponent, |
|
|
ModalComponent, |
|
|
ProfileComponent, |
|
|
ProfileComponent, |
|
|
|
|
|
TableEmptyMessageComponent, |
|
|
ToastComponent, |
|
|
ToastComponent, |
|
|
ValidationErrorComponent, |
|
|
|
|
|
], |
|
|
], |
|
|
exports: [ |
|
|
exports: [ |
|
|
BreadcrumbComponent, |
|
|
BreadcrumbComponent, |
|
|
@ -80,9 +63,10 @@ export function appendScript(injector: Injector) { |
|
|
LoaderBarComponent, |
|
|
LoaderBarComponent, |
|
|
ModalComponent, |
|
|
ModalComponent, |
|
|
ProfileComponent, |
|
|
ProfileComponent, |
|
|
|
|
|
TableEmptyMessageComponent, |
|
|
ToastComponent, |
|
|
ToastComponent, |
|
|
], |
|
|
], |
|
|
entryComponents: [ErrorComponent, ValidationErrorComponent], |
|
|
entryComponents: [ErrorComponent], |
|
|
}) |
|
|
}) |
|
|
export class ThemeSharedModule { |
|
|
export class ThemeSharedModule { |
|
|
static forRoot(): ModuleWithProviders { |
|
|
static forRoot(): ModuleWithProviders { |
|
|
|