-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(live-editing): changing generators for new format
- Loading branch information
Showing
69 changed files
with
901 additions
and
4,198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,32 @@ | ||
import {IgxAutocompleteModule, | ||
import { | ||
IgxAutocompleteModule, | ||
IgxDropDownModule, | ||
IgxInputGroupModule} from 'igniteui-angular'; | ||
|
||
import { Config, IConfigGenerator, AppModuleConfig } from 'igniteui-live-editing'; | ||
|
||
export class AutocompleteConfigGenerator implements IConfigGenerator { | ||
public additionalImports = { | ||
AutocompletePipeStartsWith: '../../src/app/data-entries/autocomplete/autocomplete/autocomplete.component', | ||
AutocompletePipeStartsWith2: '../../src/app/data-entries/autocomplete/movie/movie.component' | ||
|
||
IgxInputGroupModule | ||
} from 'igniteui-angular'; | ||
|
||
import { Config, IConfigGenerator, AppModuleConfig } from 'igniteui-live-editing' | ||
import { BaseAppConfig } from './BaseConfig'; | ||
|
||
export class AutocompleteConfigGenerator implements IConfigGenerator { | ||
public additionalImports = { | ||
AutocompletePipeStartsWith: '../../src/app/data-entries/autocomplete/autocomplete/autocomplete.component', | ||
AutocompletePipeStartsWith2: '../../src/app/data-entries/autocomplete/movie/movie.component' | ||
}; | ||
public generateConfigs(): Config[] { | ||
const configs = new Array<Config>(); | ||
|
||
configs.push(new Config({ | ||
appModuleConfig: new AppModuleConfig({ | ||
imports: ['IgxAutocompleteModule', 'IgxDropDownModule', 'IgxInputGroupModule', | ||
'AutocompleteBasicComponent', 'AutocompletePipeStartsWith'], | ||
ngDeclarations: ['AutocompleteBasicComponent', 'AutocompletePipeStartsWith'], | ||
ngImports: ['IgxAutocompleteModule', 'IgxDropDownModule', 'IgxInputGroupModule'] | ||
}), | ||
component: 'AutocompleteBasicComponent', | ||
shortenComponentPathBy: "/data-entries/autocomplete/" | ||
})); | ||
|
||
configs.push(new Config({ | ||
appModuleConfig: new AppModuleConfig({ | ||
imports: [ | ||
'IgxAutocompleteModule', | ||
'IgxDropDownModule', | ||
'IgxInputGroupModule', | ||
'MovieComponent', | ||
'AutocompletePipeStartsWith2' | ||
], | ||
ngDeclarations: ['MovieComponent', 'AutocompletePipeStartsWith2'], | ||
ngImports: [ | ||
'IgxAutocompleteModule', | ||
'IgxDropDownModule', | ||
'IgxInputGroupModule' | ||
] | ||
}), | ||
component: 'MovieComponent' | ||
})); | ||
|
||
return configs; | ||
} | ||
|
||
public generateConfigs(): Config[] { | ||
const configs = new Array<Config>(); | ||
|
||
configs.push(new Config({ | ||
appConfig: BaseAppConfig, | ||
component: 'AutocompleteBasicComponent', | ||
shortenComponentPathBy: "/data-entries/autocomplete/" | ||
})); | ||
|
||
configs.push(new Config({ | ||
appConfig: BaseAppConfig, | ||
component: 'MovieComponent' | ||
})); | ||
|
||
return configs; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.