From 7af70533868fc74d0c1ceeca12b0bada8daf2284 Mon Sep 17 00:00:00 2001 From: tfsbuild Date: Tue, 17 Dec 2024 15:28:34 +0200 Subject: [PATCH] Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.17.3 --- .../.codesandbox/Dockerfile | 1 + .../.codesandbox/tasks.json | 17 +++ .../financial-dashboard/.stackblitzrc | 1 + .../financial-dashboard/angular.json | 120 ++++++++++++++++++ .../financial-dashboard/package.json | 49 +++++++ .../financial-dashboard/src/MultipleStocks.ts | 107 ++++++++++++++++ .../src/app.component.html | 9 ++ .../src/app.component.scss | 3 + .../financial-dashboard/src/app.component.ts | 38 ++++++ .../financial-dashboard/src/app.module.ts | 30 +++++ .../src/environments/environment.prod.ts | 3 + .../src/environments/environment.ts | 16 +++ .../financial-dashboard/src/index.html | 23 ++++ .../financial-dashboard/src/main.ts | 15 +++ .../financial-dashboard/src/polyfills.ts | 61 +++++++++ .../financial-dashboard/src/styles.scss | 9 ++ .../financial-dashboard/src/typings.d.ts | 5 + .../financial-dashboard/tsconfig.app.json | 10 ++ .../financial-dashboard/tsconfig.json | 27 ++++ .../financial-dashboard/tslint.json | 31 +++++ 20 files changed, 575 insertions(+) create mode 100644 samples/charts/dashboard-tile/financial-dashboard/.codesandbox/Dockerfile create mode 100644 samples/charts/dashboard-tile/financial-dashboard/.codesandbox/tasks.json create mode 100644 samples/charts/dashboard-tile/financial-dashboard/.stackblitzrc create mode 100644 samples/charts/dashboard-tile/financial-dashboard/angular.json create mode 100644 samples/charts/dashboard-tile/financial-dashboard/package.json create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/MultipleStocks.ts create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/app.component.html create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/app.component.scss create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/app.component.ts create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/app.module.ts create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/environments/environment.prod.ts create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/environments/environment.ts create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/index.html create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/main.ts create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/polyfills.ts create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/styles.scss create mode 100644 samples/charts/dashboard-tile/financial-dashboard/src/typings.d.ts create mode 100644 samples/charts/dashboard-tile/financial-dashboard/tsconfig.app.json create mode 100644 samples/charts/dashboard-tile/financial-dashboard/tsconfig.json create mode 100644 samples/charts/dashboard-tile/financial-dashboard/tslint.json diff --git a/samples/charts/dashboard-tile/financial-dashboard/.codesandbox/Dockerfile b/samples/charts/dashboard-tile/financial-dashboard/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/dashboard-tile/financial-dashboard/.codesandbox/tasks.json b/samples/charts/dashboard-tile/financial-dashboard/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/.codesandbox/tasks.json @@ -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 + } + } +} \ No newline at end of file diff --git a/samples/charts/dashboard-tile/financial-dashboard/.stackblitzrc b/samples/charts/dashboard-tile/financial-dashboard/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/dashboard-tile/financial-dashboard/angular.json b/samples/charts/dashboard-tile/financial-dashboard/angular.json new file mode 100644 index 000000000..ff6803cf7 --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/angular.json @@ -0,0 +1,120 @@ +{ + "$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/dashboard-tile/financial-dashboard/package.json b/samples/charts/dashboard-tile/financial-dashboard/package.json new file mode 100644 index 000000000..1f5231456 --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/package.json @@ -0,0 +1,49 @@ +{ + "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": "18.2.1", + "@angular/common": "18.2.1", + "@angular/compiler": "18.2.1", + "@angular/core": "18.2.1", + "@angular/forms": "18.2.1", + "@angular/platform-browser": "18.2.1", + "@angular/platform-browser-dynamic": "18.2.1", + "@types/hammerjs": "2.0.40", + "classlist.js": "1.1.20150312", + "hammerjs": "2.0.8", + "igniteui-angular-charts": "18.2.0-beta.1", + "igniteui-angular-core": "18.2.0-beta.1", + "igniteui-angular-dashboards": "18.2.0-beta.1", + "igniteui-angular-gauges": "18.2.0-beta.1", + "igniteui-angular-grids": "18.2.0-beta.1", + "igniteui-angular-inputs": "18.2.0-beta.1", + "igniteui-angular-layouts": "18.2.0-beta.1", + "igniteui-angular-maps": "18.2.0-beta.1", + "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.14.4" + }, + "devDependencies": { + "@angular/cli": "18.2.1", + "@angular/compiler-cli": "18.2.1", + "@angular/language-service": "18.2.1", + "@angular-devkit/build-angular": "18.2.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", + "tslint": "~6.1.3", + "ts-node": "10.9.1", + "typescript": "5.5.4" + } +} diff --git a/samples/charts/dashboard-tile/financial-dashboard/src/MultipleStocks.ts b/samples/charts/dashboard-tile/financial-dashboard/src/MultipleStocks.ts new file mode 100644 index 000000000..3688676b4 --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/MultipleStocks.ts @@ -0,0 +1,107 @@ +//begin async data +export class MultipleStocks extends Array> { + public static async fetch(): Promise { + const dataSources: any[] = [ + //await this.getAmazonStock(), + await this.getGoogleStock(), + await this.getAmazonStock(), + //await this.getTeslaStock() + ]; + return new Promise((resolve, reject) => { + resolve(dataSources); + }); + } + + /** gets Amazon stock OHLC prices from a .JSON file */ + public static async getAmazonStock(): Promise { + let url = "https://static.infragistics.com/xplatform/data/stocks/stockAmazon.json"; + let response = await fetch(url); + let jsonData = await response.json(); + let stockData = this.convertData(jsonData); + // setting data intent for Series Title, e.g. FinancialChart usage + (stockData as any).__dataIntents = { + close: ["SeriesTitle/Amazon"] + }; + // console.log("fetchAmazonStock: ", stockData.length); + + return new Promise((resolve, reject) => { + resolve(stockData); + }); + } + + /** gets Tesla stock OHLC prices from a .JSON file */ + public static async getTeslaStock(): Promise { + let url = "https://static.infragistics.com/xplatform/data/stocks/stockTesla.json"; + let response = await fetch(url); + let jsonData = await response.json(); + let stockData = this.convertData(jsonData); + // setting data intent for Series Title, e.g. FinancialChart usage + (stockData as any).__dataIntents = { + close: ["SeriesTitle/Tesla"] + }; + return new Promise((resolve, reject) => { + resolve(stockData); + }); + } + + /** gets Microsoft stock OHLC prices from a .JSON file */ + public static async getMicrosoftStock(): Promise { + let url = "https://static.infragistics.com/xplatform/data/stocks/stockMicrosoft.json"; + let response = await fetch(url); + let jsonData = await response.json(); + let stockData = this.convertData(jsonData); + // setting data intent for Series Title, e.g. FinancialChart usage + (stockData as any).__dataIntents = { + close: ["SeriesTitle/Microsoft"] + }; + return new Promise((resolve, reject) => { + resolve(stockData); + }); + } + + /** gets Google stock OHLC prices from a .JSON file */ + public static async getGoogleStock(): Promise { + let url = "https://static.infragistics.com/xplatform/data/stocks/stockGoogle.json"; + let response = await fetch(url); + let jsonData = await response.json(); + let stockData = this.convertData(jsonData); + // setting data intent for Series Title, e.g. FinancialChart usage + (stockData as any).__dataIntents = { + close: ["SeriesTitle/Google"] + }; + return new Promise((resolve, reject) => { + resolve(stockData); + }); + } + + public static convertData(jsonData: any[]): StockItem[] { + let stockItems: StockItem[] = []; + + for (let json of jsonData) { + let parts = json.date.split("-"); // "2020-01-01" + let item = new StockItem(); + item.date = new Date(parts[0], parts[1], parts[2]); + item.open = json.open; + item.high = json.high; + item.low = json.low; + item.close = json.close; + item.volume = json.volume; + stockItems.push(item); + + } + + return stockItems; + } + } + + export class StockItem { + public open?: number; + public close?: number; + public high?: number; + public low?: number; + public volume?: number; + + public date?: Date; + + } +//end async data \ No newline at end of file diff --git a/samples/charts/dashboard-tile/financial-dashboard/src/app.component.html b/samples/charts/dashboard-tile/financial-dashboard/src/app.component.html new file mode 100644 index 000000000..8c97972aa --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/app.component.html @@ -0,0 +1,9 @@ +
+
+ + +
+
diff --git a/samples/charts/dashboard-tile/financial-dashboard/src/app.component.scss b/samples/charts/dashboard-tile/financial-dashboard/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/app.component.scss @@ -0,0 +1,3 @@ +/* styles are loaded the Shared CSS file located at: +https://static.infragistics.com/xplatform/css/samples/ +*/ diff --git a/samples/charts/dashboard-tile/financial-dashboard/src/app.component.ts b/samples/charts/dashboard-tile/financial-dashboard/src/app.component.ts new file mode 100644 index 000000000..bde5f68a3 --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/app.component.ts @@ -0,0 +1,38 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { MultipleStocks } from './MultipleStocks'; +import { IgxDashboardTileComponent } from 'igniteui-angular-dashboards'; + +@Component({ + standalone: false, + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("dashboard", { static: true } ) + private dashboard: IgxDashboardTileComponent + private _multipleStocks: MultipleStocks = null; + private _isFetching: boolean = false; + public get multipleStocks(): MultipleStocks { + if (this._multipleStocks == null && !this._isFetching) + { + this._isFetching = true; + ( async () => { this._multipleStocks = await (await MultipleStocks.fetch()); this._detector.markForCheck(); })(); + } + return this._multipleStocks; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/samples/charts/dashboard-tile/financial-dashboard/src/app.module.ts b/samples/charts/dashboard-tile/financial-dashboard/src/app.module.ts new file mode 100644 index 000000000..fc20a0109 --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/app.module.ts @@ -0,0 +1,30 @@ +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 { IgxDashboardTileModule, IgxDataChartDashboardTileModule, IgxGeographicMapDashboardTileModule, IgxLinearGaugeDashboardTileModule, IgxPieChartDashboardTileModule, IgxRadialGaugeDashboardTileModule } from 'igniteui-angular-dashboards'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxDashboardTileModule, + IgxDataChartDashboardTileModule, + IgxGeographicMapDashboardTileModule, + IgxLinearGaugeDashboardTileModule, + IgxPieChartDashboardTileModule, + IgxRadialGaugeDashboardTileModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/dashboard-tile/financial-dashboard/src/environments/environment.prod.ts b/samples/charts/dashboard-tile/financial-dashboard/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/dashboard-tile/financial-dashboard/src/environments/environment.ts b/samples/charts/dashboard-tile/financial-dashboard/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/environments/environment.ts @@ -0,0 +1,16 @@ +// 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/dashboard-tile/financial-dashboard/src/index.html b/samples/charts/dashboard-tile/financial-dashboard/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/dashboard-tile/financial-dashboard/src/main.ts b/samples/charts/dashboard-tile/financial-dashboard/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/main.ts @@ -0,0 +1,15 @@ +// 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/dashboard-tile/financial-dashboard/src/polyfills.ts b/samples/charts/dashboard-tile/financial-dashboard/src/polyfills.ts new file mode 100644 index 000000000..bea4237c0 --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/polyfills.ts @@ -0,0 +1,61 @@ +/** + * 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 +*/ + +/** 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. */ + +/* Evergreen browsers require these. */ +// used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. + +/* + * 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/dashboard-tile/financial-dashboard/src/styles.scss b/samples/charts/dashboard-tile/financial-dashboard/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/styles.scss @@ -0,0 +1,9 @@ +/* autoprefixer grid: on */ +html, +body { + height: 100%; + width: 100%; + overflow: hidden; + margin: 0; + box-sizing: border-box; +} diff --git a/samples/charts/dashboard-tile/financial-dashboard/src/typings.d.ts b/samples/charts/dashboard-tile/financial-dashboard/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/dashboard-tile/financial-dashboard/tsconfig.app.json b/samples/charts/dashboard-tile/financial-dashboard/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/tsconfig.app.json @@ -0,0 +1,10 @@ +/* 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/dashboard-tile/financial-dashboard/tsconfig.json b/samples/charts/dashboard-tile/financial-dashboard/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/tsconfig.json @@ -0,0 +1,27 @@ +{ + "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 diff --git a/samples/charts/dashboard-tile/financial-dashboard/tslint.json b/samples/charts/dashboard-tile/financial-dashboard/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/dashboard-tile/financial-dashboard/tslint.json @@ -0,0 +1,31 @@ +{ + "extends": "tslint:latest", + "rules": { + "deprecation": { + "severity": "warning" + }, + "arrow-parens": false, + "indent": [true, "spaces"], + "interface-name": [true, "always-prefix"], + "max-classes-per-file": false, + "no-bitwise": false, + "no-console": false, + "no-empty": false, + "no-duplicate-imports": false, + "no-implicit-dependencies": false, + "no-object-literal-type-assertion": false, + "no-submodule-imports": [false], + "no-string-literal": false, + "no-trailing-whitespace": false, + "no-var-keyword": false, + "object-literal-sort-keys": false, + "only-arrow-functions": false, + "prefer-conditional-expression": false, + "prefer-const": false, + "prefer-for-of": false, + "prefer-object-spread": false, + "space-within-parens": false, + "trailing-comma": [true, {"multiline": "never", "singleline": "never"}], + "variable-name": [true, "allow-leading-underscore"] + } +}