138 lines
5.0 KiB
TypeScript
138 lines
5.0 KiB
TypeScript
import { CommonModule } from '@angular/common';
|
|
import { NgModule } from '@angular/core';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
import { AngularSvgIconModule } from 'angular-svg-icon';
|
|
import { RouterModule } from '@angular/router';
|
|
import { TreeModule } from '@circlon/angular-tree-component';
|
|
import { AlertModule } from 'ngx-bootstrap/alert';
|
|
import { TypeaheadModule } from 'ngx-bootstrap/typeahead';
|
|
import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';
|
|
import { HotToastModule } from '@ngneat/hot-toast';
|
|
import { AccordionModule } from 'ngx-bootstrap/accordion';
|
|
|
|
/**
|
|
* Components
|
|
*/
|
|
import { SpinnerComponent } from 'app/shared/components/spinner/spinner.component';
|
|
import { MasterAndDetailComponent } from 'app/shared/components/master-and-detail/master-and-detail.component';
|
|
import { TaskanaTreeComponent } from 'app/administration/components/tree/tree.component';
|
|
import { IconTypeComponent } from 'app/administration/components/type-icon/icon-type.component';
|
|
import { FieldErrorDisplayComponent } from 'app/shared/components/field-error-display/field-error-display.component';
|
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
import { MatRadioModule } from '@angular/material/radio';
|
|
import { SortComponent } from './components/sort/sort.component';
|
|
import { PaginationComponent } from './components/pagination/pagination.component';
|
|
import { ProgressSpinnerComponent } from './components/progress-spinner/progress-spinner.component';
|
|
import { TypeAheadComponent } from './components/type-ahead/type-ahead.component';
|
|
|
|
/**
|
|
* Pipes
|
|
*/
|
|
import { MapValuesPipe } from './pipes/map-values.pipe';
|
|
import { RemoveNoneTypePipe } from './pipes/remove-empty-type.pipe';
|
|
import { SpreadNumberPipe } from './pipes/spread-number.pipe';
|
|
import { OrderBy } from './pipes/order-by.pipe';
|
|
import { MapToIterable } from './pipes/map-to-iterable.pipe';
|
|
import { NumberToArray } from './pipes/number-to-array.pipe';
|
|
import { DateTimeZonePipe } from './pipes/date-time-zone.pipe';
|
|
|
|
/**
|
|
* Services
|
|
*/
|
|
import { HttpClientInterceptor } from './services/http-client-interceptor/http-client-interceptor.service';
|
|
import { DialogPopUpComponent } from './components/popup/dialog-pop-up.component';
|
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
import { MatInputModule } from '@angular/material/input';
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
import { MatMenuModule } from '@angular/material/menu';
|
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
import { MatSelectModule } from '@angular/material/select';
|
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
import { WorkbasketFilterComponent } from './components/workbasket-filter/workbasket-filter.component';
|
|
import { TaskFilterComponent } from './components/task-filter/task-filter.component';
|
|
import { WorkbasketService } from 'app/shared/services/workbasket/workbasket.service';
|
|
import { ClassificationsService } from 'app/shared/services/classifications/classifications.service';
|
|
import { ObtainMessageService } from './services/obtain-message/obtain-message.service';
|
|
import { AccessIdsService } from './services/access-ids/access-ids.service';
|
|
import { DragAndDropDirective } from './directives/drag-and-drop.directive';
|
|
import { GermanTimeFormatPipe } from './pipes/german-time-format.pipe';
|
|
|
|
const MODULES = [
|
|
CommonModule,
|
|
FormsModule,
|
|
AlertModule.forRoot(),
|
|
TypeaheadModule.forRoot(),
|
|
AccordionModule.forRoot(),
|
|
BsDatepickerModule.forRoot(),
|
|
AngularSvgIconModule,
|
|
HttpClientModule,
|
|
MatDialogModule,
|
|
MatButtonModule,
|
|
RouterModule,
|
|
TreeModule,
|
|
MatAutocompleteModule,
|
|
HotToastModule.forRoot({
|
|
style: {
|
|
'max-width': '520px'
|
|
}
|
|
})
|
|
];
|
|
|
|
const DECLARATIONS = [
|
|
SpinnerComponent,
|
|
MasterAndDetailComponent,
|
|
TaskanaTreeComponent,
|
|
TypeAheadComponent,
|
|
MapValuesPipe,
|
|
RemoveNoneTypePipe,
|
|
SpreadNumberPipe,
|
|
DateTimeZonePipe,
|
|
NumberToArray,
|
|
OrderBy,
|
|
MapToIterable,
|
|
SortComponent,
|
|
IconTypeComponent,
|
|
FieldErrorDisplayComponent,
|
|
PaginationComponent,
|
|
ProgressSpinnerComponent,
|
|
DialogPopUpComponent,
|
|
WorkbasketFilterComponent,
|
|
TaskFilterComponent,
|
|
DragAndDropDirective,
|
|
GermanTimeFormatPipe
|
|
];
|
|
|
|
@NgModule({
|
|
declarations: [DECLARATIONS],
|
|
imports: [
|
|
MODULES,
|
|
MatRadioModule,
|
|
MatFormFieldModule,
|
|
MatInputModule,
|
|
MatIconModule,
|
|
MatMenuModule,
|
|
MatTooltipModule,
|
|
MatPaginatorModule,
|
|
MatSelectModule,
|
|
ReactiveFormsModule,
|
|
MatProgressSpinnerModule
|
|
],
|
|
exports: [DECLARATIONS, GermanTimeFormatPipe],
|
|
providers: [
|
|
{
|
|
provide: HTTP_INTERCEPTORS,
|
|
useClass: HttpClientInterceptor,
|
|
multi: true
|
|
},
|
|
AccessIdsService,
|
|
ClassificationsService,
|
|
WorkbasketService,
|
|
ObtainMessageService
|
|
]
|
|
})
|
|
export class SharedModule {}
|