Skip to content

Commit 7e7f204

Browse files
author
tfsbuild
committed
Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.12.3
1 parent d02f54f commit 7e7f204

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+7422
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM node:18
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// These tasks will run in order when initializing your CodeSandbox project.
3+
"setupTasks": [
4+
{
5+
"name": "Install Dependencies",
6+
"command": "yarn install"
7+
}
8+
],
9+
// These tasks can be run from CodeSandbox. Running one will open a log in the app.
10+
"tasks": {
11+
"node node_modules/@angular/cli/bin/ng serve -o --disable-host-check": {
12+
"name": "Start Project",
13+
"command": "node node_modules/@angular/cli/bin/ng serve -o --disable-host-check",
14+
"runAtStart": true
15+
}
16+
}
17+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"installDependencies":true, "startCommand":"npm start"}
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"demo": {
7+
"schematics": {
8+
"@schematics/angular:component": {
9+
"style": "scss"
10+
},
11+
"@schematics/angular:application": {
12+
"strict": true
13+
}
14+
},
15+
"root": "",
16+
"sourceRoot": "src",
17+
"prefix": "app",
18+
"projectType": "application",
19+
"architect": {
20+
"build": {
21+
"builder": "@angular-devkit/build-angular:browser",
22+
"options": {
23+
"outputPath": "dist/demo",
24+
"index": "src/index.html",
25+
"main": "src/main.ts",
26+
"polyfills": [
27+
"src/polyfills.ts"
28+
],
29+
"tsConfig": "tsconfig.app.json",
30+
"inlineStyleLanguage": "scss",
31+
"assets": [
32+
"src/assets"
33+
],
34+
"styles": [
35+
"src/styles.scss"
36+
],
37+
"scripts": [],
38+
"stylePreprocessorOptions": {
39+
"includePaths": ["node_modules/"]
40+
}
41+
},
42+
"configurations": {
43+
"production": {
44+
"fileReplacements": [
45+
{
46+
"replace": "src/environments/environment.ts",
47+
"with": "src/environments/environment.prod.ts"
48+
}
49+
],
50+
"outputHashing": "all",
51+
"budgets": [
52+
{
53+
"type": "initial",
54+
"maximumWarning": "500kb",
55+
"maximumError": "1mb"
56+
},
57+
{
58+
"type": "anyComponentStyle",
59+
"maximumWarning": "2kb",
60+
"maximumError": "4kb"
61+
}
62+
]
63+
},
64+
"development": {
65+
"buildOptimizer": false,
66+
"optimization": false,
67+
"vendorChunk": true,
68+
"extractLicenses": false,
69+
"sourceMap": true,
70+
"namedChunks": true
71+
}
72+
},
73+
"defaultConfiguration": "production"
74+
},
75+
"serve": {
76+
"builder": "@angular-devkit/build-angular:dev-server",
77+
"configurations": {
78+
"production": {
79+
"buildTarget": "demo:build:production"
80+
},
81+
"development": {
82+
"buildTarget": "demo:build:development"
83+
}
84+
},
85+
"defaultConfiguration": "development"
86+
},
87+
"extract-i18n": {
88+
"builder": "@angular-devkit/build-angular:extract-i18n",
89+
"options": {
90+
"buildTarget": "demo:build"
91+
}
92+
},
93+
"test": {
94+
"builder": "@angular-devkit/build-angular:karma",
95+
"options": {
96+
"main": "src/test.ts",
97+
"polyfills": "src/polyfills.ts",
98+
"tsConfig": "tsconfig.spec.json",
99+
"karmaConfig": "karma.conf.js",
100+
"styles": [
101+
"src/styles.scss"
102+
],
103+
"scripts": [],
104+
"assets": [
105+
"src/assets"
106+
],
107+
"inlineStyleLanguage": "scss",
108+
"stylePreprocessorOptions": {
109+
"includePaths": ["node_modules/"]
110+
}
111+
}
112+
}
113+
}
114+
}
115+
},
116+
"defaultProject": "demo",
117+
"cli": {
118+
"analytics": false
119+
}
120+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"scripts": {
3+
"ng": "ng",
4+
"update": "ng update",
5+
"start": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng serve -o",
6+
"build": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng build --configuration production",
7+
"lint": "ng lint"
8+
},
9+
"dependencies": {
10+
"@angular/animations": "18.2.1",
11+
"@angular/common": "18.2.1",
12+
"@angular/compiler": "18.2.1",
13+
"@angular/core": "18.2.1",
14+
"@angular/forms": "18.2.1",
15+
"@angular/platform-browser": "18.2.1",
16+
"@angular/platform-browser-dynamic": "18.2.1",
17+
"@types/hammerjs": "2.0.40",
18+
"classlist.js": "1.1.20150312",
19+
"hammerjs": "2.0.8",
20+
"igniteui-angular-core": "18.1.0",
21+
"intl": "1.2.5",
22+
"jszip": "3.8.0",
23+
"rxjs": "7.8.1",
24+
"tslib": "2.6.1",
25+
"web-animations-js": "2.3.2",
26+
"zone.js": "~0.14.4"
27+
},
28+
"devDependencies": {
29+
"@angular/cli": "18.2.1",
30+
"@angular/compiler-cli": "18.2.1",
31+
"@angular/language-service": "18.2.1",
32+
"@angular-devkit/build-angular": "18.2.1",
33+
"@types/node": "18.17.0",
34+
"codelyzer": "6.0.2",
35+
"jasmine-core": "5.1.1",
36+
"jasmine-spec-reporter": "~4.2.1",
37+
"sass.js": "0.11.1",
38+
"tslint": "~6.1.3",
39+
"ts-node": "10.9.1",
40+
"typescript": "5.5.4"
41+
}
42+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
export class OlympicMedalsTopCountriesItem {
2+
public constructor(init: Partial<OlympicMedalsTopCountriesItem>) {
3+
Object.assign(this, init);
4+
}
5+
6+
public year: string;
7+
public america: number;
8+
public china: number;
9+
public russia: number;
10+
11+
}
12+
export class OlympicMedalsTopCountries extends Array<OlympicMedalsTopCountriesItem> {
13+
public constructor(items: Array<OlympicMedalsTopCountriesItem> | number = -1) {
14+
if (Array.isArray(items)) {
15+
super(...items);
16+
} else {
17+
const newItems = [
18+
new OlympicMedalsTopCountriesItem(
19+
{
20+
year: `1996`,
21+
america: 148,
22+
china: 110,
23+
russia: 95
24+
}),
25+
new OlympicMedalsTopCountriesItem(
26+
{
27+
year: `2000`,
28+
america: 142,
29+
china: 115,
30+
russia: 91
31+
}),
32+
new OlympicMedalsTopCountriesItem(
33+
{
34+
year: `2004`,
35+
america: 134,
36+
china: 121,
37+
russia: 86
38+
}),
39+
new OlympicMedalsTopCountriesItem(
40+
{
41+
year: `2008`,
42+
america: 131,
43+
china: 129,
44+
russia: 65
45+
}),
46+
new OlympicMedalsTopCountriesItem(
47+
{
48+
year: `2012`,
49+
america: 135,
50+
china: 115,
51+
russia: 77
52+
}),
53+
new OlympicMedalsTopCountriesItem(
54+
{
55+
year: `2016`,
56+
america: 146,
57+
china: 112,
58+
russia: 88
59+
}),
60+
];
61+
super(...newItems.slice(0));
62+
}
63+
}
64+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="container vertical sample">
2+
<div class="container fill">
3+
<igx-dashboard-tile
4+
name="dashboard"
5+
#dashboard
6+
[dataSource]="olympicMedalsTopCountries">
7+
</igx-dashboard-tile>
8+
</div>
9+
</div>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/* styles are loaded the Shared CSS file located at:
2+
https://static.infragistics.com/xplatform/css/samples/
3+
*/
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
2+
import { OlympicMedalsTopCountriesItem, OlympicMedalsTopCountries } from './OlympicMedalsTopCountries';
3+
import { IgxDashboardTileComponent } from 'igniteui-angular-dashboards';
4+
5+
@Component({
6+
selector: "app-root",
7+
styleUrls: ["./app.component.scss"],
8+
templateUrl: "./app.component.html",
9+
changeDetection: ChangeDetectionStrategy.OnPush
10+
})
11+
12+
export class AppComponent implements AfterViewInit
13+
{
14+
15+
@ViewChild("dashboard", { static: true } )
16+
private dashboard: IgxDashboardTileComponent
17+
private _olympicMedalsTopCountries: OlympicMedalsTopCountries = null;
18+
public get olympicMedalsTopCountries(): OlympicMedalsTopCountries {
19+
if (this._olympicMedalsTopCountries == null)
20+
{
21+
this._olympicMedalsTopCountries = new OlympicMedalsTopCountries();
22+
}
23+
return this._olympicMedalsTopCountries;
24+
}
25+
26+
public constructor(private _detector: ChangeDetectorRef)
27+
{
28+
}
29+
30+
public ngAfterViewInit(): void
31+
{
32+
}
33+
34+
}
35+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { NgModule } from "@angular/core";
2+
import { FormsModule } from "@angular/forms";
3+
import { CommonModule } from "@angular/common";
4+
import { BrowserModule } from "@angular/platform-browser";
5+
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
6+
import { AppComponent } from "./app.component";
7+
8+
import { IgxDashboardTileModule, IgxDataChartDashboardTileModule, IgxGeographicMapDashboardTileModule, IgxLinearGaugeDashboardTileModule, IgxPieChartDashboardTileModule, IgxRadialGaugeDashboardTileModule } from 'igniteui-angular-dashboards';
9+
10+
@NgModule({
11+
bootstrap: [AppComponent],
12+
declarations: [
13+
AppComponent
14+
],
15+
imports: [
16+
BrowserModule,
17+
BrowserAnimationsModule,
18+
CommonModule,
19+
FormsModule,
20+
IgxDashboardTileModule,
21+
IgxDataChartDashboardTileModule,
22+
IgxGeographicMapDashboardTileModule,
23+
IgxLinearGaugeDashboardTileModule,
24+
IgxPieChartDashboardTileModule,
25+
IgxRadialGaugeDashboardTileModule
26+
],
27+
providers: [],
28+
schemas: []
29+
})
30+
export class AppModule {}

0 commit comments

Comments
 (0)