blob: 4b89ac8d8b431c2c83033f7ff93198d00d029dd9 [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 Scandolof2c3ed62016-12-15 14:32:50 -08007import {RuntimeStates} from './services/runtime-states';
8import {NavigationService} 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 Scandolob4b74a82017-01-12 13:12:26 -080018import {ModelSetup} from './services/helpers/model-setup.helpers';
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080019import {xosSidePanel} from './side-panel/side-panel';
20import {XosSidePanel} from './side-panel/side-panel.service';
Matteo Scandolo4222a432017-01-23 12:18:40 -080021import {XosComponentInjector} from './services/helpers/component-injector.helpers';
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080022
23export const xosCore = 'xosCore';
24
25angular
Matteo Scandolo67c105f2017-01-09 09:30:52 -080026 .module('xosCore', [
27 'ui.router',
28 'toastr',
29 'ui.bootstrap.typeahead'
30 ])
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080031 .config(routesConfig)
Matteo Scandolof2c3ed62016-12-15 14:32:50 -080032 .provider('RuntimeStates', RuntimeStates)
33 .service('NavigationService', NavigationService)
Matteo Scandolo5655bdc2016-12-16 08:32:15 -080034 .service('PageTitle', PageTitle)
Matteo Scandoloee655a12016-12-19 15:38:43 -080035 .service('XosFormHelpers', XosFormHelpers)
Matteo Scandolod58d5042016-12-16 16:59:21 -080036 .service('ConfigHelpers', ConfigHelpers)
Matteo Scandolob4b74a82017-01-12 13:12:26 -080037 .service('ModelSetup', ModelSetup)
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080038 .service('XosSidePanel', XosSidePanel)
Matteo Scandolo4222a432017-01-23 12:18:40 -080039 .service('XosComponentInjector', XosComponentInjector)
Matteo Scandoloee655a12016-12-19 15:38:43 -080040 .directive('xosLinkWrapper', xosLinkWrapper)
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080041 .component('xosHeader', xosHeader)
42 .component('xosFooter', xosFooter)
43 .component('xosNav', xosNav)
Matteo Scandolo9f87f302016-12-13 18:11:10 -080044 .component('xosLogin', xosLogin)
Matteo Scandoloee655a12016-12-19 15:38:43 -080045 .component('xosTable', xosTable)
46 .component('xosForm', xosForm)
Matteo Scandolo6f45e262017-01-09 14:47:26 -080047 .component('xosField', xosField)
Matteo Scandoloac8c8c22017-01-09 15:04:32 -080048 .component('xosAlert', xosAlert)
Matteo Scandolo9d7940c2017-01-19 18:28:43 -080049 .component('xosValidation', xosValidation)
50 .component('xosSidePanel', xosSidePanel);