blob: 64d295c2e266aa25bd90f62f90654e560749cd51 [file] [log] [blame]
Matteo Scandolof6acdbe2016-12-13 10:29:37 -08001import {xosHeader} from './header/header';
2import {xosFooter} from './footer/footer';
3import {xosNav} from './nav/nav';
4import routesConfig from './routes';
5import {xosLogin} from './login/login';
Matteo Scandolo9f87f302016-12-13 18:11:10 -08006import {xosTable} from './table/table';
Matteo Scandolo1aee1982017-02-17 08:33:23 -08007import {XosRuntimeStates} from './services/runtime-states';
8import {IXosNavigationService} from './services/navigation';
Matteo Scandolo5655bdc2016-12-16 08:32:15 -08009import {PageTitle} from './services/page-title';
Matteo Scandolod58d5042016-12-16 16:59:21 -080010import {ConfigHelpers} from './services/helpers/config.helpers';
Matteo Scandoloee655a12016-12-19 15:38:43 -080011import {xosLinkWrapper} from './link-wrapper/link-wrapper';
12import {XosFormHelpers} from './form/form-helpers';
13import {xosForm} from './form/form';
14import {xosField} from './field/field';
Matteo Scandolo266907e2016-12-20 13:41:42 -080015import 'angular-toastr';
Matteo Scandolo6f45e262017-01-09 14:47:26 -080016import {xosAlert} from './alert/alert';
Matteo Scandoloac8c8c22017-01-09 15:04:32 -080017import {xosValidation} from './validation/validation';
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080018import {xosSidePanel} from './side-panel/side-panel';
19import {XosSidePanel} from './side-panel/side-panel.service';
Matteo Scandolo4222a432017-01-23 12:18:40 -080020import {XosComponentInjector} from './services/helpers/component-injector.helpers';
Matteo Scandolo5053cbe2017-01-31 17:37:56 -080021import {XosKeyboardShortcut} from './services/keyboard-shortcut';
22import {xosKeyBindingPanel} from './key-binding/key-binding-panel';
Matteo Scandolo8b2370c2017-02-02 17:19:07 -080023import {xosPagination} from './pagination/pagination';
24import {PaginationFilter} from './pagination/pagination.filter';
Matteo Scandoloba0d92e2017-03-02 16:47:46 -080025import {XosDebouncer} from './services/helpers/debounce.helper';
Matteo Scandolo710dc152017-04-11 13:54:23 -070026import {ArrayToListFilter} from './table/array-to-list.filter';
Matteo Scandolo9b460042017-04-14 16:24:45 -070027import {xosLoader} from './loader/loader';
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080028
29export const xosCore = 'xosCore';
30
31angular
Matteo Scandolo67c105f2017-01-09 09:30:52 -080032 .module('xosCore', [
33 'ui.router',
34 'toastr',
35 'ui.bootstrap.typeahead'
36 ])
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080037 .config(routesConfig)
Matteo Scandolo1aee1982017-02-17 08:33:23 -080038 .provider('XosRuntimeStates', XosRuntimeStates)
39 .service('XosNavigationService', IXosNavigationService)
Matteo Scandolo5655bdc2016-12-16 08:32:15 -080040 .service('PageTitle', PageTitle)
Matteo Scandoloee655a12016-12-19 15:38:43 -080041 .service('XosFormHelpers', XosFormHelpers)
Matteo Scandolod58d5042016-12-16 16:59:21 -080042 .service('ConfigHelpers', ConfigHelpers)
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080043 .service('XosSidePanel', XosSidePanel)
Matteo Scandolo5053cbe2017-01-31 17:37:56 -080044 .service('XosKeyboardShortcut', XosKeyboardShortcut)
Matteo Scandolo4222a432017-01-23 12:18:40 -080045 .service('XosComponentInjector', XosComponentInjector)
Matteo Scandoloba0d92e2017-03-02 16:47:46 -080046 .service('XosDebouncer', XosDebouncer)
Matteo Scandoloee655a12016-12-19 15:38:43 -080047 .directive('xosLinkWrapper', xosLinkWrapper)
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080048 .component('xosHeader', xosHeader)
49 .component('xosFooter', xosFooter)
50 .component('xosNav', xosNav)
Matteo Scandolo9f87f302016-12-13 18:11:10 -080051 .component('xosLogin', xosLogin)
Matteo Scandolo9b460042017-04-14 16:24:45 -070052 .component('xosLoader', xosLoader)
Matteo Scandolo8b2370c2017-02-02 17:19:07 -080053 .component('xosPagination', xosPagination)
Matteo Scandoloee655a12016-12-19 15:38:43 -080054 .component('xosTable', xosTable)
55 .component('xosForm', xosForm)
Matteo Scandolo6f45e262017-01-09 14:47:26 -080056 .component('xosField', xosField)
Matteo Scandoloac8c8c22017-01-09 15:04:32 -080057 .component('xosAlert', xosAlert)
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080058 .component('xosValidation', xosValidation)
Matteo Scandolo5053cbe2017-01-31 17:37:56 -080059 .component('xosSidePanel', xosSidePanel)
Matteo Scandolo8b2370c2017-02-02 17:19:07 -080060 .component('xosKeyBindingPanel', xosKeyBindingPanel)
Matteo Scandolo710dc152017-04-11 13:54:23 -070061 .filter('pagination', PaginationFilter)
62 .filter('arrayToList', ArrayToListFilter);