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 | 35fdf24 | 2017-11-30 12:29:45 -0800 | [diff] [blame] | 34 | import 'angular-sanitize'; |
Matteo Scandolo | 6f45e26 | 2017-01-09 14:47:26 -0800 | [diff] [blame] | 35 | import {xosAlert} from './alert/alert'; |
Matteo Scandolo | ac8c8c2 | 2017-01-09 15:04:32 -0800 | [diff] [blame] | 36 | import {xosValidation} from './validation/validation'; |
Matteo Scandolo | 9d7940c | 2017-01-19 18:28:43 -0800 | [diff] [blame] | 37 | import {xosSidePanel} from './side-panel/side-panel'; |
| 38 | import {XosSidePanel} from './side-panel/side-panel.service'; |
Matteo Scandolo | 4222a43 | 2017-01-23 12:18:40 -0800 | [diff] [blame] | 39 | import {XosComponentInjector} from './services/helpers/component-injector.helpers'; |
Matteo Scandolo | 5053cbe | 2017-01-31 17:37:56 -0800 | [diff] [blame] | 40 | import {XosKeyboardShortcut} from './services/keyboard-shortcut'; |
| 41 | import {xosKeyBindingPanel} from './key-binding/key-binding-panel'; |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 42 | import {xosPagination} from './pagination/pagination'; |
| 43 | import {PaginationFilter} from './pagination/pagination.filter'; |
Matteo Scandolo | ba0d92e | 2017-03-02 16:47:46 -0800 | [diff] [blame] | 44 | import {XosDebouncer} from './services/helpers/debounce.helper'; |
Matteo Scandolo | 710dc15 | 2017-04-11 13:54:23 -0700 | [diff] [blame] | 45 | import {ArrayToListFilter} from './table/array-to-list.filter'; |
Matteo Scandolo | 9b46004 | 2017-04-14 16:24:45 -0700 | [diff] [blame] | 46 | import {xosLoader} from './loader/loader'; |
Matteo Scandolo | c8a58c8 | 2017-08-17 17:14:38 -0700 | [diff] [blame] | 47 | import {xosDebugSummary} from './debug/debug-summary'; |
Matteo Scandolo | c3804aa | 2017-08-09 16:00:43 -0700 | [diff] [blame] | 48 | import {XosDebugService} from './debug/debug.service'; |
Matteo Scandolo | c8a58c8 | 2017-08-17 17:14:38 -0700 | [diff] [blame] | 49 | import {xosDebugModel} from './debug/debug-model'; |
Max Chu | 886c89f | 2017-08-24 15:44:27 -0700 | [diff] [blame] | 50 | import {xosConfirm} from './confirm/confirm'; |
| 51 | import {XosConfirm} from './confirm/confirm.service'; |
Matteo Scandolo | d3cd3b1 | 2018-03-22 16:59:48 -0700 | [diff] [blame] | 52 | import {xosServiceStatus} from './service-status/service-status'; |
Matteo Scandolo | 57aee47 | 2018-06-28 15:24:42 -0700 | [diff] [blame] | 53 | import {XosVersionReaderService} from './services/version-reader'; |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame] | 54 | |
| 55 | export const xosCore = 'xosCore'; |
| 56 | |
| 57 | angular |
Matteo Scandolo | 67c105f | 2017-01-09 09:30:52 -0800 | [diff] [blame] | 58 | .module('xosCore', [ |
Matteo Scandolo | 35fdf24 | 2017-11-30 12:29:45 -0800 | [diff] [blame] | 59 | 'ngSanitize', |
Matteo Scandolo | 67c105f | 2017-01-09 09:30:52 -0800 | [diff] [blame] | 60 | 'ui.router', |
| 61 | 'toastr', |
Matteo Scandolo | 5d962a3 | 2017-08-01 18:16:14 -0700 | [diff] [blame] | 62 | 'ui.bootstrap.typeahead', |
Matteo Scandolo | 35fdf24 | 2017-11-30 12:29:45 -0800 | [diff] [blame] | 63 | 'ui.bootstrap.tabs', |
Matteo Scandolo | 67c105f | 2017-01-09 09:30:52 -0800 | [diff] [blame] | 64 | ]) |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame] | 65 | .config(routesConfig) |
Matteo Scandolo | 1aee198 | 2017-02-17 08:33:23 -0800 | [diff] [blame] | 66 | .provider('XosRuntimeStates', XosRuntimeStates) |
| 67 | .service('XosNavigationService', IXosNavigationService) |
Matteo Scandolo | 5655bdc | 2016-12-16 08:32:15 -0800 | [diff] [blame] | 68 | .service('PageTitle', PageTitle) |
Matteo Scandolo | ee655a1 | 2016-12-19 15:38:43 -0800 | [diff] [blame] | 69 | .service('XosFormHelpers', XosFormHelpers) |
Matteo Scandolo | d58d504 | 2016-12-16 16:59:21 -0800 | [diff] [blame] | 70 | .service('ConfigHelpers', ConfigHelpers) |
Matteo Scandolo | 9d7940c | 2017-01-19 18:28:43 -0800 | [diff] [blame] | 71 | .service('XosSidePanel', XosSidePanel) |
Matteo Scandolo | 5053cbe | 2017-01-31 17:37:56 -0800 | [diff] [blame] | 72 | .service('XosKeyboardShortcut', XosKeyboardShortcut) |
Matteo Scandolo | 4222a43 | 2017-01-23 12:18:40 -0800 | [diff] [blame] | 73 | .service('XosComponentInjector', XosComponentInjector) |
Matteo Scandolo | ba0d92e | 2017-03-02 16:47:46 -0800 | [diff] [blame] | 74 | .service('XosDebouncer', XosDebouncer) |
Matteo Scandolo | c3804aa | 2017-08-09 16:00:43 -0700 | [diff] [blame] | 75 | .service('XosDebug', XosDebugService) |
Max Chu | 886c89f | 2017-08-24 15:44:27 -0700 | [diff] [blame] | 76 | .service('XosConfirm', XosConfirm) |
Matteo Scandolo | 57aee47 | 2018-06-28 15:24:42 -0700 | [diff] [blame] | 77 | .service('XosVersionReaderService', XosVersionReaderService) |
Matteo Scandolo | ee655a1 | 2016-12-19 15:38:43 -0800 | [diff] [blame] | 78 | .directive('xosLinkWrapper', xosLinkWrapper) |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame] | 79 | .component('xosHeader', xosHeader) |
| 80 | .component('xosFooter', xosFooter) |
| 81 | .component('xosNav', xosNav) |
Matteo Scandolo | 9f87f30 | 2016-12-13 18:11:10 -0800 | [diff] [blame] | 82 | .component('xosLogin', xosLogin) |
Matteo Scandolo | 9b46004 | 2017-04-14 16:24:45 -0700 | [diff] [blame] | 83 | .component('xosLoader', xosLoader) |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 84 | .component('xosPagination', xosPagination) |
Matteo Scandolo | ee655a1 | 2016-12-19 15:38:43 -0800 | [diff] [blame] | 85 | .component('xosTable', xosTable) |
| 86 | .component('xosForm', xosForm) |
Matteo Scandolo | 6f45e26 | 2017-01-09 14:47:26 -0800 | [diff] [blame] | 87 | .component('xosField', xosField) |
Matteo Scandolo | ac8c8c2 | 2017-01-09 15:04:32 -0800 | [diff] [blame] | 88 | .component('xosAlert', xosAlert) |
Matteo Scandolo | 9d7940c | 2017-01-19 18:28:43 -0800 | [diff] [blame] | 89 | .component('xosValidation', xosValidation) |
Matteo Scandolo | 5053cbe | 2017-01-31 17:37:56 -0800 | [diff] [blame] | 90 | .component('xosSidePanel', xosSidePanel) |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 91 | .component('xosKeyBindingPanel', xosKeyBindingPanel) |
Matteo Scandolo | c8a58c8 | 2017-08-17 17:14:38 -0700 | [diff] [blame] | 92 | .component('xosDebugSummary', xosDebugSummary) |
| 93 | .component('xosDebugModel', xosDebugModel) |
Max Chu | 886c89f | 2017-08-24 15:44:27 -0700 | [diff] [blame] | 94 | .component('xosConfirm', xosConfirm) |
Matteo Scandolo | d3cd3b1 | 2018-03-22 16:59:48 -0700 | [diff] [blame] | 95 | .component('serviceStatus', xosServiceStatus) |
Matteo Scandolo | 710dc15 | 2017-04-11 13:54:23 -0700 | [diff] [blame] | 96 | .filter('pagination', PaginationFilter) |
| 97 | .filter('arrayToList', ArrayToListFilter); |