2018-07-23 16:42:17 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
2018-09-06 07:14:55 +02:00
|
|
|
import { RouterModule } from '@angular/router';
|
2018-07-23 16:42:17 +02:00
|
|
|
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,
|
2018-11-16 16:09:15 +01:00
|
|
|
MatProgressBarModule,
|
2018-07-23 16:42:17 +02:00
|
|
|
MatProgressSpinnerModule,
|
|
|
|
MatSidenavModule,
|
2018-08-08 17:25:39 +02:00
|
|
|
MatSnackBarModule,
|
|
|
|
MatTableModule,
|
2018-08-09 13:27:04 +02:00
|
|
|
MatPaginatorModule,
|
2018-09-18 18:27:14 +02:00
|
|
|
MatSortModule,
|
2018-09-18 15:51:57 +02:00
|
|
|
MatTooltipModule,
|
|
|
|
MatDatepickerModule,
|
|
|
|
MatNativeDateModule,
|
2018-10-11 14:03:44 +02:00
|
|
|
DateAdapter,
|
2018-09-30 18:43:20 +02:00
|
|
|
MatIconModule,
|
2018-11-12 15:24:23 +01:00
|
|
|
MatButtonToggleModule,
|
2018-11-04 11:11:48 +01:00
|
|
|
MatBadgeModule,
|
2018-10-22 16:44:18 +02:00
|
|
|
MatStepperModule,
|
|
|
|
MatBottomSheetModule
|
2018-07-23 16:42:17 +02:00
|
|
|
} from '@angular/material';
|
2018-09-13 07:57:38 +02:00
|
|
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
|
|
import { MatChipsModule } from '@angular/material';
|
2018-09-30 18:43:20 +02:00
|
|
|
import { MatRadioModule } from '@angular/material';
|
2018-09-13 07:57:38 +02:00
|
|
|
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
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-10-15 11:52:57 +02:00
|
|
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
// ngx-translate
|
|
|
|
import { TranslateModule } from '@ngx-translate/core';
|
|
|
|
|
2018-11-16 16:09:15 +01:00
|
|
|
// ngx-file-drop
|
|
|
|
import { FileDropModule } from 'ngx-file-drop';
|
|
|
|
|
2018-11-20 13:31:56 +01:00
|
|
|
// TinyMCE
|
|
|
|
import { EditorModule } from '@tinymce/tinymce-angular';
|
|
|
|
|
2018-07-23 16:42:17 +02:00
|
|
|
// directives
|
2018-09-03 17:57:20 +02:00
|
|
|
import { PermsDirective } from './directives/perms.directive';
|
2018-07-31 15:46:55 +02:00
|
|
|
import { DomChangeDirective } from './directives/dom-change.directive';
|
2018-10-05 16:34:08 +02:00
|
|
|
import { AutofocusDirective } from './directives/autofocus.directive';
|
2018-09-02 11:05:09 +02:00
|
|
|
|
2018-11-16 10:25:17 +01:00
|
|
|
// tree sorting
|
|
|
|
import { TreeModule } from 'angular-tree-component';
|
|
|
|
|
2018-09-02 11:05:09 +02:00
|
|
|
// components
|
2018-08-28 13:54:25 +02:00
|
|
|
import { HeadBarComponent } from './components/head-bar/head-bar.component';
|
2018-09-04 11:35:50 +02:00
|
|
|
import { FooterComponent } from './components/footer/footer.component';
|
2018-09-06 07:14:55 +02:00
|
|
|
import { LegalNoticeContentComponent } from './components/legal-notice-content/legal-notice-content.component';
|
|
|
|
import { PrivacyPolicyContentComponent } from './components/privacy-policy-content/privacy-policy-content.component';
|
2018-09-13 07:57:38 +02:00
|
|
|
import { SearchValueSelectorComponent } from './components/search-value-selector/search-value-selector.component';
|
2018-09-18 15:51:57 +02:00
|
|
|
import { OpenSlidesDateAdapter } from './date-adapter';
|
2018-10-01 15:36:16 +02:00
|
|
|
import { PromptDialogComponent } from './components/prompt-dialog/prompt-dialog.component';
|
2018-10-15 11:52:57 +02:00
|
|
|
import { SortingListComponent } from './components/sorting-list/sorting-list.component';
|
2018-10-23 14:20:29 +02:00
|
|
|
import { SpeakerListComponent } from 'app/site/agenda/components/speaker-list/speaker-list.component';
|
2018-11-16 10:25:17 +01:00
|
|
|
import { SortingTreeComponent } from './components/sorting-tree/sorting-tree.component';
|
2018-11-27 22:44:37 +01:00
|
|
|
import { ChoiceDialogComponent } from './components/choice-dialog/choice-dialog.component';
|
2018-10-22 16:44:18 +02:00
|
|
|
import { OsSortFilterBarComponent } from './components/os-sort-filter-bar/os-sort-filter-bar.component';
|
|
|
|
import { OsSortBottomSheetComponent } from './components/os-sort-filter-bar/os-sort-bottom-sheet/os-sort-bottom-sheet.component';
|
|
|
|
import { FilterMenuComponent } from './components/os-sort-filter-bar/filter-menu/filter-menu.component';
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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-09-13 07:57:38 +02:00
|
|
|
MatAutocompleteModule,
|
2018-07-23 16:42:17 +02:00
|
|
|
MatButtonModule,
|
|
|
|
MatCheckboxModule,
|
|
|
|
MatToolbarModule,
|
2018-09-18 15:51:57 +02:00
|
|
|
MatDatepickerModule,
|
|
|
|
MatNativeDateModule,
|
2018-07-23 16:42:17 +02:00
|
|
|
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-11-16 16:09:15 +01:00
|
|
|
MatProgressBarModule,
|
2018-07-23 16:42:17 +02:00
|
|
|
MatProgressSpinnerModule,
|
|
|
|
MatSidenavModule,
|
|
|
|
MatListModule,
|
|
|
|
MatExpansionModule,
|
|
|
|
MatMenuModule,
|
2018-08-02 16:39:08 +02:00
|
|
|
MatDialogModule,
|
2018-09-06 07:14:55 +02:00
|
|
|
MatSnackBarModule,
|
2018-09-11 16:38:23 +02:00
|
|
|
MatChipsModule,
|
2018-10-22 16:44:18 +02:00
|
|
|
MatBottomSheetModule,
|
2018-09-18 18:27:14 +02:00
|
|
|
MatTooltipModule,
|
2018-11-12 15:24:23 +01:00
|
|
|
MatBadgeModule,
|
2018-10-11 14:03:44 +02:00
|
|
|
// TODO: there is an error with missing icons
|
|
|
|
// we either wait or include a fixed version manually (dirty)
|
|
|
|
// https://github.com/google/material-design-icons/issues/786
|
|
|
|
MatIconModule,
|
2018-09-30 18:43:20 +02:00
|
|
|
MatRadioModule,
|
|
|
|
MatButtonToggleModule,
|
2018-11-04 11:11:48 +01:00
|
|
|
MatStepperModule,
|
2018-10-15 11:52:57 +02:00
|
|
|
DragDropModule,
|
2018-09-06 07:14:55 +02:00
|
|
|
TranslateModule.forChild(),
|
2018-09-13 07:57:38 +02:00
|
|
|
RouterModule,
|
2018-11-16 16:09:15 +01:00
|
|
|
NgxMatSelectSearchModule,
|
2018-11-20 13:31:56 +01:00
|
|
|
FileDropModule,
|
2018-11-16 10:25:17 +01:00
|
|
|
EditorModule,
|
|
|
|
TreeModule.forRoot()
|
2018-07-23 16:42:17 +02:00
|
|
|
],
|
|
|
|
exports: [
|
|
|
|
FormsModule,
|
2018-09-13 07:57:38 +02:00
|
|
|
MatAutocompleteModule,
|
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,
|
2018-09-18 15:51:57 +02:00
|
|
|
MatDatepickerModule,
|
2018-07-23 16:42:17 +02:00
|
|
|
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-11-16 16:09:15 +01:00
|
|
|
MatProgressBarModule,
|
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,
|
2018-09-11 16:38:23 +02:00
|
|
|
MatChipsModule,
|
2018-09-18 18:27:14 +02:00
|
|
|
MatTooltipModule,
|
2018-11-12 15:24:23 +01:00
|
|
|
MatBadgeModule,
|
2018-10-11 14:03:44 +02:00
|
|
|
MatIconModule,
|
2018-09-30 18:43:20 +02:00
|
|
|
MatRadioModule,
|
|
|
|
MatButtonToggleModule,
|
2018-11-04 11:11:48 +01:00
|
|
|
MatStepperModule,
|
2018-10-15 11:52:57 +02:00
|
|
|
DragDropModule,
|
2018-09-13 07:57:38 +02:00
|
|
|
NgxMatSelectSearchModule,
|
2018-11-16 16:09:15 +01:00
|
|
|
FileDropModule,
|
2018-07-23 16:42:17 +02:00
|
|
|
TranslateModule,
|
2018-09-03 17:57:20 +02:00
|
|
|
PermsDirective,
|
2018-08-28 13:54:25 +02:00
|
|
|
DomChangeDirective,
|
2018-10-05 16:34:08 +02:00
|
|
|
AutofocusDirective,
|
2018-09-04 11:35:50 +02:00
|
|
|
FooterComponent,
|
2018-09-06 07:14:55 +02:00
|
|
|
HeadBarComponent,
|
2018-09-13 07:57:38 +02:00
|
|
|
SearchValueSelectorComponent,
|
2018-09-06 07:14:55 +02:00
|
|
|
LegalNoticeContentComponent,
|
2018-10-01 15:36:16 +02:00
|
|
|
PrivacyPolicyContentComponent,
|
2018-10-15 11:52:57 +02:00
|
|
|
PromptDialogComponent,
|
2018-11-20 13:31:56 +01:00
|
|
|
SortingListComponent,
|
2018-11-16 10:25:17 +01:00
|
|
|
EditorModule,
|
|
|
|
SortingTreeComponent,
|
2018-10-22 16:44:18 +02:00
|
|
|
TreeModule,
|
|
|
|
OsSortFilterBarComponent
|
2018-07-23 16:42:17 +02:00
|
|
|
],
|
2018-09-06 07:14:55 +02:00
|
|
|
declarations: [
|
|
|
|
PermsDirective,
|
|
|
|
DomChangeDirective,
|
2018-10-05 16:34:08 +02:00
|
|
|
AutofocusDirective,
|
2018-09-06 07:14:55 +02:00
|
|
|
HeadBarComponent,
|
|
|
|
FooterComponent,
|
|
|
|
LegalNoticeContentComponent,
|
2018-09-13 07:57:38 +02:00
|
|
|
PrivacyPolicyContentComponent,
|
2018-10-01 15:36:16 +02:00
|
|
|
SearchValueSelectorComponent,
|
2018-10-15 11:52:57 +02:00
|
|
|
PromptDialogComponent,
|
2018-10-23 14:20:29 +02:00
|
|
|
SortingListComponent,
|
2018-11-16 10:25:17 +01:00
|
|
|
SpeakerListComponent,
|
2018-11-27 22:44:37 +01:00
|
|
|
SortingTreeComponent,
|
2018-10-22 16:44:18 +02:00
|
|
|
ChoiceDialogComponent,
|
|
|
|
OsSortFilterBarComponent,
|
|
|
|
OsSortBottomSheetComponent,
|
|
|
|
FilterMenuComponent
|
2018-09-18 15:51:57 +02:00
|
|
|
],
|
2018-10-15 11:52:57 +02:00
|
|
|
providers: [
|
|
|
|
{ provide: DateAdapter, useClass: OpenSlidesDateAdapter },
|
|
|
|
SearchValueSelectorComponent,
|
2018-11-16 10:25:17 +01:00
|
|
|
SortingListComponent,
|
2018-10-22 16:44:18 +02:00
|
|
|
SortingTreeComponent,
|
|
|
|
OsSortFilterBarComponent,
|
|
|
|
OsSortBottomSheetComponent
|
|
|
|
],
|
|
|
|
entryComponents: [OsSortBottomSheetComponent]
|
2018-07-23 16:42:17 +02:00
|
|
|
})
|
|
|
|
export class SharedModule {}
|