Skip to content

Commit

Permalink
Merge pull request #3108 from IgniteUI/vNext
Browse files Browse the repository at this point in the history
Updating prod samples for 14.2
  • Loading branch information
ChronosSF authored Oct 6, 2022
2 parents 3dac621 + 11247c1 commit ca3b103
Show file tree
Hide file tree
Showing 460 changed files with 1,776 additions and 1,328 deletions.
14 changes: 13 additions & 1 deletion live-editing/configs/PivotGridConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {
IgxPivotGridModule,
IgxTooltipModule,
IgxToastModule,
IgxSwitchModule
IgxSwitchModule,
IgxExcelExporterService
} from 'igniteui-angular';
import { AppModuleConfig, Config, IConfigGenerator } from 'igniteui-live-editing';
export class PivotGridConfigGenerator implements IConfigGenerator {
Expand All @@ -29,6 +30,17 @@ export class PivotGridConfigGenerator implements IConfigGenerator {
component: 'PivotGridBasicSampleComponent'
}));

configs.push(new Config({
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/dataToAnalyze.ts'],
appModuleConfig: new AppModuleConfig({
imports: ['IgxPivotGridModule', 'PivotExportComponent', 'IgxPreventDocumentScrollModule', 'IgxExcelExporterService'],
ngDeclarations: ['PivotExportComponent'],
ngImports: ['IgxPreventDocumentScrollModule', 'IgxPivotGridModule'],
ngProviders: ['IgxExcelExporterService']
}),
component: 'PivotExportComponent'
}));

configs.push(new Config({
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/dataToAnalyze.ts'],
appModuleConfig: new AppModuleConfig({
Expand Down
31 changes: 31 additions & 0 deletions live-editing/configs/QueryBuilderConfigGenerator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import {IgxQueryBuilderModule} from 'igniteui-angular';
import {AppModuleConfig, Config, IConfigGenerator} from 'igniteui-live-editing'
export class QueryBuilderConfigGenerator implements IConfigGenerator {


public generateConfigs(): Config[] {
const configs = new Array<Config>();

configs.push(new Config({
component: 'QueryBuilderSample1Component',
appModuleConfig: new AppModuleConfig({
imports: ['IgxQueryBuilderModule', 'QueryBuilderSample1Component'],
ngDeclarations: ['QueryBuilderSample1Component'],
ngImports: ['IgxQueryBuilderModule']
}),
shortenComponentPathBy: "/interactions/query-builder/"
}));

configs.push(new Config({
component: 'QueryBuilderStyleComponent',
appModuleConfig: new AppModuleConfig({
imports: ['IgxQueryBuilderModule', 'QueryBuilderStyleComponent'],
ngDeclarations: ['QueryBuilderStyleComponent'],
ngImports: ['IgxQueryBuilderModule']
}),
shortenComponentPathBy: "/interactions/query-builder/"
}));

return configs;
}
}
4 changes: 3 additions & 1 deletion live-editing/generators/ConfigGenerators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import { AccordionConfigGenerator } from '../configs/AccordionConfigGenerator';
import { StepperConfigGenerator } from '../configs/StepperConfigGenerator';
import { PaginationConfigGenerator } from '../configs/PaginationConfigGenerator';
import { PivotGridConfigGenerator } from '../configs/PivotGridConfigGenerator';
import { QueryBuilderConfigGenerator } from '../configs/QueryBuilderConfigGenerator';

export const CONFIG_GENERATORS =
[
Expand Down Expand Up @@ -132,5 +133,6 @@ export const CONFIG_GENERATORS =
TransactionsConfigGenerator,
SplitterConfigGenerator,
DockManagerConfigGenerator,
PaginationConfigGenerator
PaginationConfigGenerator,
QueryBuilderConfigGenerator
];
Loading

0 comments on commit ca3b103

Please sign in to comment.