Newer
Older
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { BrowserModule, HammerGestureConfig, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { RouterModule } from '@angular/router';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { AuthInterceptor } from '../service/auth-interceptor.service';
import { LangService } from '../service/app-lang.service';
import { CustomSnackbarComponent, NotificationService } from './notification.service';
import { FunctionsService } from '../service/functions.service';
import { SortPipe } from '../plugins/sorting.pipe';
import { PdfViewerModule } from 'ng2-pdf-viewer';
// import { SimplePdfViewerModule } from 'simple-pdf-viewer';
import { NgStringPipesModule } from 'ngx-pipes';
import { LatinisePipe } from 'ngx-pipes';
import { CookieService } from 'ngx-cookie-service';
import { TimeAgoPipe } from '../plugins/timeAgo.pipe';
import { TimeLimitPipe } from '../plugins/timeLimit.pipe';
import { FilterListPipe } from '../plugins/filterList.pipe';
import { FullDatePipe } from '../plugins/fullDate.pipe';
import { SafeHtmlPipe } from '../plugins/safeHtml.pipe';
import { SecureUrlPipe } from '../plugins/secureUrl.pipe';
import { EcplOnlyofficeViewerComponent } from '../plugins/onlyoffice-api-js/onlyoffice-viewer.component';
import { MaarchTreeComponent } from '../plugins/tree/maarch-tree.component';
import { AppMaterialModule } from './app-material.module';
import { SmdFabSpeedDialComponent, SmdFabSpeedDialTrigger, SmdFabSpeedDialActions, } from '../plugins/fab-speed-dial';
import { HeaderRightComponent } from './header/header-right.component';
import { HeaderLeftComponent } from './header/header-left.component';
import { HeaderPanelComponent } from './header/header-panel.component';
import { MenuNavComponent } from './menu/menu-nav.component';
import { MenuShortcutComponent, IndexingGroupModalComponent } from './menu/menu-shortcut.component';
import { SearchHomeComponent } from './search/search-home.component';
import { BasketHomeComponent } from './basket/basket-home.component';
import { IndexingFormComponent } from './indexation/indexing-form/indexing-form.component';
import { FieldListComponent } from './indexation/field-list/field-list.component';

Alex ORLUC
committed
import { AlertComponent } from '../plugins/modal/alert.component';
import { ConfirmComponent } from '../plugins/modal/confirm.component';
import { PluginAutocomplete } from '../plugins/autocomplete/autocomplete.component';
import { PluginSelectSearchComponent } from '../plugins/select-search/select-search.component';
import { FolderInputComponent } from '../app/folder/indexing/folder-input.component';
import { TagInputComponent } from '../app/tag/indexing/tag-input.component';
import { DragDropDirective } from '../app/viewer/upload-file-dnd.directive';
import { AddressBanAutocompleteComponent } from './contact/ban-autocomplete/address-ban-autocomplete.component';
import { ContactAutocompleteComponent } from './contact/autocomplete/contact-autocomplete.component';
import { ContactsFormComponent } from './administration/contact/page/form/contacts-form.component';
import { HistoryComponent } from './history/history.component';
import { DiffusionsListComponent } from './diffusions/diffusions-list.component';
import { DocumentViewerComponent } from './viewer/document-viewer.component';
import { HeaderService } from '../service/header.service';
import { VisaWorkflowComponent } from './visa/visa-workflow.component';
import { AvisWorkflowComponent } from './avis/avis-workflow.component';
import { ContactResourceComponent } from './contact/contact-resource/contact-resource.component';
import { ContactDetailComponent } from './contact/contact-detail/contact-detail.component';
export class MyHammerConfig extends HammerGestureConfig {
overrides = <any>{
'pinch': { enable: false },
'rotate': { enable: false }
@NgModule({
imports: [
CommonModule,
BrowserModule,
BrowserAnimationsModule,
FormsModule,
HttpClientModule,
RouterModule,

Alex ORLUC
committed
PdfViewerModule,
],
declarations: [
MenuNavComponent,
HeaderRightComponent,
HeaderLeftComponent,
HeaderPanelComponent,
TimeAgoPipe,
TimeLimitPipe,
FilterListPipe,
SafeHtmlPipe,
IndexingGroupModalComponent,
SmdFabSpeedDialComponent,
SmdFabSpeedDialTrigger,
SmdFabSpeedDialActions,

Alex ORLUC
committed
PluginAutocomplete,
IndexingFormComponent,
PluginSelectSearchComponent,
EcplOnlyofficeViewerComponent,
CustomSnackbarComponent,
HistoryComponent,
AddressBanAutocompleteComponent,
VisaWorkflowComponent,
AvisWorkflowComponent,
MaarchTreeComponent,
ContactResourceComponent,
ContactDetailComponent,
],
exports: [
CommonModule,
MenuNavComponent,
MenuShortcutComponent,
HeaderRightComponent,
HeaderLeftComponent,
HeaderPanelComponent,
BrowserModule,
BrowserAnimationsModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
RouterModule,
TimeAgoPipe,
TimeLimitPipe,
FilterListPipe,
SafeHtmlPipe,

Alex ORLUC
committed
PdfViewerModule,
SmdFabSpeedDialComponent,
SmdFabSpeedDialTrigger,
SmdFabSpeedDialActions,

Alex ORLUC
committed
PluginAutocomplete,
IndexingFormComponent,
PluginSelectSearchComponent,
EcplOnlyofficeViewerComponent,
ContactsFormComponent,
HistoryComponent,
AddressBanAutocompleteComponent,
VisaWorkflowComponent,
AvisWorkflowComponent,
MaarchTreeComponent,
ContactResourceComponent,
ContactDetailComponent,
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
LangService,
FunctionsService,
{
provide: HAMMER_GESTURE_CONFIG,
useClass: MyHammerConfig
}
entryComponents: [
AlertComponent,
ConfirmComponent
})
export class SharedModule { }