Newer
Older
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
/*CORE IMPORTS*/
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 } from '@angular/common/http';
import { RouterModule } from '@angular/router';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { SortPipe } from '../plugins/sorting.pipe';

Alex ORLUC
committed
import { PdfViewerModule } from 'ng2-pdf-viewer';
//import { SimplePdfViewerModule } from 'simple-pdf-viewer';
import { NgStringPipesModule } 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 { EcplOnlyofficeViewerComponent } from '../plugins/onlyoffice-api-js/onlyoffice-viewer.component';
/*FRONT IMPORTS*/
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 { MainHeaderComponent } from './menu/main-header.component';
import { MenuComponent } from './menu/menu.component';
import { MenuNavComponent } from './menu/menu-nav.component';
import { MenuShortcutComponent, IndexingGroupModalComponent } from './menu/menu-shortcut.component';
/*SEARCH*/
import { SearchHomeComponent } from './search/search-home.component';
/*SEARCH*/
import { BasketHomeComponent } from './basket/basket-home.component';

Alex ORLUC
committed
import { IndexingFormComponent } from './indexation/indexing-form/indexing-form.component';
import { FieldListComponent } from './indexation/field-list/field-list.component';
/*MODAL*/
import { AlertComponent } from '../plugins/modal/alert.component';
import { ConfirmComponent } from '../plugins/modal/confirm.component';
/*PLUGIN 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 { DiffusionsListComponent } from './diffusions/diffusions-list.component';
import { DocumentViewerComponent } from './viewer/document-viewer.component';
import { HeaderService } from '../service/header.service';
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,
MainHeaderComponent,
MenuComponent,
MenuNavComponent,
HeaderRightComponent,
HeaderLeftComponent,
HeaderPanelComponent,
TimeAgoPipe,
TimeLimitPipe,
FilterListPipe,
IndexingGroupModalComponent,
SmdFabSpeedDialComponent,
SmdFabSpeedDialTrigger,
SmdFabSpeedDialActions,

Alex ORLUC
committed
PluginAutocomplete,
IndexingFormComponent,
PluginSelectSearchComponent,
DragDropDirective,
EcplOnlyofficeViewerComponent
],
exports: [
CommonModule,
MainHeaderComponent,
MenuComponent,
MenuNavComponent,
MenuShortcutComponent,
HeaderRightComponent,
HeaderLeftComponent,
HeaderPanelComponent,
BrowserModule,
BrowserAnimationsModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
RouterModule,
TimeAgoPipe,
TimeLimitPipe,
FilterListPipe,

Alex ORLUC
committed
PdfViewerModule,
SmdFabSpeedDialComponent,
SmdFabSpeedDialTrigger,
SmdFabSpeedDialActions,

Alex ORLUC
committed
PluginAutocomplete,
IndexingFormComponent,
PluginSelectSearchComponent,
DragDropDirective,
EcplOnlyofficeViewerComponent
CookieService,
{
provide: HAMMER_GESTURE_CONFIG,
useClass: MyHammerConfig
}
entryComponents: [
AlertComponent,
ConfirmComponent
})
export class SharedModule { }