2018-07-23 16:42:17 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { CommonModule } from '@angular/common';
|
2018-07-31 15:46:55 +02:00
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
// MaterialUI modules
|
|
|
|
import {
|
|
|
|
MatButtonModule,
|
|
|
|
MatCheckboxModule,
|
|
|
|
MatToolbarModule,
|
|
|
|
MatCardModule,
|
|
|
|
MatInputModule,
|
|
|
|
MatProgressSpinnerModule,
|
|
|
|
MatSidenavModule,
|
2018-08-08 17:25:39 +02:00
|
|
|
MatSnackBarModule,
|
|
|
|
MatTableModule,
|
2018-08-09 13:27:04 +02:00
|
|
|
MatPaginatorModule,
|
|
|
|
MatSortModule
|
2018-07-23 16:42:17 +02:00
|
|
|
} from '@angular/material';
|
2018-08-02 16:39:08 +02:00
|
|
|
import { MatDialogModule } from '@angular/material/dialog';
|
2018-07-23 16:42:17 +02:00
|
|
|
import { MatListModule } from '@angular/material/list';
|
|
|
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
|
|
import { MatMenuModule } from '@angular/material/menu';
|
2018-08-16 17:03:39 +02:00
|
|
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
|
import { MatSelectModule } from '@angular/material/select';
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
// FontAwesome modules
|
|
|
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
|
|
import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
|
|
|
|
// ngx-translate
|
|
|
|
import { TranslateModule } from '@ngx-translate/core';
|
|
|
|
|
|
|
|
// directives
|
|
|
|
import { OsPermsDirective } from './directives/os-perms.directive';
|
2018-07-31 15:46:55 +02:00
|
|
|
import { DomChangeDirective } from './directives/dom-change.directive';
|
2018-08-28 13:54:25 +02:00
|
|
|
import { HeadBarComponent } from './components/head-bar/head-bar.component';
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
library.add(fas);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Share Module for all "dumb" components and pipes.
|
|
|
|
*
|
|
|
|
* These components don not import and inject services from core or other features
|
|
|
|
* in their constructors.
|
|
|
|
*
|
|
|
|
* Should receive all data though attributes in the template of the component using them.
|
|
|
|
* No dependency to the rest of our application.
|
|
|
|
*/
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
CommonModule,
|
|
|
|
FormsModule,
|
2018-08-16 17:03:39 +02:00
|
|
|
MatFormFieldModule,
|
|
|
|
MatSelectModule,
|
2018-07-31 15:46:55 +02:00
|
|
|
ReactiveFormsModule,
|
2018-07-23 16:42:17 +02:00
|
|
|
MatButtonModule,
|
|
|
|
MatCheckboxModule,
|
|
|
|
MatToolbarModule,
|
|
|
|
MatCardModule,
|
|
|
|
MatInputModule,
|
2018-08-08 17:25:39 +02:00
|
|
|
MatTableModule,
|
2018-08-09 13:27:04 +02:00
|
|
|
MatSortModule,
|
2018-08-08 17:25:39 +02:00
|
|
|
MatPaginatorModule,
|
2018-07-23 16:42:17 +02:00
|
|
|
MatProgressSpinnerModule,
|
|
|
|
MatSidenavModule,
|
|
|
|
MatListModule,
|
|
|
|
MatExpansionModule,
|
|
|
|
MatMenuModule,
|
|
|
|
MatSnackBarModule,
|
2018-08-02 16:39:08 +02:00
|
|
|
MatDialogModule,
|
2018-08-28 13:54:25 +02:00
|
|
|
TranslateModule.forChild(),
|
2018-07-23 16:42:17 +02:00
|
|
|
FontAwesomeModule
|
|
|
|
],
|
|
|
|
exports: [
|
|
|
|
FormsModule,
|
2018-08-16 17:03:39 +02:00
|
|
|
MatFormFieldModule,
|
|
|
|
MatSelectModule,
|
2018-07-31 15:46:55 +02:00
|
|
|
ReactiveFormsModule,
|
2018-07-23 16:42:17 +02:00
|
|
|
MatButtonModule,
|
|
|
|
MatCheckboxModule,
|
|
|
|
MatToolbarModule,
|
|
|
|
MatCardModule,
|
|
|
|
MatInputModule,
|
2018-08-08 17:25:39 +02:00
|
|
|
MatTableModule,
|
2018-08-09 13:27:04 +02:00
|
|
|
MatSortModule,
|
2018-08-08 17:25:39 +02:00
|
|
|
MatPaginatorModule,
|
2018-07-23 16:42:17 +02:00
|
|
|
MatProgressSpinnerModule,
|
|
|
|
MatSidenavModule,
|
|
|
|
MatListModule,
|
|
|
|
MatExpansionModule,
|
|
|
|
MatMenuModule,
|
2018-08-02 16:39:08 +02:00
|
|
|
MatDialogModule,
|
2018-07-23 16:42:17 +02:00
|
|
|
MatSnackBarModule,
|
|
|
|
FontAwesomeModule,
|
|
|
|
TranslateModule,
|
2018-08-28 13:54:25 +02:00
|
|
|
OsPermsDirective,
|
|
|
|
DomChangeDirective,
|
|
|
|
HeadBarComponent
|
2018-07-23 16:42:17 +02:00
|
|
|
],
|
2018-08-28 13:54:25 +02:00
|
|
|
declarations: [OsPermsDirective, DomChangeDirective, HeadBarComponent]
|
2018-07-23 16:42:17 +02:00
|
|
|
})
|
|
|
|
export class SharedModule {}
|