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