|
1 | 1 | /* tslint:disable:object-literal-sort-keys */
|
| 2 | +// tslint:disable:object-literal-shorthand |
| 3 | +// tslint:disable:max-line-length |
| 4 | +// tslint:disable:member-ordering |
| 5 | +// tslint:disable:prefer-const |
2 | 6 | import { IgxSliderModule } from "igniteui-angular";
|
3 | 7 | import { IgxCategoryChartModule } from "igniteui-angular-charts/ES5/igx-category-chart-module";
|
4 |
| -import { |
5 |
| - CategoryChartAnnotationsComponent |
6 |
| -} from "../../src/app/charts/category-chart/annotations/category-chart-annotations.component"; |
7 |
| -import { |
8 |
| - CategoryChartAxisOptionsComponent |
9 |
| -} from "../../src/app/charts/category-chart/axis-options/category-chart-axis-options-sample.component"; |
10 |
| -import { |
11 |
| - CategoryChartConfigOptionsComponent |
12 |
| -} from "../../src/app/charts/category-chart/config-options/category-chart-config-options-sample.component"; |
13 |
| -import { |
14 |
| - CategoryChartHighFrequencyComponent |
15 |
| -} from "../../src/app/charts/category-chart/high-frequency/category-chart-high-frequency-sample.component"; |
16 |
| -import { |
17 |
| - CategoryChartHighVolumeComponent |
18 |
| -} from "../../src/app/charts/category-chart/high-volume/category-chart-high-volume-sample.component"; |
19 |
| -import { |
20 |
| - CategoryChartHighlightingComponent |
21 |
| -} from "../../src/app/charts/category-chart/highlighting/category-chart-highlighting.component"; |
22 |
| -import { |
23 |
| - CategoryChartOverlapColumnsComponent |
24 |
| -} from "../../src/app/charts/category-chart/overlap-columns/category-chart-overlap-columns.component"; |
25 |
| -import { |
26 |
| - CategoryChartOverviewComponent |
27 |
| -} from "../../src/app/charts/category-chart/overview/category-chart-overview-sample.component"; |
28 |
| -import { |
29 |
| - CategoryChartTooltipTemplateComponent |
30 |
| -} from "../../src/app/charts/category-chart/tooltip-template/category-chart-tooltip-template.component"; |
31 |
| -import { |
32 |
| - CategoryChartTooltipTypesComponent |
33 |
| -} from "../../src/app/charts/category-chart/tooltip-types/category-chart-tooltip-types.component"; |
34 |
| -import { |
35 |
| - CategoryChartTrendlinesComponent |
36 |
| -} from "../../src/app/charts/category-chart/trendline/category-chart-trendlines.component"; |
| 8 | + |
| 9 | +import { CategoryChartAnnotationsComponent } from "../../src/app/charts/category-chart/annotations/category-chart-annotations.component"; |
| 10 | +import { CategoryChartAxisOptionsComponent } from "../../src/app/charts/category-chart/axis-options/category-chart-axis-options-sample.component"; |
| 11 | +import { CategoryChartConfigOptionsComponent } from "../../src/app/charts/category-chart/config-options/category-chart-config-options-sample.component"; |
| 12 | +import { CategoryChartHighFrequencyComponent } from "../../src/app/charts/category-chart/high-frequency/category-chart-high-frequency-sample.component"; |
| 13 | +import { CategoryChartHighVolumeComponent } from "../../src/app/charts/category-chart/high-volume/category-chart-high-volume-sample.component"; |
| 14 | +import { CategoryChartHighlightingComponent } from "../../src/app/charts/category-chart/highlighting/category-chart-highlighting.component"; |
| 15 | +import { CategoryChartOverlapColumnsComponent } from "../../src/app/charts/category-chart/overlap-columns/category-chart-overlap-columns.component"; |
| 16 | +import { CategoryChartOverviewComponent } from "../../src/app/charts/category-chart/overview/category-chart-overview-sample.component"; |
| 17 | +import { CategoryChartTooltipTemplateComponent } from "../../src/app/charts/category-chart/tooltip-template/category-chart-tooltip-template.component"; |
| 18 | +import { CategoryChartTooltipTypesComponent } from "../../src/app/charts/category-chart/tooltip-types/category-chart-tooltip-types.component"; |
| 19 | +import { CategoryChartTrendlinesComponent } from "../../src/app/charts/category-chart/trendline/category-chart-trendlines.component"; |
| 20 | + |
37 | 21 | import { DependenciesType } from "../services/DependenciesType";
|
38 |
| -import { AppModuleConfig } from "./core/AppModuleConfig"; |
39 | 22 | import { Config } from "./core/Config";
|
40 |
| -import { IConfigGenerator } from "./core/IConfigGenerator"; |
| 23 | +import { BaseConfigGenerator } from "./core/BaseConfigGenerator"; |
| 24 | + |
| 25 | +export class CategoryChartConfigGenerator extends BaseConfigGenerator { |
| 26 | + |
| 27 | + constructor() { |
| 28 | + super(DependenciesType.Charts, "/charts/category-chart/"); |
| 29 | + } |
41 | 30 |
|
42 |
| -export class CategoryChartConfigGenerator implements IConfigGenerator { |
43 | 31 | public generateConfigs(): Config[] {
|
44 | 32 | const configs = new Array<Config>();
|
45 | 33 |
|
46 |
| - configs.push(new Config({ |
47 |
| - component: CategoryChartOverviewComponent, |
48 |
| - appModuleConfig: new AppModuleConfig({ |
49 |
| - imports: [IgxCategoryChartModule, CategoryChartOverviewComponent], |
50 |
| - ngDeclarations: [CategoryChartOverviewComponent], |
51 |
| - ngImports: [IgxCategoryChartModule] |
52 |
| - }), |
53 |
| - dependenciesType: DependenciesType.Charts, |
54 |
| - shortenComponentPathBy: "/charts/category-chart/" |
55 |
| - })); |
56 |
| - |
57 |
| - configs.push(new Config({ |
58 |
| - component: CategoryChartHighVolumeComponent, |
59 |
| - appModuleConfig: new AppModuleConfig({ |
60 |
| - imports: [IgxCategoryChartModule, CategoryChartHighVolumeComponent, IgxSliderModule], |
61 |
| - ngDeclarations: [CategoryChartHighVolumeComponent], |
62 |
| - ngImports: [IgxCategoryChartModule, IgxSliderModule] |
63 |
| - }), |
64 |
| - dependenciesType: DependenciesType.Charts, |
65 |
| - shortenComponentPathBy: "/charts/category-chart/" |
66 |
| - })); |
67 |
| - |
68 |
| - configs.push(new Config({ |
69 |
| - component: CategoryChartHighFrequencyComponent, |
70 |
| - appModuleConfig: new AppModuleConfig({ |
71 |
| - imports: [IgxCategoryChartModule, CategoryChartHighFrequencyComponent, IgxSliderModule], |
72 |
| - ngDeclarations: [CategoryChartHighFrequencyComponent], |
73 |
| - ngImports: [IgxCategoryChartModule, IgxSliderModule] |
74 |
| - }), |
75 |
| - dependenciesType: DependenciesType.Charts, |
76 |
| - shortenComponentPathBy: "/charts/category-chart/" |
77 |
| - })); |
78 |
| - |
79 |
| - configs.push(new Config({ |
80 |
| - component: CategoryChartTooltipTemplateComponent, |
81 |
| - appModuleConfig: new AppModuleConfig({ |
82 |
| - imports: [IgxCategoryChartModule, CategoryChartTooltipTemplateComponent], |
83 |
| - ngDeclarations: [CategoryChartTooltipTemplateComponent], |
84 |
| - ngImports: [IgxCategoryChartModule] |
85 |
| - }), |
86 |
| - dependenciesType: DependenciesType.Charts, |
87 |
| - shortenComponentPathBy: "/charts/category-chart/" |
88 |
| - })); |
89 |
| - |
90 |
| - configs.push(new Config({ |
91 |
| - component: CategoryChartConfigOptionsComponent, |
92 |
| - appModuleConfig: new AppModuleConfig({ |
93 |
| - imports: [IgxCategoryChartModule, CategoryChartConfigOptionsComponent], |
94 |
| - ngDeclarations: [CategoryChartConfigOptionsComponent], |
95 |
| - ngImports: [IgxCategoryChartModule] |
96 |
| - }), |
97 |
| - dependenciesType: DependenciesType.Charts, |
98 |
| - shortenComponentPathBy: "/charts/category-chart/" |
99 |
| - })); |
100 |
| - |
101 |
| - configs.push(new Config({ |
102 |
| - component: CategoryChartAxisOptionsComponent, |
103 |
| - appModuleConfig: new AppModuleConfig({ |
104 |
| - imports: [IgxCategoryChartModule, CategoryChartAxisOptionsComponent], |
105 |
| - ngDeclarations: [CategoryChartAxisOptionsComponent], |
106 |
| - ngImports: [IgxCategoryChartModule] |
107 |
| - }), |
108 |
| - dependenciesType: DependenciesType.Charts, |
109 |
| - shortenComponentPathBy: "/charts/category-chart/" |
110 |
| - })); |
111 |
| - |
112 |
| - configs.push(new Config({ |
113 |
| - component: CategoryChartAnnotationsComponent, |
114 |
| - appModuleConfig: new AppModuleConfig({ |
115 |
| - imports: [IgxCategoryChartModule, CategoryChartAnnotationsComponent], |
116 |
| - ngDeclarations: [CategoryChartAnnotationsComponent], |
117 |
| - ngImports: [IgxCategoryChartModule] |
118 |
| - }), |
119 |
| - dependenciesType: DependenciesType.Charts, |
120 |
| - shortenComponentPathBy: "/charts/category-chart/" |
121 |
| - })); |
122 |
| - |
123 |
| - configs.push(new Config({ |
124 |
| - component: CategoryChartHighlightingComponent, |
125 |
| - appModuleConfig: new AppModuleConfig({ |
126 |
| - imports: [IgxCategoryChartModule, CategoryChartHighlightingComponent], |
127 |
| - ngDeclarations: [CategoryChartHighlightingComponent], |
128 |
| - ngImports: [IgxCategoryChartModule] |
129 |
| - }), |
130 |
| - dependenciesType: DependenciesType.Charts, |
131 |
| - shortenComponentPathBy: "/charts/category-chart/" |
132 |
| - })); |
133 |
| - |
134 |
| - configs.push(new Config({ |
135 |
| - component: CategoryChartTooltipTypesComponent, |
136 |
| - appModuleConfig: new AppModuleConfig({ |
137 |
| - imports: [IgxCategoryChartModule, CategoryChartTooltipTypesComponent], |
138 |
| - ngDeclarations: [CategoryChartTooltipTypesComponent], |
139 |
| - ngImports: [IgxCategoryChartModule] |
140 |
| - }), |
141 |
| - dependenciesType: DependenciesType.Charts, |
142 |
| - shortenComponentPathBy: "/charts/category-chart/" |
143 |
| - })); |
144 |
| - |
145 |
| - configs.push(new Config({ |
146 |
| - component: CategoryChartOverlapColumnsComponent, |
147 |
| - appModuleConfig: new AppModuleConfig({ |
148 |
| - imports: [IgxCategoryChartModule, CategoryChartOverlapColumnsComponent], |
149 |
| - ngDeclarations: [CategoryChartOverlapColumnsComponent], |
150 |
| - ngImports: [IgxCategoryChartModule] |
151 |
| - }), |
152 |
| - dependenciesType: DependenciesType.Charts, |
153 |
| - shortenComponentPathBy: "/charts/category-chart/" |
154 |
| - })); |
| 34 | + configs.push(this.getConfig( |
| 35 | + CategoryChartOverviewComponent, |
| 36 | + [IgxCategoryChartModule])); |
| 37 | + |
| 38 | + configs.push(this.getConfig( |
| 39 | + CategoryChartHighVolumeComponent, |
| 40 | + [IgxCategoryChartModule, IgxSliderModule])); |
| 41 | + |
| 42 | + configs.push(this.getConfig( |
| 43 | + CategoryChartHighFrequencyComponent, |
| 44 | + [IgxCategoryChartModule, IgxSliderModule])); |
| 45 | + |
| 46 | + configs.push(this.getConfig( |
| 47 | + CategoryChartTooltipTemplateComponent, |
| 48 | + [IgxCategoryChartModule])); |
| 49 | + |
| 50 | + configs.push(this.getConfig( |
| 51 | + CategoryChartConfigOptionsComponent, |
| 52 | + [IgxCategoryChartModule])); |
| 53 | + |
| 54 | + configs.push(this.getConfig( |
| 55 | + CategoryChartAxisOptionsComponent, |
| 56 | + [IgxCategoryChartModule])); |
| 57 | + |
| 58 | + configs.push(this.getConfig( |
| 59 | + CategoryChartAnnotationsComponent, |
| 60 | + [IgxCategoryChartModule])); |
| 61 | + |
| 62 | + configs.push(this.getConfig( |
| 63 | + CategoryChartHighlightingComponent, |
| 64 | + [IgxCategoryChartModule])); |
| 65 | + |
| 66 | + configs.push(this.getConfig( |
| 67 | + CategoryChartTooltipTypesComponent, |
| 68 | + [IgxCategoryChartModule])); |
| 69 | + |
| 70 | + configs.push(this.getConfig( |
| 71 | + CategoryChartOverlapColumnsComponent, |
| 72 | + [IgxCategoryChartModule])); |
| 73 | + |
| 74 | + configs.push(this.getConfig( |
| 75 | + CategoryChartTrendlinesComponent, |
| 76 | + [IgxCategoryChartModule])); |
| 77 | + |
155 | 78 | return configs;
|
156 | 79 | }
|
157 | 80 | }
|
0 commit comments