blob: bdd01572a8a235cd0e3395b7cdfb8aec930a84ff [file] [log] [blame]
Matteo Scandolofb46ae62017-08-08 09:10:50 -07001
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 Scandolof6acdbe2016-12-13 10:29:37 -080019import {xosHeader} from './header/header';
20import {xosFooter} from './footer/footer';
21import {xosNav} from './nav/nav';
22import routesConfig from './routes';
23import {xosLogin} from './login/login';
Matteo Scandolo9f87f302016-12-13 18:11:10 -080024import {xosTable} from './table/table';
Matteo Scandolo1aee1982017-02-17 08:33:23 -080025import {XosRuntimeStates} from './services/runtime-states';
26import {IXosNavigationService} from './services/navigation';
Matteo Scandolo5655bdc2016-12-16 08:32:15 -080027import {PageTitle} from './services/page-title';
Matteo Scandolod58d5042016-12-16 16:59:21 -080028import {ConfigHelpers} from './services/helpers/config.helpers';
Matteo Scandoloee655a12016-12-19 15:38:43 -080029import {xosLinkWrapper} from './link-wrapper/link-wrapper';
30import {XosFormHelpers} from './form/form-helpers';
31import {xosForm} from './form/form';
32import {xosField} from './field/field';
Matteo Scandolo266907e2016-12-20 13:41:42 -080033import 'angular-toastr';
Matteo Scandolo6f45e262017-01-09 14:47:26 -080034import {xosAlert} from './alert/alert';
Matteo Scandoloac8c8c22017-01-09 15:04:32 -080035import {xosValidation} from './validation/validation';
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080036import {xosSidePanel} from './side-panel/side-panel';
37import {XosSidePanel} from './side-panel/side-panel.service';
Matteo Scandolo4222a432017-01-23 12:18:40 -080038import {XosComponentInjector} from './services/helpers/component-injector.helpers';
Matteo Scandolo5053cbe2017-01-31 17:37:56 -080039import {XosKeyboardShortcut} from './services/keyboard-shortcut';
40import {xosKeyBindingPanel} from './key-binding/key-binding-panel';
Matteo Scandolo8b2370c2017-02-02 17:19:07 -080041import {xosPagination} from './pagination/pagination';
42import {PaginationFilter} from './pagination/pagination.filter';
Matteo Scandoloba0d92e2017-03-02 16:47:46 -080043import {XosDebouncer} from './services/helpers/debounce.helper';
Matteo Scandolo710dc152017-04-11 13:54:23 -070044import {ArrayToListFilter} from './table/array-to-list.filter';
Matteo Scandolo9b460042017-04-14 16:24:45 -070045import {xosLoader} from './loader/loader';
Matteo Scandoloc8a58c82017-08-17 17:14:38 -070046import {xosDebugSummary} from './debug/debug-summary';
Matteo Scandoloc3804aa2017-08-09 16:00:43 -070047import {XosDebugService} from './debug/debug.service';
Matteo Scandoloc8a58c82017-08-17 17:14:38 -070048import {xosDebugModel} from './debug/debug-model';
Max Chu886c89f2017-08-24 15:44:27 -070049import {xosConfirm} from './confirm/confirm';
50import {XosConfirm} from './confirm/confirm.service';
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080051
52export const xosCore = 'xosCore';
53
54angular
Matteo Scandolo67c105f2017-01-09 09:30:52 -080055 .module('xosCore', [
56 'ui.router',
57 'toastr',
Matteo Scandolo5d962a32017-08-01 18:16:14 -070058 'ui.bootstrap.typeahead',
59 'ui.bootstrap.tabs'
Matteo Scandolo67c105f2017-01-09 09:30:52 -080060 ])
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080061 .config(routesConfig)
Matteo Scandolo1aee1982017-02-17 08:33:23 -080062 .provider('XosRuntimeStates', XosRuntimeStates)
63 .service('XosNavigationService', IXosNavigationService)
Matteo Scandolo5655bdc2016-12-16 08:32:15 -080064 .service('PageTitle', PageTitle)
Matteo Scandoloee655a12016-12-19 15:38:43 -080065 .service('XosFormHelpers', XosFormHelpers)
Matteo Scandolod58d5042016-12-16 16:59:21 -080066 .service('ConfigHelpers', ConfigHelpers)
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080067 .service('XosSidePanel', XosSidePanel)
Matteo Scandolo5053cbe2017-01-31 17:37:56 -080068 .service('XosKeyboardShortcut', XosKeyboardShortcut)
Matteo Scandolo4222a432017-01-23 12:18:40 -080069 .service('XosComponentInjector', XosComponentInjector)
Matteo Scandoloba0d92e2017-03-02 16:47:46 -080070 .service('XosDebouncer', XosDebouncer)
Matteo Scandoloc3804aa2017-08-09 16:00:43 -070071 .service('XosDebug', XosDebugService)
Max Chu886c89f2017-08-24 15:44:27 -070072 .service('XosConfirm', XosConfirm)
Matteo Scandoloee655a12016-12-19 15:38:43 -080073 .directive('xosLinkWrapper', xosLinkWrapper)
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080074 .component('xosHeader', xosHeader)
75 .component('xosFooter', xosFooter)
76 .component('xosNav', xosNav)
Matteo Scandolo9f87f302016-12-13 18:11:10 -080077 .component('xosLogin', xosLogin)
Matteo Scandolo9b460042017-04-14 16:24:45 -070078 .component('xosLoader', xosLoader)
Matteo Scandolo8b2370c2017-02-02 17:19:07 -080079 .component('xosPagination', xosPagination)
Matteo Scandoloee655a12016-12-19 15:38:43 -080080 .component('xosTable', xosTable)
81 .component('xosForm', xosForm)
Matteo Scandolo6f45e262017-01-09 14:47:26 -080082 .component('xosField', xosField)
Matteo Scandoloac8c8c22017-01-09 15:04:32 -080083 .component('xosAlert', xosAlert)
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080084 .component('xosValidation', xosValidation)
Matteo Scandolo5053cbe2017-01-31 17:37:56 -080085 .component('xosSidePanel', xosSidePanel)
Matteo Scandolo8b2370c2017-02-02 17:19:07 -080086 .component('xosKeyBindingPanel', xosKeyBindingPanel)
Matteo Scandoloc8a58c82017-08-17 17:14:38 -070087 .component('xosDebugSummary', xosDebugSummary)
88 .component('xosDebugModel', xosDebugModel)
Max Chu886c89f2017-08-24 15:44:27 -070089 .component('xosConfirm', xosConfirm)
Matteo Scandolo710dc152017-04-11 13:54:23 -070090 .filter('pagination', PaginationFilter)
91 .filter('arrayToList', ArrayToListFilter);