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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/donut-ava2/.codesandbox/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM node:18
17 changes: 17 additions & 0 deletions tests/donut-ava2/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"node node_modules/@angular/cli/bin/ng serve -o --disable-host-check": {
"name": "Start Project",
"command": "node node_modules/@angular/cli/bin/ng serve -o --disable-host-check",
"runAtStart": true
}
}
}
1 change: 1 addition & 0 deletions tests/donut-ava2/.stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"installDependencies":true, "startCommand":"npm start"}
110 changes: 110 additions & 0 deletions tests/donut-ava2/angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"example-app": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
},
"@schematics/angular:application": {
"strict": true
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/example-app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"stylePreprocessorOptions": {
"includePaths": ["node_modules/"]
},
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "example-app:build:production"
},
"development": {
"browserTarget": "example-app:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "example-app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"inlineStyleLanguage": "scss",
"assets": ["src/favicon.ico", "src/assets"],
"stylePreprocessorOptions": {
"includePaths": ["node_modules/"]
},
"styles": ["src/styles.scss", "src/theme.scss"],
"scripts": []
}
}
}
}
},
"defaultProject": "example-app",
"cli": {
"analytics": false
}
}
30 changes: 30 additions & 0 deletions tests/donut-ava2/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"dependencies": {
"@angular/animations": "^17.2.1",
"@angular/common": "^17.2.1",
"@angular/compiler": "^17.2.1",
"@angular/core": "^17.2.1",
"@angular/forms": "^17.2.1",
"@angular/platform-browser": "^17.2.1",
"@angular/platform-browser-dynamic": "^17.2.1",
"@angular/router": "^17.2.1",
"@types/hammerjs": "^2.0.39",
"hammerjs": "^2.0.8",
"igniteui-angular": "17.2.0",
"igniteui-angular-charts": "17.3.1-alpha.0",
"igniteui-angular-core": "17.3.1-alpha.0",
"rxjs": "^7.8.1",
"tslib": "^2.6.1",
"zone.js": "~0.14.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "17.2.0",
"@angular/cli": "17.2.0",
"@angular/compiler-cli": "17.2.1",
"@angular/language-service": "17.2.1",
"@types/node": "18.17.0",
"jasmine-core": "5.1.1",
"ts-node": "10.9.1",
"typescript": "5.3.3"
}
}
51 changes: 51 additions & 0 deletions tests/donut-ava2/src/EnergyGlobalDemand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
export class EnergyGlobalDemandItem {
public constructor(init: Partial<EnergyGlobalDemandItem>) {
Object.assign(this, init);
}

public value: number;
public category: string;
public summary: string;

}
export class EnergyGlobalDemand extends Array<EnergyGlobalDemandItem> {
public constructor(items: Array<EnergyGlobalDemandItem> | number = -1) {
if (Array.isArray(items)) {
super(...items);
} else {
const newItems = [
new EnergyGlobalDemandItem(
{
value: 37,
category: `Cooling`,
summary: `Cooling 37%`
}),
new EnergyGlobalDemandItem(
{
value: 25,
category: `Residential`,
summary: `Residential 25%`
}),
new EnergyGlobalDemandItem(
{
value: 12,
category: `Heating`,
summary: `Heating 12%`
}),
new EnergyGlobalDemandItem(
{
value: 11,
category: `Lighting`,
summary: `Lighting 11%`
}),
new EnergyGlobalDemandItem(
{
value: 15,
category: `Other`,
summary: `Other 15%`
}),
];
super(...(newItems.slice(0, items)));
}
}
}
84 changes: 84 additions & 0 deletions tests/donut-ava2/src/_app-layout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
.sample-wrapper {
width: inherit;
position: relative;
height: 100%;
margin: 0 auto;
background: transparent;
}

.sample-content {
display: flex;
flex-grow: 1;
flex-flow: row wrap;
justify-content: flex-start;
padding: 0;
-webkit-animation: fade-in .3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
-moz-animation: fade-in .3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
animation: fade-in .3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.sample-column {
display: flex;
flex-flow: column nowrap;
flex: 1 0 25%;
align-content: flex-start;
margin: 16px;
min-width: 280px;
}

.sample-title {
color: #0375be;
margin-bottom: 12px;
margin-top: 12px;
}

.sample-title .light {
font-weight: 400;
}

.sample-description {
font-size: 14px;
font-weight: normal;
color: #717171;
}

@-webkit-keyframes color-change-2x {
0% {
background: #fdf8f0;
}
100% {
background: #f6e7ec;
}
}

@keyframes color-change-2x {
0% {
background: #fdf8f0;
}
100% {
background: #f6e7ec;
}
}

@-webkit-keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

@keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

.headerAlignSyle {
text-align: right !important;
}

19 changes: 19 additions & 0 deletions tests/donut-ava2/src/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@use 'igniteui-angular/theming' as *;
@forward 'igniteui-angular/theming';

$palette: $light-material-palette;
$schema: $light-material-schema;

$default-palette: $palette;

$green-palette: palette(
$primary: #09f,
$secondary: #72da67,
$surface: #333,
$info: #1377d5,
$success: #4eb862,
$warn: #fbb13c,
$error: #ff134a,
);

$gray-btn-color: color($green-palette, 'gray', 800);
33 changes: 33 additions & 0 deletions tests/donut-ava2/src/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<div class="container vertical sample">
<div class="legend-title">
Global Electricity Demand by Energy Use
</div>
<div class="legend">
<igx-item-legend
name="Legend"
#legend
orientation="Horizontal">
</igx-item-legend>
</div>
<div class="container fill">
<igx-doughnut-chart
name="chart"
#chart
allowSliceExplosion="true">
<igx-ring-series
name="series"
#series
labelMemberPath="summary"
labelsPosition="OutsideEnd"
labelExtent="30"
valueMemberPath="value"
legendLabelMemberPath="category"
outlines="white"
radiusFactor="0.6"
startAngle="30"
[dataSource]="energyGlobalDemand"
[legend]="legend">
</igx-ring-series>
</igx-doughnut-chart>
</div>
</div>
3 changes: 3 additions & 0 deletions tests/donut-ava2/src/app.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* styles are loaded the Shared CSS file located at:
https://static.infragistics.com/xplatform/css/samples/
*/
Loading