Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 1 | /* |
| 2 | ============LICENSE_START========================================== |
| 3 | =================================================================== |
| 4 | Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. |
| 5 | =================================================================== |
| 6 | |
| 7 | Unless otherwise specified, all software contained herein is licensed |
| 8 | under the Apache License, Version 2.0 (the License); |
| 9 | you may not use this software except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | |
| 20 | ECOMP is a trademark and service mark of AT&T Intellectual Property. |
| 21 | ============LICENSE_END============================================ |
| 22 | */ |
| 23 | |
| 24 | |
| 25 | import {ModuleWithProviders, NgModule} from '@angular/core'; |
| 26 | import {RouterModule} from '@angular/router'; |
| 27 | import {Collapse} from './directives/collapse.component'; |
| 28 | import {CommonModule} from '@angular/common'; |
| 29 | import {DropDownToggleDirective} from './directives/drop-down-toggle.directive'; |
| 30 | import {Dropdown} from './directives/dropdown'; |
| 31 | import {DropdownNotClosableZone} from './directives/dropdownnotclosablezone'; |
| 32 | import {DropdownOpen} from './directives/dropdownopen'; |
| 33 | import {EmitterService} from './services/emitter.service'; |
| 34 | import {HeaderComponent} from './components/header/header.component'; |
| 35 | import {HelpComponent} from './components/help/help/help.component'; |
| 36 | import {HttpModule} from '@angular/http'; |
| 37 | import {HttpUtilService} from './services/httpUtil/http-util.service'; |
| 38 | import {LogoutComponent} from './components/logout/logout.component'; |
| 39 | import {MappingEditorService} from './services/mapping-editor.service'; |
| 40 | import {NavigationComponent} from './components/navigation/navigation.component'; |
| 41 | import {NgbModule} from '@ng-bootstrap/ng-bootstrap'; |
| 42 | import {NotificationService} from './services/notification.service'; |
| 43 | import {ParamShareService} from './services/paramShare.service'; |
| 44 | import {TidyTableModule} from './modules/tidy-table/tidy-table.module'; |
| 45 | import {UtilityService} from './services/utilityService/utility.service'; |
| 46 | import {VmFilteringPipe} from '../pipes/vm-filtering.pipe'; |
| 47 | import {SimpleNotificationsModule} from 'angular2-notifications'; |
| 48 | import { NgProgressModule } from 'ngx-progressbar'; |
| 49 | import {FormsModule} from '@angular/forms'; |
| 50 | |
| 51 | @NgModule({ |
| 52 | imports: [ |
| 53 | FormsModule, |
| 54 | CommonModule, HttpModule, RouterModule, TidyTableModule, NgProgressModule, NgbModule, SimpleNotificationsModule.forRoot()], |
| 55 | |
| 56 | declarations: [VmFilteringPipe, |
| 57 | |
| 58 | HelpComponent, |
| 59 | HeaderComponent, NavigationComponent, LogoutComponent, Collapse, Dropdown, DropdownNotClosableZone, DropdownOpen, DropDownToggleDirective |
| 60 | ], |
| 61 | exports: [VmFilteringPipe, NgProgressModule, NgbModule, HelpComponent, DropDownToggleDirective, HeaderComponent, NavigationComponent, LogoutComponent, TidyTableModule, Collapse, Dropdown, DropdownNotClosableZone, DropdownOpen] |
| 62 | }) |
| 63 | export class SharedModule { |
| 64 | |
| 65 | static forRoot(): ModuleWithProviders { |
| 66 | return { |
| 67 | ngModule: SharedModule, |
| 68 | providers: [HttpUtilService, EmitterService, NotificationService, |
| 69 | UtilityService, |
| 70 | ParamShareService, MappingEditorService] |
| 71 | }; |
| 72 | } |
| 73 | } |