blob: 3f9d5034e9aad8389574c406df29210b1fbe0c47 [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 Scandolof6acdbe2016-12-13 10:29:37 -080052
53export const xosCore = 'xosCore';
54
55angular
Matteo Scandolo67c105f2017-01-09 09:30:52 -080056 .module('xosCore', [
Matteo Scandolo35fdf242017-11-30 12:29:45 -080057 'ngSanitize',
Matteo Scandolo67c105f2017-01-09 09:30:52 -080058 'ui.router',
59 'toastr',
Matteo Scandolo5d962a32017-08-01 18:16:14 -070060 'ui.bootstrap.typeahead',
Matteo Scandolo35fdf242017-11-30 12:29:45 -080061 'ui.bootstrap.tabs',
Matteo Scandolo67c105f2017-01-09 09:30:52 -080062 ])
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080063 .config(routesConfig)
Matteo Scandolo1aee1982017-02-17 08:33:23 -080064 .provider('XosRuntimeStates', XosRuntimeStates)
65 .service('XosNavigationService', IXosNavigationService)
Matteo Scandolo5655bdc2016-12-16 08:32:15 -080066 .service('PageTitle', PageTitle)
Matteo Scandoloee655a12016-12-19 15:38:43 -080067 .service('XosFormHelpers', XosFormHelpers)
Matteo Scandolod58d5042016-12-16 16:59:21 -080068 .service('ConfigHelpers', ConfigHelpers)
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080069 .service('XosSidePanel', XosSidePanel)
Matteo Scandolo5053cbe2017-01-31 17:37:56 -080070 .service('XosKeyboardShortcut', XosKeyboardShortcut)
Matteo Scandolo4222a432017-01-23 12:18:40 -080071 .service('XosComponentInjector', XosComponentInjector)
Matteo Scandoloba0d92e2017-03-02 16:47:46 -080072 .service('XosDebouncer', XosDebouncer)
Matteo Scandoloc3804aa2017-08-09 16:00:43 -070073 .service('XosDebug', XosDebugService)
Max Chu886c89f2017-08-24 15:44:27 -070074 .service('XosConfirm', XosConfirm)
Matteo Scandoloee655a12016-12-19 15:38:43 -080075 .directive('xosLinkWrapper', xosLinkWrapper)
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080076 .component('xosHeader', xosHeader)
77 .component('xosFooter', xosFooter)
78 .component('xosNav', xosNav)
Matteo Scandolo9f87f302016-12-13 18:11:10 -080079 .component('xosLogin', xosLogin)
Matteo Scandolo9b460042017-04-14 16:24:45 -070080 .component('xosLoader', xosLoader)
Matteo Scandolo8b2370c2017-02-02 17:19:07 -080081 .component('xosPagination', xosPagination)
Matteo Scandoloee655a12016-12-19 15:38:43 -080082 .component('xosTable', xosTable)
83 .component('xosForm', xosForm)
Matteo Scandolo6f45e262017-01-09 14:47:26 -080084 .component('xosField', xosField)
Matteo Scandoloac8c8c22017-01-09 15:04:32 -080085 .component('xosAlert', xosAlert)
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080086 .component('xosValidation', xosValidation)
Matteo Scandolo5053cbe2017-01-31 17:37:56 -080087 .component('xosSidePanel', xosSidePanel)
Matteo Scandolo8b2370c2017-02-02 17:19:07 -080088 .component('xosKeyBindingPanel', xosKeyBindingPanel)
Matteo Scandoloc8a58c82017-08-17 17:14:38 -070089 .component('xosDebugSummary', xosDebugSummary)
90 .component('xosDebugModel', xosDebugModel)
Max Chu886c89f2017-08-24 15:44:27 -070091 .component('xosConfirm', xosConfirm)
Matteo Scandolo710dc152017-04-11 13:54:23 -070092 .filter('pagination', PaginationFilter)
93 .filter('arrayToList', ArrayToListFilter);