1
+ export let lazyLoadData : Object [ ] = [ ] ;
2
+ export function createLazyLoadData ( ) : void {
3
+ if ( lazyLoadData . length ) {
4
+ return ;
5
+ }
6
+ let customerid : string [ ] = [ 'VINET' , 'TOMSP' , 'HANAR' , 'VICTE' , 'SUPRD' , 'HANAR' , 'CHOPS' , 'RICSU' , 'WELLI' , 'HILAA' ,
7
+ 'ERNSH' , 'CENTC' , 'OTTIK' , 'QUEDE' , 'RATTC' , 'ERNSH' , 'FOLKO' , 'BLONP' , 'WARTH' , 'FRANK' , 'GROSR' , 'WHITC' , 'WARTH' ,
8
+ 'SPLIR' , 'RATTC' , 'QUICK' , 'VINET' , 'MAGAA' , 'TORTU' , 'MORGK' , 'BERGS' , 'LEHMS' , 'BERGS' , 'ROMEY' , 'ROMEY' , 'LILAS' ,
9
+ 'LEHMS' , 'QUICK' , 'QUICK' , 'RICAR' , 'REGGC' , 'BSBEV' , 'COMMI' , 'QUEDE' , 'TRADH' , 'TORTU' , 'RATTC' , 'VINET' , 'LILAS' ,
10
+ 'BLONP' , 'HUNGO' , 'RICAR' , 'MAGAA' , 'WANDK' , 'SUPRD' , 'GODOS' , 'TORTU' , 'OLDWO' , 'ROMEY' , 'LONEP' , 'ANATR' , 'HUNGO' ,
11
+ 'THEBI' , 'DUMON' , 'WANDK' , 'QUICK' , 'RATTC' , 'ISLAT' , 'RATTC' , 'LONEP' , 'ISLAT' , 'TORTU' , 'WARTH' , 'ISLAT' , 'PERIC' ,
12
+ 'KOENE' , 'SAVEA' , 'KOENE' , 'BOLID' , 'FOLKO' , 'FURIB' , 'SPLIR' , 'LILAS' , 'BONAP' , 'MEREP' , 'WARTH' , 'VICTE' ,
13
+ 'HUNGO' , 'PRINI' , 'FRANK' , 'OLDWO' , 'MEREP' , 'BONAP' , 'SIMOB' , 'FRANK' , 'LEHMS' , 'WHITC' , 'QUICK' , 'RATTC' , 'FAMIA' ] ;
14
+
15
+ let product : string [ ] = [ 'Chai' , 'Chang' , 'Aniseed Syrup' , 'Chef Anton\'s Cajun Seasoning' , 'Chef Anton\'s Gumbo Mix' ,
16
+ 'Grandma\'s Boysenberry Spread' , 'Uncle Bob\'s Organic Dried Pears' , 'Northwoods Cranberry Sauce' , 'Mishi Kobe Niku' ,
17
+ 'Ikura' , 'Queso Cabrales' , 'Queso Manchego La Pastora' , 'Konbu' , 'Tofu' , 'Genen Shouyu' , 'Pavlova' , 'Alice Mutton' ,
18
+ 'Carnarvon Tigers' , 'Teatime Chocolate Biscuits' , 'Sir Rodney\'s Marmalade' , 'Sir Rodney\'s Scones' ,
19
+ 'Gustaf\'s Knäckebröd' , 'Tunnbröd' , 'Guaraná Fantástica' , 'NuNuCa Nuß-Nougat-Creme' , 'Gumbär Gummibärchen' ,
20
+ 'Schoggi Schokolade' , 'Rössle Sauerkraut' , 'Thüringer Rostbratwurst' , 'Nord-Ost Matjeshering' , 'Gorgonzola Telino' ,
21
+ 'Mascarpone Fabioli' , 'Geitost' , 'Sasquatch Ale' , 'Steeleye Stout' , 'Inlagd Sill' ,
22
+ 'Gravad lax' , 'Côte de Blaye' , 'Chartreuse verte' , 'Boston Crab Meat' , 'Jack\'s New England Clam Chowder' ,
23
+ 'Singaporean Hokkien Fried Mee' , 'Ipoh Coffee' , 'Gula Malacca' , 'Rogede sild' , 'Spegesild' , 'Zaanse koeken' ,
24
+ 'Chocolade' , 'Maxilaku' , 'Valkoinen suklaa' , 'Manjimup Dried Apples' , 'Filo Mix' , 'Perth Pasties' ,
25
+ 'Tourtière' , 'Pâté chinois' , 'Gnocchi di nonna Alice' , 'Ravioli Angelo' , 'Escargots de Bourgogne' ,
26
+ 'Raclette Courdavault' , 'Camembert Pierrot' , 'Sirop d\'érable' ,
27
+ 'Tarte au sucre' , 'Vegie-spread' , 'Wimmers gute Semmelknödel' , 'Louisiana Fiery Hot Pepper Sauce' ,
28
+ 'Louisiana Hot Spiced Okra' , 'Laughing Lumberjack Lager' , 'Scottish Longbreads' ,
29
+ 'Gudbrandsdalsost' , 'Outback Lager' , 'Flotemysost' , 'Mozzarella di Giovanni' , 'Röd Kaviar' , 'Longlife Tofu' ,
30
+ 'Rhönbräu Klosterbier' , 'Lakkalikööri' , 'Original Frankfurter grüne Soße' ] ;
31
+
32
+ let customername : string [ ] = [ 'Maria' , 'Ana Trujillo' , 'Antonio Moreno' , 'Thomas Hardy' , 'Christina Berglund' ,
33
+ 'Hanna Moos' , 'Frédérique Citeaux' , 'Martín Sommer' , 'Laurence Lebihan' , 'Elizabeth Lincoln' ,
34
+ 'Victoria Ashworth' , 'Patricio Simpson' , 'Francisco Chang' , 'Yang Wang' , 'Pedro Afonso' , 'Elizabeth Brown' ,
35
+ 'Sven Ottlieb' , 'Janine Labrune' , 'Ann Devon' , 'Roland Mendel' , 'Aria Cruz' , 'Diego Roel' ,
36
+ 'Martine Rancé' , 'Maria Larsson' , 'Peter Franken' , 'Carine Schmitt' , 'Paolo Accorti' , 'Lino Rodriguez' ,
37
+ 'Eduardo Saavedra' , 'José Pedro Freyre' , 'André Fonseca' , 'Howard Snyder' , 'Manuel Pereira' ,
38
+ 'Mario Pontes' , 'Carlos Hernández' , 'Yoshi Latimer' , 'Patricia McKenna' , 'Helen Bennett' , 'Philip Cramer' ,
39
+ 'Daniel Tonini' , 'Annette Roulet' , 'Yoshi Tannamuri' , 'John Steel' , 'Renate Messner' , 'Jaime Yorres' ,
40
+ 'Carlos González' , 'Felipe Izquierdo' , 'Fran Wilson' , 'Giovanni Rovelli' , 'Catherine Dewey' , 'Jean Fresnière' ,
41
+ 'Alexander Feuer' , 'Simon Crowther' , 'Yvonne Moncada' , 'Rene Phillips' , 'Henriette Pfalzheim' ,
42
+ 'Marie Bertrand' , 'Guillermo Fernández' , 'Georg Pipps' , 'Isabel de Castro' , 'Bernardo Batista' , 'Lúcia Carvalho' ,
43
+ 'Horst Kloss' , 'Sergio Gutiérrez' , 'Paula Wilson' , 'Maurizio Moroni' , 'Janete Limeira' , 'Michael Holz' ,
44
+ 'Alejandra Camino' , 'Jonas Bergulfsen' , 'Jose Pavarotti' , 'Hari Kumar' , 'Jytte Petersen' , 'Dominique Perrier' ,
45
+ 'Art Braunschweiger' , 'Pascale Cartrain' , 'Liz Nixon' , 'Liu Wong' , 'Karin Josephs' , 'Miguel Angel Paolino' ,
46
+ 'Anabela Domingues' , 'Helvetius Nagy' , 'Palle Ibsen' , 'Mary Saveley' , 'Paul Henriot' , 'Rita Müller' ,
47
+ 'Pirkko Koskitalo' , 'Paula Parente' , 'Karl Jablonski' , 'Matti Karttunen' , 'Zbyszek Piestrzeniewicz' ] ;
48
+
49
+ let customeraddress : string [ ] = [ '507 - 20th Ave. E.\r\nApt. 2A' , '908 W. Capital Way' , '722 Moss Bay Blvd.' ,
50
+ '4110 Old Redmond Rd.' , '14 Garrett Hill' , 'Coventry House\r\nMiner Rd.' , 'Edgeham Hollow\r\nWinchester Way' ,
51
+ '4726 - 11th Ave. N.E.' , '7 Houndstooth Rd.' , '59 rue de l\'Abbaye' , 'Luisenstr. 48' , '908 W. Capital Way' ,
52
+ '722 Moss Bay Blvd.' , '4110 Old Redmond Rd.' , '14 Garrett Hill' , 'Coventry House\r\nMiner Rd.' ,
53
+ 'Edgeham Hollow\r\nWinchester Way' ,
54
+ '7 Houndstooth Rd.' , '2817 Milton Dr.' , 'Kirchgasse 6' , 'Sierras de Granada 9993' , 'Mehrheimerstr. 369' ,
55
+ 'Rua da Panificadora, 12' , '2817 Milton Dr.' , 'Mehrheimerstr. 369' ] ;
56
+
57
+ let quantityperunit : string [ ] = [ '10 boxes x 20 bags' , '24 - 12 oz bottles' , '12 - 550 ml bottles' ,
58
+ '48 - 6 oz jars' , '36 boxes' , '12 - 8 oz jars' , '12 - 1 lb pkgs.' , '12 - 12 oz jars' ,
59
+ '18 - 500 g pkgs.' , '12 - 200 ml jars' ,
60
+ '1 kg pkg.' , '10 - 500 g pkgs.' , '2 kg box' , '40 - 100 g pkgs.' , '24 - 250 ml bottles' , '32 - 500 g boxes' ,
61
+ '20 - 1 kg tins' , '16 kg pkg.' , '10 boxes x 12 pieces' , '30 gift boxes' , '24 pkgs. x 4 pieces' , '24 - 500 g pkgs.' ,
62
+ '12 - 250 g pkgs.' ,
63
+ '12 - 355 ml cans' , '20 - 450 g glasses' , '100 - 250 g bags' ] ;
64
+
65
+ let orderID : number = 10248 ;
66
+ for ( let i : number = 0 ; i < 20000 ; i ++ ) {
67
+ lazyLoadData . push ( {
68
+ 'OrderID' : orderID + i ,
69
+ 'CustomerID' : customerid [ Math . floor ( Math . random ( ) * customerid . length ) ] ,
70
+ 'CustomerName' : customername [ Math . floor ( Math . random ( ) * customername . length ) ] ,
71
+ 'CustomerAddress' : customeraddress [ Math . floor ( Math . random ( ) * customeraddress . length ) ] ,
72
+ 'ProductName' : product [ Math . floor ( Math . random ( ) * product . length ) ] ,
73
+ 'ProductID' : i ,
74
+ 'Quantity' : quantityperunit [ Math . floor ( Math . random ( ) * quantityperunit . length ) ]
75
+ } ) ;
76
+ }
77
+ }
0 commit comments