2017-07-20 15:14:38 +03:00
|
|
|
import { ModuleWithProviders, NgModule } from '@angular/core';
|
2017-04-13 14:24:23 +03:00
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
|
|
|
|
|
|
import {
|
2017-07-20 16:38:37 +03:00
|
|
|
NgaActionsModule,
|
2017-04-13 14:24:23 +03:00
|
|
|
NgaCardModule,
|
|
|
|
|
NgaLayoutModule,
|
2017-07-20 16:38:37 +03:00
|
|
|
NgaMenuModule,
|
2017-04-13 14:24:23 +03:00
|
|
|
NgaRouteTabsetModule,
|
2017-07-20 16:38:37 +03:00
|
|
|
NgaSearchModule,
|
2017-04-13 14:24:23 +03:00
|
|
|
NgaSidebarModule,
|
2017-07-20 16:38:37 +03:00
|
|
|
NgaTabsetModule,
|
|
|
|
|
NgaThemeModule,
|
2017-04-21 17:23:44 +03:00
|
|
|
NgaUserModule,
|
2017-06-26 12:38:12 +03:00
|
|
|
} from '@akveo/nga-theme';
|
2017-04-13 14:24:23 +03:00
|
|
|
|
2017-07-28 14:54:29 +03:00
|
|
|
import {
|
|
|
|
|
FooterComponent,
|
|
|
|
|
HeaderComponent,
|
|
|
|
|
SearchInputComponent,
|
|
|
|
|
ThemeSettingsComponent,
|
|
|
|
|
TinyMCEComponent,
|
|
|
|
|
} from './components';
|
2017-05-06 14:52:41 +03:00
|
|
|
|
2017-07-07 19:54:49 +03:00
|
|
|
|
2017-07-20 16:38:37 +03:00
|
|
|
import { CapitalizePipe, PluralPipe, RoundPipe } from './pipes';
|
2017-07-07 19:54:49 +03:00
|
|
|
|
2017-07-28 14:54:29 +03:00
|
|
|
import {
|
|
|
|
|
OneColumnLayoutComponent,
|
|
|
|
|
SampleLayoutComponent,
|
|
|
|
|
ThreeColumnsLayoutComponent,
|
|
|
|
|
TwoColumnsLayoutComponent,
|
|
|
|
|
} from './layouts';
|
2017-04-13 14:24:23 +03:00
|
|
|
|
|
|
|
|
const BASE_MODULES = [
|
|
|
|
|
CommonModule,
|
|
|
|
|
FormsModule,
|
2017-04-21 17:23:44 +03:00
|
|
|
ReactiveFormsModule,
|
2017-04-13 14:24:23 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const NGA_MODULES = [
|
|
|
|
|
NgaCardModule,
|
|
|
|
|
NgaLayoutModule,
|
|
|
|
|
NgaTabsetModule,
|
|
|
|
|
NgaRouteTabsetModule,
|
2017-04-14 18:28:27 +03:00
|
|
|
NgaMenuModule,
|
2017-04-21 17:23:44 +03:00
|
|
|
NgaUserModule,
|
2017-04-29 18:41:44 +03:00
|
|
|
NgaActionsModule,
|
2017-05-19 19:45:42 +03:00
|
|
|
NgaSearchModule,
|
2017-07-20 15:14:38 +03:00
|
|
|
NgaSidebarModule,
|
2017-04-13 14:24:23 +03:00
|
|
|
];
|
|
|
|
|
|
2017-04-28 14:59:24 +03:00
|
|
|
const COMPONENTS = [
|
2017-04-28 15:14:05 +03:00
|
|
|
HeaderComponent,
|
|
|
|
|
FooterComponent,
|
2017-04-28 14:59:24 +03:00
|
|
|
SearchInputComponent,
|
2017-05-06 14:52:41 +03:00
|
|
|
TinyMCEComponent,
|
2017-07-28 14:54:29 +03:00
|
|
|
ThemeSettingsComponent,
|
2017-04-28 14:59:24 +03:00
|
|
|
OneColumnLayoutComponent,
|
2017-07-28 14:54:29 +03:00
|
|
|
TwoColumnsLayoutComponent,
|
|
|
|
|
ThreeColumnsLayoutComponent,
|
|
|
|
|
SampleLayoutComponent,
|
2017-04-13 14:24:23 +03:00
|
|
|
];
|
|
|
|
|
|
2017-07-07 19:54:49 +03:00
|
|
|
const PIPES = [
|
|
|
|
|
CapitalizePipe,
|
|
|
|
|
PluralPipe,
|
|
|
|
|
RoundPipe,
|
|
|
|
|
];
|
|
|
|
|
|
2017-07-20 15:14:38 +03:00
|
|
|
const NGA_THEME_PROVIDERS = [
|
2017-07-20 16:38:37 +03:00
|
|
|
...NgaThemeModule.forRoot({
|
2017-07-28 14:54:29 +03:00
|
|
|
name: 'cosmic',
|
|
|
|
|
},
|
2017-07-20 16:38:37 +03:00
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
name: 'default',
|
|
|
|
|
base: 'default',
|
|
|
|
|
variables: {
|
|
|
|
|
tempColorGreen: '#7bff24',
|
|
|
|
|
tempColorLightBlue: '#7bff24',
|
|
|
|
|
tempColorBlue: '#7bff24',
|
|
|
|
|
tempColorYellow: '#7bff24',
|
|
|
|
|
tempColorOrange: '#7bff24',
|
|
|
|
|
|
|
|
|
|
solarColorDarkGreen: '#7bff24',
|
|
|
|
|
solarColorShadow: 'rgba(0, 217, 119, 0.3)',
|
|
|
|
|
trafficColorBlack: '#7bff24',
|
|
|
|
|
trafficTooltipBg: 'rgba(0, 255, 170, 0.35)',
|
|
|
|
|
trafficLineBg: 'rgba(146, 141, 255, 0.5)',
|
|
|
|
|
trafficShadowLineBg: '#7bff24',
|
|
|
|
|
trafficShadowLineDarkBg: '#7bff24',
|
|
|
|
|
trafficShadowLineShadow: '#7bff24',
|
|
|
|
|
trafficGradFrom: '#7bff24',
|
|
|
|
|
trafficGradTo: '#7bff24',
|
|
|
|
|
|
|
|
|
|
electricityAxisColor: '#7bff24',
|
|
|
|
|
electricityLineGradFrom: '#7bff24',
|
|
|
|
|
electricityLineGradTo: '#7bff24',
|
|
|
|
|
electricityLineShadow: '#7bff24',
|
|
|
|
|
electricityAreaGradFrom: '#7bff24',
|
|
|
|
|
electricityAreaGradTo: '#7bff24',
|
2017-07-26 15:40:20 +03:00
|
|
|
|
|
|
|
|
bubbleMapTitleColor: '#333333',
|
|
|
|
|
bubbleMapGeoColor1: '#e6b045',
|
|
|
|
|
bubbleMapGeoColor2: '#0088ff',
|
|
|
|
|
bubbleMapGeoColor3: '#ff386a',
|
|
|
|
|
bubbleMapGeoColor4: '#00d977',
|
|
|
|
|
bubbleMapGeoColor5: '#7659ff',
|
|
|
|
|
bubbleMapGeoColor6: '#24dec8',
|
|
|
|
|
bubbleMapAreaColor: '#2f3234',
|
|
|
|
|
bubbleMapAreaHoverColor: '#a1a1e5',
|
|
|
|
|
bubbleMapAreaBorderColor: '#dddddd',
|
2017-07-20 16:38:37 +03:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'cosmic',
|
|
|
|
|
base: 'default',
|
|
|
|
|
variables: {
|
|
|
|
|
tempColorGreen: '#7bff24',
|
|
|
|
|
tempColorLightBlue: '#31ffad',
|
|
|
|
|
tempColorBlue: '#2ec7fe',
|
|
|
|
|
tempColorYellow: '#fff024',
|
|
|
|
|
tempColorOrange: '#f7bd59',
|
|
|
|
|
|
|
|
|
|
solarColorDarkGreen: '#19977E',
|
|
|
|
|
solarColorShadow: 'rgba(0, 217, 119, 0.3)',
|
|
|
|
|
trafficColorBlack: '#000000',
|
|
|
|
|
trafficTooltipBg: 'rgba(0, 255, 170, 0.35)',
|
|
|
|
|
trafficLineBg: 'rgba(146, 141, 255, 0.5)',
|
|
|
|
|
trafficShadowLineBg: '#bdbaff',
|
|
|
|
|
trafficShadowLineDarkBg: '#a695ff',
|
|
|
|
|
trafficShadowLineShadow: 'rgba(33, 7, 77, 0.5)',
|
|
|
|
|
trafficGradFrom: 'rgba(118, 89, 255, 0.4)',
|
|
|
|
|
trafficGradTo: 'rgba(164, 84, 255, 0.5)',
|
|
|
|
|
|
|
|
|
|
electricityAxisColor: '#a1a1e5',
|
|
|
|
|
electricityLineGradFrom: '#00ffaa',
|
|
|
|
|
electricityLineGradTo: '#fff835',
|
|
|
|
|
electricityLineShadow: 'rgba(14, 16, 48, 0.4)',
|
|
|
|
|
electricityAreaGradFrom: 'rgba(188, 92, 255, 0.5)',
|
|
|
|
|
electricityAreaGradTo: 'rgba(188, 92, 255, 0)',
|
2017-07-26 15:40:20 +03:00
|
|
|
|
|
|
|
|
bubbleMapTitleColor: '#ffffff',
|
|
|
|
|
bubbleMapGeoColor1: '#e6b045',
|
|
|
|
|
bubbleMapGeoColor2: '#0088ff',
|
|
|
|
|
bubbleMapGeoColor3: '#ff386a',
|
|
|
|
|
bubbleMapGeoColor4: '#00d977',
|
|
|
|
|
bubbleMapGeoColor5: '#7659ff',
|
|
|
|
|
bubbleMapGeoColor6: '#24dec8',
|
|
|
|
|
bubbleMapAreaColor: '#2c2961',
|
|
|
|
|
bubbleMapAreaHoverColor: '#a1a1e5',
|
|
|
|
|
bubbleMapAreaBorderColor: '#654ddb',
|
2017-07-20 16:38:37 +03:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
).providers,
|
2017-07-20 15:14:38 +03:00
|
|
|
...NgaSidebarModule.forRoot().providers,
|
|
|
|
|
...NgaSidebarModule.forRoot().providers,
|
|
|
|
|
...NgaMenuModule.forRoot().providers,
|
|
|
|
|
];
|
|
|
|
|
|
2017-04-13 14:24:23 +03:00
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
...BASE_MODULES,
|
|
|
|
|
...NGA_MODULES,
|
|
|
|
|
],
|
|
|
|
|
exports: [
|
|
|
|
|
...BASE_MODULES,
|
|
|
|
|
...NGA_MODULES,
|
2017-04-28 14:59:24 +03:00
|
|
|
...COMPONENTS,
|
2017-07-07 19:54:49 +03:00
|
|
|
...PIPES,
|
2017-04-13 14:24:23 +03:00
|
|
|
],
|
|
|
|
|
declarations: [
|
2017-04-28 14:59:24 +03:00
|
|
|
...COMPONENTS,
|
2017-07-07 19:54:49 +03:00
|
|
|
...PIPES,
|
2017-04-21 17:23:44 +03:00
|
|
|
],
|
2017-04-13 14:24:23 +03:00
|
|
|
})
|
|
|
|
|
export class ThemeModule {
|
2017-07-20 15:14:38 +03:00
|
|
|
|
|
|
|
|
static forRoot(): ModuleWithProviders {
|
|
|
|
|
return <ModuleWithProviders>{
|
|
|
|
|
ngModule: ThemeModule,
|
|
|
|
|
providers: [
|
|
|
|
|
...NGA_THEME_PROVIDERS,
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
}
|
2017-04-13 14:24:23 +03:00
|
|
|
}
|