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