Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<title>Samples Browser | IgniteUI for React | Infragistics</title>
<link href="https://static.infragistics.com/xplatform/css/samples/shared.v8.css" rel="stylesheet" />
<link href="https://static.infragistics.com/xplatform/css/samples/custom-legend.css" rel="stylesheet" type="text/css" />
<link href="https://dl.infragistics.com/x/css/samples/shared.v8.css" rel="stylesheet" />
<link href="https://dl.infragistics.com/x/css/samples/custom-legend.css" rel="stylesheet" type="text/css" />
<!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" > -->
<!-- <link href="https://fonts.googleapis.com/css?family=Kanit&display=swap" rel="stylesheet"> -->
<!-- <link href='https://fonts.googleapis.com/css?family=Titillium Web' rel='stylesheet'> -->
Expand Down
6 changes: 3 additions & 3 deletions browser/templates/sample/ReadMe-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ You can preview example of this {PlatformName} application on CodeSandbox by cli
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<body>
<a target="_blank" href="{SandboxUrlEdit}" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0.25rem" alt="Edit on CodeSandbox" src="https://static.infragistics.com/xplatform/images/sandbox/code.png"/>
<img height="40px" style="border-radius: 0.25rem" alt="Edit on CodeSandbox" src="https://dl.infragistics.com/x/img/sandbox/code.png"/>
</a>
</body>
</html>
Expand Down Expand Up @@ -75,11 +75,11 @@ href="https://codesandbox.io/s/github/IgniteUI/igniteui-react-examples/tree/mast
</a> -->
<!-- <a target="_blank" style="margin-left: 0.5rem"
href="{SandboxUrlView}">
<img height="40px" style="border-radius: 5px" alt="View on CodeSandbox" src="https://static.infragistics.com/xplatform/images/sandbox/view.png"/>
<img height="40px" style="border-radius: 5px" alt="View on CodeSandbox" src="https://dl.infragistics.com/x/img/sandbox/view.png"/>
</a> -->
<!-- <a target="_blank"
href="https://codesandbox.io/embed/github/IgniteUI/igniteui-react-examples/tree/master/samples/maps/geo-map/binding-csv-points?fontsize=14&hidenavigation=1&theme=dark&view=preview">
<img alt="View on CodeSandbox" src="https://static.infragistics.com/xplatform/images/sandbox/view.png"/>
<img alt="View on CodeSandbox" src="https://dl.infragistics.com/x/img/sandbox/view.png"/>
</a>
https://codesandbox.io/embed/react-treemap-overview-rtb45
https://codesandbox.io/static/img/play-codesandbox.svg
Expand Down
2 changes: 1 addition & 1 deletion browser/templates/shared/src/CountryTreeData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class CountryTreeData {
data.push({ Parent: "Europe", Name: "Channel Islands", Pop: 153876 });
data.push({ Parent: "Europe", Name: "Croatia", Pop: 4403000 });
data.push({ Parent: "Europe", Name: "Cyprus", Pop: 1116564 });
data.push({ Parent: "Europe", Name: "Czech Republic", Pop: 10496088 });
data.push({ Parent: "Europe", Name: "Czechia", Pop: 10496088 });
data.push({ Parent: "Europe", Name: "Denmark", Pop: 5570572 });
data.push({ Parent: "Europe", Name: "Estonia", Pop: 1339928 });
data.push({ Parent: "Europe", Name: "Finland", Pop: 5388272 });
Expand Down
30 changes: 15 additions & 15 deletions browser/templates/shared/src/DataGridSharedData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export class DataGridSharedData {
}

const employees: any[] = [];
let maleCount: number = 0;
let femaleCount: number = 0;
let maleCount: number = 10;
let femaleCount: number = 10;
for (let i = 0; i < count; i++) {
const age: number = Math.round(this.getRandomNumber(20, 40));
const gender: string = this.getRandomGender();
Expand All @@ -25,15 +25,15 @@ export class DataGridSharedData {

if (gender === "male") {
maleCount++;
if (maleCount > 26) {
maleCount = 1;
if (maleCount > 39) {
maleCount = 10;
}
photoPath = this.getPhotoMale(maleCount);
}
else {
femaleCount++;
if (femaleCount > 24) {
femaleCount = 1;
if (femaleCount > 39) {
femaleCount = 10;
}
photoPath = this.getPhotoFemale(femaleCount);
}
Expand Down Expand Up @@ -98,7 +98,7 @@ export class DataGridSharedData {
"Samsung HDD", "WD HDD", "Seagate HDD", "Intel HDD",
"Samsung SSD", "WD SSD", "Seagate SSD", "Intel SSD",
"Samsung Monitor", "Asus Monitor", "LG Monitor", "HP Monitor" ];
const countries: string[] = ["USA", "UK", "France", "Canada", "Poland", "Japan", "Germany"];
const countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland", "Japan", "Germany"];
const status: string[] = ["Packing", "Shipped", "Delivered"];
const sales: any[] = [];

Expand Down Expand Up @@ -135,7 +135,7 @@ export class DataGridSharedData {
const houses: any[] = [];
const property: string[] = [ "Townhouse", "Single", "Condo", "Villa"];
const emails: string[] = [ "estates.com", "remax.com", "zillow.com", "realtor.com", "coldwell.com"];
const countries: string[] = ["USA", "UK", "France", "Canada", "Poland", "Japan", "Germany"];
const countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland", "Japan", "Germany"];

for (let i = 0; i < count; i++) {
const year: number = this.getRandomNumber(1950, 2015);
Expand Down Expand Up @@ -180,7 +180,7 @@ export class DataGridSharedData {
private static maleNames: string[] = ["Kyle", "Oscar", "Ralph", "Mike", "Bill", "Frank", "Howard", "Jack", "Larry", "Pete", "Steve", "Vince", "Mark", "Alex", "Max", "Brian", "Chris", "Andrew", "Martin", "Mike", "Steve", "Glenn", "Bruce"];
private static femaleNames: string[] = ["Gina", "Irene", "Katie", "Brenda", "Casey", "Fiona", "Holly", "Kate", "Liz", "Pamela", "Nelly", "Marisa", "Monica", "Anna", "Jessica", "Sofia", "Isabella", "Margo", "Jane", "Audrey", "Sally", "Melanie", "Greta", "Aurora", "Sally"];
private static lastNames: string[] = ["Adams", "Crowley", "Ellis", "Martinez", "Irvine", "Maxwell", "Clark", "Owens", "Rooney", "Lincoln", "Thomas", "Spacey", "MOrgan", "King", "Newton", "Fitzgerald", "Holmes", "Jefferson", "Landry", "Berry", "Perez", "Spencer", "Starr", "Carter", "Edwards", "Stark", "Johnson", "Fitz", "Chief", "Blanc", "Perry", "Stone", "Williams", "Lane", "Jobs", "Adams", "Power", "Tesla"];
private static countries: string[] = ["USA", "UK", "France", "Canada", "Poland"];
private static countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland"];
private static citiesUS: string[] = ["New York", "Los Angeles", "Miami", "San Francisco", "San Diego", "Las Vegas"];
private static citiesUK: string[] = ["London", "Liverpool", "Manchester"];
private static citiesFR: string[] = ["Paris", "Marseille", "Lyon"];
Expand Down Expand Up @@ -236,13 +236,13 @@ export class DataGridSharedData {
return this.getRandomItem(this.citiesFR);
} else if (country === "Poland") {
return this.getRandomItem(this.citiesPL);
} else if (country === "USA") {
} else if (country === "United-States") {
return this.getRandomItem(this.citiesUS);
} else if (country === "Japan") {
return this.getRandomItem(this.citiesJP);
} else if (country === "Germany") {
return this.getRandomItem(this.citiesGR);
} else { // if (country === "United Kingdom") {
} else { // if (country === "United-Kingdom") {
return this.getRandomItem(this.citiesUK);
}
}
Expand All @@ -263,19 +263,19 @@ export class DataGridSharedData {
}

private static getPhotoMale(id: number): string {
return 'https://static.infragistics.com/xplatform/images/people//GUY' + this.pad(id, 2) + '.png';
return 'https://dl.infragistics.com/x/img/people/men/' + this.pad(id, 2) + '.png';
}

private static getPhotoFemale(id: number): string {
return 'https://static.infragistics.com/xplatform/images/people/GIRL' + this.pad(id, 2) + '.png';
return 'https://dl.infragistics.com/x/img/people/women/' + this.pad(id, 2) + '.png';
}

private static getGenderPhoto(gender: string): string {
return 'https://static.infragistics.com/xplatform/images/genders/' + gender + '.png';
return 'https://dl.infragistics.com/x/img/genders/' + gender + '.png';
}

private static getCountryFlag(country: string): string {
return 'https://static.infragistics.com/xplatform/images/flags/' + country + '.png';
return 'https://dl.infragistics.com/x/img/flags/' + country + '.png';
}

private static pad(num: number, size: number): string{
Expand Down
64 changes: 15 additions & 49 deletions browser/templates/shared/src/DockManagerSharedData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export class DockManagerSharedData {
}

const contacts: any[] = [];
let maleCount: number = 0;
let femaleCount: number = 0;
let maleCount: number = 10;
let femaleCount: number = 10;
const emails: string[] = [ "gmail.com", "yahoo.com", "facebook.com", "twitter.com"];

for (let i = 0; i < count; i++) {
Expand All @@ -26,17 +26,17 @@ export class DockManagerSharedData {

if (gender === "male") {
maleCount++;
if (maleCount > 26) {
maleCount = 1;
if (maleCount > 39) {
maleCount = 10;
}
photoPath = "https://static.infragistics.com/xplatform/images/people/GUY" + this.pad(maleCount, 2) + ".png";
photoPath = "https://dl.infragistics.com/x/img/people/men/" + this.pad(maleCount, 2) + ".png";
}
else {
femaleCount++;
if (femaleCount > 24) {
femaleCount = 1;
if (femaleCount > 39) {
femaleCount = 10;
}
photoPath = "https://static.infragistics.com/xplatform/images/people/GIRL" + this.pad(femaleCount, 2) + ".png";
photoPath = "https://dl.infragistics.com/x/img/people/women/" + this.pad(femaleCount, 2) + ".png";
}

let person: any = {};
Expand All @@ -48,10 +48,10 @@ export class DockManagerSharedData {
person.Location = location.city + ", " + location.country;
person.Latitude = location.lat;
person.Longitude = location.lon;
person.CountryFlag = "https://static.infragistics.com/xplatform/images/flags/" + location.country + ".png";
person.CountryFlag = "https://dl.infragistics.com/x/img/flags/" + location.country + ".png";
person.Email = email;
person.FirstName = firstName;
person.Gender = "https://static.infragistics.com/xplatform/images/genders/" + gender + ".png";
person.Gender = "https://dl.infragistics.com/x/img/genders/" + gender + ".png";
person.Generation = generation;
person.ID = this.pad(i + 1, 5);
person.LastName = lastName;
Expand Down Expand Up @@ -124,7 +124,7 @@ export class DockManagerSharedData {
"Samsung HDD", "WD HDD", "Seagate HDD", "Intel HDD",
"Samsung SSD", "WD SSD", "Seagate SSD", "Intel SSD",
"Samsung Monitor", "Asus Monitor", "LG Monitor", "HP Monitor" ];
const countries: string[] = ["USA", "UK", "France", "Canada", "Poland", "Japan", "Germany"];
const countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland", "Japan", "Germany"];

const sales: any[] = [];

Expand Down Expand Up @@ -153,7 +153,7 @@ export class DockManagerSharedData {
private static maleNames: string[] = ["Kyle", "Oscar", "Ralph", "Mike", "Bill", "Frank", "Howard", "Jack", "Larry", "Pete", "Steve", "Vince", "Mark", "Alex", "Max", "Brian", "Chris", "Andrew", "Martin", "Mike", "Steve", "Glenn", "Bruce"];
private static femaleNames: string[] = ["Gina", "Irene", "Katie", "Brenda", "Casey", "Fiona", "Holly", "Kate", "Liz", "Pamela", "Nelly", "Marisa", "Monica", "Anna", "Jessica", "Sofia", "Isabella", "Margo", "Jane", "Audrey", "Sally", "Melanie", "Greta", "Aurora", "Sally"];
private static lastNames: string[] = ["Adams", "Crowley", "Ellis", "Martinez", "Irvine", "Maxwell", "Clark", "Owens", "Rooney", "Lincoln", "Thomas", "Spacey", "Betts", "King", "Newton", "Fitzgerald", "Holmes", "Jefferson", "Landry", "Newberry", "Perez", "Spencer", "Starr", "Carter", "Edwards", "Stark", "Johnson", "Fitz", "Chief", "Blanc", "Perry", "Stone", "Williams", "Lane", "Jobs", "Adama", "Power", "Tesla"];
// private static countries: string[] = ["USA", "UK", "France", "Canada", "Poland"];
// private static countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland"];
// private static citiesUS: string[] = ["New York", "Los Angeles", "Miami", "San Francisco", "San Diego", "Las Vegas"];
// private static citiesUK: string[] = ["London", "Liverpool", "Manchester"];
// private static citiesFR: string[] = ["Paris", "Marseille", "Lyon"];
Expand All @@ -174,7 +174,7 @@ export class DockManagerSharedData {
{ lat: 51.488, lon: -0.178, country: "UK", city: "London" },
// { lat: 50.837, lon: 4.368, country: "Belgium", city: "Bruxelles" },
{ lat: 50.448, lon: 30.502, country: "Ukraine", city: "Kiev" },
{ lat: 50.106, lon: 14.457, country: "Czech-Republic", city: "Prague" },
{ lat: 50.106, lon: 14.457, country: "Czechia", city: "Prague" },
{ lat: 48.882, lon: 2.433, country: "France", city: "Paris" },
// { lat: 48.202, lon: 16.321, country: "Austria", city: "Vienna" },
// { lat: 47.929, lon: 106.912, country: "Mongolia", city: "Ulaanbaatar" },
Expand All @@ -192,10 +192,10 @@ export class DockManagerSharedData {
// { lat: 40.208, lon: 44.533, country: "Armenia", city: "Yerevan" },
{ lat: 39.929, lon: 32.853, country: "Turkey", city: "Ankara" },
{ lat: 39.906, lon: 116.388, country: "China", city: "Beijing" },
{ lat: 39.029, lon: 125.758, country: "Korea-North", city: "Pyongyang" },
{ lat: 39.029, lon: 125.758, country: "North-Korea", city: "Pyongyang" },
{ lat: 38.891, lon: -76.954, country: "USA", city: "Washington" },
{ lat: 37.950, lon: 58.390, country: "Turkmenistan", city: "Ashkhabad" },
{ lat: 37.542, lon: 126.935, country: "Korea-South", city: "Seoul" },
{ lat: 37.542, lon: 126.935, country: "South-Korea", city: "Seoul" },
{ lat: 36.819, lon: 10.166, country: "Tunisia", city: "Tunis" },
{ lat: 35.774, lon: 51.448, country: "Iran", city: "Tehran" },
{ lat: 35.683, lon: 139.809, country: "Japan", city: "Tokyo" },
Expand Down Expand Up @@ -275,24 +275,6 @@ export class DockManagerSharedData {
}
}

// private static getRandomCity(country: string): string {
// if (country === "Canada") {
// return this.getRandomItem(this.citiesCA);
// } else if (country === "France") {
// return this.getRandomItem(this.citiesFR);
// } else if (country === "Poland") {
// return this.getRandomItem(this.citiesPL);
// } else if (country === "USA") {
// return this.getRandomItem(this.citiesUS);
// } else if (country === "Japan") {
// return this.getRandomItem(this.citiesJP);
// } else if (country === "Germany") {
// return this.getRandomItem(this.citiesGR);
// } else { // if (country === "United Kingdom") {
// return this.getRandomItem(this.citiesUK);
// }
// }

private static getRandomStreet(): string {
const num = Math.round(this.getRandomNumber(100, 300)).toString();
const road = this.getRandomItem(this.roadNames);
Expand All @@ -308,22 +290,6 @@ export class DockManagerSharedData {
return new Date(year, month, day);
}

// private static getPhotoMale(id: number): string {
// return require('./assets/GUY' + this.pad(id, 2) + '.png');
// }

// private static getPhotoFemale(id: number): string {
// return require('./assets/GIRL' + this.pad(id, 2) + '.png');
// }

// private static getGenderPhoto(gender: string): string {
// return require('./genders/' + gender + '.png');
// }

// private static getCountryFlag(country: string): string {
// return require('./flags/' + country + '.png');
// }

private static pad(num: number, size: number): string{
let s = num + "";
while (s.length < size) {
Expand Down
2 changes: 1 addition & 1 deletion browser/templates/shared/src/LiveFinancialData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const Regions: any[] = [
{
"Name": "Europe",
"Countries": [ "Russia", "Germany", "France", "United Kingdom", "Italy", "Spain", "Poland", "Romania", "Netherlands", "Belgium", "Greece",
"Portugal", "Czech Republic", "Hungary", "Sweden", "Austria", "Switzerland", "Bulgaria", "Denmark", "Finland", "Slovakia", "Norway",
"Portugal", "Czechia", "Hungary", "Sweden", "Austria", "Switzerland", "Bulgaria", "Denmark", "Finland", "Slovakia", "Norway",
"Ireland", "Croatia", "Slovenia", "Estonia", "Iceland",]
},
{
Expand Down
4 changes: 2 additions & 2 deletions browser/templates/shared/src/Products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class Products {
"Samsung SSD", "WD SSD", "Seagate SSD", "Intel SSD", "Asus SSD",
"Samsung Monitor", "Asus Monitor", "LG Monitor", "HP Monitor" ];

public static countries: string[] = ["USA", "UK", "France", "Canada", "Poland",
public static countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland",
"Denmark", "Croatia", "Australia", "Seychelles",
"Sweden", "Germany", "Japan", "Ireland",
"Barbados", "Jamaica", "Cuba", "Spain",];
Expand Down Expand Up @@ -85,7 +85,7 @@ export class Products {
}

public static getCountryFlag(country: string): string {
const flag = 'https://static.infragistics.com/xplatform/images/flags/' + country + '.png'
const flag = 'https://dl.infragistics.com/x/img/flags/' + country + '.png'
return flag;
}

Expand Down
2 changes: 1 addition & 1 deletion browser/templates/shared/src/SampleComboData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class SampleComboData {
{ country: "Cuba", pop: 11253665, id: "Cuba", continent: "Central_America" },
{ country: "Curacao", pop: 145619, id: "Curacao", continent: "Central_America" },
{ country: "Cyprus", pop: 1116564, id: "Cyprus", continent: "Europe" },
{ country: "Czech Republic", pop: 10496088, id: "Czech_Republic", continent: "Europe" },
{ country: "Czechia", pop: 10496088, id: "Czech_Republic", continent: "Europe" },
{ country: "Denmark", pop: 5570572, id: "Denmark", continent: "Europe" },
{ country: "Djibouti", pop: 905564, id: "Djibouti", continent: "Africa" },
{ country: "Dominica", pop: 67675, id: "Dominica", continent: "Central_America" },
Expand Down
2 changes: 1 addition & 1 deletion browser/templates/shared/src/SampleScatterStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class SampleScatterStats {
data.push(new Country("CUB",11270957,0,1780,9,"Cuba","North America"));
data.push(new Country("CUW",152056,0,0,138,"Curacao","North America"));
data.push(new Country("CYP",1128994,26352,37812,94,"Cyprus","Europe"));
data.push(new Country("CZE",10510785,18690,8260,123,"Czech Republic","Europe"));
data.push(new Country("CZE",10510785,18690,8260,123,"Czechia","Europe"));
data.push(new Country("DNK",5591572,56364,101084,116,"Denmark","Europe"));
data.push(new Country("DJI",859652,1575,573,20,"Djibouti","Africa"));
data.push(new Country("DMA",71684,6913,3000,148,"Dominica","North America"));
Expand Down
Loading
Loading