blob: e3d05e6405ae6ceccc089f539f15dfe793af9a13 [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 Scandolo35fdf242017-11-30 12:29:45 -080034import 'angular-sanitize';
Matteo Scandolo6f45e262017-01-09 14:47:26 -080035import {xosAlert} from './alert/alert';
Matteo Scandoloac8c8c22017-01-09 15:04:32 -080036import {xosValidation} from './validation/validation';
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080037import {xosSidePanel} from './side-panel/side-panel';
38import {XosSidePanel} from './side-panel/side-panel.service';
Matteo Scandolo4222a432017-01-23 12:18:40 -080039import {XosComponentInjector} from './services/helpers/component-injector.helpers';
Matteo Scandolo5053cbe2017-01-31 17:37:56 -080040import {XosKeyboardShortcut} from './services/keyboard-shortcut';
41import {xosKeyBindingPanel} from './key-binding/key-binding-panel';
Matteo Scandolo8b2370c2017-02-02 17:19:07 -080042import {xosPagination} from './pagination/pagination';
43import {PaginationFilter} from './pagination/pagination.filter';
Matteo Scandoloba0d92e2017-03-02 16:47:46 -080044import {XosDebouncer} from './services/helpers/debounce.helper';
Matteo Scandolo710dc152017-04-11 13:54:23 -070045import {ArrayToListFilter} from './table/array-to-list.filter';
Matteo Scandolo9b460042017-04-14 16:24:45 -070046import {xosLoader} from './loader/loader';
Matteo Scandoloc8a58c82017-08-17 17:14:38 -070047import {xosDebugSummary} from './debug/debug-summary';
Matteo Scandoloc3804aa2017-08-09 16:00:43 -070048import {XosDebugService} from './debug/debug.service';
Matteo Scandoloc8a58c82017-08-17 17:14:38 -070049import {xosDebugModel} from './debug/debug-model';
Max Chu886c89f2017-08-24 15:44:27 -070050import {xosConfirm} from './confirm/confirm';
51import {XosConfirm} from './confirm/confirm.service';
Matteo Scandolod3cd3b12018-03-22 16:59:48 -070052import {xosServiceStatus} from './service-status/service-status';
Matteo Scandolo57aee472018-06-28 15:24:42 -070053import {XosVersionReaderService} from './services/version-reader';
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080054
55export const xosCore = 'xosCore';
56
57angular
Matteo Scandolo67c105f2017-01-09 09:30:52 -080058 .module('xosCore', [
Matteo Scandolo35fdf242017-11-30 12:29:45 -080059 'ngSanitize',
Matteo Scandolo67c105f2017-01-09 09:30:52 -080060 'ui.router',
61 'toastr',
Matteo Scandolo5d962a32017-08-01 18:16:14 -070062 'ui.bootstrap.typeahead',
Matteo Scandolo35fdf242017-11-30 12:29:45 -080063 'ui.bootstrap.tabs',
Matteo Scandolo67c105f2017-01-09 09:30:52 -080064 ])
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080065 .config(routesConfig)
Matteo Scandolo1aee1982017-02-17 08:33:23 -080066 .provider('XosRuntimeStates', XosRuntimeStates)
67 .service('XosNavigationService', IXosNavigationService)
Matteo Scandolo5655bdc2016-12-16 08:32:15 -080068 .service('PageTitle', PageTitle)
Matteo Scandoloee655a12016-12-19 15:38:43 -080069 .service('XosFormHelpers', XosFormHelpers)
Matteo Scandolod58d5042016-12-16 16:59:21 -080070 .service('ConfigHelpers', ConfigHelpers)
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080071 .service('XosSidePanel', XosSidePanel)
Matteo Scandolo5053cbe2017-01-31 17:37:56 -080072 .service('XosKeyboardShortcut', XosKeyboardShortcut)
Matteo Scandolo4222a432017-01-23 12:18:40 -080073 .service('XosComponentInjector', XosComponentInjector)
Matteo Scandoloba0d92e2017-03-02 16:47:46 -080074 .service('XosDebouncer', XosDebouncer)
Matteo Scandoloc3804aa2017-08-09 16:00:43 -070075 .service('XosDebug', XosDebugService)
Max Chu886c89f2017-08-24 15:44:27 -070076 .service('XosConfirm', XosConfirm)
Matteo Scandolo57aee472018-06-28 15:24:42 -070077 .service('XosVersionReaderService', XosVersionReaderService)
Matteo Scandoloee655a12016-12-19 15:38:43 -080078 .directive('xosLinkWrapper', xosLinkWrapper)
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080079 .component('xosHeader', xosHeader)
80 .component('xosFooter', xosFooter)
81 .component('xosNav', xosNav)
Matteo Scandolo9f87f302016-12-13 18:11:10 -080082 .component('xosLogin', xosLogin)
Matteo Scandolo9b460042017-04-14 16:24:45 -070083 .component('xosLoader', xosLoader)
Matteo Scandolo8b2370c2017-02-02 17:19:07 -080084 .component('xosPagination', xosPagination)
Matteo Scandoloee655a12016-12-19 15:38:43 -080085 .component('xosTable', xosTable)
86 .component('xosForm', xosForm)
Matteo Scandolo6f45e262017-01-09 14:47:26 -080087 .component('xosField', xosField)
Matteo Scandoloac8c8c22017-01-09 15:04:32 -080088 .component('xosAlert', xosAlert)
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080089 .component('xosValidation', xosValidation)
Matteo Scandolo5053cbe2017-01-31 17:37:56 -080090 .component('xosSidePanel', xosSidePanel)
Matteo Scandolo8b2370c2017-02-02 17:19:07 -080091 .component('xosKeyBindingPanel', xosKeyBindingPanel)
Matteo Scandoloc8a58c82017-08-17 17:14:38 -070092 .component('xosDebugSummary', xosDebugSummary)
93 .component('xosDebugModel', xosDebugModel)
Max Chu886c89f2017-08-24 15:44:27 -070094 .component('xosConfirm', xosConfirm)
Matteo Scandolod3cd3b12018-03-22 16:59:48 -070095 .component('serviceStatus', xosServiceStatus)
Matteo Scandolo710dc152017-04-11 13:54:23 -070096 .filter('pagination', PaginationFilter)
97 .filter('arrayToList', ArrayToListFilter);