diff --git a/samples/charts/data-chart/series-animations/.prettierrc b/samples/charts/data-chart/series-animations/.prettierrc deleted file mode 100644 index 15a7c7c6cf..0000000000 --- a/samples/charts/data-chart/series-animations/.prettierrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "printWidth": 250, - "tabWidth": 4, - "useTabs": false, - "semi": true, - "singleQuote": false, - "trailingComma": "none", - "bracketSpacing": true, - "jsxBracketSameLine": false, - "fluid": false -} \ 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 1ec3d6798e..0000000000 --- a/samples/charts/data-chart/series-animations/ReadMe.md +++ /dev/null @@ -1,56 +0,0 @@ - - - -This folder contains implementation of Web Components application with example of Series Animations feature using [Data Chart](https://infragistics.com/webcomponentssite/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 - -To set up this project locally, execute these commands: - -``` -git clone https://github.com/IgniteUI/igniteui-wc-examples.git -git checkout master -cd ./igniteui-wc-examples -cd ./samples/charts/data-chart/series-animations -``` - -open above folder in VS Code or type: -``` -code . -``` - -In terminal window, run: - -``` -npm install -npm run start -``` - -Then open http://localhost:4200/ in your browser - - -## Learn More - -To learn more about **Ignite UI for Web Components**, check out the [Web Components documentation](https://infragistics.com/webcomponentssite/components/general-getting-started.html). diff --git a/samples/charts/data-chart/series-animations/index.html b/samples/charts/data-chart/series-animations/index.html deleted file mode 100644 index 287161967f..0000000000 --- a/samples/charts/data-chart/series-animations/index.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - DataChartSeriesAnimations - - - - - - - - - - - -
- -
- - - -
- -
- - <% if (false) { %><% } %> - - - \ No newline at end of file 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 a722728aed..0000000000 --- a/samples/charts/data-chart/series-animations/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "wc-data-chart-series-animations", - "version": "1.0.0", - "description": "This project provides example of Data Chart Series Animations using IgniteUI for Web Components", - "main": "src/index.ts", - "scripts": { - "build": "npm run build:prod", - "build:dev": "webpack --mode development --config ./webpack.config.js --progress --color --display-error-details", - "build:prod": "webpack --env.NODE_ENV=production --mode production --config ./webpack.config.js --progress --color --display-error-details --bail", - "serve:dev": "node --max-old-space-size=8192 node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode development --config ./webpack.config.js --hot --progress --open", - "serve:prod": "webpack-dev-server --env.NODE_ENV=production --mode production --config ./webpack.config.js --port 3000 --host 0.0.0.0 --hot --progress --open --content-base dist/", - "start": "npm run serve:dev", - "build:legacy": "npm run build:prod:legacy", - "build:dev:legacy": "webpack --env.legacy=true --mode development --config ./webpack.config.js --progress --color --display-error-details", - "build:prod:legacy": "webpack --env.NODE_ENV=production --env.legacy=true --mode production --config ./webpack.config.js --progress --color --display-error-details --bail", - "serve:dev:legacy": "node --max-old-space-size=8192 node_modules/webpack-dev-server/bin/webpack-dev-server.js --env.legacy=true --mode development --config ./webpack.config.js --hot --progress --open", - "serve:prod:legacy": "webpack-dev-server --env.NODE_ENV=production --env.legacy=true --mode production --config ./webpack.config.js --port 3000 --host 0.0.0.0 --hot --progress --open --content-base dist/", - "start:legacy": "npm run serve:dev:legacy" - }, - "author": "Infragistics", - "dependencies": { - "@webcomponents/custom-elements": "^1.4.1", - "@webcomponents/template": "^1.4.2", - "babel-runtime": "^6.26.0", - "core-js": "^3.6.5", - "igniteui-webcomponents-charts": "6.0.1-beta.1", - "igniteui-webcomponents-core": "6.0.1-beta.1", - "lit-html": "^3.2.0", - "tslib": "^2.0.0" - }, - "devDependencies": { - "@babel/cli": "^7.8.3", - "@babel/core": "^7.8.3", - "@babel/plugin-transform-class-properties": "^7.25.9", - "@babel/plugin-transform-class-static-block": "^7.26.0", - "@babel/plugin-transform-runtime": "^7.10.0", - "@babel/preset-env": "^7.8.3", - "@babel/preset-typescript": "^7.8.3", - "@types/source-map": "^0.5.7", - "babel-loader": "^8.1.0", - "babel-plugin-transform-custom-element-classes": "^0.1.0", - "css-loader": "^1.0.0", - "csv-loader": "^3.0.2", - "file-loader": "^4.2.0", - "fork-ts-checker-webpack-plugin": "^4.1.5", - "html-webpack-plugin": "^4.3.0", - "parcel-bundler": "^1.6.1", - "source-map": "^0.7.3", - "style-loader": "^0.22.1", - "tsconfig-paths-webpack-plugin": "^4.0.0", - "typescript": "^4.4.4", - "webpack": "^5.96.1", - "webpack-cli": "^4.10.0", - "webpack-dev-server": "^4.11.1", - "worker-loader": "^3.0.8", - "xml-loader": "^1.2.1" - }, - "license": "", - "homepage": "." -} diff --git a/samples/charts/data-chart/series-animations/sandbox.config.json b/samples/charts/data-chart/series-animations/sandbox.config.json deleted file mode 100644 index 5c5b54fe21..0000000000 --- a/samples/charts/data-chart/series-animations/sandbox.config.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser", - "template": "parcel" -} - \ No newline at end of file diff --git a/samples/charts/data-chart/series-animations/src/DataChartSharedData.ts b/samples/charts/data-chart/series-animations/src/DataChartSharedData.ts deleted file mode 100644 index b835877b6a..0000000000 --- a/samples/charts/data-chart/series-animations/src/DataChartSharedData.ts +++ /dev/null @@ -1,81 +0,0 @@ - - -export class DataChartSharedData { - - public static getEnergyProduction(): any[]{ - const data: any[] = [ - { Country: "Canada", Coal: 400000000, Oil: 100000000, Gas: 175000000, Nuclear: 225000000, Hydro: 350000000 }, - { Country: "China", Coal: 925000000, Oil: 200000000, Gas: 350000000, Nuclear: 400000000, Hydro: 625000000 }, - { Country: "Russia", Coal: 550000000, Oil: 200000000, Gas: 250000000, Nuclear: 475000000, Hydro: 425000000 }, - { Country: "Australia", Coal: 450000000, Oil: 100000000, Gas: 150000000, Nuclear: 175000000, Hydro: 350000000 }, - { Country: "United States", Coal: 800000000, Oil: 250000000, Gas: 475000000, Nuclear: 575000000, Hydro: 750000000 }, - { Country: "France", Coal: 375000000, Oil: 150000000, Gas: 350000000, Nuclear: 275000000, Hydro: 325000000 } - ]; - 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/index.css b/samples/charts/data-chart/series-animations/src/index.css deleted file mode 100644 index 0fe9368715..0000000000 --- a/samples/charts/data-chart/series-animations/src/index.css +++ /dev/null @@ -1,2 +0,0 @@ -/* shared styles are loaded from: */ -/* https://static.infragistics.com/xplatform/css/samples */ \ No newline at end of file diff --git a/samples/charts/data-chart/series-animations/src/index.ts b/samples/charts/data-chart/series-animations/src/index.ts deleted file mode 100644 index 4c1eb8e5ed..0000000000 --- a/samples/charts/data-chart/series-animations/src/index.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { IgcDataChartCoreModule } from 'igniteui-webcomponents-charts'; -import { IgcDataChartCategoryCoreModule } from 'igniteui-webcomponents-charts'; -import { IgcDataChartCategoryModule } from 'igniteui-webcomponents-charts'; -import { IgcDataChartInteractivityModule } from 'igniteui-webcomponents-charts'; -import { IgcColumnSeriesModule } from 'igniteui-webcomponents-charts'; -import { IgcLegendModule } from 'igniteui-webcomponents-charts'; -import { IgcDataChartComponent } from 'igniteui-webcomponents-charts'; -import { IgcLegendComponent } from 'igniteui-webcomponents-charts'; -import { ModuleManager } from 'igniteui-webcomponents-core'; -import { DataChartSharedData } from './DataChartSharedData'; - -ModuleManager.register( - IgcDataChartCoreModule, - IgcDataChartCategoryCoreModule, - IgcDataChartCategoryModule, - IgcDataChartInteractivityModule, - IgcColumnSeriesModule -); - -export class DataChartSeriesAnimations { - - private chart: IgcDataChartComponent; - private legend: IgcLegendComponent; - - constructor() { - - this.chart = document.getElementById('chart') as IgcDataChartComponent; - // this.chart.dataSource = this.getData(); - - this.legend = document.getElementById('legend') as IgcLegendComponent; - this.chart.legend = this.legend; - } - - getData(): any[] { - return [{ - label: 'Item1', - close: 1, - x: 0, - y: 0 - }, { - label: 'Item2', - close: 2, - x: 10, - y: 10 - }, { - label: 'Item3', - close: 3, - x: 20, - y: 20 - }, { - label: 'Item4', - close: 4, - x: 40, - y: 40 - }, { - label: 'Item5', - close: 5, - x: 20, - y: 20 - }] - } -} - -new DataChartSeriesAnimations(); 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 de23257dd8..0000000000 --- a/samples/charts/data-chart/series-animations/tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "noImplicitReturns": true, - "esModuleInterop": true, - "noImplicitAny": true, - "declarationDir": "dist/types", - "moduleResolution": "node", - "declaration": true, - "target": "es2015", - "module": "es2015", - "strict": true - }, - "include": [ - "src/**/*" - ], - "exclude": [ - "node_modules", - "dist" - ] -} \ No newline at end of file diff --git a/samples/charts/data-chart/series-animations/webpack.config.js b/samples/charts/data-chart/series-animations/webpack.config.js deleted file mode 100644 index 3813144cf8..0000000000 --- a/samples/charts/data-chart/series-animations/webpack.config.js +++ /dev/null @@ -1,107 +0,0 @@ -const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); -const HtmlWebpackPlugin = require('html-webpack-plugin'); -const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); -const path = require('path'); -const webpack = require('webpack'); - -module.exports = env => { - const nodeEnv = process.env.NODE_ENV || 'development'; - const isProd = nodeEnv === 'production'; - const isLegacy = !!process.env.legacy && !(process.env.legacy == "false"); - console.log(">> webpack nodeEnv=" + nodeEnv); - console.log(">> webpack isProd=" + isProd); - console.log(">> webpack isLegacy=" + isLegacy); - const presets = [ - ["@babel/preset-env", { - "useBuiltIns": "usage", - "corejs": 3, - "targets": { - "browsers": isLegacy ? ["defaults"] : [ - "last 2 Chrome versions", - "last 2 Safari versions", - "last 2 iOS versions", - "last 2 Firefox versions", - "last 2 Edge versions"] - } - }], - "@babel/preset-typescript" - ]; - - return { - entry: isLegacy ? [ - path.resolve(__dirname, 'node_modules/@webcomponents/custom-elements'), - path.resolve(__dirname, 'node_modules/@webcomponents/template'), - path.resolve(__dirname, 'src') - ] : path.resolve(__dirname, 'src'), - devtool: isProd ? false : 'source-map', - output: { - filename: isProd ? '[fullhash].bundle.js' : '[fullhash].bundle.js', - globalObject: 'this', - path: path.resolve(__dirname, 'dist'), - }, - - resolve: { - mainFields: ['esm2015', 'module', 'main'], - extensions: ['.ts', '.js', '.json'], - plugins: [new TsconfigPathsPlugin({ - configFile: './tsconfig.json', - extensions: ['.ts', '.js'], - mainFields: ['esm2015', 'module', 'main'] - })] - }, - - module: { - rules: [ - { test: /\.(png|svg|jpg|gif)$/, use: ['file-loader'] }, - { test: /\.(csv|tsv)$/, use: ['csv-loader'] }, - { test: /\.xml$/, use: ['xml-loader'] }, - { test: /\.css$/, sideEffects: true, use: ['style-loader', 'css-loader'] }, - { - test: /worker\.(ts|js)$/, - use: [ - { loader: 'worker-loader' }, - { - loader: 'babel-loader', options: { - "compact": isProd ? true : false, - "presets": presets, - "plugins": [ - "@babel/plugin-transform-class-static-block", - "@babel/plugin-transform-class-properties", - "@babel/plugin-transform-runtime" - ] - } - } - ] - }, - { - test: /\.(ts|js)$/, loader: 'babel-loader', - options: { - "compact": isProd ? true : false, - "presets": presets, - "plugins": [ - "@babel/plugin-transform-class-static-block", - "@babel/plugin-transform-class-properties", - "@babel/plugin-transform-runtime" - ] - }, - exclude: - function (modulePath) { - return /node_modules/.test(modulePath) && - !/igniteui-webcomponents/.test(modulePath) && - !/lit-html/.test(modulePath); - } - }], - }, - - plugins: [ - new webpack.DefinePlugin({ - 'process.env.NODE_ENV': JSON.stringify(nodeEnv) - }), - new HtmlWebpackPlugin({ - title: 'for-cs', - template: 'index.html' - }), - new ForkTsCheckerWebpackPlugin() - ] - }; -}; diff --git a/samples/charts/data-chart/series-error-bars/.prettierrc b/samples/charts/data-chart/series-error-bars/.prettierrc deleted file mode 100644 index 15a7c7c6cf..0000000000 --- a/samples/charts/data-chart/series-error-bars/.prettierrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "printWidth": 250, - "tabWidth": 4, - "useTabs": false, - "semi": true, - "singleQuote": false, - "trailingComma": "none", - "bracketSpacing": true, - "jsxBracketSameLine": false, - "fluid": false -} \ No newline at end of file diff --git a/samples/charts/data-chart/series-error-bars/ReadMe.md b/samples/charts/data-chart/series-error-bars/ReadMe.md deleted file mode 100644 index a7b0ac4d6e..0000000000 --- a/samples/charts/data-chart/series-error-bars/ReadMe.md +++ /dev/null @@ -1,56 +0,0 @@ - - - -This folder contains implementation of Web Components application with example of Series Error Bars feature using [Data Chart](https://infragistics.com/webcomponentssite/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 - -To set up this project locally, execute these commands: - -``` -git clone https://github.com/IgniteUI/igniteui-wc-examples.git -git checkout master -cd ./igniteui-wc-examples -cd ./samples/charts/data-chart/series-error-bars -``` - -open above folder in VS Code or type: -``` -code . -``` - -In terminal window, run: - -``` -npm install -npm run start -``` - -Then open http://localhost:4200/ in your browser - - -## Learn More - -To learn more about **Ignite UI for Web Components**, check out the [Web Components documentation](https://infragistics.com/webcomponentssite/components/general-getting-started.html). diff --git a/samples/charts/data-chart/series-error-bars/index.html b/samples/charts/data-chart/series-error-bars/index.html deleted file mode 100644 index 6bbd90502e..0000000000 --- a/samples/charts/data-chart/series-error-bars/index.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - DataChartSeriesErrorBars - - - - - - - - - - - -
- -
- - - -
- -
- - <% if (false) { %><% } %> - - - \ No newline at end of file diff --git a/samples/charts/data-chart/series-error-bars/package.json b/samples/charts/data-chart/series-error-bars/package.json deleted file mode 100644 index 06a55ac607..0000000000 --- a/samples/charts/data-chart/series-error-bars/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "wc-data-chart-series-error-bars", - "version": "1.0.0", - "description": "This project provides example of Data Chart Series Error Bars using IgniteUI for Web Components", - "main": "src/index.ts", - "scripts": { - "build": "npm run build:prod", - "build:dev": "webpack --mode development --config ./webpack.config.js --progress --color --display-error-details", - "build:prod": "webpack --env.NODE_ENV=production --mode production --config ./webpack.config.js --progress --color --display-error-details --bail", - "serve:dev": "node --max-old-space-size=8192 node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode development --config ./webpack.config.js --hot --progress --open", - "serve:prod": "webpack-dev-server --env.NODE_ENV=production --mode production --config ./webpack.config.js --port 3000 --host 0.0.0.0 --hot --progress --open --content-base dist/", - "start": "npm run serve:dev", - "build:legacy": "npm run build:prod:legacy", - "build:dev:legacy": "webpack --env.legacy=true --mode development --config ./webpack.config.js --progress --color --display-error-details", - "build:prod:legacy": "webpack --env.NODE_ENV=production --env.legacy=true --mode production --config ./webpack.config.js --progress --color --display-error-details --bail", - "serve:dev:legacy": "node --max-old-space-size=8192 node_modules/webpack-dev-server/bin/webpack-dev-server.js --env.legacy=true --mode development --config ./webpack.config.js --hot --progress --open", - "serve:prod:legacy": "webpack-dev-server --env.NODE_ENV=production --env.legacy=true --mode production --config ./webpack.config.js --port 3000 --host 0.0.0.0 --hot --progress --open --content-base dist/", - "start:legacy": "npm run serve:dev:legacy" - }, - "author": "Infragistics", - "dependencies": { - "@webcomponents/custom-elements": "^1.4.1", - "@webcomponents/template": "^1.4.2", - "babel-runtime": "^6.26.0", - "core-js": "^3.6.5", - "igniteui-webcomponents-charts": "6.0.1-beta.1", - "igniteui-webcomponents-core": "6.0.1-beta.1", - "lit-html": "^3.2.0", - "tslib": "^2.0.0" - }, - "devDependencies": { - "@babel/cli": "^7.8.3", - "@babel/core": "^7.8.3", - "@babel/plugin-transform-class-properties": "^7.25.9", - "@babel/plugin-transform-class-static-block": "^7.26.0", - "@babel/plugin-transform-runtime": "^7.10.0", - "@babel/preset-env": "^7.8.3", - "@babel/preset-typescript": "^7.8.3", - "@types/source-map": "^0.5.7", - "babel-loader": "^8.1.0", - "babel-plugin-transform-custom-element-classes": "^0.1.0", - "css-loader": "^1.0.0", - "csv-loader": "^3.0.2", - "file-loader": "^4.2.0", - "fork-ts-checker-webpack-plugin": "^4.1.5", - "html-webpack-plugin": "^4.3.0", - "parcel-bundler": "^1.6.1", - "source-map": "^0.7.3", - "style-loader": "^0.22.1", - "tsconfig-paths-webpack-plugin": "^4.0.0", - "typescript": "^4.4.4", - "webpack": "^5.96.1", - "webpack-cli": "^4.10.0", - "webpack-dev-server": "^4.11.1", - "worker-loader": "^3.0.8", - "xml-loader": "^1.2.1" - }, - "license": "", - "homepage": "." -} diff --git a/samples/charts/data-chart/series-error-bars/sandbox.config.json b/samples/charts/data-chart/series-error-bars/sandbox.config.json deleted file mode 100644 index 5c5b54fe21..0000000000 --- a/samples/charts/data-chart/series-error-bars/sandbox.config.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser", - "template": "parcel" -} - \ No newline at end of file diff --git a/samples/charts/data-chart/series-error-bars/src/index.css b/samples/charts/data-chart/series-error-bars/src/index.css deleted file mode 100644 index 0fe9368715..0000000000 --- a/samples/charts/data-chart/series-error-bars/src/index.css +++ /dev/null @@ -1,2 +0,0 @@ -/* shared styles are loaded from: */ -/* https://static.infragistics.com/xplatform/css/samples */ \ No newline at end of file diff --git a/samples/charts/data-chart/series-error-bars/src/index.ts b/samples/charts/data-chart/series-error-bars/src/index.ts deleted file mode 100644 index a8185ccbe0..0000000000 --- a/samples/charts/data-chart/series-error-bars/src/index.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { IgcDataChartCoreModule } from 'igniteui-webcomponents-charts'; -import { IgcDataChartComponent } from 'igniteui-webcomponents-charts'; -import { ModuleManager } from 'igniteui-webcomponents-core'; - -ModuleManager.register(IgcDataChartCoreModule); - -export class DataChartSeriesErrorBars { - - private chart: IgcDataChartComponent; - - constructor() { - - this.chart = document.getElementById('chart') as IgcDataChartComponent; - // this.chart.dataSource = this.getData(); - } - - getData(): any[] { - return [{ - label: 'Item1', - close: 1, - x: 0, - y: 0 - }, { - label: 'Item2', - close: 2, - x: 10, - y: 10 - }, { - label: 'Item3', - close: 3, - x: 20, - y: 20 - }, { - label: 'Item4', - close: 4, - x: 40, - y: 40 - }, { - label: 'Item5', - close: 5, - x: 20, - y: 20 - }] - } -} - -new DataChartSeriesErrorBars(); diff --git a/samples/charts/data-chart/series-error-bars/tsconfig.json b/samples/charts/data-chart/series-error-bars/tsconfig.json deleted file mode 100644 index de23257dd8..0000000000 --- a/samples/charts/data-chart/series-error-bars/tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "noImplicitReturns": true, - "esModuleInterop": true, - "noImplicitAny": true, - "declarationDir": "dist/types", - "moduleResolution": "node", - "declaration": true, - "target": "es2015", - "module": "es2015", - "strict": true - }, - "include": [ - "src/**/*" - ], - "exclude": [ - "node_modules", - "dist" - ] -} \ No newline at end of file diff --git a/samples/charts/data-chart/series-error-bars/webpack.config.js b/samples/charts/data-chart/series-error-bars/webpack.config.js deleted file mode 100644 index 3813144cf8..0000000000 --- a/samples/charts/data-chart/series-error-bars/webpack.config.js +++ /dev/null @@ -1,107 +0,0 @@ -const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); -const HtmlWebpackPlugin = require('html-webpack-plugin'); -const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); -const path = require('path'); -const webpack = require('webpack'); - -module.exports = env => { - const nodeEnv = process.env.NODE_ENV || 'development'; - const isProd = nodeEnv === 'production'; - const isLegacy = !!process.env.legacy && !(process.env.legacy == "false"); - console.log(">> webpack nodeEnv=" + nodeEnv); - console.log(">> webpack isProd=" + isProd); - console.log(">> webpack isLegacy=" + isLegacy); - const presets = [ - ["@babel/preset-env", { - "useBuiltIns": "usage", - "corejs": 3, - "targets": { - "browsers": isLegacy ? ["defaults"] : [ - "last 2 Chrome versions", - "last 2 Safari versions", - "last 2 iOS versions", - "last 2 Firefox versions", - "last 2 Edge versions"] - } - }], - "@babel/preset-typescript" - ]; - - return { - entry: isLegacy ? [ - path.resolve(__dirname, 'node_modules/@webcomponents/custom-elements'), - path.resolve(__dirname, 'node_modules/@webcomponents/template'), - path.resolve(__dirname, 'src') - ] : path.resolve(__dirname, 'src'), - devtool: isProd ? false : 'source-map', - output: { - filename: isProd ? '[fullhash].bundle.js' : '[fullhash].bundle.js', - globalObject: 'this', - path: path.resolve(__dirname, 'dist'), - }, - - resolve: { - mainFields: ['esm2015', 'module', 'main'], - extensions: ['.ts', '.js', '.json'], - plugins: [new TsconfigPathsPlugin({ - configFile: './tsconfig.json', - extensions: ['.ts', '.js'], - mainFields: ['esm2015', 'module', 'main'] - })] - }, - - module: { - rules: [ - { test: /\.(png|svg|jpg|gif)$/, use: ['file-loader'] }, - { test: /\.(csv|tsv)$/, use: ['csv-loader'] }, - { test: /\.xml$/, use: ['xml-loader'] }, - { test: /\.css$/, sideEffects: true, use: ['style-loader', 'css-loader'] }, - { - test: /worker\.(ts|js)$/, - use: [ - { loader: 'worker-loader' }, - { - loader: 'babel-loader', options: { - "compact": isProd ? true : false, - "presets": presets, - "plugins": [ - "@babel/plugin-transform-class-static-block", - "@babel/plugin-transform-class-properties", - "@babel/plugin-transform-runtime" - ] - } - } - ] - }, - { - test: /\.(ts|js)$/, loader: 'babel-loader', - options: { - "compact": isProd ? true : false, - "presets": presets, - "plugins": [ - "@babel/plugin-transform-class-static-block", - "@babel/plugin-transform-class-properties", - "@babel/plugin-transform-runtime" - ] - }, - exclude: - function (modulePath) { - return /node_modules/.test(modulePath) && - !/igniteui-webcomponents/.test(modulePath) && - !/lit-html/.test(modulePath); - } - }], - }, - - plugins: [ - new webpack.DefinePlugin({ - 'process.env.NODE_ENV': JSON.stringify(nodeEnv) - }), - new HtmlWebpackPlugin({ - title: 'for-cs', - template: 'index.html' - }), - new ForkTsCheckerWebpackPlugin() - ] - }; -};