Matteo Scandolo | fb46ae6 | 2017-08-08 09:10:50 -0700 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame] | 19 | import {xosHeader} from './header/header'; |
| 20 | import {xosFooter} from './footer/footer'; |
| 21 | import {xosNav} from './nav/nav'; |
| 22 | import routesConfig from './routes'; |
| 23 | import {xosLogin} from './login/login'; |
Matteo Scandolo | 9f87f30 | 2016-12-13 18:11:10 -0800 | [diff] [blame] | 24 | import {xosTable} from './table/table'; |
Matteo Scandolo | 1aee198 | 2017-02-17 08:33:23 -0800 | [diff] [blame] | 25 | import {XosRuntimeStates} from './services/runtime-states'; |
| 26 | import {IXosNavigationService} from './services/navigation'; |
Matteo Scandolo | 5655bdc | 2016-12-16 08:32:15 -0800 | [diff] [blame] | 27 | import {PageTitle} from './services/page-title'; |
Matteo Scandolo | d58d504 | 2016-12-16 16:59:21 -0800 | [diff] [blame] | 28 | import {ConfigHelpers} from './services/helpers/config.helpers'; |
Matteo Scandolo | ee655a1 | 2016-12-19 15:38:43 -0800 | [diff] [blame] | 29 | import {xosLinkWrapper} from './link-wrapper/link-wrapper'; |
| 30 | import {XosFormHelpers} from './form/form-helpers'; |
| 31 | import {xosForm} from './form/form'; |
| 32 | import {xosField} from './field/field'; |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 33 | import 'angular-toastr'; |
Matteo Scandolo | 6f45e26 | 2017-01-09 14:47:26 -0800 | [diff] [blame] | 34 | import {xosAlert} from './alert/alert'; |
Matteo Scandolo | ac8c8c2 | 2017-01-09 15:04:32 -0800 | [diff] [blame] | 35 | import {xosValidation} from './validation/validation'; |
Matteo Scandolo | 9d7940c | 2017-01-19 18:28:43 -0800 | [diff] [blame] | 36 | import {xosSidePanel} from './side-panel/side-panel'; |
| 37 | import {XosSidePanel} from './side-panel/side-panel.service'; |
Matteo Scandolo | 4222a43 | 2017-01-23 12:18:40 -0800 | [diff] [blame] | 38 | import {XosComponentInjector} from './services/helpers/component-injector.helpers'; |
Matteo Scandolo | 5053cbe | 2017-01-31 17:37:56 -0800 | [diff] [blame] | 39 | import {XosKeyboardShortcut} from './services/keyboard-shortcut'; |
| 40 | import {xosKeyBindingPanel} from './key-binding/key-binding-panel'; |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 41 | import {xosPagination} from './pagination/pagination'; |
| 42 | import {PaginationFilter} from './pagination/pagination.filter'; |
Matteo Scandolo | ba0d92e | 2017-03-02 16:47:46 -0800 | [diff] [blame] | 43 | import {XosDebouncer} from './services/helpers/debounce.helper'; |
Matteo Scandolo | 710dc15 | 2017-04-11 13:54:23 -0700 | [diff] [blame] | 44 | import {ArrayToListFilter} from './table/array-to-list.filter'; |
Matteo Scandolo | 9b46004 | 2017-04-14 16:24:45 -0700 | [diff] [blame] | 45 | import {xosLoader} from './loader/loader'; |
Matteo Scandolo | c3804aa | 2017-08-09 16:00:43 -0700 | [diff] [blame] | 46 | import {xosDebugComponent} from './debug/debug'; |
| 47 | import {XosDebugService} from './debug/debug.service'; |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame] | 48 | |
| 49 | export const xosCore = 'xosCore'; |
| 50 | |
| 51 | angular |
Matteo Scandolo | 67c105f | 2017-01-09 09:30:52 -0800 | [diff] [blame] | 52 | .module('xosCore', [ |
| 53 | 'ui.router', |
| 54 | 'toastr', |
Matteo Scandolo | 5d962a3 | 2017-08-01 18:16:14 -0700 | [diff] [blame] | 55 | 'ui.bootstrap.typeahead', |
| 56 | 'ui.bootstrap.tabs' |
Matteo Scandolo | 67c105f | 2017-01-09 09:30:52 -0800 | [diff] [blame] | 57 | ]) |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame] | 58 | .config(routesConfig) |
Matteo Scandolo | 1aee198 | 2017-02-17 08:33:23 -0800 | [diff] [blame] | 59 | .provider('XosRuntimeStates', XosRuntimeStates) |
| 60 | .service('XosNavigationService', IXosNavigationService) |
Matteo Scandolo | 5655bdc | 2016-12-16 08:32:15 -0800 | [diff] [blame] | 61 | .service('PageTitle', PageTitle) |
Matteo Scandolo | ee655a1 | 2016-12-19 15:38:43 -0800 | [diff] [blame] | 62 | .service('XosFormHelpers', XosFormHelpers) |
Matteo Scandolo | d58d504 | 2016-12-16 16:59:21 -0800 | [diff] [blame] | 63 | .service('ConfigHelpers', ConfigHelpers) |
Matteo Scandolo | 9d7940c | 2017-01-19 18:28:43 -0800 | [diff] [blame] | 64 | .service('XosSidePanel', XosSidePanel) |
Matteo Scandolo | 5053cbe | 2017-01-31 17:37:56 -0800 | [diff] [blame] | 65 | .service('XosKeyboardShortcut', XosKeyboardShortcut) |
Matteo Scandolo | 4222a43 | 2017-01-23 12:18:40 -0800 | [diff] [blame] | 66 | .service('XosComponentInjector', XosComponentInjector) |
Matteo Scandolo | ba0d92e | 2017-03-02 16:47:46 -0800 | [diff] [blame] | 67 | .service('XosDebouncer', XosDebouncer) |
Matteo Scandolo | c3804aa | 2017-08-09 16:00:43 -0700 | [diff] [blame] | 68 | .service('XosDebug', XosDebugService) |
Matteo Scandolo | ee655a1 | 2016-12-19 15:38:43 -0800 | [diff] [blame] | 69 | .directive('xosLinkWrapper', xosLinkWrapper) |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame] | 70 | .component('xosHeader', xosHeader) |
| 71 | .component('xosFooter', xosFooter) |
| 72 | .component('xosNav', xosNav) |
Matteo Scandolo | 9f87f30 | 2016-12-13 18:11:10 -0800 | [diff] [blame] | 73 | .component('xosLogin', xosLogin) |
Matteo Scandolo | 9b46004 | 2017-04-14 16:24:45 -0700 | [diff] [blame] | 74 | .component('xosLoader', xosLoader) |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 75 | .component('xosPagination', xosPagination) |
Matteo Scandolo | ee655a1 | 2016-12-19 15:38:43 -0800 | [diff] [blame] | 76 | .component('xosTable', xosTable) |
| 77 | .component('xosForm', xosForm) |
Matteo Scandolo | 6f45e26 | 2017-01-09 14:47:26 -0800 | [diff] [blame] | 78 | .component('xosField', xosField) |
Matteo Scandolo | ac8c8c2 | 2017-01-09 15:04:32 -0800 | [diff] [blame] | 79 | .component('xosAlert', xosAlert) |
Matteo Scandolo | 9d7940c | 2017-01-19 18:28:43 -0800 | [diff] [blame] | 80 | .component('xosValidation', xosValidation) |
Matteo Scandolo | 5053cbe | 2017-01-31 17:37:56 -0800 | [diff] [blame] | 81 | .component('xosSidePanel', xosSidePanel) |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 82 | .component('xosKeyBindingPanel', xosKeyBindingPanel) |
Matteo Scandolo | c3804aa | 2017-08-09 16:00:43 -0700 | [diff] [blame] | 83 | .component('xosDebug', xosDebugComponent) |
Matteo Scandolo | 710dc15 | 2017-04-11 13:54:23 -0700 | [diff] [blame] | 84 | .filter('pagination', PaginationFilter) |
| 85 | .filter('arrayToList', ArrayToListFilter); |