11/* tslint:disable:max-line-length */
2+ export class Header {
3+ constructor ( public name : string , public type : string , public imageSrc ?: string , public desc ?: string ) { }
4+ }
5+
6+ export class Footer {
7+ constructor ( public name : string , public type : string , public imageSrc ?: string , public desc ?: string ) { }
8+ }
9+
10+ export class Country {
11+ constructor ( public name : string , public imageSrc : string , public continent : string , public desc : string ) { }
12+ }
13+
14+ // revise all ListViews with structural deirectives and then delete this data
215export class GroupTitle {
316 constructor ( public title : string ) { }
417}
@@ -8,14 +21,12 @@ let mockedDescriptionType2 = "Nunc vel augue quam. Phasellus pharetra lobortis n
821let mockedDescriptionType3 = "Nulla convallis urna eu est tristique, in ullamcorper sapien rutrum. Donec dictum tortor leo, ac pharetra leo fringilla vitae. Cras pellentesque ac arcu sed auctor. Aenean vitae nisl ut diam imperdiet sagittis. Maecenas eget scelerisque orci, vitae maximus ante." ;
922let mockedDescriptionType4 = "Donec dictum tortor leo, ac pharetra leo fringilla vitae. Cras pellentesque ac arcu sed auctor." ;
1023
11- export class Country {
12- constructor ( public name : string , public imageSrc : string , public continent : string , public desc : string ) { }
13- }
14-
24+ // revise all ListViews with structural deirectives and then delete this data
1525export class GroupFooter {
1626 constructor ( public description : string ) { }
1727}
1828
29+ // Dont delete this!
1930export let mockedDataArray = [
2031 new Country ( "Australia" , "~/common-screens-category/lists-category/images/flags/au.png" , "Australia" , mockedDescription ) ,
2132 new Country ( "Belgium" , "~/common-screens-category/lists-category/images/flags/be.png" , "Europe" , mockedDescriptionType2 ) ,
@@ -35,6 +46,9 @@ export let mockedDataArray = [
3546 new Country ( "Russia" , "~/common-screens-category/lists-category/images/flags/ru.png" , "Europe" , mockedDescriptionType4 ) ,
3647 new Country ( "United States" , "~/common-screens-category/lists-category/images/flags/us.png" , "North America" , mockedDescriptionType3 ) ,
3748] ;
49+
50+
51+ // revise all ListViews with structural deirectives and then delete this data
3852export let mockedGroupDataArray = [
3953 new GroupTitle ( "Asia" ) ,
4054 new Country ( "China" , "~/common-screens-category/lists-category/images/flags/cn.png" , "Asia" , mockedDescriptionType4 ) ,
@@ -59,3 +73,29 @@ export let mockedGroupDataArray = [
5973
6074 new GroupFooter ( "all countries loaded!" )
6175] ;
76+
77+ export let mockedCounties = [
78+ new Header ( "Asia" , "header" ) ,
79+ new Country ( "China" , "~/common-screens-category/lists-category/images/flags/cn.png" , "Asia" , mockedDescriptionType4 ) ,
80+
81+ new Header ( "Europe" , "header" ) ,
82+ new Country ( "Belgium" , "~/common-screens-category/lists-category/images/flags/be.png" , "Europe" , mockedDescriptionType2 ) ,
83+ new Country ( "Bulgaria" , "~/common-screens-category/lists-category/images/flags/bg.png" , "Europe" , mockedDescription ) ,
84+ new Country ( "Switzerland" , "~/common-screens-category/lists-category/images/flags/ch.png" , "Europe" , mockedDescriptionType2 ) ,
85+ new Country ( "Czech Republic" , "~/common-screens-category/lists-category/images/flags/cz.png" , "Europe" , mockedDescription ) ,
86+ new Country ( "Germany" , "~/common-screens-category/lists-category/images/flags/de.png" , "Europe" , mockedDescription ) ,
87+ new Country ( "Spain" , "~/common-screens-category/lists-category/images/flags/es.png" , "Europe" , mockedDescriptionType2 ) ,
88+ new Country ( "Croatia" , "~/common-screens-category/lists-category/images/flags/hr.png" , "Europe" , mockedDescription ) ,
89+ new Country ( "Hungary" , "~/common-screens-category/lists-category/images/flags/hu.png" , "Europe" , mockedDescriptionType2 ) ,
90+ new Country ( "Italy" , "~/common-screens-category/lists-category/images/flags/it.png" , "Europe" , mockedDescriptionType4 ) ,
91+ new Country ( "Romania" , "~/common-screens-category/lists-category/images/flags/ro.png" , "Europe" , mockedDescriptionType2 ) ,
92+ new Country ( "Russia" , "~/common-screens-category/lists-category/images/flags/ru.png" , "Europe" , mockedDescriptionType4 ) ,
93+
94+ new Header ( "North America" , "header" ) ,
95+ new Country ( "Canada" , "~/common-screens-category/lists-category/images/flags/ca.png" , "North America" , mockedDescriptionType3 ) ,
96+ new Country ( "United States" , "~/common-screens-category/lists-category/images/flags/us.png" , "North America" , mockedDescriptionType3 ) ,
97+ new Country ( "Jamaica" , "~/common-screens-category/lists-category/images/flags/jm.png" , "North America" , mockedDescription ) ,
98+
99+ new Footer ( "all countries loaded!" , "footer" )
100+ ] ;
101+
0 commit comments