-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.module.ts
74 lines (66 loc) · 2.19 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterModule, Routes } from '@angular/router';
import { AppComponent } from './app.component';
import { MainComponent } from './main/main.component';
import { environment } from 'src/environments/environment';
import { staticCatalogue } from 'src/assets/catalogue';
import { ImageModule } from 'primeng/image';
import {
CATALOGUE_FETCHER_TOKEN,
ChipTransformPipe,
LensCoreModule,
QUERY_TRANSLATOR_TOKEN,
RESULT_TRANSFORMER_TOKEN,
STATIC_CATALOGUE_TOKEN,
TypescriptCatalogueFetcherService,
} from '@samply/lens-core';
import {
CqlTranslatorService,
MeasureTransformerService,
} from '@samply/lens-core/cql';
import { SearchBarModule } from '@samply/lens-components/search-bar';
import { CriteriaCatalogueModule } from '@samply/lens-components/criteria-catalogue';
import { ResultSummaryBarModule } from '@samply/lens-components/result-summary-bar';
import { ResultRendererGridModule } from '@samply/lens-components/result-renderer-grid';
import { SingleResultRendererModule } from '@samply/lens-components/single-result-renderer';
import { ChartJsModule } from '@samply/lens-components/chart-js';
const routes: Routes = [{ path: '', component: MainComponent }];
@NgModule({
declarations: [AppComponent, MainComponent],
imports: [
BrowserModule,
SearchBarModule,
CriteriaCatalogueModule,
ResultSummaryBarModule,
ResultRendererGridModule,
BrowserAnimationsModule,
LensCoreModule.forRoot(environment.lensConfig),
ImageModule,
SingleResultRendererModule,
RouterModule.forRoot(routes),
ChartJsModule,
],
providers: [
{
provide: QUERY_TRANSLATOR_TOKEN,
useClass: CqlTranslatorService,
},
{
provide: RESULT_TRANSFORMER_TOKEN,
useClass: MeasureTransformerService,
},
{
provide: CATALOGUE_FETCHER_TOKEN,
useClass: TypescriptCatalogueFetcherService,
},
{
provide: STATIC_CATALOGUE_TOKEN,
useValue: staticCatalogue,
},
ChipTransformPipe,
],
bootstrap: [AppComponent],
})
export class AppModule {}