Skip to content

Commit c5100c1

Browse files
authored
Merge pull request #3325 from IgniteUI/fix-samples-configs
chore(*): fix sample configs
2 parents 5ce9f6c + 9aab61e commit c5100c1

14 files changed

Lines changed: 54 additions & 29 deletions

live-editing/configs/AccordionConfigGenerator.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import {
44
IgxTimePickerModule,
55
IgxSliderModule,
66
IgxCheckboxModule,
7-
IgxSwitchModule
7+
IgxSwitchModule,
8+
IgxIconModule
89
} from 'igniteui-angular';
910
import { AppModuleConfig, Config, IConfigGenerator } from 'igniteui-live-editing';
1011

@@ -37,10 +38,10 @@ export class AccordionConfigGenerator implements IConfigGenerator {
3738
component: 'AccordionSample3Component',
3839
appModuleConfig: new AppModuleConfig({
3940
imports: ['IgxCheckboxModule', 'IgxSliderModule',
40-
'IgxRadioModule', 'IgxTimePickerModule', 'AccordionSample3Component', 'IgxAccordionModule'],
41+
'IgxRadioModule', 'IgxTimePickerModule', 'AccordionSample3Component', 'IgxAccordionModule', 'IgxIconModule'],
4142
ngDeclarations: ['AccordionSample3Component'],
4243
ngImports: ['IgxCheckboxModule', 'IgxSliderModule',
43-
'IgxRadioModule', 'IgxTimePickerModule', 'IgxAccordionModule']
44+
'IgxRadioModule', 'IgxTimePickerModule', 'IgxAccordionModule', 'IgxIconModule']
4445
}),
4546
shortenComponentPathBy: '/layouts/accordion/'
4647
}));

