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';
|
|
|
|
|
|
|
|
// 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-02 16:39:08 +02:00
|
|
|
import { LegalnoticeDialogComponent } from './components/legal-notice/legal-notice.dialog.component';
|
|
|
|
import { PrivacyPolicyDialogComponent } from './components/privacy-policy/privacy-policy.dialog.component';
|
2018-08-09 13:27:04 +02:00
|
|
|
// import { CdkTableModule } from '@angular/cdk/table';
|
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-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-07-23 16:42:17 +02:00
|
|
|
FontAwesomeModule
|
|
|
|
],
|
|
|
|
exports: [
|
|
|
|
FormsModule,
|
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,
|
|
|
|
OsPermsDirective
|
|
|
|
],
|
2018-08-02 16:39:08 +02:00
|
|
|
declarations: [OsPermsDirective, DomChangeDirective, LegalnoticeDialogComponent, PrivacyPolicyDialogComponent],
|
|
|
|
entryComponents: [LegalnoticeDialogComponent, PrivacyPolicyDialogComponent]
|
2018-07-23 16:42:17 +02:00
|
|
|
})
|
|
|
|
export class SharedModule {}
|