From 4fc08e833a625f12189668edf1b9669df4362906 Mon Sep 17 00:00:00 2001 From: mddifilippo89 Date: Tue, 19 Aug 2025 17:25:17 -0400 Subject: [PATCH] mdd-remove-series-animations mdd-remove-series-animations --- .../series-animations/.codesandbox/Dockerfile | 1 - .../series-animations/.codesandbox/tasks.json | 17 --- .../series-animations/.stackblitzrc | 1 - .../data-chart/series-animations/ReadMe.md | 58 -------- .../data-chart/series-animations/angular.json | 120 ----------------- .../data-chart/series-animations/package.json | 44 ------- .../series-animations/src/SharedData.ts | 124 ------------------ .../series-animations/src/app.component.html | 3 - .../series-animations/src/app.component.scss | 3 - .../series-animations/src/app.component.ts | 16 --- .../series-animations/src/app.module.ts | 29 ---- .../src/environments/environment.prod.ts | 3 - .../src/environments/environment.ts | 16 --- .../series-animations/src/index.html | 22 ---- .../data-chart/series-animations/src/main.ts | 15 --- .../series-animations/src/polyfills.ts | 65 --------- .../series-animations/src/styles.scss | 9 -- .../series-animations/src/typings.d.ts | 5 - .../series-animations/tsconfig.app.json | 10 -- .../series-animations/tsconfig.json | 27 ---- 20 files changed, 588 deletions(-) delete mode 100644 samples/charts/data-chart/series-animations/.codesandbox/Dockerfile delete mode 100644 samples/charts/data-chart/series-animations/.codesandbox/tasks.json delete mode 100644 samples/charts/data-chart/series-animations/.stackblitzrc delete mode 100644 samples/charts/data-chart/series-animations/ReadMe.md delete mode 100644 samples/charts/data-chart/series-animations/angular.json delete mode 100644 samples/charts/data-chart/series-animations/package.json delete mode 100644 samples/charts/data-chart/series-animations/src/SharedData.ts delete mode 100644 samples/charts/data-chart/series-animations/src/app.component.html delete mode 100644 samples/charts/data-chart/series-animations/src/app.component.scss delete mode 100644 samples/charts/data-chart/series-animations/src/app.component.ts delete mode 100644 samples/charts/data-chart/series-animations/src/app.module.ts delete mode 100644 samples/charts/data-chart/series-animations/src/environments/environment.prod.ts delete mode 100644 samples/charts/data-chart/series-animations/src/environments/environment.ts delete mode 100644 samples/charts/data-chart/series-animations/src/index.html delete mode 100644 samples/charts/data-chart/series-animations/src/main.ts delete mode 100644 samples/charts/data-chart/series-animations/src/polyfills.ts delete mode 100644 samples/charts/data-chart/series-animations/src/styles.scss delete mode 100644 samples/charts/data-chart/series-animations/src/typings.d.ts delete mode 100644 samples/charts/data-chart/series-animations/tsconfig.app.json delete mode 100644 samples/charts/data-chart/series-animations/tsconfig.json diff --git a/samples/charts/data-chart/series-animations/.codesandbox/Dockerfile b/samples/charts/data-chart/series-animations/.codesandbox/Dockerfile deleted file mode 100644 index adf04bd95..000000000 --- a/samples/charts/data-chart/series-animations/.codesandbox/Dockerfile +++ /dev/null @@ -1 +0,0 @@ -FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/series-animations/.codesandbox/tasks.json b/samples/charts/data-chart/series-animations/.codesandbox/tasks.json deleted file mode 100644 index 8d92a54cd..000000000 --- a/samples/charts/data-chart/series-animations/.codesandbox/tasks.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - // 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 - } - } -} \ No newline at end of file diff --git a/samples/charts/data-chart/series-animations/.stackblitzrc b/samples/charts/data-chart/series-animations/.stackblitzrc deleted file mode 100644 index dd44ea00f..000000000 --- a/samples/charts/data-chart/series-animations/.stackblitzrc +++ /dev/null @@ -1 +0,0 @@ -{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/series-animations/ReadMe.md b/samples/charts/data-chart/series-animations/ReadMe.md deleted file mode 100644 index eed8ae227..000000000 --- a/samples/charts/data-chart/series-animations/ReadMe.md +++ /dev/null @@ -1,58 +0,0 @@ - - - -This folder contains Angular application with example of Series Animations feature using [DataChart](https://www.infragistics.com/products/ignite-ui-angular/angular/components/general-getting-started.html) component. - - - - - - View Docs - - - View Code - - - Run Sample - - - Run Sample - - - - -## Branches - -> **_NOTE:_** You should use [master](https://github.com/IgniteUI/igniteui-angular-examples/tree/master) branch of this repository if you want to run samples on your computer. Use the [vnext](https://github.com/IgniteUI/igniteui-angular-examples/tree/vnext) branch only when you want to contribute new samples to this repository. - -## Instructions - -Follow these instructions to run this example: - - -- clone and navigate to this sample in terminal window - -``` -git clone https://github.com/IgniteUI/igniteui-angular-examples.git -git checkout master -cd ../samples/charts/data-chart/series-animations -``` - - -- open above folder in VS Code or type: -``` -code . -``` - -- In terminal window, run: -``` -npm install --legacy-peer-deps -npm run-script start -``` - -- open http://localhost:4200/ in your browser - - -## Learn More - -To learn more about **Ignite UI for Angular** components, check out the [Angular documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/general-getting-started.html). diff --git a/samples/charts/data-chart/series-animations/angular.json b/samples/charts/data-chart/series-animations/angular.json deleted file mode 100644 index 0c2c173c9..000000000 --- a/samples/charts/data-chart/series-animations/angular.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "$schema": "./node_modules/@angular/cli/lib/config/schema.json", - "version": 1, - "newProjectRoot": "projects", - "projects": { - "demo": { - "schematics": { - "@schematics/angular:component": { - "style": "scss" - }, - "@schematics/angular:application": { - "strict": true - } - }, - "root": "", - "sourceRoot": "src", - "prefix": "app", - "projectType": "application", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist/demo", - "index": "src/index.html", - "main": "src/main.ts", - "polyfills": [ - "src/polyfills.ts" - ], - "tsConfig": "tsconfig.app.json", - "inlineStyleLanguage": "scss", - "assets": [ - "src/assets" - ], - "styles": [ - "src/styles.scss" - ], - "scripts": [], - "stylePreprocessorOptions": { - "includePaths": ["node_modules/"] - } - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" - } - ], - "outputHashing": "all", - "budgets": [ - { - "type": "initial", - "maximumWarning": "500kb", - "maximumError": "1mb" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "2kb", - "maximumError": "4kb" - } - ] - }, - "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": { - "buildTarget": "demo:build:production" - }, - "development": { - "buildTarget": "demo:build:development" - } - }, - "defaultConfiguration": "development" - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "buildTarget": "demo: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", - "styles": [ - "src/styles.scss" - ], - "scripts": [], - "assets": [ - "src/assets" - ], - "inlineStyleLanguage": "scss", - "stylePreprocessorOptions": { - "includePaths": ["node_modules/"] - } - } - } - } - } - }, - "defaultProject": "demo", - "cli": { - "analytics": false - } -} diff --git a/samples/charts/data-chart/series-animations/package.json b/samples/charts/data-chart/series-animations/package.json deleted file mode 100644 index 8079b7264..000000000 --- a/samples/charts/data-chart/series-animations/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "scripts": { - "ng": "ng", - "update": "ng update", - "start": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng serve -o", - "build": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng build --configuration production", - "lint": "ng lint" - }, - "dependencies": { - "@angular/animations": "20.0.1", - "@angular/common": "20.0.1", - "@angular/compiler": "20.0.1", - "@angular/core": "20.0.1", - "@angular/forms": "20.0.1", - "@angular/platform-browser": "20.0.1", - "@angular/platform-browser-dynamic": "20.0.1", - "@types/hammerjs": "2.0.40", - "classlist.js": "1.1.20150312", - "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "20.0.1-beta.0", - "igniteui-angular-core": "20.0.1-beta.0", - "intl": "1.2.5", - "jszip": "3.8.0", - "rxjs": "7.8.1", - "tslib": "2.6.1", - "web-animations-js": "2.3.2", - "zone.js": "~0.15.0" - }, - "devDependencies": { - "@angular-devkit/build-angular": "20.0.1", - "@angular/cli": "20.0.1", - "@angular/compiler-cli": "20.0.1", - "@angular/language-service": "20.0.1", - "@types/node": "18.17.0", - "codelyzer": "6.0.2", - "jasmine-core": "5.1.1", - "jasmine-spec-reporter": "~4.2.1", - "sass.js": "0.11.1", - "ts-node": "10.9.1", - "tslint": "~6.1.3", - "typescript": "5.8.3" - } -} diff --git a/samples/charts/data-chart/series-animations/src/SharedData.ts b/samples/charts/data-chart/series-animations/src/SharedData.ts deleted file mode 100644 index bd49d18da..000000000 --- a/samples/charts/data-chart/series-animations/src/SharedData.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { Injectable } from "@angular/core"; - -@Injectable() -export class SharedData { - - public static getEnergyProduction() { - const data: any[] = [ - { - Coal: 400000000, - Country: "Canada", - Gas: 175000000, - Hydro: 350000000, - Nuclear: 225000000, - Oil: 100000000 - }, - { - Coal: 925000000, - Country: "China", - Gas: 350000000, - Hydro: 625000000, - Nuclear: 400000000, - Oil: 200000000 - }, - { - Coal: 550000000, - Country: "Russia", - Gas: 250000000, - Hydro: 425000000, - Nuclear: 475000000, - Oil: 200000000 - }, - { - Coal: 450000000, - Country: "Australia", - Gas: 150000000, - Hydro: 350000000, - Nuclear: 175000000, - Oil: 100000000 - }, - { - Coal: 800000000, - Country: "United States", - Gas: 475000000, - Hydro: 750000000, - Nuclear: 575000000, - Oil: 250000000 - }, - { - Coal: 375000000, - Country: "France", - Gas: 350000000, - Hydro: 325000000, - Nuclear: 275000000, - Oil: 150000000 - } - ]; - return data; - } - - public static getItems(startValue: number, maxPoints: number, useShortLabels?: boolean): any[] { - - const data: any[] = []; - let value = startValue; - for (let i = 0; i <= maxPoints; i++) { - value += Math.random() * 4.0 - 2.0; - const v = Math.round(value); - let l = i.toString(); - if (useShortLabels) { - l = this.toShortString(i); - } - data.push({ Label: l, Value: v }); - } - return data; - } - - public static getTemperatures(startValue: number, startYear: number, endYear: number): any[] { - const data: any[] = []; - let value = startValue; - for (let i = startYear; i <= endYear; i++) { - value += (Math.random() - 0.5) * 0.5; - const high = value + (Math.random() * 2); - const low = value - (Math.random() * 2); - const v = Math.abs(Math.round(value * 10) / 10); - const h = Math.abs(Math.round(high * 10) / 10); - const l = Math.abs(Math.round(low * 10) / 10); - data.push({ Label: i.toString(), Value: v, High: h, Low: l }); - } - return data; - } - - public static getLastItem(array: any[]): any { - if (array.length === 0) { - return null; - } - return array[array.length - 1]; - } - - public static getNewItem(array: any[], index: number): any { - const lastItem = this.getLastItem(array); - const newValue = lastItem.Value + Math.random() * 4.0 - 2.0; - return { Label: index.toString(), Value: newValue }; - } - - public static toShortString(largeValue: number): string { - let roundValue: number; - - if (largeValue >= 1000000) { - roundValue = Math.round(largeValue / 100000) / 10; - return roundValue + "m"; - } - if (largeValue >= 1000) { - roundValue = Math.round(largeValue / 100) / 10; - return roundValue + "k"; - } - - roundValue = Math.round(largeValue); - return roundValue + ""; - } - - public static addDays(date: Date, days: number): Date { - date.setDate(date.getDate() + days); - return date; - } -} diff --git a/samples/charts/data-chart/series-animations/src/app.component.html b/samples/charts/data-chart/series-animations/src/app.component.html deleted file mode 100644 index 91e9afc82..000000000 --- a/samples/charts/data-chart/series-animations/src/app.component.html +++ /dev/null @@ -1,3 +0,0 @@ -
- data-chart-series-animations works! -
diff --git a/samples/charts/data-chart/series-animations/src/app.component.scss b/samples/charts/data-chart/series-animations/src/app.component.scss deleted file mode 100644 index cbff781da..000000000 --- a/samples/charts/data-chart/series-animations/src/app.component.scss +++ /dev/null @@ -1,3 +0,0 @@ -/* styles are loaded the Shared CSS file located at: -https://static.infragistics.com/xplatform/css/samples/ -*/ diff --git a/samples/charts/data-chart/series-animations/src/app.component.ts b/samples/charts/data-chart/series-animations/src/app.component.ts deleted file mode 100644 index c3baae039..000000000 --- a/samples/charts/data-chart/series-animations/src/app.component.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Component, OnInit } from "@angular/core"; - -@Component({ - standalone: false, - selector: "app-root", - styleUrls: ["./app.component.scss"], - templateUrl: "./app.component.html" -}) -export class AppComponent implements OnInit { - - constructor() { } - - public ngOnInit() { - } - -} diff --git a/samples/charts/data-chart/series-animations/src/app.module.ts b/samples/charts/data-chart/series-animations/src/app.module.ts deleted file mode 100644 index 7ba2869a7..000000000 --- a/samples/charts/data-chart/series-animations/src/app.module.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { NgModule } from "@angular/core"; -import { FormsModule } from "@angular/forms"; -import { CommonModule } from "@angular/common"; -import { BrowserModule } from "@angular/platform-browser"; -import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; -import { AppComponent } from "./app.component"; - -import { IgxDataChartCoreModule, IgxDataChartCategoryModule } from "igniteui-angular-charts"; -import { SharedData } from "./SharedData"; - - -@NgModule({ - bootstrap: [AppComponent], - declarations: [ - AppComponent, - -], - imports: [ - BrowserModule, - BrowserAnimationsModule, - CommonModule, - FormsModule, - IgxDataChartCoreModule, - IgxDataChartCategoryModule -], - providers: [SharedData], -schemas: [] -}) -export class AppModule {} diff --git a/samples/charts/data-chart/series-animations/src/environments/environment.prod.ts b/samples/charts/data-chart/series-animations/src/environments/environment.prod.ts deleted file mode 100644 index 3612073bc..000000000 --- a/samples/charts/data-chart/series-animations/src/environments/environment.prod.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const environment = { - production: true -}; diff --git a/samples/charts/data-chart/series-animations/src/environments/environment.ts b/samples/charts/data-chart/series-animations/src/environments/environment.ts deleted file mode 100644 index 7b4f817ad..000000000 --- a/samples/charts/data-chart/series-animations/src/environments/environment.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file can be replaced during build by using the `fileReplacements` array. -// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. -// The list of file replacements can be found in `angular.json`. - -export const environment = { - production: false -}; - -/* - * For easier debugging in development mode, you can import the following file - * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. - * - * This import should be commented out in production mode because it will have a negative impact - * on performance if an error is thrown. - */ -// import 'zone.js/dist/zone-error'; // Included with Angular CLI. diff --git a/samples/charts/data-chart/series-animations/src/index.html b/samples/charts/data-chart/series-animations/src/index.html deleted file mode 100644 index 67a35017e..000000000 --- a/samples/charts/data-chart/series-animations/src/index.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - IgniteUI for Angular | Example | infragistics - - - - - - - - - - - - - - - - diff --git a/samples/charts/data-chart/series-animations/src/main.ts b/samples/charts/data-chart/series-animations/src/main.ts deleted file mode 100644 index ec9adcd4a..000000000 --- a/samples/charts/data-chart/series-animations/src/main.ts +++ /dev/null @@ -1,15 +0,0 @@ -// tslint:disable:no-string-literal -import "./polyfills"; -import { enableProdMode } from "@angular/core"; -import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app.module"; - -platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { - // ensure Angular destroys itself on hot reloads. - if (window["ngRef"]) { - window["ngRef"].destroy(); - } - window["ngRef"] = ref; - - // otherwise, log the boot error -}).catch(err => console.error(err)); diff --git a/samples/charts/data-chart/series-animations/src/polyfills.ts b/samples/charts/data-chart/series-animations/src/polyfills.ts deleted file mode 100644 index d583cff9c..000000000 --- a/samples/charts/data-chart/series-animations/src/polyfills.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * This file includes polyfills needed by Angular and is loaded before the app. - * You can add your own extra polyfills to this file. - * - * This file is divided into 2 sections: - * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. - * 2. Application imports. Files imported after ZoneJS that should be loaded before your main - * file. - * - * The current setup is for so-called "evergreen" browsers; the last versions of browsers that - * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), - * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. - * - * Learn more in https://angular.io/guide/browser-support - */ - -/*************************************************************************************************** -* BROWSER POLYFILLS -*/ - -// import "core-js/es7/object"; - -/** IE10 and IE11 requires the following for NgClass support on SVG elements */ -//import "classlist.js"; // run `npm install --save classlist.js`. - -/** IE10 and IE11 requires the following for the Reflect API. */ -// import "core-js/es6/reflect"; - -/* Evergreen browsers require these. */ -// used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. -// import "core-js/es7/reflect"; - -/* - * Required to support Web Animations `@angular/platform-browser/animations`. - * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation - */ -//import "web-animations-js"; // run `npm install --save web-animations-js`. - -/*************************************************************************************************** - * Zone JS is required by Angular itself. - */ -import "hammerjs/hammer"; -import "zone.js"; // included with Angular CLI. - -/*************************************************************************************************** - * @angular/animations polyfill - */ -// if (!Element.prototype.matches) { -// Element.prototype.matches = (Element.prototype as any).msMatchesSelector; -// } - -/*************************************************************************************************** - * APPLICATION IMPORTS - */ - -/** - * Date, currency, decimal and percent pipes. - * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 - */ -// import "intl"; // Run `npm install --save intl`. -// import "intl/locale-data/jsonp/de"; -/** - * Need to import at least one locale-data with intl. - */ -// import "intl/locale-data/jsonp/en"; diff --git a/samples/charts/data-chart/series-animations/src/styles.scss b/samples/charts/data-chart/series-animations/src/styles.scss deleted file mode 100644 index 9b431e92d..000000000 --- a/samples/charts/data-chart/series-animations/src/styles.scss +++ /dev/null @@ -1,9 +0,0 @@ -/* autoprefixer grid: on */ -html, -body { - height: 100%; - width: 100%; - overflow: hidden; - margin: 0; - box-sizing: border-box; -} diff --git a/samples/charts/data-chart/series-animations/src/typings.d.ts b/samples/charts/data-chart/series-animations/src/typings.d.ts deleted file mode 100644 index ef5c7bd62..000000000 --- a/samples/charts/data-chart/series-animations/src/typings.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* SystemJS module definition */ -declare var module: NodeModule; -interface NodeModule { - id: string; -} diff --git a/samples/charts/data-chart/series-animations/tsconfig.app.json b/samples/charts/data-chart/series-animations/tsconfig.app.json deleted file mode 100644 index ff396d4ce..000000000 --- a/samples/charts/data-chart/series-animations/tsconfig.app.json +++ /dev/null @@ -1,10 +0,0 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./out-tsc/app", - "types": [] - }, - "files": ["src/main.ts", "src/polyfills.ts"], - "include": ["src/**/*.d.ts"] -} diff --git a/samples/charts/data-chart/series-animations/tsconfig.json b/samples/charts/data-chart/series-animations/tsconfig.json deleted file mode 100644 index 22d546ab3..000000000 --- a/samples/charts/data-chart/series-animations/tsconfig.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "esnext", - "baseUrl": "./", - "outDir": "./dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, - "target": "es2015", - "typeRoots": [ - "node_modules/@types" - ], - "lib": [ - "es2018", - "dom" - ] - }, - "angularCompilerOptions": { - "enableIvy": true - } -} \ No newline at end of file