@@ -2,6 +2,7 @@ import {IgxButtonModule,
22IgxIconModule ,
33IgxInputGroupModule ,
44IgxSliderModule } from 'igniteui-angular' ;
5+ import { HammerModule } from '@angular/platform-browser' ;
56import { AppModuleConfig , Config , IConfigGenerator } from 'igniteui-live-editing'
67export class SliderConfigGenerator implements IConfigGenerator {
78
@@ -13,9 +14,9 @@ export class SliderConfigGenerator implements IConfigGenerator {
1314 configs . push ( new Config ( {
1415 component : 'SliderSample1Component' ,
1516 appModuleConfig : new AppModuleConfig ( {
16- imports : [ 'IgxInputGroupModule' , 'IgxSliderModule' , 'SliderSample1Component' ] ,
17+ imports : [ 'IgxInputGroupModule' , 'IgxSliderModule' , 'SliderSample1Component' , 'HammerModule' ] ,
1718 ngDeclarations : [ 'SliderSample1Component' ] ,
18- ngImports : [ 'IgxInputGroupModule' , 'IgxSliderModule' ]
19+ ngImports : [ 'IgxInputGroupModule' , 'IgxSliderModule' , 'HammerModule' ]
1920 } ) ,
2021 shortenComponentPathBy : "/interactions/slider/"
2122 } ) ) ;
@@ -24,9 +25,9 @@ export class SliderConfigGenerator implements IConfigGenerator {
2425 configs . push ( new Config ( {
2526 component : 'SliderSample2Component' ,
2627 appModuleConfig : new AppModuleConfig ( {
27- imports : [ 'IgxSliderModule' , 'SliderSample2Component' ] ,
28+ imports : [ 'IgxSliderModule' , 'SliderSample2Component' , 'HammerModule' ] ,
2829 ngDeclarations : [ 'SliderSample2Component' ] ,
29- ngImports : [ 'IgxSliderModule' ]
30+ ngImports : [ 'IgxSliderModule' , 'HammerModule' ]
3031 } ) ,
3132 shortenComponentPathBy : "/interactions/slider/"
3233 } ) ) ;
@@ -35,9 +36,9 @@ export class SliderConfigGenerator implements IConfigGenerator {
3536 configs . push ( new Config ( {
3637 component : 'SliderSample3Component' ,
3738 appModuleConfig : new AppModuleConfig ( {
38- imports : [ 'IgxInputGroupModule' , 'IgxSliderModule' , 'SliderSample3Component' ] ,
39+ imports : [ 'IgxInputGroupModule' , 'IgxSliderModule' , 'SliderSample3Component' , 'HammerModule' ] ,
3940 ngDeclarations : [ 'SliderSample3Component' ] ,
40- ngImports : [ 'IgxInputGroupModule' , 'IgxSliderModule' ]
41+ ngImports : [ 'IgxInputGroupModule' , 'IgxSliderModule' , 'HammerModule' ]
4142 } ) ,
4243 shortenComponentPathBy : "/interactions/slider/"
4344 } ) ) ;
@@ -46,9 +47,9 @@ export class SliderConfigGenerator implements IConfigGenerator {
4647 configs . push ( new Config ( {
4748 component : 'SliderSample4Component' ,
4849 appModuleConfig : new AppModuleConfig ( {
49- imports : [ 'IgxSliderModule' , 'SliderSample4Component' ] ,
50+ imports : [ 'IgxSliderModule' , 'SliderSample4Component' , 'HammerModule' ] ,
5051 ngDeclarations : [ 'SliderSample4Component' ] ,
51- ngImports : [ 'IgxSliderModule' ]
52+ ngImports : [ 'IgxSliderModule' , 'HammerModule' ]
5253 } ) ,
5354 shortenComponentPathBy : "/interactions/slider/"
5455 } ) ) ;
@@ -57,9 +58,9 @@ export class SliderConfigGenerator implements IConfigGenerator {
5758 configs . push ( new Config ( {
5859 component : 'SliderSample5Component' ,
5960 appModuleConfig : new AppModuleConfig ( {
60- imports : [ 'IgxSliderModule' , 'SliderSample5Component' ] ,
61+ imports : [ 'IgxSliderModule' , 'SliderSample5Component' , 'HammerModule' ] ,
6162 ngDeclarations : [ 'SliderSample5Component' ] ,
62- ngImports : [ 'IgxSliderModule' ]
63+ ngImports : [ 'IgxSliderModule' , 'HammerModule' ]
6364 } ) ,
6465 shortenComponentPathBy : "/interactions/slider/"
6566 } ) ) ;
@@ -68,79 +69,79 @@ export class SliderConfigGenerator implements IConfigGenerator {
6869 configs . push ( new Config ( {
6970 component : 'SliderSample6Component' ,
7071 appModuleConfig : new AppModuleConfig ( {
71- imports : [ 'IgxSliderModule' , 'SliderSample6Component' ] ,
72+ imports : [ 'IgxSliderModule' , 'SliderSample6Component' , 'HammerModule' ] ,
7273 ngDeclarations : [ 'SliderSample6Component' ] ,
73- ngImports : [ 'IgxSliderModule' ]
74+ ngImports : [ 'IgxSliderModule' , 'HammerModule' ]
7475 } ) ,
7576 shortenComponentPathBy : "/interactions/slider/"
7677 } ) ) ;
7778
7879 configs . push ( new Config ( {
7980 component : 'SliderSecondaryTicksMirrorComponent' ,
8081 appModuleConfig : new AppModuleConfig ( {
81- imports : [ 'IgxButtonModule' , 'IgxIconModule' , 'IgxSliderModule' , 'SliderSecondaryTicksMirrorComponent' ] ,
82+ imports : [ 'IgxButtonModule' , 'IgxIconModule' , 'IgxSliderModule' , 'SliderSecondaryTicksMirrorComponent' , 'HammerModule' ] ,
8283 ngDeclarations : [ 'SliderSecondaryTicksMirrorComponent' ] ,
83- ngImports : [ 'IgxButtonModule' , 'IgxIconModule' , 'IgxSliderModule' ]
84+ ngImports : [ 'IgxButtonModule' , 'IgxIconModule' , 'IgxSliderModule' , 'HammerModule' ]
8485 } ) ,
8586 shortenComponentPathBy : "/interactions/slider/"
8687 } ) ) ;
8788
8889 configs . push ( new Config ( {
8990 component : 'SliderDiscreteTicksBottomComponent' ,
9091 appModuleConfig : new AppModuleConfig ( {
91- imports : [ 'IgxSliderModule' , 'SliderDiscreteTicksBottomComponent' ] ,
92+ imports : [ 'IgxSliderModule' , 'SliderDiscreteTicksBottomComponent' , 'HammerModule' ] ,
9293 ngDeclarations : [ 'SliderDiscreteTicksBottomComponent' ] ,
93- ngImports : [ 'IgxSliderModule' ]
94+ ngImports : [ 'IgxSliderModule' , 'HammerModule' ]
9495 } ) ,
9596 shortenComponentPathBy : "/interactions/slider/"
9697 } ) ) ;
9798
9899 configs . push ( new Config ( {
99100 component : 'SliderTicksBottomtotopLabelsComponent' ,
100101 appModuleConfig : new AppModuleConfig ( {
101- imports : [ 'IgxInputGroupModule' , 'IgxSliderModule' , 'SliderTicksBottomtotopLabelsComponent' ] ,
102+ imports : [ 'IgxInputGroupModule' , 'IgxSliderModule' , 'SliderTicksBottomtotopLabelsComponent' , 'HammerModule' ] ,
102103 ngDeclarations : [ 'SliderTicksBottomtotopLabelsComponent' ] ,
103- ngImports : [ 'IgxInputGroupModule' , 'IgxSliderModule' ]
104+ ngImports : [ 'IgxInputGroupModule' , 'IgxSliderModule' , 'HammerModule' ]
104105 } ) ,
105106 shortenComponentPathBy : "/interactions/slider/"
106107 } ) ) ;
107108
108109 configs . push ( new Config ( {
109110 component : 'SliderPrimaryTicksTopComponent' ,
110111 appModuleConfig : new AppModuleConfig ( {
111- imports : [ 'IgxSliderModule' , 'SliderPrimaryTicksTopComponent' ] ,
112+ imports : [ 'IgxSliderModule' , 'SliderPrimaryTicksTopComponent' , 'HammerModule' ] ,
112113 ngDeclarations : [ 'SliderPrimaryTicksTopComponent' ] ,
113- ngImports : [ 'IgxSliderModule' ]
114+ ngImports : [ 'IgxSliderModule' , 'HammerModule' ]
114115 } ) ,
115116 shortenComponentPathBy : "/interactions/slider/"
116117 } ) ) ;
117118
118119 configs . push ( new Config ( {
119120 component : 'SliderTimeframeComponent' ,
120121 appModuleConfig : new AppModuleConfig ( {
121- imports : [ 'IgxSliderModule' , 'SliderTimeframeComponent' ] ,
122+ imports : [ 'IgxSliderModule' , 'SliderTimeframeComponent' , 'HammerModule' ] ,
122123 ngDeclarations : [ 'SliderTimeframeComponent' ] ,
123- ngImports : [ 'IgxSliderModule' ]
124+ ngImports : [ 'IgxSliderModule' , 'HammerModule' ]
124125 } ) ,
125126 shortenComponentPathBy : "/interactions/slider/"
126127 } ) ) ;
127128
128129 configs . push ( new Config ( {
129130 component : 'TickLabelsTemplateComponent' ,
130131 appModuleConfig : new AppModuleConfig ( {
131- imports : [ 'IgxSliderModule' , 'TickLabelsTemplateComponent' ] ,
132+ imports : [ 'IgxSliderModule' , 'TickLabelsTemplateComponent' , 'HammerModule' ] ,
132133 ngDeclarations : [ 'TickLabelsTemplateComponent' ] ,
133- ngImports : [ 'IgxSliderModule' ]
134+ ngImports : [ 'IgxSliderModule' , 'HammerModule' ]
134135 } ) ,
135136 shortenComponentPathBy : "/interactions/slider/"
136137 } ) ) ;
137138
138139 configs . push ( new Config ( {
139140 component : 'AppSliderStylingComponent' ,
140141 appModuleConfig : new AppModuleConfig ( {
141- imports : [ 'IgxSliderModule' , 'AppSliderStylingComponent' ] ,
142+ imports : [ 'IgxSliderModule' , 'AppSliderStylingComponent' , 'HammerModule' ] ,
142143 ngDeclarations : [ 'AppSliderStylingComponent' ] ,
143- ngImports : [ 'IgxSliderModule' ]
144+ ngImports : [ 'IgxSliderModule' , 'HammerModule' ]
144145 } ) ,
145146 shortenComponentPathBy : "/interactions/slider/"
146147 } ) ) ;
0 commit comments