-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathQueryBuilderConfigGenerator.ts
More file actions
45 lines (38 loc) · 1.73 KB
/
QueryBuilderConfigGenerator.ts
File metadata and controls
45 lines (38 loc) · 1.73 KB
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
import { Config, IConfigGenerator } from 'igniteui-live-editing'
import { BaseAppConfig } from './BaseConfig';
export class QueryBuilderConfigGenerator implements IConfigGenerator {
public generateConfigs(): Config[] {
const configs = new Array<Config>();
const HTTPConfig = structuredClone(BaseAppConfig);
HTTPConfig.providers.push({ 'provider': 'provideHttpClient(),', 'import': '@angular/common/http' });
configs.push(new Config({
component: 'QueryBuilderSample1Component',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/interactions/query-builder/"
}));
configs.push(new Config({
component: 'QueryBuilderTemplateSampleComponent',
appConfig: BaseAppConfig,
shortenComponentPathBy: "/interactions/query-builder/"
}));
configs.push(new Config({
component: 'QueryBuilderStyleComponent',
additionalFiles: ["/src/app/interactions/query-builder/query-builder-style/layout.scss"],
appConfig: BaseAppConfig,
shortenComponentPathBy: "/interactions/query-builder/"
}));
configs.push(new Config({
component: 'QueryBuilderRequestSampleComponent',
additionalFiles: ["/src/app/interactions/query-builder/query-builder-style/layout.scss"],
appConfig: HTTPConfig,
shortenComponentPathBy: "/interactions/query-builder/"
}));
configs.push(new Config({
component: 'QueryBuilderSqlSampleComponent',
additionalDependencies: ["sql-formatter"],
appConfig: HTTPConfig,
shortenComponentPathBy: "/interactions/query-builder/"
}));
return configs;
}
}