live-editing/configs/BannerConfigGenerator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ export class BannerConfigGenerator implements IConfigGenerator {
8888
additionalFiles: ["/src/app/notifications/banner/banner-samples.scss"],
8989
appModuleConfig: new AppModuleConfig({
9090
imports: ['IgxBannerModule', 'IgxCardModule', 'IgxToastModule', 'IgxNavbarModule', 'IgxButtonModule',
91-
'IgxRippleModule', 'IgxIconModule', 'IgxButtonModule',
92-
'IgxRippleModule', 'BannerStylingComponent'],
91+
'IgxRippleModule', 'IgxIconModule', 'BannerStylingComponent'],
9392
ngDeclarations: ['BannerStylingComponent'],
9493
ngImports: ['IgxBannerModule', 'IgxCardModule', 'IgxToastModule', 'IgxNavbarModule', 'IgxButtonModule',
9594
'IgxRippleModule', 'IgxIconModule', 'IgxButtonModule',

live-editing/configs/CardConfigGenerator.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,16 @@ export class CardConfigGenerator implements IConfigGenerator {
102102
'IgxButtonModule',
103103
'IgxCardModule',
104104
'IgxRippleModule',
105-
'CardSample3Component'
105+
'CardSample3Component',
106+
'IgxLayoutModule',
106107
],
107108
ngDeclarations: ['CardSample3Component'],
108109
ngImports: [
109110
'IgxAvatarModule',
110111
'IgxButtonModule',
111112
'IgxCardModule',
112-
'IgxRippleModule'
113+
'IgxRippleModule',
114+
'IgxLayoutModule',
113115
]
114116
}),
115117
additionalFiles: [

live-editing/configs/DateRangePickerConfigGenerator.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import {IgxDateRangePickerModule,
22
IgxIconModule,
33
IgxInputGroupModule,
4+
IgxDateTimeEditorModule,
5+
IgxDatePickerModule,
46
IgxSelectModule} from 'igniteui-angular';
57
import {AppModuleConfig, Config, IConfigGenerator} from 'igniteui-live-editing'
68
export class DateRangePickerConfigGenerator implements IConfigGenerator {
@@ -50,10 +52,10 @@ export class DateRangePickerConfigGenerator implements IConfigGenerator {
5052
new Config({
5153
component: 'DateRangePickerStartEndComponent',
5254
appModuleConfig: new AppModuleConfig({
53-
imports: ['IgxDateRangePickerModule', 'DateRangePickerStartEndComponent',
55+
imports: ['IgxDateRangePickerModule', 'DateRangePickerStartEndComponent', 'IgxDatePickerModule', 'IgxDateTimeEditorModule',
5456
'IgxInputGroupModule', 'IgxIconModule' ],
5557
ngDeclarations: ['DateRangePickerStartEndComponent'],
56-
ngImports: ['IgxDateRangePickerModule', 'IgxInputGroupModule', 'IgxIconModule']
58+
ngImports: ['IgxDateRangePickerModule', 'IgxDatePickerModule', 'IgxDateTimeEditorModule', 'IgxInputGroupModule', 'IgxIconModule']
5759
}),
5860
shortenComponentPathBy: "/scheduling/daterangepicker/"
5961
})
@@ -63,10 +65,10 @@ export class DateRangePickerConfigGenerator implements IConfigGenerator {
6365
new Config({
6466
component: 'DateRangePickerValidationComponent',
6567
appModuleConfig: new AppModuleConfig({
66-
imports: ['IgxDateRangePickerModule', 'DateRangePickerValidationComponent',
67-
'IgxInputGroupModule', 'IgxIconModule'],
68+
imports: ['IgxDateRangePickerModule', 'DateRangePickerValidationComponent', 'IgxDatePickerModule',
69+
'IgxInputGroupModule', 'IgxIconModule', 'IgxDateTimeEditorModule'],
6870
ngDeclarations: ['DateRangePickerValidationComponent'],
69-
ngImports: ['IgxDateRangePickerModule', 'IgxInputGroupModule', 'IgxIconModule']
71+
ngImports: ['IgxDateRangePickerModule', 'IgxDatePickerModule', 'IgxInputGroupModule', 'IgxIconModule', 'IgxDateTimeEditorModule']
7072
}),
7173
shortenComponentPathBy: "/scheduling/daterangepicker/"
7274
})
@@ -77,9 +79,9 @@ export class DateRangePickerConfigGenerator implements IConfigGenerator {
7779
component: 'StyledDateRangePickerComponent',
7880
appModuleConfig: new AppModuleConfig({
7981
imports: ['IgxDateRangePickerModule', 'StyledDateRangePickerComponent',
80-
'IgxInputGroupModule', 'IgxIconModule'],
82+
'IgxInputGroupModule', 'IgxIconModule', 'IgxDatePickerModule' , 'IgxDateTimeEditorModule'],
8183
ngDeclarations: ['StyledDateRangePickerComponent'],
82-
ngImports: ['IgxDateRangePickerModule', 'IgxInputGroupModule', 'IgxIconModule']
84+
ngImports: ['IgxDateRangePickerModule', 'IgxDatePickerModule', 'IgxDateTimeEditorModule', 'IgxInputGroupModule', 'IgxIconModule']
8385
}),
8486
shortenComponentPathBy: "/scheduling/daterangepicker/"
8587
})

live-editing/configs/GridConfigGenerator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,9 +1016,9 @@ export class GridConfigGenerator implements IConfigGenerator {
10161016
component: 'GridColumnDataTypesSampleComponent',
10171017
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/nwindData.ts'],
10181018
appModuleConfig: new AppModuleConfig({
1019-
imports: ['GridColumnDataTypesSampleComponent', 'IgxGridModule', 'IgxTooltipModule', 'IgxPreventDocumentScrollModule'],
1019+
imports: ['GridColumnDataTypesSampleComponent', 'IgxGridModule', 'IgxTooltipModule', 'IgxInputGroupModule', 'IgxSelectModule', 'IgxPreventDocumentScrollModule'],
10201020
ngDeclarations: ['GridColumnDataTypesSampleComponent'],
1021-
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxTooltipModule']
1021+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxTooltipModule', 'IgxInputGroupModule', 'IgxSelectModule']
10221022
})
10231023
}));
10241024

live-editing/configs/NavbarConfigGenerator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export class NavbarConfigGenerator implements IConfigGenerator {
3232
component: 'NavbarSample2Component',
3333
appModuleConfig: new AppModuleConfig({
3434
imports: ['IgxIconModule', 'IgxNavbarModule', 'IgxButtonModule', 'NavbarSample2Component'],
35-
ngDeclarations: ['NavbarSample2Component', 'IgxButtonModule' ],
36-
ngImports: ['IgxIconModule', 'IgxNavbarModule']
35+
ngDeclarations: ['NavbarSample2Component'],
36+
ngImports: ['IgxIconModule', 'IgxNavbarModule', 'IgxButtonModule' ]
3737
}),
3838
shortenComponentPathBy: "/menus/navbar/"
3939
}));
23.3 KB
Loading
52.5 KB
Loading
35.1 KB
Loading
641 KB
Loading

0 commit comments

Comments
 (0)