diff --git a/.gitignore b/.gitignore index 21a9145d9..d8d1b938a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,13 @@ # /samples-tmp/ # /samples-tmp/**/node_modules/ +/tests/**/build/ +/tests/**/dist/ +/tests/**/node_modules/ +/tests/**/package-lock.json +/tests/**/.angular +/tests/**/.git + # browser auto-generated files: # /porting/** # /browser/** diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 5a4b56a81..50ced6c96 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -39,9 +39,9 @@ jobs: - task: Npm@1 displayName: 'npm install' inputs: - command: 'install' + command: 'custom' workingDir: '$(Build.SourcesDirectory)\browser' - verbose: ${{ parameters.isVerbose }} + customCommand: 'install --legacy-peer-deps' - task: PowerShell@2 displayName: 'Apply very special configuration' diff --git a/browser/gulpfile.js b/browser/gulpfile.js index 6cfca5606..50cbb0191 100644 --- a/browser/gulpfile.js +++ b/browser/gulpfile.js @@ -47,7 +47,9 @@ gulp.task('copySamples', gulp.series(browser.findSamples, browser.copySamples)); gulp.task('generateSampleRouting', browser.generateSampleRouting); gulp.task('updateCodeViewer', gulp.series(browser.findSamples, browser.updateCodeViewer)); +gulp.task('updateCodeSandbox', browser.updateCodeSandbox); gulp.task('listSamples', browser.listSamples); +gulp.task('moveAppFiles', browser.moveAppFiles); gulp.task("overwrite-package-json", (done) => { const packagesPaths = [ diff --git a/browser/package.json b/browser/package.json index 32a909713..c79d11311 100644 --- a/browser/package.json +++ b/browser/package.json @@ -38,18 +38,18 @@ "core-js": "3.21.0", "file-saver": "2.0.5", "hammerjs": "2.0.8", - "igniteui-angular": "17.0.0", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", - "igniteui-angular-spreadsheet-chart-adapter": "17.3.0-beta.0", - "igniteui-theming": "3.3.1", - "igniteui-webcomponents": "4.7.0", + "igniteui-angular": "17.2.3", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet-chart-adapter": "17.3.1-alpha.0", + "igniteui-theming": "6.4.0-beta.2", + "igniteui-webcomponents": "4.9.0", "immediate": "3.2.3", "intl": "1.2.5", "jszip": "3.8.0", diff --git a/browser/scripts/browser.js b/browser/scripts/browser.js index 8ae561da7..94cc4613c 100644 --- a/browser/scripts/browser.js +++ b/browser/scripts/browser.js @@ -725,6 +725,7 @@ function copySamples(cb) { for (let i = appIndexRoutingImportStart+1; i < appIndexRoutingImportEnd; i++) { appIndexLines[i] = ""; // clearing previously auto-generated inserts } + routingDataImports = routingDataImports.sort(); // adding latest auto-generated inserts for JS files appIndexLines[appIndexRoutingImportStart + 1] = routingDataImports.join('\r\n'); appIndexChanged = true; @@ -734,6 +735,7 @@ function copySamples(cb) { for (let i = appIndexRoutingArrayStart+1; i < appIndexRoutingArrayEnd; i++) { appIndexLines[i] = ""; // clearing previously auto-generated inserts } + routingDataArray = routingDataArray.sort(); // adding latest auto-generated inserts for JS files appIndexLines[appIndexRoutingArrayStart + 1] = routingDataArray.join(',\r\n'); appIndexChanged = true; @@ -1071,20 +1073,20 @@ function updateIG(cb) { // { name: "igniteui-angular-charts", version: "14.1.0" }, // NPM let packageUpgrades = [ // these IG packages are often updated: - { name: "igniteui-angular-core" , version: "17.3.0-beta.0" }, - { name: "igniteui-angular-charts" , version: "17.3.0-beta.0" }, - { name: "igniteui-angular-excel" , version: "17.3.0-beta.0" }, - { name: "igniteui-angular-gauges" , version: "17.3.0-beta.0" }, - { name: "igniteui-angular-inputs" , version: "17.3.0-beta.0" }, - { name: "igniteui-angular-layouts" , version: "17.3.0-beta.0" }, - { name: "igniteui-angular-maps" , version: "17.3.0-beta.0" }, - { name: "igniteui-angular-spreadsheet-chart-adapter", version: "17.3.0-beta.0" }, - { name: "igniteui-angular-spreadsheet" , version: "17.3.0-beta.0" }, - { name: "igniteui-angular-datasources" , version: "17.3.0-beta.0" }, + { name: "igniteui-angular-core" , version: "17.3.1-alpha.0" }, + { name: "igniteui-angular-charts" , version: "17.3.1-alpha.0" }, + { name: "igniteui-angular-excel" , version: "17.3.1-alpha.0" }, + { name: "igniteui-angular-gauges" , version: "17.3.1-alpha.0" }, + { name: "igniteui-angular-inputs" , version: "17.3.1-alpha.0" }, + { name: "igniteui-angular-layouts" , version: "17.3.1-alpha.0" }, + { name: "igniteui-angular-maps" , version: "17.3.1-alpha.0" }, + { name: "igniteui-angular-spreadsheet-chart-adapter", version: "17.3.1-alpha.0" }, + { name: "igniteui-angular-spreadsheet" , version: "17.3.1-alpha.0" }, + { name: "igniteui-angular-datasources" , version: "17.3.1-alpha.0" }, // these IG packages are sometimes updated: - { name: "igniteui-webcomponents", version: "4.7.0" }, - { name: "igniteui-theming", version: "3.3.1" }, - { name: "igniteui-angular", version: "17.0.0" }, + { name: "igniteui-webcomponents", version: "4.9.0" }, + { name: "igniteui-theming", version: "6.4.0-beta.2" }, + { name: "igniteui-angular", version: "17.2.3" }, { name: "@angular/animations", version: "17.0.0" }, { name: "@angular/common", version: "17.0.0" }, { name: "@angular/compiler", version: "17.0.0" }, @@ -1298,3 +1300,113 @@ function logVersionIgniteUI(cb) { } exports.logVersionIgniteUI = logVersionIgniteUI; +// move samples files up one level, e.g. /scr/app/*.* to /scr/*.* +exports.moveAppFiles = function moveAppFiles(cb) { + var appFolders = []; + + gulp.src( + "../samples/**/src/app/*.*", + "../samples/**/type-scatter-symbol-series/src/app/*.*", + {allowEmpty: true}) + .pipe(es.map(function(file, fileCallback) { + + var fileContent = file.contents.toString(); + let fileOutput = file.dirname.replace("\\app", "") + "\\" + file.basename; + + if (appFolders.indexOf(file.dirname) < 0) { + appFolders.push(file.dirname); + } + // console.log("" + fileOutput); + + fs.writeFileSync(fileOutput, fileContent); + fileCallback(null, file); + })) + .on("end", function() { + + console.log(appFolders); + console.log("moved " + appFolders.length + " samples from /scr/app/*.* to /scr/*.* "); + del(appFolders, {force: true}); + + for (let i = 0; i < appFolders.length; i++) { + + var mainPath = appFolders[i].replace("\\app", "") + "\\main.ts"; + let mainFile = fs.readFileSync(mainPath).toString(); + mainFile = mainFile.replace("/app/", "/"); + fs.writeFileSync(mainPath, mainFile); + } + cb(); + }); + +} + +exports.updateCodeSandbox = function updateCodeSandbox(cb) { + var appFolders = []; + var copyFiles = [ + "../tests/donut-ava4/.stackblitzrc", + "../tests/donut-ava4/.codesandbox/tasks.json", + "../tests/donut-ava4/.codesandbox/Dockerfile", + "../tests/donut-ava4/tsconfig.app.json", + "../tests/donut-ava4/tsconfig.json", + "../tests/donut-ava4/angular.json", + ]; + var deleteFiles = [ + "sandbox.config.json", + "src\\config", + ]; + + gulp.src( [ + "../samples/**/package.json", + // "../samples/**/display-osm-imagery/package.json", + // "../samples/**/doughnut-chart/overview/package.json", + // "../samples/**/display-heat-imagery/package.json", + ], {allowEmpty: true}) + .pipe(es.map(function(file, fileCallback) { + + var fileContent = file.contents.toString(); + let fileOutput = file.dirname + "\\" + file.basename; + + console.log("updating " + fileOutput); + fileContent = fileContent.replace('"@angular/animations": "17.0.0"','"@angular/animations": "^17.2.1"'); + fileContent = fileContent.replace('"@angular/common": "17.0.0"','"@angular/common": "^17.2.1"'); + fileContent = fileContent.replace('"@angular/compiler": "17.0.0"','"@angular/compiler": "^17.2.1"'); + fileContent = fileContent.replace('"@angular/core": "17.0.0"','"@angular/core": "^17.2.1"'); + fileContent = fileContent.replace('"@angular/forms": "17.0.0"','"@angular/forms": "^17.2.1"'); + fileContent = fileContent.replace('"@angular/platform-browser": "17.0.0"','"@angular/platform-browser": "^17.2.1"'); + fileContent = fileContent.replace('"@angular/platform-browser-dynamic": "17.0.0"','"@angular/platform-browser-dynamic": "^17.2.1"'); + fileContent = fileContent.replace('"rxjs": "6.6.7"','"rxjs": "^7.8.1"'); + fileContent = fileContent.replace('"tslib": "2.3.1"','"tslib": "^2.6.1"'); + fileContent = fileContent.replace('"zone.js": "~0.14.1"','"zone.js": "~0.14.4"'); + fileContent = fileContent.replace('"@angular-devkit/build-angular": "17.0.0"','"@angular-devkit/build-angular": "17.2.0"'); + fileContent = fileContent.replace('"@angular/cli": "17.0.0"','"@angular/cli": "17.2.0"'); + fileContent = fileContent.replace('"@angular/compiler-cli": "17.0.0"','"@angular/compiler-cli": "17.2.1"'); + fileContent = fileContent.replace('"@angular/language-service": "17.0.0"','"@angular/language-service": "17.2.1"'); + fileContent = fileContent.replace('"@types/node": "14.14.28"','"@types/node": "18.17.0"'); + fileContent = fileContent.replace('"jasmine-core": "3.7.1"','"jasmine-core": "5.1.1"'); + fileContent = fileContent.replace('"ts-node": "9.1.1"','"ts-node": "10.9.1"'); + fileContent = fileContent.replace('"typescript": "5.2.2"','"typescript": "5.3.3"'); + fileContent = fileContent.replace('"hammerjs": "2.0.8"','"hammerjs": "^2.0.8"'); + + fs.writeFileSync(fileOutput, fileContent); + + for (let i = 0; i < deleteFiles.length; i++) { + var deletePath = file.dirname + "\\" + deleteFiles[i]; + console.log("delete " + deletePath); + del([deletePath], {force: true}); + } + + for (let i = 0; i < copyFiles.length; i++) { + var outputPath = copyFiles[i].replace('../tests/donut-ava4/', file.dirname + "/"); + // del([deletePath], {force: true}); + console.log("copy " + outputPath); + let outputFile = fs.readFileSync(copyFiles[i]).toString(); + // outputFile = outputFile.replace("/app/", "/"); + makeDirectoryFor(outputPath); + fs.writeFileSync(outputPath, outputFile); + } + fileCallback(null, file); + })) + .on("end", function() { + cb(); + }); + +} \ No newline at end of file diff --git a/browser/src/browser-info.json b/browser/src/browser-info.json index 9b0daa508..e8e2478a9 100644 --- a/browser/src/browser-info.json +++ b/browser/src/browser-info.json @@ -1,14 +1,14 @@ [ -{"ver":"17.0.0","name":"igniteui-angular"}, -{"ver":"17.3.0-beta.0","name":"igniteui-angular-charts"}, -{"ver":"17.3.0-beta.0","name":"igniteui-angular-core"}, -{"ver":"17.3.0-beta.0","name":"igniteui-angular-excel"}, -{"ver":"17.3.0-beta.0","name":"igniteui-angular-gauges"}, -{"ver":"17.3.0-beta.0","name":"igniteui-angular-inputs"}, -{"ver":"17.3.0-beta.0","name":"igniteui-angular-layouts"}, -{"ver":"17.3.0-beta.0","name":"igniteui-angular-maps"}, -{"ver":"17.3.0-beta.0","name":"igniteui-angular-spreadsheet"}, -{"ver":"17.3.0-beta.0","name":"igniteui-angular-spreadsheet-chart-adapter"}, -{"ver":"3.3.1","name":"igniteui-theming"}, -{"ver":"4.7.0","name":"igniteui-webcomponents"} +{"ver":"17.2.3","name":"igniteui-angular"}, +{"ver":"17.3.1-alpha.0","name":"igniteui-angular-charts"}, +{"ver":"17.3.1-alpha.0","name":"igniteui-angular-core"}, +{"ver":"17.3.1-alpha.0","name":"igniteui-angular-excel"}, +{"ver":"17.3.1-alpha.0","name":"igniteui-angular-gauges"}, +{"ver":"17.3.1-alpha.0","name":"igniteui-angular-inputs"}, +{"ver":"17.3.1-alpha.0","name":"igniteui-angular-layouts"}, +{"ver":"17.3.1-alpha.0","name":"igniteui-angular-maps"}, +{"ver":"17.3.1-alpha.0","name":"igniteui-angular-spreadsheet"}, +{"ver":"17.3.1-alpha.0","name":"igniteui-angular-spreadsheet-chart-adapter"}, +{"ver":"6.4.0-beta.2","name":"igniteui-theming"}, +{"ver":"4.9.0","name":"igniteui-webcomponents"} ] \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-all/.codesandbox/Dockerfile b/samples/charts/category-chart/annotations-all/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/annotations-all/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-all/.codesandbox/tasks.json b/samples/charts/category-chart/annotations-all/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/annotations-all/.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/category-chart/annotations-all/.stackblitzrc b/samples/charts/category-chart/annotations-all/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/annotations-all/.stackblitzrc +++ b/samples/charts/category-chart/annotations-all/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-all/angular.json b/samples/charts/category-chart/annotations-all/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/annotations-all/angular.json +++ b/samples/charts/category-chart/annotations-all/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/annotations-all/package.json b/samples/charts/category-chart/annotations-all/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/annotations-all/package.json +++ b/samples/charts/category-chart/annotations-all/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/annotations-all/tsconfig.app.json b/samples/charts/category-chart/annotations-all/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/annotations-all/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/category-chart/annotations-all/tsconfig.json b/samples/charts/category-chart/annotations-all/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/annotations-all/tsconfig.json +++ b/samples/charts/category-chart/annotations-all/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/annotations-callouts/.codesandbox/Dockerfile b/samples/charts/category-chart/annotations-callouts/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/annotations-callouts/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-callouts/.codesandbox/tasks.json b/samples/charts/category-chart/annotations-callouts/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/annotations-callouts/.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/category-chart/annotations-callouts/.stackblitzrc b/samples/charts/category-chart/annotations-callouts/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/annotations-callouts/.stackblitzrc +++ b/samples/charts/category-chart/annotations-callouts/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-callouts/angular.json b/samples/charts/category-chart/annotations-callouts/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/annotations-callouts/angular.json +++ b/samples/charts/category-chart/annotations-callouts/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/annotations-callouts/package.json b/samples/charts/category-chart/annotations-callouts/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/annotations-callouts/package.json +++ b/samples/charts/category-chart/annotations-callouts/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/annotations-callouts/tsconfig.app.json b/samples/charts/category-chart/annotations-callouts/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/annotations-callouts/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/category-chart/annotations-callouts/tsconfig.json b/samples/charts/category-chart/annotations-callouts/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/annotations-callouts/tsconfig.json +++ b/samples/charts/category-chart/annotations-callouts/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/annotations-crosshairs/.codesandbox/Dockerfile b/samples/charts/category-chart/annotations-crosshairs/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/annotations-crosshairs/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-crosshairs/.codesandbox/tasks.json b/samples/charts/category-chart/annotations-crosshairs/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/annotations-crosshairs/.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/category-chart/annotations-crosshairs/.stackblitzrc b/samples/charts/category-chart/annotations-crosshairs/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/annotations-crosshairs/.stackblitzrc +++ b/samples/charts/category-chart/annotations-crosshairs/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-crosshairs/angular.json b/samples/charts/category-chart/annotations-crosshairs/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/annotations-crosshairs/angular.json +++ b/samples/charts/category-chart/annotations-crosshairs/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/annotations-crosshairs/package.json b/samples/charts/category-chart/annotations-crosshairs/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/annotations-crosshairs/package.json +++ b/samples/charts/category-chart/annotations-crosshairs/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/annotations-crosshairs/tsconfig.app.json b/samples/charts/category-chart/annotations-crosshairs/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/annotations-crosshairs/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/category-chart/annotations-crosshairs/tsconfig.json b/samples/charts/category-chart/annotations-crosshairs/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/annotations-crosshairs/tsconfig.json +++ b/samples/charts/category-chart/annotations-crosshairs/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/annotations-custom/.codesandbox/Dockerfile b/samples/charts/category-chart/annotations-custom/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/annotations-custom/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-custom/.codesandbox/tasks.json b/samples/charts/category-chart/annotations-custom/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/annotations-custom/.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/category-chart/annotations-custom/.stackblitzrc b/samples/charts/category-chart/annotations-custom/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/annotations-custom/.stackblitzrc +++ b/samples/charts/category-chart/annotations-custom/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-custom/angular.json b/samples/charts/category-chart/annotations-custom/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/annotations-custom/angular.json +++ b/samples/charts/category-chart/annotations-custom/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/annotations-custom/package.json b/samples/charts/category-chart/annotations-custom/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/annotations-custom/package.json +++ b/samples/charts/category-chart/annotations-custom/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/annotations-custom/sandbox.config.json b/samples/charts/category-chart/annotations-custom/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/annotations-custom/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-custom/tsconfig.app.json b/samples/charts/category-chart/annotations-custom/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/annotations-custom/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/category-chart/annotations-custom/tsconfig.json b/samples/charts/category-chart/annotations-custom/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/annotations-custom/tsconfig.json +++ b/samples/charts/category-chart/annotations-custom/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/annotations-final-value/.codesandbox/Dockerfile b/samples/charts/category-chart/annotations-final-value/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/annotations-final-value/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-final-value/.codesandbox/tasks.json b/samples/charts/category-chart/annotations-final-value/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/annotations-final-value/.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/category-chart/annotations-final-value/.stackblitzrc b/samples/charts/category-chart/annotations-final-value/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/annotations-final-value/.stackblitzrc +++ b/samples/charts/category-chart/annotations-final-value/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-final-value/angular.json b/samples/charts/category-chart/annotations-final-value/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/annotations-final-value/angular.json +++ b/samples/charts/category-chart/annotations-final-value/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/annotations-final-value/package.json b/samples/charts/category-chart/annotations-final-value/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/annotations-final-value/package.json +++ b/samples/charts/category-chart/annotations-final-value/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/annotations-final-value/sandbox.config.json b/samples/charts/category-chart/annotations-final-value/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/annotations-final-value/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-final-value/tsconfig.app.json b/samples/charts/category-chart/annotations-final-value/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/annotations-final-value/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/category-chart/annotations-final-value/tsconfig.json b/samples/charts/category-chart/annotations-final-value/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/annotations-final-value/tsconfig.json +++ b/samples/charts/category-chart/annotations-final-value/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/annotations-highlighting/.codesandbox/Dockerfile b/samples/charts/category-chart/annotations-highlighting/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/annotations-highlighting/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-highlighting/.codesandbox/tasks.json b/samples/charts/category-chart/annotations-highlighting/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/annotations-highlighting/.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/category-chart/annotations-highlighting/.stackblitzrc b/samples/charts/category-chart/annotations-highlighting/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/annotations-highlighting/.stackblitzrc +++ b/samples/charts/category-chart/annotations-highlighting/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-highlighting/angular.json b/samples/charts/category-chart/annotations-highlighting/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/annotations-highlighting/angular.json +++ b/samples/charts/category-chart/annotations-highlighting/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/annotations-highlighting/package.json b/samples/charts/category-chart/annotations-highlighting/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/annotations-highlighting/package.json +++ b/samples/charts/category-chart/annotations-highlighting/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/annotations-highlighting/sandbox.config.json b/samples/charts/category-chart/annotations-highlighting/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/annotations-highlighting/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/annotations-highlighting/src/app.component.html b/samples/charts/category-chart/annotations-highlighting/src/app.component.html index 6dce2af35..34636f649 100644 --- a/samples/charts/category-chart/annotations-highlighting/src/app.component.html +++ b/samples/charts/category-chart/annotations-highlighting/src/app.component.html @@ -35,14 +35,12 @@ computedPlotAreaMarginMode="Series" isHorizontalZoomEnabled="false" isVerticalZoomEnabled="false" - includedProperties="month, temperature" [dataSource]="temperatureAnnotatedData" - isCategoryHighlightingEnabled="true" highlightingMode="FadeOthersSpecific" highlightingBehavior="NearestItemsAndSeries" - crosshairsAnnotationYAxisPrecision="0" yAxisMaximumValue="35" - yAxisLabelLocation="OutsideRight"> + yAxisLabelLocation="OutsideRight" + toolTipType="None"> diff --git a/samples/charts/category-chart/annotations-highlighting/tsconfig.app.json b/samples/charts/category-chart/annotations-highlighting/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/annotations-highlighting/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/category-chart/annotations-highlighting/tsconfig.json b/samples/charts/category-chart/annotations-highlighting/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/annotations-highlighting/tsconfig.json +++ b/samples/charts/category-chart/annotations-highlighting/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/annotations/.codesandbox/Dockerfile b/samples/charts/category-chart/annotations/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/annotations/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/annotations/.codesandbox/tasks.json b/samples/charts/category-chart/annotations/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/annotations/.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/category-chart/annotations/.stackblitzrc b/samples/charts/category-chart/annotations/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/annotations/.stackblitzrc +++ b/samples/charts/category-chart/annotations/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/annotations/angular.json b/samples/charts/category-chart/annotations/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/annotations/angular.json +++ b/samples/charts/category-chart/annotations/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/annotations/package.json b/samples/charts/category-chart/annotations/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/category-chart/annotations/package.json +++ b/samples/charts/category-chart/annotations/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/annotations/src/app/app.component.html b/samples/charts/category-chart/annotations/src/app.component.html similarity index 100% rename from samples/charts/category-chart/annotations/src/app/app.component.html rename to samples/charts/category-chart/annotations/src/app.component.html diff --git a/samples/charts/category-chart/annotations/src/app/app.component.scss b/samples/charts/category-chart/annotations/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/annotations/src/app/app.component.scss rename to samples/charts/category-chart/annotations/src/app.component.scss diff --git a/samples/charts/category-chart/annotations/src/app/app.component.ts b/samples/charts/category-chart/annotations/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/annotations/src/app/app.component.ts rename to samples/charts/category-chart/annotations/src/app.component.ts diff --git a/samples/charts/category-chart/annotations/src/app/app.module.ts b/samples/charts/category-chart/annotations/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/annotations/src/app/app.module.ts rename to samples/charts/category-chart/annotations/src/app.module.ts diff --git a/samples/charts/category-chart/annotations/src/config/tsconfig.base.json b/samples/charts/category-chart/annotations/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/annotations/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/annotations/src/main.ts b/samples/charts/category-chart/annotations/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/annotations/src/main.ts +++ b/samples/charts/category-chart/annotations/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/annotations/tsconfig.app.json b/samples/charts/category-chart/annotations/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/annotations/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/category-chart/annotations/tsconfig.json b/samples/charts/category-chart/annotations/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/annotations/tsconfig.json +++ b/samples/charts/category-chart/annotations/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/area-chart-multiple-sources/.codesandbox/Dockerfile b/samples/charts/category-chart/area-chart-multiple-sources/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/area-chart-multiple-sources/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/area-chart-multiple-sources/.codesandbox/tasks.json b/samples/charts/category-chart/area-chart-multiple-sources/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/area-chart-multiple-sources/.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/category-chart/area-chart-multiple-sources/.stackblitzrc b/samples/charts/category-chart/area-chart-multiple-sources/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/area-chart-multiple-sources/.stackblitzrc +++ b/samples/charts/category-chart/area-chart-multiple-sources/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/area-chart-multiple-sources/angular.json b/samples/charts/category-chart/area-chart-multiple-sources/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/area-chart-multiple-sources/angular.json +++ b/samples/charts/category-chart/area-chart-multiple-sources/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/area-chart-multiple-sources/package.json b/samples/charts/category-chart/area-chart-multiple-sources/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/area-chart-multiple-sources/package.json +++ b/samples/charts/category-chart/area-chart-multiple-sources/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/area-chart-multiple-sources/sandbox.config.json b/samples/charts/category-chart/area-chart-multiple-sources/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/area-chart-multiple-sources/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.app.json b/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.base.json b/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.spec.json b/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.worker.json b/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/area-chart-multiple-sources/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/area-chart-multiple-sources/tsconfig.app.json b/samples/charts/category-chart/area-chart-multiple-sources/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/area-chart-multiple-sources/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/category-chart/area-chart-multiple-sources/tsconfig.json b/samples/charts/category-chart/area-chart-multiple-sources/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/area-chart-multiple-sources/tsconfig.json +++ b/samples/charts/category-chart/area-chart-multiple-sources/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/area-chart-single-source/.codesandbox/Dockerfile b/samples/charts/category-chart/area-chart-single-source/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/area-chart-single-source/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/area-chart-single-source/.codesandbox/tasks.json b/samples/charts/category-chart/area-chart-single-source/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/area-chart-single-source/.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/category-chart/area-chart-single-source/.stackblitzrc b/samples/charts/category-chart/area-chart-single-source/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/area-chart-single-source/.stackblitzrc +++ b/samples/charts/category-chart/area-chart-single-source/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/area-chart-single-source/angular.json b/samples/charts/category-chart/area-chart-single-source/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/area-chart-single-source/angular.json +++ b/samples/charts/category-chart/area-chart-single-source/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/area-chart-single-source/package.json b/samples/charts/category-chart/area-chart-single-source/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/area-chart-single-source/package.json +++ b/samples/charts/category-chart/area-chart-single-source/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/area-chart-single-source/sandbox.config.json b/samples/charts/category-chart/area-chart-single-source/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/area-chart-single-source/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.app.json b/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.base.json b/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.spec.json b/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.worker.json b/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/area-chart-single-source/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/area-chart-single-source/tsconfig.app.json b/samples/charts/category-chart/area-chart-single-source/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/area-chart-single-source/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/category-chart/area-chart-single-source/tsconfig.json b/samples/charts/category-chart/area-chart-single-source/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/area-chart-single-source/tsconfig.json +++ b/samples/charts/category-chart/area-chart-single-source/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/area-chart-styling/.codesandbox/Dockerfile b/samples/charts/category-chart/area-chart-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/area-chart-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/area-chart-styling/.codesandbox/tasks.json b/samples/charts/category-chart/area-chart-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/area-chart-styling/.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/category-chart/area-chart-styling/.stackblitzrc b/samples/charts/category-chart/area-chart-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/area-chart-styling/.stackblitzrc +++ b/samples/charts/category-chart/area-chart-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/area-chart-styling/angular.json b/samples/charts/category-chart/area-chart-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/area-chart-styling/angular.json +++ b/samples/charts/category-chart/area-chart-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/area-chart-styling/package.json b/samples/charts/category-chart/area-chart-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/area-chart-styling/package.json +++ b/samples/charts/category-chart/area-chart-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/area-chart-styling/sandbox.config.json b/samples/charts/category-chart/area-chart-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/area-chart-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/area-chart-styling/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/area-chart-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/area-chart-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.app.json b/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.base.json b/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.spec.json b/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.worker.json b/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/area-chart-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/area-chart-styling/tsconfig.app.json b/samples/charts/category-chart/area-chart-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/area-chart-styling/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/category-chart/area-chart-styling/tsconfig.json b/samples/charts/category-chart/area-chart-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/area-chart-styling/tsconfig.json +++ b/samples/charts/category-chart/area-chart-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/axis-gap/.codesandbox/Dockerfile b/samples/charts/category-chart/axis-gap/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/axis-gap/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/axis-gap/.codesandbox/tasks.json b/samples/charts/category-chart/axis-gap/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/axis-gap/.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/category-chart/axis-gap/.stackblitzrc b/samples/charts/category-chart/axis-gap/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/axis-gap/.stackblitzrc +++ b/samples/charts/category-chart/axis-gap/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-gap/angular.json b/samples/charts/category-chart/axis-gap/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/axis-gap/angular.json +++ b/samples/charts/category-chart/axis-gap/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/axis-gap/package.json b/samples/charts/category-chart/axis-gap/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/axis-gap/package.json +++ b/samples/charts/category-chart/axis-gap/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/axis-gap/sandbox.config.json b/samples/charts/category-chart/axis-gap/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/axis-gap/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-gap/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/axis-gap/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/axis-gap/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/axis-gap/src/config/tsconfig.app.json b/samples/charts/category-chart/axis-gap/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/axis-gap/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/axis-gap/src/config/tsconfig.base.json b/samples/charts/category-chart/axis-gap/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/axis-gap/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/axis-gap/src/config/tsconfig.spec.json b/samples/charts/category-chart/axis-gap/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/axis-gap/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/axis-gap/src/config/tsconfig.worker.json b/samples/charts/category-chart/axis-gap/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/axis-gap/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/axis-gap/tsconfig.app.json b/samples/charts/category-chart/axis-gap/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/axis-gap/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/category-chart/axis-gap/tsconfig.json b/samples/charts/category-chart/axis-gap/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/axis-gap/tsconfig.json +++ b/samples/charts/category-chart/axis-gap/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/axis-gridlines/.codesandbox/Dockerfile b/samples/charts/category-chart/axis-gridlines/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/axis-gridlines/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/axis-gridlines/.codesandbox/tasks.json b/samples/charts/category-chart/axis-gridlines/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/axis-gridlines/.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/category-chart/axis-gridlines/.stackblitzrc b/samples/charts/category-chart/axis-gridlines/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/axis-gridlines/.stackblitzrc +++ b/samples/charts/category-chart/axis-gridlines/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-gridlines/angular.json b/samples/charts/category-chart/axis-gridlines/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/axis-gridlines/angular.json +++ b/samples/charts/category-chart/axis-gridlines/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/axis-gridlines/package.json b/samples/charts/category-chart/axis-gridlines/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/axis-gridlines/package.json +++ b/samples/charts/category-chart/axis-gridlines/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/axis-gridlines/sandbox.config.json b/samples/charts/category-chart/axis-gridlines/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/axis-gridlines/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-gridlines/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/axis-gridlines/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/axis-gridlines/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.app.json b/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.base.json b/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.spec.json b/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.worker.json b/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/axis-gridlines/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/axis-gridlines/tsconfig.app.json b/samples/charts/category-chart/axis-gridlines/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/axis-gridlines/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/category-chart/axis-gridlines/tsconfig.json b/samples/charts/category-chart/axis-gridlines/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/axis-gridlines/tsconfig.json +++ b/samples/charts/category-chart/axis-gridlines/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/axis-inverted/.codesandbox/Dockerfile b/samples/charts/category-chart/axis-inverted/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/axis-inverted/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/axis-inverted/.codesandbox/tasks.json b/samples/charts/category-chart/axis-inverted/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/axis-inverted/.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/category-chart/axis-inverted/.stackblitzrc b/samples/charts/category-chart/axis-inverted/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/axis-inverted/.stackblitzrc +++ b/samples/charts/category-chart/axis-inverted/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-inverted/angular.json b/samples/charts/category-chart/axis-inverted/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/axis-inverted/angular.json +++ b/samples/charts/category-chart/axis-inverted/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/axis-inverted/package.json b/samples/charts/category-chart/axis-inverted/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/axis-inverted/package.json +++ b/samples/charts/category-chart/axis-inverted/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/axis-inverted/sandbox.config.json b/samples/charts/category-chart/axis-inverted/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/axis-inverted/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-inverted/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/axis-inverted/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/axis-inverted/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/axis-inverted/src/config/tsconfig.app.json b/samples/charts/category-chart/axis-inverted/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/axis-inverted/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/axis-inverted/src/config/tsconfig.base.json b/samples/charts/category-chart/axis-inverted/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/axis-inverted/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/axis-inverted/src/config/tsconfig.spec.json b/samples/charts/category-chart/axis-inverted/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/axis-inverted/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/axis-inverted/src/config/tsconfig.worker.json b/samples/charts/category-chart/axis-inverted/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/axis-inverted/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/axis-inverted/tsconfig.app.json b/samples/charts/category-chart/axis-inverted/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/axis-inverted/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/category-chart/axis-inverted/tsconfig.json b/samples/charts/category-chart/axis-inverted/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/axis-inverted/tsconfig.json +++ b/samples/charts/category-chart/axis-inverted/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/axis-labels/.codesandbox/Dockerfile b/samples/charts/category-chart/axis-labels/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/axis-labels/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/axis-labels/.codesandbox/tasks.json b/samples/charts/category-chart/axis-labels/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/axis-labels/.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/category-chart/axis-labels/.stackblitzrc b/samples/charts/category-chart/axis-labels/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/axis-labels/.stackblitzrc +++ b/samples/charts/category-chart/axis-labels/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-labels/angular.json b/samples/charts/category-chart/axis-labels/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/axis-labels/angular.json +++ b/samples/charts/category-chart/axis-labels/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/axis-labels/package.json b/samples/charts/category-chart/axis-labels/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/axis-labels/package.json +++ b/samples/charts/category-chart/axis-labels/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/axis-labels/sandbox.config.json b/samples/charts/category-chart/axis-labels/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/axis-labels/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-labels/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/axis-labels/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/axis-labels/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/axis-labels/src/config/tsconfig.app.json b/samples/charts/category-chart/axis-labels/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/axis-labels/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/axis-labels/src/config/tsconfig.base.json b/samples/charts/category-chart/axis-labels/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/axis-labels/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/axis-labels/src/config/tsconfig.spec.json b/samples/charts/category-chart/axis-labels/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/axis-labels/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/axis-labels/src/config/tsconfig.worker.json b/samples/charts/category-chart/axis-labels/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/axis-labels/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/axis-labels/tsconfig.app.json b/samples/charts/category-chart/axis-labels/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/axis-labels/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/category-chart/axis-labels/tsconfig.json b/samples/charts/category-chart/axis-labels/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/axis-labels/tsconfig.json +++ b/samples/charts/category-chart/axis-labels/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/axis-locations/.codesandbox/Dockerfile b/samples/charts/category-chart/axis-locations/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/axis-locations/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/axis-locations/.codesandbox/tasks.json b/samples/charts/category-chart/axis-locations/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/axis-locations/.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/category-chart/axis-locations/.stackblitzrc b/samples/charts/category-chart/axis-locations/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/axis-locations/.stackblitzrc +++ b/samples/charts/category-chart/axis-locations/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-locations/angular.json b/samples/charts/category-chart/axis-locations/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/axis-locations/angular.json +++ b/samples/charts/category-chart/axis-locations/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/axis-locations/package.json b/samples/charts/category-chart/axis-locations/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/axis-locations/package.json +++ b/samples/charts/category-chart/axis-locations/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/axis-locations/sandbox.config.json b/samples/charts/category-chart/axis-locations/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/axis-locations/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-locations/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/axis-locations/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/axis-locations/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/axis-locations/src/config/tsconfig.app.json b/samples/charts/category-chart/axis-locations/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/axis-locations/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/axis-locations/src/config/tsconfig.base.json b/samples/charts/category-chart/axis-locations/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/axis-locations/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/axis-locations/src/config/tsconfig.spec.json b/samples/charts/category-chart/axis-locations/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/axis-locations/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/axis-locations/src/config/tsconfig.worker.json b/samples/charts/category-chart/axis-locations/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/axis-locations/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/axis-locations/tsconfig.app.json b/samples/charts/category-chart/axis-locations/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/axis-locations/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/category-chart/axis-locations/tsconfig.json b/samples/charts/category-chart/axis-locations/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/axis-locations/tsconfig.json +++ b/samples/charts/category-chart/axis-locations/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/axis-options/.codesandbox/Dockerfile b/samples/charts/category-chart/axis-options/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/axis-options/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/axis-options/.codesandbox/tasks.json b/samples/charts/category-chart/axis-options/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/axis-options/.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/category-chart/axis-options/.stackblitzrc b/samples/charts/category-chart/axis-options/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/axis-options/.stackblitzrc +++ b/samples/charts/category-chart/axis-options/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-options/angular.json b/samples/charts/category-chart/axis-options/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/axis-options/angular.json +++ b/samples/charts/category-chart/axis-options/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/axis-options/package.json b/samples/charts/category-chart/axis-options/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/axis-options/package.json +++ b/samples/charts/category-chart/axis-options/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/axis-options/sandbox.config.json b/samples/charts/category-chart/axis-options/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/axis-options/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-options/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/axis-options/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/axis-options/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/axis-options/src/config/tsconfig.app.json b/samples/charts/category-chart/axis-options/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/axis-options/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/axis-options/src/config/tsconfig.base.json b/samples/charts/category-chart/axis-options/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/axis-options/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/axis-options/src/config/tsconfig.spec.json b/samples/charts/category-chart/axis-options/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/axis-options/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/axis-options/src/config/tsconfig.worker.json b/samples/charts/category-chart/axis-options/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/axis-options/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/axis-options/tsconfig.app.json b/samples/charts/category-chart/axis-options/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/axis-options/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/category-chart/axis-options/tsconfig.json b/samples/charts/category-chart/axis-options/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/axis-options/tsconfig.json +++ b/samples/charts/category-chart/axis-options/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/axis-overlap/.codesandbox/Dockerfile b/samples/charts/category-chart/axis-overlap/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/axis-overlap/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/axis-overlap/.codesandbox/tasks.json b/samples/charts/category-chart/axis-overlap/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/axis-overlap/.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/category-chart/axis-overlap/.stackblitzrc b/samples/charts/category-chart/axis-overlap/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/axis-overlap/.stackblitzrc +++ b/samples/charts/category-chart/axis-overlap/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-overlap/angular.json b/samples/charts/category-chart/axis-overlap/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/axis-overlap/angular.json +++ b/samples/charts/category-chart/axis-overlap/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/axis-overlap/package.json b/samples/charts/category-chart/axis-overlap/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/axis-overlap/package.json +++ b/samples/charts/category-chart/axis-overlap/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/axis-overlap/sandbox.config.json b/samples/charts/category-chart/axis-overlap/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/axis-overlap/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-overlap/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/axis-overlap/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/axis-overlap/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/axis-overlap/src/config/tsconfig.app.json b/samples/charts/category-chart/axis-overlap/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/axis-overlap/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/axis-overlap/src/config/tsconfig.base.json b/samples/charts/category-chart/axis-overlap/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/axis-overlap/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/axis-overlap/src/config/tsconfig.spec.json b/samples/charts/category-chart/axis-overlap/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/axis-overlap/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/axis-overlap/src/config/tsconfig.worker.json b/samples/charts/category-chart/axis-overlap/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/axis-overlap/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/axis-overlap/tsconfig.app.json b/samples/charts/category-chart/axis-overlap/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/axis-overlap/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/category-chart/axis-overlap/tsconfig.json b/samples/charts/category-chart/axis-overlap/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/axis-overlap/tsconfig.json +++ b/samples/charts/category-chart/axis-overlap/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/axis-range/.codesandbox/Dockerfile b/samples/charts/category-chart/axis-range/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/axis-range/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/axis-range/.codesandbox/tasks.json b/samples/charts/category-chart/axis-range/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/axis-range/.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/category-chart/axis-range/.stackblitzrc b/samples/charts/category-chart/axis-range/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/axis-range/.stackblitzrc +++ b/samples/charts/category-chart/axis-range/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-range/angular.json b/samples/charts/category-chart/axis-range/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/axis-range/angular.json +++ b/samples/charts/category-chart/axis-range/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/axis-range/package.json b/samples/charts/category-chart/axis-range/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/axis-range/package.json +++ b/samples/charts/category-chart/axis-range/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/axis-range/sandbox.config.json b/samples/charts/category-chart/axis-range/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/axis-range/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-range/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/axis-range/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/axis-range/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/axis-range/src/config/tsconfig.app.json b/samples/charts/category-chart/axis-range/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/axis-range/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/axis-range/src/config/tsconfig.base.json b/samples/charts/category-chart/axis-range/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/axis-range/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/axis-range/src/config/tsconfig.spec.json b/samples/charts/category-chart/axis-range/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/axis-range/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/axis-range/src/config/tsconfig.worker.json b/samples/charts/category-chart/axis-range/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/axis-range/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/axis-range/tsconfig.app.json b/samples/charts/category-chart/axis-range/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/axis-range/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/category-chart/axis-range/tsconfig.json b/samples/charts/category-chart/axis-range/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/axis-range/tsconfig.json +++ b/samples/charts/category-chart/axis-range/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/axis-tickmarks/.codesandbox/Dockerfile b/samples/charts/category-chart/axis-tickmarks/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/axis-tickmarks/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/axis-tickmarks/.codesandbox/tasks.json b/samples/charts/category-chart/axis-tickmarks/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/axis-tickmarks/.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/category-chart/axis-tickmarks/.stackblitzrc b/samples/charts/category-chart/axis-tickmarks/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/axis-tickmarks/.stackblitzrc +++ b/samples/charts/category-chart/axis-tickmarks/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-tickmarks/angular.json b/samples/charts/category-chart/axis-tickmarks/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/axis-tickmarks/angular.json +++ b/samples/charts/category-chart/axis-tickmarks/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/axis-tickmarks/package.json b/samples/charts/category-chart/axis-tickmarks/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/axis-tickmarks/package.json +++ b/samples/charts/category-chart/axis-tickmarks/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/axis-tickmarks/sandbox.config.json b/samples/charts/category-chart/axis-tickmarks/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/axis-tickmarks/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.app.json b/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.base.json b/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.spec.json b/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.worker.json b/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/axis-tickmarks/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/axis-tickmarks/tsconfig.app.json b/samples/charts/category-chart/axis-tickmarks/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/axis-tickmarks/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/category-chart/axis-tickmarks/tsconfig.json b/samples/charts/category-chart/axis-tickmarks/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/axis-tickmarks/tsconfig.json +++ b/samples/charts/category-chart/axis-tickmarks/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/axis-titles/.codesandbox/Dockerfile b/samples/charts/category-chart/axis-titles/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/axis-titles/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/axis-titles/.codesandbox/tasks.json b/samples/charts/category-chart/axis-titles/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/axis-titles/.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/category-chart/axis-titles/.stackblitzrc b/samples/charts/category-chart/axis-titles/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/axis-titles/.stackblitzrc +++ b/samples/charts/category-chart/axis-titles/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-titles/angular.json b/samples/charts/category-chart/axis-titles/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/axis-titles/angular.json +++ b/samples/charts/category-chart/axis-titles/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/axis-titles/package.json b/samples/charts/category-chart/axis-titles/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/axis-titles/package.json +++ b/samples/charts/category-chart/axis-titles/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/axis-titles/sandbox.config.json b/samples/charts/category-chart/axis-titles/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/axis-titles/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/axis-titles/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/axis-titles/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/axis-titles/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/axis-titles/src/config/tsconfig.app.json b/samples/charts/category-chart/axis-titles/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/axis-titles/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/axis-titles/src/config/tsconfig.base.json b/samples/charts/category-chart/axis-titles/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/axis-titles/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/axis-titles/src/config/tsconfig.spec.json b/samples/charts/category-chart/axis-titles/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/axis-titles/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/axis-titles/src/config/tsconfig.worker.json b/samples/charts/category-chart/axis-titles/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/axis-titles/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/axis-titles/tsconfig.app.json b/samples/charts/category-chart/axis-titles/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/axis-titles/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/category-chart/axis-titles/tsconfig.json b/samples/charts/category-chart/axis-titles/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/axis-titles/tsconfig.json +++ b/samples/charts/category-chart/axis-titles/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/chart-highlight-filter/.codesandbox/Dockerfile b/samples/charts/category-chart/chart-highlight-filter/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/chart-highlight-filter/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/chart-highlight-filter/.codesandbox/tasks.json b/samples/charts/category-chart/chart-highlight-filter/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/chart-highlight-filter/.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/category-chart/chart-highlight-filter/.stackblitzrc b/samples/charts/category-chart/chart-highlight-filter/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/chart-highlight-filter/.stackblitzrc +++ b/samples/charts/category-chart/chart-highlight-filter/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/chart-highlight-filter/angular.json b/samples/charts/category-chart/chart-highlight-filter/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/chart-highlight-filter/angular.json +++ b/samples/charts/category-chart/chart-highlight-filter/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/chart-highlight-filter/package.json b/samples/charts/category-chart/chart-highlight-filter/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/chart-highlight-filter/package.json +++ b/samples/charts/category-chart/chart-highlight-filter/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/chart-highlight-filter/sandbox.config.json b/samples/charts/category-chart/chart-highlight-filter/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/chart-highlight-filter/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/chart-highlight-filter/src/SalesData.ts b/samples/charts/category-chart/chart-highlight-filter/src/SalesData.ts index 2da064b31..50d5fe209 100644 --- a/samples/charts/category-chart/chart-highlight-filter/src/SalesData.ts +++ b/samples/charts/category-chart/chart-highlight-filter/src/SalesData.ts @@ -1,16682 +1,3 @@ -//begin data -export class SalesData extends Array { - public constructor() { - super(); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `501`, - ManufacturingPrice: 15, - SalePrice: 23, - GrossSales: 26440, - Discounts: 0, - Sales: 26440, - COGS: 16185, - Profit: 11255, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1372`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 27440, - Discounts: 0, - Sales: 27440, - COGS: 16185, - Profit: 11255, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2762`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 55240, - Discounts: 0, - Sales: 55240, - COGS: 13210, - Profit: 42030, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1464`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 21960, - Discounts: 0, - Sales: 21960, - COGS: 21780, - Profit: 180, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `719`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 10785, - Discounts: 0, - Sales: 10785, - COGS: 8880, - Profit: 1905, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3576`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 53640, - Discounts: 0, - Sales: 53640, - COGS: 24700, - Profit: 28940, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `4422`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1547700, - Discounts: 0, - Sales: 1547700, - COGS: 393380, - Profit: 1154320, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3649`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 54735, - Discounts: 0, - Sales: 54735, - COGS: 9210, - Profit: 45525, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4172`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 50064, - Discounts: 0, - Sales: 50064, - COGS: 7554, - Profit: 42510, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3841`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 76820, - Discounts: 0, - Sales: 76820, - COGS: 18990, - Profit: 57830, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3726`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 44712, - Discounts: 0, - Sales: 44712, - COGS: 4635, - Profit: 40077, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2625`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 39375, - Discounts: 0, - Sales: 39375, - COGS: 24700, - Profit: 14675, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1958`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 244750, - Discounts: 0, - Sales: 244750, - COGS: 319860, - Profit: 75110, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3271`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 981300, - Discounts: 0, - Sales: 981300, - COGS: 239500, - Profit: 741800, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2091`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 14637, - Discounts: 0, - Sales: 14637, - COGS: 10730, - Profit: 3907, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2825`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 42375, - Discounts: 0, - Sales: 42375, - COGS: 6150, - Profit: 36225, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2513`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 50260, - Discounts: 0, - Sales: 50260, - COGS: 2920, - Profit: 47340, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `883`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 13245, - Discounts: 0, - Sales: 13245, - COGS: 9740, - Profit: 3505, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2087`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 25044, - Discounts: 0, - Sales: 25044, - COGS: 7554, - Profit: 17490, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2563`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 897050, - Discounts: 0, - Sales: 897050, - COGS: 261560, - Profit: 635490, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2846`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 34152, - Discounts: 0, - Sales: 34152, - COGS: 1101, - Profit: 33051, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `997`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 6979, - Discounts: 0, - Sales: 6979, - COGS: 4415, - Profit: 2564, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2290`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 34350, - Discounts: 0, - Sales: 34350, - COGS: 24720, - Profit: 9630, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2133`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14931, - Discounts: 0, - Sales: 14931, - COGS: 5715, - Profit: 9216, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3617`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 72340, - Discounts: 0, - Sales: 72340, - COGS: 18170, - Profit: 54170, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1266`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 443100, - Discounts: 0, - Sales: 443100, - COGS: 393380, - Profit: 49720, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `894`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 6258, - Discounts: 0, - Sales: 6258, - COGS: 7465, - Profit: 1207, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2725`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 340625, - Discounts: 0, - Sales: 340625, - COGS: 216480, - Profit: 124145, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3061`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 36732, - Discounts: 0, - Sales: 36732, - COGS: 6483, - Profit: 30249, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3958`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1385300, - Discounts: 0, - Sales: 1385300, - COGS: 261560, - Profit: 1123740, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3920`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 47040, - Discounts: 0, - Sales: 47040, - COGS: 4635, - Profit: 42405, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3381`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 422625, - Discounts: 0, - Sales: 422625, - COGS: 338520, - Profit: 84105, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4307`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 1292100, - Discounts: 0, - Sales: 1292100, - COGS: 500250, - Profit: 791850, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `878`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10536, - Discounts: 0, - Sales: 10536, - COGS: 8514, - Profit: 2022, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `496`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 7440, - Discounts: 0, - Sales: 7440, - COGS: 21780, - Profit: 14340, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3367`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 50505, - Discounts: 0, - Sales: 50505, - COGS: 8880, - Profit: 41625, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2055`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 616500, - Discounts: 0, - Sales: 616500, - COGS: 537750, - Profit: 78750, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4041`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 80820, - Discounts: 0, - Sales: 80820, - COGS: 18170, - Profit: 62650, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `3237`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1132950, - Discounts: 0, - Sales: 1132950, - COGS: 715000, - Profit: 417950, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `630`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 7560, - Discounts: 0, - Sales: 7560, - COGS: 5859, - Profit: 1701, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4210`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 526250, - Discounts: 0, - Sales: 526250, - COGS: 506340, - Profit: 19910, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1127`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 22540, - Discounts: 0, - Sales: 22540, - COGS: 18990, - Profit: 3550, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3438`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 24066, - Discounts: 0, - Sales: 24066, - COGS: 8430, - Profit: 15636, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2015`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 24180, - Discounts: 0, - Sales: 24180, - COGS: 6423, - Profit: 17757, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2534`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 17738, - Discounts: 0, - Sales: 17738, - COGS: 5715, - Profit: 12023, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1384`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 20760, - Discounts: 0, - Sales: 20760, - COGS: 6150, - Profit: 14610, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3561`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 24927, - Discounts: 276.15, - Sales: 24650.85, - COGS: 19725, - Profit: 4925.85, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1823`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27345, - Discounts: 344.4, - Sales: 27000.6, - COGS: 22960, - Profit: 4040.6, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2795`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19565, - Discounts: 72.1, - Sales: 19492.9, - COGS: 5150, - Profit: 14342.9, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `457`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 3199, - Discounts: 44.73, - Sales: 3154.27, - COGS: 3195, - Profit: 40.73, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3785`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26495, - Discounts: 92.82, - Sales: 26402.18, - COGS: 6630, - Profit: 19772.18, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `748`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 8976, - Discounts: 222.96, - Sales: 8753.04, - COGS: 5574, - Profit: 3179.04, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1021`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 357350, - Discounts: 4235, - Sales: 353115, - COGS: 314600, - Profit: 38515, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2076`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 14532, - Discounts: 177.03, - Sales: 14354.97, - COGS: 12645, - Profit: 1709.97, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `4316`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 51792, - Discounts: 173.4, - Sales: 51618.6, - COGS: 4335, - Profit: 47283.6, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4174`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50088, - Discounts: 320.52, - Sales: 49767.48, - COGS: 8013, - Profit: 41754.48, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3736`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1307600, - Discounts: 4889.5, - Sales: 1302710.5, - COGS: 363220, - Profit: 939490.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1914`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 669900, - Discounts: 7542.5, - Sales: 662357.5, - COGS: 560300, - Profit: 102057.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2742`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 41130, - Discounts: 332.1, - Sales: 40797.9, - COGS: 22140, - Profit: 18657.9, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1499`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 449700, - Discounts: 6903, - Sales: 442797, - COGS: 575250, - Profit: 132453, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 75440, - Discounts: 275.1, - Sales: 75164.9, - COGS: 13755, - Profit: 61409.9, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1112`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 7784, - Discounts: 128.1, - Sales: 7655.9, - COGS: 9150, - Profit: 1494.1, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2368`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 35520, - Discounts: 227.1, - Sales: 35292.9, - COGS: 15140, - Profit: 20152.9, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 11102, - Discounts: 314.48, - Sales: 10787.52, - COGS: 22462.5, - Profit: 11674.98, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3386`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 423250, - Discounts: 908.75, - Sales: 422341.25, - COGS: 87240, - Profit: 335101.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `852`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 106500, - Discounts: 983.75, - Sales: 105516.25, - COGS: 94440, - Profit: 11076.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2783`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 347875, - Discounts: 2278.75, - Sales: 345596.25, - COGS: 218760, - Profit: 126836.25, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2684`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 40260, - Discounts: 112.05, - Sales: 40147.95, - COGS: 7470, - Profit: 32677.95, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4083`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1224900, - Discounts: 8715, - Sales: 1216185, - COGS: 726250, - Profit: 489935, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2816`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 985600, - Discounts: 7542.5, - Sales: 978057.5, - COGS: 560300, - Profit: 417757.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4294`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 85880, - Discounts: 772.8, - Sales: 85107.2, - COGS: 38640, - Profit: 46467.2, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2856`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 19992, - Discounts: 25.34, - Sales: 19966.66, - COGS: 1810, - Profit: 18156.66, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1407`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 175875, - Discounts: 1153.75, - Sales: 174721.25, - COGS: 110760, - Profit: 63961.25, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1265`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 8855, - Discounts: 18.41, - Sales: 8836.59, - COGS: 1315, - Profit: 7521.59, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3892`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1362200, - Discounts: 3302.25, - Sales: 1358897.75, - COGS: 245310, - Profit: 1113587.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3068`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 383500, - Discounts: 908.75, - Sales: 382591.25, - COGS: 87240, - Profit: 295351.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2181`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 272625, - Discounts: 983.75, - Sales: 271641.25, - COGS: 94440, - Profit: 177201.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1356`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 406800, - Discounts: 2958, - Sales: 403842, - COGS: 246500, - Profit: 177201.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1814`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 634900, - Discounts: 4889.5, - Sales: 630010.5, - COGS: 363220, - Profit: 266790.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1495`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 186875, - Discounts: 2180, - Sales: 184695, - COGS: 209280, - Profit: 24585, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1463`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 182875, - Discounts: 1856.25, - Sales: 181018.75, - COGS: 89100, - Profit: 91918.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `215`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 2580, - Discounts: 310.8, - Sales: 2269.2, - COGS: 3885, - Profit: 1615.8, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `566`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 198100, - Discounts: 19964, - Sales: 178136, - COGS: 741520, - Profit: 563384, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3255`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 39060, - Discounts: 274.08, - Sales: 38785.92, - COGS: 3426, - Profit: 35359.92, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 15440, - Discounts: 626.4, - Sales: 14813.6, - COGS: 15660, - Profit: 846.4, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1135`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13620, - Discounts: 165.6, - Sales: 13454.4, - COGS: 2070, - Profit: 11384.4, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 17895, - Discounts: 708.9, - Sales: 17186.1, - COGS: 23630, - Profit: 6443.9, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2530`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 759000, - Discounts: 5508, - Sales: 753492, - COGS: 229500, - Profit: 523992, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3451`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1035300, - Discounts: 10368, - Sales: 1024932, - COGS: 432000, - Profit: 592932, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3059`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 36708, - Discounts: 274.08, - Sales: 36433.92, - COGS: 3426, - Profit: 33007.92, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3957`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 494625, - Discounts: 1655, - Sales: 492970, - COGS: 79440, - Profit: 413530, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3444`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 41328, - Discounts: 310.8, - Sales: 41017.2, - COGS: 3885, - Profit: 37132.2, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3154`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 946200, - Discounts: 11496, - Sales: 934704, - COGS: 479000, - Profit: 455704, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4108`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1437800, - Discounts: 19964, - Sales: 1417836, - COGS: 741520, - Profit: 676316, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3760`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 470000, - Discounts: 6822.5, - Sales: 463177.5, - COGS: 327480, - Profit: 135697.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2334`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 28008, - Discounts: 253.2, - Sales: 27754.8, - COGS: 3165, - Profit: 24589.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `580`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 6960, - Discounts: 260.16, - Sales: 6699.84, - COGS: 3252, - Profit: 3447.84, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2610`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 52200, - Discounts: 626.4, - Sales: 51573.6, - COGS: 15660, - Profit: 35913.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1459`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 510650, - Discounts: 20139, - Sales: 490511, - COGS: 748020, - Profit: 257509, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3774`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 45288, - Discounts: 253.2, - Sales: 45034.8, - COGS: 3165, - Profit: 41869.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2572`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 30864, - Discounts: 260.16, - Sales: 30603.84, - COGS: 3252, - Profit: 27351.84, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `320`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 40000, - Discounts: 1655, - Sales: 38345, - COGS: 79440, - Profit: 41095, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3275`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1146250, - Discounts: 20139, - Sales: 1126111, - COGS: 748020, - Profit: 378091, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3582`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 447750, - Discounts: 6822.5, - Sales: 440927.5, - COGS: 327480, - Profit: 113447.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4056`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1216800, - Discounts: 1554, - Sales: 1215246, - COGS: 64750, - Profit: 1150496, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2144`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 643200, - Discounts: 6606, - Sales: 636594, - COGS: 275250, - Profit: 361344, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3502`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 437750, - Discounts: 5690, - Sales: 432060, - COGS: 273120, - Profit: 158940, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `679`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 13580, - Discounts: 494.4, - Sales: 13085.6, - COGS: 12360, - Profit: 725.6, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2351`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 47020, - Discounts: 376.4, - Sales: 46643.6, - COGS: 9410, - Profit: 37233.6, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2043`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 612900, - Discounts: 11496, - Sales: 601404, - COGS: 479000, - Profit: 122404, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3565`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 445625, - Discounts: 15913.13, - Sales: 429711.88, - COGS: 509220, - Profit: 79508.13, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1401`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 28020, - Discounts: 1548, - Sales: 26472, - COGS: 25800, - Profit: 672, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2077`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 623100, - Discounts: 6201, - Sales: 616899, - COGS: 172250, - Profit: 444649, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3643`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 43716, - Discounts: 700.92, - Sales: 43015.08, - COGS: 5841, - Profit: 37174.08, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2960`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20720, - Discounts: 411.18, - Sales: 20308.82, - COGS: 9790, - Profit: 10518.82, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1201`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 14412, - Discounts: 684.36, - Sales: 13727.64, - COGS: 5703, - Profit: 8024.64, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2321`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 16247, - Discounts: 114.24, - Sales: 16132.76, - COGS: 2720, - Profit: 13412.76, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3972`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 496500, - Discounts: 4826.25, - Sales: 491673.75, - COGS: 154440, - Profit: 337233.75, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3878`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 484750, - Discounts: 6397.5, - Sales: 478352.5, - COGS: 204720, - Profit: 273632.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2278`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 683400, - Discounts: 21910.5, - Sales: 661489.5, - COGS: 608625, - Profit: 52864.5, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1075`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 134375, - Discounts: 6652.5, - Sales: 127722.5, - COGS: 212880, - Profit: 85157.5, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4050`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 48600, - Discounts: 684.36, - Sales: 47915.64, - COGS: 5703, - Profit: 42212.64, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3035`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 910500, - Discounts: 6201, - Sales: 904299, - COGS: 172250, - Profit: 732049, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3636`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 454500, - Discounts: 5887.5, - Sales: 448612.5, - COGS: 188400, - Profit: 260212.5, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1379`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 16548, - Discounts: 493.02, - Sales: 16054.98, - COGS: 4108.5, - Profit: 11946.48, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4492`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 561500, - Discounts: 7533.75, - Sales: 553966.25, - COGS: 241080, - Profit: 312886.25, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1744`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 218000, - Discounts: 4826.25, - Sales: 213173.75, - COGS: 154440, - Profit: 58733.75, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2341`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 292625, - Discounts: 6397.5, - Sales: 286227.5, - COGS: 204720, - Profit: 81507.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3835`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 479375, - Discounts: 7533.75, - Sales: 471841.25, - COGS: 241080, - Profit: 230761.25, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1161`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 348300, - Discounts: 25596, - Sales: 322704, - COGS: 711000, - Profit: 388296, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `876`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10512, - Discounts: 689.76, - Sales: 9822.24, - COGS: 5748, - Profit: 4074.24, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1705`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 213125, - Discounts: 5887.5, - Sales: 207237.5, - COGS: 188400, - Profit: 18837.5, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1805`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 541500, - Discounts: 16866, - Sales: 524634, - COGS: 468500, - Profit: 56134, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `389`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 136150, - Discounts: 17241, - Sales: 118909, - COGS: 426920, - Profit: 308011, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1459`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 29180, - Discounts: 498.6, - Sales: 28681.4, - COGS: 8310, - Profit: 20371.4, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4236`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 84720, - Discounts: 2310.3, - Sales: 82409.7, - COGS: 38505, - Profit: 43904.7, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3627`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 43524, - Discounts: 892.44, - Sales: 42631.56, - COGS: 7437, - Profit: 35194.56, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1756`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 26340, - Discounts: 1218.6, - Sales: 25121.4, - COGS: 20310, - Profit: 4811.4, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `307`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 4605, - Discounts: 1218.6, - Sales: 3386.4, - COGS: 20310, - Profit: 16923.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1222`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 366600, - Discounts: 24252, - Sales: 342348, - COGS: 505250, - Profit: 162902, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `489`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 171150, - Discounts: 3836, - Sales: 167314, - COGS: 71240, - Profit: 96074, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4133`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 61995, - Discounts: 1180.2, - Sales: 60814.8, - COGS: 19670, - Profit: 41144.8, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2743`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 822900, - Discounts: 22308, - Sales: 800592, - COGS: 464750, - Profit: 335842, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `4460`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1338000, - Discounts: 24252, - Sales: 1313748, - COGS: 505250, - Profit: 808498, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1232`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 154000, - Discounts: 5690, - Sales: 148310, - COGS: 136560, - Profit: 11750, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 18102, - Discounts: 1190.28, - Sales: 16911.72, - COGS: 21255, - Profit: 4343.28, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1332`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 166500, - Discounts: 3975, - Sales: 162525, - COGS: 95400, - Profit: 67125, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4487`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1346100, - Discounts: 16974, - Sales: 1329126, - COGS: 353625, - Profit: 975501, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3862`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1158600, - Discounts: 35016, - Sales: 1123584, - COGS: 729500, - Profit: 394084, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1765`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 617750, - Discounts: 48300, - Sales: 569450, - COGS: 897000, - Profit: 327550, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3533`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 441625, - Discounts: 14940, - Sales: 426685, - COGS: 358560, - Profit: 68125, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2016`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 30240, - Discounts: 130.8, - Sales: 30109.2, - COGS: 2180, - Profit: 27929.2, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2938`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 58760, - Discounts: 1659.2, - Sales: 57100.8, - COGS: 20740, - Profit: 36360.8, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3352`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67040, - Discounts: 844.8, - Sales: 66195.2, - COGS: 10560, - Profit: 55635.2, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2430`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 850500, - Discounts: 3836, - Sales: 846664, - COGS: 71240, - Profit: 775424, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `535`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 66875, - Discounts: 5690, - Sales: 61185, - COGS: 136560, - Profit: 75375, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1523`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 18276, - Discounts: 703.2, - Sales: 17572.8, - COGS: 4395, - Profit: 13177.8, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1782`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 623700, - Discounts: 30478, - Sales: 593222, - COGS: 566020, - Profit: 27202, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `347`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 4164, - Discounts: 415.68, - Sales: 3748.32, - COGS: 2598, - Profit: 1150.32, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3509`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1228150, - Discounts: 30478, - Sales: 1197672, - COGS: 566020, - Profit: 631652, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2943`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1030050, - Discounts: 26110, - Sales: 1003940, - COGS: 484900, - Profit: 519040, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `4037`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 504625, - Discounts: 5370, - Sales: 499255, - COGS: 128880, - Profit: 370375, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4146`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1451100, - Discounts: 26698, - Sales: 1424402, - COGS: 495820, - Profit: 928582, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `725`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 5075, - Discounts: 480.2, - Sales: 4594.8, - COGS: 6860, - Profit: 2265.2, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2325`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 16275, - Discounts: 941.15, - Sales: 15333.85, - COGS: 13445, - Profit: 1888.85, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `675`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 8100, - Discounts: 1458.6, - Sales: 6641.4, - COGS: 7293, - Profit: 651.6, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2990`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 35880, - Discounts: 1458.6, - Sales: 34421.4, - COGS: 7293, - Profit: 27128.4, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1072`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 7504, - Discounts: 941.15, - Sales: 6562.85, - COGS: 13445, - Profit: 6882.15, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1048`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 7336, - Discounts: 589.05, - Sales: 6746.95, - COGS: 8415, - Profit: 1668.05, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `469`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 5628, - Discounts: 673.8, - Sales: 4954.2, - COGS: 3369, - Profit: 1585.2, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4240`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50880, - Discounts: 1119, - Sales: 49761, - COGS: 5595, - Profit: 44166, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1976`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 23712, - Discounts: 669.6, - Sales: 23042.4, - COGS: 3348, - Profit: 19694.4, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1984`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39680, - Discounts: 1563, - Sales: 38117, - COGS: 15630, - Profit: 22487, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `480`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 144000, - Discounts: 14865, - Sales: 129135, - COGS: 247750, - Profit: 118615, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1205`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 18075, - Discounts: 2093.25, - Sales: 15981.75, - COGS: 27910, - Profit: 11928.25, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2480`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 17360, - Discounts: 199.5, - Sales: 17160.5, - COGS: 2850, - Profit: 14310.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2926`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 20482, - Discounts: 870.45, - Sales: 19611.55, - COGS: 12435, - Profit: 7176.55, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3210`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1123500, - Discounts: 24228.75, - Sales: 1099271.25, - COGS: 359970, - Profit: 739301.25, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3221`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 402625, - Discounts: 22668.75, - Sales: 379956.25, - COGS: 435240, - Profit: 55283.75, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1127`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13524, - Discounts: 1405.2, - Sales: 12118.8, - COGS: 7026, - Profit: 5092.8, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1610`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 32200, - Discounts: 1303, - Sales: 30897, - COGS: 13030, - Profit: 17867, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4100`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 512500, - Discounts: 18700, - Sales: 493800, - COGS: 359040, - Profit: 134760, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1012`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 126500, - Discounts: 14906.25, - Sales: 111593.75, - COGS: 286200, - Profit: 174606.25, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3337`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1001100, - Discounts: 24105, - Sales: 976995, - COGS: 401750, - Profit: 575245, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3955`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 27685, - Discounts: 814.45, - Sales: 26870.55, - COGS: 11635, - Profit: 15235.55, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4347`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1304100, - Discounts: 14865, - Sales: 1289235, - COGS: 247750, - Profit: 1041485, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1548`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 541800, - Discounts: 10535, - Sales: 531265, - COGS: 156520, - Profit: 374745, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2153`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 32295, - Discounts: 1965, - Sales: 30330, - COGS: 26200, - Profit: 4130, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4126`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 515750, - Discounts: 5381.25, - Sales: 510368.75, - COGS: 103320, - Profit: 407048.75, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3376`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67520, - Discounts: 2663, - Sales: 64857, - COGS: 26630, - Profit: 38227, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2244`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 33660, - Discounts: 416.25, - Sales: 33243.75, - COGS: 5550, - Profit: 27693.75, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1360`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 20400, - Discounts: 2145.75, - Sales: 18254.25, - COGS: 28610, - Profit: 10355.75, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `279`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 34875, - Discounts: 5043.75, - Sales: 29831.25, - COGS: 96840, - Profit: 67008.75, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2521`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 882350, - Discounts: 10535, - Sales: 871815, - COGS: 156520, - Profit: 715295, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2433`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 48660, - Discounts: 2832, - Sales: 45828, - COGS: 28320, - Profit: 17508, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1738`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 34760, - Discounts: 1579, - Sales: 33181, - COGS: 15790, - Profit: 17391, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1106`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 138250, - Discounts: 5381.25, - Sales: 132868.75, - COGS: 103320, - Profit: 29548.75, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `213`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 63900, - Discounts: 18750, - Sales: 45150, - COGS: 312500, - Profit: 267350, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2929`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 58580, - Discounts: 2663, - Sales: 55917, - COGS: 26630, - Profit: 29287, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2389`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 16723, - Discounts: 199.5, - Sales: 16523.5, - COGS: 2850, - Profit: 13673.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3086`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 21602, - Discounts: 870.45, - Sales: 20731.55, - COGS: 12435, - Profit: 8296.55, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `745`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 260750, - Discounts: 23625, - Sales: 237125, - COGS: 351000, - Profit: 113875, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1266`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 443100, - Discounts: 9660, - Sales: 433440, - COGS: 143520, - Profit: 289920, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4287`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1286100, - Discounts: 18750, - Sales: 1267350, - COGS: 312500, - Profit: 954850, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 47895, - Discounts: 3420.9, - Sales: 44474.1, - COGS: 38010, - Profit: 6464.1, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1967`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39340, - Discounts: 1341, - Sales: 37999, - COGS: 11175, - Profit: 26824, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `631`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 9465, - Discounts: 2559.6, - Sales: 6905.4, - COGS: 28440, - Profit: 21534.6, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3469`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 41628, - Discounts: 404.64, - Sales: 41223.36, - COGS: 1686, - Profit: 39537.36, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3215`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 48225, - Discounts: 1827, - Sales: 46398, - COGS: 20300, - Profit: 26098, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1959`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 685650, - Discounts: 20580, - Sales: 665070, - COGS: 254800, - Profit: 410270, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2181`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 763350, - Discounts: 30660, - Sales: 732690, - COGS: 379600, - Profit: 353090, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2205`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 26460, - Discounts: 1960.56, - Sales: 24499.44, - COGS: 8169, - Profit: 16330.44, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1890`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 661500, - Discounts: 31416, - Sales: 630084, - COGS: 388960, - Profit: 241124, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2417`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 302125, - Discounts: 7140, - Sales: 294985, - COGS: 114240, - Profit: 180745, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1158`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 144750, - Discounts: 20662.5, - Sales: 124087.5, - COGS: 330600, - Profit: 206512.5, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `803`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 12045, - Discounts: 1377, - Sales: 10668, - COGS: 15300, - Profit: 4632, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3705`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1296750, - Discounts: 31416, - Sales: 1265334, - COGS: 388960, - Profit: 876374, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `589`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 4123, - Discounts: 629.16, - Sales: 3493.84, - COGS: 7490, - Profit: 3996.16, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3999`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 59985, - Discounts: 2559.6, - Sales: 57425.4, - COGS: 28440, - Profit: 28985.4, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4256`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 29792, - Discounts: 629.16, - Sales: 29162.84, - COGS: 7490, - Profit: 21672.84, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2160`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 270000, - Discounts: 14906.25, - Sales: 255093.75, - COGS: 238500, - Profit: 16593.75, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `466`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 163100, - Discounts: 35259, - Sales: 127841, - COGS: 436540, - Profit: 308699, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1478`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 22170, - Discounts: 1978.2, - Sales: 20191.8, - COGS: 21980, - Profit: 1788.2, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3798`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 56970, - Discounts: 1568.7, - Sales: 55401.3, - COGS: 17430, - Profit: 37971.3, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `447`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 6705, - Discounts: 1037.7, - Sales: 5667.3, - COGS: 11530, - Profit: 5862.7, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `745`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 14900, - Discounts: 1201.2, - Sales: 13698.8, - COGS: 10010, - Profit: 3688.8, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1732`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 12124, - Discounts: 559.86, - Sales: 11564.14, - COGS: 6665, - Profit: 4899.14, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1759`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 26385, - Discounts: 1037.7, - Sales: 25347.3, - COGS: 11530, - Profit: 13817.3, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `338`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 4056, - Discounts: 610.68, - Sales: 3445.32, - COGS: 2181, - Profit: 1264.32, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3911`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 46932, - Discounts: 1582.56, - Sales: 45349.44, - COGS: 5652, - Profit: 39697.44, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `4473`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 53676, - Discounts: 1965.6, - Sales: 51710.4, - COGS: 7020, - Profit: 44690.4, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `383`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 4596, - Discounts: 1967.28, - Sales: 2628.72, - COGS: 7026, - Profit: 4397.28, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1062`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 15930, - Discounts: 1325.1, - Sales: 14604.9, - COGS: 12620, - Profit: 1984.9, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4083`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 28581, - Discounts: 556.15, - Sales: 28024.85, - COGS: 5675, - Profit: 22349.85, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3974`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 27818, - Discounts: 268.03, - Sales: 27549.97, - COGS: 2735, - Profit: 24814.97, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3723`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 26061, - Discounts: 775.18, - Sales: 25285.82, - COGS: 7910, - Profit: 17375.82, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2435`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 29220, - Discounts: 1460.34, - Sales: 27759.66, - COGS: 5215.5, - Profit: 22544.16, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1763`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 12341, - Discounts: 775.18, - Sales: 11565.82, - COGS: 7910, - Profit: 3655.82, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4473`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 31311, - Discounts: 556.15, - Sales: 30754.85, - COGS: 5675, - Profit: 25079.85, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1246`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 436100, - Discounts: 43144.5, - Sales: 392955.5, - COGS: 457860, - Profit: 64904.5, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1615`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 484500, - Discounts: 9408, - Sales: 475092, - COGS: 112000, - Profit: 363092, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `749`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 224700, - Discounts: 45801, - Sales: 178899, - COGS: 545250, - Profit: 366351, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1318`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 26360, - Discounts: 2766.4, - Sales: 23593.6, - COGS: 19760, - Profit: 3833.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2882`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 864600, - Discounts: 45801, - Sales: 818799, - COGS: 545250, - Profit: 273549, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2484`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 745200, - Discounts: 35742, - Sales: 709458, - COGS: 425500, - Profit: 283958, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3169`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 950700, - Discounts: 9408, - Sales: 941292, - COGS: 112000, - Profit: 829292, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 510000, - Discounts: 30738.75, - Sales: 479261.25, - COGS: 421560, - Profit: 57701.25, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3943`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 59145, - Discounts: 2206.05, - Sales: 56938.95, - COGS: 21010, - Profit: 35928.95, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `253`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 5060, - Discounts: 2149, - Sales: 2911, - COGS: 15350, - Profit: 12439, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `799`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 239700, - Discounts: 34839, - Sales: 204861, - COGS: 414750, - Profit: 209889, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3942`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 78840, - Discounts: 852.6, - Sales: 77987.4, - COGS: 6090, - Profit: 71897.4, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2498`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 312250, - Discounts: 18261.25, - Sales: 293988.75, - COGS: 250440, - Profit: 43548.75, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2517`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 50340, - Discounts: 2766.4, - Sales: 47573.6, - COGS: 19760, - Profit: 27813.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1145`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 343500, - Discounts: 28812, - Sales: 314688, - COGS: 343000, - Profit: 28312, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3814`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 45768, - Discounts: 2725.38, - Sales: 43042.62, - COGS: 9733.5, - Profit: 33309.12, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1188`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 356400, - Discounts: 20139, - Sales: 336261, - COGS: 239750, - Profit: 96511, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2233`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 669900, - Discounts: 57687, - Sales: 612213, - COGS: 686750, - Profit: 74537, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `421`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 52625, - Discounts: 14393.75, - Sales: 38231.25, - COGS: 197400, - Profit: 159168.75, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `269`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 94150, - Discounts: 70462, - Sales: 23688, - COGS: 747760, - Profit: 724072, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `952`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19040, - Discounts: 1565.2, - Sales: 17474.8, - COGS: 11180, - Profit: 6294.8, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2964`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 889200, - Discounts: 28812, - Sales: 860388, - COGS: 343000, - Profit: 517388, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1505`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 10535, - Discounts: 273.28, - Sales: 10261.72, - COGS: 2440, - Profit: 7821.72, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1678`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 33560, - Discounts: 2051.2, - Sales: 31508.8, - COGS: 12820, - Profit: 18688.8, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4249`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 29743, - Discounts: 143.92, - Sales: 29599.08, - COGS: 1285, - Profit: 28314.08, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1677`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 33540, - Discounts: 2051.2, - Sales: 31488.8, - COGS: 12820, - Profit: 18668.8, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3051`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 381375, - Discounts: 15400, - Sales: 365975, - COGS: 184800, - Profit: 181175, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3372`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 50580, - Discounts: 588, - Sales: 49992, - COGS: 4900, - Profit: 45092, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1686`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 590100, - Discounts: 38136, - Sales: 551964, - COGS: 354120, - Profit: 197844, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3086`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 46290, - Discounts: 3001.2, - Sales: 43288.8, - COGS: 25010, - Profit: 18278.8, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4150`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 83000, - Discounts: 1132.8, - Sales: 81867.2, - COGS: 7080, - Profit: 74787.2, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3027`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 60540, - Discounts: 1032, - Sales: 59508, - COGS: 6450, - Profit: 53058, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `4359`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1307700, - Discounts: 37488, - Sales: 1270212, - COGS: 390500, - Profit: 879712, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1589`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 23835, - Discounts: 853.2, - Sales: 22981.8, - COGS: 7110, - Profit: 15871.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2679`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 334875, - Discounts: 11140, - Sales: 323735, - COGS: 133680, - Profit: 190055, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3401`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 23807, - Discounts: 705.04, - Sales: 23101.96, - COGS: 6295, - Profit: 16806.96, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2815`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19705, - Discounts: 613.2, - Sales: 19091.8, - COGS: 5475, - Profit: 13616.8, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2964`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 59280, - Discounts: 2185.6, - Sales: 57094.4, - COGS: 13660, - Profit: 43434.4, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4173`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1251900, - Discounts: 59040, - Sales: 1192860, - COGS: 615000, - Profit: 577860, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1157`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 8099, - Discounts: 379.68, - Sales: 7719.32, - COGS: 3390, - Profit: 4329.32, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3065`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 21455, - Discounts: 894.88, - Sales: 20560.12, - COGS: 7990, - Profit: 12570.12, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 81600, - Discounts: 3094.4, - Sales: 78505.6, - COGS: 19340, - Profit: 59165.6, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1713`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34260, - Discounts: 4788.8, - Sales: 29471.2, - COGS: 29930, - Profit: 458.8, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1691`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 591850, - Discounts: 38136, - Sales: 553714, - COGS: 354120, - Profit: 199594, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2305`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 27660, - Discounts: 574.08, - Sales: 27085.92, - COGS: 1794, - Profit: 25291.92, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3401`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 23807, - Discounts: 1627.92, - Sales: 22179.08, - COGS: 14535, - Profit: 7644.08, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2288`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 16016, - Discounts: 1309.28, - Sales: 14706.72, - COGS: 11690, - Profit: 3016.72, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4086`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1225800, - Discounts: 15240, - Sales: 1210560, - COGS: 158750, - Profit: 1051810, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2651`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 927850, - Discounts: 16086, - Sales: 911764, - COGS: 149370, - Profit: 762394, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3971`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27797, - Discounts: 1309.28, - Sales: 26487.72, - COGS: 11690, - Profit: 14797.72, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2512`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 879200, - Discounts: 10668, - Sales: 868532, - COGS: 99060, - Profit: 769472, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2745`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 960750, - Discounts: 11816, - Sales: 948934, - COGS: 109720, - Profit: 839214, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1903`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 570900, - Discounts: 51216, - Sales: 519684, - COGS: 533500, - Profit: 13816, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2914`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 58280, - Discounts: 1132.8, - Sales: 57147.2, - COGS: 7080, - Profit: 50067.2, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1889`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 13223, - Discounts: 1627.92, - Sales: 11595.08, - COGS: 14535, - Profit: 2939.92, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1466`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 29320, - Discounts: 2185.6, - Sales: 27134.4, - COGS: 13660, - Profit: 13474.4, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `887`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 266100, - Discounts: 59040, - Sales: 207060, - COGS: 615000, - Profit: 407940, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `395`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 7900, - Discounts: 2432, - Sales: 5468, - COGS: 15200, - Profit: 9732, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1693`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 25395, - Discounts: 853.2, - Sales: 24541.8, - COGS: 7110, - Profit: 17431.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2649`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 794700, - Discounts: 15240, - Sales: 779460, - COGS: 158750, - Profit: 620710, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3608`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 72160, - Discounts: 698.4, - Sales: 71461.6, - COGS: 4365, - Profit: 67096.6, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1073`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 321900, - Discounts: 29538, - Sales: 292362, - COGS: 273500, - Profit: 18862, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2167`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 650100, - Discounts: 102667.5, - Sales: 547432.5, - COGS: 950625, - Profit: 403192.5, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1319`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 461650, - Discounts: 52479, - Sales: 409171, - COGS: 433160, - Profit: 23989, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1252`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 15024, - Discounts: 2506.68, - Sales: 12517.32, - COGS: 6963, - Profit: 5554.32, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1156`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 144500, - Discounts: 31466.25, - Sales: 113033.75, - COGS: 335640, - Profit: 222606.25, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1153`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 345900, - Discounts: 69255, - Sales: 276645, - COGS: 641250, - Profit: 364605, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2720`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 952000, - Discounts: 76135.5, - Sales: 875864.5, - COGS: 628420, - Profit: 247444.5, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3658`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 54870, - Discounts: 4961.25, - Sales: 49908.75, - COGS: 36750, - Profit: 13158.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2950`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 885000, - Discounts: 29538, - Sales: 855462, - COGS: 273500, - Profit: 581962, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1821`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27315, - Discounts: 1656.45, - Sales: 25658.55, - COGS: 12270, - Profit: 13388.55, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1127`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 338100, - Discounts: 35748, - Sales: 302352, - COGS: 331000, - Profit: 28648, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `862`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 107750, - Discounts: 31466.25, - Sales: 76283.75, - COGS: 335640, - Profit: 259356.25, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3805`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 57075, - Discounts: 330.75, - Sales: 56744.25, - COGS: 2450, - Profit: 54294.25, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1415`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 424500, - Discounts: 102424.5, - Sales: 322075.5, - COGS: 948375, - Profit: 626299.5, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2231`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 780850, - Discounts: 41170.5, - Sales: 739679.5, - COGS: 339820, - Profit: 399859.5, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3649`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 456125, - Discounts: 6378.75, - Sales: 449746.25, - COGS: 68040, - Profit: 381706.25, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2948`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 368500, - Discounts: 23737.5, - Sales: 344762.5, - COGS: 253200, - Profit: 91562.5, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3395`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1188250, - Discounts: 39973.5, - Sales: 1148276.5, - COGS: 329940, - Profit: 818336.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2650`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 31800, - Discounts: 2112.48, - Sales: 29687.52, - COGS: 5868, - Profit: 23819.52, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `585`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 175500, - Discounts: 71793, - Sales: 103707, - COGS: 664750, - Profit: 561043, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1316`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 460600, - Discounts: 42572.25, - Sales: 418027.75, - COGS: 351390, - Profit: 66637.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `4459`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 53508, - Discounts: 950.4, - Sales: 52557.6, - COGS: 2640, - Profit: 49917.6, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2711`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 813300, - Discounts: 50409, - Sales: 762891, - COGS: 466750, - Profit: 296141, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3613`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 54195, - Discounts: 1656.45, - Sales: 52538.55, - COGS: 12270, - Profit: 40268.55, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1847`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 230875, - Discounts: 9866.25, - Sales: 221008.75, - COGS: 105240, - Profit: 115768.75, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2996`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1048600, - Discounts: 65236.5, - Sales: 983363.5, - COGS: 538460, - Profit: 444903.5, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2838`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 993300, - Discounts: 39973.5, - Sales: 953326.5, - COGS: 329940, - Profit: 623386.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1536`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 30720, - Discounts: 3049.2, - Sales: 27670.8, - COGS: 16940, - Profit: 10730.8, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1291`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 25820, - Discounts: 1193.4, - Sales: 24626.6, - COGS: 6630, - Profit: 17996.6, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1213`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 8491, - Discounts: 515.97, - Sales: 7975.03, - COGS: 4095, - Profit: 3880.03, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2370`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 28440, - Discounts: 1706.4, - Sales: 26733.6, - COGS: 4740, - Profit: 21993.6, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1979`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 13853, - Discounts: 328.23, - Sales: 13524.77, - COGS: 2605, - Profit: 10919.77, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2879`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 57580, - Discounts: 1751.4, - Sales: 55828.6, - COGS: 9730, - Profit: 46098.6, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1707`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34140, - Discounts: 1868.4, - Sales: 32271.6, - COGS: 10380, - Profit: 21891.6, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2933`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 20531, - Discounts: 226.8, - Sales: 20304.2, - COGS: 1800, - Profit: 18504.2, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1014`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 12168, - Discounts: 2124.36, - Sales: 10043.64, - COGS: 5901, - Profit: 4142.64, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `693`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 10395, - Discounts: 3547.8, - Sales: 6847.2, - COGS: 26280, - Profit: 19432.8, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3741`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26187, - Discounts: 226.8, - Sales: 25960.2, - COGS: 1800, - Profit: 24160.2, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `3995`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27965, - Discounts: 328.23, - Sales: 27636.77, - COGS: 2605, - Profit: 25031.77, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `953`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19060, - Discounts: 1868.4, - Sales: 17191.6, - COGS: 10380, - Profit: 6811.6, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2530`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 37950, - Discounts: 2201.18, - Sales: 35748.82, - COGS: 16305, - Profit: 19443.82, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1372`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 27440, - Discounts: 0, - Sales: 27440, - COGS: 16185, - Profit: 11255, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2762`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 55240, - Discounts: 0, - Sales: 55240, - COGS: 13210, - Profit: 42030, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1464`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 21960, - Discounts: 0, - Sales: 21960, - COGS: 21780, - Profit: 180, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `719`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 10785, - Discounts: 0, - Sales: 10785, - COGS: 8880, - Profit: 1905, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3576`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 53640, - Discounts: 0, - Sales: 53640, - COGS: 24700, - Profit: 28940, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `4422`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1547700, - Discounts: 0, - Sales: 1547700, - COGS: 393380, - Profit: 1154320, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3649`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 54735, - Discounts: 0, - Sales: 54735, - COGS: 9210, - Profit: 45525, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4172`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 50064, - Discounts: 0, - Sales: 50064, - COGS: 7554, - Profit: 42510, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3841`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 76820, - Discounts: 0, - Sales: 76820, - COGS: 18990, - Profit: 57830, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3726`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 44712, - Discounts: 0, - Sales: 44712, - COGS: 4635, - Profit: 40077, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2625`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 39375, - Discounts: 0, - Sales: 39375, - COGS: 24700, - Profit: 14675, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1958`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 244750, - Discounts: 0, - Sales: 244750, - COGS: 319860, - Profit: 75110, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3271`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 981300, - Discounts: 0, - Sales: 981300, - COGS: 239500, - Profit: 741800, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2091`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 14637, - Discounts: 0, - Sales: 14637, - COGS: 10730, - Profit: 3907, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2530`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 316250, - Discounts: 0, - Sales: 316250, - COGS: 41400, - Profit: 274850, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2825`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 42375, - Discounts: 0, - Sales: 42375, - COGS: 6150, - Profit: 36225, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2513`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 50260, - Discounts: 0, - Sales: 50260, - COGS: 2920, - Profit: 47340, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `883`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 13245, - Discounts: 0, - Sales: 13245, - COGS: 9740, - Profit: 3505, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2087`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 25044, - Discounts: 0, - Sales: 25044, - COGS: 7554, - Profit: 17490, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2563`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 897050, - Discounts: 0, - Sales: 897050, - COGS: 261560, - Profit: 635490, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2846`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 34152, - Discounts: 0, - Sales: 34152, - COGS: 1101, - Profit: 33051, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `997`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 6979, - Discounts: 0, - Sales: 6979, - COGS: 4415, - Profit: 2564, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3421`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 51315, - Discounts: 0, - Sales: 51315, - COGS: 5490, - Profit: 45825, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Marchesa`, - UnitsSold: `70000`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 1050000, - Discounts: 0, - Sales: 1050000, - COGS: 5490, - Profit: 1044510, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2291`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 687300, - Discounts: 0, - Sales: 687300, - COGS: 197000, - Profit: 490300, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2290`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 34350, - Discounts: 0, - Sales: 34350, - COGS: 24720, - Profit: 9630, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2133`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14931, - Discounts: 0, - Sales: 14931, - COGS: 5715, - Profit: 9216, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3475`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1216250, - Discounts: 0, - Sales: 1216250, - COGS: 448500, - Profit: 767750, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3686`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 44232, - Discounts: 0, - Sales: 44232, - COGS: 2736, - Profit: 41496, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3319`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 49785, - Discounts: 0, - Sales: 49785, - COGS: 21520, - Profit: 28265, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3617`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 72340, - Discounts: 0, - Sales: 72340, - COGS: 18170, - Profit: 54170, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1266`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 443100, - Discounts: 0, - Sales: 443100, - COGS: 393380, - Profit: 49720, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `894`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 6258, - Discounts: 0, - Sales: 6258, - COGS: 7465, - Profit: 1207, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2725`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 340625, - Discounts: 0, - Sales: 340625, - COGS: 216480, - Profit: 124145, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3061`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 36732, - Discounts: 0, - Sales: 36732, - COGS: 6483, - Profit: 30249, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3958`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1385300, - Discounts: 0, - Sales: 1385300, - COGS: 261560, - Profit: 1123740, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3920`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 47040, - Discounts: 0, - Sales: 47040, - COGS: 4635, - Profit: 42405, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3381`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 422625, - Discounts: 0, - Sales: 422625, - COGS: 338520, - Profit: 84105, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1094`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 136750, - Discounts: 0, - Sales: 136750, - COGS: 41400, - Profit: 95350, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4307`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 1292100, - Discounts: 0, - Sales: 1292100, - COGS: 500250, - Profit: 791850, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `878`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10536, - Discounts: 0, - Sales: 10536, - COGS: 8514, - Profit: 2022, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `496`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 7440, - Discounts: 0, - Sales: 7440, - COGS: 21780, - Profit: 14340, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3367`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 50505, - Discounts: 0, - Sales: 50505, - COGS: 8880, - Profit: 41625, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3880`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1358000, - Discounts: 0, - Sales: 1358000, - COGS: 397020, - Profit: 960980, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2055`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 616500, - Discounts: 0, - Sales: 616500, - COGS: 537750, - Profit: 78750, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4041`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 80820, - Discounts: 0, - Sales: 80820, - COGS: 18170, - Profit: 62650, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `3237`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1132950, - Discounts: 0, - Sales: 1132950, - COGS: 715000, - Profit: 417950, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `630`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 7560, - Discounts: 0, - Sales: 7560, - COGS: 5859, - Profit: 1701, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4210`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 526250, - Discounts: 0, - Sales: 526250, - COGS: 506340, - Profit: 19910, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1127`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 22540, - Discounts: 0, - Sales: 22540, - COGS: 18990, - Profit: 3550, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3438`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 24066, - Discounts: 0, - Sales: 24066, - COGS: 8430, - Profit: 15636, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2015`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 24180, - Discounts: 0, - Sales: 24180, - COGS: 6423, - Profit: 17757, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2534`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 17738, - Discounts: 0, - Sales: 17738, - COGS: 5715, - Profit: 12023, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1384`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 20760, - Discounts: 0, - Sales: 20760, - COGS: 6150, - Profit: 14610, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3561`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 24927, - Discounts: 276.15, - Sales: 24650.85, - COGS: 19725, - Profit: 4925.85, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1823`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27345, - Discounts: 344.4, - Sales: 27000.6, - COGS: 22960, - Profit: 4040.6, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2795`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19565, - Discounts: 72.1, - Sales: 19492.9, - COGS: 5150, - Profit: 14342.9, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `457`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 3199, - Discounts: 44.73, - Sales: 3154.27, - COGS: 3195, - Profit: 40.73, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3785`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26495, - Discounts: 92.82, - Sales: 26402.18, - COGS: 6630, - Profit: 19772.18, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `748`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 8976, - Discounts: 222.96, - Sales: 8753.04, - COGS: 5574, - Profit: 3179.04, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1021`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 357350, - Discounts: 4235, - Sales: 353115, - COGS: 314600, - Profit: 38515, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2076`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 14532, - Discounts: 177.03, - Sales: 14354.97, - COGS: 12645, - Profit: 1709.97, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `4316`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 51792, - Discounts: 173.4, - Sales: 51618.6, - COGS: 4335, - Profit: 47283.6, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2654`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 331750, - Discounts: 412.5, - Sales: 331337.5, - COGS: 39600, - Profit: 291737.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4174`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50088, - Discounts: 320.52, - Sales: 49767.48, - COGS: 8013, - Profit: 41754.48, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1675`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 20100, - Discounts: 91.92, - Sales: 20008.08, - COGS: 2298, - Profit: 17710.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1572`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 471600, - Discounts: 1482, - Sales: 470118, - COGS: 123500, - Profit: 346618, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3736`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1307600, - Discounts: 4889.5, - Sales: 1302710.5, - COGS: 363220, - Profit: 939490.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1914`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 669900, - Discounts: 7542.5, - Sales: 662357.5, - COGS: 560300, - Profit: 102057.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2742`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 41130, - Discounts: 332.1, - Sales: 40797.9, - COGS: 22140, - Profit: 18657.9, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1499`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 449700, - Discounts: 6903, - Sales: 442797, - COGS: 575250, - Profit: 132453, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 75440, - Discounts: 275.1, - Sales: 75164.9, - COGS: 13755, - Profit: 61409.9, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1112`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 7784, - Discounts: 128.1, - Sales: 7655.9, - COGS: 9150, - Profit: 1494.1, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1723`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 516900, - Discounts: 7494, - Sales: 509406, - COGS: 624500, - Profit: 115094, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `423`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 52875, - Discounts: 828.75, - Sales: 52046.25, - COGS: 79560, - Profit: 27513.75, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2368`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 35520, - Discounts: 227.1, - Sales: 35292.9, - COGS: 15140, - Profit: 20152.9, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 11102, - Discounts: 314.48, - Sales: 10787.52, - COGS: 22462.5, - Profit: 11674.98, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3386`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 423250, - Discounts: 908.75, - Sales: 422341.25, - COGS: 87240, - Profit: 335101.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `852`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 106500, - Discounts: 983.75, - Sales: 105516.25, - COGS: 94440, - Profit: 11076.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2783`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 347875, - Discounts: 2278.75, - Sales: 345596.25, - COGS: 218760, - Profit: 126836.25, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2684`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 40260, - Discounts: 112.05, - Sales: 40147.95, - COGS: 7470, - Profit: 32677.95, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4393`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 52716, - Discounts: 91.92, - Sales: 52624.08, - COGS: 2298, - Profit: 50326.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4083`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1224900, - Discounts: 8715, - Sales: 1216185, - COGS: 726250, - Profit: 489935, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2816`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 985600, - Discounts: 7542.5, - Sales: 978057.5, - COGS: 560300, - Profit: 417757.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4294`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 85880, - Discounts: 772.8, - Sales: 85107.2, - COGS: 38640, - Profit: 46467.2, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2856`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 19992, - Discounts: 25.34, - Sales: 19966.66, - COGS: 1810, - Profit: 18156.66, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1407`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 175875, - Discounts: 1153.75, - Sales: 174721.25, - COGS: 110760, - Profit: 63961.25, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3850`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 481250, - Discounts: 828.75, - Sales: 480421.25, - COGS: 79560, - Profit: 400861.25, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2856`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 19992, - Discounts: 146.44, - Sales: 19845.56, - COGS: 10460, - Profit: 9385.56, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1265`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 8855, - Discounts: 18.41, - Sales: 8836.59, - COGS: 1315, - Profit: 7521.59, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3892`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1362200, - Discounts: 3302.25, - Sales: 1358897.75, - COGS: 245310, - Profit: 1113587.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3068`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 383500, - Discounts: 908.75, - Sales: 382591.25, - COGS: 87240, - Profit: 295351.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2181`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 272625, - Discounts: 983.75, - Sales: 271641.25, - COGS: 94440, - Profit: 177201.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1356`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 406800, - Discounts: 2958, - Sales: 403842, - COGS: 246500, - Profit: 157342, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2545`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 763500, - Discounts: 1482, - Sales: 762018, - COGS: 123500, - Profit: 638518, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1814`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 634900, - Discounts: 4889.5, - Sales: 630010.5, - COGS: 363220, - Profit: 266790.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1495`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 186875, - Discounts: 2180, - Sales: 184695, - COGS: 209280, - Profit: 24585, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1154`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 13848, - Discounts: 238.68, - Sales: 13609.32, - COGS: 5967, - Profit: 7642.32, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `4180`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 62700, - Discounts: 48.15, - Sales: 62651.85, - COGS: 3210, - Profit: 59441.85, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1463`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 182875, - Discounts: 1856.25, - Sales: 181018.75, - COGS: 89100, - Profit: 91918.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `215`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 2580, - Discounts: 310.8, - Sales: 2269.2, - COGS: 3885, - Profit: 1615.8, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `4099`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 1229700, - Discounts: 1284, - Sales: 1228416, - COGS: 53500, - Profit: 1174916, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2660`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 18620, - Discounts: 300.3, - Sales: 18319.7, - COGS: 10725, - Profit: 7594.7, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `566`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 198100, - Discounts: 19964, - Sales: 178136, - COGS: 741520, - Profit: 563384, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3255`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 39060, - Discounts: 274.08, - Sales: 38785.92, - COGS: 3426, - Profit: 35359.92, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 15440, - Discounts: 626.4, - Sales: 14813.6, - COGS: 15660, - Profit: 846.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1135`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13620, - Discounts: 165.6, - Sales: 13454.4, - COGS: 2070, - Profit: 11384.4, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3826`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 478250, - Discounts: 4150, - Sales: 474100, - COGS: 199200, - Profit: 274900, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 17895, - Discounts: 708.9, - Sales: 17186.1, - COGS: 23630, - Profit: 6443.9, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2530`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 759000, - Discounts: 5508, - Sales: 753492, - COGS: 229500, - Profit: 523992, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3451`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1035300, - Discounts: 10368, - Sales: 1024932, - COGS: 432000, - Profit: 592932, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3059`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 36708, - Discounts: 274.08, - Sales: 36433.92, - COGS: 3426, - Profit: 33007.92, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3957`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 494625, - Discounts: 1655, - Sales: 492970, - COGS: 79440, - Profit: 413530, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3444`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 41328, - Discounts: 310.8, - Sales: 41017.2, - COGS: 3885, - Profit: 37132.2, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4388`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 548500, - Discounts: 2022.5, - Sales: 546477.5, - COGS: 97080, - Profit: 449397.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2106`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 263250, - Discounts: 5362.5, - Sales: 257887.5, - COGS: 257400, - Profit: 487.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `799`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 9588, - Discounts: 428.4, - Sales: 9159.6, - COGS: 5355, - Profit: 3804.6, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3154`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 946200, - Discounts: 11496, - Sales: 934704, - COGS: 479000, - Profit: 455704, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4108`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1437800, - Discounts: 19964, - Sales: 1417836, - COGS: 741520, - Profit: 676316, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3760`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 470000, - Discounts: 6822.5, - Sales: 463177.5, - COGS: 327480, - Profit: 135697.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `377`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 5655, - Discounts: 577.5, - Sales: 5077.5, - COGS: 19250, - Profit: 14172.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2110`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14770, - Discounts: 281.82, - Sales: 14488.18, - COGS: 10065, - Profit: 4423.18, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2334`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 28008, - Discounts: 253.2, - Sales: 27754.8, - COGS: 3165, - Profit: 24589.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `580`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 6960, - Discounts: 260.16, - Sales: 6699.84, - COGS: 3252, - Profit: 3447.84, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2610`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 52200, - Discounts: 626.4, - Sales: 51573.6, - COGS: 15660, - Profit: 35913.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1598`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 559300, - Discounts: 20762, - Sales: 538538, - COGS: 771160, - Profit: 232622, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1459`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 510650, - Discounts: 20139, - Sales: 490511, - COGS: 748020, - Profit: 257509, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3284`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 410500, - Discounts: 2022.5, - Sales: 408477.5, - COGS: 97080, - Profit: 311397.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1197`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 149625, - Discounts: 5362.5, - Sales: 144262.5, - COGS: 257400, - Profit: 113137.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3774`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 45288, - Discounts: 253.2, - Sales: 45034.8, - COGS: 3165, - Profit: 41869.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2303`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 46060, - Discounts: 217.6, - Sales: 45842.4, - COGS: 5440, - Profit: 40402.4, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2572`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 30864, - Discounts: 260.16, - Sales: 30603.84, - COGS: 3252, - Profit: 27351.84, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `320`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 40000, - Discounts: 1655, - Sales: 38345, - COGS: 79440, - Profit: 41095, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2126`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 637800, - Discounts: 1284, - Sales: 636516, - COGS: 53500, - Profit: 583016, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3275`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1146250, - Discounts: 20139, - Sales: 1126111, - COGS: 748020, - Profit: 378091, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3582`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 447750, - Discounts: 6822.5, - Sales: 440927.5, - COGS: 327480, - Profit: 113447.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `783`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 274050, - Discounts: 1862, - Sales: 272188, - COGS: 69160, - Profit: 203028, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1202`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 420700, - Discounts: 13580, - Sales: 407120, - COGS: 504400, - Profit: 97280, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4056`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1216800, - Discounts: 1554, - Sales: 1215246, - COGS: 64750, - Profit: 1150496, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2144`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 643200, - Discounts: 6606, - Sales: 636594, - COGS: 275250, - Profit: 361344, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3502`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 437750, - Discounts: 5690, - Sales: 432060, - COGS: 273120, - Profit: 158940, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1397`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 488950, - Discounts: 20762, - Sales: 468188, - COGS: 771160, - Profit: 302972, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `679`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 13580, - Discounts: 494.4, - Sales: 13085.6, - COGS: 12360, - Profit: 725.6, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2351`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 47020, - Discounts: 376.4, - Sales: 46643.6, - COGS: 9410, - Profit: 37233.6, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2043`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 612900, - Discounts: 11496, - Sales: 601404, - COGS: 479000, - Profit: 122404, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3565`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 445625, - Discounts: 15913.13, - Sales: 429711.88, - COGS: 509220, - Profit: 79508.13, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1401`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 28020, - Discounts: 1548, - Sales: 26472, - COGS: 25800, - Profit: 672, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2077`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 623100, - Discounts: 6201, - Sales: 616899, - COGS: 172250, - Profit: 444649, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3643`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 43716, - Discounts: 700.92, - Sales: 43015.08, - COGS: 5841, - Profit: 37174.08, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1105`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 13260, - Discounts: 326.88, - Sales: 12933.12, - COGS: 2724, - Profit: 10209.12, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2960`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20720, - Discounts: 411.18, - Sales: 20308.82, - COGS: 9790, - Profit: 10518.82, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1201`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 14412, - Discounts: 684.36, - Sales: 13727.64, - COGS: 5703, - Profit: 8024.64, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2321`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 16247, - Discounts: 114.24, - Sales: 16132.76, - COGS: 2720, - Profit: 13412.76, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3640`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1274000, - Discounts: 18868.5, - Sales: 1255131.5, - COGS: 467220, - Profit: 787911.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3972`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 496500, - Discounts: 4826.25, - Sales: 491673.75, - COGS: 154440, - Profit: 337233.75, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3878`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 484750, - Discounts: 6397.5, - Sales: 478352.5, - COGS: 204720, - Profit: 273632.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2278`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 683400, - Discounts: 21910.5, - Sales: 661489.5, - COGS: 608625, - Profit: 52864.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1075`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 134375, - Discounts: 6652.5, - Sales: 127722.5, - COGS: 212880, - Profit: 85157.5, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4050`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 48600, - Discounts: 684.36, - Sales: 47915.64, - COGS: 5703, - Profit: 42212.64, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3035`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 910500, - Discounts: 6201, - Sales: 904299, - COGS: 172250, - Profit: 732049, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3636`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 454500, - Discounts: 5887.5, - Sales: 448612.5, - COGS: 188400, - Profit: 260212.5, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1379`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 16548, - Discounts: 493.02, - Sales: 16054.98, - COGS: 4108.5, - Profit: 11946.48, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4492`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 561500, - Discounts: 7533.75, - Sales: 553966.25, - COGS: 241080, - Profit: 312886.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `764`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 11460, - Discounts: 875.25, - Sales: 10584.75, - COGS: 19450, - Profit: 8865.25, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1744`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 218000, - Discounts: 4826.25, - Sales: 213173.75, - COGS: 154440, - Profit: 58733.75, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2341`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 292625, - Discounts: 6397.5, - Sales: 286227.5, - COGS: 204720, - Profit: 81507.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3835`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 479375, - Discounts: 7533.75, - Sales: 471841.25, - COGS: 241080, - Profit: 230761.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1161`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 348300, - Discounts: 25596, - Sales: 322704, - COGS: 711000, - Profit: 388296, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `876`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10512, - Discounts: 689.76, - Sales: 9822.24, - COGS: 5748, - Profit: 4074.24, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1705`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 213125, - Discounts: 5887.5, - Sales: 207237.5, - COGS: 188400, - Profit: 18837.5, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1805`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 541500, - Discounts: 16866, - Sales: 524634, - COGS: 468500, - Profit: 56134, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `389`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 136150, - Discounts: 17241, - Sales: 118909, - COGS: 426920, - Profit: 308011, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2745`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 41175, - Discounts: 875.25, - Sales: 40299.75, - COGS: 19450, - Profit: 20849.75, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1459`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 29180, - Discounts: 498.6, - Sales: 28681.4, - COGS: 8310, - Profit: 20371.4, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3938`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 27566, - Discounts: 369.6, - Sales: 27196.4, - COGS: 8800, - Profit: 18396.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4236`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 84720, - Discounts: 2310.3, - Sales: 82409.7, - COGS: 38505, - Profit: 43904.7, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3627`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 43524, - Discounts: 892.44, - Sales: 42631.56, - COGS: 7437, - Profit: 35194.56, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1756`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 26340, - Discounts: 1218.6, - Sales: 25121.4, - COGS: 20310, - Profit: 4811.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `307`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 4605, - Discounts: 1218.6, - Sales: 3386.4, - COGS: 20310, - Profit: 16923.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4489`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 67335, - Discounts: 1356.6, - Sales: 65978.4, - COGS: 22610, - Profit: 43368.4, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2167`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 43340, - Discounts: 588.8, - Sales: 42751.2, - COGS: 7360, - Profit: 35391.2, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1137`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 7959, - Discounts: 798.28, - Sales: 7160.72, - COGS: 14255, - Profit: 7094.28, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1222`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 366600, - Discounts: 24252, - Sales: 342348, - COGS: 505250, - Profit: 162902, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `489`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 171150, - Discounts: 3836, - Sales: 167314, - COGS: 71240, - Profit: 96074, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4133`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 61995, - Discounts: 1180.2, - Sales: 60814.8, - COGS: 19670, - Profit: 41144.8, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2743`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 822900, - Discounts: 22308, - Sales: 800592, - COGS: 464750, - Profit: 335842, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3699`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 25893, - Discounts: 798.28, - Sales: 25094.72, - COGS: 14255, - Profit: 10839.72, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `4460`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1338000, - Discounts: 24252, - Sales: 1313748, - COGS: 505250, - Profit: 808498, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1232`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 154000, - Discounts: 5690, - Sales: 148310, - COGS: 136560, - Profit: 11750, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 18102, - Discounts: 1190.28, - Sales: 16911.72, - COGS: 21255, - Profit: 4343.28, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1332`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 166500, - Discounts: 3975, - Sales: 162525, - COGS: 95400, - Profit: 67125, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4487`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1346100, - Discounts: 16974, - Sales: 1329126, - COGS: 353625, - Profit: 975501, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3862`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1158600, - Discounts: 35016, - Sales: 1123584, - COGS: 729500, - Profit: 394084, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1765`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 617750, - Discounts: 48300, - Sales: 569450, - COGS: 897000, - Profit: 327550, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3533`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 441625, - Discounts: 14940, - Sales: 426685, - COGS: 358560, - Profit: 68125, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2016`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 30240, - Discounts: 130.8, - Sales: 30109.2, - COGS: 2180, - Profit: 27929.2, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2938`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 58760, - Discounts: 1659.2, - Sales: 57100.8, - COGS: 20740, - Profit: 36360.8, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3352`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67040, - Discounts: 844.8, - Sales: 66195.2, - COGS: 10560, - Profit: 55635.2, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4409`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 66135, - Discounts: 402.6, - Sales: 65732.4, - COGS: 6710, - Profit: 59022.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3323`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 49845, - Discounts: 908.4, - Sales: 48936.6, - COGS: 15140, - Profit: 33796.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2430`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 850500, - Discounts: 3836, - Sales: 846664, - COGS: 71240, - Profit: 775424, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `535`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 66875, - Discounts: 5690, - Sales: 61185, - COGS: 136560, - Profit: 75375, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1523`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 18276, - Discounts: 703.2, - Sales: 17572.8, - COGS: 4395, - Profit: 13177.8, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3631`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 72620, - Discounts: 2116.8, - Sales: 70503.2, - COGS: 26460, - Profit: 44043.2, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1782`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 623700, - Discounts: 30478, - Sales: 593222, - COGS: 566020, - Profit: 27202, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `347`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 4164, - Discounts: 415.68, - Sales: 3748.32, - COGS: 2598, - Profit: 1150.32, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `4147`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1451450, - Discounts: 4886, - Sales: 1446564, - COGS: 90740, - Profit: 1355824, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3509`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1228150, - Discounts: 30478, - Sales: 1197672, - COGS: 566020, - Profit: 631652, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2774`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 41610, - Discounts: 908.4, - Sales: 40701.6, - COGS: 15140, - Profit: 25561.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2943`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1030050, - Discounts: 26110, - Sales: 1003940, - COGS: 484900, - Profit: 519040, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `4037`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 504625, - Discounts: 5370, - Sales: 499255, - COGS: 128880, - Profit: 370375, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4146`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1451100, - Discounts: 26698, - Sales: 1424402, - COGS: 495820, - Profit: 928582, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `4123`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 61845, - Discounts: 402.6, - Sales: 61442.4, - COGS: 6710, - Profit: 54732.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1337`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 467950, - Discounts: 24892, - Sales: 443058, - COGS: 462280, - Profit: 19222, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `599`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 4193, - Discounts: 405.65, - Sales: 3787.35, - COGS: 5795, - Profit: 2007.65, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `725`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 5075, - Discounts: 480.2, - Sales: 4594.8, - COGS: 6860, - Profit: 2265.2, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `477`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 3339, - Discounts: 822.15, - Sales: 2516.85, - COGS: 11745, - Profit: 9228.15, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2325`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 16275, - Discounts: 941.15, - Sales: 15333.85, - COGS: 13445, - Profit: 1888.85, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `675`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 8100, - Discounts: 1458.6, - Sales: 6641.4, - COGS: 7293, - Profit: 651.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2990`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 35880, - Discounts: 1458.6, - Sales: 34421.4, - COGS: 7293, - Profit: 27128.4, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1072`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 7504, - Discounts: 941.15, - Sales: 6562.85, - COGS: 13445, - Profit: 6882.15, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1048`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 7336, - Discounts: 589.05, - Sales: 6746.95, - COGS: 8415, - Profit: 1668.05, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `469`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 5628, - Discounts: 673.8, - Sales: 4954.2, - COGS: 3369, - Profit: 1585.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `804`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 5628, - Discounts: 405.65, - Sales: 5222.35, - COGS: 5795, - Profit: 572.65, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4240`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50880, - Discounts: 1119, - Sales: 49761, - COGS: 5595, - Profit: 44166, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1976`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 23712, - Discounts: 669.6, - Sales: 23042.4, - COGS: 3348, - Profit: 19694.4, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1984`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39680, - Discounts: 1563, - Sales: 38117, - COGS: 15630, - Profit: 22487, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `480`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 144000, - Discounts: 14865, - Sales: 129135, - COGS: 247750, - Profit: 118615, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `3551`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 24857, - Discounts: 355.6, - Sales: 24501.4, - COGS: 5080, - Profit: 19421.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1205`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 18075, - Discounts: 2093.25, - Sales: 15981.75, - COGS: 27910, - Profit: 11928.25, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2480`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 17360, - Discounts: 199.5, - Sales: 17160.5, - COGS: 2850, - Profit: 14310.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2926`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 20482, - Discounts: 870.45, - Sales: 19611.55, - COGS: 12435, - Profit: 7176.55, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3210`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1123500, - Discounts: 24228.75, - Sales: 1099271.25, - COGS: 359970, - Profit: 739301.25, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3221`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 402625, - Discounts: 22668.75, - Sales: 379956.25, - COGS: 435240, - Profit: 55283.75, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2389`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 836150, - Discounts: 12600, - Sales: 823550, - COGS: 187200, - Profit: 636350, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1127`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13524, - Discounts: 1405.2, - Sales: 12118.8, - COGS: 7026, - Profit: 5092.8, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `319`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 95700, - Discounts: 16500, - Sales: 79200, - COGS: 275000, - Profit: 195800, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1610`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 32200, - Discounts: 1303, - Sales: 30897, - COGS: 13030, - Profit: 17867, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4100`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 512500, - Discounts: 18700, - Sales: 493800, - COGS: 359040, - Profit: 134760, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1012`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 126500, - Discounts: 14906.25, - Sales: 111593.75, - COGS: 286200, - Profit: 174606.25, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3337`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1001100, - Discounts: 24105, - Sales: 976995, - COGS: 401750, - Profit: 575245, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3955`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 27685, - Discounts: 814.45, - Sales: 26870.55, - COGS: 11635, - Profit: 15235.55, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4347`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1304100, - Discounts: 14865, - Sales: 1289235, - COGS: 247750, - Profit: 1041485, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1548`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 541800, - Discounts: 10535, - Sales: 531265, - COGS: 156520, - Profit: 374745, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2153`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 32295, - Discounts: 1965, - Sales: 30330, - COGS: 26200, - Profit: 4130, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3789`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1326150, - Discounts: 21490, - Sales: 1304660, - COGS: 319280, - Profit: 985380, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4364`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 87280, - Discounts: 1389, - Sales: 85891, - COGS: 13890, - Profit: 72001, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4126`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 515750, - Discounts: 5381.25, - Sales: 510368.75, - COGS: 103320, - Profit: 407048.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1343`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 167875, - Discounts: 4400, - Sales: 163475, - COGS: 84480, - Profit: 78995, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `245`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 4900, - Discounts: 1802, - Sales: 3098, - COGS: 18020, - Profit: 14922, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3376`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67520, - Discounts: 2663, - Sales: 64857, - COGS: 26630, - Profit: 38227, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1401`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 9807, - Discounts: 747.6, - Sales: 9059.4, - COGS: 10680, - Profit: 1620.6, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3483`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 52245, - Discounts: 1587, - Sales: 50658, - COGS: 21160, - Profit: 29498, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2244`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 33660, - Discounts: 416.25, - Sales: 33243.75, - COGS: 5550, - Profit: 27693.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1360`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 20400, - Discounts: 2145.75, - Sales: 18254.25, - COGS: 28610, - Profit: 10355.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `279`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 34875, - Discounts: 5043.75, - Sales: 29831.25, - COGS: 96840, - Profit: 67008.75, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2521`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 882350, - Discounts: 10535, - Sales: 871815, - COGS: 156520, - Profit: 715295, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2433`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 48660, - Discounts: 2832, - Sales: 45828, - COGS: 28320, - Profit: 17508, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1738`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 34760, - Discounts: 1579, - Sales: 33181, - COGS: 15790, - Profit: 17391, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1106`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 138250, - Discounts: 5381.25, - Sales: 132868.75, - COGS: 103320, - Profit: 29548.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3379`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 422375, - Discounts: 4400, - Sales: 417975, - COGS: 84480, - Profit: 333495, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1221`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 24420, - Discounts: 1033, - Sales: 23387, - COGS: 10330, - Profit: 13057, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `213`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 63900, - Discounts: 18750, - Sales: 45150, - COGS: 312500, - Profit: 267350, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3335`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 66700, - Discounts: 1389, - Sales: 65311, - COGS: 13890, - Profit: 51421, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1260`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 25200, - Discounts: 1265, - Sales: 23935, - COGS: 12650, - Profit: 11285, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3034`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 60680, - Discounts: 2297, - Sales: 58383, - COGS: 22970, - Profit: 35413, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2929`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 58580, - Discounts: 2663, - Sales: 55917, - COGS: 26630, - Profit: 29287, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2389`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 16723, - Discounts: 199.5, - Sales: 16523.5, - COGS: 2850, - Profit: 13673.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3086`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 21602, - Discounts: 870.45, - Sales: 20731.55, - COGS: 12435, - Profit: 8296.55, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `745`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 260750, - Discounts: 23625, - Sales: 237125, - COGS: 351000, - Profit: 113875, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1266`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 443100, - Discounts: 9660, - Sales: 433440, - COGS: 143520, - Profit: 289920, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3790`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1326500, - Discounts: 21490, - Sales: 1305010, - COGS: 319280, - Profit: 985730, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4287`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1286100, - Discounts: 18750, - Sales: 1267350, - COGS: 312500, - Profit: 954850, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 47895, - Discounts: 3420.9, - Sales: 44474.1, - COGS: 38010, - Profit: 6464.1, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1967`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39340, - Discounts: 1341, - Sales: 37999, - COGS: 11175, - Profit: 26824, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `631`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 9465, - Discounts: 2559.6, - Sales: 6905.4, - COGS: 28440, - Profit: 21534.6, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3469`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 41628, - Discounts: 404.64, - Sales: 41223.36, - COGS: 1686, - Profit: 39537.36, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `570`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 6840, - Discounts: 1655.28, - Sales: 5184.72, - COGS: 6897, - Profit: 1712.28, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3215`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 48225, - Discounts: 1827, - Sales: 46398, - COGS: 20300, - Profit: 26098, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3754`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 26278, - Discounts: 110.46, - Sales: 26167.54, - COGS: 1315, - Profit: 24852.54, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2187`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 273375, - Discounts: 6652.5, - Sales: 266722.5, - COGS: 106440, - Profit: 160282.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1959`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 685650, - Discounts: 20580, - Sales: 665070, - COGS: 254800, - Profit: 410270, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2181`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 763350, - Discounts: 30660, - Sales: 732690, - COGS: 379600, - Profit: 353090, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3559`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 24913, - Discounts: 589.26, - Sales: 24323.74, - COGS: 7015, - Profit: 17308.74, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2205`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 26460, - Discounts: 1960.56, - Sales: 24499.44, - COGS: 8169, - Profit: 16330.44, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1890`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 661500, - Discounts: 31416, - Sales: 630084, - COGS: 388960, - Profit: 241124, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1296`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 15552, - Discounts: 1655.28, - Sales: 13896.72, - COGS: 6897, - Profit: 6999.72, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `775`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 271250, - Discounts: 15267, - Sales: 255983, - COGS: 189020, - Profit: 66963, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2417`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 302125, - Discounts: 7140, - Sales: 294985, - COGS: 114240, - Profit: 180745, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1158`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 144750, - Discounts: 20662.5, - Sales: 124087.5, - COGS: 330600, - Profit: 206512.5, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `803`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 12045, - Discounts: 1377, - Sales: 10668, - COGS: 15300, - Profit: 4632, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3705`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1296750, - Discounts: 31416, - Sales: 1265334, - COGS: 388960, - Profit: 876374, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `589`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 4123, - Discounts: 629.16, - Sales: 3493.84, - COGS: 7490, - Profit: 3996.16, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3797`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1139100, - Discounts: 21978, - Sales: 1117122, - COGS: 305250, - Profit: 811872, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1321`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 462350, - Discounts: 43596, - Sales: 418754, - COGS: 539760, - Profit: 121006, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3999`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 59985, - Discounts: 2559.6, - Sales: 57425.4, - COGS: 28440, - Profit: 28985.4, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4256`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 29792, - Discounts: 629.16, - Sales: 29162.84, - COGS: 7490, - Profit: 21672.84, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1643`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 492900, - Discounts: 21978, - Sales: 470922, - COGS: 305250, - Profit: 165672, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1912`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 38240, - Discounts: 1347.6, - Sales: 36892.4, - COGS: 11230, - Profit: 25662.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1610`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 483000, - Discounts: 43848, - Sales: 439152, - COGS: 609000, - Profit: 169848, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2160`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 270000, - Discounts: 14906.25, - Sales: 255093.75, - COGS: 238500, - Profit: 16593.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `466`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 163100, - Discounts: 35259, - Sales: 127841, - COGS: 436540, - Profit: 308699, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `328`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 114800, - Discounts: 15267, - Sales: 99533, - COGS: 189020, - Profit: 89487, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `4099`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 28693, - Discounts: 589.26, - Sales: 28103.74, - COGS: 7015, - Profit: 21088.74, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `990`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 346500, - Discounts: 43596, - Sales: 302904, - COGS: 539760, - Profit: 236856, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1433`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 28660, - Discounts: 2108.4, - Sales: 26551.6, - COGS: 17570, - Profit: 8981.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1478`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 22170, - Discounts: 1978.2, - Sales: 20191.8, - COGS: 21980, - Profit: 1788.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3798`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 56970, - Discounts: 1568.7, - Sales: 55401.3, - COGS: 17430, - Profit: 37971.3, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `447`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 6705, - Discounts: 1037.7, - Sales: 5667.3, - COGS: 11530, - Profit: 5862.7, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1711`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34220, - Discounts: 2108.4, - Sales: 32111.6, - COGS: 17570, - Profit: 14541.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `745`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 14900, - Discounts: 1201.2, - Sales: 13698.8, - COGS: 10010, - Profit: 3688.8, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1732`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 12124, - Discounts: 559.86, - Sales: 11564.14, - COGS: 6665, - Profit: 4899.14, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1759`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 26385, - Discounts: 1037.7, - Sales: 25347.3, - COGS: 11530, - Profit: 13817.3, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `338`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 4056, - Discounts: 610.68, - Sales: 3445.32, - COGS: 2181, - Profit: 1264.32, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3911`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 46932, - Discounts: 1582.56, - Sales: 45349.44, - COGS: 5652, - Profit: 39697.44, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3691`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 73820, - Discounts: 2567.6, - Sales: 71252.4, - COGS: 18340, - Profit: 52912.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `4473`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 53676, - Discounts: 1965.6, - Sales: 51710.4, - COGS: 7020, - Profit: 44690.4, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `383`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 4596, - Discounts: 1967.28, - Sales: 2628.72, - COGS: 7026, - Profit: 4397.28, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3105`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 21735, - Discounts: 505.19, - Sales: 21229.81, - COGS: 5155, - Profit: 16074.81, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1062`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 15930, - Discounts: 1325.1, - Sales: 14604.9, - COGS: 12620, - Profit: 1984.9, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4083`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 28581, - Discounts: 556.15, - Sales: 28024.85, - COGS: 5675, - Profit: 22349.85, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3974`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 27818, - Discounts: 268.03, - Sales: 27549.97, - COGS: 2735, - Profit: 24814.97, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3723`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 26061, - Discounts: 775.18, - Sales: 25285.82, - COGS: 7910, - Profit: 17375.82, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2435`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 29220, - Discounts: 1460.34, - Sales: 27759.66, - COGS: 5215.5, - Profit: 22544.16, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1678`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 20136, - Discounts: 1860.6, - Sales: 18275.4, - COGS: 6645, - Profit: 11630.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1763`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 12341, - Discounts: 775.18, - Sales: 11565.82, - COGS: 7910, - Profit: 3655.82, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4473`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 31311, - Discounts: 556.15, - Sales: 30754.85, - COGS: 5675, - Profit: 25079.85, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1246`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 436100, - Discounts: 43144.5, - Sales: 392955.5, - COGS: 457860, - Profit: 64904.5, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1615`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 484500, - Discounts: 9408, - Sales: 475092, - COGS: 112000, - Profit: 363092, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `749`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 224700, - Discounts: 45801, - Sales: 178899, - COGS: 545250, - Profit: 366351, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1318`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 26360, - Discounts: 2766.4, - Sales: 23593.6, - COGS: 19760, - Profit: 3833.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2882`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 864600, - Discounts: 45801, - Sales: 818799, - COGS: 545250, - Profit: 273549, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3039`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 379875, - Discounts: 21875, - Sales: 358000, - COGS: 300000, - Profit: 58000, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2484`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 745200, - Discounts: 35742, - Sales: 709458, - COGS: 425500, - Profit: 283958, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3169`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 950700, - Discounts: 9408, - Sales: 941292, - COGS: 112000, - Profit: 829292, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 510000, - Discounts: 30738.75, - Sales: 479261.25, - COGS: 421560, - Profit: 57701.25, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3943`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 59145, - Discounts: 2206.05, - Sales: 56938.95, - COGS: 21010, - Profit: 35928.95, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `784`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 11760, - Discounts: 3077.55, - Sales: 8682.45, - COGS: 29310, - Profit: 20627.55, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `253`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 5060, - Discounts: 2149, - Sales: 2911, - COGS: 15350, - Profit: 12439, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1316`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 394800, - Discounts: 23583, - Sales: 371217, - COGS: 280750, - Profit: 90467, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `808`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 242400, - Discounts: 29484, - Sales: 212916, - COGS: 351000, - Profit: 138084, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3295`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 39540, - Discounts: 2320.92, - Sales: 37219.08, - COGS: 8289, - Profit: 28930.08, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `520`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 3640, - Discounts: 1041.25, - Sales: 2598.75, - COGS: 10625, - Profit: 8026.25, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `799`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 239700, - Discounts: 34839, - Sales: 204861, - COGS: 414750, - Profit: 209889, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3942`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 78840, - Discounts: 852.6, - Sales: 77987.4, - COGS: 6090, - Profit: 71897.4, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2498`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 312250, - Discounts: 18261.25, - Sales: 293988.75, - COGS: 250440, - Profit: 43548.75, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2517`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 50340, - Discounts: 2766.4, - Sales: 47573.6, - COGS: 19760, - Profit: 27813.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3182`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 63640, - Discounts: 1989.4, - Sales: 61650.6, - COGS: 14210, - Profit: 47440.6, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1145`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 343500, - Discounts: 28812, - Sales: 314688, - COGS: 343000, - Profit: 28312, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `895`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 17900, - Discounts: 823.2, - Sales: 17076.8, - COGS: 5880, - Profit: 11196.8, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3814`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 45768, - Discounts: 2725.38, - Sales: 43042.62, - COGS: 9733.5, - Profit: 33309.12, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1188`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 356400, - Discounts: 20139, - Sales: 336261, - COGS: 239750, - Profit: 96511, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2233`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 669900, - Discounts: 57687, - Sales: 612213, - COGS: 686750, - Profit: 74537, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `421`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 52625, - Discounts: 14393.75, - Sales: 38231.25, - COGS: 197400, - Profit: 159168.75, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `269`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 94150, - Discounts: 70462, - Sales: 23688, - COGS: 747760, - Profit: 724072, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3766`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 470750, - Discounts: 8697.5, - Sales: 462052.5, - COGS: 119280, - Profit: 342772.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `952`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19040, - Discounts: 1565.2, - Sales: 17474.8, - COGS: 11180, - Profit: 6294.8, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2964`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 889200, - Discounts: 28812, - Sales: 860388, - COGS: 343000, - Profit: 517388, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1505`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 10535, - Discounts: 273.28, - Sales: 10261.72, - COGS: 2440, - Profit: 7821.72, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1678`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 33560, - Discounts: 2051.2, - Sales: 31508.8, - COGS: 12820, - Profit: 18688.8, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4249`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 29743, - Discounts: 143.92, - Sales: 29599.08, - COGS: 1285, - Profit: 28314.08, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1677`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 33540, - Discounts: 2051.2, - Sales: 31488.8, - COGS: 12820, - Profit: 18668.8, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3051`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 381375, - Discounts: 15400, - Sales: 365975, - COGS: 184800, - Profit: 181175, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3372`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 50580, - Discounts: 588, - Sales: 49992, - COGS: 4900, - Profit: 45092, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1686`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 590100, - Discounts: 38136, - Sales: 551964, - COGS: 354120, - Profit: 197844, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3086`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 46290, - Discounts: 3001.2, - Sales: 43288.8, - COGS: 25010, - Profit: 18278.8, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4150`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 83000, - Discounts: 1132.8, - Sales: 81867.2, - COGS: 7080, - Profit: 74787.2, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3027`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 60540, - Discounts: 1032, - Sales: 59508, - COGS: 6450, - Profit: 53058, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `4359`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1307700, - Discounts: 37488, - Sales: 1270212, - COGS: 390500, - Profit: 879712, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3628`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1088400, - Discounts: 30792, - Sales: 1057608, - COGS: 320750, - Profit: 736858, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1589`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 23835, - Discounts: 853.2, - Sales: 22981.8, - COGS: 7110, - Profit: 15871.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2679`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 334875, - Discounts: 11140, - Sales: 323735, - COGS: 133680, - Profit: 190055, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3401`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 23807, - Discounts: 705.04, - Sales: 23101.96, - COGS: 6295, - Profit: 16806.96, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2815`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19705, - Discounts: 613.2, - Sales: 19091.8, - COGS: 5475, - Profit: 13616.8, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2964`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 59280, - Discounts: 2185.6, - Sales: 57094.4, - COGS: 13660, - Profit: 43434.4, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4173`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1251900, - Discounts: 59040, - Sales: 1192860, - COGS: 615000, - Profit: 577860, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1157`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 8099, - Discounts: 379.68, - Sales: 7719.32, - COGS: 3390, - Profit: 4329.32, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3065`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 21455, - Discounts: 894.88, - Sales: 20560.12, - COGS: 7990, - Profit: 12570.12, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1962`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 13734, - Discounts: 1349.04, - Sales: 12384.96, - COGS: 12045, - Profit: 339.96, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 81600, - Discounts: 3094.4, - Sales: 78505.6, - COGS: 19340, - Profit: 59165.6, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1713`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34260, - Discounts: 4788.8, - Sales: 29471.2, - COGS: 29930, - Profit: 458.8, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2795`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 978250, - Discounts: 60088, - Sales: 918162, - COGS: 557960, - Profit: 360202, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4082`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 28574, - Discounts: 1089.76, - Sales: 27484.24, - COGS: 9730, - Profit: 17754.24, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1691`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 591850, - Discounts: 38136, - Sales: 553714, - COGS: 354120, - Profit: 199594, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2305`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 27660, - Discounts: 574.08, - Sales: 27085.92, - COGS: 1794, - Profit: 25291.92, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3401`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 23807, - Discounts: 1627.92, - Sales: 22179.08, - COGS: 14535, - Profit: 7644.08, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2288`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 16016, - Discounts: 1309.28, - Sales: 14706.72, - COGS: 11690, - Profit: 3016.72, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2399`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 719700, - Discounts: 9264, - Sales: 710436, - COGS: 96500, - Profit: 613936, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4086`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1225800, - Discounts: 15240, - Sales: 1210560, - COGS: 158750, - Profit: 1051810, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2651`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 927850, - Discounts: 16086, - Sales: 911764, - COGS: 149370, - Profit: 762394, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3971`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27797, - Discounts: 1309.28, - Sales: 26487.72, - COGS: 11690, - Profit: 14797.72, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2512`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 879200, - Discounts: 10668, - Sales: 868532, - COGS: 99060, - Profit: 769472, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2745`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 960750, - Discounts: 11816, - Sales: 948934, - COGS: 109720, - Profit: 839214, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1903`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 570900, - Discounts: 51216, - Sales: 519684, - COGS: 533500, - Profit: 13816, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `647`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 194100, - Discounts: 19392, - Sales: 174708, - COGS: 202000, - Profit: 27292, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2914`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 58280, - Discounts: 1132.8, - Sales: 57147.2, - COGS: 7080, - Profit: 50067.2, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1889`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 13223, - Discounts: 1627.92, - Sales: 11595.08, - COGS: 14535, - Profit: 2939.92, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1466`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 29320, - Discounts: 2185.6, - Sales: 27134.4, - COGS: 13660, - Profit: 13474.4, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `887`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 266100, - Discounts: 59040, - Sales: 207060, - COGS: 615000, - Profit: 407940, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `395`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 7900, - Discounts: 2432, - Sales: 5468, - COGS: 15200, - Profit: 9732, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1693`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 25395, - Discounts: 853.2, - Sales: 24541.8, - COGS: 7110, - Profit: 17431.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2459`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 29508, - Discounts: 1320, - Sales: 28188, - COGS: 4125, - Profit: 24063, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2649`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 794700, - Discounts: 15240, - Sales: 779460, - COGS: 158750, - Profit: 620710, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3608`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 72160, - Discounts: 698.4, - Sales: 71461.6, - COGS: 4365, - Profit: 67096.6, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1073`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 321900, - Discounts: 29538, - Sales: 292362, - COGS: 273500, - Profit: 18862, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1754`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 21048, - Discounts: 396.36, - Sales: 20651.64, - COGS: 1101, - Profit: 19550.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2167`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 650100, - Discounts: 102667.5, - Sales: 547432.5, - COGS: 950625, - Profit: 403192.5, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1319`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 461650, - Discounts: 52479, - Sales: 409171, - COGS: 433160, - Profit: 23989, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1679`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 503700, - Discounts: 8694, - Sales: 495006, - COGS: 80500, - Profit: 414506, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1252`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 15024, - Discounts: 2506.68, - Sales: 12517.32, - COGS: 6963, - Profit: 5554.32, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3493`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 436625, - Discounts: 20891.25, - Sales: 415733.75, - COGS: 222840, - Profit: 192893.75, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1697`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 11879, - Discounts: 1014.93, - Sales: 10864.07, - COGS: 8055, - Profit: 2809.07, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1156`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 144500, - Discounts: 31466.25, - Sales: 113033.75, - COGS: 335640, - Profit: 222606.25, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `726`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 217800, - Discounts: 9018, - Sales: 208782, - COGS: 83500, - Profit: 125282, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1153`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 345900, - Discounts: 69255, - Sales: 276645, - COGS: 641250, - Profit: 364605, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2720`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 952000, - Discounts: 76135.5, - Sales: 875864.5, - COGS: 628420, - Profit: 247444.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3658`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 54870, - Discounts: 4961.25, - Sales: 49908.75, - COGS: 36750, - Profit: 13158.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2950`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 885000, - Discounts: 29538, - Sales: 855462, - COGS: 273500, - Profit: 581962, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1821`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27315, - Discounts: 1656.45, - Sales: 25658.55, - COGS: 12270, - Profit: 13388.55, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4174`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 50088, - Discounts: 396.36, - Sales: 49691.64, - COGS: 1101, - Profit: 48590.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1127`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 338100, - Discounts: 35748, - Sales: 302352, - COGS: 331000, - Profit: 28648, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2209`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 26508, - Discounts: 1917, - Sales: 24591, - COGS: 5325, - Profit: 19266, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `862`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 107750, - Discounts: 31466.25, - Sales: 76283.75, - COGS: 335640, - Profit: 259356.25, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3805`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 57075, - Discounts: 330.75, - Sales: 56744.25, - COGS: 2450, - Profit: 54294.25, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1415`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 424500, - Discounts: 102424.5, - Sales: 322075.5, - COGS: 948375, - Profit: 626299.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2231`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 780850, - Discounts: 41170.5, - Sales: 739679.5, - COGS: 339820, - Profit: 399859.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3649`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 456125, - Discounts: 6378.75, - Sales: 449746.25, - COGS: 68040, - Profit: 381706.25, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2948`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 368500, - Discounts: 23737.5, - Sales: 344762.5, - COGS: 253200, - Profit: 91562.5, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3395`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1188250, - Discounts: 39973.5, - Sales: 1148276.5, - COGS: 329940, - Profit: 818336.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2650`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 31800, - Discounts: 2112.48, - Sales: 29687.52, - COGS: 5868, - Profit: 23819.52, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `585`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 175500, - Discounts: 71793, - Sales: 103707, - COGS: 664750, - Profit: 561043, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1316`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 460600, - Discounts: 42572.25, - Sales: 418027.75, - COGS: 351390, - Profit: 66637.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `4459`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 53508, - Discounts: 950.4, - Sales: 52557.6, - COGS: 2640, - Profit: 49917.6, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2711`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 813300, - Discounts: 50409, - Sales: 762891, - COGS: 466750, - Profit: 296141, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2621`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 31452, - Discounts: 2412.72, - Sales: 29039.28, - COGS: 6702, - Profit: 22337.28, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3613`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 54195, - Discounts: 1656.45, - Sales: 52538.55, - COGS: 12270, - Profit: 40268.55, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1847`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 230875, - Discounts: 9866.25, - Sales: 221008.75, - COGS: 105240, - Profit: 115768.75, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2996`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1048600, - Discounts: 65236.5, - Sales: 983363.5, - COGS: 538460, - Profit: 444903.5, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2838`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 993300, - Discounts: 39973.5, - Sales: 953326.5, - COGS: 329940, - Profit: 623386.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1302`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 19530, - Discounts: 1309.5, - Sales: 18220.5, - COGS: 9700, - Profit: 8520.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1536`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 30720, - Discounts: 3049.2, - Sales: 27670.8, - COGS: 16940, - Profit: 10730.8, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1291`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 25820, - Discounts: 1193.4, - Sales: 24626.6, - COGS: 6630, - Profit: 17996.6, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1213`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 8491, - Discounts: 515.97, - Sales: 7975.03, - COGS: 4095, - Profit: 3880.03, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2370`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 28440, - Discounts: 1706.4, - Sales: 26733.6, - COGS: 4740, - Profit: 21993.6, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1979`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 13853, - Discounts: 328.23, - Sales: 13524.77, - COGS: 2605, - Profit: 10919.77, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2879`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 57580, - Discounts: 1751.4, - Sales: 55828.6, - COGS: 9730, - Profit: 46098.6, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1707`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34140, - Discounts: 1868.4, - Sales: 32271.6, - COGS: 10380, - Profit: 21891.6, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2933`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 20531, - Discounts: 226.8, - Sales: 20304.2, - COGS: 1800, - Profit: 18504.2, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1014`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 12168, - Discounts: 2124.36, - Sales: 10043.64, - COGS: 5901, - Profit: 4142.64, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `693`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 10395, - Discounts: 3547.8, - Sales: 6847.2, - COGS: 26280, - Profit: 19432.8, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3741`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26187, - Discounts: 226.8, - Sales: 25960.2, - COGS: 1800, - Profit: 24160.2, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3116`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 62320, - Discounts: 4827.6, - Sales: 57492.4, - COGS: 26820, - Profit: 30672.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `3995`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27965, - Discounts: 328.23, - Sales: 27636.77, - COGS: 2605, - Profit: 25031.77, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `953`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19060, - Discounts: 1868.4, - Sales: 17191.6, - COGS: 10380, - Profit: 6811.6, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2530`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 37950, - Discounts: 2201.18, - Sales: 35748.82, - COGS: 16305, - Profit: 19443.82, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2565`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 30780, - Discounts: 330.48, - Sales: 30449.52, - COGS: 918, - Profit: 29531.52, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `4297`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 51564, - Discounts: 463.2, - Sales: 51100.8, - COGS: 1158, - Profit: 49942.8, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2871`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20097, - Discounts: 1629.6, - Sales: 18467.4, - COGS: 11640, - Profit: 6827.4, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3537`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 42444, - Discounts: 463.2, - Sales: 41980.8, - COGS: 1158, - Profit: 40822.8, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1598`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 199750, - Discounts: 43068.75, - Sales: 156681.25, - COGS: 413460, - Profit: 256778.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2616`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 327000, - Discounts: 18525, - Sales: 308475, - COGS: 177840, - Profit: 130635, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2836`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 992600, - Discounts: 80955, - Sales: 911645, - COGS: 601380, - Profit: 310265, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `4023`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 502875, - Discounts: 22550, - Sales: 480325, - COGS: 216480, - Profit: 263845, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3994`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 59910, - Discounts: 3108, - Sales: 56802, - COGS: 20720, - Profit: 36082, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2928`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 58560, - Discounts: 3908, - Sales: 54652, - COGS: 19540, - Profit: 35112, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2912`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 873600, - Discounts: 17730, - Sales: 855870, - COGS: 147750, - Profit: 708120, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3671`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 55065, - Discounts: 3250.5, - Sales: 51814.5, - COGS: 21670, - Profit: 30144.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2778`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 55560, - Discounts: 482, - Sales: 55078, - COGS: 2410, - Profit: 52668, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `405`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 6075, - Discounts: 1021.5, - Sales: 5053.5, - COGS: 6810, - Profit: 1756.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2013`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 30195, - Discounts: 765, - Sales: 29430, - COGS: 5100, - Profit: 24330, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2634`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 39510, - Discounts: 1185, - Sales: 38325, - COGS: 7900, - Profit: 30425, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4166`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1458100, - Discounts: 22365, - Sales: 1435735, - COGS: 166140, - Profit: 1269595, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `355`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 44375, - Discounts: 19950, - Sales: 24425, - COGS: 191520, - Profit: 167095, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2382`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 714600, - Discounts: 68820, - Sales: 645780, - COGS: 573500, - Profit: 72280, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `4170`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 83400, - Discounts: 482, - Sales: 82918, - COGS: 2410, - Profit: 80508, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `892`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 6244, - Discounts: 1865.5, - Sales: 4378.5, - COGS: 13325, - Profit: 8946.5, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2200`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 275000, - Discounts: 23950, - Sales: 251050, - COGS: 229920, - Profit: 21130, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3389`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1016700, - Discounts: 25590, - Sales: 991110, - COGS: 213250, - Profit: 777860, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2990`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 373750, - Discounts: 4262.5, - Sales: 369487.5, - COGS: 40920, - Profit: 328567.5, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4013`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 60195, - Discounts: 961.5, - Sales: 59233.5, - COGS: 6410, - Profit: 52823.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `739`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 258650, - Discounts: 98245, - Sales: 160405, - COGS: 729820, - Profit: 569415, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1989`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 596700, - Discounts: 12960, - Sales: 583740, - COGS: 108000, - Profit: 475740, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2991`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 897300, - Discounts: 68820, - Sales: 828480, - COGS: 573500, - Profit: 254980, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `4237`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 63555, - Discounts: 3250.5, - Sales: 60304.5, - COGS: 21670, - Profit: 38634.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1442`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 180250, - Discounts: 31612.5, - Sales: 148637.5, - COGS: 303480, - Profit: 154842.5, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2712`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 949200, - Discounts: 65450, - Sales: 883750, - COGS: 486200, - Profit: 397550, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1508`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 188500, - Discounts: 7237.5, - Sales: 181262.5, - COGS: 69480, - Profit: 111782.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4245`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1485750, - Discounts: 78400, - Sales: 1407350, - COGS: 582400, - Profit: 824950, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2630`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 789000, - Discounts: 89790, - Sales: 699210, - COGS: 748250, - Profit: 49040, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1182`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 14184, - Discounts: 4224.6, - Sales: 9959.4, - COGS: 10561.5, - Profit: 602.1, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1221`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 24420, - Discounts: 4078, - Sales: 20342, - COGS: 20390, - Profit: 48, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `963`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 11556, - Discounts: 3088.8, - Sales: 8467.2, - COGS: 7722, - Profit: 745.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3243`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1135050, - Discounts: 24745, - Sales: 1110305, - COGS: 183820, - Profit: 926485, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1120`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 16800, - Discounts: 3108, - Sales: 13692, - COGS: 20720, - Profit: 7028, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1174`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 352200, - Discounts: 25590, - Sales: 326610, - COGS: 213250, - Profit: 113360, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2541`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 30492, - Discounts: 1581.36, - Sales: 28910.64, - COGS: 3594, - Profit: 25316.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3246`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 22722, - Discounts: 1949.64, - Sales: 20772.36, - COGS: 12660, - Profit: 8112.36, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1531`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 18372, - Discounts: 1581.36, - Sales: 16790.64, - COGS: 3594, - Profit: 13196.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2526`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 37890, - Discounts: 633.6, - Sales: 37256.4, - COGS: 3840, - Profit: 33416.4, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1136`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 13632, - Discounts: 623.04, - Sales: 13008.96, - COGS: 1416, - Profit: 11592.96, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1983`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 13881, - Discounts: 1215.83, - Sales: 12665.17, - COGS: 7895, - Profit: 4770.17, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `3259`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 39108, - Discounts: 1326.6, - Sales: 37781.4, - COGS: 3015, - Profit: 34766.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `3267`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 49005, - Discounts: 5279.17, - Sales: 43725.82, - COGS: 31995, - Profit: 11730.82, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `2454`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 29448, - Discounts: 623.04, - Sales: 28824.96, - COGS: 1416, - Profit: 27408.96, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `2643`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 31716, - Discounts: 2556.84, - Sales: 29159.16, - COGS: 5811, - Profit: 23348.16, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `383`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 134050, - Discounts: 30492, - Sales: 103558, - COGS: 205920, - Profit: 102362, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2801`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 840300, - Discounts: 92763, - Sales: 747537, - COGS: 702750, - Profit: 44787, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1667`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 208375, - Discounts: 33563.75, - Sales: 174811.25, - COGS: 292920, - Profit: 118108.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3539`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 53085, - Discounts: 2574, - Sales: 50511, - COGS: 15600, - Profit: 34911, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `4226`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 29582, - Discounts: 2083.62, - Sales: 27498.38, - COGS: 13530, - Profit: 13968.38, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2220`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 777000, - Discounts: 29491, - Sales: 747509, - COGS: 199160, - Profit: 548349, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `776`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 15520, - Discounts: 6582.4, - Sales: 8937.6, - COGS: 29920, - Profit: 20982.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `553`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 8295, - Discounts: 3559.05, - Sales: 4735.95, - COGS: 21570, - Profit: 16834.05, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2107`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 632100, - Discounts: 28809, - Sales: 603291, - COGS: 218250, - Profit: 385041, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2468`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 49360, - Discounts: 2468.4, - Sales: 46891.6, - COGS: 11220, - Profit: 35671.6, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1905`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 666750, - Discounts: 81023.25, - Sales: 585726.75, - COGS: 547170, - Profit: 38556.75, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3658`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 43896, - Discounts: 5314.32, - Sales: 38581.68, - COGS: 12078, - Profit: 26503.68, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4301`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 51612, - Discounts: 3201.66, - Sales: 48410.34, - COGS: 7276.5, - Profit: 41133.84, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2446`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 48920, - Discounts: 5266.8, - Sales: 43653.2, - COGS: 23940, - Profit: 19713.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4209`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 63135, - Discounts: 3273.6, - Sales: 59861.4, - COGS: 19840, - Profit: 40021.4, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3353`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 419125, - Discounts: 33563.75, - Sales: 385561.25, - COGS: 292920, - Profit: 92641.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1401`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 28020, - Discounts: 6582.4, - Sales: 21437.6, - COGS: 29920, - Profit: 8482.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1865`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 559500, - Discounts: 45078, - Sales: 514422, - COGS: 341500, - Profit: 172922, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `463`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 9260, - Discounts: 6171, - Sales: 3089, - COGS: 28050, - Profit: 24961, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4177`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 62655, - Discounts: 1080.75, - Sales: 61574.25, - COGS: 6550, - Profit: 55024.25, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2523`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 883050, - Discounts: 13244, - Sales: 869806, - COGS: 89440, - Profit: 780366, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1930`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 13510, - Discounts: 1392.16, - Sales: 12117.84, - COGS: 9040, - Profit: 3077.84, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1301`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 15612, - Discounts: 2288.88, - Sales: 13323.12, - COGS: 5202, - Profit: 8121.12, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4125`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 515625, - Discounts: 7617.5, - Sales: 508007.5, - COGS: 66480, - Profit: 441527.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `607`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 12140, - Discounts: 6457, - Sales: 5683, - COGS: 29350, - Profit: 23667, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `478`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 59750, - Discounts: 43518.75, - Sales: 16231.25, - COGS: 379800, - Profit: 363568.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `4489`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 89780, - Discounts: 5783.8, - Sales: 83996.2, - COGS: 26290, - Profit: 57706.2, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1504`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 188000, - Discounts: 19703.75, - Sales: 168296.25, - COGS: 171960, - Profit: 3663.75, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `3763`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 470375, - Discounts: 13021.25, - Sales: 457353.75, - COGS: 113640, - Profit: 343713.75, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2412`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 844200, - Discounts: 13244, - Sales: 830956, - COGS: 89440, - Profit: 741516, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2342`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 35130, - Discounts: 3559.05, - Sales: 31570.95, - COGS: 21570, - Profit: 10000.95, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4451`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 31157, - Discounts: 292.6, - Sales: 30864.4, - COGS: 1900, - Profit: 28964.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3796`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1328600, - Discounts: 37212, - Sales: 1291388, - COGS: 230360, - Profit: 1061028, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `2286`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 285750, - Discounts: 36240, - Sales: 249510, - COGS: 289920, - Profit: 40410, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3614`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 451750, - Discounts: 32340, - Sales: 419410, - COGS: 258720, - Profit: 160690, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1716`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 25740, - Discounts: 4840.2, - Sales: 20899.8, - COGS: 26890, - Profit: 5990.2, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1301`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 19515, - Discounts: 1218.6, - Sales: 18296.4, - COGS: 6770, - Profit: 11526.4, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `4175`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1252500, - Discounts: 63828, - Sales: 1188672, - COGS: 443250, - Profit: 745422, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `975`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 6825, - Discounts: 2032.8, - Sales: 4792.2, - COGS: 12100, - Profit: 7307.8, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1154`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 8078, - Discounts: 2296.56, - Sales: 5781.44, - COGS: 13670, - Profit: 7888.56, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1873`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 37460, - Discounts: 4116, - Sales: 33344, - COGS: 17150, - Profit: 16194, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3766`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1129800, - Discounts: 42696, - Sales: 1087104, - COGS: 296500, - Profit: 790604, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3558`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1067400, - Discounts: 125820, - Sales: 941580, - COGS: 873750, - Profit: 67830, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3156`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1104600, - Discounts: 37212, - Sales: 1067388, - COGS: 230360, - Profit: 837028, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2994`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 374250, - Discounts: 32340, - Sales: 341910, - COGS: 258720, - Profit: 83190, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2087`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 41740, - Discounts: 2172, - Sales: 39568, - COGS: 9050, - Profit: 30518, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1056`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 21120, - Discounts: 4116, - Sales: 17004, - COGS: 17150, - Profit: 146, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1353`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 473550, - Discounts: 66948, - Sales: 406602, - COGS: 414440, - Profit: 7838, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `416`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 124800, - Discounts: 48924, - Sales: 75876, - COGS: 339750, - Profit: 263874, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3880`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1164000, - Discounts: 77400, - Sales: 1086600, - COGS: 537500, - Profit: 549100, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `809`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 283150, - Discounts: 50274, - Sales: 232876, - COGS: 311220, - Profit: 78344, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1892`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 28380, - Discounts: 684, - Sales: 27696, - COGS: 3800, - Profit: 23896, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2072`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 41440, - Discounts: 2959.2, - Sales: 38480.8, - COGS: 12330, - Profit: 26150.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3052`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1068200, - Discounts: 58590, - Sales: 1009610, - COGS: 362700, - Profit: 646910, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3121`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1092350, - Discounts: 41412, - Sales: 1050938, - COGS: 256360, - Profit: 794578, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2059`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 41180, - Discounts: 2172, - Sales: 39008, - COGS: 9050, - Profit: 29958, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4254`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 51048, - Discounts: 3036.96, - Sales: 48011.04, - COGS: 6327, - Profit: 41684.04, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1293`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 19395, - Discounts: 6974.1, - Sales: 12420.9, - COGS: 38745, - Profit: 26324.1, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1293`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 452550, - Discounts: 26166, - Sales: 426384, - COGS: 161980, - Profit: 264404, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `230`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 80500, - Discounts: 41412, - Sales: 39088, - COGS: 256360, - Profit: 217272, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1723`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 215375, - Discounts: 35805, - Sales: 179570, - COGS: 286440, - Profit: 106870, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `240`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 4800, - Discounts: 2959.2, - Sales: 1840.8, - COGS: 12330, - Profit: 10489.2, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2571`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 899850, - Discounts: 11340, - Sales: 888510, - COGS: 70200, - Profit: 818310, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1661`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 11627, - Discounts: 2874.06, - Sales: 8752.94, - COGS: 17107.5, - Profit: 8354.56, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4474`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 31318, - Discounts: 2296.56, - Sales: 29021.44, - COGS: 13670, - Profit: 15351.44, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `833`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 12495, - Discounts: 4586.4, - Sales: 7908.6, - COGS: 25480, - Profit: 17571.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `674`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 13480, - Discounts: 6051.6, - Sales: 7428.4, - COGS: 25215, - Profit: 17786.6, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `778`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 9336, - Discounts: 3831.84, - Sales: 5504.16, - COGS: 7983, - Profit: 2478.84, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1457`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 29140, - Discounts: 3674.4, - Sales: 25465.6, - COGS: 15310, - Profit: 10155.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3158`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 22106, - Discounts: 1252.44, - Sales: 20853.56, - COGS: 7455, - Profit: 13398.56, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `4095`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 81900, - Discounts: 3674.4, - Sales: 78225.6, - COGS: 15310, - Profit: 62915.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3170`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 38040, - Discounts: 3975.84, - Sales: 34064.16, - COGS: 8283, - Profit: 25781.16, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `493`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 7395, - Discounts: 5005.65, - Sales: 2389.35, - COGS: 25670, - Profit: 23280.65, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3286`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 49290, - Discounts: 5005.65, - Sales: 44284.35, - COGS: 25670, - Profit: 18614.35, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3563`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1247050, - Discounts: 41996.5, - Sales: 1205053.5, - COGS: 239980, - Profit: 965073.5, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4109`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1438150, - Discounts: 81445, - Sales: 1356705, - COGS: 465400, - Profit: 891305, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `3653`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 73060, - Discounts: 1149.2, - Sales: 71910.8, - COGS: 4420, - Profit: 67490.8, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2203`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 771050, - Discounts: 44703.75, - Sales: 726346.25, - COGS: 255450, - Profit: 470896.25, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2924`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20468, - Discounts: 1181.18, - Sales: 19286.82, - COGS: 6490, - Profit: 12796.82, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2650`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 31800, - Discounts: 942.24, - Sales: 30857.76, - COGS: 1812, - Profit: 29045.76, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1194`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 23880, - Discounts: 5863, - Sales: 18017, - COGS: 22550, - Profit: 4533, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3366`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 67320, - Discounts: 3247.4, - Sales: 64072.6, - COGS: 12490, - Profit: 51582.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1325`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 9275, - Discounts: 1309.04, - Sales: 7965.97, - COGS: 7192.5, - Profit: 773.47, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4243`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1272900, - Discounts: 31473, - Sales: 1241427, - COGS: 201750, - Profit: 1039677, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2887`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 57740, - Discounts: 6866.6, - Sales: 50873.4, - COGS: 26410, - Profit: 24463.4, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3839`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 76780, - Discounts: 7040.8, - Sales: 69739.2, - COGS: 27080, - Profit: 42659.2, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1863`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 652050, - Discounts: 119756, - Sales: 532294, - COGS: 684320, - Profit: 152026, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2858`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 357250, - Discounts: 25723.75, - Sales: 331526.25, - COGS: 189960, - Profit: 141566.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2868`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 34416, - Discounts: 890.76, - Sales: 33525.24, - COGS: 1713, - Profit: 31812.24, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3805`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 26635, - Discounts: 2453.36, - Sales: 24181.64, - COGS: 13480, - Profit: 10701.64, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3914`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 58710, - Discounts: 3051.75, - Sales: 55658.25, - COGS: 15650, - Profit: 40008.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `524`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 10480, - Discounts: 3247.4, - Sales: 7232.6, - COGS: 12490, - Profit: 5257.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3095`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1083250, - Discounts: 16243.5, - Sales: 1067006.5, - COGS: 92820, - Profit: 974186.5, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2410`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 28920, - Discounts: 1580.28, - Sales: 27339.72, - COGS: 3039, - Profit: 24300.72, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4263`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 63945, - Discounts: 7795.13, - Sales: 56149.88, - COGS: 39975, - Profit: 16174.88, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2239`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 783650, - Discounts: 119756, - Sales: 663894, - COGS: 684320, - Profit: 20426, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `569`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 3983, - Discounts: 1082.9, - Sales: 2900.1, - COGS: 5950, - Profit: 3049.9, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3889`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 46668, - Discounts: 942.24, - Sales: 45725.76, - COGS: 1812, - Profit: 43913.76, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1378`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 20670, - Discounts: 1287, - Sales: 19383, - COGS: 6600, - Profit: 12783, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2253`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 27036, - Discounts: 639.6, - Sales: 26396.4, - COGS: 1230, - Profit: 25166.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3202`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 960600, - Discounts: 101595, - Sales: 859005, - COGS: 651250, - Profit: 207755, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3835`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 46020, - Discounts: 1580.28, - Sales: 44439.72, - COGS: 3039, - Profit: 41400.72, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `2487`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 310875, - Discounts: 25723.75, - Sales: 285151.25, - COGS: 189960, - Profit: 95191.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4428`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 66420, - Discounts: 3051.75, - Sales: 63368.25, - COGS: 15650, - Profit: 47718.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1200`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 150000, - Discounts: 26958.75, - Sales: 123041.25, - COGS: 199080, - Profit: 76038.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2953`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 20671, - Discounts: 1082.9, - Sales: 19588.1, - COGS: 5950, - Profit: 13638.1, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1453`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 17436, - Discounts: 639.6, - Sales: 16796.4, - COGS: 1230, - Profit: 15566.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `865`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 10380, - Discounts: 2761.2, - Sales: 7618.8, - COGS: 5310, - Profit: 2308.8, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1072`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 21440, - Discounts: 7221.2, - Sales: 14218.8, - COGS: 25790, - Profit: 11571.2, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1737`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 34740, - Discounts: 4880.4, - Sales: 29859.6, - COGS: 17430, - Profit: 12429.6, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1535`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 10745, - Discounts: 2936.08, - Sales: 7808.92, - COGS: 14980, - Profit: 7171.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2532`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 17724, - Discounts: 274.4, - Sales: 17449.6, - COGS: 1400, - Profit: 16049.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1765`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 12355, - Discounts: 287.14, - Sales: 12067.86, - COGS: 1465, - Profit: 10602.86, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1567`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 10969, - Discounts: 2936.08, - Sales: 8032.92, - COGS: 14980, - Profit: 6947.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2640`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 39600, - Discounts: 583.8, - Sales: 39016.2, - COGS: 2780, - Profit: 36236.2, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3079`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 61580, - Discounts: 6798.4, - Sales: 54781.6, - COGS: 24280, - Profit: 30501.6, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4130`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 61950, - Discounts: 3710.7, - Sales: 58239.3, - COGS: 17670, - Profit: 40569.3, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2938`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 35256, - Discounts: 2340.24, - Sales: 32915.76, - COGS: 4179, - Profit: 28736.76, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3080`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 21560, - Discounts: 274.4, - Sales: 21285.6, - COGS: 1400, - Profit: 19885.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1530`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 18360, - Discounts: 2340.24, - Sales: 16019.76, - COGS: 4179, - Profit: 11840.76, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `3537`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 42444, - Discounts: 3385.2, - Sales: 39058.8, - COGS: 6045, - Profit: 33013.8, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `2021`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 606300, - Discounts: 33642, - Sales: 572658, - COGS: 200250, - Profit: 372408, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1804`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 225500, - Discounts: 17902.5, - Sales: 207597.5, - COGS: 122760, - Profit: 84837.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1014`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 304200, - Discounts: 62832, - Sales: 241368, - COGS: 374000, - Profit: 132632, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2913`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 873900, - Discounts: 42420, - Sales: 831480, - COGS: 252500, - Profit: 578980, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `763`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 11445, - Discounts: 3177.3, - Sales: 8267.7, - COGS: 15130, - Profit: 6862.3, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1425`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 21375, - Discounts: 4830, - Sales: 16545, - COGS: 23000, - Profit: 6455, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `4357`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 544625, - Discounts: 49367.5, - Sales: 495257.5, - COGS: 338520, - Profit: 156737.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2138`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 748300, - Discounts: 109147.5, - Sales: 639152.5, - COGS: 579150, - Profit: 60002.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3825`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1338750, - Discounts: 58751, - Sales: 1279999, - COGS: 311740, - Profit: 968259, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3393`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1187550, - Discounts: 9800, - Sales: 1177750, - COGS: 52000, - Profit: 1125750, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2215`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 15505, - Discounts: 380.24, - Sales: 15124.76, - COGS: 1940, - Profit: 13184.76, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2278`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 15946, - Discounts: 1692.46, - Sales: 14253.54, - COGS: 8635, - Profit: 5618.54, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `403`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 6045, - Discounts: 4830, - Sales: 1215, - COGS: 23000, - Profit: 21785, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `289`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 5780, - Discounts: 728, - Sales: 5052, - COGS: 2600, - Profit: 2452, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `749`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 11235, - Discounts: 5187, - Sales: 6048, - COGS: 24700, - Profit: 18652, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `372`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 5580, - Discounts: 3660.3, - Sales: 1919.7, - COGS: 17430, - Profit: 15510.3, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3781`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 45372, - Discounts: 4895.52, - Sales: 40476.48, - COGS: 8742, - Profit: 31734.48, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1785`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 12495, - Discounts: 1696.38, - Sales: 10798.62, - COGS: 8655, - Profit: 2143.62, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4029`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1410150, - Discounts: 34300, - Sales: 1375850, - COGS: 182000, - Profit: 1193850, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2813`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 33756, - Discounts: 3732.96, - Sales: 30023.04, - COGS: 6666, - Profit: 23357.04, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2150`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 752500, - Discounts: 57673, - Sales: 694827, - COGS: 306020, - Profit: 388807, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2093`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 732550, - Discounts: 94178, - Sales: 638372, - COGS: 499720, - Profit: 138652, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4391`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 548875, - Discounts: 27562.5, - Sales: 521312.5, - COGS: 189000, - Profit: 332312.5, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2695`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 53900, - Discounts: 1696.8, - Sales: 52203.2, - COGS: 6060, - Profit: 46143.2, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1337`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 401100, - Discounts: 103320, - Sales: 297780, - COGS: 615000, - Profit: 317220, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2621`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 786300, - Discounts: 11298, - Sales: 775002, - COGS: 67250, - Profit: 707752, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3735`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1120500, - Discounts: 106512, - Sales: 1013988, - COGS: 634000, - Profit: 379988, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4320`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 30240, - Discounts: 2844.94, - Sales: 27395.06, - COGS: 14515, - Profit: 12880.06, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2828`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 848400, - Discounts: 106722, - Sales: 741678, - COGS: 635250, - Profit: 106428, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `2586`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 775800, - Discounts: 11298, - Sales: 764502, - COGS: 67250, - Profit: 697252, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1248`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 374400, - Discounts: 62832, - Sales: 311568, - COGS: 374000, - Profit: 62432, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `4035`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 1210500, - Discounts: 42420, - Sales: 1168080, - COGS: 252500, - Profit: 915580, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `359`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 125650, - Discounts: 62769, - Sales: 62881, - COGS: 333060, - Profit: 270179, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3926`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1177800, - Discounts: 37296, - Sales: 1140504, - COGS: 222000, - Profit: 918504, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `4247`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 530875, - Discounts: 49770, - Sales: 481105, - COGS: 341280, - Profit: 139825, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2695`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 32340, - Discounts: 4158, - Sales: 28182, - COGS: 7425, - Profit: 20757, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1104`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 16560, - Discounts: 3660.3, - Sales: 12899.7, - COGS: 17430, - Profit: 4530.3, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1449`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 17388, - Discounts: 4895.52, - Sales: 12492.48, - COGS: 8742, - Profit: 3750.48, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1131`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 7917, - Discounts: 1696.38, - Sales: 6220.62, - COGS: 8655, - Profit: 2434.38, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1468`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 10276, - Discounts: 1692.46, - Sales: 8583.54, - COGS: 8635, - Profit: 51.46, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1272`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 19080, - Discounts: 3927, - Sales: 15153, - COGS: 18700, - Profit: 3547, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1403`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 175375, - Discounts: 22012.5, - Sales: 153362.5, - COGS: 140880, - Profit: 12482.5, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2161`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 270125, - Discounts: 51881.25, - Sales: 218243.75, - COGS: 332040, - Profit: 113796.25, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1937`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 242125, - Discounts: 20343.75, - Sales: 221781.25, - COGS: 130200, - Profit: 91581.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2879`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 863700, - Discounts: 24570, - Sales: 839130, - COGS: 136500, - Profit: 702630, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1330`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 26600, - Discounts: 3474, - Sales: 23126, - COGS: 11580, - Profit: 11546, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2426`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 36390, - Discounts: 3631.5, - Sales: 32758.5, - COGS: 16140, - Profit: 16618.5, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2033`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14231, - Discounts: 2661.75, - Sales: 11569.25, - COGS: 12675, - Profit: 1105.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2029`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 710150, - Discounts: 149677.5, - Sales: 560472.5, - COGS: 741260, - Profit: 180787.5, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1049`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 15735, - Discounts: 5757.75, - Sales: 9977.25, - COGS: 25590, - Profit: 15612.75, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1062`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 21240, - Discounts: 801, - Sales: 20439, - COGS: 2670, - Profit: 17769, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2509`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 313625, - Discounts: 20343.75, - Sales: 293281.25, - COGS: 130200, - Profit: 163081.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1743`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 26145, - Discounts: 2643.75, - Sales: 23501.25, - COGS: 11750, - Profit: 11751.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3418`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1196300, - Discounts: 105367.5, - Sales: 1090932.5, - COGS: 521820, - Profit: 569112.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1751`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 612850, - Discounts: 112927.5, - Sales: 499922.5, - COGS: 559260, - Profit: 59337.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3228`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 38736, - Discounts: 1645.2, - Sales: 37090.8, - COGS: 2742, - Profit: 34348.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1105`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 22100, - Discounts: 879, - Sales: 21221, - COGS: 2930, - Profit: 18291, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2778`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 33336, - Discounts: 900, - Sales: 32436, - COGS: 1500, - Profit: 30936, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1173`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 17595, - Discounts: 6358.5, - Sales: 11236.5, - COGS: 28260, - Profit: 17023.5, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3160`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 395000, - Discounts: 12431.25, - Sales: 382568.75, - COGS: 79560, - Profit: 303008.75, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `4322`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1296600, - Discounts: 115830, - Sales: 1180770, - COGS: 643500, - Profit: 537270, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1901`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 237625, - Discounts: 45712.5, - Sales: 191912.5, - COGS: 292560, - Profit: 100647.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2980`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 35760, - Discounts: 1645.2, - Sales: 34114.8, - COGS: 2742, - Profit: 31372.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4068`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 81360, - Discounts: 2596.5, - Sales: 78763.5, - COGS: 8655, - Profit: 70108.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2105`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 31575, - Discounts: 1107, - Sales: 30468, - COGS: 4920, - Profit: 25548, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1647`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 32940, - Discounts: 801, - Sales: 32139, - COGS: 2670, - Profit: 29469, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `235`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 3525, - Discounts: 2643.75, - Sales: 881.25, - COGS: 11750, - Profit: 10868.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3617`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 452125, - Discounts: 55387.5, - Sales: 396737.5, - COGS: 354480, - Profit: 42257.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2106`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 263250, - Discounts: 10350, - Sales: 252900, - COGS: 66240, - Profit: 186660, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2351`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 47020, - Discounts: 879, - Sales: 46141, - COGS: 2930, - Profit: 43211, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1897`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 569100, - Discounts: 111375, - Sales: 457725, - COGS: 618750, - Profit: 161025, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `647`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 194100, - Discounts: 24570, - Sales: 169530, - COGS: 136500, - Profit: 33030, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3621`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 25347, - Discounts: 1436.4, - Sales: 23910.6, - COGS: 6840, - Profit: 17070.6, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3221`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 22547, - Discounts: 759.15, - Sales: 21787.85, - COGS: 3615, - Profit: 18172.85, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `493`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 5916, - Discounts: 3250.8, - Sales: 2665.2, - COGS: 5418, - Profit: 2752.8, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - } -} - export class SalesDataItem { public constructor(init: Partial) { Object.assign(this, init); @@ -16684,7 +5,7 @@ export class SalesDataItem { public Country: string; public Product: string; - public UnitsSold: string; + public UnitsSold: number; public ManufacturingPrice: number; public SalePrice: number; public GrossSales: number; @@ -16693,8 +14,16690 @@ export class SalesDataItem { public COGS: number; public Profit: number; public Date: string; - public MonthName: string; + public Month: string; public Year: string; } -//end data \ No newline at end of file +export class SalesData extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 501, + ManufacturingPrice: 15, + SalePrice: 23, + GrossSales: 26440, + Discounts: 0, + Sales: 26440, + COGS: 16185, + Profit: 11255, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1372, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 27440, + Discounts: 0, + Sales: 27440, + COGS: 16185, + Profit: 11255, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2762, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 55240, + Discounts: 0, + Sales: 55240, + COGS: 13210, + Profit: 42030, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1464, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 21960, + Discounts: 0, + Sales: 21960, + COGS: 21780, + Profit: 180, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 719, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 10785, + Discounts: 0, + Sales: 10785, + COGS: 8880, + Profit: 1905, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3576, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 53640, + Discounts: 0, + Sales: 53640, + COGS: 24700, + Profit: 28940, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 4422, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1547700, + Discounts: 0, + Sales: 1547700, + COGS: 393380, + Profit: 1154320, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3649, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 54735, + Discounts: 0, + Sales: 54735, + COGS: 9210, + Profit: 45525, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4172, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 50064, + Discounts: 0, + Sales: 50064, + COGS: 7554, + Profit: 42510, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3841, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 76820, + Discounts: 0, + Sales: 76820, + COGS: 18990, + Profit: 57830, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3726, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 44712, + Discounts: 0, + Sales: 44712, + COGS: 4635, + Profit: 40077, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2625, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 39375, + Discounts: 0, + Sales: 39375, + COGS: 24700, + Profit: 14675, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1958, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 244750, + Discounts: 0, + Sales: 244750, + COGS: 319860, + Profit: 75110, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 3271, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 981300, + Discounts: 0, + Sales: 981300, + COGS: 239500, + Profit: 741800, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2091, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 14637, + Discounts: 0, + Sales: 14637, + COGS: 10730, + Profit: 3907, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2825, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 42375, + Discounts: 0, + Sales: 42375, + COGS: 6150, + Profit: 36225, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2513, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 50260, + Discounts: 0, + Sales: 50260, + COGS: 2920, + Profit: 47340, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 883, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 13245, + Discounts: 0, + Sales: 13245, + COGS: 9740, + Profit: 3505, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2087, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 25044, + Discounts: 0, + Sales: 25044, + COGS: 7554, + Profit: 17490, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2563, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 897050, + Discounts: 0, + Sales: 897050, + COGS: 261560, + Profit: 635490, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2846, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 34152, + Discounts: 0, + Sales: 34152, + COGS: 1101, + Profit: 33051, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 997, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 6979, + Discounts: 0, + Sales: 6979, + COGS: 4415, + Profit: 2564, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2290, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 34350, + Discounts: 0, + Sales: 34350, + COGS: 24720, + Profit: 9630, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2133, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 14931, + Discounts: 0, + Sales: 14931, + COGS: 5715, + Profit: 9216, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3617, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 72340, + Discounts: 0, + Sales: 72340, + COGS: 18170, + Profit: 54170, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1266, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 443100, + Discounts: 0, + Sales: 443100, + COGS: 393380, + Profit: 49720, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 894, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 6258, + Discounts: 0, + Sales: 6258, + COGS: 7465, + Profit: 1207, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 2725, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 340625, + Discounts: 0, + Sales: 340625, + COGS: 216480, + Profit: 124145, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3061, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 36732, + Discounts: 0, + Sales: 36732, + COGS: 6483, + Profit: 30249, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3958, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1385300, + Discounts: 0, + Sales: 1385300, + COGS: 261560, + Profit: 1123740, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3920, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 47040, + Discounts: 0, + Sales: 47040, + COGS: 4635, + Profit: 42405, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3381, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 422625, + Discounts: 0, + Sales: 422625, + COGS: 338520, + Profit: 84105, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4307, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 1292100, + Discounts: 0, + Sales: 1292100, + COGS: 500250, + Profit: 791850, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 878, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 10536, + Discounts: 0, + Sales: 10536, + COGS: 8514, + Profit: 2022, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 496, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 7440, + Discounts: 0, + Sales: 7440, + COGS: 21780, + Profit: 14340, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3367, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 50505, + Discounts: 0, + Sales: 50505, + COGS: 8880, + Profit: 41625, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2055, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 616500, + Discounts: 0, + Sales: 616500, + COGS: 537750, + Profit: 78750, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4041, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 80820, + Discounts: 0, + Sales: 80820, + COGS: 18170, + Profit: 62650, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 3237, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1132950, + Discounts: 0, + Sales: 1132950, + COGS: 715000, + Profit: 417950, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 630, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 7560, + Discounts: 0, + Sales: 7560, + COGS: 5859, + Profit: 1701, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4210, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 526250, + Discounts: 0, + Sales: 526250, + COGS: 506340, + Profit: 19910, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1127, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 22540, + Discounts: 0, + Sales: 22540, + COGS: 18990, + Profit: 3550, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 3438, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 24066, + Discounts: 0, + Sales: 24066, + COGS: 8430, + Profit: 15636, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2015, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 24180, + Discounts: 0, + Sales: 24180, + COGS: 6423, + Profit: 17757, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2534, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 17738, + Discounts: 0, + Sales: 17738, + COGS: 5715, + Profit: 12023, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1384, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 20760, + Discounts: 0, + Sales: 20760, + COGS: 6150, + Profit: 14610, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3561, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 24927, + Discounts: 276.15, + Sales: 24650.85, + COGS: 19725, + Profit: 4925.85, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1823, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 27345, + Discounts: 344.4, + Sales: 27000.6, + COGS: 22960, + Profit: 4040.6, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2795, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 19565, + Discounts: 72.1, + Sales: 19492.9, + COGS: 5150, + Profit: 14342.9, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 457, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 3199, + Discounts: 44.73, + Sales: 3154.27, + COGS: 3195, + Profit: 40.73, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3785, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 26495, + Discounts: 92.82, + Sales: 26402.18, + COGS: 6630, + Profit: 19772.18, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 748, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 8976, + Discounts: 222.96, + Sales: 8753.04, + COGS: 5574, + Profit: 3179.04, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1021, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 357350, + Discounts: 4235, + Sales: 353115, + COGS: 314600, + Profit: 38515, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2076, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 14532, + Discounts: 177.03, + Sales: 14354.97, + COGS: 12645, + Profit: 1709.97, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 4316, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 51792, + Discounts: 173.4, + Sales: 51618.6, + COGS: 4335, + Profit: 47283.6, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 4174, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 50088, + Discounts: 320.52, + Sales: 49767.48, + COGS: 8013, + Profit: 41754.48, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3736, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1307600, + Discounts: 4889.5, + Sales: 1302710.5, + COGS: 363220, + Profit: 939490.5, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1914, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 669900, + Discounts: 7542.5, + Sales: 662357.5, + COGS: 560300, + Profit: 102057.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2742, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 41130, + Discounts: 332.1, + Sales: 40797.9, + COGS: 22140, + Profit: 18657.9, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1499, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 449700, + Discounts: 6903, + Sales: 442797, + COGS: 575250, + Profit: 132453, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3772, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 75440, + Discounts: 275.1, + Sales: 75164.9, + COGS: 13755, + Profit: 61409.9, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1112, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 7784, + Discounts: 128.1, + Sales: 7655.9, + COGS: 9150, + Profit: 1494.1, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2368, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 35520, + Discounts: 227.1, + Sales: 35292.9, + COGS: 15140, + Profit: 20152.9, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1586, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 11102, + Discounts: 314.48, + Sales: 10787.52, + COGS: 22462.5, + Profit: 11674.98, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3386, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 423250, + Discounts: 908.75, + Sales: 422341.25, + COGS: 87240, + Profit: 335101.25, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 852, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 106500, + Discounts: 983.75, + Sales: 105516.25, + COGS: 94440, + Profit: 11076.25, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2783, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 347875, + Discounts: 2278.75, + Sales: 345596.25, + COGS: 218760, + Profit: 126836.25, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2684, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 40260, + Discounts: 112.05, + Sales: 40147.95, + COGS: 7470, + Profit: 32677.95, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4083, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1224900, + Discounts: 8715, + Sales: 1216185, + COGS: 726250, + Profit: 489935, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2816, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 985600, + Discounts: 7542.5, + Sales: 978057.5, + COGS: 560300, + Profit: 417757.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 4294, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 85880, + Discounts: 772.8, + Sales: 85107.2, + COGS: 38640, + Profit: 46467.2, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2856, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 19992, + Discounts: 25.34, + Sales: 19966.66, + COGS: 1810, + Profit: 18156.66, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1407, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 175875, + Discounts: 1153.75, + Sales: 174721.25, + COGS: 110760, + Profit: 63961.25, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1265, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 8855, + Discounts: 18.41, + Sales: 8836.59, + COGS: 1315, + Profit: 7521.59, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3892, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1362200, + Discounts: 3302.25, + Sales: 1358897.75, + COGS: 245310, + Profit: 1113587.75, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 3068, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 383500, + Discounts: 908.75, + Sales: 382591.25, + COGS: 87240, + Profit: 295351.25, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2181, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 272625, + Discounts: 983.75, + Sales: 271641.25, + COGS: 94440, + Profit: 177201.25, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1356, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 406800, + Discounts: 2958, + Sales: 403842, + COGS: 246500, + Profit: 177201.25, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1814, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 634900, + Discounts: 4889.5, + Sales: 630010.5, + COGS: 363220, + Profit: 266790.5, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1495, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 186875, + Discounts: 2180, + Sales: 184695, + COGS: 209280, + Profit: 24585, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1463, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 182875, + Discounts: 1856.25, + Sales: 181018.75, + COGS: 89100, + Profit: 91918.75, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 215, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 2580, + Discounts: 310.8, + Sales: 2269.2, + COGS: 3885, + Profit: 1615.8, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 566, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 198100, + Discounts: 19964, + Sales: 178136, + COGS: 741520, + Profit: 563384, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 3255, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 39060, + Discounts: 274.08, + Sales: 38785.92, + COGS: 3426, + Profit: 35359.92, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 772, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 15440, + Discounts: 626.4, + Sales: 14813.6, + COGS: 15660, + Profit: 846.4, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1135, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 13620, + Discounts: 165.6, + Sales: 13454.4, + COGS: 2070, + Profit: 11384.4, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1193, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 17895, + Discounts: 708.9, + Sales: 17186.1, + COGS: 23630, + Profit: 6443.9, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2530, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 759000, + Discounts: 5508, + Sales: 753492, + COGS: 229500, + Profit: 523992, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3451, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1035300, + Discounts: 10368, + Sales: 1024932, + COGS: 432000, + Profit: 592932, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3059, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 36708, + Discounts: 274.08, + Sales: 36433.92, + COGS: 3426, + Profit: 33007.92, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3957, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 494625, + Discounts: 1655, + Sales: 492970, + COGS: 79440, + Profit: 413530, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3444, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 41328, + Discounts: 310.8, + Sales: 41017.2, + COGS: 3885, + Profit: 37132.2, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3154, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 946200, + Discounts: 11496, + Sales: 934704, + COGS: 479000, + Profit: 455704, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4108, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1437800, + Discounts: 19964, + Sales: 1417836, + COGS: 741520, + Profit: 676316, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3760, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 470000, + Discounts: 6822.5, + Sales: 463177.5, + COGS: 327480, + Profit: 135697.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2334, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 28008, + Discounts: 253.2, + Sales: 27754.8, + COGS: 3165, + Profit: 24589.8, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 580, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 6960, + Discounts: 260.16, + Sales: 6699.84, + COGS: 3252, + Profit: 3447.84, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2610, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 52200, + Discounts: 626.4, + Sales: 51573.6, + COGS: 15660, + Profit: 35913.6, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 1459, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 510650, + Discounts: 20139, + Sales: 490511, + COGS: 748020, + Profit: 257509, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3774, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 45288, + Discounts: 253.2, + Sales: 45034.8, + COGS: 3165, + Profit: 41869.8, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2572, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 30864, + Discounts: 260.16, + Sales: 30603.84, + COGS: 3252, + Profit: 27351.84, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 320, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 40000, + Discounts: 1655, + Sales: 38345, + COGS: 79440, + Profit: 41095, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3275, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1146250, + Discounts: 20139, + Sales: 1126111, + COGS: 748020, + Profit: 378091, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3582, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 447750, + Discounts: 6822.5, + Sales: 440927.5, + COGS: 327480, + Profit: 113447.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4056, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 1216800, + Discounts: 1554, + Sales: 1215246, + COGS: 64750, + Profit: 1150496, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2144, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 643200, + Discounts: 6606, + Sales: 636594, + COGS: 275250, + Profit: 361344, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 3502, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 437750, + Discounts: 5690, + Sales: 432060, + COGS: 273120, + Profit: 158940, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 679, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 13580, + Discounts: 494.4, + Sales: 13085.6, + COGS: 12360, + Profit: 725.6, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2351, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 47020, + Discounts: 376.4, + Sales: 46643.6, + COGS: 9410, + Profit: 37233.6, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2043, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 612900, + Discounts: 11496, + Sales: 601404, + COGS: 479000, + Profit: 122404, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 3565, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 445625, + Discounts: 15913.13, + Sales: 429711.88, + COGS: 509220, + Profit: 79508.13, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1401, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 28020, + Discounts: 1548, + Sales: 26472, + COGS: 25800, + Profit: 672, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2077, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 623100, + Discounts: 6201, + Sales: 616899, + COGS: 172250, + Profit: 444649, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 3643, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 43716, + Discounts: 700.92, + Sales: 43015.08, + COGS: 5841, + Profit: 37174.08, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2960, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 20720, + Discounts: 411.18, + Sales: 20308.82, + COGS: 9790, + Profit: 10518.82, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1201, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 14412, + Discounts: 684.36, + Sales: 13727.64, + COGS: 5703, + Profit: 8024.64, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 2321, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 16247, + Discounts: 114.24, + Sales: 16132.76, + COGS: 2720, + Profit: 13412.76, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3972, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 496500, + Discounts: 4826.25, + Sales: 491673.75, + COGS: 154440, + Profit: 337233.75, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3878, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 484750, + Discounts: 6397.5, + Sales: 478352.5, + COGS: 204720, + Profit: 273632.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2278, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 683400, + Discounts: 21910.5, + Sales: 661489.5, + COGS: 608625, + Profit: 52864.5, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1075, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 134375, + Discounts: 6652.5, + Sales: 127722.5, + COGS: 212880, + Profit: 85157.5, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 4050, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 48600, + Discounts: 684.36, + Sales: 47915.64, + COGS: 5703, + Profit: 42212.64, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3035, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 910500, + Discounts: 6201, + Sales: 904299, + COGS: 172250, + Profit: 732049, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3636, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 454500, + Discounts: 5887.5, + Sales: 448612.5, + COGS: 188400, + Profit: 260212.5, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1379, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 16548, + Discounts: 493.02, + Sales: 16054.98, + COGS: 4108.5, + Profit: 11946.48, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4492, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 561500, + Discounts: 7533.75, + Sales: 553966.25, + COGS: 241080, + Profit: 312886.25, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1744, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 218000, + Discounts: 4826.25, + Sales: 213173.75, + COGS: 154440, + Profit: 58733.75, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2341, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 292625, + Discounts: 6397.5, + Sales: 286227.5, + COGS: 204720, + Profit: 81507.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3835, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 479375, + Discounts: 7533.75, + Sales: 471841.25, + COGS: 241080, + Profit: 230761.25, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1161, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 348300, + Discounts: 25596, + Sales: 322704, + COGS: 711000, + Profit: 388296, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 876, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 10512, + Discounts: 689.76, + Sales: 9822.24, + COGS: 5748, + Profit: 4074.24, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1705, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 213125, + Discounts: 5887.5, + Sales: 207237.5, + COGS: 188400, + Profit: 18837.5, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1805, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 541500, + Discounts: 16866, + Sales: 524634, + COGS: 468500, + Profit: 56134, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 389, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 136150, + Discounts: 17241, + Sales: 118909, + COGS: 426920, + Profit: 308011, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1459, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 29180, + Discounts: 498.6, + Sales: 28681.4, + COGS: 8310, + Profit: 20371.4, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 4236, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 84720, + Discounts: 2310.3, + Sales: 82409.7, + COGS: 38505, + Profit: 43904.7, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3627, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 43524, + Discounts: 892.44, + Sales: 42631.56, + COGS: 7437, + Profit: 35194.56, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1756, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 26340, + Discounts: 1218.6, + Sales: 25121.4, + COGS: 20310, + Profit: 4811.4, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 307, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 4605, + Discounts: 1218.6, + Sales: 3386.4, + COGS: 20310, + Profit: 16923.6, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1222, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 366600, + Discounts: 24252, + Sales: 342348, + COGS: 505250, + Profit: 162902, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 489, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 171150, + Discounts: 3836, + Sales: 167314, + COGS: 71240, + Profit: 96074, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4133, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 61995, + Discounts: 1180.2, + Sales: 60814.8, + COGS: 19670, + Profit: 41144.8, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2743, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 822900, + Discounts: 22308, + Sales: 800592, + COGS: 464750, + Profit: 335842, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 4460, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1338000, + Discounts: 24252, + Sales: 1313748, + COGS: 505250, + Profit: 808498, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1232, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 154000, + Discounts: 5690, + Sales: 148310, + COGS: 136560, + Profit: 11750, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2586, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 18102, + Discounts: 1190.28, + Sales: 16911.72, + COGS: 21255, + Profit: 4343.28, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1332, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 166500, + Discounts: 3975, + Sales: 162525, + COGS: 95400, + Profit: 67125, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4487, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1346100, + Discounts: 16974, + Sales: 1329126, + COGS: 353625, + Profit: 975501, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3862, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1158600, + Discounts: 35016, + Sales: 1123584, + COGS: 729500, + Profit: 394084, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1765, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 617750, + Discounts: 48300, + Sales: 569450, + COGS: 897000, + Profit: 327550, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3533, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 441625, + Discounts: 14940, + Sales: 426685, + COGS: 358560, + Profit: 68125, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2016, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 30240, + Discounts: 130.8, + Sales: 30109.2, + COGS: 2180, + Profit: 27929.2, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2938, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 58760, + Discounts: 1659.2, + Sales: 57100.8, + COGS: 20740, + Profit: 36360.8, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3352, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 67040, + Discounts: 844.8, + Sales: 66195.2, + COGS: 10560, + Profit: 55635.2, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2430, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 850500, + Discounts: 3836, + Sales: 846664, + COGS: 71240, + Profit: 775424, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 535, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 66875, + Discounts: 5690, + Sales: 61185, + COGS: 136560, + Profit: 75375, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1523, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 18276, + Discounts: 703.2, + Sales: 17572.8, + COGS: 4395, + Profit: 13177.8, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1782, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 623700, + Discounts: 30478, + Sales: 593222, + COGS: 566020, + Profit: 27202, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 347, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 4164, + Discounts: 415.68, + Sales: 3748.32, + COGS: 2598, + Profit: 1150.32, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3509, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1228150, + Discounts: 30478, + Sales: 1197672, + COGS: 566020, + Profit: 631652, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2943, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1030050, + Discounts: 26110, + Sales: 1003940, + COGS: 484900, + Profit: 519040, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 4037, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 504625, + Discounts: 5370, + Sales: 499255, + COGS: 128880, + Profit: 370375, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4146, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1451100, + Discounts: 26698, + Sales: 1424402, + COGS: 495820, + Profit: 928582, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 725, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 5075, + Discounts: 480.2, + Sales: 4594.8, + COGS: 6860, + Profit: 2265.2, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2325, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 16275, + Discounts: 941.15, + Sales: 15333.85, + COGS: 13445, + Profit: 1888.85, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 675, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 8100, + Discounts: 1458.6, + Sales: 6641.4, + COGS: 7293, + Profit: 651.6, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2990, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 35880, + Discounts: 1458.6, + Sales: 34421.4, + COGS: 7293, + Profit: 27128.4, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1072, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 7504, + Discounts: 941.15, + Sales: 6562.85, + COGS: 13445, + Profit: 6882.15, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1048, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 7336, + Discounts: 589.05, + Sales: 6746.95, + COGS: 8415, + Profit: 1668.05, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 469, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 5628, + Discounts: 673.8, + Sales: 4954.2, + COGS: 3369, + Profit: 1585.2, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 4240, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 50880, + Discounts: 1119, + Sales: 49761, + COGS: 5595, + Profit: 44166, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1976, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 23712, + Discounts: 669.6, + Sales: 23042.4, + COGS: 3348, + Profit: 19694.4, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1984, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 39680, + Discounts: 1563, + Sales: 38117, + COGS: 15630, + Profit: 22487, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 480, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 144000, + Discounts: 14865, + Sales: 129135, + COGS: 247750, + Profit: 118615, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1205, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 18075, + Discounts: 2093.25, + Sales: 15981.75, + COGS: 27910, + Profit: 11928.25, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2480, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 17360, + Discounts: 199.5, + Sales: 17160.5, + COGS: 2850, + Profit: 14310.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 2926, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 20482, + Discounts: 870.45, + Sales: 19611.55, + COGS: 12435, + Profit: 7176.55, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3210, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 1123500, + Discounts: 24228.75, + Sales: 1099271.25, + COGS: 359970, + Profit: 739301.25, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 3221, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 402625, + Discounts: 22668.75, + Sales: 379956.25, + COGS: 435240, + Profit: 55283.75, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 1127, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 13524, + Discounts: 1405.2, + Sales: 12118.8, + COGS: 7026, + Profit: 5092.8, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1610, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 32200, + Discounts: 1303, + Sales: 30897, + COGS: 13030, + Profit: 17867, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4100, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 512500, + Discounts: 18700, + Sales: 493800, + COGS: 359040, + Profit: 134760, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1012, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 126500, + Discounts: 14906.25, + Sales: 111593.75, + COGS: 286200, + Profit: 174606.25, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3337, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1001100, + Discounts: 24105, + Sales: 976995, + COGS: 401750, + Profit: 575245, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3955, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 27685, + Discounts: 814.45, + Sales: 26870.55, + COGS: 11635, + Profit: 15235.55, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4347, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1304100, + Discounts: 14865, + Sales: 1289235, + COGS: 247750, + Profit: 1041485, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1548, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 541800, + Discounts: 10535, + Sales: 531265, + COGS: 156520, + Profit: 374745, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2153, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 32295, + Discounts: 1965, + Sales: 30330, + COGS: 26200, + Profit: 4130, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4126, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 515750, + Discounts: 5381.25, + Sales: 510368.75, + COGS: 103320, + Profit: 407048.75, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3376, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 67520, + Discounts: 2663, + Sales: 64857, + COGS: 26630, + Profit: 38227, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2244, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 33660, + Discounts: 416.25, + Sales: 33243.75, + COGS: 5550, + Profit: 27693.75, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 1360, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 20400, + Discounts: 2145.75, + Sales: 18254.25, + COGS: 28610, + Profit: 10355.75, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 279, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 34875, + Discounts: 5043.75, + Sales: 29831.25, + COGS: 96840, + Profit: 67008.75, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2521, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 882350, + Discounts: 10535, + Sales: 871815, + COGS: 156520, + Profit: 715295, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2433, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 48660, + Discounts: 2832, + Sales: 45828, + COGS: 28320, + Profit: 17508, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1738, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 34760, + Discounts: 1579, + Sales: 33181, + COGS: 15790, + Profit: 17391, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1106, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 138250, + Discounts: 5381.25, + Sales: 132868.75, + COGS: 103320, + Profit: 29548.75, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 213, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 63900, + Discounts: 18750, + Sales: 45150, + COGS: 312500, + Profit: 267350, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2929, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 58580, + Discounts: 2663, + Sales: 55917, + COGS: 26630, + Profit: 29287, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2389, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 16723, + Discounts: 199.5, + Sales: 16523.5, + COGS: 2850, + Profit: 13673.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3086, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 21602, + Discounts: 870.45, + Sales: 20731.55, + COGS: 12435, + Profit: 8296.55, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 745, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 260750, + Discounts: 23625, + Sales: 237125, + COGS: 351000, + Profit: 113875, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1266, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 443100, + Discounts: 9660, + Sales: 433440, + COGS: 143520, + Profit: 289920, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4287, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 1286100, + Discounts: 18750, + Sales: 1267350, + COGS: 312500, + Profit: 954850, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3193, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 47895, + Discounts: 3420.9, + Sales: 44474.1, + COGS: 38010, + Profit: 6464.1, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1967, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 39340, + Discounts: 1341, + Sales: 37999, + COGS: 11175, + Profit: 26824, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 631, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 9465, + Discounts: 2559.6, + Sales: 6905.4, + COGS: 28440, + Profit: 21534.6, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3469, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 41628, + Discounts: 404.64, + Sales: 41223.36, + COGS: 1686, + Profit: 39537.36, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 3215, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 48225, + Discounts: 1827, + Sales: 46398, + COGS: 20300, + Profit: 26098, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1959, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 685650, + Discounts: 20580, + Sales: 665070, + COGS: 254800, + Profit: 410270, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2181, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 763350, + Discounts: 30660, + Sales: 732690, + COGS: 379600, + Profit: 353090, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2205, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 26460, + Discounts: 1960.56, + Sales: 24499.44, + COGS: 8169, + Profit: 16330.44, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1890, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 661500, + Discounts: 31416, + Sales: 630084, + COGS: 388960, + Profit: 241124, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2417, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 302125, + Discounts: 7140, + Sales: 294985, + COGS: 114240, + Profit: 180745, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1158, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 144750, + Discounts: 20662.5, + Sales: 124087.5, + COGS: 330600, + Profit: 206512.5, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 803, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 12045, + Discounts: 1377, + Sales: 10668, + COGS: 15300, + Profit: 4632, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3705, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1296750, + Discounts: 31416, + Sales: 1265334, + COGS: 388960, + Profit: 876374, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 589, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 4123, + Discounts: 629.16, + Sales: 3493.84, + COGS: 7490, + Profit: 3996.16, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3999, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 59985, + Discounts: 2559.6, + Sales: 57425.4, + COGS: 28440, + Profit: 28985.4, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 4256, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 29792, + Discounts: 629.16, + Sales: 29162.84, + COGS: 7490, + Profit: 21672.84, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2160, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 270000, + Discounts: 14906.25, + Sales: 255093.75, + COGS: 238500, + Profit: 16593.75, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 466, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 163100, + Discounts: 35259, + Sales: 127841, + COGS: 436540, + Profit: 308699, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1478, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 22170, + Discounts: 1978.2, + Sales: 20191.8, + COGS: 21980, + Profit: 1788.2, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3798, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 56970, + Discounts: 1568.7, + Sales: 55401.3, + COGS: 17430, + Profit: 37971.3, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 447, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 6705, + Discounts: 1037.7, + Sales: 5667.3, + COGS: 11530, + Profit: 5862.7, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 745, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 14900, + Discounts: 1201.2, + Sales: 13698.8, + COGS: 10010, + Profit: 3688.8, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 1732, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 12124, + Discounts: 559.86, + Sales: 11564.14, + COGS: 6665, + Profit: 4899.14, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1759, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 26385, + Discounts: 1037.7, + Sales: 25347.3, + COGS: 11530, + Profit: 13817.3, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 338, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 4056, + Discounts: 610.68, + Sales: 3445.32, + COGS: 2181, + Profit: 1264.32, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 3911, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 46932, + Discounts: 1582.56, + Sales: 45349.44, + COGS: 5652, + Profit: 39697.44, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 4473, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 53676, + Discounts: 1965.6, + Sales: 51710.4, + COGS: 7020, + Profit: 44690.4, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 383, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 4596, + Discounts: 1967.28, + Sales: 2628.72, + COGS: 7026, + Profit: 4397.28, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1062, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 15930, + Discounts: 1325.1, + Sales: 14604.9, + COGS: 12620, + Profit: 1984.9, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 4083, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 28581, + Discounts: 556.15, + Sales: 28024.85, + COGS: 5675, + Profit: 22349.85, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3974, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 27818, + Discounts: 268.03, + Sales: 27549.97, + COGS: 2735, + Profit: 24814.97, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3723, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 26061, + Discounts: 775.18, + Sales: 25285.82, + COGS: 7910, + Profit: 17375.82, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2435, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 29220, + Discounts: 1460.34, + Sales: 27759.66, + COGS: 5215.5, + Profit: 22544.16, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1763, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 12341, + Discounts: 775.18, + Sales: 11565.82, + COGS: 7910, + Profit: 3655.82, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 4473, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 31311, + Discounts: 556.15, + Sales: 30754.85, + COGS: 5675, + Profit: 25079.85, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1246, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 436100, + Discounts: 43144.5, + Sales: 392955.5, + COGS: 457860, + Profit: 64904.5, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1615, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 484500, + Discounts: 9408, + Sales: 475092, + COGS: 112000, + Profit: 363092, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 749, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 224700, + Discounts: 45801, + Sales: 178899, + COGS: 545250, + Profit: 366351, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1318, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 26360, + Discounts: 2766.4, + Sales: 23593.6, + COGS: 19760, + Profit: 3833.6, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 2882, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 864600, + Discounts: 45801, + Sales: 818799, + COGS: 545250, + Profit: 273549, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2484, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 745200, + Discounts: 35742, + Sales: 709458, + COGS: 425500, + Profit: 283958, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3169, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 950700, + Discounts: 9408, + Sales: 941292, + COGS: 112000, + Profit: 829292, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4080, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 510000, + Discounts: 30738.75, + Sales: 479261.25, + COGS: 421560, + Profit: 57701.25, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3943, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 59145, + Discounts: 2206.05, + Sales: 56938.95, + COGS: 21010, + Profit: 35928.95, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 253, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 5060, + Discounts: 2149, + Sales: 2911, + COGS: 15350, + Profit: 12439, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 799, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 239700, + Discounts: 34839, + Sales: 204861, + COGS: 414750, + Profit: 209889, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3942, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 78840, + Discounts: 852.6, + Sales: 77987.4, + COGS: 6090, + Profit: 71897.4, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2498, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 312250, + Discounts: 18261.25, + Sales: 293988.75, + COGS: 250440, + Profit: 43548.75, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 2517, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 50340, + Discounts: 2766.4, + Sales: 47573.6, + COGS: 19760, + Profit: 27813.6, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1145, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 343500, + Discounts: 28812, + Sales: 314688, + COGS: 343000, + Profit: 28312, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3814, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 45768, + Discounts: 2725.38, + Sales: 43042.62, + COGS: 9733.5, + Profit: 33309.12, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1188, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 356400, + Discounts: 20139, + Sales: 336261, + COGS: 239750, + Profit: 96511, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 2233, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 669900, + Discounts: 57687, + Sales: 612213, + COGS: 686750, + Profit: 74537, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 421, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 52625, + Discounts: 14393.75, + Sales: 38231.25, + COGS: 197400, + Profit: 159168.75, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 269, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 94150, + Discounts: 70462, + Sales: 23688, + COGS: 747760, + Profit: 724072, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 952, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 19040, + Discounts: 1565.2, + Sales: 17474.8, + COGS: 11180, + Profit: 6294.8, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2964, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 889200, + Discounts: 28812, + Sales: 860388, + COGS: 343000, + Profit: 517388, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1505, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 10535, + Discounts: 273.28, + Sales: 10261.72, + COGS: 2440, + Profit: 7821.72, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1678, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 33560, + Discounts: 2051.2, + Sales: 31508.8, + COGS: 12820, + Profit: 18688.8, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4249, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 29743, + Discounts: 143.92, + Sales: 29599.08, + COGS: 1285, + Profit: 28314.08, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1677, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 33540, + Discounts: 2051.2, + Sales: 31488.8, + COGS: 12820, + Profit: 18668.8, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3051, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 381375, + Discounts: 15400, + Sales: 365975, + COGS: 184800, + Profit: 181175, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 3372, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 50580, + Discounts: 588, + Sales: 49992, + COGS: 4900, + Profit: 45092, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1686, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 590100, + Discounts: 38136, + Sales: 551964, + COGS: 354120, + Profit: 197844, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3086, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 46290, + Discounts: 3001.2, + Sales: 43288.8, + COGS: 25010, + Profit: 18278.8, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4150, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 83000, + Discounts: 1132.8, + Sales: 81867.2, + COGS: 7080, + Profit: 74787.2, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3027, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 60540, + Discounts: 1032, + Sales: 59508, + COGS: 6450, + Profit: 53058, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 4359, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1307700, + Discounts: 37488, + Sales: 1270212, + COGS: 390500, + Profit: 879712, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 1589, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 23835, + Discounts: 853.2, + Sales: 22981.8, + COGS: 7110, + Profit: 15871.8, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2679, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 334875, + Discounts: 11140, + Sales: 323735, + COGS: 133680, + Profit: 190055, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3401, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 23807, + Discounts: 705.04, + Sales: 23101.96, + COGS: 6295, + Profit: 16806.96, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2815, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 19705, + Discounts: 613.2, + Sales: 19091.8, + COGS: 5475, + Profit: 13616.8, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2964, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 59280, + Discounts: 2185.6, + Sales: 57094.4, + COGS: 13660, + Profit: 43434.4, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 4173, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1251900, + Discounts: 59040, + Sales: 1192860, + COGS: 615000, + Profit: 577860, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1157, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 8099, + Discounts: 379.68, + Sales: 7719.32, + COGS: 3390, + Profit: 4329.32, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3065, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 21455, + Discounts: 894.88, + Sales: 20560.12, + COGS: 7990, + Profit: 12570.12, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4080, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 81600, + Discounts: 3094.4, + Sales: 78505.6, + COGS: 19340, + Profit: 59165.6, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1713, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 34260, + Discounts: 4788.8, + Sales: 29471.2, + COGS: 29930, + Profit: 458.8, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1691, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 591850, + Discounts: 38136, + Sales: 553714, + COGS: 354120, + Profit: 199594, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2305, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 27660, + Discounts: 574.08, + Sales: 27085.92, + COGS: 1794, + Profit: 25291.92, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3401, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 23807, + Discounts: 1627.92, + Sales: 22179.08, + COGS: 14535, + Profit: 7644.08, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2288, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 16016, + Discounts: 1309.28, + Sales: 14706.72, + COGS: 11690, + Profit: 3016.72, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 4086, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1225800, + Discounts: 15240, + Sales: 1210560, + COGS: 158750, + Profit: 1051810, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2651, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 927850, + Discounts: 16086, + Sales: 911764, + COGS: 149370, + Profit: 762394, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3971, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 27797, + Discounts: 1309.28, + Sales: 26487.72, + COGS: 11690, + Profit: 14797.72, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2512, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 879200, + Discounts: 10668, + Sales: 868532, + COGS: 99060, + Profit: 769472, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2745, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 960750, + Discounts: 11816, + Sales: 948934, + COGS: 109720, + Profit: 839214, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1903, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 570900, + Discounts: 51216, + Sales: 519684, + COGS: 533500, + Profit: 13816, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2914, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 58280, + Discounts: 1132.8, + Sales: 57147.2, + COGS: 7080, + Profit: 50067.2, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1889, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 13223, + Discounts: 1627.92, + Sales: 11595.08, + COGS: 14535, + Profit: 2939.92, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1466, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 29320, + Discounts: 2185.6, + Sales: 27134.4, + COGS: 13660, + Profit: 13474.4, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 887, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 266100, + Discounts: 59040, + Sales: 207060, + COGS: 615000, + Profit: 407940, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 395, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 7900, + Discounts: 2432, + Sales: 5468, + COGS: 15200, + Profit: 9732, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1693, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 25395, + Discounts: 853.2, + Sales: 24541.8, + COGS: 7110, + Profit: 17431.8, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2649, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 794700, + Discounts: 15240, + Sales: 779460, + COGS: 158750, + Profit: 620710, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 3608, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 72160, + Discounts: 698.4, + Sales: 71461.6, + COGS: 4365, + Profit: 67096.6, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1073, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 321900, + Discounts: 29538, + Sales: 292362, + COGS: 273500, + Profit: 18862, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 2167, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 650100, + Discounts: 102667.5, + Sales: 547432.5, + COGS: 950625, + Profit: 403192.5, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1319, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 461650, + Discounts: 52479, + Sales: 409171, + COGS: 433160, + Profit: 23989, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1252, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 15024, + Discounts: 2506.68, + Sales: 12517.32, + COGS: 6963, + Profit: 5554.32, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1156, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 144500, + Discounts: 31466.25, + Sales: 113033.75, + COGS: 335640, + Profit: 222606.25, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1153, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 345900, + Discounts: 69255, + Sales: 276645, + COGS: 641250, + Profit: 364605, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2720, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 952000, + Discounts: 76135.5, + Sales: 875864.5, + COGS: 628420, + Profit: 247444.5, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3658, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 54870, + Discounts: 4961.25, + Sales: 49908.75, + COGS: 36750, + Profit: 13158.75, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2950, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 885000, + Discounts: 29538, + Sales: 855462, + COGS: 273500, + Profit: 581962, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1821, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 27315, + Discounts: 1656.45, + Sales: 25658.55, + COGS: 12270, + Profit: 13388.55, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1127, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 338100, + Discounts: 35748, + Sales: 302352, + COGS: 331000, + Profit: 28648, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 862, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 107750, + Discounts: 31466.25, + Sales: 76283.75, + COGS: 335640, + Profit: 259356.25, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3805, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 57075, + Discounts: 330.75, + Sales: 56744.25, + COGS: 2450, + Profit: 54294.25, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1415, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 424500, + Discounts: 102424.5, + Sales: 322075.5, + COGS: 948375, + Profit: 626299.5, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2231, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 780850, + Discounts: 41170.5, + Sales: 739679.5, + COGS: 339820, + Profit: 399859.5, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3649, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 456125, + Discounts: 6378.75, + Sales: 449746.25, + COGS: 68040, + Profit: 381706.25, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2948, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 368500, + Discounts: 23737.5, + Sales: 344762.5, + COGS: 253200, + Profit: 91562.5, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3395, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1188250, + Discounts: 39973.5, + Sales: 1148276.5, + COGS: 329940, + Profit: 818336.5, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2650, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 31800, + Discounts: 2112.48, + Sales: 29687.52, + COGS: 5868, + Profit: 23819.52, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 585, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 175500, + Discounts: 71793, + Sales: 103707, + COGS: 664750, + Profit: 561043, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1316, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 460600, + Discounts: 42572.25, + Sales: 418027.75, + COGS: 351390, + Profit: 66637.75, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 4459, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 53508, + Discounts: 950.4, + Sales: 52557.6, + COGS: 2640, + Profit: 49917.6, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2711, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 813300, + Discounts: 50409, + Sales: 762891, + COGS: 466750, + Profit: 296141, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3613, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 54195, + Discounts: 1656.45, + Sales: 52538.55, + COGS: 12270, + Profit: 40268.55, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1847, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 230875, + Discounts: 9866.25, + Sales: 221008.75, + COGS: 105240, + Profit: 115768.75, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2996, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1048600, + Discounts: 65236.5, + Sales: 983363.5, + COGS: 538460, + Profit: 444903.5, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2838, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 993300, + Discounts: 39973.5, + Sales: 953326.5, + COGS: 329940, + Profit: 623386.5, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1536, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 30720, + Discounts: 3049.2, + Sales: 27670.8, + COGS: 16940, + Profit: 10730.8, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1291, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 25820, + Discounts: 1193.4, + Sales: 24626.6, + COGS: 6630, + Profit: 17996.6, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1213, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 8491, + Discounts: 515.97, + Sales: 7975.03, + COGS: 4095, + Profit: 3880.03, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2370, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 28440, + Discounts: 1706.4, + Sales: 26733.6, + COGS: 4740, + Profit: 21993.6, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1979, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 13853, + Discounts: 328.23, + Sales: 13524.77, + COGS: 2605, + Profit: 10919.77, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2879, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 57580, + Discounts: 1751.4, + Sales: 55828.6, + COGS: 9730, + Profit: 46098.6, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1707, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 34140, + Discounts: 1868.4, + Sales: 32271.6, + COGS: 10380, + Profit: 21891.6, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2933, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 20531, + Discounts: 226.8, + Sales: 20304.2, + COGS: 1800, + Profit: 18504.2, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1014, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 12168, + Discounts: 2124.36, + Sales: 10043.64, + COGS: 5901, + Profit: 4142.64, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 693, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 10395, + Discounts: 3547.8, + Sales: 6847.2, + COGS: 26280, + Profit: 19432.8, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3741, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 26187, + Discounts: 226.8, + Sales: 25960.2, + COGS: 1800, + Profit: 24160.2, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 3995, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 27965, + Discounts: 328.23, + Sales: 27636.77, + COGS: 2605, + Profit: 25031.77, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 953, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 19060, + Discounts: 1868.4, + Sales: 17191.6, + COGS: 10380, + Profit: 6811.6, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2530, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 37950, + Discounts: 2201.18, + Sales: 35748.82, + COGS: 16305, + Profit: 19443.82, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1372, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 27440, + Discounts: 0, + Sales: 27440, + COGS: 16185, + Profit: 11255, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2762, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 55240, + Discounts: 0, + Sales: 55240, + COGS: 13210, + Profit: 42030, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1464, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 21960, + Discounts: 0, + Sales: 21960, + COGS: 21780, + Profit: 180, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 719, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 10785, + Discounts: 0, + Sales: 10785, + COGS: 8880, + Profit: 1905, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3576, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 53640, + Discounts: 0, + Sales: 53640, + COGS: 24700, + Profit: 28940, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 4422, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1547700, + Discounts: 0, + Sales: 1547700, + COGS: 393380, + Profit: 1154320, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3649, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 54735, + Discounts: 0, + Sales: 54735, + COGS: 9210, + Profit: 45525, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4172, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 50064, + Discounts: 0, + Sales: 50064, + COGS: 7554, + Profit: 42510, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3841, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 76820, + Discounts: 0, + Sales: 76820, + COGS: 18990, + Profit: 57830, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3726, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 44712, + Discounts: 0, + Sales: 44712, + COGS: 4635, + Profit: 40077, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2625, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 39375, + Discounts: 0, + Sales: 39375, + COGS: 24700, + Profit: 14675, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1958, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 244750, + Discounts: 0, + Sales: 244750, + COGS: 319860, + Profit: 75110, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 3271, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 981300, + Discounts: 0, + Sales: 981300, + COGS: 239500, + Profit: 741800, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2091, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 14637, + Discounts: 0, + Sales: 14637, + COGS: 10730, + Profit: 3907, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 2530, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 316250, + Discounts: 0, + Sales: 316250, + COGS: 41400, + Profit: 274850, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2825, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 42375, + Discounts: 0, + Sales: 42375, + COGS: 6150, + Profit: 36225, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2513, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 50260, + Discounts: 0, + Sales: 50260, + COGS: 2920, + Profit: 47340, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 883, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 13245, + Discounts: 0, + Sales: 13245, + COGS: 9740, + Profit: 3505, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2087, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 25044, + Discounts: 0, + Sales: 25044, + COGS: 7554, + Profit: 17490, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2563, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 897050, + Discounts: 0, + Sales: 897050, + COGS: 261560, + Profit: 635490, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2846, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 34152, + Discounts: 0, + Sales: 34152, + COGS: 1101, + Profit: 33051, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 997, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 6979, + Discounts: 0, + Sales: 6979, + COGS: 4415, + Profit: 2564, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3421, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 51315, + Discounts: 0, + Sales: 51315, + COGS: 5490, + Profit: 45825, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Marchesa`, + UnitsSold: 70000, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 1050000, + Discounts: 0, + Sales: 1050000, + COGS: 5490, + Profit: 1044510, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2291, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 687300, + Discounts: 0, + Sales: 687300, + COGS: 197000, + Profit: 490300, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2290, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 34350, + Discounts: 0, + Sales: 34350, + COGS: 24720, + Profit: 9630, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2133, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 14931, + Discounts: 0, + Sales: 14931, + COGS: 5715, + Profit: 9216, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3475, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1216250, + Discounts: 0, + Sales: 1216250, + COGS: 448500, + Profit: 767750, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3686, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 44232, + Discounts: 0, + Sales: 44232, + COGS: 2736, + Profit: 41496, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3319, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 49785, + Discounts: 0, + Sales: 49785, + COGS: 21520, + Profit: 28265, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3617, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 72340, + Discounts: 0, + Sales: 72340, + COGS: 18170, + Profit: 54170, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1266, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 443100, + Discounts: 0, + Sales: 443100, + COGS: 393380, + Profit: 49720, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 894, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 6258, + Discounts: 0, + Sales: 6258, + COGS: 7465, + Profit: 1207, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 2725, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 340625, + Discounts: 0, + Sales: 340625, + COGS: 216480, + Profit: 124145, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3061, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 36732, + Discounts: 0, + Sales: 36732, + COGS: 6483, + Profit: 30249, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3958, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1385300, + Discounts: 0, + Sales: 1385300, + COGS: 261560, + Profit: 1123740, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3920, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 47040, + Discounts: 0, + Sales: 47040, + COGS: 4635, + Profit: 42405, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3381, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 422625, + Discounts: 0, + Sales: 422625, + COGS: 338520, + Profit: 84105, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1094, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 136750, + Discounts: 0, + Sales: 136750, + COGS: 41400, + Profit: 95350, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4307, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 1292100, + Discounts: 0, + Sales: 1292100, + COGS: 500250, + Profit: 791850, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 878, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 10536, + Discounts: 0, + Sales: 10536, + COGS: 8514, + Profit: 2022, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 496, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 7440, + Discounts: 0, + Sales: 7440, + COGS: 21780, + Profit: 14340, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3367, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 50505, + Discounts: 0, + Sales: 50505, + COGS: 8880, + Profit: 41625, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3880, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1358000, + Discounts: 0, + Sales: 1358000, + COGS: 397020, + Profit: 960980, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2055, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 616500, + Discounts: 0, + Sales: 616500, + COGS: 537750, + Profit: 78750, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4041, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 80820, + Discounts: 0, + Sales: 80820, + COGS: 18170, + Profit: 62650, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 3237, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1132950, + Discounts: 0, + Sales: 1132950, + COGS: 715000, + Profit: 417950, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 630, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 7560, + Discounts: 0, + Sales: 7560, + COGS: 5859, + Profit: 1701, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4210, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 526250, + Discounts: 0, + Sales: 526250, + COGS: 506340, + Profit: 19910, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1127, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 22540, + Discounts: 0, + Sales: 22540, + COGS: 18990, + Profit: 3550, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 3438, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 24066, + Discounts: 0, + Sales: 24066, + COGS: 8430, + Profit: 15636, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2015, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 24180, + Discounts: 0, + Sales: 24180, + COGS: 6423, + Profit: 17757, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2534, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 17738, + Discounts: 0, + Sales: 17738, + COGS: 5715, + Profit: 12023, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1384, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 20760, + Discounts: 0, + Sales: 20760, + COGS: 6150, + Profit: 14610, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3561, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 24927, + Discounts: 276.15, + Sales: 24650.85, + COGS: 19725, + Profit: 4925.85, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1823, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 27345, + Discounts: 344.4, + Sales: 27000.6, + COGS: 22960, + Profit: 4040.6, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2795, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 19565, + Discounts: 72.1, + Sales: 19492.9, + COGS: 5150, + Profit: 14342.9, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 457, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 3199, + Discounts: 44.73, + Sales: 3154.27, + COGS: 3195, + Profit: 40.73, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3785, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 26495, + Discounts: 92.82, + Sales: 26402.18, + COGS: 6630, + Profit: 19772.18, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 748, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 8976, + Discounts: 222.96, + Sales: 8753.04, + COGS: 5574, + Profit: 3179.04, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1021, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 357350, + Discounts: 4235, + Sales: 353115, + COGS: 314600, + Profit: 38515, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2076, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 14532, + Discounts: 177.03, + Sales: 14354.97, + COGS: 12645, + Profit: 1709.97, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 4316, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 51792, + Discounts: 173.4, + Sales: 51618.6, + COGS: 4335, + Profit: 47283.6, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2654, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 331750, + Discounts: 412.5, + Sales: 331337.5, + COGS: 39600, + Profit: 291737.5, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 4174, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 50088, + Discounts: 320.52, + Sales: 49767.48, + COGS: 8013, + Profit: 41754.48, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1675, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 20100, + Discounts: 91.92, + Sales: 20008.08, + COGS: 2298, + Profit: 17710.08, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1572, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 471600, + Discounts: 1482, + Sales: 470118, + COGS: 123500, + Profit: 346618, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3736, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1307600, + Discounts: 4889.5, + Sales: 1302710.5, + COGS: 363220, + Profit: 939490.5, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1914, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 669900, + Discounts: 7542.5, + Sales: 662357.5, + COGS: 560300, + Profit: 102057.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2742, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 41130, + Discounts: 332.1, + Sales: 40797.9, + COGS: 22140, + Profit: 18657.9, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1499, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 449700, + Discounts: 6903, + Sales: 442797, + COGS: 575250, + Profit: 132453, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3772, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 75440, + Discounts: 275.1, + Sales: 75164.9, + COGS: 13755, + Profit: 61409.9, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1112, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 7784, + Discounts: 128.1, + Sales: 7655.9, + COGS: 9150, + Profit: 1494.1, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1723, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 516900, + Discounts: 7494, + Sales: 509406, + COGS: 624500, + Profit: 115094, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 423, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 52875, + Discounts: 828.75, + Sales: 52046.25, + COGS: 79560, + Profit: 27513.75, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2368, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 35520, + Discounts: 227.1, + Sales: 35292.9, + COGS: 15140, + Profit: 20152.9, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1586, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 11102, + Discounts: 314.48, + Sales: 10787.52, + COGS: 22462.5, + Profit: 11674.98, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3386, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 423250, + Discounts: 908.75, + Sales: 422341.25, + COGS: 87240, + Profit: 335101.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 852, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 106500, + Discounts: 983.75, + Sales: 105516.25, + COGS: 94440, + Profit: 11076.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2783, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 347875, + Discounts: 2278.75, + Sales: 345596.25, + COGS: 218760, + Profit: 126836.25, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2684, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 40260, + Discounts: 112.05, + Sales: 40147.95, + COGS: 7470, + Profit: 32677.95, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4393, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 52716, + Discounts: 91.92, + Sales: 52624.08, + COGS: 2298, + Profit: 50326.08, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4083, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1224900, + Discounts: 8715, + Sales: 1216185, + COGS: 726250, + Profit: 489935, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2816, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 985600, + Discounts: 7542.5, + Sales: 978057.5, + COGS: 560300, + Profit: 417757.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 4294, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 85880, + Discounts: 772.8, + Sales: 85107.2, + COGS: 38640, + Profit: 46467.2, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2856, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 19992, + Discounts: 25.34, + Sales: 19966.66, + COGS: 1810, + Profit: 18156.66, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1407, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 175875, + Discounts: 1153.75, + Sales: 174721.25, + COGS: 110760, + Profit: 63961.25, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3850, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 481250, + Discounts: 828.75, + Sales: 480421.25, + COGS: 79560, + Profit: 400861.25, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2856, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 19992, + Discounts: 146.44, + Sales: 19845.56, + COGS: 10460, + Profit: 9385.56, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1265, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 8855, + Discounts: 18.41, + Sales: 8836.59, + COGS: 1315, + Profit: 7521.59, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3892, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1362200, + Discounts: 3302.25, + Sales: 1358897.75, + COGS: 245310, + Profit: 1113587.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 3068, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 383500, + Discounts: 908.75, + Sales: 382591.25, + COGS: 87240, + Profit: 295351.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2181, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 272625, + Discounts: 983.75, + Sales: 271641.25, + COGS: 94440, + Profit: 177201.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1356, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 406800, + Discounts: 2958, + Sales: 403842, + COGS: 246500, + Profit: 157342, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 2545, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 763500, + Discounts: 1482, + Sales: 762018, + COGS: 123500, + Profit: 638518, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1814, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 634900, + Discounts: 4889.5, + Sales: 630010.5, + COGS: 363220, + Profit: 266790.5, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1495, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 186875, + Discounts: 2180, + Sales: 184695, + COGS: 209280, + Profit: 24585, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1154, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 13848, + Discounts: 238.68, + Sales: 13609.32, + COGS: 5967, + Profit: 7642.32, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 4180, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 62700, + Discounts: 48.15, + Sales: 62651.85, + COGS: 3210, + Profit: 59441.85, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1463, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 182875, + Discounts: 1856.25, + Sales: 181018.75, + COGS: 89100, + Profit: 91918.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 215, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 2580, + Discounts: 310.8, + Sales: 2269.2, + COGS: 3885, + Profit: 1615.8, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 4099, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 1229700, + Discounts: 1284, + Sales: 1228416, + COGS: 53500, + Profit: 1174916, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 2660, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 18620, + Discounts: 300.3, + Sales: 18319.7, + COGS: 10725, + Profit: 7594.7, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 566, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 198100, + Discounts: 19964, + Sales: 178136, + COGS: 741520, + Profit: 563384, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 3255, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 39060, + Discounts: 274.08, + Sales: 38785.92, + COGS: 3426, + Profit: 35359.92, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 772, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 15440, + Discounts: 626.4, + Sales: 14813.6, + COGS: 15660, + Profit: 846.4, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1135, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 13620, + Discounts: 165.6, + Sales: 13454.4, + COGS: 2070, + Profit: 11384.4, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 3826, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 478250, + Discounts: 4150, + Sales: 474100, + COGS: 199200, + Profit: 274900, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1193, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 17895, + Discounts: 708.9, + Sales: 17186.1, + COGS: 23630, + Profit: 6443.9, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2530, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 759000, + Discounts: 5508, + Sales: 753492, + COGS: 229500, + Profit: 523992, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3451, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1035300, + Discounts: 10368, + Sales: 1024932, + COGS: 432000, + Profit: 592932, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3059, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 36708, + Discounts: 274.08, + Sales: 36433.92, + COGS: 3426, + Profit: 33007.92, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3957, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 494625, + Discounts: 1655, + Sales: 492970, + COGS: 79440, + Profit: 413530, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3444, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 41328, + Discounts: 310.8, + Sales: 41017.2, + COGS: 3885, + Profit: 37132.2, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4388, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 548500, + Discounts: 2022.5, + Sales: 546477.5, + COGS: 97080, + Profit: 449397.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2106, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 263250, + Discounts: 5362.5, + Sales: 257887.5, + COGS: 257400, + Profit: 487.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 799, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 9588, + Discounts: 428.4, + Sales: 9159.6, + COGS: 5355, + Profit: 3804.6, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3154, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 946200, + Discounts: 11496, + Sales: 934704, + COGS: 479000, + Profit: 455704, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4108, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1437800, + Discounts: 19964, + Sales: 1417836, + COGS: 741520, + Profit: 676316, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3760, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 470000, + Discounts: 6822.5, + Sales: 463177.5, + COGS: 327480, + Profit: 135697.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 377, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 5655, + Discounts: 577.5, + Sales: 5077.5, + COGS: 19250, + Profit: 14172.5, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2110, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 14770, + Discounts: 281.82, + Sales: 14488.18, + COGS: 10065, + Profit: 4423.18, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2334, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 28008, + Discounts: 253.2, + Sales: 27754.8, + COGS: 3165, + Profit: 24589.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 580, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 6960, + Discounts: 260.16, + Sales: 6699.84, + COGS: 3252, + Profit: 3447.84, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2610, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 52200, + Discounts: 626.4, + Sales: 51573.6, + COGS: 15660, + Profit: 35913.6, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 1598, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 559300, + Discounts: 20762, + Sales: 538538, + COGS: 771160, + Profit: 232622, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 1459, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 510650, + Discounts: 20139, + Sales: 490511, + COGS: 748020, + Profit: 257509, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3284, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 410500, + Discounts: 2022.5, + Sales: 408477.5, + COGS: 97080, + Profit: 311397.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 1197, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 149625, + Discounts: 5362.5, + Sales: 144262.5, + COGS: 257400, + Profit: 113137.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3774, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 45288, + Discounts: 253.2, + Sales: 45034.8, + COGS: 3165, + Profit: 41869.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2303, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 46060, + Discounts: 217.6, + Sales: 45842.4, + COGS: 5440, + Profit: 40402.4, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2572, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 30864, + Discounts: 260.16, + Sales: 30603.84, + COGS: 3252, + Profit: 27351.84, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 320, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 40000, + Discounts: 1655, + Sales: 38345, + COGS: 79440, + Profit: 41095, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2126, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 637800, + Discounts: 1284, + Sales: 636516, + COGS: 53500, + Profit: 583016, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3275, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1146250, + Discounts: 20139, + Sales: 1126111, + COGS: 748020, + Profit: 378091, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3582, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 447750, + Discounts: 6822.5, + Sales: 440927.5, + COGS: 327480, + Profit: 113447.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 783, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 274050, + Discounts: 1862, + Sales: 272188, + COGS: 69160, + Profit: 203028, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1202, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 420700, + Discounts: 13580, + Sales: 407120, + COGS: 504400, + Profit: 97280, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4056, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 1216800, + Discounts: 1554, + Sales: 1215246, + COGS: 64750, + Profit: 1150496, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2144, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 643200, + Discounts: 6606, + Sales: 636594, + COGS: 275250, + Profit: 361344, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 3502, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 437750, + Discounts: 5690, + Sales: 432060, + COGS: 273120, + Profit: 158940, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1397, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 488950, + Discounts: 20762, + Sales: 468188, + COGS: 771160, + Profit: 302972, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 679, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 13580, + Discounts: 494.4, + Sales: 13085.6, + COGS: 12360, + Profit: 725.6, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2351, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 47020, + Discounts: 376.4, + Sales: 46643.6, + COGS: 9410, + Profit: 37233.6, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2043, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 612900, + Discounts: 11496, + Sales: 601404, + COGS: 479000, + Profit: 122404, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 3565, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 445625, + Discounts: 15913.13, + Sales: 429711.88, + COGS: 509220, + Profit: 79508.13, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1401, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 28020, + Discounts: 1548, + Sales: 26472, + COGS: 25800, + Profit: 672, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2077, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 623100, + Discounts: 6201, + Sales: 616899, + COGS: 172250, + Profit: 444649, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 3643, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 43716, + Discounts: 700.92, + Sales: 43015.08, + COGS: 5841, + Profit: 37174.08, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1105, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 13260, + Discounts: 326.88, + Sales: 12933.12, + COGS: 2724, + Profit: 10209.12, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2960, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 20720, + Discounts: 411.18, + Sales: 20308.82, + COGS: 9790, + Profit: 10518.82, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1201, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 14412, + Discounts: 684.36, + Sales: 13727.64, + COGS: 5703, + Profit: 8024.64, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 2321, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 16247, + Discounts: 114.24, + Sales: 16132.76, + COGS: 2720, + Profit: 13412.76, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3640, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 1274000, + Discounts: 18868.5, + Sales: 1255131.5, + COGS: 467220, + Profit: 787911.5, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3972, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 496500, + Discounts: 4826.25, + Sales: 491673.75, + COGS: 154440, + Profit: 337233.75, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3878, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 484750, + Discounts: 6397.5, + Sales: 478352.5, + COGS: 204720, + Profit: 273632.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2278, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 683400, + Discounts: 21910.5, + Sales: 661489.5, + COGS: 608625, + Profit: 52864.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1075, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 134375, + Discounts: 6652.5, + Sales: 127722.5, + COGS: 212880, + Profit: 85157.5, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 4050, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 48600, + Discounts: 684.36, + Sales: 47915.64, + COGS: 5703, + Profit: 42212.64, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3035, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 910500, + Discounts: 6201, + Sales: 904299, + COGS: 172250, + Profit: 732049, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3636, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 454500, + Discounts: 5887.5, + Sales: 448612.5, + COGS: 188400, + Profit: 260212.5, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1379, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 16548, + Discounts: 493.02, + Sales: 16054.98, + COGS: 4108.5, + Profit: 11946.48, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4492, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 561500, + Discounts: 7533.75, + Sales: 553966.25, + COGS: 241080, + Profit: 312886.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 764, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 11460, + Discounts: 875.25, + Sales: 10584.75, + COGS: 19450, + Profit: 8865.25, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1744, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 218000, + Discounts: 4826.25, + Sales: 213173.75, + COGS: 154440, + Profit: 58733.75, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2341, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 292625, + Discounts: 6397.5, + Sales: 286227.5, + COGS: 204720, + Profit: 81507.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3835, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 479375, + Discounts: 7533.75, + Sales: 471841.25, + COGS: 241080, + Profit: 230761.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1161, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 348300, + Discounts: 25596, + Sales: 322704, + COGS: 711000, + Profit: 388296, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 876, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 10512, + Discounts: 689.76, + Sales: 9822.24, + COGS: 5748, + Profit: 4074.24, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1705, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 213125, + Discounts: 5887.5, + Sales: 207237.5, + COGS: 188400, + Profit: 18837.5, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1805, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 541500, + Discounts: 16866, + Sales: 524634, + COGS: 468500, + Profit: 56134, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 389, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 136150, + Discounts: 17241, + Sales: 118909, + COGS: 426920, + Profit: 308011, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2745, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 41175, + Discounts: 875.25, + Sales: 40299.75, + COGS: 19450, + Profit: 20849.75, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1459, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 29180, + Discounts: 498.6, + Sales: 28681.4, + COGS: 8310, + Profit: 20371.4, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3938, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 27566, + Discounts: 369.6, + Sales: 27196.4, + COGS: 8800, + Profit: 18396.4, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 4236, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 84720, + Discounts: 2310.3, + Sales: 82409.7, + COGS: 38505, + Profit: 43904.7, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3627, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 43524, + Discounts: 892.44, + Sales: 42631.56, + COGS: 7437, + Profit: 35194.56, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1756, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 26340, + Discounts: 1218.6, + Sales: 25121.4, + COGS: 20310, + Profit: 4811.4, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 307, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 4605, + Discounts: 1218.6, + Sales: 3386.4, + COGS: 20310, + Profit: 16923.6, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 4489, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 67335, + Discounts: 1356.6, + Sales: 65978.4, + COGS: 22610, + Profit: 43368.4, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2167, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 43340, + Discounts: 588.8, + Sales: 42751.2, + COGS: 7360, + Profit: 35391.2, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1137, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 7959, + Discounts: 798.28, + Sales: 7160.72, + COGS: 14255, + Profit: 7094.28, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1222, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 366600, + Discounts: 24252, + Sales: 342348, + COGS: 505250, + Profit: 162902, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 489, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 171150, + Discounts: 3836, + Sales: 167314, + COGS: 71240, + Profit: 96074, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4133, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 61995, + Discounts: 1180.2, + Sales: 60814.8, + COGS: 19670, + Profit: 41144.8, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2743, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 822900, + Discounts: 22308, + Sales: 800592, + COGS: 464750, + Profit: 335842, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 3699, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 25893, + Discounts: 798.28, + Sales: 25094.72, + COGS: 14255, + Profit: 10839.72, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 4460, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1338000, + Discounts: 24252, + Sales: 1313748, + COGS: 505250, + Profit: 808498, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1232, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 154000, + Discounts: 5690, + Sales: 148310, + COGS: 136560, + Profit: 11750, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2586, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 18102, + Discounts: 1190.28, + Sales: 16911.72, + COGS: 21255, + Profit: 4343.28, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1332, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 166500, + Discounts: 3975, + Sales: 162525, + COGS: 95400, + Profit: 67125, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4487, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1346100, + Discounts: 16974, + Sales: 1329126, + COGS: 353625, + Profit: 975501, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3862, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1158600, + Discounts: 35016, + Sales: 1123584, + COGS: 729500, + Profit: 394084, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1765, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 617750, + Discounts: 48300, + Sales: 569450, + COGS: 897000, + Profit: 327550, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3533, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 441625, + Discounts: 14940, + Sales: 426685, + COGS: 358560, + Profit: 68125, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2016, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 30240, + Discounts: 130.8, + Sales: 30109.2, + COGS: 2180, + Profit: 27929.2, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2938, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 58760, + Discounts: 1659.2, + Sales: 57100.8, + COGS: 20740, + Profit: 36360.8, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3352, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 67040, + Discounts: 844.8, + Sales: 66195.2, + COGS: 10560, + Profit: 55635.2, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4409, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 66135, + Discounts: 402.6, + Sales: 65732.4, + COGS: 6710, + Profit: 59022.4, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3323, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 49845, + Discounts: 908.4, + Sales: 48936.6, + COGS: 15140, + Profit: 33796.6, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2430, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 850500, + Discounts: 3836, + Sales: 846664, + COGS: 71240, + Profit: 775424, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 535, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 66875, + Discounts: 5690, + Sales: 61185, + COGS: 136560, + Profit: 75375, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1523, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 18276, + Discounts: 703.2, + Sales: 17572.8, + COGS: 4395, + Profit: 13177.8, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3631, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 72620, + Discounts: 2116.8, + Sales: 70503.2, + COGS: 26460, + Profit: 44043.2, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1782, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 623700, + Discounts: 30478, + Sales: 593222, + COGS: 566020, + Profit: 27202, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 347, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 4164, + Discounts: 415.68, + Sales: 3748.32, + COGS: 2598, + Profit: 1150.32, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 4147, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1451450, + Discounts: 4886, + Sales: 1446564, + COGS: 90740, + Profit: 1355824, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3509, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1228150, + Discounts: 30478, + Sales: 1197672, + COGS: 566020, + Profit: 631652, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 2774, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 41610, + Discounts: 908.4, + Sales: 40701.6, + COGS: 15140, + Profit: 25561.6, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2943, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1030050, + Discounts: 26110, + Sales: 1003940, + COGS: 484900, + Profit: 519040, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 4037, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 504625, + Discounts: 5370, + Sales: 499255, + COGS: 128880, + Profit: 370375, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4146, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1451100, + Discounts: 26698, + Sales: 1424402, + COGS: 495820, + Profit: 928582, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 4123, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 61845, + Discounts: 402.6, + Sales: 61442.4, + COGS: 6710, + Profit: 54732.4, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1337, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 467950, + Discounts: 24892, + Sales: 443058, + COGS: 462280, + Profit: 19222, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 599, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 4193, + Discounts: 405.65, + Sales: 3787.35, + COGS: 5795, + Profit: 2007.65, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 725, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 5075, + Discounts: 480.2, + Sales: 4594.8, + COGS: 6860, + Profit: 2265.2, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 477, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 3339, + Discounts: 822.15, + Sales: 2516.85, + COGS: 11745, + Profit: 9228.15, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2325, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 16275, + Discounts: 941.15, + Sales: 15333.85, + COGS: 13445, + Profit: 1888.85, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 675, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 8100, + Discounts: 1458.6, + Sales: 6641.4, + COGS: 7293, + Profit: 651.6, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2990, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 35880, + Discounts: 1458.6, + Sales: 34421.4, + COGS: 7293, + Profit: 27128.4, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1072, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 7504, + Discounts: 941.15, + Sales: 6562.85, + COGS: 13445, + Profit: 6882.15, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1048, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 7336, + Discounts: 589.05, + Sales: 6746.95, + COGS: 8415, + Profit: 1668.05, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 469, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 5628, + Discounts: 673.8, + Sales: 4954.2, + COGS: 3369, + Profit: 1585.2, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 804, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 5628, + Discounts: 405.65, + Sales: 5222.35, + COGS: 5795, + Profit: 572.65, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 4240, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 50880, + Discounts: 1119, + Sales: 49761, + COGS: 5595, + Profit: 44166, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1976, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 23712, + Discounts: 669.6, + Sales: 23042.4, + COGS: 3348, + Profit: 19694.4, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1984, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 39680, + Discounts: 1563, + Sales: 38117, + COGS: 15630, + Profit: 22487, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 480, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 144000, + Discounts: 14865, + Sales: 129135, + COGS: 247750, + Profit: 118615, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 3551, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 24857, + Discounts: 355.6, + Sales: 24501.4, + COGS: 5080, + Profit: 19421.4, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1205, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 18075, + Discounts: 2093.25, + Sales: 15981.75, + COGS: 27910, + Profit: 11928.25, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2480, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 17360, + Discounts: 199.5, + Sales: 17160.5, + COGS: 2850, + Profit: 14310.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 2926, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 20482, + Discounts: 870.45, + Sales: 19611.55, + COGS: 12435, + Profit: 7176.55, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3210, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 1123500, + Discounts: 24228.75, + Sales: 1099271.25, + COGS: 359970, + Profit: 739301.25, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 3221, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 402625, + Discounts: 22668.75, + Sales: 379956.25, + COGS: 435240, + Profit: 55283.75, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2389, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 836150, + Discounts: 12600, + Sales: 823550, + COGS: 187200, + Profit: 636350, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 1127, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 13524, + Discounts: 1405.2, + Sales: 12118.8, + COGS: 7026, + Profit: 5092.8, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 319, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 95700, + Discounts: 16500, + Sales: 79200, + COGS: 275000, + Profit: 195800, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1610, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 32200, + Discounts: 1303, + Sales: 30897, + COGS: 13030, + Profit: 17867, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4100, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 512500, + Discounts: 18700, + Sales: 493800, + COGS: 359040, + Profit: 134760, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1012, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 126500, + Discounts: 14906.25, + Sales: 111593.75, + COGS: 286200, + Profit: 174606.25, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3337, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1001100, + Discounts: 24105, + Sales: 976995, + COGS: 401750, + Profit: 575245, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3955, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 27685, + Discounts: 814.45, + Sales: 26870.55, + COGS: 11635, + Profit: 15235.55, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4347, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1304100, + Discounts: 14865, + Sales: 1289235, + COGS: 247750, + Profit: 1041485, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1548, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 541800, + Discounts: 10535, + Sales: 531265, + COGS: 156520, + Profit: 374745, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2153, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 32295, + Discounts: 1965, + Sales: 30330, + COGS: 26200, + Profit: 4130, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3789, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1326150, + Discounts: 21490, + Sales: 1304660, + COGS: 319280, + Profit: 985380, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4364, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 87280, + Discounts: 1389, + Sales: 85891, + COGS: 13890, + Profit: 72001, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4126, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 515750, + Discounts: 5381.25, + Sales: 510368.75, + COGS: 103320, + Profit: 407048.75, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1343, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 167875, + Discounts: 4400, + Sales: 163475, + COGS: 84480, + Profit: 78995, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 245, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 4900, + Discounts: 1802, + Sales: 3098, + COGS: 18020, + Profit: 14922, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3376, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 67520, + Discounts: 2663, + Sales: 64857, + COGS: 26630, + Profit: 38227, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1401, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 9807, + Discounts: 747.6, + Sales: 9059.4, + COGS: 10680, + Profit: 1620.6, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3483, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 52245, + Discounts: 1587, + Sales: 50658, + COGS: 21160, + Profit: 29498, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2244, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 33660, + Discounts: 416.25, + Sales: 33243.75, + COGS: 5550, + Profit: 27693.75, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 1360, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 20400, + Discounts: 2145.75, + Sales: 18254.25, + COGS: 28610, + Profit: 10355.75, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 279, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 34875, + Discounts: 5043.75, + Sales: 29831.25, + COGS: 96840, + Profit: 67008.75, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2521, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 882350, + Discounts: 10535, + Sales: 871815, + COGS: 156520, + Profit: 715295, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2433, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 48660, + Discounts: 2832, + Sales: 45828, + COGS: 28320, + Profit: 17508, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1738, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 34760, + Discounts: 1579, + Sales: 33181, + COGS: 15790, + Profit: 17391, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1106, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 138250, + Discounts: 5381.25, + Sales: 132868.75, + COGS: 103320, + Profit: 29548.75, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3379, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 422375, + Discounts: 4400, + Sales: 417975, + COGS: 84480, + Profit: 333495, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1221, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 24420, + Discounts: 1033, + Sales: 23387, + COGS: 10330, + Profit: 13057, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 213, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 63900, + Discounts: 18750, + Sales: 45150, + COGS: 312500, + Profit: 267350, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3335, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 66700, + Discounts: 1389, + Sales: 65311, + COGS: 13890, + Profit: 51421, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1260, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 25200, + Discounts: 1265, + Sales: 23935, + COGS: 12650, + Profit: 11285, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3034, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 60680, + Discounts: 2297, + Sales: 58383, + COGS: 22970, + Profit: 35413, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2929, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 58580, + Discounts: 2663, + Sales: 55917, + COGS: 26630, + Profit: 29287, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2389, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 16723, + Discounts: 199.5, + Sales: 16523.5, + COGS: 2850, + Profit: 13673.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3086, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 21602, + Discounts: 870.45, + Sales: 20731.55, + COGS: 12435, + Profit: 8296.55, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 745, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 260750, + Discounts: 23625, + Sales: 237125, + COGS: 351000, + Profit: 113875, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1266, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 443100, + Discounts: 9660, + Sales: 433440, + COGS: 143520, + Profit: 289920, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 3790, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1326500, + Discounts: 21490, + Sales: 1305010, + COGS: 319280, + Profit: 985730, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4287, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 1286100, + Discounts: 18750, + Sales: 1267350, + COGS: 312500, + Profit: 954850, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3193, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 47895, + Discounts: 3420.9, + Sales: 44474.1, + COGS: 38010, + Profit: 6464.1, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1967, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 39340, + Discounts: 1341, + Sales: 37999, + COGS: 11175, + Profit: 26824, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 631, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 9465, + Discounts: 2559.6, + Sales: 6905.4, + COGS: 28440, + Profit: 21534.6, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3469, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 41628, + Discounts: 404.64, + Sales: 41223.36, + COGS: 1686, + Profit: 39537.36, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 570, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 6840, + Discounts: 1655.28, + Sales: 5184.72, + COGS: 6897, + Profit: 1712.28, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 3215, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 48225, + Discounts: 1827, + Sales: 46398, + COGS: 20300, + Profit: 26098, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 3754, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 26278, + Discounts: 110.46, + Sales: 26167.54, + COGS: 1315, + Profit: 24852.54, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2187, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 273375, + Discounts: 6652.5, + Sales: 266722.5, + COGS: 106440, + Profit: 160282.5, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1959, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 685650, + Discounts: 20580, + Sales: 665070, + COGS: 254800, + Profit: 410270, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2181, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 763350, + Discounts: 30660, + Sales: 732690, + COGS: 379600, + Profit: 353090, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3559, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 24913, + Discounts: 589.26, + Sales: 24323.74, + COGS: 7015, + Profit: 17308.74, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2205, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 26460, + Discounts: 1960.56, + Sales: 24499.44, + COGS: 8169, + Profit: 16330.44, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1890, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 661500, + Discounts: 31416, + Sales: 630084, + COGS: 388960, + Profit: 241124, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1296, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 15552, + Discounts: 1655.28, + Sales: 13896.72, + COGS: 6897, + Profit: 6999.72, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 775, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 271250, + Discounts: 15267, + Sales: 255983, + COGS: 189020, + Profit: 66963, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2417, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 302125, + Discounts: 7140, + Sales: 294985, + COGS: 114240, + Profit: 180745, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1158, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 144750, + Discounts: 20662.5, + Sales: 124087.5, + COGS: 330600, + Profit: 206512.5, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 803, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 12045, + Discounts: 1377, + Sales: 10668, + COGS: 15300, + Profit: 4632, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3705, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1296750, + Discounts: 31416, + Sales: 1265334, + COGS: 388960, + Profit: 876374, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 589, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 4123, + Discounts: 629.16, + Sales: 3493.84, + COGS: 7490, + Profit: 3996.16, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3797, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1139100, + Discounts: 21978, + Sales: 1117122, + COGS: 305250, + Profit: 811872, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1321, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 462350, + Discounts: 43596, + Sales: 418754, + COGS: 539760, + Profit: 121006, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3999, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 59985, + Discounts: 2559.6, + Sales: 57425.4, + COGS: 28440, + Profit: 28985.4, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 4256, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 29792, + Discounts: 629.16, + Sales: 29162.84, + COGS: 7490, + Profit: 21672.84, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1643, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 492900, + Discounts: 21978, + Sales: 470922, + COGS: 305250, + Profit: 165672, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1912, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 38240, + Discounts: 1347.6, + Sales: 36892.4, + COGS: 11230, + Profit: 25662.4, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1610, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 483000, + Discounts: 43848, + Sales: 439152, + COGS: 609000, + Profit: 169848, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2160, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 270000, + Discounts: 14906.25, + Sales: 255093.75, + COGS: 238500, + Profit: 16593.75, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 466, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 163100, + Discounts: 35259, + Sales: 127841, + COGS: 436540, + Profit: 308699, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 328, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 114800, + Discounts: 15267, + Sales: 99533, + COGS: 189020, + Profit: 89487, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 4099, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 28693, + Discounts: 589.26, + Sales: 28103.74, + COGS: 7015, + Profit: 21088.74, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 990, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 346500, + Discounts: 43596, + Sales: 302904, + COGS: 539760, + Profit: 236856, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1433, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 28660, + Discounts: 2108.4, + Sales: 26551.6, + COGS: 17570, + Profit: 8981.6, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1478, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 22170, + Discounts: 1978.2, + Sales: 20191.8, + COGS: 21980, + Profit: 1788.2, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3798, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 56970, + Discounts: 1568.7, + Sales: 55401.3, + COGS: 17430, + Profit: 37971.3, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 447, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 6705, + Discounts: 1037.7, + Sales: 5667.3, + COGS: 11530, + Profit: 5862.7, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1711, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 34220, + Discounts: 2108.4, + Sales: 32111.6, + COGS: 17570, + Profit: 14541.6, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 745, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 14900, + Discounts: 1201.2, + Sales: 13698.8, + COGS: 10010, + Profit: 3688.8, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 1732, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 12124, + Discounts: 559.86, + Sales: 11564.14, + COGS: 6665, + Profit: 4899.14, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1759, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 26385, + Discounts: 1037.7, + Sales: 25347.3, + COGS: 11530, + Profit: 13817.3, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 338, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 4056, + Discounts: 610.68, + Sales: 3445.32, + COGS: 2181, + Profit: 1264.32, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 3911, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 46932, + Discounts: 1582.56, + Sales: 45349.44, + COGS: 5652, + Profit: 39697.44, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3691, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 73820, + Discounts: 2567.6, + Sales: 71252.4, + COGS: 18340, + Profit: 52912.4, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 4473, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 53676, + Discounts: 1965.6, + Sales: 51710.4, + COGS: 7020, + Profit: 44690.4, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 383, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 4596, + Discounts: 1967.28, + Sales: 2628.72, + COGS: 7026, + Profit: 4397.28, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3105, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 21735, + Discounts: 505.19, + Sales: 21229.81, + COGS: 5155, + Profit: 16074.81, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1062, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 15930, + Discounts: 1325.1, + Sales: 14604.9, + COGS: 12620, + Profit: 1984.9, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 4083, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 28581, + Discounts: 556.15, + Sales: 28024.85, + COGS: 5675, + Profit: 22349.85, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3974, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 27818, + Discounts: 268.03, + Sales: 27549.97, + COGS: 2735, + Profit: 24814.97, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3723, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 26061, + Discounts: 775.18, + Sales: 25285.82, + COGS: 7910, + Profit: 17375.82, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2435, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 29220, + Discounts: 1460.34, + Sales: 27759.66, + COGS: 5215.5, + Profit: 22544.16, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1678, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 20136, + Discounts: 1860.6, + Sales: 18275.4, + COGS: 6645, + Profit: 11630.4, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1763, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 12341, + Discounts: 775.18, + Sales: 11565.82, + COGS: 7910, + Profit: 3655.82, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 4473, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 31311, + Discounts: 556.15, + Sales: 30754.85, + COGS: 5675, + Profit: 25079.85, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1246, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 436100, + Discounts: 43144.5, + Sales: 392955.5, + COGS: 457860, + Profit: 64904.5, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1615, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 484500, + Discounts: 9408, + Sales: 475092, + COGS: 112000, + Profit: 363092, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 749, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 224700, + Discounts: 45801, + Sales: 178899, + COGS: 545250, + Profit: 366351, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1318, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 26360, + Discounts: 2766.4, + Sales: 23593.6, + COGS: 19760, + Profit: 3833.6, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 2882, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 864600, + Discounts: 45801, + Sales: 818799, + COGS: 545250, + Profit: 273549, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3039, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 379875, + Discounts: 21875, + Sales: 358000, + COGS: 300000, + Profit: 58000, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2484, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 745200, + Discounts: 35742, + Sales: 709458, + COGS: 425500, + Profit: 283958, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3169, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 950700, + Discounts: 9408, + Sales: 941292, + COGS: 112000, + Profit: 829292, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4080, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 510000, + Discounts: 30738.75, + Sales: 479261.25, + COGS: 421560, + Profit: 57701.25, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3943, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 59145, + Discounts: 2206.05, + Sales: 56938.95, + COGS: 21010, + Profit: 35928.95, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 784, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 11760, + Discounts: 3077.55, + Sales: 8682.45, + COGS: 29310, + Profit: 20627.55, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 253, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 5060, + Discounts: 2149, + Sales: 2911, + COGS: 15350, + Profit: 12439, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1316, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 394800, + Discounts: 23583, + Sales: 371217, + COGS: 280750, + Profit: 90467, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 808, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 242400, + Discounts: 29484, + Sales: 212916, + COGS: 351000, + Profit: 138084, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3295, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 39540, + Discounts: 2320.92, + Sales: 37219.08, + COGS: 8289, + Profit: 28930.08, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 520, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 3640, + Discounts: 1041.25, + Sales: 2598.75, + COGS: 10625, + Profit: 8026.25, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 799, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 239700, + Discounts: 34839, + Sales: 204861, + COGS: 414750, + Profit: 209889, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3942, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 78840, + Discounts: 852.6, + Sales: 77987.4, + COGS: 6090, + Profit: 71897.4, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2498, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 312250, + Discounts: 18261.25, + Sales: 293988.75, + COGS: 250440, + Profit: 43548.75, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 2517, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 50340, + Discounts: 2766.4, + Sales: 47573.6, + COGS: 19760, + Profit: 27813.6, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3182, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 63640, + Discounts: 1989.4, + Sales: 61650.6, + COGS: 14210, + Profit: 47440.6, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1145, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 343500, + Discounts: 28812, + Sales: 314688, + COGS: 343000, + Profit: 28312, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 895, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 17900, + Discounts: 823.2, + Sales: 17076.8, + COGS: 5880, + Profit: 11196.8, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3814, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 45768, + Discounts: 2725.38, + Sales: 43042.62, + COGS: 9733.5, + Profit: 33309.12, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1188, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 356400, + Discounts: 20139, + Sales: 336261, + COGS: 239750, + Profit: 96511, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 2233, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 669900, + Discounts: 57687, + Sales: 612213, + COGS: 686750, + Profit: 74537, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 421, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 52625, + Discounts: 14393.75, + Sales: 38231.25, + COGS: 197400, + Profit: 159168.75, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 269, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 94150, + Discounts: 70462, + Sales: 23688, + COGS: 747760, + Profit: 724072, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 3766, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 470750, + Discounts: 8697.5, + Sales: 462052.5, + COGS: 119280, + Profit: 342772.5, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 952, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 19040, + Discounts: 1565.2, + Sales: 17474.8, + COGS: 11180, + Profit: 6294.8, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2964, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 889200, + Discounts: 28812, + Sales: 860388, + COGS: 343000, + Profit: 517388, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1505, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 10535, + Discounts: 273.28, + Sales: 10261.72, + COGS: 2440, + Profit: 7821.72, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1678, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 33560, + Discounts: 2051.2, + Sales: 31508.8, + COGS: 12820, + Profit: 18688.8, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4249, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 29743, + Discounts: 143.92, + Sales: 29599.08, + COGS: 1285, + Profit: 28314.08, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1677, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 33540, + Discounts: 2051.2, + Sales: 31488.8, + COGS: 12820, + Profit: 18668.8, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3051, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 381375, + Discounts: 15400, + Sales: 365975, + COGS: 184800, + Profit: 181175, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 3372, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 50580, + Discounts: 588, + Sales: 49992, + COGS: 4900, + Profit: 45092, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1686, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 590100, + Discounts: 38136, + Sales: 551964, + COGS: 354120, + Profit: 197844, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3086, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 46290, + Discounts: 3001.2, + Sales: 43288.8, + COGS: 25010, + Profit: 18278.8, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4150, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 83000, + Discounts: 1132.8, + Sales: 81867.2, + COGS: 7080, + Profit: 74787.2, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3027, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 60540, + Discounts: 1032, + Sales: 59508, + COGS: 6450, + Profit: 53058, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 4359, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1307700, + Discounts: 37488, + Sales: 1270212, + COGS: 390500, + Profit: 879712, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 3628, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1088400, + Discounts: 30792, + Sales: 1057608, + COGS: 320750, + Profit: 736858, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 1589, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 23835, + Discounts: 853.2, + Sales: 22981.8, + COGS: 7110, + Profit: 15871.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2679, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 334875, + Discounts: 11140, + Sales: 323735, + COGS: 133680, + Profit: 190055, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3401, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 23807, + Discounts: 705.04, + Sales: 23101.96, + COGS: 6295, + Profit: 16806.96, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2815, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 19705, + Discounts: 613.2, + Sales: 19091.8, + COGS: 5475, + Profit: 13616.8, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2964, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 59280, + Discounts: 2185.6, + Sales: 57094.4, + COGS: 13660, + Profit: 43434.4, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 4173, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1251900, + Discounts: 59040, + Sales: 1192860, + COGS: 615000, + Profit: 577860, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1157, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 8099, + Discounts: 379.68, + Sales: 7719.32, + COGS: 3390, + Profit: 4329.32, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3065, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 21455, + Discounts: 894.88, + Sales: 20560.12, + COGS: 7990, + Profit: 12570.12, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1962, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 13734, + Discounts: 1349.04, + Sales: 12384.96, + COGS: 12045, + Profit: 339.96, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4080, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 81600, + Discounts: 3094.4, + Sales: 78505.6, + COGS: 19340, + Profit: 59165.6, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1713, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 34260, + Discounts: 4788.8, + Sales: 29471.2, + COGS: 29930, + Profit: 458.8, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2795, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 978250, + Discounts: 60088, + Sales: 918162, + COGS: 557960, + Profit: 360202, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 4082, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 28574, + Discounts: 1089.76, + Sales: 27484.24, + COGS: 9730, + Profit: 17754.24, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1691, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 591850, + Discounts: 38136, + Sales: 553714, + COGS: 354120, + Profit: 199594, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2305, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 27660, + Discounts: 574.08, + Sales: 27085.92, + COGS: 1794, + Profit: 25291.92, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3401, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 23807, + Discounts: 1627.92, + Sales: 22179.08, + COGS: 14535, + Profit: 7644.08, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2288, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 16016, + Discounts: 1309.28, + Sales: 14706.72, + COGS: 11690, + Profit: 3016.72, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 2399, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 719700, + Discounts: 9264, + Sales: 710436, + COGS: 96500, + Profit: 613936, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 4086, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1225800, + Discounts: 15240, + Sales: 1210560, + COGS: 158750, + Profit: 1051810, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2651, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 927850, + Discounts: 16086, + Sales: 911764, + COGS: 149370, + Profit: 762394, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3971, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 27797, + Discounts: 1309.28, + Sales: 26487.72, + COGS: 11690, + Profit: 14797.72, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2512, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 879200, + Discounts: 10668, + Sales: 868532, + COGS: 99060, + Profit: 769472, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2745, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 960750, + Discounts: 11816, + Sales: 948934, + COGS: 109720, + Profit: 839214, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1903, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 570900, + Discounts: 51216, + Sales: 519684, + COGS: 533500, + Profit: 13816, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 647, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 194100, + Discounts: 19392, + Sales: 174708, + COGS: 202000, + Profit: 27292, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2914, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 58280, + Discounts: 1132.8, + Sales: 57147.2, + COGS: 7080, + Profit: 50067.2, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1889, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 13223, + Discounts: 1627.92, + Sales: 11595.08, + COGS: 14535, + Profit: 2939.92, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1466, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 29320, + Discounts: 2185.6, + Sales: 27134.4, + COGS: 13660, + Profit: 13474.4, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 887, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 266100, + Discounts: 59040, + Sales: 207060, + COGS: 615000, + Profit: 407940, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 395, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 7900, + Discounts: 2432, + Sales: 5468, + COGS: 15200, + Profit: 9732, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1693, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 25395, + Discounts: 853.2, + Sales: 24541.8, + COGS: 7110, + Profit: 17431.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2459, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 29508, + Discounts: 1320, + Sales: 28188, + COGS: 4125, + Profit: 24063, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2649, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 794700, + Discounts: 15240, + Sales: 779460, + COGS: 158750, + Profit: 620710, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 3608, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 72160, + Discounts: 698.4, + Sales: 71461.6, + COGS: 4365, + Profit: 67096.6, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1073, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 321900, + Discounts: 29538, + Sales: 292362, + COGS: 273500, + Profit: 18862, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1754, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 21048, + Discounts: 396.36, + Sales: 20651.64, + COGS: 1101, + Profit: 19550.64, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 2167, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 650100, + Discounts: 102667.5, + Sales: 547432.5, + COGS: 950625, + Profit: 403192.5, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1319, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 461650, + Discounts: 52479, + Sales: 409171, + COGS: 433160, + Profit: 23989, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1679, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 503700, + Discounts: 8694, + Sales: 495006, + COGS: 80500, + Profit: 414506, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1252, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 15024, + Discounts: 2506.68, + Sales: 12517.32, + COGS: 6963, + Profit: 5554.32, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3493, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 436625, + Discounts: 20891.25, + Sales: 415733.75, + COGS: 222840, + Profit: 192893.75, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1697, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 11879, + Discounts: 1014.93, + Sales: 10864.07, + COGS: 8055, + Profit: 2809.07, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1156, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 144500, + Discounts: 31466.25, + Sales: 113033.75, + COGS: 335640, + Profit: 222606.25, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 726, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 217800, + Discounts: 9018, + Sales: 208782, + COGS: 83500, + Profit: 125282, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1153, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 345900, + Discounts: 69255, + Sales: 276645, + COGS: 641250, + Profit: 364605, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2720, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 952000, + Discounts: 76135.5, + Sales: 875864.5, + COGS: 628420, + Profit: 247444.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3658, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 54870, + Discounts: 4961.25, + Sales: 49908.75, + COGS: 36750, + Profit: 13158.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2950, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 885000, + Discounts: 29538, + Sales: 855462, + COGS: 273500, + Profit: 581962, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1821, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 27315, + Discounts: 1656.45, + Sales: 25658.55, + COGS: 12270, + Profit: 13388.55, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 4174, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 50088, + Discounts: 396.36, + Sales: 49691.64, + COGS: 1101, + Profit: 48590.64, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1127, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 338100, + Discounts: 35748, + Sales: 302352, + COGS: 331000, + Profit: 28648, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2209, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 26508, + Discounts: 1917, + Sales: 24591, + COGS: 5325, + Profit: 19266, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 862, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 107750, + Discounts: 31466.25, + Sales: 76283.75, + COGS: 335640, + Profit: 259356.25, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3805, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 57075, + Discounts: 330.75, + Sales: 56744.25, + COGS: 2450, + Profit: 54294.25, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1415, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 424500, + Discounts: 102424.5, + Sales: 322075.5, + COGS: 948375, + Profit: 626299.5, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2231, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 780850, + Discounts: 41170.5, + Sales: 739679.5, + COGS: 339820, + Profit: 399859.5, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3649, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 456125, + Discounts: 6378.75, + Sales: 449746.25, + COGS: 68040, + Profit: 381706.25, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2948, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 368500, + Discounts: 23737.5, + Sales: 344762.5, + COGS: 253200, + Profit: 91562.5, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3395, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1188250, + Discounts: 39973.5, + Sales: 1148276.5, + COGS: 329940, + Profit: 818336.5, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2650, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 31800, + Discounts: 2112.48, + Sales: 29687.52, + COGS: 5868, + Profit: 23819.52, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 585, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 175500, + Discounts: 71793, + Sales: 103707, + COGS: 664750, + Profit: 561043, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1316, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 460600, + Discounts: 42572.25, + Sales: 418027.75, + COGS: 351390, + Profit: 66637.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 4459, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 53508, + Discounts: 950.4, + Sales: 52557.6, + COGS: 2640, + Profit: 49917.6, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2711, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 813300, + Discounts: 50409, + Sales: 762891, + COGS: 466750, + Profit: 296141, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2621, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 31452, + Discounts: 2412.72, + Sales: 29039.28, + COGS: 6702, + Profit: 22337.28, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3613, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 54195, + Discounts: 1656.45, + Sales: 52538.55, + COGS: 12270, + Profit: 40268.55, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1847, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 230875, + Discounts: 9866.25, + Sales: 221008.75, + COGS: 105240, + Profit: 115768.75, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2996, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1048600, + Discounts: 65236.5, + Sales: 983363.5, + COGS: 538460, + Profit: 444903.5, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2838, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 993300, + Discounts: 39973.5, + Sales: 953326.5, + COGS: 329940, + Profit: 623386.5, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1302, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 19530, + Discounts: 1309.5, + Sales: 18220.5, + COGS: 9700, + Profit: 8520.5, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1536, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 30720, + Discounts: 3049.2, + Sales: 27670.8, + COGS: 16940, + Profit: 10730.8, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1291, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 25820, + Discounts: 1193.4, + Sales: 24626.6, + COGS: 6630, + Profit: 17996.6, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1213, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 8491, + Discounts: 515.97, + Sales: 7975.03, + COGS: 4095, + Profit: 3880.03, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2370, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 28440, + Discounts: 1706.4, + Sales: 26733.6, + COGS: 4740, + Profit: 21993.6, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1979, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 13853, + Discounts: 328.23, + Sales: 13524.77, + COGS: 2605, + Profit: 10919.77, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2879, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 57580, + Discounts: 1751.4, + Sales: 55828.6, + COGS: 9730, + Profit: 46098.6, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1707, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 34140, + Discounts: 1868.4, + Sales: 32271.6, + COGS: 10380, + Profit: 21891.6, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2933, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 20531, + Discounts: 226.8, + Sales: 20304.2, + COGS: 1800, + Profit: 18504.2, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1014, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 12168, + Discounts: 2124.36, + Sales: 10043.64, + COGS: 5901, + Profit: 4142.64, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 693, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 10395, + Discounts: 3547.8, + Sales: 6847.2, + COGS: 26280, + Profit: 19432.8, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3741, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 26187, + Discounts: 226.8, + Sales: 25960.2, + COGS: 1800, + Profit: 24160.2, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3116, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 62320, + Discounts: 4827.6, + Sales: 57492.4, + COGS: 26820, + Profit: 30672.4, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 3995, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 27965, + Discounts: 328.23, + Sales: 27636.77, + COGS: 2605, + Profit: 25031.77, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 953, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 19060, + Discounts: 1868.4, + Sales: 17191.6, + COGS: 10380, + Profit: 6811.6, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2530, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 37950, + Discounts: 2201.18, + Sales: 35748.82, + COGS: 16305, + Profit: 19443.82, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2565, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 30780, + Discounts: 330.48, + Sales: 30449.52, + COGS: 918, + Profit: 29531.52, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 4297, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 51564, + Discounts: 463.2, + Sales: 51100.8, + COGS: 1158, + Profit: 49942.8, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2871, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 20097, + Discounts: 1629.6, + Sales: 18467.4, + COGS: 11640, + Profit: 6827.4, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3537, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 42444, + Discounts: 463.2, + Sales: 41980.8, + COGS: 1158, + Profit: 40822.8, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1598, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 199750, + Discounts: 43068.75, + Sales: 156681.25, + COGS: 413460, + Profit: 256778.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 2616, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 327000, + Discounts: 18525, + Sales: 308475, + COGS: 177840, + Profit: 130635, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2836, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 992600, + Discounts: 80955, + Sales: 911645, + COGS: 601380, + Profit: 310265, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 4023, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 502875, + Discounts: 22550, + Sales: 480325, + COGS: 216480, + Profit: 263845, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3994, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 59910, + Discounts: 3108, + Sales: 56802, + COGS: 20720, + Profit: 36082, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2928, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 58560, + Discounts: 3908, + Sales: 54652, + COGS: 19540, + Profit: 35112, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2912, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 873600, + Discounts: 17730, + Sales: 855870, + COGS: 147750, + Profit: 708120, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3671, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 55065, + Discounts: 3250.5, + Sales: 51814.5, + COGS: 21670, + Profit: 30144.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2778, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 55560, + Discounts: 482, + Sales: 55078, + COGS: 2410, + Profit: 52668, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 405, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 6075, + Discounts: 1021.5, + Sales: 5053.5, + COGS: 6810, + Profit: 1756.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2013, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 30195, + Discounts: 765, + Sales: 29430, + COGS: 5100, + Profit: 24330, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2634, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 39510, + Discounts: 1185, + Sales: 38325, + COGS: 7900, + Profit: 30425, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 4166, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1458100, + Discounts: 22365, + Sales: 1435735, + COGS: 166140, + Profit: 1269595, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 355, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 44375, + Discounts: 19950, + Sales: 24425, + COGS: 191520, + Profit: 167095, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2382, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 714600, + Discounts: 68820, + Sales: 645780, + COGS: 573500, + Profit: 72280, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 4170, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 83400, + Discounts: 482, + Sales: 82918, + COGS: 2410, + Profit: 80508, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 892, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 6244, + Discounts: 1865.5, + Sales: 4378.5, + COGS: 13325, + Profit: 8946.5, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2200, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 275000, + Discounts: 23950, + Sales: 251050, + COGS: 229920, + Profit: 21130, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3389, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1016700, + Discounts: 25590, + Sales: 991110, + COGS: 213250, + Profit: 777860, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 2990, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 373750, + Discounts: 4262.5, + Sales: 369487.5, + COGS: 40920, + Profit: 328567.5, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 4013, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 60195, + Discounts: 961.5, + Sales: 59233.5, + COGS: 6410, + Profit: 52823.5, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 739, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 258650, + Discounts: 98245, + Sales: 160405, + COGS: 729820, + Profit: 569415, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1989, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 596700, + Discounts: 12960, + Sales: 583740, + COGS: 108000, + Profit: 475740, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2991, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 897300, + Discounts: 68820, + Sales: 828480, + COGS: 573500, + Profit: 254980, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 4237, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 63555, + Discounts: 3250.5, + Sales: 60304.5, + COGS: 21670, + Profit: 38634.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1442, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 180250, + Discounts: 31612.5, + Sales: 148637.5, + COGS: 303480, + Profit: 154842.5, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2712, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 949200, + Discounts: 65450, + Sales: 883750, + COGS: 486200, + Profit: 397550, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1508, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 188500, + Discounts: 7237.5, + Sales: 181262.5, + COGS: 69480, + Profit: 111782.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 4245, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1485750, + Discounts: 78400, + Sales: 1407350, + COGS: 582400, + Profit: 824950, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2630, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 789000, + Discounts: 89790, + Sales: 699210, + COGS: 748250, + Profit: 49040, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1182, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 14184, + Discounts: 4224.6, + Sales: 9959.4, + COGS: 10561.5, + Profit: 602.1, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1221, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 24420, + Discounts: 4078, + Sales: 20342, + COGS: 20390, + Profit: 48, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 963, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 11556, + Discounts: 3088.8, + Sales: 8467.2, + COGS: 7722, + Profit: 745.2, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 3243, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1135050, + Discounts: 24745, + Sales: 1110305, + COGS: 183820, + Profit: 926485, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1120, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 16800, + Discounts: 3108, + Sales: 13692, + COGS: 20720, + Profit: 7028, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1174, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 352200, + Discounts: 25590, + Sales: 326610, + COGS: 213250, + Profit: 113360, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 2541, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 30492, + Discounts: 1581.36, + Sales: 28910.64, + COGS: 3594, + Profit: 25316.64, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3246, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 22722, + Discounts: 1949.64, + Sales: 20772.36, + COGS: 12660, + Profit: 8112.36, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1531, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 18372, + Discounts: 1581.36, + Sales: 16790.64, + COGS: 3594, + Profit: 13196.64, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2526, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 37890, + Discounts: 633.6, + Sales: 37256.4, + COGS: 3840, + Profit: 33416.4, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 1136, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 13632, + Discounts: 623.04, + Sales: 13008.96, + COGS: 1416, + Profit: 11592.96, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1983, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 13881, + Discounts: 1215.83, + Sales: 12665.17, + COGS: 7895, + Profit: 4770.17, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 3259, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 39108, + Discounts: 1326.6, + Sales: 37781.4, + COGS: 3015, + Profit: 34766.4, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 3267, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 49005, + Discounts: 5279.17, + Sales: 43725.82, + COGS: 31995, + Profit: 11730.82, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 2454, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 29448, + Discounts: 623.04, + Sales: 28824.96, + COGS: 1416, + Profit: 27408.96, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 2643, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 31716, + Discounts: 2556.84, + Sales: 29159.16, + COGS: 5811, + Profit: 23348.16, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 383, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 134050, + Discounts: 30492, + Sales: 103558, + COGS: 205920, + Profit: 102362, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2801, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 840300, + Discounts: 92763, + Sales: 747537, + COGS: 702750, + Profit: 44787, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1667, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 208375, + Discounts: 33563.75, + Sales: 174811.25, + COGS: 292920, + Profit: 118108.75, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 3539, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 53085, + Discounts: 2574, + Sales: 50511, + COGS: 15600, + Profit: 34911, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 4226, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 29582, + Discounts: 2083.62, + Sales: 27498.38, + COGS: 13530, + Profit: 13968.38, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2220, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 777000, + Discounts: 29491, + Sales: 747509, + COGS: 199160, + Profit: 548349, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 776, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 15520, + Discounts: 6582.4, + Sales: 8937.6, + COGS: 29920, + Profit: 20982.4, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 553, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 8295, + Discounts: 3559.05, + Sales: 4735.95, + COGS: 21570, + Profit: 16834.05, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2107, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 632100, + Discounts: 28809, + Sales: 603291, + COGS: 218250, + Profit: 385041, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2468, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 49360, + Discounts: 2468.4, + Sales: 46891.6, + COGS: 11220, + Profit: 35671.6, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1905, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 666750, + Discounts: 81023.25, + Sales: 585726.75, + COGS: 547170, + Profit: 38556.75, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3658, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 43896, + Discounts: 5314.32, + Sales: 38581.68, + COGS: 12078, + Profit: 26503.68, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 4301, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 51612, + Discounts: 3201.66, + Sales: 48410.34, + COGS: 7276.5, + Profit: 41133.84, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2446, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 48920, + Discounts: 5266.8, + Sales: 43653.2, + COGS: 23940, + Profit: 19713.2, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 4209, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 63135, + Discounts: 3273.6, + Sales: 59861.4, + COGS: 19840, + Profit: 40021.4, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3353, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 419125, + Discounts: 33563.75, + Sales: 385561.25, + COGS: 292920, + Profit: 92641.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1401, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 28020, + Discounts: 6582.4, + Sales: 21437.6, + COGS: 29920, + Profit: 8482.4, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1865, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 559500, + Discounts: 45078, + Sales: 514422, + COGS: 341500, + Profit: 172922, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 463, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 9260, + Discounts: 6171, + Sales: 3089, + COGS: 28050, + Profit: 24961, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 4177, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 62655, + Discounts: 1080.75, + Sales: 61574.25, + COGS: 6550, + Profit: 55024.25, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2523, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 883050, + Discounts: 13244, + Sales: 869806, + COGS: 89440, + Profit: 780366, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1930, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 13510, + Discounts: 1392.16, + Sales: 12117.84, + COGS: 9040, + Profit: 3077.84, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1301, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 15612, + Discounts: 2288.88, + Sales: 13323.12, + COGS: 5202, + Profit: 8121.12, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 4125, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 515625, + Discounts: 7617.5, + Sales: 508007.5, + COGS: 66480, + Profit: 441527.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 607, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 12140, + Discounts: 6457, + Sales: 5683, + COGS: 29350, + Profit: 23667, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 478, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 59750, + Discounts: 43518.75, + Sales: 16231.25, + COGS: 379800, + Profit: 363568.75, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 4489, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 89780, + Discounts: 5783.8, + Sales: 83996.2, + COGS: 26290, + Profit: 57706.2, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1504, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 188000, + Discounts: 19703.75, + Sales: 168296.25, + COGS: 171960, + Profit: 3663.75, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 3763, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 470375, + Discounts: 13021.25, + Sales: 457353.75, + COGS: 113640, + Profit: 343713.75, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2412, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 844200, + Discounts: 13244, + Sales: 830956, + COGS: 89440, + Profit: 741516, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2342, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 35130, + Discounts: 3559.05, + Sales: 31570.95, + COGS: 21570, + Profit: 10000.95, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4451, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 31157, + Discounts: 292.6, + Sales: 30864.4, + COGS: 1900, + Profit: 28964.4, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3796, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1328600, + Discounts: 37212, + Sales: 1291388, + COGS: 230360, + Profit: 1061028, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 2286, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 285750, + Discounts: 36240, + Sales: 249510, + COGS: 289920, + Profit: 40410, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3614, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 451750, + Discounts: 32340, + Sales: 419410, + COGS: 258720, + Profit: 160690, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1716, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 25740, + Discounts: 4840.2, + Sales: 20899.8, + COGS: 26890, + Profit: 5990.2, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1301, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 19515, + Discounts: 1218.6, + Sales: 18296.4, + COGS: 6770, + Profit: 11526.4, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 4175, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1252500, + Discounts: 63828, + Sales: 1188672, + COGS: 443250, + Profit: 745422, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 975, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 6825, + Discounts: 2032.8, + Sales: 4792.2, + COGS: 12100, + Profit: 7307.8, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1154, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 8078, + Discounts: 2296.56, + Sales: 5781.44, + COGS: 13670, + Profit: 7888.56, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1873, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 37460, + Discounts: 4116, + Sales: 33344, + COGS: 17150, + Profit: 16194, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3766, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1129800, + Discounts: 42696, + Sales: 1087104, + COGS: 296500, + Profit: 790604, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3558, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1067400, + Discounts: 125820, + Sales: 941580, + COGS: 873750, + Profit: 67830, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3156, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1104600, + Discounts: 37212, + Sales: 1067388, + COGS: 230360, + Profit: 837028, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2994, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 374250, + Discounts: 32340, + Sales: 341910, + COGS: 258720, + Profit: 83190, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2087, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 41740, + Discounts: 2172, + Sales: 39568, + COGS: 9050, + Profit: 30518, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1056, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 21120, + Discounts: 4116, + Sales: 17004, + COGS: 17150, + Profit: 146, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1353, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 473550, + Discounts: 66948, + Sales: 406602, + COGS: 414440, + Profit: 7838, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 416, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 124800, + Discounts: 48924, + Sales: 75876, + COGS: 339750, + Profit: 263874, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3880, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1164000, + Discounts: 77400, + Sales: 1086600, + COGS: 537500, + Profit: 549100, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 809, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 283150, + Discounts: 50274, + Sales: 232876, + COGS: 311220, + Profit: 78344, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1892, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 28380, + Discounts: 684, + Sales: 27696, + COGS: 3800, + Profit: 23896, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2072, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 41440, + Discounts: 2959.2, + Sales: 38480.8, + COGS: 12330, + Profit: 26150.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3052, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1068200, + Discounts: 58590, + Sales: 1009610, + COGS: 362700, + Profit: 646910, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3121, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1092350, + Discounts: 41412, + Sales: 1050938, + COGS: 256360, + Profit: 794578, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2059, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 41180, + Discounts: 2172, + Sales: 39008, + COGS: 9050, + Profit: 29958, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4254, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 51048, + Discounts: 3036.96, + Sales: 48011.04, + COGS: 6327, + Profit: 41684.04, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1293, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 19395, + Discounts: 6974.1, + Sales: 12420.9, + COGS: 38745, + Profit: 26324.1, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1293, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 452550, + Discounts: 26166, + Sales: 426384, + COGS: 161980, + Profit: 264404, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 230, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 80500, + Discounts: 41412, + Sales: 39088, + COGS: 256360, + Profit: 217272, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1723, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 215375, + Discounts: 35805, + Sales: 179570, + COGS: 286440, + Profit: 106870, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 240, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 4800, + Discounts: 2959.2, + Sales: 1840.8, + COGS: 12330, + Profit: 10489.2, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2571, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 899850, + Discounts: 11340, + Sales: 888510, + COGS: 70200, + Profit: 818310, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1661, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 11627, + Discounts: 2874.06, + Sales: 8752.94, + COGS: 17107.5, + Profit: 8354.56, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 4474, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 31318, + Discounts: 2296.56, + Sales: 29021.44, + COGS: 13670, + Profit: 15351.44, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 833, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 12495, + Discounts: 4586.4, + Sales: 7908.6, + COGS: 25480, + Profit: 17571.4, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 674, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 13480, + Discounts: 6051.6, + Sales: 7428.4, + COGS: 25215, + Profit: 17786.6, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 778, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 9336, + Discounts: 3831.84, + Sales: 5504.16, + COGS: 7983, + Profit: 2478.84, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1457, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 29140, + Discounts: 3674.4, + Sales: 25465.6, + COGS: 15310, + Profit: 10155.6, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3158, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 22106, + Discounts: 1252.44, + Sales: 20853.56, + COGS: 7455, + Profit: 13398.56, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 4095, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 81900, + Discounts: 3674.4, + Sales: 78225.6, + COGS: 15310, + Profit: 62915.6, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 3170, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 38040, + Discounts: 3975.84, + Sales: 34064.16, + COGS: 8283, + Profit: 25781.16, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 493, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 7395, + Discounts: 5005.65, + Sales: 2389.35, + COGS: 25670, + Profit: 23280.65, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 3286, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 49290, + Discounts: 5005.65, + Sales: 44284.35, + COGS: 25670, + Profit: 18614.35, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 3563, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1247050, + Discounts: 41996.5, + Sales: 1205053.5, + COGS: 239980, + Profit: 965073.5, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 4109, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1438150, + Discounts: 81445, + Sales: 1356705, + COGS: 465400, + Profit: 891305, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 3653, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 73060, + Discounts: 1149.2, + Sales: 71910.8, + COGS: 4420, + Profit: 67490.8, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2203, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 771050, + Discounts: 44703.75, + Sales: 726346.25, + COGS: 255450, + Profit: 470896.25, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2924, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 20468, + Discounts: 1181.18, + Sales: 19286.82, + COGS: 6490, + Profit: 12796.82, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2650, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 31800, + Discounts: 942.24, + Sales: 30857.76, + COGS: 1812, + Profit: 29045.76, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1194, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 23880, + Discounts: 5863, + Sales: 18017, + COGS: 22550, + Profit: 4533, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 3366, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 67320, + Discounts: 3247.4, + Sales: 64072.6, + COGS: 12490, + Profit: 51582.6, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1325, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 9275, + Discounts: 1309.04, + Sales: 7965.97, + COGS: 7192.5, + Profit: 773.47, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4243, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1272900, + Discounts: 31473, + Sales: 1241427, + COGS: 201750, + Profit: 1039677, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2887, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 57740, + Discounts: 6866.6, + Sales: 50873.4, + COGS: 26410, + Profit: 24463.4, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3839, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 76780, + Discounts: 7040.8, + Sales: 69739.2, + COGS: 27080, + Profit: 42659.2, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1863, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 652050, + Discounts: 119756, + Sales: 532294, + COGS: 684320, + Profit: 152026, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2858, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 357250, + Discounts: 25723.75, + Sales: 331526.25, + COGS: 189960, + Profit: 141566.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2868, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 34416, + Discounts: 890.76, + Sales: 33525.24, + COGS: 1713, + Profit: 31812.24, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3805, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 26635, + Discounts: 2453.36, + Sales: 24181.64, + COGS: 13480, + Profit: 10701.64, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3914, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 58710, + Discounts: 3051.75, + Sales: 55658.25, + COGS: 15650, + Profit: 40008.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 524, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 10480, + Discounts: 3247.4, + Sales: 7232.6, + COGS: 12490, + Profit: 5257.4, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3095, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1083250, + Discounts: 16243.5, + Sales: 1067006.5, + COGS: 92820, + Profit: 974186.5, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2410, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 28920, + Discounts: 1580.28, + Sales: 27339.72, + COGS: 3039, + Profit: 24300.72, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 4263, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 63945, + Discounts: 7795.13, + Sales: 56149.88, + COGS: 39975, + Profit: 16174.88, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2239, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 783650, + Discounts: 119756, + Sales: 663894, + COGS: 684320, + Profit: 20426, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 569, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 3983, + Discounts: 1082.9, + Sales: 2900.1, + COGS: 5950, + Profit: 3049.9, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3889, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 46668, + Discounts: 942.24, + Sales: 45725.76, + COGS: 1812, + Profit: 43913.76, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 1378, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 20670, + Discounts: 1287, + Sales: 19383, + COGS: 6600, + Profit: 12783, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2253, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 27036, + Discounts: 639.6, + Sales: 26396.4, + COGS: 1230, + Profit: 25166.4, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3202, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 960600, + Discounts: 101595, + Sales: 859005, + COGS: 651250, + Profit: 207755, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3835, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 46020, + Discounts: 1580.28, + Sales: 44439.72, + COGS: 3039, + Profit: 41400.72, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 2487, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 310875, + Discounts: 25723.75, + Sales: 285151.25, + COGS: 189960, + Profit: 95191.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4428, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 66420, + Discounts: 3051.75, + Sales: 63368.25, + COGS: 15650, + Profit: 47718.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1200, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 150000, + Discounts: 26958.75, + Sales: 123041.25, + COGS: 199080, + Profit: 76038.75, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2953, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 20671, + Discounts: 1082.9, + Sales: 19588.1, + COGS: 5950, + Profit: 13638.1, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1453, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 17436, + Discounts: 639.6, + Sales: 16796.4, + COGS: 1230, + Profit: 15566.4, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 865, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 10380, + Discounts: 2761.2, + Sales: 7618.8, + COGS: 5310, + Profit: 2308.8, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1072, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 21440, + Discounts: 7221.2, + Sales: 14218.8, + COGS: 25790, + Profit: 11571.2, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1737, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 34740, + Discounts: 4880.4, + Sales: 29859.6, + COGS: 17430, + Profit: 12429.6, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1535, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 10745, + Discounts: 2936.08, + Sales: 7808.92, + COGS: 14980, + Profit: 7171.08, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2532, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 17724, + Discounts: 274.4, + Sales: 17449.6, + COGS: 1400, + Profit: 16049.6, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1765, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 12355, + Discounts: 287.14, + Sales: 12067.86, + COGS: 1465, + Profit: 10602.86, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1567, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 10969, + Discounts: 2936.08, + Sales: 8032.92, + COGS: 14980, + Profit: 6947.08, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2640, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 39600, + Discounts: 583.8, + Sales: 39016.2, + COGS: 2780, + Profit: 36236.2, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3079, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 61580, + Discounts: 6798.4, + Sales: 54781.6, + COGS: 24280, + Profit: 30501.6, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4130, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 61950, + Discounts: 3710.7, + Sales: 58239.3, + COGS: 17670, + Profit: 40569.3, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2938, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 35256, + Discounts: 2340.24, + Sales: 32915.76, + COGS: 4179, + Profit: 28736.76, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3080, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 21560, + Discounts: 274.4, + Sales: 21285.6, + COGS: 1400, + Profit: 19885.6, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1530, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 18360, + Discounts: 2340.24, + Sales: 16019.76, + COGS: 4179, + Profit: 11840.76, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 3537, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 42444, + Discounts: 3385.2, + Sales: 39058.8, + COGS: 6045, + Profit: 33013.8, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 2021, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 606300, + Discounts: 33642, + Sales: 572658, + COGS: 200250, + Profit: 372408, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1804, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 225500, + Discounts: 17902.5, + Sales: 207597.5, + COGS: 122760, + Profit: 84837.5, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1014, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 304200, + Discounts: 62832, + Sales: 241368, + COGS: 374000, + Profit: 132632, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2913, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 873900, + Discounts: 42420, + Sales: 831480, + COGS: 252500, + Profit: 578980, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 763, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 11445, + Discounts: 3177.3, + Sales: 8267.7, + COGS: 15130, + Profit: 6862.3, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1425, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 21375, + Discounts: 4830, + Sales: 16545, + COGS: 23000, + Profit: 6455, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 4357, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 544625, + Discounts: 49367.5, + Sales: 495257.5, + COGS: 338520, + Profit: 156737.5, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 2138, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 748300, + Discounts: 109147.5, + Sales: 639152.5, + COGS: 579150, + Profit: 60002.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3825, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 1338750, + Discounts: 58751, + Sales: 1279999, + COGS: 311740, + Profit: 968259, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 3393, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 1187550, + Discounts: 9800, + Sales: 1177750, + COGS: 52000, + Profit: 1125750, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 2215, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 15505, + Discounts: 380.24, + Sales: 15124.76, + COGS: 1940, + Profit: 13184.76, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2278, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 15946, + Discounts: 1692.46, + Sales: 14253.54, + COGS: 8635, + Profit: 5618.54, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 403, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 6045, + Discounts: 4830, + Sales: 1215, + COGS: 23000, + Profit: 21785, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 289, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 5780, + Discounts: 728, + Sales: 5052, + COGS: 2600, + Profit: 2452, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 749, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 11235, + Discounts: 5187, + Sales: 6048, + COGS: 24700, + Profit: 18652, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 372, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 5580, + Discounts: 3660.3, + Sales: 1919.7, + COGS: 17430, + Profit: 15510.3, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3781, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 45372, + Discounts: 4895.52, + Sales: 40476.48, + COGS: 8742, + Profit: 31734.48, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1785, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 12495, + Discounts: 1696.38, + Sales: 10798.62, + COGS: 8655, + Profit: 2143.62, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4029, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1410150, + Discounts: 34300, + Sales: 1375850, + COGS: 182000, + Profit: 1193850, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2813, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 33756, + Discounts: 3732.96, + Sales: 30023.04, + COGS: 6666, + Profit: 23357.04, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2150, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 752500, + Discounts: 57673, + Sales: 694827, + COGS: 306020, + Profit: 388807, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2093, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 732550, + Discounts: 94178, + Sales: 638372, + COGS: 499720, + Profit: 138652, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 4391, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 548875, + Discounts: 27562.5, + Sales: 521312.5, + COGS: 189000, + Profit: 332312.5, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2695, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 53900, + Discounts: 1696.8, + Sales: 52203.2, + COGS: 6060, + Profit: 46143.2, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1337, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 401100, + Discounts: 103320, + Sales: 297780, + COGS: 615000, + Profit: 317220, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2621, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 786300, + Discounts: 11298, + Sales: 775002, + COGS: 67250, + Profit: 707752, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3735, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1120500, + Discounts: 106512, + Sales: 1013988, + COGS: 634000, + Profit: 379988, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 4320, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 30240, + Discounts: 2844.94, + Sales: 27395.06, + COGS: 14515, + Profit: 12880.06, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2828, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 848400, + Discounts: 106722, + Sales: 741678, + COGS: 635250, + Profit: 106428, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 2586, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 775800, + Discounts: 11298, + Sales: 764502, + COGS: 67250, + Profit: 697252, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1248, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 374400, + Discounts: 62832, + Sales: 311568, + COGS: 374000, + Profit: 62432, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 4035, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 1210500, + Discounts: 42420, + Sales: 1168080, + COGS: 252500, + Profit: 915580, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 359, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 125650, + Discounts: 62769, + Sales: 62881, + COGS: 333060, + Profit: 270179, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 3926, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 1177800, + Discounts: 37296, + Sales: 1140504, + COGS: 222000, + Profit: 918504, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 4247, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 530875, + Discounts: 49770, + Sales: 481105, + COGS: 341280, + Profit: 139825, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2695, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 32340, + Discounts: 4158, + Sales: 28182, + COGS: 7425, + Profit: 20757, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1104, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 16560, + Discounts: 3660.3, + Sales: 12899.7, + COGS: 17430, + Profit: 4530.3, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1449, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 17388, + Discounts: 4895.52, + Sales: 12492.48, + COGS: 8742, + Profit: 3750.48, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1131, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 7917, + Discounts: 1696.38, + Sales: 6220.62, + COGS: 8655, + Profit: 2434.38, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1468, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 10276, + Discounts: 1692.46, + Sales: 8583.54, + COGS: 8635, + Profit: 51.46, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1272, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 19080, + Discounts: 3927, + Sales: 15153, + COGS: 18700, + Profit: 3547, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1403, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 175375, + Discounts: 22012.5, + Sales: 153362.5, + COGS: 140880, + Profit: 12482.5, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2161, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 270125, + Discounts: 51881.25, + Sales: 218243.75, + COGS: 332040, + Profit: 113796.25, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1937, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 242125, + Discounts: 20343.75, + Sales: 221781.25, + COGS: 130200, + Profit: 91581.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2879, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 863700, + Discounts: 24570, + Sales: 839130, + COGS: 136500, + Profit: 702630, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1330, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 26600, + Discounts: 3474, + Sales: 23126, + COGS: 11580, + Profit: 11546, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2426, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 36390, + Discounts: 3631.5, + Sales: 32758.5, + COGS: 16140, + Profit: 16618.5, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2033, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 14231, + Discounts: 2661.75, + Sales: 11569.25, + COGS: 12675, + Profit: 1105.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2029, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 710150, + Discounts: 149677.5, + Sales: 560472.5, + COGS: 741260, + Profit: 180787.5, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1049, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 15735, + Discounts: 5757.75, + Sales: 9977.25, + COGS: 25590, + Profit: 15612.75, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1062, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 21240, + Discounts: 801, + Sales: 20439, + COGS: 2670, + Profit: 17769, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2509, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 313625, + Discounts: 20343.75, + Sales: 293281.25, + COGS: 130200, + Profit: 163081.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1743, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 26145, + Discounts: 2643.75, + Sales: 23501.25, + COGS: 11750, + Profit: 11751.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3418, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1196300, + Discounts: 105367.5, + Sales: 1090932.5, + COGS: 521820, + Profit: 569112.5, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1751, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 612850, + Discounts: 112927.5, + Sales: 499922.5, + COGS: 559260, + Profit: 59337.5, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3228, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 38736, + Discounts: 1645.2, + Sales: 37090.8, + COGS: 2742, + Profit: 34348.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1105, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 22100, + Discounts: 879, + Sales: 21221, + COGS: 2930, + Profit: 18291, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2778, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 33336, + Discounts: 900, + Sales: 32436, + COGS: 1500, + Profit: 30936, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1173, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 17595, + Discounts: 6358.5, + Sales: 11236.5, + COGS: 28260, + Profit: 17023.5, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3160, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 395000, + Discounts: 12431.25, + Sales: 382568.75, + COGS: 79560, + Profit: 303008.75, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 4322, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1296600, + Discounts: 115830, + Sales: 1180770, + COGS: 643500, + Profit: 537270, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1901, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 237625, + Discounts: 45712.5, + Sales: 191912.5, + COGS: 292560, + Profit: 100647.5, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2980, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 35760, + Discounts: 1645.2, + Sales: 34114.8, + COGS: 2742, + Profit: 31372.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4068, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 81360, + Discounts: 2596.5, + Sales: 78763.5, + COGS: 8655, + Profit: 70108.5, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2105, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 31575, + Discounts: 1107, + Sales: 30468, + COGS: 4920, + Profit: 25548, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1647, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 32940, + Discounts: 801, + Sales: 32139, + COGS: 2670, + Profit: 29469, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 235, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 3525, + Discounts: 2643.75, + Sales: 881.25, + COGS: 11750, + Profit: 10868.75, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3617, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 452125, + Discounts: 55387.5, + Sales: 396737.5, + COGS: 354480, + Profit: 42257.5, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2106, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 263250, + Discounts: 10350, + Sales: 252900, + COGS: 66240, + Profit: 186660, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2351, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 47020, + Discounts: 879, + Sales: 46141, + COGS: 2930, + Profit: 43211, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1897, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 569100, + Discounts: 111375, + Sales: 457725, + COGS: 618750, + Profit: 161025, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 647, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 194100, + Discounts: 24570, + Sales: 169530, + COGS: 136500, + Profit: 33030, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 3621, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 25347, + Discounts: 1436.4, + Sales: 23910.6, + COGS: 6840, + Profit: 17070.6, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3221, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 22547, + Discounts: 759.15, + Sales: 21787.85, + COGS: 3615, + Profit: 18172.85, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 493, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 5916, + Discounts: 3250.8, + Sales: 2665.2, + COGS: 5418, + Profit: 2752.8, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/category-chart/chart-highlight-filter/src/app.component.html b/samples/charts/category-chart/chart-highlight-filter/src/app.component.html index 3d50767da..8ba9bc475 100644 --- a/samples/charts/category-chart/chart-highlight-filter/src/app.component.html +++ b/samples/charts/category-chart/chart-highlight-filter/src/app.component.html @@ -26,7 +26,7 @@ #chart chartType="Column" [dataSource]="salesData" - initialGroups="MonthName" + initialGroups="Month" initialHighlightFilter="Country ne 'UK'" highlightedValuesDisplayMode="Hidden"> diff --git a/samples/charts/category-chart/chart-highlight-filter/src/app.component.ts b/samples/charts/category-chart/chart-highlight-filter/src/app.component.ts index 7bc7565e0..a0923f8a1 100644 --- a/samples/charts/category-chart/chart-highlight-filter/src/app.component.ts +++ b/samples/charts/category-chart/chart-highlight-filter/src/app.component.ts @@ -1,6 +1,6 @@ import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; import { ComponentRenderer, PropertyEditorPanelDescriptionModule, CategoryChartDescriptionModule } from 'igniteui-angular-core'; -import { SalesData } from './SalesData'; +import { SalesDataItem, SalesData } from './SalesData'; import { IgxPropertyEditorPanelComponent, IgxPropertyEditorPropertyDescriptionComponent } from 'igniteui-angular-layouts'; import { IgxCategoryChartComponent } from 'igniteui-angular-charts'; diff --git a/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.app.json b/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.base.json b/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.spec.json b/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.worker.json b/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/chart-highlight-filter/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/chart-highlight-filter/tsconfig.app.json b/samples/charts/category-chart/chart-highlight-filter/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/chart-highlight-filter/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/category-chart/chart-highlight-filter/tsconfig.json b/samples/charts/category-chart/chart-highlight-filter/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/chart-highlight-filter/tsconfig.json +++ b/samples/charts/category-chart/chart-highlight-filter/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/column-chart-multiple-sources/.codesandbox/Dockerfile b/samples/charts/category-chart/column-chart-multiple-sources/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/column-chart-multiple-sources/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-multiple-sources/.codesandbox/tasks.json b/samples/charts/category-chart/column-chart-multiple-sources/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/column-chart-multiple-sources/.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/category-chart/column-chart-multiple-sources/.stackblitzrc b/samples/charts/category-chart/column-chart-multiple-sources/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/column-chart-multiple-sources/.stackblitzrc +++ b/samples/charts/category-chart/column-chart-multiple-sources/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-multiple-sources/angular.json b/samples/charts/category-chart/column-chart-multiple-sources/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/column-chart-multiple-sources/angular.json +++ b/samples/charts/category-chart/column-chart-multiple-sources/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/column-chart-multiple-sources/package.json b/samples/charts/category-chart/column-chart-multiple-sources/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/column-chart-multiple-sources/package.json +++ b/samples/charts/category-chart/column-chart-multiple-sources/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/column-chart-multiple-sources/sandbox.config.json b/samples/charts/category-chart/column-chart-multiple-sources/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/column-chart-multiple-sources/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.app.json b/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.base.json b/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.spec.json b/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.worker.json b/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/column-chart-multiple-sources/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-multiple-sources/tsconfig.app.json b/samples/charts/category-chart/column-chart-multiple-sources/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/column-chart-multiple-sources/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/category-chart/column-chart-multiple-sources/tsconfig.json b/samples/charts/category-chart/column-chart-multiple-sources/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/column-chart-multiple-sources/tsconfig.json +++ b/samples/charts/category-chart/column-chart-multiple-sources/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/column-chart-single-source/.codesandbox/Dockerfile b/samples/charts/category-chart/column-chart-single-source/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/column-chart-single-source/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-single-source/.codesandbox/tasks.json b/samples/charts/category-chart/column-chart-single-source/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/column-chart-single-source/.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/category-chart/column-chart-single-source/.stackblitzrc b/samples/charts/category-chart/column-chart-single-source/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/column-chart-single-source/.stackblitzrc +++ b/samples/charts/category-chart/column-chart-single-source/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-single-source/angular.json b/samples/charts/category-chart/column-chart-single-source/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/column-chart-single-source/angular.json +++ b/samples/charts/category-chart/column-chart-single-source/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/column-chart-single-source/package.json b/samples/charts/category-chart/column-chart-single-source/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/column-chart-single-source/package.json +++ b/samples/charts/category-chart/column-chart-single-source/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/column-chart-single-source/sandbox.config.json b/samples/charts/category-chart/column-chart-single-source/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/column-chart-single-source/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.app.json b/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.base.json b/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.spec.json b/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.worker.json b/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/column-chart-single-source/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-single-source/tsconfig.app.json b/samples/charts/category-chart/column-chart-single-source/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/column-chart-single-source/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/category-chart/column-chart-single-source/tsconfig.json b/samples/charts/category-chart/column-chart-single-source/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/column-chart-single-source/tsconfig.json +++ b/samples/charts/category-chart/column-chart-single-source/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/column-chart-styling/.codesandbox/Dockerfile b/samples/charts/category-chart/column-chart-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/column-chart-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-styling/.codesandbox/tasks.json b/samples/charts/category-chart/column-chart-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/column-chart-styling/.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/category-chart/column-chart-styling/.stackblitzrc b/samples/charts/category-chart/column-chart-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/column-chart-styling/.stackblitzrc +++ b/samples/charts/category-chart/column-chart-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-styling/angular.json b/samples/charts/category-chart/column-chart-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/column-chart-styling/angular.json +++ b/samples/charts/category-chart/column-chart-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/column-chart-styling/package.json b/samples/charts/category-chart/column-chart-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/column-chart-styling/package.json +++ b/samples/charts/category-chart/column-chart-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/column-chart-styling/sandbox.config.json b/samples/charts/category-chart/column-chart-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/column-chart-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-styling/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/column-chart-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/column-chart-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.app.json b/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.base.json b/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.spec.json b/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.worker.json b/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/column-chart-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-styling/tsconfig.app.json b/samples/charts/category-chart/column-chart-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/column-chart-styling/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/category-chart/column-chart-styling/tsconfig.json b/samples/charts/category-chart/column-chart-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/column-chart-styling/tsconfig.json +++ b/samples/charts/category-chart/column-chart-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/column-chart-with-highlighting/.codesandbox/Dockerfile b/samples/charts/category-chart/column-chart-with-highlighting/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/column-chart-with-highlighting/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-with-highlighting/.codesandbox/tasks.json b/samples/charts/category-chart/column-chart-with-highlighting/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/column-chart-with-highlighting/.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/category-chart/column-chart-with-highlighting/.stackblitzrc b/samples/charts/category-chart/column-chart-with-highlighting/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/column-chart-with-highlighting/.stackblitzrc +++ b/samples/charts/category-chart/column-chart-with-highlighting/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-with-highlighting/angular.json b/samples/charts/category-chart/column-chart-with-highlighting/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/column-chart-with-highlighting/angular.json +++ b/samples/charts/category-chart/column-chart-with-highlighting/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/column-chart-with-highlighting/package.json b/samples/charts/category-chart/column-chart-with-highlighting/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/category-chart/column-chart-with-highlighting/package.json +++ b/samples/charts/category-chart/column-chart-with-highlighting/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/column-chart-with-highlighting/sandbox.config.json b/samples/charts/category-chart/column-chart-with-highlighting/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/column-chart-with-highlighting/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-with-highlighting/src/app/app.component.html b/samples/charts/category-chart/column-chart-with-highlighting/src/app.component.html similarity index 100% rename from samples/charts/category-chart/column-chart-with-highlighting/src/app/app.component.html rename to samples/charts/category-chart/column-chart-with-highlighting/src/app.component.html diff --git a/samples/charts/category-chart/column-chart-with-highlighting/src/app/app.component.scss b/samples/charts/category-chart/column-chart-with-highlighting/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/column-chart-with-highlighting/src/app/app.component.scss rename to samples/charts/category-chart/column-chart-with-highlighting/src/app.component.scss diff --git a/samples/charts/category-chart/column-chart-with-highlighting/src/app/app.component.ts b/samples/charts/category-chart/column-chart-with-highlighting/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/column-chart-with-highlighting/src/app/app.component.ts rename to samples/charts/category-chart/column-chart-with-highlighting/src/app.component.ts diff --git a/samples/charts/category-chart/column-chart-with-highlighting/src/app/app.module.ts b/samples/charts/category-chart/column-chart-with-highlighting/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/column-chart-with-highlighting/src/app/app.module.ts rename to samples/charts/category-chart/column-chart-with-highlighting/src/app.module.ts diff --git a/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.app.json b/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.base.json b/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.spec.json b/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.worker.json b/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/column-chart-with-highlighting/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-with-highlighting/src/main.ts b/samples/charts/category-chart/column-chart-with-highlighting/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/column-chart-with-highlighting/src/main.ts +++ b/samples/charts/category-chart/column-chart-with-highlighting/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/column-chart-with-highlighting/tsconfig.app.json b/samples/charts/category-chart/column-chart-with-highlighting/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/column-chart-with-highlighting/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/category-chart/column-chart-with-highlighting/tsconfig.json b/samples/charts/category-chart/column-chart-with-highlighting/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/column-chart-with-highlighting/tsconfig.json +++ b/samples/charts/category-chart/column-chart-with-highlighting/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/column-chart-with-tooltips/.codesandbox/Dockerfile b/samples/charts/category-chart/column-chart-with-tooltips/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/column-chart-with-tooltips/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-with-tooltips/.codesandbox/tasks.json b/samples/charts/category-chart/column-chart-with-tooltips/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/column-chart-with-tooltips/.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/category-chart/column-chart-with-tooltips/.stackblitzrc b/samples/charts/category-chart/column-chart-with-tooltips/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/column-chart-with-tooltips/.stackblitzrc +++ b/samples/charts/category-chart/column-chart-with-tooltips/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-with-tooltips/angular.json b/samples/charts/category-chart/column-chart-with-tooltips/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/column-chart-with-tooltips/angular.json +++ b/samples/charts/category-chart/column-chart-with-tooltips/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/column-chart-with-tooltips/package.json b/samples/charts/category-chart/column-chart-with-tooltips/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/column-chart-with-tooltips/package.json +++ b/samples/charts/category-chart/column-chart-with-tooltips/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/column-chart-with-tooltips/sandbox.config.json b/samples/charts/category-chart/column-chart-with-tooltips/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/column-chart-with-tooltips/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.app.json b/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.base.json b/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.spec.json b/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.worker.json b/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/column-chart-with-tooltips/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/column-chart-with-tooltips/tsconfig.app.json b/samples/charts/category-chart/column-chart-with-tooltips/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/column-chart-with-tooltips/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/category-chart/column-chart-with-tooltips/tsconfig.json b/samples/charts/category-chart/column-chart-with-tooltips/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/column-chart-with-tooltips/tsconfig.json +++ b/samples/charts/category-chart/column-chart-with-tooltips/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/custom-selection/.codesandbox/Dockerfile b/samples/charts/category-chart/custom-selection/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/custom-selection/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/custom-selection/.codesandbox/tasks.json b/samples/charts/category-chart/custom-selection/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/custom-selection/.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/category-chart/custom-selection/.stackblitzrc b/samples/charts/category-chart/custom-selection/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/custom-selection/.stackblitzrc +++ b/samples/charts/category-chart/custom-selection/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/custom-selection/angular.json b/samples/charts/category-chart/custom-selection/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/custom-selection/angular.json +++ b/samples/charts/category-chart/custom-selection/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/custom-selection/package.json b/samples/charts/category-chart/custom-selection/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/custom-selection/package.json +++ b/samples/charts/category-chart/custom-selection/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/custom-selection/sandbox.config.json b/samples/charts/category-chart/custom-selection/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/custom-selection/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/custom-selection/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/custom-selection/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/custom-selection/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/custom-selection/src/config/tsconfig.app.json b/samples/charts/category-chart/custom-selection/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/custom-selection/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/custom-selection/src/config/tsconfig.base.json b/samples/charts/category-chart/custom-selection/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/custom-selection/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/custom-selection/src/config/tsconfig.spec.json b/samples/charts/category-chart/custom-selection/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/custom-selection/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/custom-selection/src/config/tsconfig.worker.json b/samples/charts/category-chart/custom-selection/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/custom-selection/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/custom-selection/tsconfig.app.json b/samples/charts/category-chart/custom-selection/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/custom-selection/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/category-chart/custom-selection/tsconfig.json b/samples/charts/category-chart/custom-selection/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/custom-selection/tsconfig.json +++ b/samples/charts/category-chart/custom-selection/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/data-aggregations/.codesandbox/Dockerfile b/samples/charts/category-chart/data-aggregations/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/data-aggregations/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/data-aggregations/.codesandbox/tasks.json b/samples/charts/category-chart/data-aggregations/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/data-aggregations/.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/category-chart/data-aggregations/.stackblitzrc b/samples/charts/category-chart/data-aggregations/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/data-aggregations/.stackblitzrc +++ b/samples/charts/category-chart/data-aggregations/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/data-aggregations/angular.json b/samples/charts/category-chart/data-aggregations/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/data-aggregations/angular.json +++ b/samples/charts/category-chart/data-aggregations/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/data-aggregations/package.json b/samples/charts/category-chart/data-aggregations/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/data-aggregations/package.json +++ b/samples/charts/category-chart/data-aggregations/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/data-aggregations/sandbox.config.json b/samples/charts/category-chart/data-aggregations/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/data-aggregations/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/data-aggregations/src/SalesData.ts b/samples/charts/category-chart/data-aggregations/src/SalesData.ts index 2da064b31..50d5fe209 100644 --- a/samples/charts/category-chart/data-aggregations/src/SalesData.ts +++ b/samples/charts/category-chart/data-aggregations/src/SalesData.ts @@ -1,16682 +1,3 @@ -//begin data -export class SalesData extends Array { - public constructor() { - super(); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `501`, - ManufacturingPrice: 15, - SalePrice: 23, - GrossSales: 26440, - Discounts: 0, - Sales: 26440, - COGS: 16185, - Profit: 11255, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1372`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 27440, - Discounts: 0, - Sales: 27440, - COGS: 16185, - Profit: 11255, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2762`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 55240, - Discounts: 0, - Sales: 55240, - COGS: 13210, - Profit: 42030, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1464`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 21960, - Discounts: 0, - Sales: 21960, - COGS: 21780, - Profit: 180, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `719`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 10785, - Discounts: 0, - Sales: 10785, - COGS: 8880, - Profit: 1905, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3576`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 53640, - Discounts: 0, - Sales: 53640, - COGS: 24700, - Profit: 28940, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `4422`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1547700, - Discounts: 0, - Sales: 1547700, - COGS: 393380, - Profit: 1154320, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3649`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 54735, - Discounts: 0, - Sales: 54735, - COGS: 9210, - Profit: 45525, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4172`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 50064, - Discounts: 0, - Sales: 50064, - COGS: 7554, - Profit: 42510, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3841`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 76820, - Discounts: 0, - Sales: 76820, - COGS: 18990, - Profit: 57830, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3726`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 44712, - Discounts: 0, - Sales: 44712, - COGS: 4635, - Profit: 40077, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2625`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 39375, - Discounts: 0, - Sales: 39375, - COGS: 24700, - Profit: 14675, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1958`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 244750, - Discounts: 0, - Sales: 244750, - COGS: 319860, - Profit: 75110, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3271`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 981300, - Discounts: 0, - Sales: 981300, - COGS: 239500, - Profit: 741800, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2091`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 14637, - Discounts: 0, - Sales: 14637, - COGS: 10730, - Profit: 3907, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2825`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 42375, - Discounts: 0, - Sales: 42375, - COGS: 6150, - Profit: 36225, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2513`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 50260, - Discounts: 0, - Sales: 50260, - COGS: 2920, - Profit: 47340, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `883`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 13245, - Discounts: 0, - Sales: 13245, - COGS: 9740, - Profit: 3505, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2087`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 25044, - Discounts: 0, - Sales: 25044, - COGS: 7554, - Profit: 17490, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2563`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 897050, - Discounts: 0, - Sales: 897050, - COGS: 261560, - Profit: 635490, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2846`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 34152, - Discounts: 0, - Sales: 34152, - COGS: 1101, - Profit: 33051, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `997`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 6979, - Discounts: 0, - Sales: 6979, - COGS: 4415, - Profit: 2564, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2290`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 34350, - Discounts: 0, - Sales: 34350, - COGS: 24720, - Profit: 9630, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2133`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14931, - Discounts: 0, - Sales: 14931, - COGS: 5715, - Profit: 9216, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3617`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 72340, - Discounts: 0, - Sales: 72340, - COGS: 18170, - Profit: 54170, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1266`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 443100, - Discounts: 0, - Sales: 443100, - COGS: 393380, - Profit: 49720, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `894`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 6258, - Discounts: 0, - Sales: 6258, - COGS: 7465, - Profit: 1207, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2725`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 340625, - Discounts: 0, - Sales: 340625, - COGS: 216480, - Profit: 124145, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3061`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 36732, - Discounts: 0, - Sales: 36732, - COGS: 6483, - Profit: 30249, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3958`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1385300, - Discounts: 0, - Sales: 1385300, - COGS: 261560, - Profit: 1123740, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3920`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 47040, - Discounts: 0, - Sales: 47040, - COGS: 4635, - Profit: 42405, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3381`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 422625, - Discounts: 0, - Sales: 422625, - COGS: 338520, - Profit: 84105, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4307`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 1292100, - Discounts: 0, - Sales: 1292100, - COGS: 500250, - Profit: 791850, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `878`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10536, - Discounts: 0, - Sales: 10536, - COGS: 8514, - Profit: 2022, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `496`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 7440, - Discounts: 0, - Sales: 7440, - COGS: 21780, - Profit: 14340, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3367`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 50505, - Discounts: 0, - Sales: 50505, - COGS: 8880, - Profit: 41625, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2055`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 616500, - Discounts: 0, - Sales: 616500, - COGS: 537750, - Profit: 78750, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4041`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 80820, - Discounts: 0, - Sales: 80820, - COGS: 18170, - Profit: 62650, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `3237`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1132950, - Discounts: 0, - Sales: 1132950, - COGS: 715000, - Profit: 417950, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `630`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 7560, - Discounts: 0, - Sales: 7560, - COGS: 5859, - Profit: 1701, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4210`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 526250, - Discounts: 0, - Sales: 526250, - COGS: 506340, - Profit: 19910, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1127`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 22540, - Discounts: 0, - Sales: 22540, - COGS: 18990, - Profit: 3550, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3438`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 24066, - Discounts: 0, - Sales: 24066, - COGS: 8430, - Profit: 15636, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2015`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 24180, - Discounts: 0, - Sales: 24180, - COGS: 6423, - Profit: 17757, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2534`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 17738, - Discounts: 0, - Sales: 17738, - COGS: 5715, - Profit: 12023, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1384`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 20760, - Discounts: 0, - Sales: 20760, - COGS: 6150, - Profit: 14610, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3561`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 24927, - Discounts: 276.15, - Sales: 24650.85, - COGS: 19725, - Profit: 4925.85, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1823`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27345, - Discounts: 344.4, - Sales: 27000.6, - COGS: 22960, - Profit: 4040.6, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2795`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19565, - Discounts: 72.1, - Sales: 19492.9, - COGS: 5150, - Profit: 14342.9, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `457`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 3199, - Discounts: 44.73, - Sales: 3154.27, - COGS: 3195, - Profit: 40.73, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3785`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26495, - Discounts: 92.82, - Sales: 26402.18, - COGS: 6630, - Profit: 19772.18, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `748`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 8976, - Discounts: 222.96, - Sales: 8753.04, - COGS: 5574, - Profit: 3179.04, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1021`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 357350, - Discounts: 4235, - Sales: 353115, - COGS: 314600, - Profit: 38515, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2076`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 14532, - Discounts: 177.03, - Sales: 14354.97, - COGS: 12645, - Profit: 1709.97, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `4316`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 51792, - Discounts: 173.4, - Sales: 51618.6, - COGS: 4335, - Profit: 47283.6, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4174`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50088, - Discounts: 320.52, - Sales: 49767.48, - COGS: 8013, - Profit: 41754.48, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3736`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1307600, - Discounts: 4889.5, - Sales: 1302710.5, - COGS: 363220, - Profit: 939490.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1914`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 669900, - Discounts: 7542.5, - Sales: 662357.5, - COGS: 560300, - Profit: 102057.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2742`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 41130, - Discounts: 332.1, - Sales: 40797.9, - COGS: 22140, - Profit: 18657.9, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1499`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 449700, - Discounts: 6903, - Sales: 442797, - COGS: 575250, - Profit: 132453, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 75440, - Discounts: 275.1, - Sales: 75164.9, - COGS: 13755, - Profit: 61409.9, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1112`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 7784, - Discounts: 128.1, - Sales: 7655.9, - COGS: 9150, - Profit: 1494.1, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2368`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 35520, - Discounts: 227.1, - Sales: 35292.9, - COGS: 15140, - Profit: 20152.9, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 11102, - Discounts: 314.48, - Sales: 10787.52, - COGS: 22462.5, - Profit: 11674.98, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3386`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 423250, - Discounts: 908.75, - Sales: 422341.25, - COGS: 87240, - Profit: 335101.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `852`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 106500, - Discounts: 983.75, - Sales: 105516.25, - COGS: 94440, - Profit: 11076.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2783`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 347875, - Discounts: 2278.75, - Sales: 345596.25, - COGS: 218760, - Profit: 126836.25, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2684`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 40260, - Discounts: 112.05, - Sales: 40147.95, - COGS: 7470, - Profit: 32677.95, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4083`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1224900, - Discounts: 8715, - Sales: 1216185, - COGS: 726250, - Profit: 489935, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2816`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 985600, - Discounts: 7542.5, - Sales: 978057.5, - COGS: 560300, - Profit: 417757.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4294`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 85880, - Discounts: 772.8, - Sales: 85107.2, - COGS: 38640, - Profit: 46467.2, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2856`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 19992, - Discounts: 25.34, - Sales: 19966.66, - COGS: 1810, - Profit: 18156.66, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1407`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 175875, - Discounts: 1153.75, - Sales: 174721.25, - COGS: 110760, - Profit: 63961.25, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1265`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 8855, - Discounts: 18.41, - Sales: 8836.59, - COGS: 1315, - Profit: 7521.59, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3892`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1362200, - Discounts: 3302.25, - Sales: 1358897.75, - COGS: 245310, - Profit: 1113587.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3068`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 383500, - Discounts: 908.75, - Sales: 382591.25, - COGS: 87240, - Profit: 295351.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2181`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 272625, - Discounts: 983.75, - Sales: 271641.25, - COGS: 94440, - Profit: 177201.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1356`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 406800, - Discounts: 2958, - Sales: 403842, - COGS: 246500, - Profit: 177201.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1814`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 634900, - Discounts: 4889.5, - Sales: 630010.5, - COGS: 363220, - Profit: 266790.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1495`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 186875, - Discounts: 2180, - Sales: 184695, - COGS: 209280, - Profit: 24585, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1463`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 182875, - Discounts: 1856.25, - Sales: 181018.75, - COGS: 89100, - Profit: 91918.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `215`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 2580, - Discounts: 310.8, - Sales: 2269.2, - COGS: 3885, - Profit: 1615.8, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `566`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 198100, - Discounts: 19964, - Sales: 178136, - COGS: 741520, - Profit: 563384, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3255`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 39060, - Discounts: 274.08, - Sales: 38785.92, - COGS: 3426, - Profit: 35359.92, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 15440, - Discounts: 626.4, - Sales: 14813.6, - COGS: 15660, - Profit: 846.4, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1135`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13620, - Discounts: 165.6, - Sales: 13454.4, - COGS: 2070, - Profit: 11384.4, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 17895, - Discounts: 708.9, - Sales: 17186.1, - COGS: 23630, - Profit: 6443.9, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2530`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 759000, - Discounts: 5508, - Sales: 753492, - COGS: 229500, - Profit: 523992, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3451`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1035300, - Discounts: 10368, - Sales: 1024932, - COGS: 432000, - Profit: 592932, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3059`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 36708, - Discounts: 274.08, - Sales: 36433.92, - COGS: 3426, - Profit: 33007.92, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3957`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 494625, - Discounts: 1655, - Sales: 492970, - COGS: 79440, - Profit: 413530, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3444`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 41328, - Discounts: 310.8, - Sales: 41017.2, - COGS: 3885, - Profit: 37132.2, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3154`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 946200, - Discounts: 11496, - Sales: 934704, - COGS: 479000, - Profit: 455704, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4108`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1437800, - Discounts: 19964, - Sales: 1417836, - COGS: 741520, - Profit: 676316, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3760`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 470000, - Discounts: 6822.5, - Sales: 463177.5, - COGS: 327480, - Profit: 135697.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2334`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 28008, - Discounts: 253.2, - Sales: 27754.8, - COGS: 3165, - Profit: 24589.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `580`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 6960, - Discounts: 260.16, - Sales: 6699.84, - COGS: 3252, - Profit: 3447.84, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2610`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 52200, - Discounts: 626.4, - Sales: 51573.6, - COGS: 15660, - Profit: 35913.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1459`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 510650, - Discounts: 20139, - Sales: 490511, - COGS: 748020, - Profit: 257509, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3774`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 45288, - Discounts: 253.2, - Sales: 45034.8, - COGS: 3165, - Profit: 41869.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2572`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 30864, - Discounts: 260.16, - Sales: 30603.84, - COGS: 3252, - Profit: 27351.84, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `320`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 40000, - Discounts: 1655, - Sales: 38345, - COGS: 79440, - Profit: 41095, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3275`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1146250, - Discounts: 20139, - Sales: 1126111, - COGS: 748020, - Profit: 378091, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3582`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 447750, - Discounts: 6822.5, - Sales: 440927.5, - COGS: 327480, - Profit: 113447.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4056`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1216800, - Discounts: 1554, - Sales: 1215246, - COGS: 64750, - Profit: 1150496, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2144`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 643200, - Discounts: 6606, - Sales: 636594, - COGS: 275250, - Profit: 361344, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3502`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 437750, - Discounts: 5690, - Sales: 432060, - COGS: 273120, - Profit: 158940, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `679`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 13580, - Discounts: 494.4, - Sales: 13085.6, - COGS: 12360, - Profit: 725.6, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2351`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 47020, - Discounts: 376.4, - Sales: 46643.6, - COGS: 9410, - Profit: 37233.6, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2043`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 612900, - Discounts: 11496, - Sales: 601404, - COGS: 479000, - Profit: 122404, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3565`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 445625, - Discounts: 15913.13, - Sales: 429711.88, - COGS: 509220, - Profit: 79508.13, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1401`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 28020, - Discounts: 1548, - Sales: 26472, - COGS: 25800, - Profit: 672, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2077`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 623100, - Discounts: 6201, - Sales: 616899, - COGS: 172250, - Profit: 444649, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3643`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 43716, - Discounts: 700.92, - Sales: 43015.08, - COGS: 5841, - Profit: 37174.08, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2960`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20720, - Discounts: 411.18, - Sales: 20308.82, - COGS: 9790, - Profit: 10518.82, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1201`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 14412, - Discounts: 684.36, - Sales: 13727.64, - COGS: 5703, - Profit: 8024.64, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2321`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 16247, - Discounts: 114.24, - Sales: 16132.76, - COGS: 2720, - Profit: 13412.76, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3972`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 496500, - Discounts: 4826.25, - Sales: 491673.75, - COGS: 154440, - Profit: 337233.75, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3878`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 484750, - Discounts: 6397.5, - Sales: 478352.5, - COGS: 204720, - Profit: 273632.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2278`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 683400, - Discounts: 21910.5, - Sales: 661489.5, - COGS: 608625, - Profit: 52864.5, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1075`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 134375, - Discounts: 6652.5, - Sales: 127722.5, - COGS: 212880, - Profit: 85157.5, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4050`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 48600, - Discounts: 684.36, - Sales: 47915.64, - COGS: 5703, - Profit: 42212.64, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3035`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 910500, - Discounts: 6201, - Sales: 904299, - COGS: 172250, - Profit: 732049, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3636`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 454500, - Discounts: 5887.5, - Sales: 448612.5, - COGS: 188400, - Profit: 260212.5, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1379`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 16548, - Discounts: 493.02, - Sales: 16054.98, - COGS: 4108.5, - Profit: 11946.48, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4492`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 561500, - Discounts: 7533.75, - Sales: 553966.25, - COGS: 241080, - Profit: 312886.25, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1744`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 218000, - Discounts: 4826.25, - Sales: 213173.75, - COGS: 154440, - Profit: 58733.75, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2341`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 292625, - Discounts: 6397.5, - Sales: 286227.5, - COGS: 204720, - Profit: 81507.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3835`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 479375, - Discounts: 7533.75, - Sales: 471841.25, - COGS: 241080, - Profit: 230761.25, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1161`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 348300, - Discounts: 25596, - Sales: 322704, - COGS: 711000, - Profit: 388296, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `876`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10512, - Discounts: 689.76, - Sales: 9822.24, - COGS: 5748, - Profit: 4074.24, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1705`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 213125, - Discounts: 5887.5, - Sales: 207237.5, - COGS: 188400, - Profit: 18837.5, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1805`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 541500, - Discounts: 16866, - Sales: 524634, - COGS: 468500, - Profit: 56134, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `389`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 136150, - Discounts: 17241, - Sales: 118909, - COGS: 426920, - Profit: 308011, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1459`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 29180, - Discounts: 498.6, - Sales: 28681.4, - COGS: 8310, - Profit: 20371.4, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4236`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 84720, - Discounts: 2310.3, - Sales: 82409.7, - COGS: 38505, - Profit: 43904.7, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3627`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 43524, - Discounts: 892.44, - Sales: 42631.56, - COGS: 7437, - Profit: 35194.56, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1756`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 26340, - Discounts: 1218.6, - Sales: 25121.4, - COGS: 20310, - Profit: 4811.4, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `307`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 4605, - Discounts: 1218.6, - Sales: 3386.4, - COGS: 20310, - Profit: 16923.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1222`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 366600, - Discounts: 24252, - Sales: 342348, - COGS: 505250, - Profit: 162902, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `489`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 171150, - Discounts: 3836, - Sales: 167314, - COGS: 71240, - Profit: 96074, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4133`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 61995, - Discounts: 1180.2, - Sales: 60814.8, - COGS: 19670, - Profit: 41144.8, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2743`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 822900, - Discounts: 22308, - Sales: 800592, - COGS: 464750, - Profit: 335842, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `4460`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1338000, - Discounts: 24252, - Sales: 1313748, - COGS: 505250, - Profit: 808498, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1232`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 154000, - Discounts: 5690, - Sales: 148310, - COGS: 136560, - Profit: 11750, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 18102, - Discounts: 1190.28, - Sales: 16911.72, - COGS: 21255, - Profit: 4343.28, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1332`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 166500, - Discounts: 3975, - Sales: 162525, - COGS: 95400, - Profit: 67125, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4487`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1346100, - Discounts: 16974, - Sales: 1329126, - COGS: 353625, - Profit: 975501, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3862`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1158600, - Discounts: 35016, - Sales: 1123584, - COGS: 729500, - Profit: 394084, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1765`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 617750, - Discounts: 48300, - Sales: 569450, - COGS: 897000, - Profit: 327550, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3533`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 441625, - Discounts: 14940, - Sales: 426685, - COGS: 358560, - Profit: 68125, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2016`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 30240, - Discounts: 130.8, - Sales: 30109.2, - COGS: 2180, - Profit: 27929.2, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2938`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 58760, - Discounts: 1659.2, - Sales: 57100.8, - COGS: 20740, - Profit: 36360.8, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3352`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67040, - Discounts: 844.8, - Sales: 66195.2, - COGS: 10560, - Profit: 55635.2, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2430`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 850500, - Discounts: 3836, - Sales: 846664, - COGS: 71240, - Profit: 775424, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `535`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 66875, - Discounts: 5690, - Sales: 61185, - COGS: 136560, - Profit: 75375, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1523`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 18276, - Discounts: 703.2, - Sales: 17572.8, - COGS: 4395, - Profit: 13177.8, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1782`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 623700, - Discounts: 30478, - Sales: 593222, - COGS: 566020, - Profit: 27202, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `347`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 4164, - Discounts: 415.68, - Sales: 3748.32, - COGS: 2598, - Profit: 1150.32, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3509`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1228150, - Discounts: 30478, - Sales: 1197672, - COGS: 566020, - Profit: 631652, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2943`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1030050, - Discounts: 26110, - Sales: 1003940, - COGS: 484900, - Profit: 519040, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `4037`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 504625, - Discounts: 5370, - Sales: 499255, - COGS: 128880, - Profit: 370375, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4146`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1451100, - Discounts: 26698, - Sales: 1424402, - COGS: 495820, - Profit: 928582, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `725`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 5075, - Discounts: 480.2, - Sales: 4594.8, - COGS: 6860, - Profit: 2265.2, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2325`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 16275, - Discounts: 941.15, - Sales: 15333.85, - COGS: 13445, - Profit: 1888.85, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `675`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 8100, - Discounts: 1458.6, - Sales: 6641.4, - COGS: 7293, - Profit: 651.6, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2990`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 35880, - Discounts: 1458.6, - Sales: 34421.4, - COGS: 7293, - Profit: 27128.4, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1072`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 7504, - Discounts: 941.15, - Sales: 6562.85, - COGS: 13445, - Profit: 6882.15, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1048`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 7336, - Discounts: 589.05, - Sales: 6746.95, - COGS: 8415, - Profit: 1668.05, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `469`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 5628, - Discounts: 673.8, - Sales: 4954.2, - COGS: 3369, - Profit: 1585.2, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4240`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50880, - Discounts: 1119, - Sales: 49761, - COGS: 5595, - Profit: 44166, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1976`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 23712, - Discounts: 669.6, - Sales: 23042.4, - COGS: 3348, - Profit: 19694.4, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1984`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39680, - Discounts: 1563, - Sales: 38117, - COGS: 15630, - Profit: 22487, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `480`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 144000, - Discounts: 14865, - Sales: 129135, - COGS: 247750, - Profit: 118615, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1205`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 18075, - Discounts: 2093.25, - Sales: 15981.75, - COGS: 27910, - Profit: 11928.25, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2480`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 17360, - Discounts: 199.5, - Sales: 17160.5, - COGS: 2850, - Profit: 14310.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2926`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 20482, - Discounts: 870.45, - Sales: 19611.55, - COGS: 12435, - Profit: 7176.55, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3210`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1123500, - Discounts: 24228.75, - Sales: 1099271.25, - COGS: 359970, - Profit: 739301.25, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3221`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 402625, - Discounts: 22668.75, - Sales: 379956.25, - COGS: 435240, - Profit: 55283.75, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1127`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13524, - Discounts: 1405.2, - Sales: 12118.8, - COGS: 7026, - Profit: 5092.8, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1610`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 32200, - Discounts: 1303, - Sales: 30897, - COGS: 13030, - Profit: 17867, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4100`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 512500, - Discounts: 18700, - Sales: 493800, - COGS: 359040, - Profit: 134760, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1012`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 126500, - Discounts: 14906.25, - Sales: 111593.75, - COGS: 286200, - Profit: 174606.25, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3337`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1001100, - Discounts: 24105, - Sales: 976995, - COGS: 401750, - Profit: 575245, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3955`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 27685, - Discounts: 814.45, - Sales: 26870.55, - COGS: 11635, - Profit: 15235.55, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4347`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1304100, - Discounts: 14865, - Sales: 1289235, - COGS: 247750, - Profit: 1041485, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1548`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 541800, - Discounts: 10535, - Sales: 531265, - COGS: 156520, - Profit: 374745, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2153`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 32295, - Discounts: 1965, - Sales: 30330, - COGS: 26200, - Profit: 4130, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4126`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 515750, - Discounts: 5381.25, - Sales: 510368.75, - COGS: 103320, - Profit: 407048.75, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3376`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67520, - Discounts: 2663, - Sales: 64857, - COGS: 26630, - Profit: 38227, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2244`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 33660, - Discounts: 416.25, - Sales: 33243.75, - COGS: 5550, - Profit: 27693.75, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1360`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 20400, - Discounts: 2145.75, - Sales: 18254.25, - COGS: 28610, - Profit: 10355.75, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `279`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 34875, - Discounts: 5043.75, - Sales: 29831.25, - COGS: 96840, - Profit: 67008.75, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2521`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 882350, - Discounts: 10535, - Sales: 871815, - COGS: 156520, - Profit: 715295, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2433`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 48660, - Discounts: 2832, - Sales: 45828, - COGS: 28320, - Profit: 17508, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1738`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 34760, - Discounts: 1579, - Sales: 33181, - COGS: 15790, - Profit: 17391, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1106`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 138250, - Discounts: 5381.25, - Sales: 132868.75, - COGS: 103320, - Profit: 29548.75, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `213`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 63900, - Discounts: 18750, - Sales: 45150, - COGS: 312500, - Profit: 267350, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2929`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 58580, - Discounts: 2663, - Sales: 55917, - COGS: 26630, - Profit: 29287, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2389`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 16723, - Discounts: 199.5, - Sales: 16523.5, - COGS: 2850, - Profit: 13673.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3086`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 21602, - Discounts: 870.45, - Sales: 20731.55, - COGS: 12435, - Profit: 8296.55, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `745`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 260750, - Discounts: 23625, - Sales: 237125, - COGS: 351000, - Profit: 113875, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1266`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 443100, - Discounts: 9660, - Sales: 433440, - COGS: 143520, - Profit: 289920, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4287`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1286100, - Discounts: 18750, - Sales: 1267350, - COGS: 312500, - Profit: 954850, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 47895, - Discounts: 3420.9, - Sales: 44474.1, - COGS: 38010, - Profit: 6464.1, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1967`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39340, - Discounts: 1341, - Sales: 37999, - COGS: 11175, - Profit: 26824, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `631`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 9465, - Discounts: 2559.6, - Sales: 6905.4, - COGS: 28440, - Profit: 21534.6, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3469`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 41628, - Discounts: 404.64, - Sales: 41223.36, - COGS: 1686, - Profit: 39537.36, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3215`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 48225, - Discounts: 1827, - Sales: 46398, - COGS: 20300, - Profit: 26098, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1959`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 685650, - Discounts: 20580, - Sales: 665070, - COGS: 254800, - Profit: 410270, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2181`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 763350, - Discounts: 30660, - Sales: 732690, - COGS: 379600, - Profit: 353090, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2205`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 26460, - Discounts: 1960.56, - Sales: 24499.44, - COGS: 8169, - Profit: 16330.44, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1890`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 661500, - Discounts: 31416, - Sales: 630084, - COGS: 388960, - Profit: 241124, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2417`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 302125, - Discounts: 7140, - Sales: 294985, - COGS: 114240, - Profit: 180745, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1158`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 144750, - Discounts: 20662.5, - Sales: 124087.5, - COGS: 330600, - Profit: 206512.5, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `803`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 12045, - Discounts: 1377, - Sales: 10668, - COGS: 15300, - Profit: 4632, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3705`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1296750, - Discounts: 31416, - Sales: 1265334, - COGS: 388960, - Profit: 876374, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `589`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 4123, - Discounts: 629.16, - Sales: 3493.84, - COGS: 7490, - Profit: 3996.16, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3999`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 59985, - Discounts: 2559.6, - Sales: 57425.4, - COGS: 28440, - Profit: 28985.4, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4256`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 29792, - Discounts: 629.16, - Sales: 29162.84, - COGS: 7490, - Profit: 21672.84, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2160`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 270000, - Discounts: 14906.25, - Sales: 255093.75, - COGS: 238500, - Profit: 16593.75, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `466`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 163100, - Discounts: 35259, - Sales: 127841, - COGS: 436540, - Profit: 308699, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1478`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 22170, - Discounts: 1978.2, - Sales: 20191.8, - COGS: 21980, - Profit: 1788.2, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3798`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 56970, - Discounts: 1568.7, - Sales: 55401.3, - COGS: 17430, - Profit: 37971.3, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `447`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 6705, - Discounts: 1037.7, - Sales: 5667.3, - COGS: 11530, - Profit: 5862.7, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `745`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 14900, - Discounts: 1201.2, - Sales: 13698.8, - COGS: 10010, - Profit: 3688.8, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1732`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 12124, - Discounts: 559.86, - Sales: 11564.14, - COGS: 6665, - Profit: 4899.14, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1759`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 26385, - Discounts: 1037.7, - Sales: 25347.3, - COGS: 11530, - Profit: 13817.3, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `338`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 4056, - Discounts: 610.68, - Sales: 3445.32, - COGS: 2181, - Profit: 1264.32, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3911`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 46932, - Discounts: 1582.56, - Sales: 45349.44, - COGS: 5652, - Profit: 39697.44, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `4473`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 53676, - Discounts: 1965.6, - Sales: 51710.4, - COGS: 7020, - Profit: 44690.4, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `383`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 4596, - Discounts: 1967.28, - Sales: 2628.72, - COGS: 7026, - Profit: 4397.28, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1062`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 15930, - Discounts: 1325.1, - Sales: 14604.9, - COGS: 12620, - Profit: 1984.9, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4083`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 28581, - Discounts: 556.15, - Sales: 28024.85, - COGS: 5675, - Profit: 22349.85, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3974`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 27818, - Discounts: 268.03, - Sales: 27549.97, - COGS: 2735, - Profit: 24814.97, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3723`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 26061, - Discounts: 775.18, - Sales: 25285.82, - COGS: 7910, - Profit: 17375.82, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2435`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 29220, - Discounts: 1460.34, - Sales: 27759.66, - COGS: 5215.5, - Profit: 22544.16, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1763`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 12341, - Discounts: 775.18, - Sales: 11565.82, - COGS: 7910, - Profit: 3655.82, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4473`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 31311, - Discounts: 556.15, - Sales: 30754.85, - COGS: 5675, - Profit: 25079.85, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1246`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 436100, - Discounts: 43144.5, - Sales: 392955.5, - COGS: 457860, - Profit: 64904.5, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1615`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 484500, - Discounts: 9408, - Sales: 475092, - COGS: 112000, - Profit: 363092, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `749`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 224700, - Discounts: 45801, - Sales: 178899, - COGS: 545250, - Profit: 366351, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1318`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 26360, - Discounts: 2766.4, - Sales: 23593.6, - COGS: 19760, - Profit: 3833.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2882`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 864600, - Discounts: 45801, - Sales: 818799, - COGS: 545250, - Profit: 273549, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2484`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 745200, - Discounts: 35742, - Sales: 709458, - COGS: 425500, - Profit: 283958, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3169`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 950700, - Discounts: 9408, - Sales: 941292, - COGS: 112000, - Profit: 829292, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 510000, - Discounts: 30738.75, - Sales: 479261.25, - COGS: 421560, - Profit: 57701.25, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3943`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 59145, - Discounts: 2206.05, - Sales: 56938.95, - COGS: 21010, - Profit: 35928.95, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `253`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 5060, - Discounts: 2149, - Sales: 2911, - COGS: 15350, - Profit: 12439, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `799`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 239700, - Discounts: 34839, - Sales: 204861, - COGS: 414750, - Profit: 209889, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3942`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 78840, - Discounts: 852.6, - Sales: 77987.4, - COGS: 6090, - Profit: 71897.4, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2498`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 312250, - Discounts: 18261.25, - Sales: 293988.75, - COGS: 250440, - Profit: 43548.75, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2517`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 50340, - Discounts: 2766.4, - Sales: 47573.6, - COGS: 19760, - Profit: 27813.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1145`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 343500, - Discounts: 28812, - Sales: 314688, - COGS: 343000, - Profit: 28312, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3814`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 45768, - Discounts: 2725.38, - Sales: 43042.62, - COGS: 9733.5, - Profit: 33309.12, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1188`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 356400, - Discounts: 20139, - Sales: 336261, - COGS: 239750, - Profit: 96511, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2233`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 669900, - Discounts: 57687, - Sales: 612213, - COGS: 686750, - Profit: 74537, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `421`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 52625, - Discounts: 14393.75, - Sales: 38231.25, - COGS: 197400, - Profit: 159168.75, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `269`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 94150, - Discounts: 70462, - Sales: 23688, - COGS: 747760, - Profit: 724072, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `952`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19040, - Discounts: 1565.2, - Sales: 17474.8, - COGS: 11180, - Profit: 6294.8, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2964`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 889200, - Discounts: 28812, - Sales: 860388, - COGS: 343000, - Profit: 517388, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1505`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 10535, - Discounts: 273.28, - Sales: 10261.72, - COGS: 2440, - Profit: 7821.72, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1678`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 33560, - Discounts: 2051.2, - Sales: 31508.8, - COGS: 12820, - Profit: 18688.8, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4249`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 29743, - Discounts: 143.92, - Sales: 29599.08, - COGS: 1285, - Profit: 28314.08, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1677`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 33540, - Discounts: 2051.2, - Sales: 31488.8, - COGS: 12820, - Profit: 18668.8, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3051`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 381375, - Discounts: 15400, - Sales: 365975, - COGS: 184800, - Profit: 181175, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3372`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 50580, - Discounts: 588, - Sales: 49992, - COGS: 4900, - Profit: 45092, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1686`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 590100, - Discounts: 38136, - Sales: 551964, - COGS: 354120, - Profit: 197844, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3086`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 46290, - Discounts: 3001.2, - Sales: 43288.8, - COGS: 25010, - Profit: 18278.8, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4150`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 83000, - Discounts: 1132.8, - Sales: 81867.2, - COGS: 7080, - Profit: 74787.2, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3027`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 60540, - Discounts: 1032, - Sales: 59508, - COGS: 6450, - Profit: 53058, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `4359`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1307700, - Discounts: 37488, - Sales: 1270212, - COGS: 390500, - Profit: 879712, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1589`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 23835, - Discounts: 853.2, - Sales: 22981.8, - COGS: 7110, - Profit: 15871.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2679`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 334875, - Discounts: 11140, - Sales: 323735, - COGS: 133680, - Profit: 190055, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3401`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 23807, - Discounts: 705.04, - Sales: 23101.96, - COGS: 6295, - Profit: 16806.96, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2815`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19705, - Discounts: 613.2, - Sales: 19091.8, - COGS: 5475, - Profit: 13616.8, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2964`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 59280, - Discounts: 2185.6, - Sales: 57094.4, - COGS: 13660, - Profit: 43434.4, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4173`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1251900, - Discounts: 59040, - Sales: 1192860, - COGS: 615000, - Profit: 577860, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1157`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 8099, - Discounts: 379.68, - Sales: 7719.32, - COGS: 3390, - Profit: 4329.32, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3065`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 21455, - Discounts: 894.88, - Sales: 20560.12, - COGS: 7990, - Profit: 12570.12, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 81600, - Discounts: 3094.4, - Sales: 78505.6, - COGS: 19340, - Profit: 59165.6, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1713`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34260, - Discounts: 4788.8, - Sales: 29471.2, - COGS: 29930, - Profit: 458.8, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1691`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 591850, - Discounts: 38136, - Sales: 553714, - COGS: 354120, - Profit: 199594, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2305`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 27660, - Discounts: 574.08, - Sales: 27085.92, - COGS: 1794, - Profit: 25291.92, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3401`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 23807, - Discounts: 1627.92, - Sales: 22179.08, - COGS: 14535, - Profit: 7644.08, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2288`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 16016, - Discounts: 1309.28, - Sales: 14706.72, - COGS: 11690, - Profit: 3016.72, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4086`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1225800, - Discounts: 15240, - Sales: 1210560, - COGS: 158750, - Profit: 1051810, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2651`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 927850, - Discounts: 16086, - Sales: 911764, - COGS: 149370, - Profit: 762394, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3971`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27797, - Discounts: 1309.28, - Sales: 26487.72, - COGS: 11690, - Profit: 14797.72, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2512`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 879200, - Discounts: 10668, - Sales: 868532, - COGS: 99060, - Profit: 769472, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2745`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 960750, - Discounts: 11816, - Sales: 948934, - COGS: 109720, - Profit: 839214, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1903`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 570900, - Discounts: 51216, - Sales: 519684, - COGS: 533500, - Profit: 13816, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2914`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 58280, - Discounts: 1132.8, - Sales: 57147.2, - COGS: 7080, - Profit: 50067.2, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1889`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 13223, - Discounts: 1627.92, - Sales: 11595.08, - COGS: 14535, - Profit: 2939.92, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1466`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 29320, - Discounts: 2185.6, - Sales: 27134.4, - COGS: 13660, - Profit: 13474.4, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `887`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 266100, - Discounts: 59040, - Sales: 207060, - COGS: 615000, - Profit: 407940, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `395`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 7900, - Discounts: 2432, - Sales: 5468, - COGS: 15200, - Profit: 9732, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1693`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 25395, - Discounts: 853.2, - Sales: 24541.8, - COGS: 7110, - Profit: 17431.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2649`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 794700, - Discounts: 15240, - Sales: 779460, - COGS: 158750, - Profit: 620710, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3608`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 72160, - Discounts: 698.4, - Sales: 71461.6, - COGS: 4365, - Profit: 67096.6, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1073`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 321900, - Discounts: 29538, - Sales: 292362, - COGS: 273500, - Profit: 18862, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2167`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 650100, - Discounts: 102667.5, - Sales: 547432.5, - COGS: 950625, - Profit: 403192.5, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1319`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 461650, - Discounts: 52479, - Sales: 409171, - COGS: 433160, - Profit: 23989, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1252`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 15024, - Discounts: 2506.68, - Sales: 12517.32, - COGS: 6963, - Profit: 5554.32, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1156`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 144500, - Discounts: 31466.25, - Sales: 113033.75, - COGS: 335640, - Profit: 222606.25, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1153`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 345900, - Discounts: 69255, - Sales: 276645, - COGS: 641250, - Profit: 364605, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2720`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 952000, - Discounts: 76135.5, - Sales: 875864.5, - COGS: 628420, - Profit: 247444.5, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3658`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 54870, - Discounts: 4961.25, - Sales: 49908.75, - COGS: 36750, - Profit: 13158.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2950`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 885000, - Discounts: 29538, - Sales: 855462, - COGS: 273500, - Profit: 581962, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1821`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27315, - Discounts: 1656.45, - Sales: 25658.55, - COGS: 12270, - Profit: 13388.55, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1127`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 338100, - Discounts: 35748, - Sales: 302352, - COGS: 331000, - Profit: 28648, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `862`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 107750, - Discounts: 31466.25, - Sales: 76283.75, - COGS: 335640, - Profit: 259356.25, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3805`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 57075, - Discounts: 330.75, - Sales: 56744.25, - COGS: 2450, - Profit: 54294.25, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1415`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 424500, - Discounts: 102424.5, - Sales: 322075.5, - COGS: 948375, - Profit: 626299.5, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2231`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 780850, - Discounts: 41170.5, - Sales: 739679.5, - COGS: 339820, - Profit: 399859.5, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3649`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 456125, - Discounts: 6378.75, - Sales: 449746.25, - COGS: 68040, - Profit: 381706.25, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2948`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 368500, - Discounts: 23737.5, - Sales: 344762.5, - COGS: 253200, - Profit: 91562.5, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3395`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1188250, - Discounts: 39973.5, - Sales: 1148276.5, - COGS: 329940, - Profit: 818336.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2650`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 31800, - Discounts: 2112.48, - Sales: 29687.52, - COGS: 5868, - Profit: 23819.52, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `585`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 175500, - Discounts: 71793, - Sales: 103707, - COGS: 664750, - Profit: 561043, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1316`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 460600, - Discounts: 42572.25, - Sales: 418027.75, - COGS: 351390, - Profit: 66637.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `4459`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 53508, - Discounts: 950.4, - Sales: 52557.6, - COGS: 2640, - Profit: 49917.6, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2711`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 813300, - Discounts: 50409, - Sales: 762891, - COGS: 466750, - Profit: 296141, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3613`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 54195, - Discounts: 1656.45, - Sales: 52538.55, - COGS: 12270, - Profit: 40268.55, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1847`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 230875, - Discounts: 9866.25, - Sales: 221008.75, - COGS: 105240, - Profit: 115768.75, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2996`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1048600, - Discounts: 65236.5, - Sales: 983363.5, - COGS: 538460, - Profit: 444903.5, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2838`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 993300, - Discounts: 39973.5, - Sales: 953326.5, - COGS: 329940, - Profit: 623386.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1536`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 30720, - Discounts: 3049.2, - Sales: 27670.8, - COGS: 16940, - Profit: 10730.8, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1291`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 25820, - Discounts: 1193.4, - Sales: 24626.6, - COGS: 6630, - Profit: 17996.6, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1213`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 8491, - Discounts: 515.97, - Sales: 7975.03, - COGS: 4095, - Profit: 3880.03, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2370`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 28440, - Discounts: 1706.4, - Sales: 26733.6, - COGS: 4740, - Profit: 21993.6, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1979`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 13853, - Discounts: 328.23, - Sales: 13524.77, - COGS: 2605, - Profit: 10919.77, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2879`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 57580, - Discounts: 1751.4, - Sales: 55828.6, - COGS: 9730, - Profit: 46098.6, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1707`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34140, - Discounts: 1868.4, - Sales: 32271.6, - COGS: 10380, - Profit: 21891.6, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2933`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 20531, - Discounts: 226.8, - Sales: 20304.2, - COGS: 1800, - Profit: 18504.2, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1014`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 12168, - Discounts: 2124.36, - Sales: 10043.64, - COGS: 5901, - Profit: 4142.64, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `693`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 10395, - Discounts: 3547.8, - Sales: 6847.2, - COGS: 26280, - Profit: 19432.8, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3741`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26187, - Discounts: 226.8, - Sales: 25960.2, - COGS: 1800, - Profit: 24160.2, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `3995`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27965, - Discounts: 328.23, - Sales: 27636.77, - COGS: 2605, - Profit: 25031.77, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `953`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19060, - Discounts: 1868.4, - Sales: 17191.6, - COGS: 10380, - Profit: 6811.6, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2530`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 37950, - Discounts: 2201.18, - Sales: 35748.82, - COGS: 16305, - Profit: 19443.82, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1372`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 27440, - Discounts: 0, - Sales: 27440, - COGS: 16185, - Profit: 11255, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2762`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 55240, - Discounts: 0, - Sales: 55240, - COGS: 13210, - Profit: 42030, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1464`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 21960, - Discounts: 0, - Sales: 21960, - COGS: 21780, - Profit: 180, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `719`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 10785, - Discounts: 0, - Sales: 10785, - COGS: 8880, - Profit: 1905, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3576`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 53640, - Discounts: 0, - Sales: 53640, - COGS: 24700, - Profit: 28940, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `4422`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1547700, - Discounts: 0, - Sales: 1547700, - COGS: 393380, - Profit: 1154320, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3649`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 54735, - Discounts: 0, - Sales: 54735, - COGS: 9210, - Profit: 45525, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4172`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 50064, - Discounts: 0, - Sales: 50064, - COGS: 7554, - Profit: 42510, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3841`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 76820, - Discounts: 0, - Sales: 76820, - COGS: 18990, - Profit: 57830, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3726`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 44712, - Discounts: 0, - Sales: 44712, - COGS: 4635, - Profit: 40077, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2625`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 39375, - Discounts: 0, - Sales: 39375, - COGS: 24700, - Profit: 14675, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1958`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 244750, - Discounts: 0, - Sales: 244750, - COGS: 319860, - Profit: 75110, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3271`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 981300, - Discounts: 0, - Sales: 981300, - COGS: 239500, - Profit: 741800, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2091`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 14637, - Discounts: 0, - Sales: 14637, - COGS: 10730, - Profit: 3907, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2530`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 316250, - Discounts: 0, - Sales: 316250, - COGS: 41400, - Profit: 274850, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2825`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 42375, - Discounts: 0, - Sales: 42375, - COGS: 6150, - Profit: 36225, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2513`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 50260, - Discounts: 0, - Sales: 50260, - COGS: 2920, - Profit: 47340, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `883`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 13245, - Discounts: 0, - Sales: 13245, - COGS: 9740, - Profit: 3505, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2087`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 25044, - Discounts: 0, - Sales: 25044, - COGS: 7554, - Profit: 17490, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2563`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 897050, - Discounts: 0, - Sales: 897050, - COGS: 261560, - Profit: 635490, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2846`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 34152, - Discounts: 0, - Sales: 34152, - COGS: 1101, - Profit: 33051, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `997`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 6979, - Discounts: 0, - Sales: 6979, - COGS: 4415, - Profit: 2564, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3421`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 51315, - Discounts: 0, - Sales: 51315, - COGS: 5490, - Profit: 45825, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Marchesa`, - UnitsSold: `70000`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 1050000, - Discounts: 0, - Sales: 1050000, - COGS: 5490, - Profit: 1044510, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2291`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 687300, - Discounts: 0, - Sales: 687300, - COGS: 197000, - Profit: 490300, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2290`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 34350, - Discounts: 0, - Sales: 34350, - COGS: 24720, - Profit: 9630, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2133`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14931, - Discounts: 0, - Sales: 14931, - COGS: 5715, - Profit: 9216, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3475`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1216250, - Discounts: 0, - Sales: 1216250, - COGS: 448500, - Profit: 767750, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3686`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 44232, - Discounts: 0, - Sales: 44232, - COGS: 2736, - Profit: 41496, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3319`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 49785, - Discounts: 0, - Sales: 49785, - COGS: 21520, - Profit: 28265, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3617`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 72340, - Discounts: 0, - Sales: 72340, - COGS: 18170, - Profit: 54170, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1266`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 443100, - Discounts: 0, - Sales: 443100, - COGS: 393380, - Profit: 49720, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `894`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 6258, - Discounts: 0, - Sales: 6258, - COGS: 7465, - Profit: 1207, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2725`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 340625, - Discounts: 0, - Sales: 340625, - COGS: 216480, - Profit: 124145, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3061`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 36732, - Discounts: 0, - Sales: 36732, - COGS: 6483, - Profit: 30249, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3958`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1385300, - Discounts: 0, - Sales: 1385300, - COGS: 261560, - Profit: 1123740, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3920`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 47040, - Discounts: 0, - Sales: 47040, - COGS: 4635, - Profit: 42405, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3381`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 422625, - Discounts: 0, - Sales: 422625, - COGS: 338520, - Profit: 84105, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1094`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 136750, - Discounts: 0, - Sales: 136750, - COGS: 41400, - Profit: 95350, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4307`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 1292100, - Discounts: 0, - Sales: 1292100, - COGS: 500250, - Profit: 791850, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `878`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10536, - Discounts: 0, - Sales: 10536, - COGS: 8514, - Profit: 2022, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `496`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 7440, - Discounts: 0, - Sales: 7440, - COGS: 21780, - Profit: 14340, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3367`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 50505, - Discounts: 0, - Sales: 50505, - COGS: 8880, - Profit: 41625, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3880`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1358000, - Discounts: 0, - Sales: 1358000, - COGS: 397020, - Profit: 960980, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2055`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 616500, - Discounts: 0, - Sales: 616500, - COGS: 537750, - Profit: 78750, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4041`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 80820, - Discounts: 0, - Sales: 80820, - COGS: 18170, - Profit: 62650, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `3237`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1132950, - Discounts: 0, - Sales: 1132950, - COGS: 715000, - Profit: 417950, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `630`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 7560, - Discounts: 0, - Sales: 7560, - COGS: 5859, - Profit: 1701, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4210`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 526250, - Discounts: 0, - Sales: 526250, - COGS: 506340, - Profit: 19910, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1127`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 22540, - Discounts: 0, - Sales: 22540, - COGS: 18990, - Profit: 3550, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3438`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 24066, - Discounts: 0, - Sales: 24066, - COGS: 8430, - Profit: 15636, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2015`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 24180, - Discounts: 0, - Sales: 24180, - COGS: 6423, - Profit: 17757, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2534`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 17738, - Discounts: 0, - Sales: 17738, - COGS: 5715, - Profit: 12023, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1384`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 20760, - Discounts: 0, - Sales: 20760, - COGS: 6150, - Profit: 14610, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3561`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 24927, - Discounts: 276.15, - Sales: 24650.85, - COGS: 19725, - Profit: 4925.85, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1823`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27345, - Discounts: 344.4, - Sales: 27000.6, - COGS: 22960, - Profit: 4040.6, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2795`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19565, - Discounts: 72.1, - Sales: 19492.9, - COGS: 5150, - Profit: 14342.9, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `457`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 3199, - Discounts: 44.73, - Sales: 3154.27, - COGS: 3195, - Profit: 40.73, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3785`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26495, - Discounts: 92.82, - Sales: 26402.18, - COGS: 6630, - Profit: 19772.18, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `748`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 8976, - Discounts: 222.96, - Sales: 8753.04, - COGS: 5574, - Profit: 3179.04, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1021`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 357350, - Discounts: 4235, - Sales: 353115, - COGS: 314600, - Profit: 38515, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2076`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 14532, - Discounts: 177.03, - Sales: 14354.97, - COGS: 12645, - Profit: 1709.97, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `4316`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 51792, - Discounts: 173.4, - Sales: 51618.6, - COGS: 4335, - Profit: 47283.6, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2654`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 331750, - Discounts: 412.5, - Sales: 331337.5, - COGS: 39600, - Profit: 291737.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4174`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50088, - Discounts: 320.52, - Sales: 49767.48, - COGS: 8013, - Profit: 41754.48, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1675`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 20100, - Discounts: 91.92, - Sales: 20008.08, - COGS: 2298, - Profit: 17710.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1572`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 471600, - Discounts: 1482, - Sales: 470118, - COGS: 123500, - Profit: 346618, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3736`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1307600, - Discounts: 4889.5, - Sales: 1302710.5, - COGS: 363220, - Profit: 939490.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1914`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 669900, - Discounts: 7542.5, - Sales: 662357.5, - COGS: 560300, - Profit: 102057.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2742`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 41130, - Discounts: 332.1, - Sales: 40797.9, - COGS: 22140, - Profit: 18657.9, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1499`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 449700, - Discounts: 6903, - Sales: 442797, - COGS: 575250, - Profit: 132453, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 75440, - Discounts: 275.1, - Sales: 75164.9, - COGS: 13755, - Profit: 61409.9, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1112`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 7784, - Discounts: 128.1, - Sales: 7655.9, - COGS: 9150, - Profit: 1494.1, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1723`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 516900, - Discounts: 7494, - Sales: 509406, - COGS: 624500, - Profit: 115094, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `423`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 52875, - Discounts: 828.75, - Sales: 52046.25, - COGS: 79560, - Profit: 27513.75, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2368`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 35520, - Discounts: 227.1, - Sales: 35292.9, - COGS: 15140, - Profit: 20152.9, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 11102, - Discounts: 314.48, - Sales: 10787.52, - COGS: 22462.5, - Profit: 11674.98, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3386`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 423250, - Discounts: 908.75, - Sales: 422341.25, - COGS: 87240, - Profit: 335101.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `852`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 106500, - Discounts: 983.75, - Sales: 105516.25, - COGS: 94440, - Profit: 11076.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2783`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 347875, - Discounts: 2278.75, - Sales: 345596.25, - COGS: 218760, - Profit: 126836.25, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2684`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 40260, - Discounts: 112.05, - Sales: 40147.95, - COGS: 7470, - Profit: 32677.95, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4393`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 52716, - Discounts: 91.92, - Sales: 52624.08, - COGS: 2298, - Profit: 50326.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4083`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1224900, - Discounts: 8715, - Sales: 1216185, - COGS: 726250, - Profit: 489935, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2816`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 985600, - Discounts: 7542.5, - Sales: 978057.5, - COGS: 560300, - Profit: 417757.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4294`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 85880, - Discounts: 772.8, - Sales: 85107.2, - COGS: 38640, - Profit: 46467.2, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2856`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 19992, - Discounts: 25.34, - Sales: 19966.66, - COGS: 1810, - Profit: 18156.66, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1407`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 175875, - Discounts: 1153.75, - Sales: 174721.25, - COGS: 110760, - Profit: 63961.25, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3850`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 481250, - Discounts: 828.75, - Sales: 480421.25, - COGS: 79560, - Profit: 400861.25, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2856`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 19992, - Discounts: 146.44, - Sales: 19845.56, - COGS: 10460, - Profit: 9385.56, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1265`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 8855, - Discounts: 18.41, - Sales: 8836.59, - COGS: 1315, - Profit: 7521.59, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3892`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1362200, - Discounts: 3302.25, - Sales: 1358897.75, - COGS: 245310, - Profit: 1113587.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3068`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 383500, - Discounts: 908.75, - Sales: 382591.25, - COGS: 87240, - Profit: 295351.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2181`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 272625, - Discounts: 983.75, - Sales: 271641.25, - COGS: 94440, - Profit: 177201.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1356`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 406800, - Discounts: 2958, - Sales: 403842, - COGS: 246500, - Profit: 157342, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2545`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 763500, - Discounts: 1482, - Sales: 762018, - COGS: 123500, - Profit: 638518, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1814`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 634900, - Discounts: 4889.5, - Sales: 630010.5, - COGS: 363220, - Profit: 266790.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1495`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 186875, - Discounts: 2180, - Sales: 184695, - COGS: 209280, - Profit: 24585, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1154`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 13848, - Discounts: 238.68, - Sales: 13609.32, - COGS: 5967, - Profit: 7642.32, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `4180`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 62700, - Discounts: 48.15, - Sales: 62651.85, - COGS: 3210, - Profit: 59441.85, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1463`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 182875, - Discounts: 1856.25, - Sales: 181018.75, - COGS: 89100, - Profit: 91918.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `215`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 2580, - Discounts: 310.8, - Sales: 2269.2, - COGS: 3885, - Profit: 1615.8, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `4099`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 1229700, - Discounts: 1284, - Sales: 1228416, - COGS: 53500, - Profit: 1174916, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2660`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 18620, - Discounts: 300.3, - Sales: 18319.7, - COGS: 10725, - Profit: 7594.7, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `566`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 198100, - Discounts: 19964, - Sales: 178136, - COGS: 741520, - Profit: 563384, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3255`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 39060, - Discounts: 274.08, - Sales: 38785.92, - COGS: 3426, - Profit: 35359.92, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 15440, - Discounts: 626.4, - Sales: 14813.6, - COGS: 15660, - Profit: 846.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1135`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13620, - Discounts: 165.6, - Sales: 13454.4, - COGS: 2070, - Profit: 11384.4, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3826`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 478250, - Discounts: 4150, - Sales: 474100, - COGS: 199200, - Profit: 274900, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 17895, - Discounts: 708.9, - Sales: 17186.1, - COGS: 23630, - Profit: 6443.9, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2530`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 759000, - Discounts: 5508, - Sales: 753492, - COGS: 229500, - Profit: 523992, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3451`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1035300, - Discounts: 10368, - Sales: 1024932, - COGS: 432000, - Profit: 592932, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3059`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 36708, - Discounts: 274.08, - Sales: 36433.92, - COGS: 3426, - Profit: 33007.92, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3957`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 494625, - Discounts: 1655, - Sales: 492970, - COGS: 79440, - Profit: 413530, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3444`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 41328, - Discounts: 310.8, - Sales: 41017.2, - COGS: 3885, - Profit: 37132.2, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4388`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 548500, - Discounts: 2022.5, - Sales: 546477.5, - COGS: 97080, - Profit: 449397.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2106`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 263250, - Discounts: 5362.5, - Sales: 257887.5, - COGS: 257400, - Profit: 487.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `799`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 9588, - Discounts: 428.4, - Sales: 9159.6, - COGS: 5355, - Profit: 3804.6, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3154`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 946200, - Discounts: 11496, - Sales: 934704, - COGS: 479000, - Profit: 455704, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4108`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1437800, - Discounts: 19964, - Sales: 1417836, - COGS: 741520, - Profit: 676316, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3760`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 470000, - Discounts: 6822.5, - Sales: 463177.5, - COGS: 327480, - Profit: 135697.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `377`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 5655, - Discounts: 577.5, - Sales: 5077.5, - COGS: 19250, - Profit: 14172.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2110`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14770, - Discounts: 281.82, - Sales: 14488.18, - COGS: 10065, - Profit: 4423.18, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2334`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 28008, - Discounts: 253.2, - Sales: 27754.8, - COGS: 3165, - Profit: 24589.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `580`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 6960, - Discounts: 260.16, - Sales: 6699.84, - COGS: 3252, - Profit: 3447.84, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2610`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 52200, - Discounts: 626.4, - Sales: 51573.6, - COGS: 15660, - Profit: 35913.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1598`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 559300, - Discounts: 20762, - Sales: 538538, - COGS: 771160, - Profit: 232622, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1459`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 510650, - Discounts: 20139, - Sales: 490511, - COGS: 748020, - Profit: 257509, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3284`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 410500, - Discounts: 2022.5, - Sales: 408477.5, - COGS: 97080, - Profit: 311397.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1197`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 149625, - Discounts: 5362.5, - Sales: 144262.5, - COGS: 257400, - Profit: 113137.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3774`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 45288, - Discounts: 253.2, - Sales: 45034.8, - COGS: 3165, - Profit: 41869.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2303`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 46060, - Discounts: 217.6, - Sales: 45842.4, - COGS: 5440, - Profit: 40402.4, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2572`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 30864, - Discounts: 260.16, - Sales: 30603.84, - COGS: 3252, - Profit: 27351.84, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `320`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 40000, - Discounts: 1655, - Sales: 38345, - COGS: 79440, - Profit: 41095, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2126`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 637800, - Discounts: 1284, - Sales: 636516, - COGS: 53500, - Profit: 583016, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3275`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1146250, - Discounts: 20139, - Sales: 1126111, - COGS: 748020, - Profit: 378091, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3582`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 447750, - Discounts: 6822.5, - Sales: 440927.5, - COGS: 327480, - Profit: 113447.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `783`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 274050, - Discounts: 1862, - Sales: 272188, - COGS: 69160, - Profit: 203028, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1202`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 420700, - Discounts: 13580, - Sales: 407120, - COGS: 504400, - Profit: 97280, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4056`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1216800, - Discounts: 1554, - Sales: 1215246, - COGS: 64750, - Profit: 1150496, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2144`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 643200, - Discounts: 6606, - Sales: 636594, - COGS: 275250, - Profit: 361344, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3502`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 437750, - Discounts: 5690, - Sales: 432060, - COGS: 273120, - Profit: 158940, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1397`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 488950, - Discounts: 20762, - Sales: 468188, - COGS: 771160, - Profit: 302972, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `679`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 13580, - Discounts: 494.4, - Sales: 13085.6, - COGS: 12360, - Profit: 725.6, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2351`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 47020, - Discounts: 376.4, - Sales: 46643.6, - COGS: 9410, - Profit: 37233.6, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2043`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 612900, - Discounts: 11496, - Sales: 601404, - COGS: 479000, - Profit: 122404, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3565`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 445625, - Discounts: 15913.13, - Sales: 429711.88, - COGS: 509220, - Profit: 79508.13, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1401`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 28020, - Discounts: 1548, - Sales: 26472, - COGS: 25800, - Profit: 672, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2077`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 623100, - Discounts: 6201, - Sales: 616899, - COGS: 172250, - Profit: 444649, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3643`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 43716, - Discounts: 700.92, - Sales: 43015.08, - COGS: 5841, - Profit: 37174.08, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1105`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 13260, - Discounts: 326.88, - Sales: 12933.12, - COGS: 2724, - Profit: 10209.12, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2960`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20720, - Discounts: 411.18, - Sales: 20308.82, - COGS: 9790, - Profit: 10518.82, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1201`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 14412, - Discounts: 684.36, - Sales: 13727.64, - COGS: 5703, - Profit: 8024.64, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2321`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 16247, - Discounts: 114.24, - Sales: 16132.76, - COGS: 2720, - Profit: 13412.76, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3640`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1274000, - Discounts: 18868.5, - Sales: 1255131.5, - COGS: 467220, - Profit: 787911.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3972`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 496500, - Discounts: 4826.25, - Sales: 491673.75, - COGS: 154440, - Profit: 337233.75, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3878`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 484750, - Discounts: 6397.5, - Sales: 478352.5, - COGS: 204720, - Profit: 273632.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2278`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 683400, - Discounts: 21910.5, - Sales: 661489.5, - COGS: 608625, - Profit: 52864.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1075`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 134375, - Discounts: 6652.5, - Sales: 127722.5, - COGS: 212880, - Profit: 85157.5, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4050`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 48600, - Discounts: 684.36, - Sales: 47915.64, - COGS: 5703, - Profit: 42212.64, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3035`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 910500, - Discounts: 6201, - Sales: 904299, - COGS: 172250, - Profit: 732049, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3636`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 454500, - Discounts: 5887.5, - Sales: 448612.5, - COGS: 188400, - Profit: 260212.5, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1379`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 16548, - Discounts: 493.02, - Sales: 16054.98, - COGS: 4108.5, - Profit: 11946.48, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4492`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 561500, - Discounts: 7533.75, - Sales: 553966.25, - COGS: 241080, - Profit: 312886.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `764`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 11460, - Discounts: 875.25, - Sales: 10584.75, - COGS: 19450, - Profit: 8865.25, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1744`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 218000, - Discounts: 4826.25, - Sales: 213173.75, - COGS: 154440, - Profit: 58733.75, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2341`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 292625, - Discounts: 6397.5, - Sales: 286227.5, - COGS: 204720, - Profit: 81507.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3835`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 479375, - Discounts: 7533.75, - Sales: 471841.25, - COGS: 241080, - Profit: 230761.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1161`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 348300, - Discounts: 25596, - Sales: 322704, - COGS: 711000, - Profit: 388296, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `876`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10512, - Discounts: 689.76, - Sales: 9822.24, - COGS: 5748, - Profit: 4074.24, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1705`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 213125, - Discounts: 5887.5, - Sales: 207237.5, - COGS: 188400, - Profit: 18837.5, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1805`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 541500, - Discounts: 16866, - Sales: 524634, - COGS: 468500, - Profit: 56134, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `389`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 136150, - Discounts: 17241, - Sales: 118909, - COGS: 426920, - Profit: 308011, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2745`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 41175, - Discounts: 875.25, - Sales: 40299.75, - COGS: 19450, - Profit: 20849.75, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1459`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 29180, - Discounts: 498.6, - Sales: 28681.4, - COGS: 8310, - Profit: 20371.4, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3938`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 27566, - Discounts: 369.6, - Sales: 27196.4, - COGS: 8800, - Profit: 18396.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4236`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 84720, - Discounts: 2310.3, - Sales: 82409.7, - COGS: 38505, - Profit: 43904.7, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3627`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 43524, - Discounts: 892.44, - Sales: 42631.56, - COGS: 7437, - Profit: 35194.56, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1756`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 26340, - Discounts: 1218.6, - Sales: 25121.4, - COGS: 20310, - Profit: 4811.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `307`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 4605, - Discounts: 1218.6, - Sales: 3386.4, - COGS: 20310, - Profit: 16923.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4489`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 67335, - Discounts: 1356.6, - Sales: 65978.4, - COGS: 22610, - Profit: 43368.4, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2167`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 43340, - Discounts: 588.8, - Sales: 42751.2, - COGS: 7360, - Profit: 35391.2, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1137`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 7959, - Discounts: 798.28, - Sales: 7160.72, - COGS: 14255, - Profit: 7094.28, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1222`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 366600, - Discounts: 24252, - Sales: 342348, - COGS: 505250, - Profit: 162902, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `489`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 171150, - Discounts: 3836, - Sales: 167314, - COGS: 71240, - Profit: 96074, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4133`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 61995, - Discounts: 1180.2, - Sales: 60814.8, - COGS: 19670, - Profit: 41144.8, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2743`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 822900, - Discounts: 22308, - Sales: 800592, - COGS: 464750, - Profit: 335842, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3699`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 25893, - Discounts: 798.28, - Sales: 25094.72, - COGS: 14255, - Profit: 10839.72, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `4460`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1338000, - Discounts: 24252, - Sales: 1313748, - COGS: 505250, - Profit: 808498, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1232`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 154000, - Discounts: 5690, - Sales: 148310, - COGS: 136560, - Profit: 11750, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 18102, - Discounts: 1190.28, - Sales: 16911.72, - COGS: 21255, - Profit: 4343.28, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1332`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 166500, - Discounts: 3975, - Sales: 162525, - COGS: 95400, - Profit: 67125, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4487`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1346100, - Discounts: 16974, - Sales: 1329126, - COGS: 353625, - Profit: 975501, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3862`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1158600, - Discounts: 35016, - Sales: 1123584, - COGS: 729500, - Profit: 394084, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1765`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 617750, - Discounts: 48300, - Sales: 569450, - COGS: 897000, - Profit: 327550, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3533`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 441625, - Discounts: 14940, - Sales: 426685, - COGS: 358560, - Profit: 68125, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2016`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 30240, - Discounts: 130.8, - Sales: 30109.2, - COGS: 2180, - Profit: 27929.2, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2938`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 58760, - Discounts: 1659.2, - Sales: 57100.8, - COGS: 20740, - Profit: 36360.8, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3352`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67040, - Discounts: 844.8, - Sales: 66195.2, - COGS: 10560, - Profit: 55635.2, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4409`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 66135, - Discounts: 402.6, - Sales: 65732.4, - COGS: 6710, - Profit: 59022.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3323`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 49845, - Discounts: 908.4, - Sales: 48936.6, - COGS: 15140, - Profit: 33796.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2430`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 850500, - Discounts: 3836, - Sales: 846664, - COGS: 71240, - Profit: 775424, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `535`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 66875, - Discounts: 5690, - Sales: 61185, - COGS: 136560, - Profit: 75375, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1523`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 18276, - Discounts: 703.2, - Sales: 17572.8, - COGS: 4395, - Profit: 13177.8, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3631`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 72620, - Discounts: 2116.8, - Sales: 70503.2, - COGS: 26460, - Profit: 44043.2, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1782`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 623700, - Discounts: 30478, - Sales: 593222, - COGS: 566020, - Profit: 27202, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `347`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 4164, - Discounts: 415.68, - Sales: 3748.32, - COGS: 2598, - Profit: 1150.32, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `4147`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1451450, - Discounts: 4886, - Sales: 1446564, - COGS: 90740, - Profit: 1355824, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3509`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1228150, - Discounts: 30478, - Sales: 1197672, - COGS: 566020, - Profit: 631652, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2774`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 41610, - Discounts: 908.4, - Sales: 40701.6, - COGS: 15140, - Profit: 25561.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2943`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1030050, - Discounts: 26110, - Sales: 1003940, - COGS: 484900, - Profit: 519040, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `4037`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 504625, - Discounts: 5370, - Sales: 499255, - COGS: 128880, - Profit: 370375, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4146`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1451100, - Discounts: 26698, - Sales: 1424402, - COGS: 495820, - Profit: 928582, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `4123`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 61845, - Discounts: 402.6, - Sales: 61442.4, - COGS: 6710, - Profit: 54732.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1337`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 467950, - Discounts: 24892, - Sales: 443058, - COGS: 462280, - Profit: 19222, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `599`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 4193, - Discounts: 405.65, - Sales: 3787.35, - COGS: 5795, - Profit: 2007.65, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `725`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 5075, - Discounts: 480.2, - Sales: 4594.8, - COGS: 6860, - Profit: 2265.2, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `477`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 3339, - Discounts: 822.15, - Sales: 2516.85, - COGS: 11745, - Profit: 9228.15, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2325`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 16275, - Discounts: 941.15, - Sales: 15333.85, - COGS: 13445, - Profit: 1888.85, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `675`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 8100, - Discounts: 1458.6, - Sales: 6641.4, - COGS: 7293, - Profit: 651.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2990`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 35880, - Discounts: 1458.6, - Sales: 34421.4, - COGS: 7293, - Profit: 27128.4, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1072`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 7504, - Discounts: 941.15, - Sales: 6562.85, - COGS: 13445, - Profit: 6882.15, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1048`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 7336, - Discounts: 589.05, - Sales: 6746.95, - COGS: 8415, - Profit: 1668.05, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `469`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 5628, - Discounts: 673.8, - Sales: 4954.2, - COGS: 3369, - Profit: 1585.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `804`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 5628, - Discounts: 405.65, - Sales: 5222.35, - COGS: 5795, - Profit: 572.65, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4240`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50880, - Discounts: 1119, - Sales: 49761, - COGS: 5595, - Profit: 44166, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1976`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 23712, - Discounts: 669.6, - Sales: 23042.4, - COGS: 3348, - Profit: 19694.4, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1984`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39680, - Discounts: 1563, - Sales: 38117, - COGS: 15630, - Profit: 22487, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `480`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 144000, - Discounts: 14865, - Sales: 129135, - COGS: 247750, - Profit: 118615, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `3551`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 24857, - Discounts: 355.6, - Sales: 24501.4, - COGS: 5080, - Profit: 19421.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1205`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 18075, - Discounts: 2093.25, - Sales: 15981.75, - COGS: 27910, - Profit: 11928.25, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2480`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 17360, - Discounts: 199.5, - Sales: 17160.5, - COGS: 2850, - Profit: 14310.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2926`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 20482, - Discounts: 870.45, - Sales: 19611.55, - COGS: 12435, - Profit: 7176.55, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3210`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1123500, - Discounts: 24228.75, - Sales: 1099271.25, - COGS: 359970, - Profit: 739301.25, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3221`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 402625, - Discounts: 22668.75, - Sales: 379956.25, - COGS: 435240, - Profit: 55283.75, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2389`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 836150, - Discounts: 12600, - Sales: 823550, - COGS: 187200, - Profit: 636350, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1127`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13524, - Discounts: 1405.2, - Sales: 12118.8, - COGS: 7026, - Profit: 5092.8, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `319`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 95700, - Discounts: 16500, - Sales: 79200, - COGS: 275000, - Profit: 195800, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1610`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 32200, - Discounts: 1303, - Sales: 30897, - COGS: 13030, - Profit: 17867, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4100`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 512500, - Discounts: 18700, - Sales: 493800, - COGS: 359040, - Profit: 134760, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1012`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 126500, - Discounts: 14906.25, - Sales: 111593.75, - COGS: 286200, - Profit: 174606.25, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3337`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1001100, - Discounts: 24105, - Sales: 976995, - COGS: 401750, - Profit: 575245, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3955`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 27685, - Discounts: 814.45, - Sales: 26870.55, - COGS: 11635, - Profit: 15235.55, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4347`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1304100, - Discounts: 14865, - Sales: 1289235, - COGS: 247750, - Profit: 1041485, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1548`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 541800, - Discounts: 10535, - Sales: 531265, - COGS: 156520, - Profit: 374745, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2153`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 32295, - Discounts: 1965, - Sales: 30330, - COGS: 26200, - Profit: 4130, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3789`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1326150, - Discounts: 21490, - Sales: 1304660, - COGS: 319280, - Profit: 985380, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4364`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 87280, - Discounts: 1389, - Sales: 85891, - COGS: 13890, - Profit: 72001, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4126`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 515750, - Discounts: 5381.25, - Sales: 510368.75, - COGS: 103320, - Profit: 407048.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1343`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 167875, - Discounts: 4400, - Sales: 163475, - COGS: 84480, - Profit: 78995, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `245`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 4900, - Discounts: 1802, - Sales: 3098, - COGS: 18020, - Profit: 14922, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3376`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67520, - Discounts: 2663, - Sales: 64857, - COGS: 26630, - Profit: 38227, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1401`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 9807, - Discounts: 747.6, - Sales: 9059.4, - COGS: 10680, - Profit: 1620.6, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3483`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 52245, - Discounts: 1587, - Sales: 50658, - COGS: 21160, - Profit: 29498, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2244`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 33660, - Discounts: 416.25, - Sales: 33243.75, - COGS: 5550, - Profit: 27693.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1360`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 20400, - Discounts: 2145.75, - Sales: 18254.25, - COGS: 28610, - Profit: 10355.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `279`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 34875, - Discounts: 5043.75, - Sales: 29831.25, - COGS: 96840, - Profit: 67008.75, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2521`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 882350, - Discounts: 10535, - Sales: 871815, - COGS: 156520, - Profit: 715295, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2433`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 48660, - Discounts: 2832, - Sales: 45828, - COGS: 28320, - Profit: 17508, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1738`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 34760, - Discounts: 1579, - Sales: 33181, - COGS: 15790, - Profit: 17391, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1106`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 138250, - Discounts: 5381.25, - Sales: 132868.75, - COGS: 103320, - Profit: 29548.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3379`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 422375, - Discounts: 4400, - Sales: 417975, - COGS: 84480, - Profit: 333495, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1221`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 24420, - Discounts: 1033, - Sales: 23387, - COGS: 10330, - Profit: 13057, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `213`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 63900, - Discounts: 18750, - Sales: 45150, - COGS: 312500, - Profit: 267350, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3335`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 66700, - Discounts: 1389, - Sales: 65311, - COGS: 13890, - Profit: 51421, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1260`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 25200, - Discounts: 1265, - Sales: 23935, - COGS: 12650, - Profit: 11285, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3034`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 60680, - Discounts: 2297, - Sales: 58383, - COGS: 22970, - Profit: 35413, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2929`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 58580, - Discounts: 2663, - Sales: 55917, - COGS: 26630, - Profit: 29287, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2389`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 16723, - Discounts: 199.5, - Sales: 16523.5, - COGS: 2850, - Profit: 13673.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3086`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 21602, - Discounts: 870.45, - Sales: 20731.55, - COGS: 12435, - Profit: 8296.55, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `745`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 260750, - Discounts: 23625, - Sales: 237125, - COGS: 351000, - Profit: 113875, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1266`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 443100, - Discounts: 9660, - Sales: 433440, - COGS: 143520, - Profit: 289920, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3790`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1326500, - Discounts: 21490, - Sales: 1305010, - COGS: 319280, - Profit: 985730, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4287`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1286100, - Discounts: 18750, - Sales: 1267350, - COGS: 312500, - Profit: 954850, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 47895, - Discounts: 3420.9, - Sales: 44474.1, - COGS: 38010, - Profit: 6464.1, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1967`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39340, - Discounts: 1341, - Sales: 37999, - COGS: 11175, - Profit: 26824, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `631`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 9465, - Discounts: 2559.6, - Sales: 6905.4, - COGS: 28440, - Profit: 21534.6, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3469`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 41628, - Discounts: 404.64, - Sales: 41223.36, - COGS: 1686, - Profit: 39537.36, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `570`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 6840, - Discounts: 1655.28, - Sales: 5184.72, - COGS: 6897, - Profit: 1712.28, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3215`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 48225, - Discounts: 1827, - Sales: 46398, - COGS: 20300, - Profit: 26098, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3754`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 26278, - Discounts: 110.46, - Sales: 26167.54, - COGS: 1315, - Profit: 24852.54, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2187`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 273375, - Discounts: 6652.5, - Sales: 266722.5, - COGS: 106440, - Profit: 160282.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1959`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 685650, - Discounts: 20580, - Sales: 665070, - COGS: 254800, - Profit: 410270, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2181`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 763350, - Discounts: 30660, - Sales: 732690, - COGS: 379600, - Profit: 353090, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3559`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 24913, - Discounts: 589.26, - Sales: 24323.74, - COGS: 7015, - Profit: 17308.74, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2205`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 26460, - Discounts: 1960.56, - Sales: 24499.44, - COGS: 8169, - Profit: 16330.44, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1890`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 661500, - Discounts: 31416, - Sales: 630084, - COGS: 388960, - Profit: 241124, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1296`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 15552, - Discounts: 1655.28, - Sales: 13896.72, - COGS: 6897, - Profit: 6999.72, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `775`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 271250, - Discounts: 15267, - Sales: 255983, - COGS: 189020, - Profit: 66963, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2417`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 302125, - Discounts: 7140, - Sales: 294985, - COGS: 114240, - Profit: 180745, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1158`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 144750, - Discounts: 20662.5, - Sales: 124087.5, - COGS: 330600, - Profit: 206512.5, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `803`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 12045, - Discounts: 1377, - Sales: 10668, - COGS: 15300, - Profit: 4632, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3705`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1296750, - Discounts: 31416, - Sales: 1265334, - COGS: 388960, - Profit: 876374, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `589`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 4123, - Discounts: 629.16, - Sales: 3493.84, - COGS: 7490, - Profit: 3996.16, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3797`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1139100, - Discounts: 21978, - Sales: 1117122, - COGS: 305250, - Profit: 811872, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1321`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 462350, - Discounts: 43596, - Sales: 418754, - COGS: 539760, - Profit: 121006, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3999`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 59985, - Discounts: 2559.6, - Sales: 57425.4, - COGS: 28440, - Profit: 28985.4, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4256`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 29792, - Discounts: 629.16, - Sales: 29162.84, - COGS: 7490, - Profit: 21672.84, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1643`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 492900, - Discounts: 21978, - Sales: 470922, - COGS: 305250, - Profit: 165672, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1912`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 38240, - Discounts: 1347.6, - Sales: 36892.4, - COGS: 11230, - Profit: 25662.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1610`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 483000, - Discounts: 43848, - Sales: 439152, - COGS: 609000, - Profit: 169848, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2160`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 270000, - Discounts: 14906.25, - Sales: 255093.75, - COGS: 238500, - Profit: 16593.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `466`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 163100, - Discounts: 35259, - Sales: 127841, - COGS: 436540, - Profit: 308699, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `328`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 114800, - Discounts: 15267, - Sales: 99533, - COGS: 189020, - Profit: 89487, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `4099`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 28693, - Discounts: 589.26, - Sales: 28103.74, - COGS: 7015, - Profit: 21088.74, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `990`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 346500, - Discounts: 43596, - Sales: 302904, - COGS: 539760, - Profit: 236856, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1433`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 28660, - Discounts: 2108.4, - Sales: 26551.6, - COGS: 17570, - Profit: 8981.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1478`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 22170, - Discounts: 1978.2, - Sales: 20191.8, - COGS: 21980, - Profit: 1788.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3798`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 56970, - Discounts: 1568.7, - Sales: 55401.3, - COGS: 17430, - Profit: 37971.3, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `447`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 6705, - Discounts: 1037.7, - Sales: 5667.3, - COGS: 11530, - Profit: 5862.7, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1711`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34220, - Discounts: 2108.4, - Sales: 32111.6, - COGS: 17570, - Profit: 14541.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `745`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 14900, - Discounts: 1201.2, - Sales: 13698.8, - COGS: 10010, - Profit: 3688.8, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1732`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 12124, - Discounts: 559.86, - Sales: 11564.14, - COGS: 6665, - Profit: 4899.14, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1759`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 26385, - Discounts: 1037.7, - Sales: 25347.3, - COGS: 11530, - Profit: 13817.3, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `338`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 4056, - Discounts: 610.68, - Sales: 3445.32, - COGS: 2181, - Profit: 1264.32, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3911`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 46932, - Discounts: 1582.56, - Sales: 45349.44, - COGS: 5652, - Profit: 39697.44, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3691`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 73820, - Discounts: 2567.6, - Sales: 71252.4, - COGS: 18340, - Profit: 52912.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `4473`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 53676, - Discounts: 1965.6, - Sales: 51710.4, - COGS: 7020, - Profit: 44690.4, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `383`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 4596, - Discounts: 1967.28, - Sales: 2628.72, - COGS: 7026, - Profit: 4397.28, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3105`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 21735, - Discounts: 505.19, - Sales: 21229.81, - COGS: 5155, - Profit: 16074.81, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1062`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 15930, - Discounts: 1325.1, - Sales: 14604.9, - COGS: 12620, - Profit: 1984.9, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4083`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 28581, - Discounts: 556.15, - Sales: 28024.85, - COGS: 5675, - Profit: 22349.85, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3974`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 27818, - Discounts: 268.03, - Sales: 27549.97, - COGS: 2735, - Profit: 24814.97, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3723`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 26061, - Discounts: 775.18, - Sales: 25285.82, - COGS: 7910, - Profit: 17375.82, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2435`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 29220, - Discounts: 1460.34, - Sales: 27759.66, - COGS: 5215.5, - Profit: 22544.16, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1678`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 20136, - Discounts: 1860.6, - Sales: 18275.4, - COGS: 6645, - Profit: 11630.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1763`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 12341, - Discounts: 775.18, - Sales: 11565.82, - COGS: 7910, - Profit: 3655.82, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4473`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 31311, - Discounts: 556.15, - Sales: 30754.85, - COGS: 5675, - Profit: 25079.85, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1246`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 436100, - Discounts: 43144.5, - Sales: 392955.5, - COGS: 457860, - Profit: 64904.5, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1615`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 484500, - Discounts: 9408, - Sales: 475092, - COGS: 112000, - Profit: 363092, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `749`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 224700, - Discounts: 45801, - Sales: 178899, - COGS: 545250, - Profit: 366351, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1318`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 26360, - Discounts: 2766.4, - Sales: 23593.6, - COGS: 19760, - Profit: 3833.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2882`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 864600, - Discounts: 45801, - Sales: 818799, - COGS: 545250, - Profit: 273549, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3039`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 379875, - Discounts: 21875, - Sales: 358000, - COGS: 300000, - Profit: 58000, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2484`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 745200, - Discounts: 35742, - Sales: 709458, - COGS: 425500, - Profit: 283958, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3169`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 950700, - Discounts: 9408, - Sales: 941292, - COGS: 112000, - Profit: 829292, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 510000, - Discounts: 30738.75, - Sales: 479261.25, - COGS: 421560, - Profit: 57701.25, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3943`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 59145, - Discounts: 2206.05, - Sales: 56938.95, - COGS: 21010, - Profit: 35928.95, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `784`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 11760, - Discounts: 3077.55, - Sales: 8682.45, - COGS: 29310, - Profit: 20627.55, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `253`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 5060, - Discounts: 2149, - Sales: 2911, - COGS: 15350, - Profit: 12439, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1316`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 394800, - Discounts: 23583, - Sales: 371217, - COGS: 280750, - Profit: 90467, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `808`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 242400, - Discounts: 29484, - Sales: 212916, - COGS: 351000, - Profit: 138084, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3295`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 39540, - Discounts: 2320.92, - Sales: 37219.08, - COGS: 8289, - Profit: 28930.08, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `520`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 3640, - Discounts: 1041.25, - Sales: 2598.75, - COGS: 10625, - Profit: 8026.25, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `799`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 239700, - Discounts: 34839, - Sales: 204861, - COGS: 414750, - Profit: 209889, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3942`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 78840, - Discounts: 852.6, - Sales: 77987.4, - COGS: 6090, - Profit: 71897.4, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2498`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 312250, - Discounts: 18261.25, - Sales: 293988.75, - COGS: 250440, - Profit: 43548.75, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2517`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 50340, - Discounts: 2766.4, - Sales: 47573.6, - COGS: 19760, - Profit: 27813.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3182`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 63640, - Discounts: 1989.4, - Sales: 61650.6, - COGS: 14210, - Profit: 47440.6, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1145`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 343500, - Discounts: 28812, - Sales: 314688, - COGS: 343000, - Profit: 28312, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `895`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 17900, - Discounts: 823.2, - Sales: 17076.8, - COGS: 5880, - Profit: 11196.8, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3814`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 45768, - Discounts: 2725.38, - Sales: 43042.62, - COGS: 9733.5, - Profit: 33309.12, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1188`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 356400, - Discounts: 20139, - Sales: 336261, - COGS: 239750, - Profit: 96511, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2233`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 669900, - Discounts: 57687, - Sales: 612213, - COGS: 686750, - Profit: 74537, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `421`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 52625, - Discounts: 14393.75, - Sales: 38231.25, - COGS: 197400, - Profit: 159168.75, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `269`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 94150, - Discounts: 70462, - Sales: 23688, - COGS: 747760, - Profit: 724072, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3766`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 470750, - Discounts: 8697.5, - Sales: 462052.5, - COGS: 119280, - Profit: 342772.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `952`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19040, - Discounts: 1565.2, - Sales: 17474.8, - COGS: 11180, - Profit: 6294.8, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2964`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 889200, - Discounts: 28812, - Sales: 860388, - COGS: 343000, - Profit: 517388, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1505`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 10535, - Discounts: 273.28, - Sales: 10261.72, - COGS: 2440, - Profit: 7821.72, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1678`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 33560, - Discounts: 2051.2, - Sales: 31508.8, - COGS: 12820, - Profit: 18688.8, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4249`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 29743, - Discounts: 143.92, - Sales: 29599.08, - COGS: 1285, - Profit: 28314.08, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1677`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 33540, - Discounts: 2051.2, - Sales: 31488.8, - COGS: 12820, - Profit: 18668.8, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3051`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 381375, - Discounts: 15400, - Sales: 365975, - COGS: 184800, - Profit: 181175, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3372`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 50580, - Discounts: 588, - Sales: 49992, - COGS: 4900, - Profit: 45092, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1686`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 590100, - Discounts: 38136, - Sales: 551964, - COGS: 354120, - Profit: 197844, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3086`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 46290, - Discounts: 3001.2, - Sales: 43288.8, - COGS: 25010, - Profit: 18278.8, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4150`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 83000, - Discounts: 1132.8, - Sales: 81867.2, - COGS: 7080, - Profit: 74787.2, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3027`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 60540, - Discounts: 1032, - Sales: 59508, - COGS: 6450, - Profit: 53058, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `4359`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1307700, - Discounts: 37488, - Sales: 1270212, - COGS: 390500, - Profit: 879712, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3628`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1088400, - Discounts: 30792, - Sales: 1057608, - COGS: 320750, - Profit: 736858, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1589`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 23835, - Discounts: 853.2, - Sales: 22981.8, - COGS: 7110, - Profit: 15871.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2679`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 334875, - Discounts: 11140, - Sales: 323735, - COGS: 133680, - Profit: 190055, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3401`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 23807, - Discounts: 705.04, - Sales: 23101.96, - COGS: 6295, - Profit: 16806.96, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2815`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19705, - Discounts: 613.2, - Sales: 19091.8, - COGS: 5475, - Profit: 13616.8, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2964`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 59280, - Discounts: 2185.6, - Sales: 57094.4, - COGS: 13660, - Profit: 43434.4, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4173`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1251900, - Discounts: 59040, - Sales: 1192860, - COGS: 615000, - Profit: 577860, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1157`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 8099, - Discounts: 379.68, - Sales: 7719.32, - COGS: 3390, - Profit: 4329.32, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3065`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 21455, - Discounts: 894.88, - Sales: 20560.12, - COGS: 7990, - Profit: 12570.12, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1962`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 13734, - Discounts: 1349.04, - Sales: 12384.96, - COGS: 12045, - Profit: 339.96, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 81600, - Discounts: 3094.4, - Sales: 78505.6, - COGS: 19340, - Profit: 59165.6, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1713`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34260, - Discounts: 4788.8, - Sales: 29471.2, - COGS: 29930, - Profit: 458.8, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2795`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 978250, - Discounts: 60088, - Sales: 918162, - COGS: 557960, - Profit: 360202, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4082`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 28574, - Discounts: 1089.76, - Sales: 27484.24, - COGS: 9730, - Profit: 17754.24, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1691`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 591850, - Discounts: 38136, - Sales: 553714, - COGS: 354120, - Profit: 199594, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2305`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 27660, - Discounts: 574.08, - Sales: 27085.92, - COGS: 1794, - Profit: 25291.92, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3401`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 23807, - Discounts: 1627.92, - Sales: 22179.08, - COGS: 14535, - Profit: 7644.08, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2288`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 16016, - Discounts: 1309.28, - Sales: 14706.72, - COGS: 11690, - Profit: 3016.72, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2399`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 719700, - Discounts: 9264, - Sales: 710436, - COGS: 96500, - Profit: 613936, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4086`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1225800, - Discounts: 15240, - Sales: 1210560, - COGS: 158750, - Profit: 1051810, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2651`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 927850, - Discounts: 16086, - Sales: 911764, - COGS: 149370, - Profit: 762394, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3971`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27797, - Discounts: 1309.28, - Sales: 26487.72, - COGS: 11690, - Profit: 14797.72, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2512`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 879200, - Discounts: 10668, - Sales: 868532, - COGS: 99060, - Profit: 769472, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2745`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 960750, - Discounts: 11816, - Sales: 948934, - COGS: 109720, - Profit: 839214, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1903`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 570900, - Discounts: 51216, - Sales: 519684, - COGS: 533500, - Profit: 13816, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `647`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 194100, - Discounts: 19392, - Sales: 174708, - COGS: 202000, - Profit: 27292, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2914`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 58280, - Discounts: 1132.8, - Sales: 57147.2, - COGS: 7080, - Profit: 50067.2, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1889`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 13223, - Discounts: 1627.92, - Sales: 11595.08, - COGS: 14535, - Profit: 2939.92, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1466`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 29320, - Discounts: 2185.6, - Sales: 27134.4, - COGS: 13660, - Profit: 13474.4, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `887`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 266100, - Discounts: 59040, - Sales: 207060, - COGS: 615000, - Profit: 407940, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `395`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 7900, - Discounts: 2432, - Sales: 5468, - COGS: 15200, - Profit: 9732, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1693`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 25395, - Discounts: 853.2, - Sales: 24541.8, - COGS: 7110, - Profit: 17431.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2459`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 29508, - Discounts: 1320, - Sales: 28188, - COGS: 4125, - Profit: 24063, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2649`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 794700, - Discounts: 15240, - Sales: 779460, - COGS: 158750, - Profit: 620710, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3608`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 72160, - Discounts: 698.4, - Sales: 71461.6, - COGS: 4365, - Profit: 67096.6, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1073`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 321900, - Discounts: 29538, - Sales: 292362, - COGS: 273500, - Profit: 18862, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1754`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 21048, - Discounts: 396.36, - Sales: 20651.64, - COGS: 1101, - Profit: 19550.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2167`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 650100, - Discounts: 102667.5, - Sales: 547432.5, - COGS: 950625, - Profit: 403192.5, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1319`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 461650, - Discounts: 52479, - Sales: 409171, - COGS: 433160, - Profit: 23989, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1679`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 503700, - Discounts: 8694, - Sales: 495006, - COGS: 80500, - Profit: 414506, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1252`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 15024, - Discounts: 2506.68, - Sales: 12517.32, - COGS: 6963, - Profit: 5554.32, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3493`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 436625, - Discounts: 20891.25, - Sales: 415733.75, - COGS: 222840, - Profit: 192893.75, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1697`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 11879, - Discounts: 1014.93, - Sales: 10864.07, - COGS: 8055, - Profit: 2809.07, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1156`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 144500, - Discounts: 31466.25, - Sales: 113033.75, - COGS: 335640, - Profit: 222606.25, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `726`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 217800, - Discounts: 9018, - Sales: 208782, - COGS: 83500, - Profit: 125282, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1153`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 345900, - Discounts: 69255, - Sales: 276645, - COGS: 641250, - Profit: 364605, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2720`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 952000, - Discounts: 76135.5, - Sales: 875864.5, - COGS: 628420, - Profit: 247444.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3658`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 54870, - Discounts: 4961.25, - Sales: 49908.75, - COGS: 36750, - Profit: 13158.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2950`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 885000, - Discounts: 29538, - Sales: 855462, - COGS: 273500, - Profit: 581962, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1821`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27315, - Discounts: 1656.45, - Sales: 25658.55, - COGS: 12270, - Profit: 13388.55, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4174`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 50088, - Discounts: 396.36, - Sales: 49691.64, - COGS: 1101, - Profit: 48590.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1127`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 338100, - Discounts: 35748, - Sales: 302352, - COGS: 331000, - Profit: 28648, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2209`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 26508, - Discounts: 1917, - Sales: 24591, - COGS: 5325, - Profit: 19266, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `862`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 107750, - Discounts: 31466.25, - Sales: 76283.75, - COGS: 335640, - Profit: 259356.25, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3805`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 57075, - Discounts: 330.75, - Sales: 56744.25, - COGS: 2450, - Profit: 54294.25, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1415`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 424500, - Discounts: 102424.5, - Sales: 322075.5, - COGS: 948375, - Profit: 626299.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2231`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 780850, - Discounts: 41170.5, - Sales: 739679.5, - COGS: 339820, - Profit: 399859.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3649`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 456125, - Discounts: 6378.75, - Sales: 449746.25, - COGS: 68040, - Profit: 381706.25, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2948`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 368500, - Discounts: 23737.5, - Sales: 344762.5, - COGS: 253200, - Profit: 91562.5, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3395`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1188250, - Discounts: 39973.5, - Sales: 1148276.5, - COGS: 329940, - Profit: 818336.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2650`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 31800, - Discounts: 2112.48, - Sales: 29687.52, - COGS: 5868, - Profit: 23819.52, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `585`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 175500, - Discounts: 71793, - Sales: 103707, - COGS: 664750, - Profit: 561043, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1316`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 460600, - Discounts: 42572.25, - Sales: 418027.75, - COGS: 351390, - Profit: 66637.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `4459`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 53508, - Discounts: 950.4, - Sales: 52557.6, - COGS: 2640, - Profit: 49917.6, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2711`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 813300, - Discounts: 50409, - Sales: 762891, - COGS: 466750, - Profit: 296141, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2621`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 31452, - Discounts: 2412.72, - Sales: 29039.28, - COGS: 6702, - Profit: 22337.28, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3613`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 54195, - Discounts: 1656.45, - Sales: 52538.55, - COGS: 12270, - Profit: 40268.55, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1847`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 230875, - Discounts: 9866.25, - Sales: 221008.75, - COGS: 105240, - Profit: 115768.75, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2996`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1048600, - Discounts: 65236.5, - Sales: 983363.5, - COGS: 538460, - Profit: 444903.5, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2838`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 993300, - Discounts: 39973.5, - Sales: 953326.5, - COGS: 329940, - Profit: 623386.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1302`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 19530, - Discounts: 1309.5, - Sales: 18220.5, - COGS: 9700, - Profit: 8520.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1536`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 30720, - Discounts: 3049.2, - Sales: 27670.8, - COGS: 16940, - Profit: 10730.8, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1291`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 25820, - Discounts: 1193.4, - Sales: 24626.6, - COGS: 6630, - Profit: 17996.6, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1213`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 8491, - Discounts: 515.97, - Sales: 7975.03, - COGS: 4095, - Profit: 3880.03, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2370`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 28440, - Discounts: 1706.4, - Sales: 26733.6, - COGS: 4740, - Profit: 21993.6, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1979`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 13853, - Discounts: 328.23, - Sales: 13524.77, - COGS: 2605, - Profit: 10919.77, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2879`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 57580, - Discounts: 1751.4, - Sales: 55828.6, - COGS: 9730, - Profit: 46098.6, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1707`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34140, - Discounts: 1868.4, - Sales: 32271.6, - COGS: 10380, - Profit: 21891.6, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2933`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 20531, - Discounts: 226.8, - Sales: 20304.2, - COGS: 1800, - Profit: 18504.2, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1014`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 12168, - Discounts: 2124.36, - Sales: 10043.64, - COGS: 5901, - Profit: 4142.64, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `693`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 10395, - Discounts: 3547.8, - Sales: 6847.2, - COGS: 26280, - Profit: 19432.8, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3741`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26187, - Discounts: 226.8, - Sales: 25960.2, - COGS: 1800, - Profit: 24160.2, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3116`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 62320, - Discounts: 4827.6, - Sales: 57492.4, - COGS: 26820, - Profit: 30672.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `3995`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27965, - Discounts: 328.23, - Sales: 27636.77, - COGS: 2605, - Profit: 25031.77, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `953`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19060, - Discounts: 1868.4, - Sales: 17191.6, - COGS: 10380, - Profit: 6811.6, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2530`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 37950, - Discounts: 2201.18, - Sales: 35748.82, - COGS: 16305, - Profit: 19443.82, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2565`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 30780, - Discounts: 330.48, - Sales: 30449.52, - COGS: 918, - Profit: 29531.52, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `4297`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 51564, - Discounts: 463.2, - Sales: 51100.8, - COGS: 1158, - Profit: 49942.8, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2871`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20097, - Discounts: 1629.6, - Sales: 18467.4, - COGS: 11640, - Profit: 6827.4, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3537`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 42444, - Discounts: 463.2, - Sales: 41980.8, - COGS: 1158, - Profit: 40822.8, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1598`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 199750, - Discounts: 43068.75, - Sales: 156681.25, - COGS: 413460, - Profit: 256778.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2616`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 327000, - Discounts: 18525, - Sales: 308475, - COGS: 177840, - Profit: 130635, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2836`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 992600, - Discounts: 80955, - Sales: 911645, - COGS: 601380, - Profit: 310265, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `4023`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 502875, - Discounts: 22550, - Sales: 480325, - COGS: 216480, - Profit: 263845, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3994`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 59910, - Discounts: 3108, - Sales: 56802, - COGS: 20720, - Profit: 36082, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2928`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 58560, - Discounts: 3908, - Sales: 54652, - COGS: 19540, - Profit: 35112, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2912`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 873600, - Discounts: 17730, - Sales: 855870, - COGS: 147750, - Profit: 708120, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3671`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 55065, - Discounts: 3250.5, - Sales: 51814.5, - COGS: 21670, - Profit: 30144.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2778`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 55560, - Discounts: 482, - Sales: 55078, - COGS: 2410, - Profit: 52668, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `405`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 6075, - Discounts: 1021.5, - Sales: 5053.5, - COGS: 6810, - Profit: 1756.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2013`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 30195, - Discounts: 765, - Sales: 29430, - COGS: 5100, - Profit: 24330, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2634`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 39510, - Discounts: 1185, - Sales: 38325, - COGS: 7900, - Profit: 30425, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4166`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1458100, - Discounts: 22365, - Sales: 1435735, - COGS: 166140, - Profit: 1269595, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `355`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 44375, - Discounts: 19950, - Sales: 24425, - COGS: 191520, - Profit: 167095, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2382`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 714600, - Discounts: 68820, - Sales: 645780, - COGS: 573500, - Profit: 72280, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `4170`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 83400, - Discounts: 482, - Sales: 82918, - COGS: 2410, - Profit: 80508, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `892`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 6244, - Discounts: 1865.5, - Sales: 4378.5, - COGS: 13325, - Profit: 8946.5, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2200`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 275000, - Discounts: 23950, - Sales: 251050, - COGS: 229920, - Profit: 21130, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3389`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1016700, - Discounts: 25590, - Sales: 991110, - COGS: 213250, - Profit: 777860, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2990`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 373750, - Discounts: 4262.5, - Sales: 369487.5, - COGS: 40920, - Profit: 328567.5, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4013`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 60195, - Discounts: 961.5, - Sales: 59233.5, - COGS: 6410, - Profit: 52823.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `739`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 258650, - Discounts: 98245, - Sales: 160405, - COGS: 729820, - Profit: 569415, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1989`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 596700, - Discounts: 12960, - Sales: 583740, - COGS: 108000, - Profit: 475740, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2991`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 897300, - Discounts: 68820, - Sales: 828480, - COGS: 573500, - Profit: 254980, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `4237`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 63555, - Discounts: 3250.5, - Sales: 60304.5, - COGS: 21670, - Profit: 38634.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1442`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 180250, - Discounts: 31612.5, - Sales: 148637.5, - COGS: 303480, - Profit: 154842.5, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2712`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 949200, - Discounts: 65450, - Sales: 883750, - COGS: 486200, - Profit: 397550, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1508`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 188500, - Discounts: 7237.5, - Sales: 181262.5, - COGS: 69480, - Profit: 111782.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4245`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1485750, - Discounts: 78400, - Sales: 1407350, - COGS: 582400, - Profit: 824950, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2630`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 789000, - Discounts: 89790, - Sales: 699210, - COGS: 748250, - Profit: 49040, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1182`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 14184, - Discounts: 4224.6, - Sales: 9959.4, - COGS: 10561.5, - Profit: 602.1, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1221`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 24420, - Discounts: 4078, - Sales: 20342, - COGS: 20390, - Profit: 48, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `963`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 11556, - Discounts: 3088.8, - Sales: 8467.2, - COGS: 7722, - Profit: 745.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3243`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1135050, - Discounts: 24745, - Sales: 1110305, - COGS: 183820, - Profit: 926485, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1120`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 16800, - Discounts: 3108, - Sales: 13692, - COGS: 20720, - Profit: 7028, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1174`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 352200, - Discounts: 25590, - Sales: 326610, - COGS: 213250, - Profit: 113360, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2541`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 30492, - Discounts: 1581.36, - Sales: 28910.64, - COGS: 3594, - Profit: 25316.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3246`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 22722, - Discounts: 1949.64, - Sales: 20772.36, - COGS: 12660, - Profit: 8112.36, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1531`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 18372, - Discounts: 1581.36, - Sales: 16790.64, - COGS: 3594, - Profit: 13196.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2526`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 37890, - Discounts: 633.6, - Sales: 37256.4, - COGS: 3840, - Profit: 33416.4, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1136`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 13632, - Discounts: 623.04, - Sales: 13008.96, - COGS: 1416, - Profit: 11592.96, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1983`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 13881, - Discounts: 1215.83, - Sales: 12665.17, - COGS: 7895, - Profit: 4770.17, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `3259`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 39108, - Discounts: 1326.6, - Sales: 37781.4, - COGS: 3015, - Profit: 34766.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `3267`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 49005, - Discounts: 5279.17, - Sales: 43725.82, - COGS: 31995, - Profit: 11730.82, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `2454`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 29448, - Discounts: 623.04, - Sales: 28824.96, - COGS: 1416, - Profit: 27408.96, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `2643`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 31716, - Discounts: 2556.84, - Sales: 29159.16, - COGS: 5811, - Profit: 23348.16, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `383`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 134050, - Discounts: 30492, - Sales: 103558, - COGS: 205920, - Profit: 102362, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2801`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 840300, - Discounts: 92763, - Sales: 747537, - COGS: 702750, - Profit: 44787, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1667`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 208375, - Discounts: 33563.75, - Sales: 174811.25, - COGS: 292920, - Profit: 118108.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3539`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 53085, - Discounts: 2574, - Sales: 50511, - COGS: 15600, - Profit: 34911, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `4226`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 29582, - Discounts: 2083.62, - Sales: 27498.38, - COGS: 13530, - Profit: 13968.38, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2220`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 777000, - Discounts: 29491, - Sales: 747509, - COGS: 199160, - Profit: 548349, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `776`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 15520, - Discounts: 6582.4, - Sales: 8937.6, - COGS: 29920, - Profit: 20982.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `553`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 8295, - Discounts: 3559.05, - Sales: 4735.95, - COGS: 21570, - Profit: 16834.05, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2107`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 632100, - Discounts: 28809, - Sales: 603291, - COGS: 218250, - Profit: 385041, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2468`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 49360, - Discounts: 2468.4, - Sales: 46891.6, - COGS: 11220, - Profit: 35671.6, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1905`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 666750, - Discounts: 81023.25, - Sales: 585726.75, - COGS: 547170, - Profit: 38556.75, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3658`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 43896, - Discounts: 5314.32, - Sales: 38581.68, - COGS: 12078, - Profit: 26503.68, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4301`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 51612, - Discounts: 3201.66, - Sales: 48410.34, - COGS: 7276.5, - Profit: 41133.84, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2446`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 48920, - Discounts: 5266.8, - Sales: 43653.2, - COGS: 23940, - Profit: 19713.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4209`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 63135, - Discounts: 3273.6, - Sales: 59861.4, - COGS: 19840, - Profit: 40021.4, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3353`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 419125, - Discounts: 33563.75, - Sales: 385561.25, - COGS: 292920, - Profit: 92641.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1401`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 28020, - Discounts: 6582.4, - Sales: 21437.6, - COGS: 29920, - Profit: 8482.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1865`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 559500, - Discounts: 45078, - Sales: 514422, - COGS: 341500, - Profit: 172922, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `463`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 9260, - Discounts: 6171, - Sales: 3089, - COGS: 28050, - Profit: 24961, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4177`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 62655, - Discounts: 1080.75, - Sales: 61574.25, - COGS: 6550, - Profit: 55024.25, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2523`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 883050, - Discounts: 13244, - Sales: 869806, - COGS: 89440, - Profit: 780366, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1930`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 13510, - Discounts: 1392.16, - Sales: 12117.84, - COGS: 9040, - Profit: 3077.84, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1301`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 15612, - Discounts: 2288.88, - Sales: 13323.12, - COGS: 5202, - Profit: 8121.12, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4125`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 515625, - Discounts: 7617.5, - Sales: 508007.5, - COGS: 66480, - Profit: 441527.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `607`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 12140, - Discounts: 6457, - Sales: 5683, - COGS: 29350, - Profit: 23667, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `478`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 59750, - Discounts: 43518.75, - Sales: 16231.25, - COGS: 379800, - Profit: 363568.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `4489`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 89780, - Discounts: 5783.8, - Sales: 83996.2, - COGS: 26290, - Profit: 57706.2, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1504`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 188000, - Discounts: 19703.75, - Sales: 168296.25, - COGS: 171960, - Profit: 3663.75, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `3763`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 470375, - Discounts: 13021.25, - Sales: 457353.75, - COGS: 113640, - Profit: 343713.75, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2412`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 844200, - Discounts: 13244, - Sales: 830956, - COGS: 89440, - Profit: 741516, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2342`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 35130, - Discounts: 3559.05, - Sales: 31570.95, - COGS: 21570, - Profit: 10000.95, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4451`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 31157, - Discounts: 292.6, - Sales: 30864.4, - COGS: 1900, - Profit: 28964.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3796`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1328600, - Discounts: 37212, - Sales: 1291388, - COGS: 230360, - Profit: 1061028, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `2286`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 285750, - Discounts: 36240, - Sales: 249510, - COGS: 289920, - Profit: 40410, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3614`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 451750, - Discounts: 32340, - Sales: 419410, - COGS: 258720, - Profit: 160690, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1716`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 25740, - Discounts: 4840.2, - Sales: 20899.8, - COGS: 26890, - Profit: 5990.2, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1301`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 19515, - Discounts: 1218.6, - Sales: 18296.4, - COGS: 6770, - Profit: 11526.4, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `4175`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1252500, - Discounts: 63828, - Sales: 1188672, - COGS: 443250, - Profit: 745422, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `975`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 6825, - Discounts: 2032.8, - Sales: 4792.2, - COGS: 12100, - Profit: 7307.8, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1154`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 8078, - Discounts: 2296.56, - Sales: 5781.44, - COGS: 13670, - Profit: 7888.56, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1873`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 37460, - Discounts: 4116, - Sales: 33344, - COGS: 17150, - Profit: 16194, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3766`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1129800, - Discounts: 42696, - Sales: 1087104, - COGS: 296500, - Profit: 790604, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3558`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1067400, - Discounts: 125820, - Sales: 941580, - COGS: 873750, - Profit: 67830, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3156`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1104600, - Discounts: 37212, - Sales: 1067388, - COGS: 230360, - Profit: 837028, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2994`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 374250, - Discounts: 32340, - Sales: 341910, - COGS: 258720, - Profit: 83190, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2087`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 41740, - Discounts: 2172, - Sales: 39568, - COGS: 9050, - Profit: 30518, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1056`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 21120, - Discounts: 4116, - Sales: 17004, - COGS: 17150, - Profit: 146, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1353`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 473550, - Discounts: 66948, - Sales: 406602, - COGS: 414440, - Profit: 7838, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `416`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 124800, - Discounts: 48924, - Sales: 75876, - COGS: 339750, - Profit: 263874, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3880`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1164000, - Discounts: 77400, - Sales: 1086600, - COGS: 537500, - Profit: 549100, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `809`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 283150, - Discounts: 50274, - Sales: 232876, - COGS: 311220, - Profit: 78344, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1892`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 28380, - Discounts: 684, - Sales: 27696, - COGS: 3800, - Profit: 23896, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2072`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 41440, - Discounts: 2959.2, - Sales: 38480.8, - COGS: 12330, - Profit: 26150.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3052`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1068200, - Discounts: 58590, - Sales: 1009610, - COGS: 362700, - Profit: 646910, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3121`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1092350, - Discounts: 41412, - Sales: 1050938, - COGS: 256360, - Profit: 794578, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2059`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 41180, - Discounts: 2172, - Sales: 39008, - COGS: 9050, - Profit: 29958, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4254`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 51048, - Discounts: 3036.96, - Sales: 48011.04, - COGS: 6327, - Profit: 41684.04, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1293`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 19395, - Discounts: 6974.1, - Sales: 12420.9, - COGS: 38745, - Profit: 26324.1, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1293`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 452550, - Discounts: 26166, - Sales: 426384, - COGS: 161980, - Profit: 264404, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `230`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 80500, - Discounts: 41412, - Sales: 39088, - COGS: 256360, - Profit: 217272, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1723`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 215375, - Discounts: 35805, - Sales: 179570, - COGS: 286440, - Profit: 106870, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `240`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 4800, - Discounts: 2959.2, - Sales: 1840.8, - COGS: 12330, - Profit: 10489.2, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2571`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 899850, - Discounts: 11340, - Sales: 888510, - COGS: 70200, - Profit: 818310, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1661`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 11627, - Discounts: 2874.06, - Sales: 8752.94, - COGS: 17107.5, - Profit: 8354.56, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4474`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 31318, - Discounts: 2296.56, - Sales: 29021.44, - COGS: 13670, - Profit: 15351.44, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `833`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 12495, - Discounts: 4586.4, - Sales: 7908.6, - COGS: 25480, - Profit: 17571.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `674`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 13480, - Discounts: 6051.6, - Sales: 7428.4, - COGS: 25215, - Profit: 17786.6, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `778`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 9336, - Discounts: 3831.84, - Sales: 5504.16, - COGS: 7983, - Profit: 2478.84, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1457`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 29140, - Discounts: 3674.4, - Sales: 25465.6, - COGS: 15310, - Profit: 10155.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3158`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 22106, - Discounts: 1252.44, - Sales: 20853.56, - COGS: 7455, - Profit: 13398.56, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `4095`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 81900, - Discounts: 3674.4, - Sales: 78225.6, - COGS: 15310, - Profit: 62915.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3170`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 38040, - Discounts: 3975.84, - Sales: 34064.16, - COGS: 8283, - Profit: 25781.16, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `493`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 7395, - Discounts: 5005.65, - Sales: 2389.35, - COGS: 25670, - Profit: 23280.65, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3286`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 49290, - Discounts: 5005.65, - Sales: 44284.35, - COGS: 25670, - Profit: 18614.35, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3563`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1247050, - Discounts: 41996.5, - Sales: 1205053.5, - COGS: 239980, - Profit: 965073.5, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4109`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1438150, - Discounts: 81445, - Sales: 1356705, - COGS: 465400, - Profit: 891305, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `3653`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 73060, - Discounts: 1149.2, - Sales: 71910.8, - COGS: 4420, - Profit: 67490.8, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2203`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 771050, - Discounts: 44703.75, - Sales: 726346.25, - COGS: 255450, - Profit: 470896.25, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2924`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20468, - Discounts: 1181.18, - Sales: 19286.82, - COGS: 6490, - Profit: 12796.82, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2650`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 31800, - Discounts: 942.24, - Sales: 30857.76, - COGS: 1812, - Profit: 29045.76, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1194`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 23880, - Discounts: 5863, - Sales: 18017, - COGS: 22550, - Profit: 4533, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3366`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 67320, - Discounts: 3247.4, - Sales: 64072.6, - COGS: 12490, - Profit: 51582.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1325`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 9275, - Discounts: 1309.04, - Sales: 7965.97, - COGS: 7192.5, - Profit: 773.47, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4243`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1272900, - Discounts: 31473, - Sales: 1241427, - COGS: 201750, - Profit: 1039677, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2887`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 57740, - Discounts: 6866.6, - Sales: 50873.4, - COGS: 26410, - Profit: 24463.4, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3839`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 76780, - Discounts: 7040.8, - Sales: 69739.2, - COGS: 27080, - Profit: 42659.2, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1863`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 652050, - Discounts: 119756, - Sales: 532294, - COGS: 684320, - Profit: 152026, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2858`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 357250, - Discounts: 25723.75, - Sales: 331526.25, - COGS: 189960, - Profit: 141566.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2868`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 34416, - Discounts: 890.76, - Sales: 33525.24, - COGS: 1713, - Profit: 31812.24, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3805`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 26635, - Discounts: 2453.36, - Sales: 24181.64, - COGS: 13480, - Profit: 10701.64, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3914`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 58710, - Discounts: 3051.75, - Sales: 55658.25, - COGS: 15650, - Profit: 40008.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `524`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 10480, - Discounts: 3247.4, - Sales: 7232.6, - COGS: 12490, - Profit: 5257.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3095`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1083250, - Discounts: 16243.5, - Sales: 1067006.5, - COGS: 92820, - Profit: 974186.5, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2410`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 28920, - Discounts: 1580.28, - Sales: 27339.72, - COGS: 3039, - Profit: 24300.72, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4263`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 63945, - Discounts: 7795.13, - Sales: 56149.88, - COGS: 39975, - Profit: 16174.88, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2239`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 783650, - Discounts: 119756, - Sales: 663894, - COGS: 684320, - Profit: 20426, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `569`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 3983, - Discounts: 1082.9, - Sales: 2900.1, - COGS: 5950, - Profit: 3049.9, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3889`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 46668, - Discounts: 942.24, - Sales: 45725.76, - COGS: 1812, - Profit: 43913.76, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1378`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 20670, - Discounts: 1287, - Sales: 19383, - COGS: 6600, - Profit: 12783, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2253`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 27036, - Discounts: 639.6, - Sales: 26396.4, - COGS: 1230, - Profit: 25166.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3202`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 960600, - Discounts: 101595, - Sales: 859005, - COGS: 651250, - Profit: 207755, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3835`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 46020, - Discounts: 1580.28, - Sales: 44439.72, - COGS: 3039, - Profit: 41400.72, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `2487`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 310875, - Discounts: 25723.75, - Sales: 285151.25, - COGS: 189960, - Profit: 95191.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4428`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 66420, - Discounts: 3051.75, - Sales: 63368.25, - COGS: 15650, - Profit: 47718.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1200`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 150000, - Discounts: 26958.75, - Sales: 123041.25, - COGS: 199080, - Profit: 76038.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2953`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 20671, - Discounts: 1082.9, - Sales: 19588.1, - COGS: 5950, - Profit: 13638.1, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1453`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 17436, - Discounts: 639.6, - Sales: 16796.4, - COGS: 1230, - Profit: 15566.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `865`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 10380, - Discounts: 2761.2, - Sales: 7618.8, - COGS: 5310, - Profit: 2308.8, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1072`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 21440, - Discounts: 7221.2, - Sales: 14218.8, - COGS: 25790, - Profit: 11571.2, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1737`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 34740, - Discounts: 4880.4, - Sales: 29859.6, - COGS: 17430, - Profit: 12429.6, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1535`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 10745, - Discounts: 2936.08, - Sales: 7808.92, - COGS: 14980, - Profit: 7171.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2532`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 17724, - Discounts: 274.4, - Sales: 17449.6, - COGS: 1400, - Profit: 16049.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1765`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 12355, - Discounts: 287.14, - Sales: 12067.86, - COGS: 1465, - Profit: 10602.86, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1567`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 10969, - Discounts: 2936.08, - Sales: 8032.92, - COGS: 14980, - Profit: 6947.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2640`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 39600, - Discounts: 583.8, - Sales: 39016.2, - COGS: 2780, - Profit: 36236.2, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3079`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 61580, - Discounts: 6798.4, - Sales: 54781.6, - COGS: 24280, - Profit: 30501.6, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4130`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 61950, - Discounts: 3710.7, - Sales: 58239.3, - COGS: 17670, - Profit: 40569.3, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2938`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 35256, - Discounts: 2340.24, - Sales: 32915.76, - COGS: 4179, - Profit: 28736.76, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3080`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 21560, - Discounts: 274.4, - Sales: 21285.6, - COGS: 1400, - Profit: 19885.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1530`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 18360, - Discounts: 2340.24, - Sales: 16019.76, - COGS: 4179, - Profit: 11840.76, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `3537`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 42444, - Discounts: 3385.2, - Sales: 39058.8, - COGS: 6045, - Profit: 33013.8, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `2021`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 606300, - Discounts: 33642, - Sales: 572658, - COGS: 200250, - Profit: 372408, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1804`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 225500, - Discounts: 17902.5, - Sales: 207597.5, - COGS: 122760, - Profit: 84837.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1014`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 304200, - Discounts: 62832, - Sales: 241368, - COGS: 374000, - Profit: 132632, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2913`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 873900, - Discounts: 42420, - Sales: 831480, - COGS: 252500, - Profit: 578980, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `763`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 11445, - Discounts: 3177.3, - Sales: 8267.7, - COGS: 15130, - Profit: 6862.3, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1425`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 21375, - Discounts: 4830, - Sales: 16545, - COGS: 23000, - Profit: 6455, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `4357`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 544625, - Discounts: 49367.5, - Sales: 495257.5, - COGS: 338520, - Profit: 156737.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2138`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 748300, - Discounts: 109147.5, - Sales: 639152.5, - COGS: 579150, - Profit: 60002.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3825`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1338750, - Discounts: 58751, - Sales: 1279999, - COGS: 311740, - Profit: 968259, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3393`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1187550, - Discounts: 9800, - Sales: 1177750, - COGS: 52000, - Profit: 1125750, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2215`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 15505, - Discounts: 380.24, - Sales: 15124.76, - COGS: 1940, - Profit: 13184.76, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2278`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 15946, - Discounts: 1692.46, - Sales: 14253.54, - COGS: 8635, - Profit: 5618.54, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `403`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 6045, - Discounts: 4830, - Sales: 1215, - COGS: 23000, - Profit: 21785, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `289`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 5780, - Discounts: 728, - Sales: 5052, - COGS: 2600, - Profit: 2452, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `749`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 11235, - Discounts: 5187, - Sales: 6048, - COGS: 24700, - Profit: 18652, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `372`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 5580, - Discounts: 3660.3, - Sales: 1919.7, - COGS: 17430, - Profit: 15510.3, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3781`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 45372, - Discounts: 4895.52, - Sales: 40476.48, - COGS: 8742, - Profit: 31734.48, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1785`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 12495, - Discounts: 1696.38, - Sales: 10798.62, - COGS: 8655, - Profit: 2143.62, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4029`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1410150, - Discounts: 34300, - Sales: 1375850, - COGS: 182000, - Profit: 1193850, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2813`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 33756, - Discounts: 3732.96, - Sales: 30023.04, - COGS: 6666, - Profit: 23357.04, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2150`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 752500, - Discounts: 57673, - Sales: 694827, - COGS: 306020, - Profit: 388807, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2093`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 732550, - Discounts: 94178, - Sales: 638372, - COGS: 499720, - Profit: 138652, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4391`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 548875, - Discounts: 27562.5, - Sales: 521312.5, - COGS: 189000, - Profit: 332312.5, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2695`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 53900, - Discounts: 1696.8, - Sales: 52203.2, - COGS: 6060, - Profit: 46143.2, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1337`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 401100, - Discounts: 103320, - Sales: 297780, - COGS: 615000, - Profit: 317220, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2621`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 786300, - Discounts: 11298, - Sales: 775002, - COGS: 67250, - Profit: 707752, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3735`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1120500, - Discounts: 106512, - Sales: 1013988, - COGS: 634000, - Profit: 379988, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4320`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 30240, - Discounts: 2844.94, - Sales: 27395.06, - COGS: 14515, - Profit: 12880.06, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2828`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 848400, - Discounts: 106722, - Sales: 741678, - COGS: 635250, - Profit: 106428, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `2586`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 775800, - Discounts: 11298, - Sales: 764502, - COGS: 67250, - Profit: 697252, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1248`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 374400, - Discounts: 62832, - Sales: 311568, - COGS: 374000, - Profit: 62432, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `4035`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 1210500, - Discounts: 42420, - Sales: 1168080, - COGS: 252500, - Profit: 915580, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `359`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 125650, - Discounts: 62769, - Sales: 62881, - COGS: 333060, - Profit: 270179, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3926`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1177800, - Discounts: 37296, - Sales: 1140504, - COGS: 222000, - Profit: 918504, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `4247`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 530875, - Discounts: 49770, - Sales: 481105, - COGS: 341280, - Profit: 139825, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2695`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 32340, - Discounts: 4158, - Sales: 28182, - COGS: 7425, - Profit: 20757, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1104`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 16560, - Discounts: 3660.3, - Sales: 12899.7, - COGS: 17430, - Profit: 4530.3, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1449`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 17388, - Discounts: 4895.52, - Sales: 12492.48, - COGS: 8742, - Profit: 3750.48, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1131`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 7917, - Discounts: 1696.38, - Sales: 6220.62, - COGS: 8655, - Profit: 2434.38, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1468`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 10276, - Discounts: 1692.46, - Sales: 8583.54, - COGS: 8635, - Profit: 51.46, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1272`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 19080, - Discounts: 3927, - Sales: 15153, - COGS: 18700, - Profit: 3547, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1403`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 175375, - Discounts: 22012.5, - Sales: 153362.5, - COGS: 140880, - Profit: 12482.5, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2161`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 270125, - Discounts: 51881.25, - Sales: 218243.75, - COGS: 332040, - Profit: 113796.25, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1937`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 242125, - Discounts: 20343.75, - Sales: 221781.25, - COGS: 130200, - Profit: 91581.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2879`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 863700, - Discounts: 24570, - Sales: 839130, - COGS: 136500, - Profit: 702630, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1330`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 26600, - Discounts: 3474, - Sales: 23126, - COGS: 11580, - Profit: 11546, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2426`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 36390, - Discounts: 3631.5, - Sales: 32758.5, - COGS: 16140, - Profit: 16618.5, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2033`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14231, - Discounts: 2661.75, - Sales: 11569.25, - COGS: 12675, - Profit: 1105.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2029`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 710150, - Discounts: 149677.5, - Sales: 560472.5, - COGS: 741260, - Profit: 180787.5, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1049`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 15735, - Discounts: 5757.75, - Sales: 9977.25, - COGS: 25590, - Profit: 15612.75, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1062`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 21240, - Discounts: 801, - Sales: 20439, - COGS: 2670, - Profit: 17769, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2509`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 313625, - Discounts: 20343.75, - Sales: 293281.25, - COGS: 130200, - Profit: 163081.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1743`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 26145, - Discounts: 2643.75, - Sales: 23501.25, - COGS: 11750, - Profit: 11751.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3418`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1196300, - Discounts: 105367.5, - Sales: 1090932.5, - COGS: 521820, - Profit: 569112.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1751`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 612850, - Discounts: 112927.5, - Sales: 499922.5, - COGS: 559260, - Profit: 59337.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3228`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 38736, - Discounts: 1645.2, - Sales: 37090.8, - COGS: 2742, - Profit: 34348.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1105`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 22100, - Discounts: 879, - Sales: 21221, - COGS: 2930, - Profit: 18291, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2778`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 33336, - Discounts: 900, - Sales: 32436, - COGS: 1500, - Profit: 30936, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1173`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 17595, - Discounts: 6358.5, - Sales: 11236.5, - COGS: 28260, - Profit: 17023.5, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3160`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 395000, - Discounts: 12431.25, - Sales: 382568.75, - COGS: 79560, - Profit: 303008.75, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `4322`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1296600, - Discounts: 115830, - Sales: 1180770, - COGS: 643500, - Profit: 537270, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1901`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 237625, - Discounts: 45712.5, - Sales: 191912.5, - COGS: 292560, - Profit: 100647.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2980`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 35760, - Discounts: 1645.2, - Sales: 34114.8, - COGS: 2742, - Profit: 31372.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4068`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 81360, - Discounts: 2596.5, - Sales: 78763.5, - COGS: 8655, - Profit: 70108.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2105`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 31575, - Discounts: 1107, - Sales: 30468, - COGS: 4920, - Profit: 25548, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1647`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 32940, - Discounts: 801, - Sales: 32139, - COGS: 2670, - Profit: 29469, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `235`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 3525, - Discounts: 2643.75, - Sales: 881.25, - COGS: 11750, - Profit: 10868.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3617`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 452125, - Discounts: 55387.5, - Sales: 396737.5, - COGS: 354480, - Profit: 42257.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2106`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 263250, - Discounts: 10350, - Sales: 252900, - COGS: 66240, - Profit: 186660, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2351`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 47020, - Discounts: 879, - Sales: 46141, - COGS: 2930, - Profit: 43211, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1897`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 569100, - Discounts: 111375, - Sales: 457725, - COGS: 618750, - Profit: 161025, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `647`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 194100, - Discounts: 24570, - Sales: 169530, - COGS: 136500, - Profit: 33030, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3621`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 25347, - Discounts: 1436.4, - Sales: 23910.6, - COGS: 6840, - Profit: 17070.6, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3221`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 22547, - Discounts: 759.15, - Sales: 21787.85, - COGS: 3615, - Profit: 18172.85, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `493`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 5916, - Discounts: 3250.8, - Sales: 2665.2, - COGS: 5418, - Profit: 2752.8, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - } -} - export class SalesDataItem { public constructor(init: Partial) { Object.assign(this, init); @@ -16684,7 +5,7 @@ export class SalesDataItem { public Country: string; public Product: string; - public UnitsSold: string; + public UnitsSold: number; public ManufacturingPrice: number; public SalePrice: number; public GrossSales: number; @@ -16693,8 +14,16690 @@ export class SalesDataItem { public COGS: number; public Profit: number; public Date: string; - public MonthName: string; + public Month: string; public Year: string; } -//end data \ No newline at end of file +export class SalesData extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 501, + ManufacturingPrice: 15, + SalePrice: 23, + GrossSales: 26440, + Discounts: 0, + Sales: 26440, + COGS: 16185, + Profit: 11255, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1372, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 27440, + Discounts: 0, + Sales: 27440, + COGS: 16185, + Profit: 11255, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2762, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 55240, + Discounts: 0, + Sales: 55240, + COGS: 13210, + Profit: 42030, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1464, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 21960, + Discounts: 0, + Sales: 21960, + COGS: 21780, + Profit: 180, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 719, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 10785, + Discounts: 0, + Sales: 10785, + COGS: 8880, + Profit: 1905, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3576, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 53640, + Discounts: 0, + Sales: 53640, + COGS: 24700, + Profit: 28940, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 4422, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1547700, + Discounts: 0, + Sales: 1547700, + COGS: 393380, + Profit: 1154320, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3649, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 54735, + Discounts: 0, + Sales: 54735, + COGS: 9210, + Profit: 45525, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4172, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 50064, + Discounts: 0, + Sales: 50064, + COGS: 7554, + Profit: 42510, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3841, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 76820, + Discounts: 0, + Sales: 76820, + COGS: 18990, + Profit: 57830, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3726, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 44712, + Discounts: 0, + Sales: 44712, + COGS: 4635, + Profit: 40077, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2625, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 39375, + Discounts: 0, + Sales: 39375, + COGS: 24700, + Profit: 14675, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1958, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 244750, + Discounts: 0, + Sales: 244750, + COGS: 319860, + Profit: 75110, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 3271, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 981300, + Discounts: 0, + Sales: 981300, + COGS: 239500, + Profit: 741800, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2091, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 14637, + Discounts: 0, + Sales: 14637, + COGS: 10730, + Profit: 3907, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2825, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 42375, + Discounts: 0, + Sales: 42375, + COGS: 6150, + Profit: 36225, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2513, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 50260, + Discounts: 0, + Sales: 50260, + COGS: 2920, + Profit: 47340, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 883, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 13245, + Discounts: 0, + Sales: 13245, + COGS: 9740, + Profit: 3505, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2087, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 25044, + Discounts: 0, + Sales: 25044, + COGS: 7554, + Profit: 17490, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2563, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 897050, + Discounts: 0, + Sales: 897050, + COGS: 261560, + Profit: 635490, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2846, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 34152, + Discounts: 0, + Sales: 34152, + COGS: 1101, + Profit: 33051, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 997, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 6979, + Discounts: 0, + Sales: 6979, + COGS: 4415, + Profit: 2564, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2290, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 34350, + Discounts: 0, + Sales: 34350, + COGS: 24720, + Profit: 9630, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2133, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 14931, + Discounts: 0, + Sales: 14931, + COGS: 5715, + Profit: 9216, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3617, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 72340, + Discounts: 0, + Sales: 72340, + COGS: 18170, + Profit: 54170, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1266, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 443100, + Discounts: 0, + Sales: 443100, + COGS: 393380, + Profit: 49720, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 894, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 6258, + Discounts: 0, + Sales: 6258, + COGS: 7465, + Profit: 1207, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 2725, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 340625, + Discounts: 0, + Sales: 340625, + COGS: 216480, + Profit: 124145, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3061, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 36732, + Discounts: 0, + Sales: 36732, + COGS: 6483, + Profit: 30249, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3958, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1385300, + Discounts: 0, + Sales: 1385300, + COGS: 261560, + Profit: 1123740, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3920, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 47040, + Discounts: 0, + Sales: 47040, + COGS: 4635, + Profit: 42405, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3381, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 422625, + Discounts: 0, + Sales: 422625, + COGS: 338520, + Profit: 84105, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4307, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 1292100, + Discounts: 0, + Sales: 1292100, + COGS: 500250, + Profit: 791850, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 878, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 10536, + Discounts: 0, + Sales: 10536, + COGS: 8514, + Profit: 2022, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 496, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 7440, + Discounts: 0, + Sales: 7440, + COGS: 21780, + Profit: 14340, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3367, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 50505, + Discounts: 0, + Sales: 50505, + COGS: 8880, + Profit: 41625, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2055, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 616500, + Discounts: 0, + Sales: 616500, + COGS: 537750, + Profit: 78750, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4041, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 80820, + Discounts: 0, + Sales: 80820, + COGS: 18170, + Profit: 62650, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 3237, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1132950, + Discounts: 0, + Sales: 1132950, + COGS: 715000, + Profit: 417950, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 630, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 7560, + Discounts: 0, + Sales: 7560, + COGS: 5859, + Profit: 1701, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4210, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 526250, + Discounts: 0, + Sales: 526250, + COGS: 506340, + Profit: 19910, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1127, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 22540, + Discounts: 0, + Sales: 22540, + COGS: 18990, + Profit: 3550, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 3438, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 24066, + Discounts: 0, + Sales: 24066, + COGS: 8430, + Profit: 15636, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2015, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 24180, + Discounts: 0, + Sales: 24180, + COGS: 6423, + Profit: 17757, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2534, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 17738, + Discounts: 0, + Sales: 17738, + COGS: 5715, + Profit: 12023, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1384, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 20760, + Discounts: 0, + Sales: 20760, + COGS: 6150, + Profit: 14610, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3561, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 24927, + Discounts: 276.15, + Sales: 24650.85, + COGS: 19725, + Profit: 4925.85, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1823, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 27345, + Discounts: 344.4, + Sales: 27000.6, + COGS: 22960, + Profit: 4040.6, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2795, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 19565, + Discounts: 72.1, + Sales: 19492.9, + COGS: 5150, + Profit: 14342.9, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 457, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 3199, + Discounts: 44.73, + Sales: 3154.27, + COGS: 3195, + Profit: 40.73, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3785, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 26495, + Discounts: 92.82, + Sales: 26402.18, + COGS: 6630, + Profit: 19772.18, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 748, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 8976, + Discounts: 222.96, + Sales: 8753.04, + COGS: 5574, + Profit: 3179.04, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1021, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 357350, + Discounts: 4235, + Sales: 353115, + COGS: 314600, + Profit: 38515, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2076, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 14532, + Discounts: 177.03, + Sales: 14354.97, + COGS: 12645, + Profit: 1709.97, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 4316, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 51792, + Discounts: 173.4, + Sales: 51618.6, + COGS: 4335, + Profit: 47283.6, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 4174, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 50088, + Discounts: 320.52, + Sales: 49767.48, + COGS: 8013, + Profit: 41754.48, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3736, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1307600, + Discounts: 4889.5, + Sales: 1302710.5, + COGS: 363220, + Profit: 939490.5, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1914, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 669900, + Discounts: 7542.5, + Sales: 662357.5, + COGS: 560300, + Profit: 102057.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2742, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 41130, + Discounts: 332.1, + Sales: 40797.9, + COGS: 22140, + Profit: 18657.9, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1499, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 449700, + Discounts: 6903, + Sales: 442797, + COGS: 575250, + Profit: 132453, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3772, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 75440, + Discounts: 275.1, + Sales: 75164.9, + COGS: 13755, + Profit: 61409.9, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1112, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 7784, + Discounts: 128.1, + Sales: 7655.9, + COGS: 9150, + Profit: 1494.1, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2368, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 35520, + Discounts: 227.1, + Sales: 35292.9, + COGS: 15140, + Profit: 20152.9, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1586, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 11102, + Discounts: 314.48, + Sales: 10787.52, + COGS: 22462.5, + Profit: 11674.98, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3386, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 423250, + Discounts: 908.75, + Sales: 422341.25, + COGS: 87240, + Profit: 335101.25, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 852, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 106500, + Discounts: 983.75, + Sales: 105516.25, + COGS: 94440, + Profit: 11076.25, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2783, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 347875, + Discounts: 2278.75, + Sales: 345596.25, + COGS: 218760, + Profit: 126836.25, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2684, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 40260, + Discounts: 112.05, + Sales: 40147.95, + COGS: 7470, + Profit: 32677.95, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4083, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1224900, + Discounts: 8715, + Sales: 1216185, + COGS: 726250, + Profit: 489935, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2816, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 985600, + Discounts: 7542.5, + Sales: 978057.5, + COGS: 560300, + Profit: 417757.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 4294, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 85880, + Discounts: 772.8, + Sales: 85107.2, + COGS: 38640, + Profit: 46467.2, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2856, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 19992, + Discounts: 25.34, + Sales: 19966.66, + COGS: 1810, + Profit: 18156.66, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1407, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 175875, + Discounts: 1153.75, + Sales: 174721.25, + COGS: 110760, + Profit: 63961.25, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1265, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 8855, + Discounts: 18.41, + Sales: 8836.59, + COGS: 1315, + Profit: 7521.59, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3892, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1362200, + Discounts: 3302.25, + Sales: 1358897.75, + COGS: 245310, + Profit: 1113587.75, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 3068, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 383500, + Discounts: 908.75, + Sales: 382591.25, + COGS: 87240, + Profit: 295351.25, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2181, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 272625, + Discounts: 983.75, + Sales: 271641.25, + COGS: 94440, + Profit: 177201.25, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1356, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 406800, + Discounts: 2958, + Sales: 403842, + COGS: 246500, + Profit: 177201.25, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1814, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 634900, + Discounts: 4889.5, + Sales: 630010.5, + COGS: 363220, + Profit: 266790.5, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1495, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 186875, + Discounts: 2180, + Sales: 184695, + COGS: 209280, + Profit: 24585, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1463, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 182875, + Discounts: 1856.25, + Sales: 181018.75, + COGS: 89100, + Profit: 91918.75, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 215, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 2580, + Discounts: 310.8, + Sales: 2269.2, + COGS: 3885, + Profit: 1615.8, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 566, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 198100, + Discounts: 19964, + Sales: 178136, + COGS: 741520, + Profit: 563384, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 3255, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 39060, + Discounts: 274.08, + Sales: 38785.92, + COGS: 3426, + Profit: 35359.92, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 772, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 15440, + Discounts: 626.4, + Sales: 14813.6, + COGS: 15660, + Profit: 846.4, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1135, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 13620, + Discounts: 165.6, + Sales: 13454.4, + COGS: 2070, + Profit: 11384.4, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1193, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 17895, + Discounts: 708.9, + Sales: 17186.1, + COGS: 23630, + Profit: 6443.9, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2530, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 759000, + Discounts: 5508, + Sales: 753492, + COGS: 229500, + Profit: 523992, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3451, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1035300, + Discounts: 10368, + Sales: 1024932, + COGS: 432000, + Profit: 592932, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3059, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 36708, + Discounts: 274.08, + Sales: 36433.92, + COGS: 3426, + Profit: 33007.92, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3957, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 494625, + Discounts: 1655, + Sales: 492970, + COGS: 79440, + Profit: 413530, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3444, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 41328, + Discounts: 310.8, + Sales: 41017.2, + COGS: 3885, + Profit: 37132.2, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3154, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 946200, + Discounts: 11496, + Sales: 934704, + COGS: 479000, + Profit: 455704, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4108, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1437800, + Discounts: 19964, + Sales: 1417836, + COGS: 741520, + Profit: 676316, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3760, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 470000, + Discounts: 6822.5, + Sales: 463177.5, + COGS: 327480, + Profit: 135697.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2334, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 28008, + Discounts: 253.2, + Sales: 27754.8, + COGS: 3165, + Profit: 24589.8, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 580, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 6960, + Discounts: 260.16, + Sales: 6699.84, + COGS: 3252, + Profit: 3447.84, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2610, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 52200, + Discounts: 626.4, + Sales: 51573.6, + COGS: 15660, + Profit: 35913.6, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 1459, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 510650, + Discounts: 20139, + Sales: 490511, + COGS: 748020, + Profit: 257509, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3774, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 45288, + Discounts: 253.2, + Sales: 45034.8, + COGS: 3165, + Profit: 41869.8, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2572, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 30864, + Discounts: 260.16, + Sales: 30603.84, + COGS: 3252, + Profit: 27351.84, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 320, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 40000, + Discounts: 1655, + Sales: 38345, + COGS: 79440, + Profit: 41095, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3275, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1146250, + Discounts: 20139, + Sales: 1126111, + COGS: 748020, + Profit: 378091, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3582, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 447750, + Discounts: 6822.5, + Sales: 440927.5, + COGS: 327480, + Profit: 113447.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4056, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 1216800, + Discounts: 1554, + Sales: 1215246, + COGS: 64750, + Profit: 1150496, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2144, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 643200, + Discounts: 6606, + Sales: 636594, + COGS: 275250, + Profit: 361344, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 3502, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 437750, + Discounts: 5690, + Sales: 432060, + COGS: 273120, + Profit: 158940, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 679, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 13580, + Discounts: 494.4, + Sales: 13085.6, + COGS: 12360, + Profit: 725.6, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2351, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 47020, + Discounts: 376.4, + Sales: 46643.6, + COGS: 9410, + Profit: 37233.6, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2043, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 612900, + Discounts: 11496, + Sales: 601404, + COGS: 479000, + Profit: 122404, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 3565, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 445625, + Discounts: 15913.13, + Sales: 429711.88, + COGS: 509220, + Profit: 79508.13, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1401, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 28020, + Discounts: 1548, + Sales: 26472, + COGS: 25800, + Profit: 672, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2077, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 623100, + Discounts: 6201, + Sales: 616899, + COGS: 172250, + Profit: 444649, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 3643, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 43716, + Discounts: 700.92, + Sales: 43015.08, + COGS: 5841, + Profit: 37174.08, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2960, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 20720, + Discounts: 411.18, + Sales: 20308.82, + COGS: 9790, + Profit: 10518.82, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1201, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 14412, + Discounts: 684.36, + Sales: 13727.64, + COGS: 5703, + Profit: 8024.64, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 2321, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 16247, + Discounts: 114.24, + Sales: 16132.76, + COGS: 2720, + Profit: 13412.76, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3972, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 496500, + Discounts: 4826.25, + Sales: 491673.75, + COGS: 154440, + Profit: 337233.75, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3878, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 484750, + Discounts: 6397.5, + Sales: 478352.5, + COGS: 204720, + Profit: 273632.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2278, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 683400, + Discounts: 21910.5, + Sales: 661489.5, + COGS: 608625, + Profit: 52864.5, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1075, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 134375, + Discounts: 6652.5, + Sales: 127722.5, + COGS: 212880, + Profit: 85157.5, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 4050, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 48600, + Discounts: 684.36, + Sales: 47915.64, + COGS: 5703, + Profit: 42212.64, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3035, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 910500, + Discounts: 6201, + Sales: 904299, + COGS: 172250, + Profit: 732049, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3636, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 454500, + Discounts: 5887.5, + Sales: 448612.5, + COGS: 188400, + Profit: 260212.5, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1379, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 16548, + Discounts: 493.02, + Sales: 16054.98, + COGS: 4108.5, + Profit: 11946.48, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4492, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 561500, + Discounts: 7533.75, + Sales: 553966.25, + COGS: 241080, + Profit: 312886.25, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1744, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 218000, + Discounts: 4826.25, + Sales: 213173.75, + COGS: 154440, + Profit: 58733.75, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2341, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 292625, + Discounts: 6397.5, + Sales: 286227.5, + COGS: 204720, + Profit: 81507.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3835, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 479375, + Discounts: 7533.75, + Sales: 471841.25, + COGS: 241080, + Profit: 230761.25, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1161, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 348300, + Discounts: 25596, + Sales: 322704, + COGS: 711000, + Profit: 388296, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 876, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 10512, + Discounts: 689.76, + Sales: 9822.24, + COGS: 5748, + Profit: 4074.24, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1705, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 213125, + Discounts: 5887.5, + Sales: 207237.5, + COGS: 188400, + Profit: 18837.5, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1805, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 541500, + Discounts: 16866, + Sales: 524634, + COGS: 468500, + Profit: 56134, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 389, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 136150, + Discounts: 17241, + Sales: 118909, + COGS: 426920, + Profit: 308011, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1459, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 29180, + Discounts: 498.6, + Sales: 28681.4, + COGS: 8310, + Profit: 20371.4, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 4236, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 84720, + Discounts: 2310.3, + Sales: 82409.7, + COGS: 38505, + Profit: 43904.7, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3627, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 43524, + Discounts: 892.44, + Sales: 42631.56, + COGS: 7437, + Profit: 35194.56, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1756, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 26340, + Discounts: 1218.6, + Sales: 25121.4, + COGS: 20310, + Profit: 4811.4, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 307, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 4605, + Discounts: 1218.6, + Sales: 3386.4, + COGS: 20310, + Profit: 16923.6, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1222, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 366600, + Discounts: 24252, + Sales: 342348, + COGS: 505250, + Profit: 162902, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 489, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 171150, + Discounts: 3836, + Sales: 167314, + COGS: 71240, + Profit: 96074, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4133, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 61995, + Discounts: 1180.2, + Sales: 60814.8, + COGS: 19670, + Profit: 41144.8, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2743, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 822900, + Discounts: 22308, + Sales: 800592, + COGS: 464750, + Profit: 335842, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 4460, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1338000, + Discounts: 24252, + Sales: 1313748, + COGS: 505250, + Profit: 808498, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1232, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 154000, + Discounts: 5690, + Sales: 148310, + COGS: 136560, + Profit: 11750, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2586, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 18102, + Discounts: 1190.28, + Sales: 16911.72, + COGS: 21255, + Profit: 4343.28, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1332, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 166500, + Discounts: 3975, + Sales: 162525, + COGS: 95400, + Profit: 67125, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4487, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1346100, + Discounts: 16974, + Sales: 1329126, + COGS: 353625, + Profit: 975501, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3862, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1158600, + Discounts: 35016, + Sales: 1123584, + COGS: 729500, + Profit: 394084, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1765, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 617750, + Discounts: 48300, + Sales: 569450, + COGS: 897000, + Profit: 327550, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3533, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 441625, + Discounts: 14940, + Sales: 426685, + COGS: 358560, + Profit: 68125, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2016, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 30240, + Discounts: 130.8, + Sales: 30109.2, + COGS: 2180, + Profit: 27929.2, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2938, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 58760, + Discounts: 1659.2, + Sales: 57100.8, + COGS: 20740, + Profit: 36360.8, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3352, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 67040, + Discounts: 844.8, + Sales: 66195.2, + COGS: 10560, + Profit: 55635.2, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2430, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 850500, + Discounts: 3836, + Sales: 846664, + COGS: 71240, + Profit: 775424, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 535, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 66875, + Discounts: 5690, + Sales: 61185, + COGS: 136560, + Profit: 75375, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1523, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 18276, + Discounts: 703.2, + Sales: 17572.8, + COGS: 4395, + Profit: 13177.8, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1782, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 623700, + Discounts: 30478, + Sales: 593222, + COGS: 566020, + Profit: 27202, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 347, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 4164, + Discounts: 415.68, + Sales: 3748.32, + COGS: 2598, + Profit: 1150.32, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3509, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1228150, + Discounts: 30478, + Sales: 1197672, + COGS: 566020, + Profit: 631652, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2943, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1030050, + Discounts: 26110, + Sales: 1003940, + COGS: 484900, + Profit: 519040, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 4037, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 504625, + Discounts: 5370, + Sales: 499255, + COGS: 128880, + Profit: 370375, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4146, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1451100, + Discounts: 26698, + Sales: 1424402, + COGS: 495820, + Profit: 928582, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 725, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 5075, + Discounts: 480.2, + Sales: 4594.8, + COGS: 6860, + Profit: 2265.2, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2325, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 16275, + Discounts: 941.15, + Sales: 15333.85, + COGS: 13445, + Profit: 1888.85, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 675, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 8100, + Discounts: 1458.6, + Sales: 6641.4, + COGS: 7293, + Profit: 651.6, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2990, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 35880, + Discounts: 1458.6, + Sales: 34421.4, + COGS: 7293, + Profit: 27128.4, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1072, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 7504, + Discounts: 941.15, + Sales: 6562.85, + COGS: 13445, + Profit: 6882.15, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1048, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 7336, + Discounts: 589.05, + Sales: 6746.95, + COGS: 8415, + Profit: 1668.05, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 469, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 5628, + Discounts: 673.8, + Sales: 4954.2, + COGS: 3369, + Profit: 1585.2, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 4240, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 50880, + Discounts: 1119, + Sales: 49761, + COGS: 5595, + Profit: 44166, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1976, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 23712, + Discounts: 669.6, + Sales: 23042.4, + COGS: 3348, + Profit: 19694.4, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1984, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 39680, + Discounts: 1563, + Sales: 38117, + COGS: 15630, + Profit: 22487, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 480, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 144000, + Discounts: 14865, + Sales: 129135, + COGS: 247750, + Profit: 118615, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1205, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 18075, + Discounts: 2093.25, + Sales: 15981.75, + COGS: 27910, + Profit: 11928.25, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2480, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 17360, + Discounts: 199.5, + Sales: 17160.5, + COGS: 2850, + Profit: 14310.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 2926, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 20482, + Discounts: 870.45, + Sales: 19611.55, + COGS: 12435, + Profit: 7176.55, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3210, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 1123500, + Discounts: 24228.75, + Sales: 1099271.25, + COGS: 359970, + Profit: 739301.25, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 3221, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 402625, + Discounts: 22668.75, + Sales: 379956.25, + COGS: 435240, + Profit: 55283.75, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 1127, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 13524, + Discounts: 1405.2, + Sales: 12118.8, + COGS: 7026, + Profit: 5092.8, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1610, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 32200, + Discounts: 1303, + Sales: 30897, + COGS: 13030, + Profit: 17867, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4100, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 512500, + Discounts: 18700, + Sales: 493800, + COGS: 359040, + Profit: 134760, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1012, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 126500, + Discounts: 14906.25, + Sales: 111593.75, + COGS: 286200, + Profit: 174606.25, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3337, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1001100, + Discounts: 24105, + Sales: 976995, + COGS: 401750, + Profit: 575245, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3955, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 27685, + Discounts: 814.45, + Sales: 26870.55, + COGS: 11635, + Profit: 15235.55, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4347, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1304100, + Discounts: 14865, + Sales: 1289235, + COGS: 247750, + Profit: 1041485, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1548, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 541800, + Discounts: 10535, + Sales: 531265, + COGS: 156520, + Profit: 374745, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2153, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 32295, + Discounts: 1965, + Sales: 30330, + COGS: 26200, + Profit: 4130, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4126, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 515750, + Discounts: 5381.25, + Sales: 510368.75, + COGS: 103320, + Profit: 407048.75, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3376, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 67520, + Discounts: 2663, + Sales: 64857, + COGS: 26630, + Profit: 38227, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2244, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 33660, + Discounts: 416.25, + Sales: 33243.75, + COGS: 5550, + Profit: 27693.75, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 1360, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 20400, + Discounts: 2145.75, + Sales: 18254.25, + COGS: 28610, + Profit: 10355.75, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 279, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 34875, + Discounts: 5043.75, + Sales: 29831.25, + COGS: 96840, + Profit: 67008.75, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2521, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 882350, + Discounts: 10535, + Sales: 871815, + COGS: 156520, + Profit: 715295, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2433, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 48660, + Discounts: 2832, + Sales: 45828, + COGS: 28320, + Profit: 17508, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1738, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 34760, + Discounts: 1579, + Sales: 33181, + COGS: 15790, + Profit: 17391, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1106, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 138250, + Discounts: 5381.25, + Sales: 132868.75, + COGS: 103320, + Profit: 29548.75, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 213, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 63900, + Discounts: 18750, + Sales: 45150, + COGS: 312500, + Profit: 267350, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2929, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 58580, + Discounts: 2663, + Sales: 55917, + COGS: 26630, + Profit: 29287, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2389, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 16723, + Discounts: 199.5, + Sales: 16523.5, + COGS: 2850, + Profit: 13673.5, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3086, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 21602, + Discounts: 870.45, + Sales: 20731.55, + COGS: 12435, + Profit: 8296.55, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 745, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 260750, + Discounts: 23625, + Sales: 237125, + COGS: 351000, + Profit: 113875, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1266, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 443100, + Discounts: 9660, + Sales: 433440, + COGS: 143520, + Profit: 289920, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4287, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 1286100, + Discounts: 18750, + Sales: 1267350, + COGS: 312500, + Profit: 954850, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3193, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 47895, + Discounts: 3420.9, + Sales: 44474.1, + COGS: 38010, + Profit: 6464.1, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1967, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 39340, + Discounts: 1341, + Sales: 37999, + COGS: 11175, + Profit: 26824, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 631, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 9465, + Discounts: 2559.6, + Sales: 6905.4, + COGS: 28440, + Profit: 21534.6, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3469, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 41628, + Discounts: 404.64, + Sales: 41223.36, + COGS: 1686, + Profit: 39537.36, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 3215, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 48225, + Discounts: 1827, + Sales: 46398, + COGS: 20300, + Profit: 26098, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1959, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 685650, + Discounts: 20580, + Sales: 665070, + COGS: 254800, + Profit: 410270, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2181, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 763350, + Discounts: 30660, + Sales: 732690, + COGS: 379600, + Profit: 353090, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2205, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 26460, + Discounts: 1960.56, + Sales: 24499.44, + COGS: 8169, + Profit: 16330.44, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1890, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 661500, + Discounts: 31416, + Sales: 630084, + COGS: 388960, + Profit: 241124, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2417, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 302125, + Discounts: 7140, + Sales: 294985, + COGS: 114240, + Profit: 180745, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1158, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 144750, + Discounts: 20662.5, + Sales: 124087.5, + COGS: 330600, + Profit: 206512.5, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 803, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 12045, + Discounts: 1377, + Sales: 10668, + COGS: 15300, + Profit: 4632, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3705, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1296750, + Discounts: 31416, + Sales: 1265334, + COGS: 388960, + Profit: 876374, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 589, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 4123, + Discounts: 629.16, + Sales: 3493.84, + COGS: 7490, + Profit: 3996.16, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3999, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 59985, + Discounts: 2559.6, + Sales: 57425.4, + COGS: 28440, + Profit: 28985.4, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 4256, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 29792, + Discounts: 629.16, + Sales: 29162.84, + COGS: 7490, + Profit: 21672.84, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2160, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 270000, + Discounts: 14906.25, + Sales: 255093.75, + COGS: 238500, + Profit: 16593.75, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 466, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 163100, + Discounts: 35259, + Sales: 127841, + COGS: 436540, + Profit: 308699, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1478, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 22170, + Discounts: 1978.2, + Sales: 20191.8, + COGS: 21980, + Profit: 1788.2, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3798, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 56970, + Discounts: 1568.7, + Sales: 55401.3, + COGS: 17430, + Profit: 37971.3, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 447, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 6705, + Discounts: 1037.7, + Sales: 5667.3, + COGS: 11530, + Profit: 5862.7, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 745, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 14900, + Discounts: 1201.2, + Sales: 13698.8, + COGS: 10010, + Profit: 3688.8, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 1732, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 12124, + Discounts: 559.86, + Sales: 11564.14, + COGS: 6665, + Profit: 4899.14, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1759, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 26385, + Discounts: 1037.7, + Sales: 25347.3, + COGS: 11530, + Profit: 13817.3, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 338, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 4056, + Discounts: 610.68, + Sales: 3445.32, + COGS: 2181, + Profit: 1264.32, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 3911, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 46932, + Discounts: 1582.56, + Sales: 45349.44, + COGS: 5652, + Profit: 39697.44, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 4473, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 53676, + Discounts: 1965.6, + Sales: 51710.4, + COGS: 7020, + Profit: 44690.4, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 383, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 4596, + Discounts: 1967.28, + Sales: 2628.72, + COGS: 7026, + Profit: 4397.28, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1062, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 15930, + Discounts: 1325.1, + Sales: 14604.9, + COGS: 12620, + Profit: 1984.9, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 4083, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 28581, + Discounts: 556.15, + Sales: 28024.85, + COGS: 5675, + Profit: 22349.85, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3974, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 27818, + Discounts: 268.03, + Sales: 27549.97, + COGS: 2735, + Profit: 24814.97, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3723, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 26061, + Discounts: 775.18, + Sales: 25285.82, + COGS: 7910, + Profit: 17375.82, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2435, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 29220, + Discounts: 1460.34, + Sales: 27759.66, + COGS: 5215.5, + Profit: 22544.16, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1763, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 12341, + Discounts: 775.18, + Sales: 11565.82, + COGS: 7910, + Profit: 3655.82, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 4473, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 31311, + Discounts: 556.15, + Sales: 30754.85, + COGS: 5675, + Profit: 25079.85, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1246, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 436100, + Discounts: 43144.5, + Sales: 392955.5, + COGS: 457860, + Profit: 64904.5, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1615, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 484500, + Discounts: 9408, + Sales: 475092, + COGS: 112000, + Profit: 363092, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 749, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 224700, + Discounts: 45801, + Sales: 178899, + COGS: 545250, + Profit: 366351, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1318, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 26360, + Discounts: 2766.4, + Sales: 23593.6, + COGS: 19760, + Profit: 3833.6, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 2882, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 864600, + Discounts: 45801, + Sales: 818799, + COGS: 545250, + Profit: 273549, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2484, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 745200, + Discounts: 35742, + Sales: 709458, + COGS: 425500, + Profit: 283958, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3169, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 950700, + Discounts: 9408, + Sales: 941292, + COGS: 112000, + Profit: 829292, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4080, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 510000, + Discounts: 30738.75, + Sales: 479261.25, + COGS: 421560, + Profit: 57701.25, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3943, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 59145, + Discounts: 2206.05, + Sales: 56938.95, + COGS: 21010, + Profit: 35928.95, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 253, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 5060, + Discounts: 2149, + Sales: 2911, + COGS: 15350, + Profit: 12439, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 799, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 239700, + Discounts: 34839, + Sales: 204861, + COGS: 414750, + Profit: 209889, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3942, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 78840, + Discounts: 852.6, + Sales: 77987.4, + COGS: 6090, + Profit: 71897.4, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2498, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 312250, + Discounts: 18261.25, + Sales: 293988.75, + COGS: 250440, + Profit: 43548.75, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 2517, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 50340, + Discounts: 2766.4, + Sales: 47573.6, + COGS: 19760, + Profit: 27813.6, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1145, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 343500, + Discounts: 28812, + Sales: 314688, + COGS: 343000, + Profit: 28312, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3814, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 45768, + Discounts: 2725.38, + Sales: 43042.62, + COGS: 9733.5, + Profit: 33309.12, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1188, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 356400, + Discounts: 20139, + Sales: 336261, + COGS: 239750, + Profit: 96511, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 2233, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 669900, + Discounts: 57687, + Sales: 612213, + COGS: 686750, + Profit: 74537, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 421, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 52625, + Discounts: 14393.75, + Sales: 38231.25, + COGS: 197400, + Profit: 159168.75, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 269, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 94150, + Discounts: 70462, + Sales: 23688, + COGS: 747760, + Profit: 724072, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 952, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 19040, + Discounts: 1565.2, + Sales: 17474.8, + COGS: 11180, + Profit: 6294.8, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2964, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 889200, + Discounts: 28812, + Sales: 860388, + COGS: 343000, + Profit: 517388, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1505, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 10535, + Discounts: 273.28, + Sales: 10261.72, + COGS: 2440, + Profit: 7821.72, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1678, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 33560, + Discounts: 2051.2, + Sales: 31508.8, + COGS: 12820, + Profit: 18688.8, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4249, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 29743, + Discounts: 143.92, + Sales: 29599.08, + COGS: 1285, + Profit: 28314.08, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1677, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 33540, + Discounts: 2051.2, + Sales: 31488.8, + COGS: 12820, + Profit: 18668.8, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3051, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 381375, + Discounts: 15400, + Sales: 365975, + COGS: 184800, + Profit: 181175, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 3372, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 50580, + Discounts: 588, + Sales: 49992, + COGS: 4900, + Profit: 45092, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1686, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 590100, + Discounts: 38136, + Sales: 551964, + COGS: 354120, + Profit: 197844, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3086, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 46290, + Discounts: 3001.2, + Sales: 43288.8, + COGS: 25010, + Profit: 18278.8, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4150, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 83000, + Discounts: 1132.8, + Sales: 81867.2, + COGS: 7080, + Profit: 74787.2, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3027, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 60540, + Discounts: 1032, + Sales: 59508, + COGS: 6450, + Profit: 53058, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 4359, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1307700, + Discounts: 37488, + Sales: 1270212, + COGS: 390500, + Profit: 879712, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 1589, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 23835, + Discounts: 853.2, + Sales: 22981.8, + COGS: 7110, + Profit: 15871.8, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2679, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 334875, + Discounts: 11140, + Sales: 323735, + COGS: 133680, + Profit: 190055, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3401, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 23807, + Discounts: 705.04, + Sales: 23101.96, + COGS: 6295, + Profit: 16806.96, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2815, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 19705, + Discounts: 613.2, + Sales: 19091.8, + COGS: 5475, + Profit: 13616.8, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2964, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 59280, + Discounts: 2185.6, + Sales: 57094.4, + COGS: 13660, + Profit: 43434.4, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 4173, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1251900, + Discounts: 59040, + Sales: 1192860, + COGS: 615000, + Profit: 577860, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1157, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 8099, + Discounts: 379.68, + Sales: 7719.32, + COGS: 3390, + Profit: 4329.32, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3065, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 21455, + Discounts: 894.88, + Sales: 20560.12, + COGS: 7990, + Profit: 12570.12, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4080, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 81600, + Discounts: 3094.4, + Sales: 78505.6, + COGS: 19340, + Profit: 59165.6, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1713, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 34260, + Discounts: 4788.8, + Sales: 29471.2, + COGS: 29930, + Profit: 458.8, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1691, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 591850, + Discounts: 38136, + Sales: 553714, + COGS: 354120, + Profit: 199594, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2305, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 27660, + Discounts: 574.08, + Sales: 27085.92, + COGS: 1794, + Profit: 25291.92, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3401, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 23807, + Discounts: 1627.92, + Sales: 22179.08, + COGS: 14535, + Profit: 7644.08, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2288, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 16016, + Discounts: 1309.28, + Sales: 14706.72, + COGS: 11690, + Profit: 3016.72, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 4086, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1225800, + Discounts: 15240, + Sales: 1210560, + COGS: 158750, + Profit: 1051810, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2651, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 927850, + Discounts: 16086, + Sales: 911764, + COGS: 149370, + Profit: 762394, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3971, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 27797, + Discounts: 1309.28, + Sales: 26487.72, + COGS: 11690, + Profit: 14797.72, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2512, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 879200, + Discounts: 10668, + Sales: 868532, + COGS: 99060, + Profit: 769472, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2745, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 960750, + Discounts: 11816, + Sales: 948934, + COGS: 109720, + Profit: 839214, + Date: `8/1/20`, + Month: `August`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1903, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 570900, + Discounts: 51216, + Sales: 519684, + COGS: 533500, + Profit: 13816, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2914, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 58280, + Discounts: 1132.8, + Sales: 57147.2, + COGS: 7080, + Profit: 50067.2, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1889, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 13223, + Discounts: 1627.92, + Sales: 11595.08, + COGS: 14535, + Profit: 2939.92, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1466, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 29320, + Discounts: 2185.6, + Sales: 27134.4, + COGS: 13660, + Profit: 13474.4, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 887, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 266100, + Discounts: 59040, + Sales: 207060, + COGS: 615000, + Profit: 407940, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 395, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 7900, + Discounts: 2432, + Sales: 5468, + COGS: 15200, + Profit: 9732, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1693, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 25395, + Discounts: 853.2, + Sales: 24541.8, + COGS: 7110, + Profit: 17431.8, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2649, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 794700, + Discounts: 15240, + Sales: 779460, + COGS: 158750, + Profit: 620710, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 3608, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 72160, + Discounts: 698.4, + Sales: 71461.6, + COGS: 4365, + Profit: 67096.6, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1073, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 321900, + Discounts: 29538, + Sales: 292362, + COGS: 273500, + Profit: 18862, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 2167, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 650100, + Discounts: 102667.5, + Sales: 547432.5, + COGS: 950625, + Profit: 403192.5, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1319, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 461650, + Discounts: 52479, + Sales: 409171, + COGS: 433160, + Profit: 23989, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1252, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 15024, + Discounts: 2506.68, + Sales: 12517.32, + COGS: 6963, + Profit: 5554.32, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1156, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 144500, + Discounts: 31466.25, + Sales: 113033.75, + COGS: 335640, + Profit: 222606.25, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1153, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 345900, + Discounts: 69255, + Sales: 276645, + COGS: 641250, + Profit: 364605, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2720, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 952000, + Discounts: 76135.5, + Sales: 875864.5, + COGS: 628420, + Profit: 247444.5, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3658, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 54870, + Discounts: 4961.25, + Sales: 49908.75, + COGS: 36750, + Profit: 13158.75, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2950, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 885000, + Discounts: 29538, + Sales: 855462, + COGS: 273500, + Profit: 581962, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1821, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 27315, + Discounts: 1656.45, + Sales: 25658.55, + COGS: 12270, + Profit: 13388.55, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1127, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 338100, + Discounts: 35748, + Sales: 302352, + COGS: 331000, + Profit: 28648, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 862, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 107750, + Discounts: 31466.25, + Sales: 76283.75, + COGS: 335640, + Profit: 259356.25, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3805, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 57075, + Discounts: 330.75, + Sales: 56744.25, + COGS: 2450, + Profit: 54294.25, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1415, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 424500, + Discounts: 102424.5, + Sales: 322075.5, + COGS: 948375, + Profit: 626299.5, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2231, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 780850, + Discounts: 41170.5, + Sales: 739679.5, + COGS: 339820, + Profit: 399859.5, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3649, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 456125, + Discounts: 6378.75, + Sales: 449746.25, + COGS: 68040, + Profit: 381706.25, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2948, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 368500, + Discounts: 23737.5, + Sales: 344762.5, + COGS: 253200, + Profit: 91562.5, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3395, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1188250, + Discounts: 39973.5, + Sales: 1148276.5, + COGS: 329940, + Profit: 818336.5, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2650, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 31800, + Discounts: 2112.48, + Sales: 29687.52, + COGS: 5868, + Profit: 23819.52, + Date: `1/1/20`, + Month: `January`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 585, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 175500, + Discounts: 71793, + Sales: 103707, + COGS: 664750, + Profit: 561043, + Date: `2/1/20`, + Month: `February`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1316, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 460600, + Discounts: 42572.25, + Sales: 418027.75, + COGS: 351390, + Profit: 66637.75, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 4459, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 53508, + Discounts: 950.4, + Sales: 52557.6, + COGS: 2640, + Profit: 49917.6, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2711, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 813300, + Discounts: 50409, + Sales: 762891, + COGS: 466750, + Profit: 296141, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3613, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 54195, + Discounts: 1656.45, + Sales: 52538.55, + COGS: 12270, + Profit: 40268.55, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1847, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 230875, + Discounts: 9866.25, + Sales: 221008.75, + COGS: 105240, + Profit: 115768.75, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2996, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1048600, + Discounts: 65236.5, + Sales: 983363.5, + COGS: 538460, + Profit: 444903.5, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2838, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 993300, + Discounts: 39973.5, + Sales: 953326.5, + COGS: 329940, + Profit: 623386.5, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1536, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 30720, + Discounts: 3049.2, + Sales: 27670.8, + COGS: 16940, + Profit: 10730.8, + Date: `11/1/20`, + Month: `November`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1291, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 25820, + Discounts: 1193.4, + Sales: 24626.6, + COGS: 6630, + Profit: 17996.6, + Date: `5/1/20`, + Month: `May`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1213, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 8491, + Discounts: 515.97, + Sales: 7975.03, + COGS: 4095, + Profit: 3880.03, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2370, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 28440, + Discounts: 1706.4, + Sales: 26733.6, + COGS: 4740, + Profit: 21993.6, + Date: `9/1/20`, + Month: `September`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1979, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 13853, + Discounts: 328.23, + Sales: 13524.77, + COGS: 2605, + Profit: 10919.77, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2879, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 57580, + Discounts: 1751.4, + Sales: 55828.6, + COGS: 9730, + Profit: 46098.6, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1707, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 34140, + Discounts: 1868.4, + Sales: 32271.6, + COGS: 10380, + Profit: 21891.6, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2933, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 20531, + Discounts: 226.8, + Sales: 20304.2, + COGS: 1800, + Profit: 18504.2, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1014, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 12168, + Discounts: 2124.36, + Sales: 10043.64, + COGS: 5901, + Profit: 4142.64, + Date: `3/1/20`, + Month: `March`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 693, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 10395, + Discounts: 3547.8, + Sales: 6847.2, + COGS: 26280, + Profit: 19432.8, + Date: `4/1/20`, + Month: `April`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3741, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 26187, + Discounts: 226.8, + Sales: 25960.2, + COGS: 1800, + Profit: 24160.2, + Date: `10/1/20`, + Month: `October`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 3995, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 27965, + Discounts: 328.23, + Sales: 27636.77, + COGS: 2605, + Profit: 25031.77, + Date: `12/1/20`, + Month: `December`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 953, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 19060, + Discounts: 1868.4, + Sales: 17191.6, + COGS: 10380, + Profit: 6811.6, + Date: `6/1/20`, + Month: `June`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2530, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 37950, + Discounts: 2201.18, + Sales: 35748.82, + COGS: 16305, + Profit: 19443.82, + Date: `7/1/20`, + Month: `July`, + Year: `2020` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1372, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 27440, + Discounts: 0, + Sales: 27440, + COGS: 16185, + Profit: 11255, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2762, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 55240, + Discounts: 0, + Sales: 55240, + COGS: 13210, + Profit: 42030, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1464, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 21960, + Discounts: 0, + Sales: 21960, + COGS: 21780, + Profit: 180, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 719, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 10785, + Discounts: 0, + Sales: 10785, + COGS: 8880, + Profit: 1905, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3576, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 53640, + Discounts: 0, + Sales: 53640, + COGS: 24700, + Profit: 28940, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 4422, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1547700, + Discounts: 0, + Sales: 1547700, + COGS: 393380, + Profit: 1154320, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3649, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 54735, + Discounts: 0, + Sales: 54735, + COGS: 9210, + Profit: 45525, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4172, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 50064, + Discounts: 0, + Sales: 50064, + COGS: 7554, + Profit: 42510, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3841, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 76820, + Discounts: 0, + Sales: 76820, + COGS: 18990, + Profit: 57830, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3726, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 44712, + Discounts: 0, + Sales: 44712, + COGS: 4635, + Profit: 40077, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2625, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 39375, + Discounts: 0, + Sales: 39375, + COGS: 24700, + Profit: 14675, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1958, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 244750, + Discounts: 0, + Sales: 244750, + COGS: 319860, + Profit: 75110, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 3271, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 981300, + Discounts: 0, + Sales: 981300, + COGS: 239500, + Profit: 741800, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2091, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 14637, + Discounts: 0, + Sales: 14637, + COGS: 10730, + Profit: 3907, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 2530, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 316250, + Discounts: 0, + Sales: 316250, + COGS: 41400, + Profit: 274850, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2825, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 42375, + Discounts: 0, + Sales: 42375, + COGS: 6150, + Profit: 36225, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2513, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 50260, + Discounts: 0, + Sales: 50260, + COGS: 2920, + Profit: 47340, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 883, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 13245, + Discounts: 0, + Sales: 13245, + COGS: 9740, + Profit: 3505, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2087, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 25044, + Discounts: 0, + Sales: 25044, + COGS: 7554, + Profit: 17490, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2563, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 897050, + Discounts: 0, + Sales: 897050, + COGS: 261560, + Profit: 635490, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2846, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 34152, + Discounts: 0, + Sales: 34152, + COGS: 1101, + Profit: 33051, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 997, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 6979, + Discounts: 0, + Sales: 6979, + COGS: 4415, + Profit: 2564, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3421, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 51315, + Discounts: 0, + Sales: 51315, + COGS: 5490, + Profit: 45825, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Marchesa`, + UnitsSold: 70000, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 1050000, + Discounts: 0, + Sales: 1050000, + COGS: 5490, + Profit: 1044510, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2291, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 687300, + Discounts: 0, + Sales: 687300, + COGS: 197000, + Profit: 490300, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2290, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 34350, + Discounts: 0, + Sales: 34350, + COGS: 24720, + Profit: 9630, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2133, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 14931, + Discounts: 0, + Sales: 14931, + COGS: 5715, + Profit: 9216, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3475, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1216250, + Discounts: 0, + Sales: 1216250, + COGS: 448500, + Profit: 767750, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3686, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 44232, + Discounts: 0, + Sales: 44232, + COGS: 2736, + Profit: 41496, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3319, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 49785, + Discounts: 0, + Sales: 49785, + COGS: 21520, + Profit: 28265, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3617, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 72340, + Discounts: 0, + Sales: 72340, + COGS: 18170, + Profit: 54170, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1266, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 443100, + Discounts: 0, + Sales: 443100, + COGS: 393380, + Profit: 49720, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 894, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 6258, + Discounts: 0, + Sales: 6258, + COGS: 7465, + Profit: 1207, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 2725, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 340625, + Discounts: 0, + Sales: 340625, + COGS: 216480, + Profit: 124145, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3061, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 36732, + Discounts: 0, + Sales: 36732, + COGS: 6483, + Profit: 30249, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3958, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1385300, + Discounts: 0, + Sales: 1385300, + COGS: 261560, + Profit: 1123740, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3920, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 47040, + Discounts: 0, + Sales: 47040, + COGS: 4635, + Profit: 42405, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3381, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 422625, + Discounts: 0, + Sales: 422625, + COGS: 338520, + Profit: 84105, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1094, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 136750, + Discounts: 0, + Sales: 136750, + COGS: 41400, + Profit: 95350, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4307, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 1292100, + Discounts: 0, + Sales: 1292100, + COGS: 500250, + Profit: 791850, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 878, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 10536, + Discounts: 0, + Sales: 10536, + COGS: 8514, + Profit: 2022, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 496, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 7440, + Discounts: 0, + Sales: 7440, + COGS: 21780, + Profit: 14340, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3367, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 50505, + Discounts: 0, + Sales: 50505, + COGS: 8880, + Profit: 41625, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3880, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1358000, + Discounts: 0, + Sales: 1358000, + COGS: 397020, + Profit: 960980, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2055, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 616500, + Discounts: 0, + Sales: 616500, + COGS: 537750, + Profit: 78750, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4041, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 80820, + Discounts: 0, + Sales: 80820, + COGS: 18170, + Profit: 62650, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 3237, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1132950, + Discounts: 0, + Sales: 1132950, + COGS: 715000, + Profit: 417950, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 630, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 7560, + Discounts: 0, + Sales: 7560, + COGS: 5859, + Profit: 1701, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4210, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 526250, + Discounts: 0, + Sales: 526250, + COGS: 506340, + Profit: 19910, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1127, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 22540, + Discounts: 0, + Sales: 22540, + COGS: 18990, + Profit: 3550, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 3438, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 24066, + Discounts: 0, + Sales: 24066, + COGS: 8430, + Profit: 15636, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2015, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 24180, + Discounts: 0, + Sales: 24180, + COGS: 6423, + Profit: 17757, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2534, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 17738, + Discounts: 0, + Sales: 17738, + COGS: 5715, + Profit: 12023, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1384, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 20760, + Discounts: 0, + Sales: 20760, + COGS: 6150, + Profit: 14610, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3561, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 24927, + Discounts: 276.15, + Sales: 24650.85, + COGS: 19725, + Profit: 4925.85, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1823, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 27345, + Discounts: 344.4, + Sales: 27000.6, + COGS: 22960, + Profit: 4040.6, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2795, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 19565, + Discounts: 72.1, + Sales: 19492.9, + COGS: 5150, + Profit: 14342.9, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 457, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 3199, + Discounts: 44.73, + Sales: 3154.27, + COGS: 3195, + Profit: 40.73, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3785, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 26495, + Discounts: 92.82, + Sales: 26402.18, + COGS: 6630, + Profit: 19772.18, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 748, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 8976, + Discounts: 222.96, + Sales: 8753.04, + COGS: 5574, + Profit: 3179.04, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1021, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 357350, + Discounts: 4235, + Sales: 353115, + COGS: 314600, + Profit: 38515, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2076, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 14532, + Discounts: 177.03, + Sales: 14354.97, + COGS: 12645, + Profit: 1709.97, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 4316, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 51792, + Discounts: 173.4, + Sales: 51618.6, + COGS: 4335, + Profit: 47283.6, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2654, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 331750, + Discounts: 412.5, + Sales: 331337.5, + COGS: 39600, + Profit: 291737.5, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 4174, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 50088, + Discounts: 320.52, + Sales: 49767.48, + COGS: 8013, + Profit: 41754.48, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1675, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 20100, + Discounts: 91.92, + Sales: 20008.08, + COGS: 2298, + Profit: 17710.08, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1572, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 471600, + Discounts: 1482, + Sales: 470118, + COGS: 123500, + Profit: 346618, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3736, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1307600, + Discounts: 4889.5, + Sales: 1302710.5, + COGS: 363220, + Profit: 939490.5, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1914, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 669900, + Discounts: 7542.5, + Sales: 662357.5, + COGS: 560300, + Profit: 102057.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2742, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 41130, + Discounts: 332.1, + Sales: 40797.9, + COGS: 22140, + Profit: 18657.9, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1499, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 449700, + Discounts: 6903, + Sales: 442797, + COGS: 575250, + Profit: 132453, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3772, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 75440, + Discounts: 275.1, + Sales: 75164.9, + COGS: 13755, + Profit: 61409.9, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1112, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 7784, + Discounts: 128.1, + Sales: 7655.9, + COGS: 9150, + Profit: 1494.1, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1723, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 516900, + Discounts: 7494, + Sales: 509406, + COGS: 624500, + Profit: 115094, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 423, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 52875, + Discounts: 828.75, + Sales: 52046.25, + COGS: 79560, + Profit: 27513.75, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2368, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 35520, + Discounts: 227.1, + Sales: 35292.9, + COGS: 15140, + Profit: 20152.9, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1586, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 11102, + Discounts: 314.48, + Sales: 10787.52, + COGS: 22462.5, + Profit: 11674.98, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3386, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 423250, + Discounts: 908.75, + Sales: 422341.25, + COGS: 87240, + Profit: 335101.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 852, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 106500, + Discounts: 983.75, + Sales: 105516.25, + COGS: 94440, + Profit: 11076.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2783, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 347875, + Discounts: 2278.75, + Sales: 345596.25, + COGS: 218760, + Profit: 126836.25, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2684, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 40260, + Discounts: 112.05, + Sales: 40147.95, + COGS: 7470, + Profit: 32677.95, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4393, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 52716, + Discounts: 91.92, + Sales: 52624.08, + COGS: 2298, + Profit: 50326.08, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4083, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1224900, + Discounts: 8715, + Sales: 1216185, + COGS: 726250, + Profit: 489935, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2816, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 985600, + Discounts: 7542.5, + Sales: 978057.5, + COGS: 560300, + Profit: 417757.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 4294, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 85880, + Discounts: 772.8, + Sales: 85107.2, + COGS: 38640, + Profit: 46467.2, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2856, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 19992, + Discounts: 25.34, + Sales: 19966.66, + COGS: 1810, + Profit: 18156.66, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1407, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 175875, + Discounts: 1153.75, + Sales: 174721.25, + COGS: 110760, + Profit: 63961.25, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3850, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 481250, + Discounts: 828.75, + Sales: 480421.25, + COGS: 79560, + Profit: 400861.25, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2856, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 19992, + Discounts: 146.44, + Sales: 19845.56, + COGS: 10460, + Profit: 9385.56, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1265, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 8855, + Discounts: 18.41, + Sales: 8836.59, + COGS: 1315, + Profit: 7521.59, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3892, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1362200, + Discounts: 3302.25, + Sales: 1358897.75, + COGS: 245310, + Profit: 1113587.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 3068, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 383500, + Discounts: 908.75, + Sales: 382591.25, + COGS: 87240, + Profit: 295351.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2181, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 272625, + Discounts: 983.75, + Sales: 271641.25, + COGS: 94440, + Profit: 177201.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1356, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 406800, + Discounts: 2958, + Sales: 403842, + COGS: 246500, + Profit: 157342, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 2545, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 763500, + Discounts: 1482, + Sales: 762018, + COGS: 123500, + Profit: 638518, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1814, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 634900, + Discounts: 4889.5, + Sales: 630010.5, + COGS: 363220, + Profit: 266790.5, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1495, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 186875, + Discounts: 2180, + Sales: 184695, + COGS: 209280, + Profit: 24585, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1154, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 13848, + Discounts: 238.68, + Sales: 13609.32, + COGS: 5967, + Profit: 7642.32, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 4180, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 62700, + Discounts: 48.15, + Sales: 62651.85, + COGS: 3210, + Profit: 59441.85, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1463, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 182875, + Discounts: 1856.25, + Sales: 181018.75, + COGS: 89100, + Profit: 91918.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 215, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 2580, + Discounts: 310.8, + Sales: 2269.2, + COGS: 3885, + Profit: 1615.8, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 4099, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 1229700, + Discounts: 1284, + Sales: 1228416, + COGS: 53500, + Profit: 1174916, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 2660, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 18620, + Discounts: 300.3, + Sales: 18319.7, + COGS: 10725, + Profit: 7594.7, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 566, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 198100, + Discounts: 19964, + Sales: 178136, + COGS: 741520, + Profit: 563384, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 3255, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 39060, + Discounts: 274.08, + Sales: 38785.92, + COGS: 3426, + Profit: 35359.92, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 772, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 15440, + Discounts: 626.4, + Sales: 14813.6, + COGS: 15660, + Profit: 846.4, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1135, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 13620, + Discounts: 165.6, + Sales: 13454.4, + COGS: 2070, + Profit: 11384.4, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 3826, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 478250, + Discounts: 4150, + Sales: 474100, + COGS: 199200, + Profit: 274900, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1193, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 17895, + Discounts: 708.9, + Sales: 17186.1, + COGS: 23630, + Profit: 6443.9, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2530, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 759000, + Discounts: 5508, + Sales: 753492, + COGS: 229500, + Profit: 523992, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3451, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1035300, + Discounts: 10368, + Sales: 1024932, + COGS: 432000, + Profit: 592932, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3059, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 36708, + Discounts: 274.08, + Sales: 36433.92, + COGS: 3426, + Profit: 33007.92, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3957, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 494625, + Discounts: 1655, + Sales: 492970, + COGS: 79440, + Profit: 413530, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3444, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 41328, + Discounts: 310.8, + Sales: 41017.2, + COGS: 3885, + Profit: 37132.2, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4388, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 548500, + Discounts: 2022.5, + Sales: 546477.5, + COGS: 97080, + Profit: 449397.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2106, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 263250, + Discounts: 5362.5, + Sales: 257887.5, + COGS: 257400, + Profit: 487.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 799, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 9588, + Discounts: 428.4, + Sales: 9159.6, + COGS: 5355, + Profit: 3804.6, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3154, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 946200, + Discounts: 11496, + Sales: 934704, + COGS: 479000, + Profit: 455704, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4108, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1437800, + Discounts: 19964, + Sales: 1417836, + COGS: 741520, + Profit: 676316, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3760, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 470000, + Discounts: 6822.5, + Sales: 463177.5, + COGS: 327480, + Profit: 135697.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 377, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 5655, + Discounts: 577.5, + Sales: 5077.5, + COGS: 19250, + Profit: 14172.5, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2110, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 14770, + Discounts: 281.82, + Sales: 14488.18, + COGS: 10065, + Profit: 4423.18, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2334, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 28008, + Discounts: 253.2, + Sales: 27754.8, + COGS: 3165, + Profit: 24589.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 580, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 6960, + Discounts: 260.16, + Sales: 6699.84, + COGS: 3252, + Profit: 3447.84, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2610, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 52200, + Discounts: 626.4, + Sales: 51573.6, + COGS: 15660, + Profit: 35913.6, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 1598, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 559300, + Discounts: 20762, + Sales: 538538, + COGS: 771160, + Profit: 232622, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 1459, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 510650, + Discounts: 20139, + Sales: 490511, + COGS: 748020, + Profit: 257509, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3284, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 410500, + Discounts: 2022.5, + Sales: 408477.5, + COGS: 97080, + Profit: 311397.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 1197, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 149625, + Discounts: 5362.5, + Sales: 144262.5, + COGS: 257400, + Profit: 113137.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3774, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 45288, + Discounts: 253.2, + Sales: 45034.8, + COGS: 3165, + Profit: 41869.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2303, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 46060, + Discounts: 217.6, + Sales: 45842.4, + COGS: 5440, + Profit: 40402.4, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2572, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 30864, + Discounts: 260.16, + Sales: 30603.84, + COGS: 3252, + Profit: 27351.84, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 320, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 40000, + Discounts: 1655, + Sales: 38345, + COGS: 79440, + Profit: 41095, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2126, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 637800, + Discounts: 1284, + Sales: 636516, + COGS: 53500, + Profit: 583016, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3275, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1146250, + Discounts: 20139, + Sales: 1126111, + COGS: 748020, + Profit: 378091, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3582, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 447750, + Discounts: 6822.5, + Sales: 440927.5, + COGS: 327480, + Profit: 113447.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 783, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 274050, + Discounts: 1862, + Sales: 272188, + COGS: 69160, + Profit: 203028, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1202, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 420700, + Discounts: 13580, + Sales: 407120, + COGS: 504400, + Profit: 97280, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4056, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 1216800, + Discounts: 1554, + Sales: 1215246, + COGS: 64750, + Profit: 1150496, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2144, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 643200, + Discounts: 6606, + Sales: 636594, + COGS: 275250, + Profit: 361344, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 3502, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 437750, + Discounts: 5690, + Sales: 432060, + COGS: 273120, + Profit: 158940, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1397, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 488950, + Discounts: 20762, + Sales: 468188, + COGS: 771160, + Profit: 302972, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 679, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 13580, + Discounts: 494.4, + Sales: 13085.6, + COGS: 12360, + Profit: 725.6, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2351, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 47020, + Discounts: 376.4, + Sales: 46643.6, + COGS: 9410, + Profit: 37233.6, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2043, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 612900, + Discounts: 11496, + Sales: 601404, + COGS: 479000, + Profit: 122404, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 3565, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 445625, + Discounts: 15913.13, + Sales: 429711.88, + COGS: 509220, + Profit: 79508.13, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1401, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 28020, + Discounts: 1548, + Sales: 26472, + COGS: 25800, + Profit: 672, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2077, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 623100, + Discounts: 6201, + Sales: 616899, + COGS: 172250, + Profit: 444649, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 3643, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 43716, + Discounts: 700.92, + Sales: 43015.08, + COGS: 5841, + Profit: 37174.08, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1105, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 13260, + Discounts: 326.88, + Sales: 12933.12, + COGS: 2724, + Profit: 10209.12, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2960, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 20720, + Discounts: 411.18, + Sales: 20308.82, + COGS: 9790, + Profit: 10518.82, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1201, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 14412, + Discounts: 684.36, + Sales: 13727.64, + COGS: 5703, + Profit: 8024.64, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 2321, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 16247, + Discounts: 114.24, + Sales: 16132.76, + COGS: 2720, + Profit: 13412.76, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3640, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 1274000, + Discounts: 18868.5, + Sales: 1255131.5, + COGS: 467220, + Profit: 787911.5, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3972, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 496500, + Discounts: 4826.25, + Sales: 491673.75, + COGS: 154440, + Profit: 337233.75, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3878, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 484750, + Discounts: 6397.5, + Sales: 478352.5, + COGS: 204720, + Profit: 273632.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2278, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 683400, + Discounts: 21910.5, + Sales: 661489.5, + COGS: 608625, + Profit: 52864.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1075, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 134375, + Discounts: 6652.5, + Sales: 127722.5, + COGS: 212880, + Profit: 85157.5, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 4050, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 48600, + Discounts: 684.36, + Sales: 47915.64, + COGS: 5703, + Profit: 42212.64, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3035, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 910500, + Discounts: 6201, + Sales: 904299, + COGS: 172250, + Profit: 732049, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3636, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 454500, + Discounts: 5887.5, + Sales: 448612.5, + COGS: 188400, + Profit: 260212.5, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1379, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 16548, + Discounts: 493.02, + Sales: 16054.98, + COGS: 4108.5, + Profit: 11946.48, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4492, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 561500, + Discounts: 7533.75, + Sales: 553966.25, + COGS: 241080, + Profit: 312886.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 764, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 11460, + Discounts: 875.25, + Sales: 10584.75, + COGS: 19450, + Profit: 8865.25, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1744, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 218000, + Discounts: 4826.25, + Sales: 213173.75, + COGS: 154440, + Profit: 58733.75, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2341, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 292625, + Discounts: 6397.5, + Sales: 286227.5, + COGS: 204720, + Profit: 81507.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3835, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 479375, + Discounts: 7533.75, + Sales: 471841.25, + COGS: 241080, + Profit: 230761.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1161, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 348300, + Discounts: 25596, + Sales: 322704, + COGS: 711000, + Profit: 388296, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 876, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 10512, + Discounts: 689.76, + Sales: 9822.24, + COGS: 5748, + Profit: 4074.24, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1705, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 213125, + Discounts: 5887.5, + Sales: 207237.5, + COGS: 188400, + Profit: 18837.5, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1805, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 541500, + Discounts: 16866, + Sales: 524634, + COGS: 468500, + Profit: 56134, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 389, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 136150, + Discounts: 17241, + Sales: 118909, + COGS: 426920, + Profit: 308011, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2745, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 41175, + Discounts: 875.25, + Sales: 40299.75, + COGS: 19450, + Profit: 20849.75, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1459, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 29180, + Discounts: 498.6, + Sales: 28681.4, + COGS: 8310, + Profit: 20371.4, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3938, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 27566, + Discounts: 369.6, + Sales: 27196.4, + COGS: 8800, + Profit: 18396.4, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 4236, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 84720, + Discounts: 2310.3, + Sales: 82409.7, + COGS: 38505, + Profit: 43904.7, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3627, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 43524, + Discounts: 892.44, + Sales: 42631.56, + COGS: 7437, + Profit: 35194.56, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1756, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 26340, + Discounts: 1218.6, + Sales: 25121.4, + COGS: 20310, + Profit: 4811.4, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 307, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 4605, + Discounts: 1218.6, + Sales: 3386.4, + COGS: 20310, + Profit: 16923.6, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 4489, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 67335, + Discounts: 1356.6, + Sales: 65978.4, + COGS: 22610, + Profit: 43368.4, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2167, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 43340, + Discounts: 588.8, + Sales: 42751.2, + COGS: 7360, + Profit: 35391.2, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1137, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 7959, + Discounts: 798.28, + Sales: 7160.72, + COGS: 14255, + Profit: 7094.28, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1222, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 366600, + Discounts: 24252, + Sales: 342348, + COGS: 505250, + Profit: 162902, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 489, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 171150, + Discounts: 3836, + Sales: 167314, + COGS: 71240, + Profit: 96074, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4133, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 61995, + Discounts: 1180.2, + Sales: 60814.8, + COGS: 19670, + Profit: 41144.8, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2743, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 822900, + Discounts: 22308, + Sales: 800592, + COGS: 464750, + Profit: 335842, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 3699, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 25893, + Discounts: 798.28, + Sales: 25094.72, + COGS: 14255, + Profit: 10839.72, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 4460, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1338000, + Discounts: 24252, + Sales: 1313748, + COGS: 505250, + Profit: 808498, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1232, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 154000, + Discounts: 5690, + Sales: 148310, + COGS: 136560, + Profit: 11750, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2586, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 18102, + Discounts: 1190.28, + Sales: 16911.72, + COGS: 21255, + Profit: 4343.28, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1332, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 166500, + Discounts: 3975, + Sales: 162525, + COGS: 95400, + Profit: 67125, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4487, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1346100, + Discounts: 16974, + Sales: 1329126, + COGS: 353625, + Profit: 975501, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3862, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1158600, + Discounts: 35016, + Sales: 1123584, + COGS: 729500, + Profit: 394084, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1765, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 617750, + Discounts: 48300, + Sales: 569450, + COGS: 897000, + Profit: 327550, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3533, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 441625, + Discounts: 14940, + Sales: 426685, + COGS: 358560, + Profit: 68125, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2016, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 30240, + Discounts: 130.8, + Sales: 30109.2, + COGS: 2180, + Profit: 27929.2, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2938, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 58760, + Discounts: 1659.2, + Sales: 57100.8, + COGS: 20740, + Profit: 36360.8, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3352, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 67040, + Discounts: 844.8, + Sales: 66195.2, + COGS: 10560, + Profit: 55635.2, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4409, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 66135, + Discounts: 402.6, + Sales: 65732.4, + COGS: 6710, + Profit: 59022.4, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3323, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 49845, + Discounts: 908.4, + Sales: 48936.6, + COGS: 15140, + Profit: 33796.6, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2430, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 850500, + Discounts: 3836, + Sales: 846664, + COGS: 71240, + Profit: 775424, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 535, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 66875, + Discounts: 5690, + Sales: 61185, + COGS: 136560, + Profit: 75375, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1523, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 18276, + Discounts: 703.2, + Sales: 17572.8, + COGS: 4395, + Profit: 13177.8, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3631, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 72620, + Discounts: 2116.8, + Sales: 70503.2, + COGS: 26460, + Profit: 44043.2, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1782, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 623700, + Discounts: 30478, + Sales: 593222, + COGS: 566020, + Profit: 27202, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 347, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 4164, + Discounts: 415.68, + Sales: 3748.32, + COGS: 2598, + Profit: 1150.32, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 4147, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1451450, + Discounts: 4886, + Sales: 1446564, + COGS: 90740, + Profit: 1355824, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3509, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 1228150, + Discounts: 30478, + Sales: 1197672, + COGS: 566020, + Profit: 631652, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 2774, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 41610, + Discounts: 908.4, + Sales: 40701.6, + COGS: 15140, + Profit: 25561.6, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2943, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1030050, + Discounts: 26110, + Sales: 1003940, + COGS: 484900, + Profit: 519040, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 4037, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 504625, + Discounts: 5370, + Sales: 499255, + COGS: 128880, + Profit: 370375, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4146, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1451100, + Discounts: 26698, + Sales: 1424402, + COGS: 495820, + Profit: 928582, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 4123, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 61845, + Discounts: 402.6, + Sales: 61442.4, + COGS: 6710, + Profit: 54732.4, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1337, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 467950, + Discounts: 24892, + Sales: 443058, + COGS: 462280, + Profit: 19222, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 599, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 4193, + Discounts: 405.65, + Sales: 3787.35, + COGS: 5795, + Profit: 2007.65, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 725, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 5075, + Discounts: 480.2, + Sales: 4594.8, + COGS: 6860, + Profit: 2265.2, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 477, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 3339, + Discounts: 822.15, + Sales: 2516.85, + COGS: 11745, + Profit: 9228.15, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2325, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 16275, + Discounts: 941.15, + Sales: 15333.85, + COGS: 13445, + Profit: 1888.85, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 675, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 8100, + Discounts: 1458.6, + Sales: 6641.4, + COGS: 7293, + Profit: 651.6, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2990, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 35880, + Discounts: 1458.6, + Sales: 34421.4, + COGS: 7293, + Profit: 27128.4, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1072, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 7504, + Discounts: 941.15, + Sales: 6562.85, + COGS: 13445, + Profit: 6882.15, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1048, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 7336, + Discounts: 589.05, + Sales: 6746.95, + COGS: 8415, + Profit: 1668.05, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 469, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 5628, + Discounts: 673.8, + Sales: 4954.2, + COGS: 3369, + Profit: 1585.2, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 804, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 5628, + Discounts: 405.65, + Sales: 5222.35, + COGS: 5795, + Profit: 572.65, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 4240, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 50880, + Discounts: 1119, + Sales: 49761, + COGS: 5595, + Profit: 44166, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1976, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 23712, + Discounts: 669.6, + Sales: 23042.4, + COGS: 3348, + Profit: 19694.4, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1984, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 39680, + Discounts: 1563, + Sales: 38117, + COGS: 15630, + Profit: 22487, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 480, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 144000, + Discounts: 14865, + Sales: 129135, + COGS: 247750, + Profit: 118615, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 3551, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 24857, + Discounts: 355.6, + Sales: 24501.4, + COGS: 5080, + Profit: 19421.4, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1205, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 18075, + Discounts: 2093.25, + Sales: 15981.75, + COGS: 27910, + Profit: 11928.25, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2480, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 17360, + Discounts: 199.5, + Sales: 17160.5, + COGS: 2850, + Profit: 14310.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 2926, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 20482, + Discounts: 870.45, + Sales: 19611.55, + COGS: 12435, + Profit: 7176.55, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3210, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 1123500, + Discounts: 24228.75, + Sales: 1099271.25, + COGS: 359970, + Profit: 739301.25, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 3221, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 402625, + Discounts: 22668.75, + Sales: 379956.25, + COGS: 435240, + Profit: 55283.75, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2389, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 836150, + Discounts: 12600, + Sales: 823550, + COGS: 187200, + Profit: 636350, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 1127, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 13524, + Discounts: 1405.2, + Sales: 12118.8, + COGS: 7026, + Profit: 5092.8, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 319, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 95700, + Discounts: 16500, + Sales: 79200, + COGS: 275000, + Profit: 195800, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1610, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 32200, + Discounts: 1303, + Sales: 30897, + COGS: 13030, + Profit: 17867, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4100, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 512500, + Discounts: 18700, + Sales: 493800, + COGS: 359040, + Profit: 134760, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1012, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 126500, + Discounts: 14906.25, + Sales: 111593.75, + COGS: 286200, + Profit: 174606.25, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3337, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1001100, + Discounts: 24105, + Sales: 976995, + COGS: 401750, + Profit: 575245, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3955, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 27685, + Discounts: 814.45, + Sales: 26870.55, + COGS: 11635, + Profit: 15235.55, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4347, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1304100, + Discounts: 14865, + Sales: 1289235, + COGS: 247750, + Profit: 1041485, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1548, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 541800, + Discounts: 10535, + Sales: 531265, + COGS: 156520, + Profit: 374745, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2153, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 32295, + Discounts: 1965, + Sales: 30330, + COGS: 26200, + Profit: 4130, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3789, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1326150, + Discounts: 21490, + Sales: 1304660, + COGS: 319280, + Profit: 985380, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4364, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 87280, + Discounts: 1389, + Sales: 85891, + COGS: 13890, + Profit: 72001, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4126, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 515750, + Discounts: 5381.25, + Sales: 510368.75, + COGS: 103320, + Profit: 407048.75, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1343, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 167875, + Discounts: 4400, + Sales: 163475, + COGS: 84480, + Profit: 78995, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 245, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 4900, + Discounts: 1802, + Sales: 3098, + COGS: 18020, + Profit: 14922, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3376, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 67520, + Discounts: 2663, + Sales: 64857, + COGS: 26630, + Profit: 38227, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1401, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 9807, + Discounts: 747.6, + Sales: 9059.4, + COGS: 10680, + Profit: 1620.6, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3483, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 52245, + Discounts: 1587, + Sales: 50658, + COGS: 21160, + Profit: 29498, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2244, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 33660, + Discounts: 416.25, + Sales: 33243.75, + COGS: 5550, + Profit: 27693.75, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 1360, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 20400, + Discounts: 2145.75, + Sales: 18254.25, + COGS: 28610, + Profit: 10355.75, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 279, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 34875, + Discounts: 5043.75, + Sales: 29831.25, + COGS: 96840, + Profit: 67008.75, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2521, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 882350, + Discounts: 10535, + Sales: 871815, + COGS: 156520, + Profit: 715295, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2433, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 48660, + Discounts: 2832, + Sales: 45828, + COGS: 28320, + Profit: 17508, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1738, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 34760, + Discounts: 1579, + Sales: 33181, + COGS: 15790, + Profit: 17391, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1106, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 138250, + Discounts: 5381.25, + Sales: 132868.75, + COGS: 103320, + Profit: 29548.75, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3379, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 422375, + Discounts: 4400, + Sales: 417975, + COGS: 84480, + Profit: 333495, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1221, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 24420, + Discounts: 1033, + Sales: 23387, + COGS: 10330, + Profit: 13057, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 213, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 63900, + Discounts: 18750, + Sales: 45150, + COGS: 312500, + Profit: 267350, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3335, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 66700, + Discounts: 1389, + Sales: 65311, + COGS: 13890, + Profit: 51421, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1260, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 25200, + Discounts: 1265, + Sales: 23935, + COGS: 12650, + Profit: 11285, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3034, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 60680, + Discounts: 2297, + Sales: 58383, + COGS: 22970, + Profit: 35413, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2929, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 58580, + Discounts: 2663, + Sales: 55917, + COGS: 26630, + Profit: 29287, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2389, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 16723, + Discounts: 199.5, + Sales: 16523.5, + COGS: 2850, + Profit: 13673.5, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3086, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 21602, + Discounts: 870.45, + Sales: 20731.55, + COGS: 12435, + Profit: 8296.55, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 745, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 260750, + Discounts: 23625, + Sales: 237125, + COGS: 351000, + Profit: 113875, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1266, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 443100, + Discounts: 9660, + Sales: 433440, + COGS: 143520, + Profit: 289920, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 3790, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1326500, + Discounts: 21490, + Sales: 1305010, + COGS: 319280, + Profit: 985730, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 4287, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 1286100, + Discounts: 18750, + Sales: 1267350, + COGS: 312500, + Profit: 954850, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3193, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 47895, + Discounts: 3420.9, + Sales: 44474.1, + COGS: 38010, + Profit: 6464.1, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1967, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 39340, + Discounts: 1341, + Sales: 37999, + COGS: 11175, + Profit: 26824, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 631, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 9465, + Discounts: 2559.6, + Sales: 6905.4, + COGS: 28440, + Profit: 21534.6, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3469, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 41628, + Discounts: 404.64, + Sales: 41223.36, + COGS: 1686, + Profit: 39537.36, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 570, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 6840, + Discounts: 1655.28, + Sales: 5184.72, + COGS: 6897, + Profit: 1712.28, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 3215, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 48225, + Discounts: 1827, + Sales: 46398, + COGS: 20300, + Profit: 26098, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 3754, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 26278, + Discounts: 110.46, + Sales: 26167.54, + COGS: 1315, + Profit: 24852.54, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2187, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 273375, + Discounts: 6652.5, + Sales: 266722.5, + COGS: 106440, + Profit: 160282.5, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1959, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 685650, + Discounts: 20580, + Sales: 665070, + COGS: 254800, + Profit: 410270, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2181, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 763350, + Discounts: 30660, + Sales: 732690, + COGS: 379600, + Profit: 353090, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3559, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 24913, + Discounts: 589.26, + Sales: 24323.74, + COGS: 7015, + Profit: 17308.74, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2205, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 26460, + Discounts: 1960.56, + Sales: 24499.44, + COGS: 8169, + Profit: 16330.44, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1890, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 661500, + Discounts: 31416, + Sales: 630084, + COGS: 388960, + Profit: 241124, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1296, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 15552, + Discounts: 1655.28, + Sales: 13896.72, + COGS: 6897, + Profit: 6999.72, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 775, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 271250, + Discounts: 15267, + Sales: 255983, + COGS: 189020, + Profit: 66963, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2417, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 302125, + Discounts: 7140, + Sales: 294985, + COGS: 114240, + Profit: 180745, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1158, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 144750, + Discounts: 20662.5, + Sales: 124087.5, + COGS: 330600, + Profit: 206512.5, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 803, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 12045, + Discounts: 1377, + Sales: 10668, + COGS: 15300, + Profit: 4632, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3705, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1296750, + Discounts: 31416, + Sales: 1265334, + COGS: 388960, + Profit: 876374, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 589, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 4123, + Discounts: 629.16, + Sales: 3493.84, + COGS: 7490, + Profit: 3996.16, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3797, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1139100, + Discounts: 21978, + Sales: 1117122, + COGS: 305250, + Profit: 811872, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1321, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 462350, + Discounts: 43596, + Sales: 418754, + COGS: 539760, + Profit: 121006, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3999, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 59985, + Discounts: 2559.6, + Sales: 57425.4, + COGS: 28440, + Profit: 28985.4, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 4256, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 29792, + Discounts: 629.16, + Sales: 29162.84, + COGS: 7490, + Profit: 21672.84, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1643, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 492900, + Discounts: 21978, + Sales: 470922, + COGS: 305250, + Profit: 165672, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1912, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 38240, + Discounts: 1347.6, + Sales: 36892.4, + COGS: 11230, + Profit: 25662.4, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1610, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 483000, + Discounts: 43848, + Sales: 439152, + COGS: 609000, + Profit: 169848, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2160, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 270000, + Discounts: 14906.25, + Sales: 255093.75, + COGS: 238500, + Profit: 16593.75, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 466, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 163100, + Discounts: 35259, + Sales: 127841, + COGS: 436540, + Profit: 308699, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 328, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 114800, + Discounts: 15267, + Sales: 99533, + COGS: 189020, + Profit: 89487, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 4099, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 28693, + Discounts: 589.26, + Sales: 28103.74, + COGS: 7015, + Profit: 21088.74, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 990, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 346500, + Discounts: 43596, + Sales: 302904, + COGS: 539760, + Profit: 236856, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1433, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 28660, + Discounts: 2108.4, + Sales: 26551.6, + COGS: 17570, + Profit: 8981.6, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1478, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 22170, + Discounts: 1978.2, + Sales: 20191.8, + COGS: 21980, + Profit: 1788.2, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3798, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 56970, + Discounts: 1568.7, + Sales: 55401.3, + COGS: 17430, + Profit: 37971.3, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 447, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 6705, + Discounts: 1037.7, + Sales: 5667.3, + COGS: 11530, + Profit: 5862.7, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1711, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 34220, + Discounts: 2108.4, + Sales: 32111.6, + COGS: 17570, + Profit: 14541.6, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 745, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 14900, + Discounts: 1201.2, + Sales: 13698.8, + COGS: 10010, + Profit: 3688.8, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 1732, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 12124, + Discounts: 559.86, + Sales: 11564.14, + COGS: 6665, + Profit: 4899.14, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1759, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 26385, + Discounts: 1037.7, + Sales: 25347.3, + COGS: 11530, + Profit: 13817.3, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 338, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 4056, + Discounts: 610.68, + Sales: 3445.32, + COGS: 2181, + Profit: 1264.32, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 3911, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 46932, + Discounts: 1582.56, + Sales: 45349.44, + COGS: 5652, + Profit: 39697.44, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3691, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 73820, + Discounts: 2567.6, + Sales: 71252.4, + COGS: 18340, + Profit: 52912.4, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 4473, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 53676, + Discounts: 1965.6, + Sales: 51710.4, + COGS: 7020, + Profit: 44690.4, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 383, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 4596, + Discounts: 1967.28, + Sales: 2628.72, + COGS: 7026, + Profit: 4397.28, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3105, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 21735, + Discounts: 505.19, + Sales: 21229.81, + COGS: 5155, + Profit: 16074.81, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1062, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 15930, + Discounts: 1325.1, + Sales: 14604.9, + COGS: 12620, + Profit: 1984.9, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 4083, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 28581, + Discounts: 556.15, + Sales: 28024.85, + COGS: 5675, + Profit: 22349.85, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3974, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 27818, + Discounts: 268.03, + Sales: 27549.97, + COGS: 2735, + Profit: 24814.97, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3723, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 26061, + Discounts: 775.18, + Sales: 25285.82, + COGS: 7910, + Profit: 17375.82, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2435, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 29220, + Discounts: 1460.34, + Sales: 27759.66, + COGS: 5215.5, + Profit: 22544.16, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 1678, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 20136, + Discounts: 1860.6, + Sales: 18275.4, + COGS: 6645, + Profit: 11630.4, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1763, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 12341, + Discounts: 775.18, + Sales: 11565.82, + COGS: 7910, + Profit: 3655.82, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 4473, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 31311, + Discounts: 556.15, + Sales: 30754.85, + COGS: 5675, + Profit: 25079.85, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1246, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 436100, + Discounts: 43144.5, + Sales: 392955.5, + COGS: 457860, + Profit: 64904.5, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1615, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 484500, + Discounts: 9408, + Sales: 475092, + COGS: 112000, + Profit: 363092, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 749, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 224700, + Discounts: 45801, + Sales: 178899, + COGS: 545250, + Profit: 366351, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1318, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 26360, + Discounts: 2766.4, + Sales: 23593.6, + COGS: 19760, + Profit: 3833.6, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 2882, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 864600, + Discounts: 45801, + Sales: 818799, + COGS: 545250, + Profit: 273549, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3039, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 379875, + Discounts: 21875, + Sales: 358000, + COGS: 300000, + Profit: 58000, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2484, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 745200, + Discounts: 35742, + Sales: 709458, + COGS: 425500, + Profit: 283958, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3169, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 950700, + Discounts: 9408, + Sales: 941292, + COGS: 112000, + Profit: 829292, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4080, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 510000, + Discounts: 30738.75, + Sales: 479261.25, + COGS: 421560, + Profit: 57701.25, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3943, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 59145, + Discounts: 2206.05, + Sales: 56938.95, + COGS: 21010, + Profit: 35928.95, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 784, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 11760, + Discounts: 3077.55, + Sales: 8682.45, + COGS: 29310, + Profit: 20627.55, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 253, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 5060, + Discounts: 2149, + Sales: 2911, + COGS: 15350, + Profit: 12439, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1316, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 394800, + Discounts: 23583, + Sales: 371217, + COGS: 280750, + Profit: 90467, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 808, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 242400, + Discounts: 29484, + Sales: 212916, + COGS: 351000, + Profit: 138084, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3295, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 39540, + Discounts: 2320.92, + Sales: 37219.08, + COGS: 8289, + Profit: 28930.08, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 520, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 3640, + Discounts: 1041.25, + Sales: 2598.75, + COGS: 10625, + Profit: 8026.25, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 799, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 239700, + Discounts: 34839, + Sales: 204861, + COGS: 414750, + Profit: 209889, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3942, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 78840, + Discounts: 852.6, + Sales: 77987.4, + COGS: 6090, + Profit: 71897.4, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2498, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 312250, + Discounts: 18261.25, + Sales: 293988.75, + COGS: 250440, + Profit: 43548.75, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 2517, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 50340, + Discounts: 2766.4, + Sales: 47573.6, + COGS: 19760, + Profit: 27813.6, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3182, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 63640, + Discounts: 1989.4, + Sales: 61650.6, + COGS: 14210, + Profit: 47440.6, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1145, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 343500, + Discounts: 28812, + Sales: 314688, + COGS: 343000, + Profit: 28312, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 895, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 17900, + Discounts: 823.2, + Sales: 17076.8, + COGS: 5880, + Profit: 11196.8, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3814, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 45768, + Discounts: 2725.38, + Sales: 43042.62, + COGS: 9733.5, + Profit: 33309.12, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1188, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 356400, + Discounts: 20139, + Sales: 336261, + COGS: 239750, + Profit: 96511, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 2233, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 669900, + Discounts: 57687, + Sales: 612213, + COGS: 686750, + Profit: 74537, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 421, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 52625, + Discounts: 14393.75, + Sales: 38231.25, + COGS: 197400, + Profit: 159168.75, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 269, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 94150, + Discounts: 70462, + Sales: 23688, + COGS: 747760, + Profit: 724072, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 3766, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 470750, + Discounts: 8697.5, + Sales: 462052.5, + COGS: 119280, + Profit: 342772.5, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 952, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 19040, + Discounts: 1565.2, + Sales: 17474.8, + COGS: 11180, + Profit: 6294.8, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2964, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 889200, + Discounts: 28812, + Sales: 860388, + COGS: 343000, + Profit: 517388, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1505, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 10535, + Discounts: 273.28, + Sales: 10261.72, + COGS: 2440, + Profit: 7821.72, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1678, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 33560, + Discounts: 2051.2, + Sales: 31508.8, + COGS: 12820, + Profit: 18688.8, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4249, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 29743, + Discounts: 143.92, + Sales: 29599.08, + COGS: 1285, + Profit: 28314.08, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1677, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 33540, + Discounts: 2051.2, + Sales: 31488.8, + COGS: 12820, + Profit: 18668.8, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3051, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 381375, + Discounts: 15400, + Sales: 365975, + COGS: 184800, + Profit: 181175, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 3372, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 50580, + Discounts: 588, + Sales: 49992, + COGS: 4900, + Profit: 45092, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1686, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 590100, + Discounts: 38136, + Sales: 551964, + COGS: 354120, + Profit: 197844, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3086, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 46290, + Discounts: 3001.2, + Sales: 43288.8, + COGS: 25010, + Profit: 18278.8, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 4150, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 83000, + Discounts: 1132.8, + Sales: 81867.2, + COGS: 7080, + Profit: 74787.2, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3027, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 60540, + Discounts: 1032, + Sales: 59508, + COGS: 6450, + Profit: 53058, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 4359, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1307700, + Discounts: 37488, + Sales: 1270212, + COGS: 390500, + Profit: 879712, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 3628, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1088400, + Discounts: 30792, + Sales: 1057608, + COGS: 320750, + Profit: 736858, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 1589, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 23835, + Discounts: 853.2, + Sales: 22981.8, + COGS: 7110, + Profit: 15871.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2679, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 334875, + Discounts: 11140, + Sales: 323735, + COGS: 133680, + Profit: 190055, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3401, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 23807, + Discounts: 705.04, + Sales: 23101.96, + COGS: 6295, + Profit: 16806.96, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2815, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 19705, + Discounts: 613.2, + Sales: 19091.8, + COGS: 5475, + Profit: 13616.8, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2964, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 59280, + Discounts: 2185.6, + Sales: 57094.4, + COGS: 13660, + Profit: 43434.4, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 4173, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1251900, + Discounts: 59040, + Sales: 1192860, + COGS: 615000, + Profit: 577860, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1157, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 8099, + Discounts: 379.68, + Sales: 7719.32, + COGS: 3390, + Profit: 4329.32, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3065, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 21455, + Discounts: 894.88, + Sales: 20560.12, + COGS: 7990, + Profit: 12570.12, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1962, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 13734, + Discounts: 1349.04, + Sales: 12384.96, + COGS: 12045, + Profit: 339.96, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4080, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 81600, + Discounts: 3094.4, + Sales: 78505.6, + COGS: 19340, + Profit: 59165.6, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1713, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 34260, + Discounts: 4788.8, + Sales: 29471.2, + COGS: 29930, + Profit: 458.8, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2795, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 978250, + Discounts: 60088, + Sales: 918162, + COGS: 557960, + Profit: 360202, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 4082, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 28574, + Discounts: 1089.76, + Sales: 27484.24, + COGS: 9730, + Profit: 17754.24, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1691, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 591850, + Discounts: 38136, + Sales: 553714, + COGS: 354120, + Profit: 199594, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2305, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 27660, + Discounts: 574.08, + Sales: 27085.92, + COGS: 1794, + Profit: 25291.92, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3401, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 23807, + Discounts: 1627.92, + Sales: 22179.08, + COGS: 14535, + Profit: 7644.08, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2288, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 16016, + Discounts: 1309.28, + Sales: 14706.72, + COGS: 11690, + Profit: 3016.72, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 2399, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 719700, + Discounts: 9264, + Sales: 710436, + COGS: 96500, + Profit: 613936, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 4086, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1225800, + Discounts: 15240, + Sales: 1210560, + COGS: 158750, + Profit: 1051810, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2651, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 927850, + Discounts: 16086, + Sales: 911764, + COGS: 149370, + Profit: 762394, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3971, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 27797, + Discounts: 1309.28, + Sales: 26487.72, + COGS: 11690, + Profit: 14797.72, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2512, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 879200, + Discounts: 10668, + Sales: 868532, + COGS: 99060, + Profit: 769472, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2745, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 960750, + Discounts: 11816, + Sales: 948934, + COGS: 109720, + Profit: 839214, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1903, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 570900, + Discounts: 51216, + Sales: 519684, + COGS: 533500, + Profit: 13816, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 647, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 194100, + Discounts: 19392, + Sales: 174708, + COGS: 202000, + Profit: 27292, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2914, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 58280, + Discounts: 1132.8, + Sales: 57147.2, + COGS: 7080, + Profit: 50067.2, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1889, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 13223, + Discounts: 1627.92, + Sales: 11595.08, + COGS: 14535, + Profit: 2939.92, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1466, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 29320, + Discounts: 2185.6, + Sales: 27134.4, + COGS: 13660, + Profit: 13474.4, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 887, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 266100, + Discounts: 59040, + Sales: 207060, + COGS: 615000, + Profit: 407940, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 395, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 7900, + Discounts: 2432, + Sales: 5468, + COGS: 15200, + Profit: 9732, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1693, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 25395, + Discounts: 853.2, + Sales: 24541.8, + COGS: 7110, + Profit: 17431.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2459, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 29508, + Discounts: 1320, + Sales: 28188, + COGS: 4125, + Profit: 24063, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2649, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 794700, + Discounts: 15240, + Sales: 779460, + COGS: 158750, + Profit: 620710, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 3608, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 72160, + Discounts: 698.4, + Sales: 71461.6, + COGS: 4365, + Profit: 67096.6, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1073, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 321900, + Discounts: 29538, + Sales: 292362, + COGS: 273500, + Profit: 18862, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1754, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 21048, + Discounts: 396.36, + Sales: 20651.64, + COGS: 1101, + Profit: 19550.64, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 2167, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 650100, + Discounts: 102667.5, + Sales: 547432.5, + COGS: 950625, + Profit: 403192.5, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1319, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 461650, + Discounts: 52479, + Sales: 409171, + COGS: 433160, + Profit: 23989, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1679, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 503700, + Discounts: 8694, + Sales: 495006, + COGS: 80500, + Profit: 414506, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1252, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 15024, + Discounts: 2506.68, + Sales: 12517.32, + COGS: 6963, + Profit: 5554.32, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3493, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 436625, + Discounts: 20891.25, + Sales: 415733.75, + COGS: 222840, + Profit: 192893.75, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1697, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 11879, + Discounts: 1014.93, + Sales: 10864.07, + COGS: 8055, + Profit: 2809.07, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1156, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 144500, + Discounts: 31466.25, + Sales: 113033.75, + COGS: 335640, + Profit: 222606.25, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 726, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 217800, + Discounts: 9018, + Sales: 208782, + COGS: 83500, + Profit: 125282, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1153, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 345900, + Discounts: 69255, + Sales: 276645, + COGS: 641250, + Profit: 364605, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2720, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 952000, + Discounts: 76135.5, + Sales: 875864.5, + COGS: 628420, + Profit: 247444.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3658, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 54870, + Discounts: 4961.25, + Sales: 49908.75, + COGS: 36750, + Profit: 13158.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2950, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 885000, + Discounts: 29538, + Sales: 855462, + COGS: 273500, + Profit: 581962, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1821, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 27315, + Discounts: 1656.45, + Sales: 25658.55, + COGS: 12270, + Profit: 13388.55, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 4174, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 50088, + Discounts: 396.36, + Sales: 49691.64, + COGS: 1101, + Profit: 48590.64, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1127, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 338100, + Discounts: 35748, + Sales: 302352, + COGS: 331000, + Profit: 28648, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2209, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 26508, + Discounts: 1917, + Sales: 24591, + COGS: 5325, + Profit: 19266, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 862, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 107750, + Discounts: 31466.25, + Sales: 76283.75, + COGS: 335640, + Profit: 259356.25, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3805, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 57075, + Discounts: 330.75, + Sales: 56744.25, + COGS: 2450, + Profit: 54294.25, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1415, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 424500, + Discounts: 102424.5, + Sales: 322075.5, + COGS: 948375, + Profit: 626299.5, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2231, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 780850, + Discounts: 41170.5, + Sales: 739679.5, + COGS: 339820, + Profit: 399859.5, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3649, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 456125, + Discounts: 6378.75, + Sales: 449746.25, + COGS: 68040, + Profit: 381706.25, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2948, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 368500, + Discounts: 23737.5, + Sales: 344762.5, + COGS: 253200, + Profit: 91562.5, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 3395, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1188250, + Discounts: 39973.5, + Sales: 1148276.5, + COGS: 329940, + Profit: 818336.5, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2650, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 31800, + Discounts: 2112.48, + Sales: 29687.52, + COGS: 5868, + Profit: 23819.52, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 585, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 175500, + Discounts: 71793, + Sales: 103707, + COGS: 664750, + Profit: 561043, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1316, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 460600, + Discounts: 42572.25, + Sales: 418027.75, + COGS: 351390, + Profit: 66637.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 4459, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 53508, + Discounts: 950.4, + Sales: 52557.6, + COGS: 2640, + Profit: 49917.6, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2711, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 813300, + Discounts: 50409, + Sales: 762891, + COGS: 466750, + Profit: 296141, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2621, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 31452, + Discounts: 2412.72, + Sales: 29039.28, + COGS: 6702, + Profit: 22337.28, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3613, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 54195, + Discounts: 1656.45, + Sales: 52538.55, + COGS: 12270, + Profit: 40268.55, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1847, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 230875, + Discounts: 9866.25, + Sales: 221008.75, + COGS: 105240, + Profit: 115768.75, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2996, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1048600, + Discounts: 65236.5, + Sales: 983363.5, + COGS: 538460, + Profit: 444903.5, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2838, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 993300, + Discounts: 39973.5, + Sales: 953326.5, + COGS: 329940, + Profit: 623386.5, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 1302, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 19530, + Discounts: 1309.5, + Sales: 18220.5, + COGS: 9700, + Profit: 8520.5, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1536, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 30720, + Discounts: 3049.2, + Sales: 27670.8, + COGS: 16940, + Profit: 10730.8, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1291, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 25820, + Discounts: 1193.4, + Sales: 24626.6, + COGS: 6630, + Profit: 17996.6, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1213, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 8491, + Discounts: 515.97, + Sales: 7975.03, + COGS: 4095, + Profit: 3880.03, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2370, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 28440, + Discounts: 1706.4, + Sales: 26733.6, + COGS: 4740, + Profit: 21993.6, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1979, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 13853, + Discounts: 328.23, + Sales: 13524.77, + COGS: 2605, + Profit: 10919.77, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2879, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 57580, + Discounts: 1751.4, + Sales: 55828.6, + COGS: 9730, + Profit: 46098.6, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1707, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 34140, + Discounts: 1868.4, + Sales: 32271.6, + COGS: 10380, + Profit: 21891.6, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2933, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 20531, + Discounts: 226.8, + Sales: 20304.2, + COGS: 1800, + Profit: 18504.2, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1014, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 12168, + Discounts: 2124.36, + Sales: 10043.64, + COGS: 5901, + Profit: 4142.64, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 693, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 10395, + Discounts: 3547.8, + Sales: 6847.2, + COGS: 26280, + Profit: 19432.8, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3741, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 26187, + Discounts: 226.8, + Sales: 25960.2, + COGS: 1800, + Profit: 24160.2, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3116, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 62320, + Discounts: 4827.6, + Sales: 57492.4, + COGS: 26820, + Profit: 30672.4, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 3995, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 27965, + Discounts: 328.23, + Sales: 27636.77, + COGS: 2605, + Profit: 25031.77, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 953, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 19060, + Discounts: 1868.4, + Sales: 17191.6, + COGS: 10380, + Profit: 6811.6, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 2530, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 37950, + Discounts: 2201.18, + Sales: 35748.82, + COGS: 16305, + Profit: 19443.82, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2565, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 30780, + Discounts: 330.48, + Sales: 30449.52, + COGS: 918, + Profit: 29531.52, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 4297, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 51564, + Discounts: 463.2, + Sales: 51100.8, + COGS: 1158, + Profit: 49942.8, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2871, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 20097, + Discounts: 1629.6, + Sales: 18467.4, + COGS: 11640, + Profit: 6827.4, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3537, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 42444, + Discounts: 463.2, + Sales: 41980.8, + COGS: 1158, + Profit: 40822.8, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1598, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 199750, + Discounts: 43068.75, + Sales: 156681.25, + COGS: 413460, + Profit: 256778.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 2616, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 327000, + Discounts: 18525, + Sales: 308475, + COGS: 177840, + Profit: 130635, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2836, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 992600, + Discounts: 80955, + Sales: 911645, + COGS: 601380, + Profit: 310265, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 4023, + ManufacturingPrice: 5, + SalePrice: 125, + GrossSales: 502875, + Discounts: 22550, + Sales: 480325, + COGS: 216480, + Profit: 263845, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3994, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 59910, + Discounts: 3108, + Sales: 56802, + COGS: 20720, + Profit: 36082, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2928, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 58560, + Discounts: 3908, + Sales: 54652, + COGS: 19540, + Profit: 35112, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2912, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 873600, + Discounts: 17730, + Sales: 855870, + COGS: 147750, + Profit: 708120, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3671, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 55065, + Discounts: 3250.5, + Sales: 51814.5, + COGS: 21670, + Profit: 30144.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2778, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 55560, + Discounts: 482, + Sales: 55078, + COGS: 2410, + Profit: 52668, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 405, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 6075, + Discounts: 1021.5, + Sales: 5053.5, + COGS: 6810, + Profit: 1756.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 2013, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 30195, + Discounts: 765, + Sales: 29430, + COGS: 5100, + Profit: 24330, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2634, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 39510, + Discounts: 1185, + Sales: 38325, + COGS: 7900, + Profit: 30425, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 4166, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1458100, + Discounts: 22365, + Sales: 1435735, + COGS: 166140, + Profit: 1269595, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 355, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 44375, + Discounts: 19950, + Sales: 24425, + COGS: 191520, + Profit: 167095, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2382, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 714600, + Discounts: 68820, + Sales: 645780, + COGS: 573500, + Profit: 72280, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 4170, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 83400, + Discounts: 482, + Sales: 82918, + COGS: 2410, + Profit: 80508, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 892, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 6244, + Discounts: 1865.5, + Sales: 4378.5, + COGS: 13325, + Profit: 8946.5, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2200, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 275000, + Discounts: 23950, + Sales: 251050, + COGS: 229920, + Profit: 21130, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3389, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1016700, + Discounts: 25590, + Sales: 991110, + COGS: 213250, + Profit: 777860, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 2990, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 373750, + Discounts: 4262.5, + Sales: 369487.5, + COGS: 40920, + Profit: 328567.5, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 4013, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 60195, + Discounts: 961.5, + Sales: 59233.5, + COGS: 6410, + Profit: 52823.5, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 739, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 258650, + Discounts: 98245, + Sales: 160405, + COGS: 729820, + Profit: 569415, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 1989, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 596700, + Discounts: 12960, + Sales: 583740, + COGS: 108000, + Profit: 475740, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2991, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 897300, + Discounts: 68820, + Sales: 828480, + COGS: 573500, + Profit: 254980, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 4237, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 63555, + Discounts: 3250.5, + Sales: 60304.5, + COGS: 21670, + Profit: 38634.5, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1442, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 180250, + Discounts: 31612.5, + Sales: 148637.5, + COGS: 303480, + Profit: 154842.5, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2712, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 949200, + Discounts: 65450, + Sales: 883750, + COGS: 486200, + Profit: 397550, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1508, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 188500, + Discounts: 7237.5, + Sales: 181262.5, + COGS: 69480, + Profit: 111782.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 4245, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1485750, + Discounts: 78400, + Sales: 1407350, + COGS: 582400, + Profit: 824950, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2630, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 789000, + Discounts: 89790, + Sales: 699210, + COGS: 748250, + Profit: 49040, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1182, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 14184, + Discounts: 4224.6, + Sales: 9959.4, + COGS: 10561.5, + Profit: 602.1, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1221, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 24420, + Discounts: 4078, + Sales: 20342, + COGS: 20390, + Profit: 48, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 963, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 11556, + Discounts: 3088.8, + Sales: 8467.2, + COGS: 7722, + Profit: 745.2, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 3243, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 1135050, + Discounts: 24745, + Sales: 1110305, + COGS: 183820, + Profit: 926485, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1120, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 16800, + Discounts: 3108, + Sales: 13692, + COGS: 20720, + Profit: 7028, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1174, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 352200, + Discounts: 25590, + Sales: 326610, + COGS: 213250, + Profit: 113360, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 2541, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 30492, + Discounts: 1581.36, + Sales: 28910.64, + COGS: 3594, + Profit: 25316.64, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3246, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 22722, + Discounts: 1949.64, + Sales: 20772.36, + COGS: 12660, + Profit: 8112.36, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1531, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 18372, + Discounts: 1581.36, + Sales: 16790.64, + COGS: 3594, + Profit: 13196.64, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2526, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 37890, + Discounts: 633.6, + Sales: 37256.4, + COGS: 3840, + Profit: 33416.4, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 1136, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 13632, + Discounts: 623.04, + Sales: 13008.96, + COGS: 1416, + Profit: 11592.96, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1983, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 13881, + Discounts: 1215.83, + Sales: 12665.17, + COGS: 7895, + Profit: 4770.17, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 3259, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 39108, + Discounts: 1326.6, + Sales: 37781.4, + COGS: 3015, + Profit: 34766.4, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 3267, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 49005, + Discounts: 5279.17, + Sales: 43725.82, + COGS: 31995, + Profit: 11730.82, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 2454, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 29448, + Discounts: 623.04, + Sales: 28824.96, + COGS: 1416, + Profit: 27408.96, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 2643, + ManufacturingPrice: 3, + SalePrice: 12, + GrossSales: 31716, + Discounts: 2556.84, + Sales: 29159.16, + COGS: 5811, + Profit: 23348.16, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 383, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 134050, + Discounts: 30492, + Sales: 103558, + COGS: 205920, + Profit: 102362, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2801, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 840300, + Discounts: 92763, + Sales: 747537, + COGS: 702750, + Profit: 44787, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1667, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 208375, + Discounts: 33563.75, + Sales: 174811.25, + COGS: 292920, + Profit: 118108.75, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 3539, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 53085, + Discounts: 2574, + Sales: 50511, + COGS: 15600, + Profit: 34911, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 4226, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 29582, + Discounts: 2083.62, + Sales: 27498.38, + COGS: 13530, + Profit: 13968.38, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 2220, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 777000, + Discounts: 29491, + Sales: 747509, + COGS: 199160, + Profit: 548349, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 776, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 15520, + Discounts: 6582.4, + Sales: 8937.6, + COGS: 29920, + Profit: 20982.4, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 553, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 8295, + Discounts: 3559.05, + Sales: 4735.95, + COGS: 21570, + Profit: 16834.05, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2107, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 632100, + Discounts: 28809, + Sales: 603291, + COGS: 218250, + Profit: 385041, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2468, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 49360, + Discounts: 2468.4, + Sales: 46891.6, + COGS: 11220, + Profit: 35671.6, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1905, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 666750, + Discounts: 81023.25, + Sales: 585726.75, + COGS: 547170, + Profit: 38556.75, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3658, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 43896, + Discounts: 5314.32, + Sales: 38581.68, + COGS: 12078, + Profit: 26503.68, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 4301, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 51612, + Discounts: 3201.66, + Sales: 48410.34, + COGS: 7276.5, + Profit: 41133.84, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2446, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 48920, + Discounts: 5266.8, + Sales: 43653.2, + COGS: 23940, + Profit: 19713.2, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 4209, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 63135, + Discounts: 3273.6, + Sales: 59861.4, + COGS: 19840, + Profit: 40021.4, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3353, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 419125, + Discounts: 33563.75, + Sales: 385561.25, + COGS: 292920, + Profit: 92641.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1401, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 28020, + Discounts: 6582.4, + Sales: 21437.6, + COGS: 29920, + Profit: 8482.4, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1865, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 559500, + Discounts: 45078, + Sales: 514422, + COGS: 341500, + Profit: 172922, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 463, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 9260, + Discounts: 6171, + Sales: 3089, + COGS: 28050, + Profit: 24961, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 4177, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 62655, + Discounts: 1080.75, + Sales: 61574.25, + COGS: 6550, + Profit: 55024.25, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2523, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 883050, + Discounts: 13244, + Sales: 869806, + COGS: 89440, + Profit: 780366, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 1930, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 13510, + Discounts: 1392.16, + Sales: 12117.84, + COGS: 9040, + Profit: 3077.84, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1301, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 15612, + Discounts: 2288.88, + Sales: 13323.12, + COGS: 5202, + Profit: 8121.12, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 4125, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 515625, + Discounts: 7617.5, + Sales: 508007.5, + COGS: 66480, + Profit: 441527.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 607, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 12140, + Discounts: 6457, + Sales: 5683, + COGS: 29350, + Profit: 23667, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 478, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 59750, + Discounts: 43518.75, + Sales: 16231.25, + COGS: 379800, + Profit: 363568.75, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 4489, + ManufacturingPrice: 260, + SalePrice: 20, + GrossSales: 89780, + Discounts: 5783.8, + Sales: 83996.2, + COGS: 26290, + Profit: 57706.2, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1504, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 188000, + Discounts: 19703.75, + Sales: 168296.25, + COGS: 171960, + Profit: 3663.75, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 3763, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 470375, + Discounts: 13021.25, + Sales: 457353.75, + COGS: 113640, + Profit: 343713.75, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2412, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 844200, + Discounts: 13244, + Sales: 830956, + COGS: 89440, + Profit: 741516, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 2342, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 35130, + Discounts: 3559.05, + Sales: 31570.95, + COGS: 21570, + Profit: 10000.95, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4451, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 31157, + Discounts: 292.6, + Sales: 30864.4, + COGS: 1900, + Profit: 28964.4, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3796, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1328600, + Discounts: 37212, + Sales: 1291388, + COGS: 230360, + Profit: 1061028, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 2286, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 285750, + Discounts: 36240, + Sales: 249510, + COGS: 289920, + Profit: 40410, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 3614, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 451750, + Discounts: 32340, + Sales: 419410, + COGS: 258720, + Profit: 160690, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1716, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 25740, + Discounts: 4840.2, + Sales: 20899.8, + COGS: 26890, + Profit: 5990.2, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1301, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 19515, + Discounts: 1218.6, + Sales: 18296.4, + COGS: 6770, + Profit: 11526.4, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 4175, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1252500, + Discounts: 63828, + Sales: 1188672, + COGS: 443250, + Profit: 745422, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 975, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 6825, + Discounts: 2032.8, + Sales: 4792.2, + COGS: 12100, + Profit: 7307.8, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 1154, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 8078, + Discounts: 2296.56, + Sales: 5781.44, + COGS: 13670, + Profit: 7888.56, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1873, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 37460, + Discounts: 4116, + Sales: 33344, + COGS: 17150, + Profit: 16194, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 3766, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 1129800, + Discounts: 42696, + Sales: 1087104, + COGS: 296500, + Profit: 790604, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3558, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1067400, + Discounts: 125820, + Sales: 941580, + COGS: 873750, + Profit: 67830, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3156, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1104600, + Discounts: 37212, + Sales: 1067388, + COGS: 230360, + Profit: 837028, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2994, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 374250, + Discounts: 32340, + Sales: 341910, + COGS: 258720, + Profit: 83190, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2087, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 41740, + Discounts: 2172, + Sales: 39568, + COGS: 9050, + Profit: 30518, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1056, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 21120, + Discounts: 4116, + Sales: 17004, + COGS: 17150, + Profit: 146, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1353, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 473550, + Discounts: 66948, + Sales: 406602, + COGS: 414440, + Profit: 7838, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 416, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 124800, + Discounts: 48924, + Sales: 75876, + COGS: 339750, + Profit: 263874, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 3880, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1164000, + Discounts: 77400, + Sales: 1086600, + COGS: 537500, + Profit: 549100, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 809, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 283150, + Discounts: 50274, + Sales: 232876, + COGS: 311220, + Profit: 78344, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1892, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 28380, + Discounts: 684, + Sales: 27696, + COGS: 3800, + Profit: 23896, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2072, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 41440, + Discounts: 2959.2, + Sales: 38480.8, + COGS: 12330, + Profit: 26150.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3052, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1068200, + Discounts: 58590, + Sales: 1009610, + COGS: 362700, + Profit: 646910, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 3121, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 1092350, + Discounts: 41412, + Sales: 1050938, + COGS: 256360, + Profit: 794578, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2059, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 41180, + Discounts: 2172, + Sales: 39008, + COGS: 9050, + Profit: 29958, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4254, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 51048, + Discounts: 3036.96, + Sales: 48011.04, + COGS: 6327, + Profit: 41684.04, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 1293, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 19395, + Discounts: 6974.1, + Sales: 12420.9, + COGS: 38745, + Profit: 26324.1, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1293, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 452550, + Discounts: 26166, + Sales: 426384, + COGS: 161980, + Profit: 264404, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 230, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 80500, + Discounts: 41412, + Sales: 39088, + COGS: 256360, + Profit: 217272, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1723, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 215375, + Discounts: 35805, + Sales: 179570, + COGS: 286440, + Profit: 106870, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 240, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 4800, + Discounts: 2959.2, + Sales: 1840.8, + COGS: 12330, + Profit: 10489.2, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 2571, + ManufacturingPrice: 260, + SalePrice: 350, + GrossSales: 899850, + Discounts: 11340, + Sales: 888510, + COGS: 70200, + Profit: 818310, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1661, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 11627, + Discounts: 2874.06, + Sales: 8752.94, + COGS: 17107.5, + Profit: 8354.56, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 4474, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 31318, + Discounts: 2296.56, + Sales: 29021.44, + COGS: 13670, + Profit: 15351.44, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 833, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 12495, + Discounts: 4586.4, + Sales: 7908.6, + COGS: 25480, + Profit: 17571.4, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 674, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 13480, + Discounts: 6051.6, + Sales: 7428.4, + COGS: 25215, + Profit: 17786.6, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 778, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 9336, + Discounts: 3831.84, + Sales: 5504.16, + COGS: 7983, + Profit: 2478.84, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1457, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 29140, + Discounts: 3674.4, + Sales: 25465.6, + COGS: 15310, + Profit: 10155.6, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 3158, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 22106, + Discounts: 1252.44, + Sales: 20853.56, + COGS: 7455, + Profit: 13398.56, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 4095, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 81900, + Discounts: 3674.4, + Sales: 78225.6, + COGS: 15310, + Profit: 62915.6, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 3170, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 38040, + Discounts: 3975.84, + Sales: 34064.16, + COGS: 8283, + Profit: 25781.16, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 493, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 7395, + Discounts: 5005.65, + Sales: 2389.35, + COGS: 25670, + Profit: 23280.65, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 3286, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 49290, + Discounts: 5005.65, + Sales: 44284.35, + COGS: 25670, + Profit: 18614.35, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 3563, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1247050, + Discounts: 41996.5, + Sales: 1205053.5, + COGS: 239980, + Profit: 965073.5, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 4109, + ManufacturingPrice: 3, + SalePrice: 350, + GrossSales: 1438150, + Discounts: 81445, + Sales: 1356705, + COGS: 465400, + Profit: 891305, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 3653, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 73060, + Discounts: 1149.2, + Sales: 71910.8, + COGS: 4420, + Profit: 67490.8, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2203, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 771050, + Discounts: 44703.75, + Sales: 726346.25, + COGS: 255450, + Profit: 470896.25, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 2924, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 20468, + Discounts: 1181.18, + Sales: 19286.82, + COGS: 6490, + Profit: 12796.82, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2650, + ManufacturingPrice: 5, + SalePrice: 12, + GrossSales: 31800, + Discounts: 942.24, + Sales: 30857.76, + COGS: 1812, + Profit: 29045.76, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 1194, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 23880, + Discounts: 5863, + Sales: 18017, + COGS: 22550, + Profit: 4533, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 3366, + ManufacturingPrice: 5, + SalePrice: 20, + GrossSales: 67320, + Discounts: 3247.4, + Sales: 64072.6, + COGS: 12490, + Profit: 51582.6, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1325, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 9275, + Discounts: 1309.04, + Sales: 7965.97, + COGS: 7192.5, + Profit: 773.47, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 4243, + ManufacturingPrice: 10, + SalePrice: 300, + GrossSales: 1272900, + Discounts: 31473, + Sales: 1241427, + COGS: 201750, + Profit: 1039677, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2887, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 57740, + Discounts: 6866.6, + Sales: 50873.4, + COGS: 26410, + Profit: 24463.4, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3839, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 76780, + Discounts: 7040.8, + Sales: 69739.2, + COGS: 27080, + Profit: 42659.2, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1863, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 652050, + Discounts: 119756, + Sales: 532294, + COGS: 684320, + Profit: 152026, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2858, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 357250, + Discounts: 25723.75, + Sales: 331526.25, + COGS: 189960, + Profit: 141566.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2868, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 34416, + Discounts: 890.76, + Sales: 33525.24, + COGS: 1713, + Profit: 31812.24, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 3805, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 26635, + Discounts: 2453.36, + Sales: 24181.64, + COGS: 13480, + Profit: 10701.64, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3914, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 58710, + Discounts: 3051.75, + Sales: 55658.25, + COGS: 15650, + Profit: 40008.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 524, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 10480, + Discounts: 3247.4, + Sales: 7232.6, + COGS: 12490, + Profit: 5257.4, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 3095, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1083250, + Discounts: 16243.5, + Sales: 1067006.5, + COGS: 92820, + Profit: 974186.5, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2410, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 28920, + Discounts: 1580.28, + Sales: 27339.72, + COGS: 3039, + Profit: 24300.72, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 4263, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 63945, + Discounts: 7795.13, + Sales: 56149.88, + COGS: 39975, + Profit: 16174.88, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2239, + ManufacturingPrice: 120, + SalePrice: 350, + GrossSales: 783650, + Discounts: 119756, + Sales: 663894, + COGS: 684320, + Profit: 20426, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 569, + ManufacturingPrice: 120, + SalePrice: 7, + GrossSales: 3983, + Discounts: 1082.9, + Sales: 2900.1, + COGS: 5950, + Profit: 3049.9, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3889, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 46668, + Discounts: 942.24, + Sales: 45725.76, + COGS: 1812, + Profit: 43913.76, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 1378, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 20670, + Discounts: 1287, + Sales: 19383, + COGS: 6600, + Profit: 12783, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2253, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 27036, + Discounts: 639.6, + Sales: 26396.4, + COGS: 1230, + Profit: 25166.4, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 3202, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 960600, + Discounts: 101595, + Sales: 859005, + COGS: 651250, + Profit: 207755, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3835, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 46020, + Discounts: 1580.28, + Sales: 44439.72, + COGS: 3039, + Profit: 41400.72, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 2487, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 310875, + Discounts: 25723.75, + Sales: 285151.25, + COGS: 189960, + Profit: 95191.25, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4428, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 66420, + Discounts: 3051.75, + Sales: 63368.25, + COGS: 15650, + Profit: 47718.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1200, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 150000, + Discounts: 26958.75, + Sales: 123041.25, + COGS: 199080, + Profit: 76038.75, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2953, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 20671, + Discounts: 1082.9, + Sales: 19588.1, + COGS: 5950, + Profit: 13638.1, + Date: `6/1/19`, + Month: `June`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1453, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 17436, + Discounts: 639.6, + Sales: 16796.4, + COGS: 1230, + Profit: 15566.4, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Luxe`, + UnitsSold: 865, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 10380, + Discounts: 2761.2, + Sales: 7618.8, + COGS: 5310, + Profit: 2308.8, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 1072, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 21440, + Discounts: 7221.2, + Sales: 14218.8, + COGS: 25790, + Profit: 11571.2, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1737, + ManufacturingPrice: 3, + SalePrice: 20, + GrossSales: 34740, + Discounts: 4880.4, + Sales: 29859.6, + COGS: 17430, + Profit: 12429.6, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 1535, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 10745, + Discounts: 2936.08, + Sales: 7808.92, + COGS: 14980, + Profit: 7171.08, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2532, + ManufacturingPrice: 3, + SalePrice: 7, + GrossSales: 17724, + Discounts: 274.4, + Sales: 17449.6, + COGS: 1400, + Profit: 16049.6, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Royal Oak`, + UnitsSold: 1765, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 12355, + Discounts: 287.14, + Sales: 12067.86, + COGS: 1465, + Profit: 10602.86, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Royal Oak`, + UnitsSold: 1567, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 10969, + Discounts: 2936.08, + Sales: 8032.92, + COGS: 14980, + Profit: 6947.08, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2640, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 39600, + Discounts: 583.8, + Sales: 39016.2, + COGS: 2780, + Profit: 36236.2, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3079, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 61580, + Discounts: 6798.4, + Sales: 54781.6, + COGS: 24280, + Profit: 30501.6, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 4130, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 61950, + Discounts: 3710.7, + Sales: 58239.3, + COGS: 17670, + Profit: 40569.3, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2938, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 35256, + Discounts: 2340.24, + Sales: 32915.76, + COGS: 4179, + Profit: 28736.76, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 3080, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 21560, + Discounts: 274.4, + Sales: 21285.6, + COGS: 1400, + Profit: 19885.6, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1530, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 18360, + Discounts: 2340.24, + Sales: 16019.76, + COGS: 4179, + Profit: 11840.76, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 3537, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 42444, + Discounts: 3385.2, + Sales: 39058.8, + COGS: 6045, + Profit: 33013.8, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 2021, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 606300, + Discounts: 33642, + Sales: 572658, + COGS: 200250, + Profit: 372408, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1804, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 225500, + Discounts: 17902.5, + Sales: 207597.5, + COGS: 122760, + Profit: 84837.5, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1014, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 304200, + Discounts: 62832, + Sales: 241368, + COGS: 374000, + Profit: 132632, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Kensington`, + UnitsSold: 2913, + ManufacturingPrice: 3, + SalePrice: 300, + GrossSales: 873900, + Discounts: 42420, + Sales: 831480, + COGS: 252500, + Profit: 578980, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 763, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 11445, + Discounts: 3177.3, + Sales: 8267.7, + COGS: 15130, + Profit: 6862.3, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Kensington`, + UnitsSold: 1425, + ManufacturingPrice: 3, + SalePrice: 15, + GrossSales: 21375, + Discounts: 4830, + Sales: 16545, + COGS: 23000, + Profit: 6455, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Kensington`, + UnitsSold: 4357, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 544625, + Discounts: 49367.5, + Sales: 495257.5, + COGS: 338520, + Profit: 156737.5, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 2138, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 748300, + Discounts: 109147.5, + Sales: 639152.5, + COGS: 579150, + Profit: 60002.5, + Date: `1/1/19`, + Month: `January`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Royal Oak`, + UnitsSold: 3825, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 1338750, + Discounts: 58751, + Sales: 1279999, + COGS: 311740, + Profit: 968259, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 3393, + ManufacturingPrice: 5, + SalePrice: 350, + GrossSales: 1187550, + Discounts: 9800, + Sales: 1177750, + COGS: 52000, + Profit: 1125750, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 2215, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 15505, + Discounts: 380.24, + Sales: 15124.76, + COGS: 1940, + Profit: 13184.76, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2278, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 15946, + Discounts: 1692.46, + Sales: 14253.54, + COGS: 8635, + Profit: 5618.54, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Royal Oak`, + UnitsSold: 403, + ManufacturingPrice: 5, + SalePrice: 15, + GrossSales: 6045, + Discounts: 4830, + Sales: 1215, + COGS: 23000, + Profit: 21785, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 289, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 5780, + Discounts: 728, + Sales: 5052, + COGS: 2600, + Profit: 2452, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 749, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 11235, + Discounts: 5187, + Sales: 6048, + COGS: 24700, + Profit: 18652, + Date: `9/1/18`, + Month: `September`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 372, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 5580, + Discounts: 3660.3, + Sales: 1919.7, + COGS: 17430, + Profit: 15510.3, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3781, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 45372, + Discounts: 4895.52, + Sales: 40476.48, + COGS: 8742, + Profit: 31734.48, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1785, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 12495, + Discounts: 1696.38, + Sales: 10798.62, + COGS: 8655, + Profit: 2143.62, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 4029, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1410150, + Discounts: 34300, + Sales: 1375850, + COGS: 182000, + Profit: 1193850, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2813, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 33756, + Discounts: 3732.96, + Sales: 30023.04, + COGS: 6666, + Profit: 23357.04, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 2150, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 752500, + Discounts: 57673, + Sales: 694827, + COGS: 306020, + Profit: 388807, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 2093, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 732550, + Discounts: 94178, + Sales: 638372, + COGS: 499720, + Profit: 138652, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 4391, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 548875, + Discounts: 27562.5, + Sales: 521312.5, + COGS: 189000, + Profit: 332312.5, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2695, + ManufacturingPrice: 120, + SalePrice: 20, + GrossSales: 53900, + Discounts: 1696.8, + Sales: 52203.2, + COGS: 6060, + Profit: 46143.2, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1337, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 401100, + Discounts: 103320, + Sales: 297780, + COGS: 615000, + Profit: 317220, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Burlington`, + UnitsSold: 2621, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 786300, + Discounts: 11298, + Sales: 775002, + COGS: 67250, + Profit: 707752, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Burlington`, + UnitsSold: 3735, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1120500, + Discounts: 106512, + Sales: 1013988, + COGS: 634000, + Profit: 379988, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Mandarin`, + UnitsSold: 4320, + ManufacturingPrice: 250, + SalePrice: 7, + GrossSales: 30240, + Discounts: 2844.94, + Sales: 27395.06, + COGS: 14515, + Profit: 12880.06, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 2828, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 848400, + Discounts: 106722, + Sales: 741678, + COGS: 635250, + Profit: 106428, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 2586, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 775800, + Discounts: 11298, + Sales: 764502, + COGS: 67250, + Profit: 697252, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 1248, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 374400, + Discounts: 62832, + Sales: 311568, + COGS: 374000, + Profit: 62432, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 4035, + ManufacturingPrice: 250, + SalePrice: 300, + GrossSales: 1210500, + Discounts: 42420, + Sales: 1168080, + COGS: 252500, + Profit: 915580, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 359, + ManufacturingPrice: 250, + SalePrice: 350, + GrossSales: 125650, + Discounts: 62769, + Sales: 62881, + COGS: 333060, + Profit: 270179, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 3926, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 1177800, + Discounts: 37296, + Sales: 1140504, + COGS: 222000, + Profit: 918504, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 4247, + ManufacturingPrice: 260, + SalePrice: 125, + GrossSales: 530875, + Discounts: 49770, + Sales: 481105, + COGS: 341280, + Profit: 139825, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 2695, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 32340, + Discounts: 4158, + Sales: 28182, + COGS: 7425, + Profit: 20757, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Luxe`, + UnitsSold: 1104, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 16560, + Discounts: 3660.3, + Sales: 12899.7, + COGS: 17430, + Profit: 4530.3, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Luxe`, + UnitsSold: 1449, + ManufacturingPrice: 260, + SalePrice: 12, + GrossSales: 17388, + Discounts: 4895.52, + Sales: 12492.48, + COGS: 8742, + Profit: 3750.48, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1131, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 7917, + Discounts: 1696.38, + Sales: 6220.62, + COGS: 8655, + Profit: 2434.38, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1468, + ManufacturingPrice: 260, + SalePrice: 7, + GrossSales: 10276, + Discounts: 1692.46, + Sales: 8583.54, + COGS: 8635, + Profit: 51.46, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 1272, + ManufacturingPrice: 260, + SalePrice: 15, + GrossSales: 19080, + Discounts: 3927, + Sales: 15153, + COGS: 18700, + Profit: 3547, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Kensington`, + UnitsSold: 1403, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 175375, + Discounts: 22012.5, + Sales: 153362.5, + COGS: 140880, + Profit: 12482.5, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 2161, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 270125, + Discounts: 51881.25, + Sales: 218243.75, + COGS: 332040, + Profit: 113796.25, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Kensington`, + UnitsSold: 1937, + ManufacturingPrice: 3, + SalePrice: 125, + GrossSales: 242125, + Discounts: 20343.75, + Sales: 221781.25, + COGS: 130200, + Profit: 91581.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 2879, + ManufacturingPrice: 5, + SalePrice: 300, + GrossSales: 863700, + Discounts: 24570, + Sales: 839130, + COGS: 136500, + Profit: 702630, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1330, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 26600, + Discounts: 3474, + Sales: 23126, + COGS: 11580, + Profit: 11546, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 2426, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 36390, + Discounts: 3631.5, + Sales: 32758.5, + COGS: 16140, + Profit: 16618.5, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2033, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 14231, + Discounts: 2661.75, + Sales: 11569.25, + COGS: 12675, + Profit: 1105.75, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 2029, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 710150, + Discounts: 149677.5, + Sales: 560472.5, + COGS: 741260, + Profit: 180787.5, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 1049, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 15735, + Discounts: 5757.75, + Sales: 9977.25, + COGS: 25590, + Profit: 15612.75, + Date: `8/1/19`, + Month: `August`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 1062, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 21240, + Discounts: 801, + Sales: 20439, + COGS: 2670, + Profit: 17769, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 2509, + ManufacturingPrice: 10, + SalePrice: 125, + GrossSales: 313625, + Discounts: 20343.75, + Sales: 293281.25, + COGS: 130200, + Profit: 163081.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Vermont`, + UnitsSold: 1743, + ManufacturingPrice: 10, + SalePrice: 15, + GrossSales: 26145, + Discounts: 2643.75, + Sales: 23501.25, + COGS: 11750, + Profit: 11751.25, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3418, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 1196300, + Discounts: 105367.5, + Sales: 1090932.5, + COGS: 521820, + Profit: 569112.5, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Vermont`, + UnitsSold: 1751, + ManufacturingPrice: 10, + SalePrice: 350, + GrossSales: 612850, + Discounts: 112927.5, + Sales: 499922.5, + COGS: 559260, + Profit: 59337.5, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Vermont`, + UnitsSold: 3228, + ManufacturingPrice: 10, + SalePrice: 12, + GrossSales: 38736, + Discounts: 1645.2, + Sales: 37090.8, + COGS: 2742, + Profit: 34348.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Vermont`, + UnitsSold: 1105, + ManufacturingPrice: 10, + SalePrice: 20, + GrossSales: 22100, + Discounts: 879, + Sales: 21221, + COGS: 2930, + Profit: 18291, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Burlington`, + UnitsSold: 2778, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 33336, + Discounts: 900, + Sales: 32436, + COGS: 1500, + Profit: 30936, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 1173, + ManufacturingPrice: 120, + SalePrice: 15, + GrossSales: 17595, + Discounts: 6358.5, + Sales: 11236.5, + COGS: 28260, + Profit: 17023.5, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Burlington`, + UnitsSold: 3160, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 395000, + Discounts: 12431.25, + Sales: 382568.75, + COGS: 79560, + Profit: 303008.75, + Date: `9/1/19`, + Month: `September`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 4322, + ManufacturingPrice: 120, + SalePrice: 300, + GrossSales: 1296600, + Discounts: 115830, + Sales: 1180770, + COGS: 643500, + Profit: 537270, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 1901, + ManufacturingPrice: 120, + SalePrice: 125, + GrossSales: 237625, + Discounts: 45712.5, + Sales: 191912.5, + COGS: 292560, + Profit: 100647.5, + Date: `12/1/18`, + Month: `December`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Burlington`, + UnitsSold: 2980, + ManufacturingPrice: 120, + SalePrice: 12, + GrossSales: 35760, + Discounts: 1645.2, + Sales: 34114.8, + COGS: 2742, + Profit: 31372.8, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 4068, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 81360, + Discounts: 2596.5, + Sales: 78763.5, + COGS: 8655, + Profit: 70108.5, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2105, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 31575, + Discounts: 1107, + Sales: 30468, + COGS: 4920, + Profit: 25548, + Date: `7/1/19`, + Month: `July`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 1647, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 32940, + Discounts: 801, + Sales: 32139, + COGS: 2670, + Profit: 29469, + Date: `10/1/18`, + Month: `October`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 235, + ManufacturingPrice: 250, + SalePrice: 15, + GrossSales: 3525, + Discounts: 2643.75, + Sales: 881.25, + COGS: 11750, + Profit: 10868.75, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Mandarin`, + UnitsSold: 3617, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 452125, + Discounts: 55387.5, + Sales: 396737.5, + COGS: 354480, + Profit: 42257.5, + Date: `11/1/18`, + Month: `November`, + Year: `2018` + }), + new SalesDataItem( + { + Country: `India`, + Product: `Mandarin`, + UnitsSold: 2106, + ManufacturingPrice: 250, + SalePrice: 125, + GrossSales: 263250, + Discounts: 10350, + Sales: 252900, + COGS: 66240, + Profit: 186660, + Date: `11/1/19`, + Month: `November`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Mandarin`, + UnitsSold: 2351, + ManufacturingPrice: 250, + SalePrice: 20, + GrossSales: 47020, + Discounts: 879, + Sales: 46141, + COGS: 2930, + Profit: 43211, + Date: `12/1/19`, + Month: `December`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `UK`, + Product: `Luxe`, + UnitsSold: 1897, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 569100, + Discounts: 111375, + Sales: 457725, + COGS: 618750, + Profit: 161025, + Date: `3/1/19`, + Month: `March`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Luxe`, + UnitsSold: 647, + ManufacturingPrice: 260, + SalePrice: 300, + GrossSales: 194100, + Discounts: 24570, + Sales: 169530, + COGS: 136500, + Profit: 33030, + Date: `10/1/19`, + Month: `October`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Brazil`, + Product: `Royal Oak`, + UnitsSold: 3621, + ManufacturingPrice: 5, + SalePrice: 7, + GrossSales: 25347, + Discounts: 1436.4, + Sales: 23910.6, + COGS: 6840, + Profit: 17070.6, + Date: `2/1/19`, + Month: `February`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `Japan`, + Product: `Vermont`, + UnitsSold: 3221, + ManufacturingPrice: 10, + SalePrice: 7, + GrossSales: 22547, + Discounts: 759.15, + Sales: 21787.85, + COGS: 3615, + Profit: 18172.85, + Date: `4/1/19`, + Month: `April`, + Year: `2019` + }), + new SalesDataItem( + { + Country: `USA`, + Product: `Mandarin`, + UnitsSold: 493, + ManufacturingPrice: 250, + SalePrice: 12, + GrossSales: 5916, + Discounts: 3250.8, + Sales: 2665.2, + COGS: 5418, + Profit: 2752.8, + Date: `5/1/19`, + Month: `May`, + Year: `2019` + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/category-chart/data-aggregations/src/app.component.html b/samples/charts/category-chart/data-aggregations/src/app.component.html index 5832fb19d..d33701c0f 100644 --- a/samples/charts/category-chart/data-aggregations/src/app.component.html +++ b/samples/charts/category-chart/data-aggregations/src/app.component.html @@ -15,8 +15,8 @@ label="Initial Groups" valueType="EnumValue" shouldOverrideDefaultEditor="true" - dropDownNames="Country, Product, MonthName, Year" - dropDownValues="Country, Product, MonthName, Year" + dropDownNames="Country, Product, Month, Year" + dropDownValues="Country, Product, Month, Year" primitiveValue="Country" (changed)="this.editorChangeUpdateInitialGroups($event)"> diff --git a/samples/charts/category-chart/data-aggregations/src/app.component.ts b/samples/charts/category-chart/data-aggregations/src/app.component.ts index 058bbe74e..6034ed51f 100644 --- a/samples/charts/category-chart/data-aggregations/src/app.component.ts +++ b/samples/charts/category-chart/data-aggregations/src/app.component.ts @@ -1,6 +1,6 @@ import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; import { ComponentRenderer, PropertyEditorPanelDescriptionModule, LegendDescriptionModule, CategoryChartDescriptionModule } from 'igniteui-angular-core'; -import { SalesData } from './SalesData'; +import { SalesDataItem, SalesData } from './SalesData'; import { IgxPropertyEditorPanelComponent, PropertyEditorValueType, IgxPropertyEditorPropertyDescriptionChangedEventArgs, IgxPropertyEditorPropertyDescriptionComponent } from 'igniteui-angular-layouts'; import { IgxCategoryChartComponent, MarkerType, MarkerType_$type } from 'igniteui-angular-charts'; import { EnumUtil } from 'igniteui-angular-core'; diff --git a/samples/charts/category-chart/data-aggregations/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/data-aggregations/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/data-aggregations/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/data-aggregations/src/config/tsconfig.app.json b/samples/charts/category-chart/data-aggregations/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/data-aggregations/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/data-aggregations/src/config/tsconfig.base.json b/samples/charts/category-chart/data-aggregations/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/data-aggregations/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/data-aggregations/src/config/tsconfig.spec.json b/samples/charts/category-chart/data-aggregations/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/data-aggregations/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/data-aggregations/src/config/tsconfig.worker.json b/samples/charts/category-chart/data-aggregations/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/data-aggregations/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/data-aggregations/tsconfig.app.json b/samples/charts/category-chart/data-aggregations/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/data-aggregations/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/category-chart/data-aggregations/tsconfig.json b/samples/charts/category-chart/data-aggregations/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/data-aggregations/tsconfig.json +++ b/samples/charts/category-chart/data-aggregations/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/data-filter/.codesandbox/Dockerfile b/samples/charts/category-chart/data-filter/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/data-filter/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/data-filter/.codesandbox/tasks.json b/samples/charts/category-chart/data-filter/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/data-filter/.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/category-chart/data-filter/.stackblitzrc b/samples/charts/category-chart/data-filter/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/data-filter/.stackblitzrc +++ b/samples/charts/category-chart/data-filter/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/data-filter/angular.json b/samples/charts/category-chart/data-filter/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/data-filter/angular.json +++ b/samples/charts/category-chart/data-filter/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/data-filter/package.json b/samples/charts/category-chart/data-filter/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/data-filter/package.json +++ b/samples/charts/category-chart/data-filter/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/data-filter/sandbox.config.json b/samples/charts/category-chart/data-filter/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/data-filter/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/data-filter/src/ContinentsBirthRate.ts b/samples/charts/category-chart/data-filter/src/ContinentsBirthRate.ts new file mode 100644 index 000000000..77f28339d --- /dev/null +++ b/samples/charts/category-chart/data-filter/src/ContinentsBirthRate.ts @@ -0,0 +1,105 @@ +export class ContinentsBirthRateItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public Year: string; + public Asia: number; + public Africa: number; + public Europe: number; + public NorthAmerica: number; + public SouthAmerica: number; + public Oceania: number; + +} +export class ContinentsBirthRate extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new ContinentsBirthRateItem( + { + Year: `1950`, + Asia: 62, + Africa: 13, + Europe: 10, + NorthAmerica: 4, + SouthAmerica: 8, + Oceania: 1 + }), + new ContinentsBirthRateItem( + { + Year: `1960`, + Asia: 68, + Africa: 12, + Europe: 15, + NorthAmerica: 4, + SouthAmerica: 9, + Oceania: 2 + }), + new ContinentsBirthRateItem( + { + Year: `1970`, + Asia: 80, + Africa: 17, + Europe: 11, + NorthAmerica: 3, + SouthAmerica: 9, + Oceania: 1 + }), + new ContinentsBirthRateItem( + { + Year: `1980`, + Asia: 77, + Africa: 21, + Europe: 12, + NorthAmerica: 3, + SouthAmerica: 10, + Oceania: 2 + }), + new ContinentsBirthRateItem( + { + Year: `1990`, + Asia: 87, + Africa: 24, + Europe: 9, + NorthAmerica: 3, + SouthAmerica: 10, + Oceania: 1 + }), + new ContinentsBirthRateItem( + { + Year: `2000`, + Asia: 79, + Africa: 28, + Europe: 8, + NorthAmerica: 4, + SouthAmerica: 9, + Oceania: 3 + }), + new ContinentsBirthRateItem( + { + Year: `2010`, + Asia: 78, + Africa: 35, + Europe: 10, + NorthAmerica: 4, + SouthAmerica: 8, + Oceania: 2 + }), + new ContinentsBirthRateItem( + { + Year: `2020`, + Asia: 75, + Africa: 43, + Europe: 7, + NorthAmerica: 4, + SouthAmerica: 7, + Oceania: 4 + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/category-chart/data-filter/src/SalesData.ts b/samples/charts/category-chart/data-filter/src/SalesData.ts deleted file mode 100644 index 2da064b31..000000000 --- a/samples/charts/category-chart/data-filter/src/SalesData.ts +++ /dev/null @@ -1,16700 +0,0 @@ -//begin data -export class SalesData extends Array { - public constructor() { - super(); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `501`, - ManufacturingPrice: 15, - SalePrice: 23, - GrossSales: 26440, - Discounts: 0, - Sales: 26440, - COGS: 16185, - Profit: 11255, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1372`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 27440, - Discounts: 0, - Sales: 27440, - COGS: 16185, - Profit: 11255, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2762`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 55240, - Discounts: 0, - Sales: 55240, - COGS: 13210, - Profit: 42030, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1464`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 21960, - Discounts: 0, - Sales: 21960, - COGS: 21780, - Profit: 180, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `719`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 10785, - Discounts: 0, - Sales: 10785, - COGS: 8880, - Profit: 1905, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3576`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 53640, - Discounts: 0, - Sales: 53640, - COGS: 24700, - Profit: 28940, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `4422`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1547700, - Discounts: 0, - Sales: 1547700, - COGS: 393380, - Profit: 1154320, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3649`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 54735, - Discounts: 0, - Sales: 54735, - COGS: 9210, - Profit: 45525, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4172`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 50064, - Discounts: 0, - Sales: 50064, - COGS: 7554, - Profit: 42510, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3841`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 76820, - Discounts: 0, - Sales: 76820, - COGS: 18990, - Profit: 57830, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3726`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 44712, - Discounts: 0, - Sales: 44712, - COGS: 4635, - Profit: 40077, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2625`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 39375, - Discounts: 0, - Sales: 39375, - COGS: 24700, - Profit: 14675, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1958`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 244750, - Discounts: 0, - Sales: 244750, - COGS: 319860, - Profit: 75110, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3271`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 981300, - Discounts: 0, - Sales: 981300, - COGS: 239500, - Profit: 741800, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2091`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 14637, - Discounts: 0, - Sales: 14637, - COGS: 10730, - Profit: 3907, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2825`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 42375, - Discounts: 0, - Sales: 42375, - COGS: 6150, - Profit: 36225, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2513`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 50260, - Discounts: 0, - Sales: 50260, - COGS: 2920, - Profit: 47340, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `883`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 13245, - Discounts: 0, - Sales: 13245, - COGS: 9740, - Profit: 3505, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2087`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 25044, - Discounts: 0, - Sales: 25044, - COGS: 7554, - Profit: 17490, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2563`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 897050, - Discounts: 0, - Sales: 897050, - COGS: 261560, - Profit: 635490, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2846`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 34152, - Discounts: 0, - Sales: 34152, - COGS: 1101, - Profit: 33051, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `997`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 6979, - Discounts: 0, - Sales: 6979, - COGS: 4415, - Profit: 2564, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2290`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 34350, - Discounts: 0, - Sales: 34350, - COGS: 24720, - Profit: 9630, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2133`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14931, - Discounts: 0, - Sales: 14931, - COGS: 5715, - Profit: 9216, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3617`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 72340, - Discounts: 0, - Sales: 72340, - COGS: 18170, - Profit: 54170, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1266`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 443100, - Discounts: 0, - Sales: 443100, - COGS: 393380, - Profit: 49720, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `894`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 6258, - Discounts: 0, - Sales: 6258, - COGS: 7465, - Profit: 1207, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2725`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 340625, - Discounts: 0, - Sales: 340625, - COGS: 216480, - Profit: 124145, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3061`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 36732, - Discounts: 0, - Sales: 36732, - COGS: 6483, - Profit: 30249, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3958`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1385300, - Discounts: 0, - Sales: 1385300, - COGS: 261560, - Profit: 1123740, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3920`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 47040, - Discounts: 0, - Sales: 47040, - COGS: 4635, - Profit: 42405, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3381`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 422625, - Discounts: 0, - Sales: 422625, - COGS: 338520, - Profit: 84105, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4307`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 1292100, - Discounts: 0, - Sales: 1292100, - COGS: 500250, - Profit: 791850, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `878`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10536, - Discounts: 0, - Sales: 10536, - COGS: 8514, - Profit: 2022, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `496`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 7440, - Discounts: 0, - Sales: 7440, - COGS: 21780, - Profit: 14340, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3367`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 50505, - Discounts: 0, - Sales: 50505, - COGS: 8880, - Profit: 41625, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2055`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 616500, - Discounts: 0, - Sales: 616500, - COGS: 537750, - Profit: 78750, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4041`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 80820, - Discounts: 0, - Sales: 80820, - COGS: 18170, - Profit: 62650, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `3237`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1132950, - Discounts: 0, - Sales: 1132950, - COGS: 715000, - Profit: 417950, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `630`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 7560, - Discounts: 0, - Sales: 7560, - COGS: 5859, - Profit: 1701, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4210`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 526250, - Discounts: 0, - Sales: 526250, - COGS: 506340, - Profit: 19910, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1127`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 22540, - Discounts: 0, - Sales: 22540, - COGS: 18990, - Profit: 3550, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3438`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 24066, - Discounts: 0, - Sales: 24066, - COGS: 8430, - Profit: 15636, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2015`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 24180, - Discounts: 0, - Sales: 24180, - COGS: 6423, - Profit: 17757, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2534`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 17738, - Discounts: 0, - Sales: 17738, - COGS: 5715, - Profit: 12023, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1384`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 20760, - Discounts: 0, - Sales: 20760, - COGS: 6150, - Profit: 14610, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3561`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 24927, - Discounts: 276.15, - Sales: 24650.85, - COGS: 19725, - Profit: 4925.85, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1823`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27345, - Discounts: 344.4, - Sales: 27000.6, - COGS: 22960, - Profit: 4040.6, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2795`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19565, - Discounts: 72.1, - Sales: 19492.9, - COGS: 5150, - Profit: 14342.9, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `457`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 3199, - Discounts: 44.73, - Sales: 3154.27, - COGS: 3195, - Profit: 40.73, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3785`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26495, - Discounts: 92.82, - Sales: 26402.18, - COGS: 6630, - Profit: 19772.18, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `748`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 8976, - Discounts: 222.96, - Sales: 8753.04, - COGS: 5574, - Profit: 3179.04, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1021`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 357350, - Discounts: 4235, - Sales: 353115, - COGS: 314600, - Profit: 38515, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2076`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 14532, - Discounts: 177.03, - Sales: 14354.97, - COGS: 12645, - Profit: 1709.97, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `4316`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 51792, - Discounts: 173.4, - Sales: 51618.6, - COGS: 4335, - Profit: 47283.6, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4174`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50088, - Discounts: 320.52, - Sales: 49767.48, - COGS: 8013, - Profit: 41754.48, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3736`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1307600, - Discounts: 4889.5, - Sales: 1302710.5, - COGS: 363220, - Profit: 939490.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1914`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 669900, - Discounts: 7542.5, - Sales: 662357.5, - COGS: 560300, - Profit: 102057.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2742`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 41130, - Discounts: 332.1, - Sales: 40797.9, - COGS: 22140, - Profit: 18657.9, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1499`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 449700, - Discounts: 6903, - Sales: 442797, - COGS: 575250, - Profit: 132453, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 75440, - Discounts: 275.1, - Sales: 75164.9, - COGS: 13755, - Profit: 61409.9, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1112`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 7784, - Discounts: 128.1, - Sales: 7655.9, - COGS: 9150, - Profit: 1494.1, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2368`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 35520, - Discounts: 227.1, - Sales: 35292.9, - COGS: 15140, - Profit: 20152.9, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 11102, - Discounts: 314.48, - Sales: 10787.52, - COGS: 22462.5, - Profit: 11674.98, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3386`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 423250, - Discounts: 908.75, - Sales: 422341.25, - COGS: 87240, - Profit: 335101.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `852`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 106500, - Discounts: 983.75, - Sales: 105516.25, - COGS: 94440, - Profit: 11076.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2783`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 347875, - Discounts: 2278.75, - Sales: 345596.25, - COGS: 218760, - Profit: 126836.25, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2684`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 40260, - Discounts: 112.05, - Sales: 40147.95, - COGS: 7470, - Profit: 32677.95, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4083`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1224900, - Discounts: 8715, - Sales: 1216185, - COGS: 726250, - Profit: 489935, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2816`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 985600, - Discounts: 7542.5, - Sales: 978057.5, - COGS: 560300, - Profit: 417757.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4294`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 85880, - Discounts: 772.8, - Sales: 85107.2, - COGS: 38640, - Profit: 46467.2, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2856`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 19992, - Discounts: 25.34, - Sales: 19966.66, - COGS: 1810, - Profit: 18156.66, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1407`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 175875, - Discounts: 1153.75, - Sales: 174721.25, - COGS: 110760, - Profit: 63961.25, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1265`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 8855, - Discounts: 18.41, - Sales: 8836.59, - COGS: 1315, - Profit: 7521.59, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3892`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1362200, - Discounts: 3302.25, - Sales: 1358897.75, - COGS: 245310, - Profit: 1113587.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3068`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 383500, - Discounts: 908.75, - Sales: 382591.25, - COGS: 87240, - Profit: 295351.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2181`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 272625, - Discounts: 983.75, - Sales: 271641.25, - COGS: 94440, - Profit: 177201.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1356`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 406800, - Discounts: 2958, - Sales: 403842, - COGS: 246500, - Profit: 177201.25, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1814`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 634900, - Discounts: 4889.5, - Sales: 630010.5, - COGS: 363220, - Profit: 266790.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1495`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 186875, - Discounts: 2180, - Sales: 184695, - COGS: 209280, - Profit: 24585, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1463`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 182875, - Discounts: 1856.25, - Sales: 181018.75, - COGS: 89100, - Profit: 91918.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `215`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 2580, - Discounts: 310.8, - Sales: 2269.2, - COGS: 3885, - Profit: 1615.8, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `566`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 198100, - Discounts: 19964, - Sales: 178136, - COGS: 741520, - Profit: 563384, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3255`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 39060, - Discounts: 274.08, - Sales: 38785.92, - COGS: 3426, - Profit: 35359.92, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 15440, - Discounts: 626.4, - Sales: 14813.6, - COGS: 15660, - Profit: 846.4, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1135`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13620, - Discounts: 165.6, - Sales: 13454.4, - COGS: 2070, - Profit: 11384.4, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 17895, - Discounts: 708.9, - Sales: 17186.1, - COGS: 23630, - Profit: 6443.9, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2530`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 759000, - Discounts: 5508, - Sales: 753492, - COGS: 229500, - Profit: 523992, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3451`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1035300, - Discounts: 10368, - Sales: 1024932, - COGS: 432000, - Profit: 592932, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3059`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 36708, - Discounts: 274.08, - Sales: 36433.92, - COGS: 3426, - Profit: 33007.92, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3957`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 494625, - Discounts: 1655, - Sales: 492970, - COGS: 79440, - Profit: 413530, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3444`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 41328, - Discounts: 310.8, - Sales: 41017.2, - COGS: 3885, - Profit: 37132.2, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3154`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 946200, - Discounts: 11496, - Sales: 934704, - COGS: 479000, - Profit: 455704, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4108`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1437800, - Discounts: 19964, - Sales: 1417836, - COGS: 741520, - Profit: 676316, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3760`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 470000, - Discounts: 6822.5, - Sales: 463177.5, - COGS: 327480, - Profit: 135697.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2334`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 28008, - Discounts: 253.2, - Sales: 27754.8, - COGS: 3165, - Profit: 24589.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `580`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 6960, - Discounts: 260.16, - Sales: 6699.84, - COGS: 3252, - Profit: 3447.84, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2610`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 52200, - Discounts: 626.4, - Sales: 51573.6, - COGS: 15660, - Profit: 35913.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1459`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 510650, - Discounts: 20139, - Sales: 490511, - COGS: 748020, - Profit: 257509, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3774`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 45288, - Discounts: 253.2, - Sales: 45034.8, - COGS: 3165, - Profit: 41869.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2572`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 30864, - Discounts: 260.16, - Sales: 30603.84, - COGS: 3252, - Profit: 27351.84, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `320`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 40000, - Discounts: 1655, - Sales: 38345, - COGS: 79440, - Profit: 41095, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3275`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1146250, - Discounts: 20139, - Sales: 1126111, - COGS: 748020, - Profit: 378091, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3582`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 447750, - Discounts: 6822.5, - Sales: 440927.5, - COGS: 327480, - Profit: 113447.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4056`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1216800, - Discounts: 1554, - Sales: 1215246, - COGS: 64750, - Profit: 1150496, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2144`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 643200, - Discounts: 6606, - Sales: 636594, - COGS: 275250, - Profit: 361344, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3502`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 437750, - Discounts: 5690, - Sales: 432060, - COGS: 273120, - Profit: 158940, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `679`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 13580, - Discounts: 494.4, - Sales: 13085.6, - COGS: 12360, - Profit: 725.6, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2351`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 47020, - Discounts: 376.4, - Sales: 46643.6, - COGS: 9410, - Profit: 37233.6, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2043`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 612900, - Discounts: 11496, - Sales: 601404, - COGS: 479000, - Profit: 122404, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3565`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 445625, - Discounts: 15913.13, - Sales: 429711.88, - COGS: 509220, - Profit: 79508.13, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1401`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 28020, - Discounts: 1548, - Sales: 26472, - COGS: 25800, - Profit: 672, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2077`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 623100, - Discounts: 6201, - Sales: 616899, - COGS: 172250, - Profit: 444649, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3643`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 43716, - Discounts: 700.92, - Sales: 43015.08, - COGS: 5841, - Profit: 37174.08, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2960`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20720, - Discounts: 411.18, - Sales: 20308.82, - COGS: 9790, - Profit: 10518.82, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1201`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 14412, - Discounts: 684.36, - Sales: 13727.64, - COGS: 5703, - Profit: 8024.64, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2321`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 16247, - Discounts: 114.24, - Sales: 16132.76, - COGS: 2720, - Profit: 13412.76, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3972`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 496500, - Discounts: 4826.25, - Sales: 491673.75, - COGS: 154440, - Profit: 337233.75, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3878`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 484750, - Discounts: 6397.5, - Sales: 478352.5, - COGS: 204720, - Profit: 273632.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2278`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 683400, - Discounts: 21910.5, - Sales: 661489.5, - COGS: 608625, - Profit: 52864.5, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1075`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 134375, - Discounts: 6652.5, - Sales: 127722.5, - COGS: 212880, - Profit: 85157.5, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4050`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 48600, - Discounts: 684.36, - Sales: 47915.64, - COGS: 5703, - Profit: 42212.64, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3035`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 910500, - Discounts: 6201, - Sales: 904299, - COGS: 172250, - Profit: 732049, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3636`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 454500, - Discounts: 5887.5, - Sales: 448612.5, - COGS: 188400, - Profit: 260212.5, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1379`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 16548, - Discounts: 493.02, - Sales: 16054.98, - COGS: 4108.5, - Profit: 11946.48, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4492`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 561500, - Discounts: 7533.75, - Sales: 553966.25, - COGS: 241080, - Profit: 312886.25, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1744`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 218000, - Discounts: 4826.25, - Sales: 213173.75, - COGS: 154440, - Profit: 58733.75, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2341`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 292625, - Discounts: 6397.5, - Sales: 286227.5, - COGS: 204720, - Profit: 81507.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3835`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 479375, - Discounts: 7533.75, - Sales: 471841.25, - COGS: 241080, - Profit: 230761.25, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1161`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 348300, - Discounts: 25596, - Sales: 322704, - COGS: 711000, - Profit: 388296, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `876`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10512, - Discounts: 689.76, - Sales: 9822.24, - COGS: 5748, - Profit: 4074.24, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1705`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 213125, - Discounts: 5887.5, - Sales: 207237.5, - COGS: 188400, - Profit: 18837.5, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1805`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 541500, - Discounts: 16866, - Sales: 524634, - COGS: 468500, - Profit: 56134, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `389`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 136150, - Discounts: 17241, - Sales: 118909, - COGS: 426920, - Profit: 308011, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1459`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 29180, - Discounts: 498.6, - Sales: 28681.4, - COGS: 8310, - Profit: 20371.4, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4236`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 84720, - Discounts: 2310.3, - Sales: 82409.7, - COGS: 38505, - Profit: 43904.7, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3627`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 43524, - Discounts: 892.44, - Sales: 42631.56, - COGS: 7437, - Profit: 35194.56, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1756`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 26340, - Discounts: 1218.6, - Sales: 25121.4, - COGS: 20310, - Profit: 4811.4, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `307`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 4605, - Discounts: 1218.6, - Sales: 3386.4, - COGS: 20310, - Profit: 16923.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1222`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 366600, - Discounts: 24252, - Sales: 342348, - COGS: 505250, - Profit: 162902, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `489`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 171150, - Discounts: 3836, - Sales: 167314, - COGS: 71240, - Profit: 96074, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4133`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 61995, - Discounts: 1180.2, - Sales: 60814.8, - COGS: 19670, - Profit: 41144.8, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2743`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 822900, - Discounts: 22308, - Sales: 800592, - COGS: 464750, - Profit: 335842, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `4460`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1338000, - Discounts: 24252, - Sales: 1313748, - COGS: 505250, - Profit: 808498, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1232`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 154000, - Discounts: 5690, - Sales: 148310, - COGS: 136560, - Profit: 11750, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 18102, - Discounts: 1190.28, - Sales: 16911.72, - COGS: 21255, - Profit: 4343.28, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1332`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 166500, - Discounts: 3975, - Sales: 162525, - COGS: 95400, - Profit: 67125, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4487`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1346100, - Discounts: 16974, - Sales: 1329126, - COGS: 353625, - Profit: 975501, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3862`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1158600, - Discounts: 35016, - Sales: 1123584, - COGS: 729500, - Profit: 394084, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1765`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 617750, - Discounts: 48300, - Sales: 569450, - COGS: 897000, - Profit: 327550, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3533`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 441625, - Discounts: 14940, - Sales: 426685, - COGS: 358560, - Profit: 68125, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2016`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 30240, - Discounts: 130.8, - Sales: 30109.2, - COGS: 2180, - Profit: 27929.2, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2938`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 58760, - Discounts: 1659.2, - Sales: 57100.8, - COGS: 20740, - Profit: 36360.8, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3352`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67040, - Discounts: 844.8, - Sales: 66195.2, - COGS: 10560, - Profit: 55635.2, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2430`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 850500, - Discounts: 3836, - Sales: 846664, - COGS: 71240, - Profit: 775424, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `535`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 66875, - Discounts: 5690, - Sales: 61185, - COGS: 136560, - Profit: 75375, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1523`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 18276, - Discounts: 703.2, - Sales: 17572.8, - COGS: 4395, - Profit: 13177.8, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1782`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 623700, - Discounts: 30478, - Sales: 593222, - COGS: 566020, - Profit: 27202, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `347`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 4164, - Discounts: 415.68, - Sales: 3748.32, - COGS: 2598, - Profit: 1150.32, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3509`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1228150, - Discounts: 30478, - Sales: 1197672, - COGS: 566020, - Profit: 631652, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2943`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1030050, - Discounts: 26110, - Sales: 1003940, - COGS: 484900, - Profit: 519040, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `4037`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 504625, - Discounts: 5370, - Sales: 499255, - COGS: 128880, - Profit: 370375, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4146`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1451100, - Discounts: 26698, - Sales: 1424402, - COGS: 495820, - Profit: 928582, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `725`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 5075, - Discounts: 480.2, - Sales: 4594.8, - COGS: 6860, - Profit: 2265.2, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2325`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 16275, - Discounts: 941.15, - Sales: 15333.85, - COGS: 13445, - Profit: 1888.85, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `675`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 8100, - Discounts: 1458.6, - Sales: 6641.4, - COGS: 7293, - Profit: 651.6, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2990`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 35880, - Discounts: 1458.6, - Sales: 34421.4, - COGS: 7293, - Profit: 27128.4, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1072`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 7504, - Discounts: 941.15, - Sales: 6562.85, - COGS: 13445, - Profit: 6882.15, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1048`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 7336, - Discounts: 589.05, - Sales: 6746.95, - COGS: 8415, - Profit: 1668.05, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `469`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 5628, - Discounts: 673.8, - Sales: 4954.2, - COGS: 3369, - Profit: 1585.2, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4240`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50880, - Discounts: 1119, - Sales: 49761, - COGS: 5595, - Profit: 44166, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1976`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 23712, - Discounts: 669.6, - Sales: 23042.4, - COGS: 3348, - Profit: 19694.4, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1984`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39680, - Discounts: 1563, - Sales: 38117, - COGS: 15630, - Profit: 22487, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `480`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 144000, - Discounts: 14865, - Sales: 129135, - COGS: 247750, - Profit: 118615, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1205`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 18075, - Discounts: 2093.25, - Sales: 15981.75, - COGS: 27910, - Profit: 11928.25, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2480`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 17360, - Discounts: 199.5, - Sales: 17160.5, - COGS: 2850, - Profit: 14310.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2926`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 20482, - Discounts: 870.45, - Sales: 19611.55, - COGS: 12435, - Profit: 7176.55, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3210`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1123500, - Discounts: 24228.75, - Sales: 1099271.25, - COGS: 359970, - Profit: 739301.25, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3221`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 402625, - Discounts: 22668.75, - Sales: 379956.25, - COGS: 435240, - Profit: 55283.75, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1127`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13524, - Discounts: 1405.2, - Sales: 12118.8, - COGS: 7026, - Profit: 5092.8, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1610`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 32200, - Discounts: 1303, - Sales: 30897, - COGS: 13030, - Profit: 17867, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4100`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 512500, - Discounts: 18700, - Sales: 493800, - COGS: 359040, - Profit: 134760, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1012`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 126500, - Discounts: 14906.25, - Sales: 111593.75, - COGS: 286200, - Profit: 174606.25, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3337`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1001100, - Discounts: 24105, - Sales: 976995, - COGS: 401750, - Profit: 575245, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3955`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 27685, - Discounts: 814.45, - Sales: 26870.55, - COGS: 11635, - Profit: 15235.55, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4347`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1304100, - Discounts: 14865, - Sales: 1289235, - COGS: 247750, - Profit: 1041485, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1548`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 541800, - Discounts: 10535, - Sales: 531265, - COGS: 156520, - Profit: 374745, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2153`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 32295, - Discounts: 1965, - Sales: 30330, - COGS: 26200, - Profit: 4130, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4126`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 515750, - Discounts: 5381.25, - Sales: 510368.75, - COGS: 103320, - Profit: 407048.75, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3376`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67520, - Discounts: 2663, - Sales: 64857, - COGS: 26630, - Profit: 38227, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2244`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 33660, - Discounts: 416.25, - Sales: 33243.75, - COGS: 5550, - Profit: 27693.75, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1360`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 20400, - Discounts: 2145.75, - Sales: 18254.25, - COGS: 28610, - Profit: 10355.75, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `279`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 34875, - Discounts: 5043.75, - Sales: 29831.25, - COGS: 96840, - Profit: 67008.75, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2521`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 882350, - Discounts: 10535, - Sales: 871815, - COGS: 156520, - Profit: 715295, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2433`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 48660, - Discounts: 2832, - Sales: 45828, - COGS: 28320, - Profit: 17508, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1738`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 34760, - Discounts: 1579, - Sales: 33181, - COGS: 15790, - Profit: 17391, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1106`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 138250, - Discounts: 5381.25, - Sales: 132868.75, - COGS: 103320, - Profit: 29548.75, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `213`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 63900, - Discounts: 18750, - Sales: 45150, - COGS: 312500, - Profit: 267350, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2929`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 58580, - Discounts: 2663, - Sales: 55917, - COGS: 26630, - Profit: 29287, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2389`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 16723, - Discounts: 199.5, - Sales: 16523.5, - COGS: 2850, - Profit: 13673.5, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3086`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 21602, - Discounts: 870.45, - Sales: 20731.55, - COGS: 12435, - Profit: 8296.55, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `745`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 260750, - Discounts: 23625, - Sales: 237125, - COGS: 351000, - Profit: 113875, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1266`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 443100, - Discounts: 9660, - Sales: 433440, - COGS: 143520, - Profit: 289920, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4287`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1286100, - Discounts: 18750, - Sales: 1267350, - COGS: 312500, - Profit: 954850, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 47895, - Discounts: 3420.9, - Sales: 44474.1, - COGS: 38010, - Profit: 6464.1, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1967`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39340, - Discounts: 1341, - Sales: 37999, - COGS: 11175, - Profit: 26824, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `631`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 9465, - Discounts: 2559.6, - Sales: 6905.4, - COGS: 28440, - Profit: 21534.6, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3469`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 41628, - Discounts: 404.64, - Sales: 41223.36, - COGS: 1686, - Profit: 39537.36, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3215`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 48225, - Discounts: 1827, - Sales: 46398, - COGS: 20300, - Profit: 26098, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1959`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 685650, - Discounts: 20580, - Sales: 665070, - COGS: 254800, - Profit: 410270, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2181`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 763350, - Discounts: 30660, - Sales: 732690, - COGS: 379600, - Profit: 353090, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2205`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 26460, - Discounts: 1960.56, - Sales: 24499.44, - COGS: 8169, - Profit: 16330.44, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1890`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 661500, - Discounts: 31416, - Sales: 630084, - COGS: 388960, - Profit: 241124, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2417`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 302125, - Discounts: 7140, - Sales: 294985, - COGS: 114240, - Profit: 180745, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1158`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 144750, - Discounts: 20662.5, - Sales: 124087.5, - COGS: 330600, - Profit: 206512.5, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `803`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 12045, - Discounts: 1377, - Sales: 10668, - COGS: 15300, - Profit: 4632, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3705`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1296750, - Discounts: 31416, - Sales: 1265334, - COGS: 388960, - Profit: 876374, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `589`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 4123, - Discounts: 629.16, - Sales: 3493.84, - COGS: 7490, - Profit: 3996.16, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3999`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 59985, - Discounts: 2559.6, - Sales: 57425.4, - COGS: 28440, - Profit: 28985.4, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4256`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 29792, - Discounts: 629.16, - Sales: 29162.84, - COGS: 7490, - Profit: 21672.84, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2160`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 270000, - Discounts: 14906.25, - Sales: 255093.75, - COGS: 238500, - Profit: 16593.75, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `466`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 163100, - Discounts: 35259, - Sales: 127841, - COGS: 436540, - Profit: 308699, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1478`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 22170, - Discounts: 1978.2, - Sales: 20191.8, - COGS: 21980, - Profit: 1788.2, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3798`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 56970, - Discounts: 1568.7, - Sales: 55401.3, - COGS: 17430, - Profit: 37971.3, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `447`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 6705, - Discounts: 1037.7, - Sales: 5667.3, - COGS: 11530, - Profit: 5862.7, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `745`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 14900, - Discounts: 1201.2, - Sales: 13698.8, - COGS: 10010, - Profit: 3688.8, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1732`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 12124, - Discounts: 559.86, - Sales: 11564.14, - COGS: 6665, - Profit: 4899.14, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1759`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 26385, - Discounts: 1037.7, - Sales: 25347.3, - COGS: 11530, - Profit: 13817.3, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `338`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 4056, - Discounts: 610.68, - Sales: 3445.32, - COGS: 2181, - Profit: 1264.32, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3911`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 46932, - Discounts: 1582.56, - Sales: 45349.44, - COGS: 5652, - Profit: 39697.44, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `4473`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 53676, - Discounts: 1965.6, - Sales: 51710.4, - COGS: 7020, - Profit: 44690.4, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `383`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 4596, - Discounts: 1967.28, - Sales: 2628.72, - COGS: 7026, - Profit: 4397.28, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1062`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 15930, - Discounts: 1325.1, - Sales: 14604.9, - COGS: 12620, - Profit: 1984.9, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4083`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 28581, - Discounts: 556.15, - Sales: 28024.85, - COGS: 5675, - Profit: 22349.85, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3974`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 27818, - Discounts: 268.03, - Sales: 27549.97, - COGS: 2735, - Profit: 24814.97, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3723`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 26061, - Discounts: 775.18, - Sales: 25285.82, - COGS: 7910, - Profit: 17375.82, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2435`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 29220, - Discounts: 1460.34, - Sales: 27759.66, - COGS: 5215.5, - Profit: 22544.16, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1763`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 12341, - Discounts: 775.18, - Sales: 11565.82, - COGS: 7910, - Profit: 3655.82, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4473`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 31311, - Discounts: 556.15, - Sales: 30754.85, - COGS: 5675, - Profit: 25079.85, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1246`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 436100, - Discounts: 43144.5, - Sales: 392955.5, - COGS: 457860, - Profit: 64904.5, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1615`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 484500, - Discounts: 9408, - Sales: 475092, - COGS: 112000, - Profit: 363092, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `749`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 224700, - Discounts: 45801, - Sales: 178899, - COGS: 545250, - Profit: 366351, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1318`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 26360, - Discounts: 2766.4, - Sales: 23593.6, - COGS: 19760, - Profit: 3833.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2882`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 864600, - Discounts: 45801, - Sales: 818799, - COGS: 545250, - Profit: 273549, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2484`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 745200, - Discounts: 35742, - Sales: 709458, - COGS: 425500, - Profit: 283958, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3169`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 950700, - Discounts: 9408, - Sales: 941292, - COGS: 112000, - Profit: 829292, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 510000, - Discounts: 30738.75, - Sales: 479261.25, - COGS: 421560, - Profit: 57701.25, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3943`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 59145, - Discounts: 2206.05, - Sales: 56938.95, - COGS: 21010, - Profit: 35928.95, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `253`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 5060, - Discounts: 2149, - Sales: 2911, - COGS: 15350, - Profit: 12439, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `799`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 239700, - Discounts: 34839, - Sales: 204861, - COGS: 414750, - Profit: 209889, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3942`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 78840, - Discounts: 852.6, - Sales: 77987.4, - COGS: 6090, - Profit: 71897.4, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2498`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 312250, - Discounts: 18261.25, - Sales: 293988.75, - COGS: 250440, - Profit: 43548.75, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2517`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 50340, - Discounts: 2766.4, - Sales: 47573.6, - COGS: 19760, - Profit: 27813.6, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1145`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 343500, - Discounts: 28812, - Sales: 314688, - COGS: 343000, - Profit: 28312, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3814`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 45768, - Discounts: 2725.38, - Sales: 43042.62, - COGS: 9733.5, - Profit: 33309.12, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1188`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 356400, - Discounts: 20139, - Sales: 336261, - COGS: 239750, - Profit: 96511, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2233`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 669900, - Discounts: 57687, - Sales: 612213, - COGS: 686750, - Profit: 74537, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `421`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 52625, - Discounts: 14393.75, - Sales: 38231.25, - COGS: 197400, - Profit: 159168.75, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `269`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 94150, - Discounts: 70462, - Sales: 23688, - COGS: 747760, - Profit: 724072, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `952`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19040, - Discounts: 1565.2, - Sales: 17474.8, - COGS: 11180, - Profit: 6294.8, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2964`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 889200, - Discounts: 28812, - Sales: 860388, - COGS: 343000, - Profit: 517388, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1505`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 10535, - Discounts: 273.28, - Sales: 10261.72, - COGS: 2440, - Profit: 7821.72, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1678`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 33560, - Discounts: 2051.2, - Sales: 31508.8, - COGS: 12820, - Profit: 18688.8, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4249`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 29743, - Discounts: 143.92, - Sales: 29599.08, - COGS: 1285, - Profit: 28314.08, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1677`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 33540, - Discounts: 2051.2, - Sales: 31488.8, - COGS: 12820, - Profit: 18668.8, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3051`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 381375, - Discounts: 15400, - Sales: 365975, - COGS: 184800, - Profit: 181175, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3372`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 50580, - Discounts: 588, - Sales: 49992, - COGS: 4900, - Profit: 45092, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1686`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 590100, - Discounts: 38136, - Sales: 551964, - COGS: 354120, - Profit: 197844, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3086`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 46290, - Discounts: 3001.2, - Sales: 43288.8, - COGS: 25010, - Profit: 18278.8, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4150`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 83000, - Discounts: 1132.8, - Sales: 81867.2, - COGS: 7080, - Profit: 74787.2, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3027`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 60540, - Discounts: 1032, - Sales: 59508, - COGS: 6450, - Profit: 53058, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `4359`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1307700, - Discounts: 37488, - Sales: 1270212, - COGS: 390500, - Profit: 879712, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1589`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 23835, - Discounts: 853.2, - Sales: 22981.8, - COGS: 7110, - Profit: 15871.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2679`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 334875, - Discounts: 11140, - Sales: 323735, - COGS: 133680, - Profit: 190055, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3401`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 23807, - Discounts: 705.04, - Sales: 23101.96, - COGS: 6295, - Profit: 16806.96, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2815`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19705, - Discounts: 613.2, - Sales: 19091.8, - COGS: 5475, - Profit: 13616.8, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2964`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 59280, - Discounts: 2185.6, - Sales: 57094.4, - COGS: 13660, - Profit: 43434.4, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4173`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1251900, - Discounts: 59040, - Sales: 1192860, - COGS: 615000, - Profit: 577860, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1157`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 8099, - Discounts: 379.68, - Sales: 7719.32, - COGS: 3390, - Profit: 4329.32, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3065`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 21455, - Discounts: 894.88, - Sales: 20560.12, - COGS: 7990, - Profit: 12570.12, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 81600, - Discounts: 3094.4, - Sales: 78505.6, - COGS: 19340, - Profit: 59165.6, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1713`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34260, - Discounts: 4788.8, - Sales: 29471.2, - COGS: 29930, - Profit: 458.8, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1691`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 591850, - Discounts: 38136, - Sales: 553714, - COGS: 354120, - Profit: 199594, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2305`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 27660, - Discounts: 574.08, - Sales: 27085.92, - COGS: 1794, - Profit: 25291.92, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3401`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 23807, - Discounts: 1627.92, - Sales: 22179.08, - COGS: 14535, - Profit: 7644.08, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2288`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 16016, - Discounts: 1309.28, - Sales: 14706.72, - COGS: 11690, - Profit: 3016.72, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4086`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1225800, - Discounts: 15240, - Sales: 1210560, - COGS: 158750, - Profit: 1051810, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2651`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 927850, - Discounts: 16086, - Sales: 911764, - COGS: 149370, - Profit: 762394, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3971`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27797, - Discounts: 1309.28, - Sales: 26487.72, - COGS: 11690, - Profit: 14797.72, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2512`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 879200, - Discounts: 10668, - Sales: 868532, - COGS: 99060, - Profit: 769472, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2745`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 960750, - Discounts: 11816, - Sales: 948934, - COGS: 109720, - Profit: 839214, - Date: `8/1/20`, - MonthName: `August`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1903`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 570900, - Discounts: 51216, - Sales: 519684, - COGS: 533500, - Profit: 13816, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2914`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 58280, - Discounts: 1132.8, - Sales: 57147.2, - COGS: 7080, - Profit: 50067.2, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1889`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 13223, - Discounts: 1627.92, - Sales: 11595.08, - COGS: 14535, - Profit: 2939.92, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1466`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 29320, - Discounts: 2185.6, - Sales: 27134.4, - COGS: 13660, - Profit: 13474.4, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `887`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 266100, - Discounts: 59040, - Sales: 207060, - COGS: 615000, - Profit: 407940, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `395`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 7900, - Discounts: 2432, - Sales: 5468, - COGS: 15200, - Profit: 9732, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1693`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 25395, - Discounts: 853.2, - Sales: 24541.8, - COGS: 7110, - Profit: 17431.8, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2649`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 794700, - Discounts: 15240, - Sales: 779460, - COGS: 158750, - Profit: 620710, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3608`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 72160, - Discounts: 698.4, - Sales: 71461.6, - COGS: 4365, - Profit: 67096.6, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1073`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 321900, - Discounts: 29538, - Sales: 292362, - COGS: 273500, - Profit: 18862, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2167`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 650100, - Discounts: 102667.5, - Sales: 547432.5, - COGS: 950625, - Profit: 403192.5, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1319`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 461650, - Discounts: 52479, - Sales: 409171, - COGS: 433160, - Profit: 23989, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1252`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 15024, - Discounts: 2506.68, - Sales: 12517.32, - COGS: 6963, - Profit: 5554.32, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1156`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 144500, - Discounts: 31466.25, - Sales: 113033.75, - COGS: 335640, - Profit: 222606.25, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1153`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 345900, - Discounts: 69255, - Sales: 276645, - COGS: 641250, - Profit: 364605, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2720`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 952000, - Discounts: 76135.5, - Sales: 875864.5, - COGS: 628420, - Profit: 247444.5, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3658`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 54870, - Discounts: 4961.25, - Sales: 49908.75, - COGS: 36750, - Profit: 13158.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2950`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 885000, - Discounts: 29538, - Sales: 855462, - COGS: 273500, - Profit: 581962, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1821`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27315, - Discounts: 1656.45, - Sales: 25658.55, - COGS: 12270, - Profit: 13388.55, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1127`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 338100, - Discounts: 35748, - Sales: 302352, - COGS: 331000, - Profit: 28648, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `862`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 107750, - Discounts: 31466.25, - Sales: 76283.75, - COGS: 335640, - Profit: 259356.25, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3805`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 57075, - Discounts: 330.75, - Sales: 56744.25, - COGS: 2450, - Profit: 54294.25, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1415`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 424500, - Discounts: 102424.5, - Sales: 322075.5, - COGS: 948375, - Profit: 626299.5, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2231`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 780850, - Discounts: 41170.5, - Sales: 739679.5, - COGS: 339820, - Profit: 399859.5, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3649`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 456125, - Discounts: 6378.75, - Sales: 449746.25, - COGS: 68040, - Profit: 381706.25, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2948`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 368500, - Discounts: 23737.5, - Sales: 344762.5, - COGS: 253200, - Profit: 91562.5, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3395`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1188250, - Discounts: 39973.5, - Sales: 1148276.5, - COGS: 329940, - Profit: 818336.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2650`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 31800, - Discounts: 2112.48, - Sales: 29687.52, - COGS: 5868, - Profit: 23819.52, - Date: `1/1/20`, - MonthName: `January`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `585`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 175500, - Discounts: 71793, - Sales: 103707, - COGS: 664750, - Profit: 561043, - Date: `2/1/20`, - MonthName: `February`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1316`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 460600, - Discounts: 42572.25, - Sales: 418027.75, - COGS: 351390, - Profit: 66637.75, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `4459`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 53508, - Discounts: 950.4, - Sales: 52557.6, - COGS: 2640, - Profit: 49917.6, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2711`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 813300, - Discounts: 50409, - Sales: 762891, - COGS: 466750, - Profit: 296141, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3613`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 54195, - Discounts: 1656.45, - Sales: 52538.55, - COGS: 12270, - Profit: 40268.55, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1847`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 230875, - Discounts: 9866.25, - Sales: 221008.75, - COGS: 105240, - Profit: 115768.75, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2996`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1048600, - Discounts: 65236.5, - Sales: 983363.5, - COGS: 538460, - Profit: 444903.5, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2838`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 993300, - Discounts: 39973.5, - Sales: 953326.5, - COGS: 329940, - Profit: 623386.5, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1536`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 30720, - Discounts: 3049.2, - Sales: 27670.8, - COGS: 16940, - Profit: 10730.8, - Date: `11/1/20`, - MonthName: `November`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1291`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 25820, - Discounts: 1193.4, - Sales: 24626.6, - COGS: 6630, - Profit: 17996.6, - Date: `5/1/20`, - MonthName: `May`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1213`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 8491, - Discounts: 515.97, - Sales: 7975.03, - COGS: 4095, - Profit: 3880.03, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2370`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 28440, - Discounts: 1706.4, - Sales: 26733.6, - COGS: 4740, - Profit: 21993.6, - Date: `9/1/20`, - MonthName: `September`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1979`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 13853, - Discounts: 328.23, - Sales: 13524.77, - COGS: 2605, - Profit: 10919.77, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2879`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 57580, - Discounts: 1751.4, - Sales: 55828.6, - COGS: 9730, - Profit: 46098.6, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1707`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34140, - Discounts: 1868.4, - Sales: 32271.6, - COGS: 10380, - Profit: 21891.6, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2933`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 20531, - Discounts: 226.8, - Sales: 20304.2, - COGS: 1800, - Profit: 18504.2, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1014`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 12168, - Discounts: 2124.36, - Sales: 10043.64, - COGS: 5901, - Profit: 4142.64, - Date: `3/1/20`, - MonthName: `March`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `693`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 10395, - Discounts: 3547.8, - Sales: 6847.2, - COGS: 26280, - Profit: 19432.8, - Date: `4/1/20`, - MonthName: `April`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3741`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26187, - Discounts: 226.8, - Sales: 25960.2, - COGS: 1800, - Profit: 24160.2, - Date: `10/1/20`, - MonthName: `October`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `3995`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27965, - Discounts: 328.23, - Sales: 27636.77, - COGS: 2605, - Profit: 25031.77, - Date: `12/1/20`, - MonthName: `December`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `953`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19060, - Discounts: 1868.4, - Sales: 17191.6, - COGS: 10380, - Profit: 6811.6, - Date: `6/1/20`, - MonthName: `June`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2530`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 37950, - Discounts: 2201.18, - Sales: 35748.82, - COGS: 16305, - Profit: 19443.82, - Date: `7/1/20`, - MonthName: `July`, - Year: `2020` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1372`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 27440, - Discounts: 0, - Sales: 27440, - COGS: 16185, - Profit: 11255, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2762`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 55240, - Discounts: 0, - Sales: 55240, - COGS: 13210, - Profit: 42030, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1464`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 21960, - Discounts: 0, - Sales: 21960, - COGS: 21780, - Profit: 180, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `719`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 10785, - Discounts: 0, - Sales: 10785, - COGS: 8880, - Profit: 1905, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3576`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 53640, - Discounts: 0, - Sales: 53640, - COGS: 24700, - Profit: 28940, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `4422`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1547700, - Discounts: 0, - Sales: 1547700, - COGS: 393380, - Profit: 1154320, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3649`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 54735, - Discounts: 0, - Sales: 54735, - COGS: 9210, - Profit: 45525, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4172`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 50064, - Discounts: 0, - Sales: 50064, - COGS: 7554, - Profit: 42510, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3841`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 76820, - Discounts: 0, - Sales: 76820, - COGS: 18990, - Profit: 57830, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3726`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 44712, - Discounts: 0, - Sales: 44712, - COGS: 4635, - Profit: 40077, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2625`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 39375, - Discounts: 0, - Sales: 39375, - COGS: 24700, - Profit: 14675, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1958`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 244750, - Discounts: 0, - Sales: 244750, - COGS: 319860, - Profit: 75110, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3271`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 981300, - Discounts: 0, - Sales: 981300, - COGS: 239500, - Profit: 741800, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2091`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 14637, - Discounts: 0, - Sales: 14637, - COGS: 10730, - Profit: 3907, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2530`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 316250, - Discounts: 0, - Sales: 316250, - COGS: 41400, - Profit: 274850, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2825`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 42375, - Discounts: 0, - Sales: 42375, - COGS: 6150, - Profit: 36225, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2513`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 50260, - Discounts: 0, - Sales: 50260, - COGS: 2920, - Profit: 47340, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `883`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 13245, - Discounts: 0, - Sales: 13245, - COGS: 9740, - Profit: 3505, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2087`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 25044, - Discounts: 0, - Sales: 25044, - COGS: 7554, - Profit: 17490, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2563`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 897050, - Discounts: 0, - Sales: 897050, - COGS: 261560, - Profit: 635490, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2846`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 34152, - Discounts: 0, - Sales: 34152, - COGS: 1101, - Profit: 33051, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `997`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 6979, - Discounts: 0, - Sales: 6979, - COGS: 4415, - Profit: 2564, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3421`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 51315, - Discounts: 0, - Sales: 51315, - COGS: 5490, - Profit: 45825, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Marchesa`, - UnitsSold: `70000`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 1050000, - Discounts: 0, - Sales: 1050000, - COGS: 5490, - Profit: 1044510, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2291`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 687300, - Discounts: 0, - Sales: 687300, - COGS: 197000, - Profit: 490300, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2290`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 34350, - Discounts: 0, - Sales: 34350, - COGS: 24720, - Profit: 9630, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2133`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14931, - Discounts: 0, - Sales: 14931, - COGS: 5715, - Profit: 9216, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3475`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1216250, - Discounts: 0, - Sales: 1216250, - COGS: 448500, - Profit: 767750, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3686`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 44232, - Discounts: 0, - Sales: 44232, - COGS: 2736, - Profit: 41496, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3319`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 49785, - Discounts: 0, - Sales: 49785, - COGS: 21520, - Profit: 28265, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3617`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 72340, - Discounts: 0, - Sales: 72340, - COGS: 18170, - Profit: 54170, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1266`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 443100, - Discounts: 0, - Sales: 443100, - COGS: 393380, - Profit: 49720, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `894`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 6258, - Discounts: 0, - Sales: 6258, - COGS: 7465, - Profit: 1207, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2725`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 340625, - Discounts: 0, - Sales: 340625, - COGS: 216480, - Profit: 124145, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3061`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 36732, - Discounts: 0, - Sales: 36732, - COGS: 6483, - Profit: 30249, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3958`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1385300, - Discounts: 0, - Sales: 1385300, - COGS: 261560, - Profit: 1123740, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3920`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 47040, - Discounts: 0, - Sales: 47040, - COGS: 4635, - Profit: 42405, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3381`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 422625, - Discounts: 0, - Sales: 422625, - COGS: 338520, - Profit: 84105, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1094`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 136750, - Discounts: 0, - Sales: 136750, - COGS: 41400, - Profit: 95350, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4307`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 1292100, - Discounts: 0, - Sales: 1292100, - COGS: 500250, - Profit: 791850, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `878`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10536, - Discounts: 0, - Sales: 10536, - COGS: 8514, - Profit: 2022, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `496`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 7440, - Discounts: 0, - Sales: 7440, - COGS: 21780, - Profit: 14340, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3367`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 50505, - Discounts: 0, - Sales: 50505, - COGS: 8880, - Profit: 41625, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3880`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1358000, - Discounts: 0, - Sales: 1358000, - COGS: 397020, - Profit: 960980, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2055`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 616500, - Discounts: 0, - Sales: 616500, - COGS: 537750, - Profit: 78750, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4041`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 80820, - Discounts: 0, - Sales: 80820, - COGS: 18170, - Profit: 62650, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `3237`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1132950, - Discounts: 0, - Sales: 1132950, - COGS: 715000, - Profit: 417950, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `630`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 7560, - Discounts: 0, - Sales: 7560, - COGS: 5859, - Profit: 1701, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4210`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 526250, - Discounts: 0, - Sales: 526250, - COGS: 506340, - Profit: 19910, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1127`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 22540, - Discounts: 0, - Sales: 22540, - COGS: 18990, - Profit: 3550, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3438`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 24066, - Discounts: 0, - Sales: 24066, - COGS: 8430, - Profit: 15636, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2015`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 24180, - Discounts: 0, - Sales: 24180, - COGS: 6423, - Profit: 17757, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2534`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 17738, - Discounts: 0, - Sales: 17738, - COGS: 5715, - Profit: 12023, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1384`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 20760, - Discounts: 0, - Sales: 20760, - COGS: 6150, - Profit: 14610, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3561`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 24927, - Discounts: 276.15, - Sales: 24650.85, - COGS: 19725, - Profit: 4925.85, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1823`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27345, - Discounts: 344.4, - Sales: 27000.6, - COGS: 22960, - Profit: 4040.6, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2795`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19565, - Discounts: 72.1, - Sales: 19492.9, - COGS: 5150, - Profit: 14342.9, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `457`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 3199, - Discounts: 44.73, - Sales: 3154.27, - COGS: 3195, - Profit: 40.73, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3785`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26495, - Discounts: 92.82, - Sales: 26402.18, - COGS: 6630, - Profit: 19772.18, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `748`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 8976, - Discounts: 222.96, - Sales: 8753.04, - COGS: 5574, - Profit: 3179.04, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1021`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 357350, - Discounts: 4235, - Sales: 353115, - COGS: 314600, - Profit: 38515, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2076`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 14532, - Discounts: 177.03, - Sales: 14354.97, - COGS: 12645, - Profit: 1709.97, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `4316`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 51792, - Discounts: 173.4, - Sales: 51618.6, - COGS: 4335, - Profit: 47283.6, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2654`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 331750, - Discounts: 412.5, - Sales: 331337.5, - COGS: 39600, - Profit: 291737.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4174`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50088, - Discounts: 320.52, - Sales: 49767.48, - COGS: 8013, - Profit: 41754.48, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1675`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 20100, - Discounts: 91.92, - Sales: 20008.08, - COGS: 2298, - Profit: 17710.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1572`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 471600, - Discounts: 1482, - Sales: 470118, - COGS: 123500, - Profit: 346618, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3736`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1307600, - Discounts: 4889.5, - Sales: 1302710.5, - COGS: 363220, - Profit: 939490.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1914`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 669900, - Discounts: 7542.5, - Sales: 662357.5, - COGS: 560300, - Profit: 102057.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2742`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 41130, - Discounts: 332.1, - Sales: 40797.9, - COGS: 22140, - Profit: 18657.9, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1499`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 449700, - Discounts: 6903, - Sales: 442797, - COGS: 575250, - Profit: 132453, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 75440, - Discounts: 275.1, - Sales: 75164.9, - COGS: 13755, - Profit: 61409.9, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1112`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 7784, - Discounts: 128.1, - Sales: 7655.9, - COGS: 9150, - Profit: 1494.1, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1723`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 516900, - Discounts: 7494, - Sales: 509406, - COGS: 624500, - Profit: 115094, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `423`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 52875, - Discounts: 828.75, - Sales: 52046.25, - COGS: 79560, - Profit: 27513.75, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2368`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 35520, - Discounts: 227.1, - Sales: 35292.9, - COGS: 15140, - Profit: 20152.9, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 11102, - Discounts: 314.48, - Sales: 10787.52, - COGS: 22462.5, - Profit: 11674.98, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3386`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 423250, - Discounts: 908.75, - Sales: 422341.25, - COGS: 87240, - Profit: 335101.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `852`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 106500, - Discounts: 983.75, - Sales: 105516.25, - COGS: 94440, - Profit: 11076.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2783`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 347875, - Discounts: 2278.75, - Sales: 345596.25, - COGS: 218760, - Profit: 126836.25, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2684`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 40260, - Discounts: 112.05, - Sales: 40147.95, - COGS: 7470, - Profit: 32677.95, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4393`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 52716, - Discounts: 91.92, - Sales: 52624.08, - COGS: 2298, - Profit: 50326.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4083`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1224900, - Discounts: 8715, - Sales: 1216185, - COGS: 726250, - Profit: 489935, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2816`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 985600, - Discounts: 7542.5, - Sales: 978057.5, - COGS: 560300, - Profit: 417757.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4294`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 85880, - Discounts: 772.8, - Sales: 85107.2, - COGS: 38640, - Profit: 46467.2, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2856`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 19992, - Discounts: 25.34, - Sales: 19966.66, - COGS: 1810, - Profit: 18156.66, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1407`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 175875, - Discounts: 1153.75, - Sales: 174721.25, - COGS: 110760, - Profit: 63961.25, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3850`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 481250, - Discounts: 828.75, - Sales: 480421.25, - COGS: 79560, - Profit: 400861.25, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2856`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 19992, - Discounts: 146.44, - Sales: 19845.56, - COGS: 10460, - Profit: 9385.56, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1265`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 8855, - Discounts: 18.41, - Sales: 8836.59, - COGS: 1315, - Profit: 7521.59, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3892`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1362200, - Discounts: 3302.25, - Sales: 1358897.75, - COGS: 245310, - Profit: 1113587.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3068`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 383500, - Discounts: 908.75, - Sales: 382591.25, - COGS: 87240, - Profit: 295351.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2181`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 272625, - Discounts: 983.75, - Sales: 271641.25, - COGS: 94440, - Profit: 177201.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1356`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 406800, - Discounts: 2958, - Sales: 403842, - COGS: 246500, - Profit: 157342, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2545`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 763500, - Discounts: 1482, - Sales: 762018, - COGS: 123500, - Profit: 638518, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1814`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 634900, - Discounts: 4889.5, - Sales: 630010.5, - COGS: 363220, - Profit: 266790.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1495`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 186875, - Discounts: 2180, - Sales: 184695, - COGS: 209280, - Profit: 24585, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1154`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 13848, - Discounts: 238.68, - Sales: 13609.32, - COGS: 5967, - Profit: 7642.32, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `4180`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 62700, - Discounts: 48.15, - Sales: 62651.85, - COGS: 3210, - Profit: 59441.85, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1463`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 182875, - Discounts: 1856.25, - Sales: 181018.75, - COGS: 89100, - Profit: 91918.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `215`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 2580, - Discounts: 310.8, - Sales: 2269.2, - COGS: 3885, - Profit: 1615.8, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `4099`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 1229700, - Discounts: 1284, - Sales: 1228416, - COGS: 53500, - Profit: 1174916, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2660`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 18620, - Discounts: 300.3, - Sales: 18319.7, - COGS: 10725, - Profit: 7594.7, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `566`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 198100, - Discounts: 19964, - Sales: 178136, - COGS: 741520, - Profit: 563384, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3255`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 39060, - Discounts: 274.08, - Sales: 38785.92, - COGS: 3426, - Profit: 35359.92, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `772`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 15440, - Discounts: 626.4, - Sales: 14813.6, - COGS: 15660, - Profit: 846.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1135`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13620, - Discounts: 165.6, - Sales: 13454.4, - COGS: 2070, - Profit: 11384.4, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3826`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 478250, - Discounts: 4150, - Sales: 474100, - COGS: 199200, - Profit: 274900, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 17895, - Discounts: 708.9, - Sales: 17186.1, - COGS: 23630, - Profit: 6443.9, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2530`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 759000, - Discounts: 5508, - Sales: 753492, - COGS: 229500, - Profit: 523992, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3451`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1035300, - Discounts: 10368, - Sales: 1024932, - COGS: 432000, - Profit: 592932, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3059`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 36708, - Discounts: 274.08, - Sales: 36433.92, - COGS: 3426, - Profit: 33007.92, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3957`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 494625, - Discounts: 1655, - Sales: 492970, - COGS: 79440, - Profit: 413530, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3444`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 41328, - Discounts: 310.8, - Sales: 41017.2, - COGS: 3885, - Profit: 37132.2, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4388`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 548500, - Discounts: 2022.5, - Sales: 546477.5, - COGS: 97080, - Profit: 449397.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2106`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 263250, - Discounts: 5362.5, - Sales: 257887.5, - COGS: 257400, - Profit: 487.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `799`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 9588, - Discounts: 428.4, - Sales: 9159.6, - COGS: 5355, - Profit: 3804.6, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3154`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 946200, - Discounts: 11496, - Sales: 934704, - COGS: 479000, - Profit: 455704, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4108`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1437800, - Discounts: 19964, - Sales: 1417836, - COGS: 741520, - Profit: 676316, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3760`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 470000, - Discounts: 6822.5, - Sales: 463177.5, - COGS: 327480, - Profit: 135697.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `377`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 5655, - Discounts: 577.5, - Sales: 5077.5, - COGS: 19250, - Profit: 14172.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2110`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14770, - Discounts: 281.82, - Sales: 14488.18, - COGS: 10065, - Profit: 4423.18, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2334`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 28008, - Discounts: 253.2, - Sales: 27754.8, - COGS: 3165, - Profit: 24589.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `580`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 6960, - Discounts: 260.16, - Sales: 6699.84, - COGS: 3252, - Profit: 3447.84, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2610`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 52200, - Discounts: 626.4, - Sales: 51573.6, - COGS: 15660, - Profit: 35913.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1598`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 559300, - Discounts: 20762, - Sales: 538538, - COGS: 771160, - Profit: 232622, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1459`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 510650, - Discounts: 20139, - Sales: 490511, - COGS: 748020, - Profit: 257509, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3284`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 410500, - Discounts: 2022.5, - Sales: 408477.5, - COGS: 97080, - Profit: 311397.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1197`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 149625, - Discounts: 5362.5, - Sales: 144262.5, - COGS: 257400, - Profit: 113137.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3774`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 45288, - Discounts: 253.2, - Sales: 45034.8, - COGS: 3165, - Profit: 41869.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2303`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 46060, - Discounts: 217.6, - Sales: 45842.4, - COGS: 5440, - Profit: 40402.4, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2572`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 30864, - Discounts: 260.16, - Sales: 30603.84, - COGS: 3252, - Profit: 27351.84, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `320`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 40000, - Discounts: 1655, - Sales: 38345, - COGS: 79440, - Profit: 41095, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2126`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 637800, - Discounts: 1284, - Sales: 636516, - COGS: 53500, - Profit: 583016, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3275`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1146250, - Discounts: 20139, - Sales: 1126111, - COGS: 748020, - Profit: 378091, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3582`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 447750, - Discounts: 6822.5, - Sales: 440927.5, - COGS: 327480, - Profit: 113447.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `783`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 274050, - Discounts: 1862, - Sales: 272188, - COGS: 69160, - Profit: 203028, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1202`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 420700, - Discounts: 13580, - Sales: 407120, - COGS: 504400, - Profit: 97280, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4056`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1216800, - Discounts: 1554, - Sales: 1215246, - COGS: 64750, - Profit: 1150496, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2144`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 643200, - Discounts: 6606, - Sales: 636594, - COGS: 275250, - Profit: 361344, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3502`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 437750, - Discounts: 5690, - Sales: 432060, - COGS: 273120, - Profit: 158940, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1397`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 488950, - Discounts: 20762, - Sales: 468188, - COGS: 771160, - Profit: 302972, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `679`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 13580, - Discounts: 494.4, - Sales: 13085.6, - COGS: 12360, - Profit: 725.6, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2351`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 47020, - Discounts: 376.4, - Sales: 46643.6, - COGS: 9410, - Profit: 37233.6, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2043`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 612900, - Discounts: 11496, - Sales: 601404, - COGS: 479000, - Profit: 122404, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3565`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 445625, - Discounts: 15913.13, - Sales: 429711.88, - COGS: 509220, - Profit: 79508.13, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1401`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 28020, - Discounts: 1548, - Sales: 26472, - COGS: 25800, - Profit: 672, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2077`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 623100, - Discounts: 6201, - Sales: 616899, - COGS: 172250, - Profit: 444649, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3643`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 43716, - Discounts: 700.92, - Sales: 43015.08, - COGS: 5841, - Profit: 37174.08, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1105`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 13260, - Discounts: 326.88, - Sales: 12933.12, - COGS: 2724, - Profit: 10209.12, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2960`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20720, - Discounts: 411.18, - Sales: 20308.82, - COGS: 9790, - Profit: 10518.82, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1201`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 14412, - Discounts: 684.36, - Sales: 13727.64, - COGS: 5703, - Profit: 8024.64, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2321`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 16247, - Discounts: 114.24, - Sales: 16132.76, - COGS: 2720, - Profit: 13412.76, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3640`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1274000, - Discounts: 18868.5, - Sales: 1255131.5, - COGS: 467220, - Profit: 787911.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3972`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 496500, - Discounts: 4826.25, - Sales: 491673.75, - COGS: 154440, - Profit: 337233.75, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3878`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 484750, - Discounts: 6397.5, - Sales: 478352.5, - COGS: 204720, - Profit: 273632.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2278`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 683400, - Discounts: 21910.5, - Sales: 661489.5, - COGS: 608625, - Profit: 52864.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1075`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 134375, - Discounts: 6652.5, - Sales: 127722.5, - COGS: 212880, - Profit: 85157.5, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4050`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 48600, - Discounts: 684.36, - Sales: 47915.64, - COGS: 5703, - Profit: 42212.64, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3035`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 910500, - Discounts: 6201, - Sales: 904299, - COGS: 172250, - Profit: 732049, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3636`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 454500, - Discounts: 5887.5, - Sales: 448612.5, - COGS: 188400, - Profit: 260212.5, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1379`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 16548, - Discounts: 493.02, - Sales: 16054.98, - COGS: 4108.5, - Profit: 11946.48, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4492`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 561500, - Discounts: 7533.75, - Sales: 553966.25, - COGS: 241080, - Profit: 312886.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `764`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 11460, - Discounts: 875.25, - Sales: 10584.75, - COGS: 19450, - Profit: 8865.25, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1744`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 218000, - Discounts: 4826.25, - Sales: 213173.75, - COGS: 154440, - Profit: 58733.75, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2341`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 292625, - Discounts: 6397.5, - Sales: 286227.5, - COGS: 204720, - Profit: 81507.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3835`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 479375, - Discounts: 7533.75, - Sales: 471841.25, - COGS: 241080, - Profit: 230761.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1161`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 348300, - Discounts: 25596, - Sales: 322704, - COGS: 711000, - Profit: 388296, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `876`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 10512, - Discounts: 689.76, - Sales: 9822.24, - COGS: 5748, - Profit: 4074.24, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1705`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 213125, - Discounts: 5887.5, - Sales: 207237.5, - COGS: 188400, - Profit: 18837.5, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1805`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 541500, - Discounts: 16866, - Sales: 524634, - COGS: 468500, - Profit: 56134, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `389`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 136150, - Discounts: 17241, - Sales: 118909, - COGS: 426920, - Profit: 308011, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2745`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 41175, - Discounts: 875.25, - Sales: 40299.75, - COGS: 19450, - Profit: 20849.75, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1459`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 29180, - Discounts: 498.6, - Sales: 28681.4, - COGS: 8310, - Profit: 20371.4, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3938`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 27566, - Discounts: 369.6, - Sales: 27196.4, - COGS: 8800, - Profit: 18396.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4236`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 84720, - Discounts: 2310.3, - Sales: 82409.7, - COGS: 38505, - Profit: 43904.7, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3627`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 43524, - Discounts: 892.44, - Sales: 42631.56, - COGS: 7437, - Profit: 35194.56, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1756`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 26340, - Discounts: 1218.6, - Sales: 25121.4, - COGS: 20310, - Profit: 4811.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `307`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 4605, - Discounts: 1218.6, - Sales: 3386.4, - COGS: 20310, - Profit: 16923.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4489`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 67335, - Discounts: 1356.6, - Sales: 65978.4, - COGS: 22610, - Profit: 43368.4, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2167`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 43340, - Discounts: 588.8, - Sales: 42751.2, - COGS: 7360, - Profit: 35391.2, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1137`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 7959, - Discounts: 798.28, - Sales: 7160.72, - COGS: 14255, - Profit: 7094.28, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1222`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 366600, - Discounts: 24252, - Sales: 342348, - COGS: 505250, - Profit: 162902, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `489`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 171150, - Discounts: 3836, - Sales: 167314, - COGS: 71240, - Profit: 96074, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4133`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 61995, - Discounts: 1180.2, - Sales: 60814.8, - COGS: 19670, - Profit: 41144.8, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2743`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 822900, - Discounts: 22308, - Sales: 800592, - COGS: 464750, - Profit: 335842, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3699`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 25893, - Discounts: 798.28, - Sales: 25094.72, - COGS: 14255, - Profit: 10839.72, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `4460`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1338000, - Discounts: 24252, - Sales: 1313748, - COGS: 505250, - Profit: 808498, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1232`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 154000, - Discounts: 5690, - Sales: 148310, - COGS: 136560, - Profit: 11750, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2586`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 18102, - Discounts: 1190.28, - Sales: 16911.72, - COGS: 21255, - Profit: 4343.28, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1332`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 166500, - Discounts: 3975, - Sales: 162525, - COGS: 95400, - Profit: 67125, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4487`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1346100, - Discounts: 16974, - Sales: 1329126, - COGS: 353625, - Profit: 975501, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3862`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1158600, - Discounts: 35016, - Sales: 1123584, - COGS: 729500, - Profit: 394084, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1765`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 617750, - Discounts: 48300, - Sales: 569450, - COGS: 897000, - Profit: 327550, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3533`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 441625, - Discounts: 14940, - Sales: 426685, - COGS: 358560, - Profit: 68125, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2016`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 30240, - Discounts: 130.8, - Sales: 30109.2, - COGS: 2180, - Profit: 27929.2, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2938`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 58760, - Discounts: 1659.2, - Sales: 57100.8, - COGS: 20740, - Profit: 36360.8, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3352`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67040, - Discounts: 844.8, - Sales: 66195.2, - COGS: 10560, - Profit: 55635.2, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4409`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 66135, - Discounts: 402.6, - Sales: 65732.4, - COGS: 6710, - Profit: 59022.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3323`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 49845, - Discounts: 908.4, - Sales: 48936.6, - COGS: 15140, - Profit: 33796.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2430`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 850500, - Discounts: 3836, - Sales: 846664, - COGS: 71240, - Profit: 775424, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `535`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 66875, - Discounts: 5690, - Sales: 61185, - COGS: 136560, - Profit: 75375, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1523`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 18276, - Discounts: 703.2, - Sales: 17572.8, - COGS: 4395, - Profit: 13177.8, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3631`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 72620, - Discounts: 2116.8, - Sales: 70503.2, - COGS: 26460, - Profit: 44043.2, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1782`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 623700, - Discounts: 30478, - Sales: 593222, - COGS: 566020, - Profit: 27202, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `347`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 4164, - Discounts: 415.68, - Sales: 3748.32, - COGS: 2598, - Profit: 1150.32, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `4147`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1451450, - Discounts: 4886, - Sales: 1446564, - COGS: 90740, - Profit: 1355824, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3509`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 1228150, - Discounts: 30478, - Sales: 1197672, - COGS: 566020, - Profit: 631652, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2774`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 41610, - Discounts: 908.4, - Sales: 40701.6, - COGS: 15140, - Profit: 25561.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2943`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1030050, - Discounts: 26110, - Sales: 1003940, - COGS: 484900, - Profit: 519040, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `4037`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 504625, - Discounts: 5370, - Sales: 499255, - COGS: 128880, - Profit: 370375, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4146`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1451100, - Discounts: 26698, - Sales: 1424402, - COGS: 495820, - Profit: 928582, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `4123`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 61845, - Discounts: 402.6, - Sales: 61442.4, - COGS: 6710, - Profit: 54732.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1337`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 467950, - Discounts: 24892, - Sales: 443058, - COGS: 462280, - Profit: 19222, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `599`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 4193, - Discounts: 405.65, - Sales: 3787.35, - COGS: 5795, - Profit: 2007.65, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `725`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 5075, - Discounts: 480.2, - Sales: 4594.8, - COGS: 6860, - Profit: 2265.2, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `477`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 3339, - Discounts: 822.15, - Sales: 2516.85, - COGS: 11745, - Profit: 9228.15, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2325`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 16275, - Discounts: 941.15, - Sales: 15333.85, - COGS: 13445, - Profit: 1888.85, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `675`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 8100, - Discounts: 1458.6, - Sales: 6641.4, - COGS: 7293, - Profit: 651.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2990`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 35880, - Discounts: 1458.6, - Sales: 34421.4, - COGS: 7293, - Profit: 27128.4, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1072`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 7504, - Discounts: 941.15, - Sales: 6562.85, - COGS: 13445, - Profit: 6882.15, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1048`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 7336, - Discounts: 589.05, - Sales: 6746.95, - COGS: 8415, - Profit: 1668.05, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `469`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 5628, - Discounts: 673.8, - Sales: 4954.2, - COGS: 3369, - Profit: 1585.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `804`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 5628, - Discounts: 405.65, - Sales: 5222.35, - COGS: 5795, - Profit: 572.65, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4240`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 50880, - Discounts: 1119, - Sales: 49761, - COGS: 5595, - Profit: 44166, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1976`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 23712, - Discounts: 669.6, - Sales: 23042.4, - COGS: 3348, - Profit: 19694.4, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1984`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39680, - Discounts: 1563, - Sales: 38117, - COGS: 15630, - Profit: 22487, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `480`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 144000, - Discounts: 14865, - Sales: 129135, - COGS: 247750, - Profit: 118615, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `3551`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 24857, - Discounts: 355.6, - Sales: 24501.4, - COGS: 5080, - Profit: 19421.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1205`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 18075, - Discounts: 2093.25, - Sales: 15981.75, - COGS: 27910, - Profit: 11928.25, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2480`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 17360, - Discounts: 199.5, - Sales: 17160.5, - COGS: 2850, - Profit: 14310.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2926`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 20482, - Discounts: 870.45, - Sales: 19611.55, - COGS: 12435, - Profit: 7176.55, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3210`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1123500, - Discounts: 24228.75, - Sales: 1099271.25, - COGS: 359970, - Profit: 739301.25, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `3221`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 402625, - Discounts: 22668.75, - Sales: 379956.25, - COGS: 435240, - Profit: 55283.75, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2389`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 836150, - Discounts: 12600, - Sales: 823550, - COGS: 187200, - Profit: 636350, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1127`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 13524, - Discounts: 1405.2, - Sales: 12118.8, - COGS: 7026, - Profit: 5092.8, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `319`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 95700, - Discounts: 16500, - Sales: 79200, - COGS: 275000, - Profit: 195800, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1610`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 32200, - Discounts: 1303, - Sales: 30897, - COGS: 13030, - Profit: 17867, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4100`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 512500, - Discounts: 18700, - Sales: 493800, - COGS: 359040, - Profit: 134760, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1012`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 126500, - Discounts: 14906.25, - Sales: 111593.75, - COGS: 286200, - Profit: 174606.25, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3337`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1001100, - Discounts: 24105, - Sales: 976995, - COGS: 401750, - Profit: 575245, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3955`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 27685, - Discounts: 814.45, - Sales: 26870.55, - COGS: 11635, - Profit: 15235.55, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4347`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1304100, - Discounts: 14865, - Sales: 1289235, - COGS: 247750, - Profit: 1041485, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1548`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 541800, - Discounts: 10535, - Sales: 531265, - COGS: 156520, - Profit: 374745, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2153`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 32295, - Discounts: 1965, - Sales: 30330, - COGS: 26200, - Profit: 4130, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3789`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1326150, - Discounts: 21490, - Sales: 1304660, - COGS: 319280, - Profit: 985380, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4364`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 87280, - Discounts: 1389, - Sales: 85891, - COGS: 13890, - Profit: 72001, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4126`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 515750, - Discounts: 5381.25, - Sales: 510368.75, - COGS: 103320, - Profit: 407048.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1343`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 167875, - Discounts: 4400, - Sales: 163475, - COGS: 84480, - Profit: 78995, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `245`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 4900, - Discounts: 1802, - Sales: 3098, - COGS: 18020, - Profit: 14922, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3376`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 67520, - Discounts: 2663, - Sales: 64857, - COGS: 26630, - Profit: 38227, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1401`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 9807, - Discounts: 747.6, - Sales: 9059.4, - COGS: 10680, - Profit: 1620.6, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3483`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 52245, - Discounts: 1587, - Sales: 50658, - COGS: 21160, - Profit: 29498, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2244`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 33660, - Discounts: 416.25, - Sales: 33243.75, - COGS: 5550, - Profit: 27693.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1360`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 20400, - Discounts: 2145.75, - Sales: 18254.25, - COGS: 28610, - Profit: 10355.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `279`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 34875, - Discounts: 5043.75, - Sales: 29831.25, - COGS: 96840, - Profit: 67008.75, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2521`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 882350, - Discounts: 10535, - Sales: 871815, - COGS: 156520, - Profit: 715295, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2433`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 48660, - Discounts: 2832, - Sales: 45828, - COGS: 28320, - Profit: 17508, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1738`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 34760, - Discounts: 1579, - Sales: 33181, - COGS: 15790, - Profit: 17391, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1106`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 138250, - Discounts: 5381.25, - Sales: 132868.75, - COGS: 103320, - Profit: 29548.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3379`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 422375, - Discounts: 4400, - Sales: 417975, - COGS: 84480, - Profit: 333495, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1221`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 24420, - Discounts: 1033, - Sales: 23387, - COGS: 10330, - Profit: 13057, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `213`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 63900, - Discounts: 18750, - Sales: 45150, - COGS: 312500, - Profit: 267350, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3335`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 66700, - Discounts: 1389, - Sales: 65311, - COGS: 13890, - Profit: 51421, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1260`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 25200, - Discounts: 1265, - Sales: 23935, - COGS: 12650, - Profit: 11285, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3034`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 60680, - Discounts: 2297, - Sales: 58383, - COGS: 22970, - Profit: 35413, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2929`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 58580, - Discounts: 2663, - Sales: 55917, - COGS: 26630, - Profit: 29287, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2389`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 16723, - Discounts: 199.5, - Sales: 16523.5, - COGS: 2850, - Profit: 13673.5, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3086`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 21602, - Discounts: 870.45, - Sales: 20731.55, - COGS: 12435, - Profit: 8296.55, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `745`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 260750, - Discounts: 23625, - Sales: 237125, - COGS: 351000, - Profit: 113875, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1266`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 443100, - Discounts: 9660, - Sales: 433440, - COGS: 143520, - Profit: 289920, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3790`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1326500, - Discounts: 21490, - Sales: 1305010, - COGS: 319280, - Profit: 985730, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `4287`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1286100, - Discounts: 18750, - Sales: 1267350, - COGS: 312500, - Profit: 954850, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3193`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 47895, - Discounts: 3420.9, - Sales: 44474.1, - COGS: 38010, - Profit: 6464.1, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1967`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 39340, - Discounts: 1341, - Sales: 37999, - COGS: 11175, - Profit: 26824, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `631`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 9465, - Discounts: 2559.6, - Sales: 6905.4, - COGS: 28440, - Profit: 21534.6, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3469`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 41628, - Discounts: 404.64, - Sales: 41223.36, - COGS: 1686, - Profit: 39537.36, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `570`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 6840, - Discounts: 1655.28, - Sales: 5184.72, - COGS: 6897, - Profit: 1712.28, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3215`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 48225, - Discounts: 1827, - Sales: 46398, - COGS: 20300, - Profit: 26098, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `3754`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 26278, - Discounts: 110.46, - Sales: 26167.54, - COGS: 1315, - Profit: 24852.54, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2187`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 273375, - Discounts: 6652.5, - Sales: 266722.5, - COGS: 106440, - Profit: 160282.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1959`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 685650, - Discounts: 20580, - Sales: 665070, - COGS: 254800, - Profit: 410270, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2181`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 763350, - Discounts: 30660, - Sales: 732690, - COGS: 379600, - Profit: 353090, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3559`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 24913, - Discounts: 589.26, - Sales: 24323.74, - COGS: 7015, - Profit: 17308.74, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2205`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 26460, - Discounts: 1960.56, - Sales: 24499.44, - COGS: 8169, - Profit: 16330.44, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1890`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 661500, - Discounts: 31416, - Sales: 630084, - COGS: 388960, - Profit: 241124, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1296`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 15552, - Discounts: 1655.28, - Sales: 13896.72, - COGS: 6897, - Profit: 6999.72, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `775`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 271250, - Discounts: 15267, - Sales: 255983, - COGS: 189020, - Profit: 66963, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2417`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 302125, - Discounts: 7140, - Sales: 294985, - COGS: 114240, - Profit: 180745, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1158`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 144750, - Discounts: 20662.5, - Sales: 124087.5, - COGS: 330600, - Profit: 206512.5, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `803`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 12045, - Discounts: 1377, - Sales: 10668, - COGS: 15300, - Profit: 4632, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3705`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1296750, - Discounts: 31416, - Sales: 1265334, - COGS: 388960, - Profit: 876374, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `589`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 4123, - Discounts: 629.16, - Sales: 3493.84, - COGS: 7490, - Profit: 3996.16, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3797`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1139100, - Discounts: 21978, - Sales: 1117122, - COGS: 305250, - Profit: 811872, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1321`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 462350, - Discounts: 43596, - Sales: 418754, - COGS: 539760, - Profit: 121006, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3999`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 59985, - Discounts: 2559.6, - Sales: 57425.4, - COGS: 28440, - Profit: 28985.4, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4256`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 29792, - Discounts: 629.16, - Sales: 29162.84, - COGS: 7490, - Profit: 21672.84, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1643`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 492900, - Discounts: 21978, - Sales: 470922, - COGS: 305250, - Profit: 165672, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1912`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 38240, - Discounts: 1347.6, - Sales: 36892.4, - COGS: 11230, - Profit: 25662.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1610`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 483000, - Discounts: 43848, - Sales: 439152, - COGS: 609000, - Profit: 169848, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2160`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 270000, - Discounts: 14906.25, - Sales: 255093.75, - COGS: 238500, - Profit: 16593.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `466`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 163100, - Discounts: 35259, - Sales: 127841, - COGS: 436540, - Profit: 308699, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `328`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 114800, - Discounts: 15267, - Sales: 99533, - COGS: 189020, - Profit: 89487, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `4099`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 28693, - Discounts: 589.26, - Sales: 28103.74, - COGS: 7015, - Profit: 21088.74, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `990`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 346500, - Discounts: 43596, - Sales: 302904, - COGS: 539760, - Profit: 236856, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1433`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 28660, - Discounts: 2108.4, - Sales: 26551.6, - COGS: 17570, - Profit: 8981.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1478`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 22170, - Discounts: 1978.2, - Sales: 20191.8, - COGS: 21980, - Profit: 1788.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3798`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 56970, - Discounts: 1568.7, - Sales: 55401.3, - COGS: 17430, - Profit: 37971.3, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `447`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 6705, - Discounts: 1037.7, - Sales: 5667.3, - COGS: 11530, - Profit: 5862.7, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1711`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34220, - Discounts: 2108.4, - Sales: 32111.6, - COGS: 17570, - Profit: 14541.6, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `745`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 14900, - Discounts: 1201.2, - Sales: 13698.8, - COGS: 10010, - Profit: 3688.8, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `1732`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 12124, - Discounts: 559.86, - Sales: 11564.14, - COGS: 6665, - Profit: 4899.14, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1759`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 26385, - Discounts: 1037.7, - Sales: 25347.3, - COGS: 11530, - Profit: 13817.3, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `338`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 4056, - Discounts: 610.68, - Sales: 3445.32, - COGS: 2181, - Profit: 1264.32, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3911`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 46932, - Discounts: 1582.56, - Sales: 45349.44, - COGS: 5652, - Profit: 39697.44, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3691`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 73820, - Discounts: 2567.6, - Sales: 71252.4, - COGS: 18340, - Profit: 52912.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `4473`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 53676, - Discounts: 1965.6, - Sales: 51710.4, - COGS: 7020, - Profit: 44690.4, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `383`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 4596, - Discounts: 1967.28, - Sales: 2628.72, - COGS: 7026, - Profit: 4397.28, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3105`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 21735, - Discounts: 505.19, - Sales: 21229.81, - COGS: 5155, - Profit: 16074.81, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1062`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 15930, - Discounts: 1325.1, - Sales: 14604.9, - COGS: 12620, - Profit: 1984.9, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `4083`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 28581, - Discounts: 556.15, - Sales: 28024.85, - COGS: 5675, - Profit: 22349.85, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3974`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 27818, - Discounts: 268.03, - Sales: 27549.97, - COGS: 2735, - Profit: 24814.97, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3723`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 26061, - Discounts: 775.18, - Sales: 25285.82, - COGS: 7910, - Profit: 17375.82, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2435`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 29220, - Discounts: 1460.34, - Sales: 27759.66, - COGS: 5215.5, - Profit: 22544.16, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `1678`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 20136, - Discounts: 1860.6, - Sales: 18275.4, - COGS: 6645, - Profit: 11630.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1763`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 12341, - Discounts: 775.18, - Sales: 11565.82, - COGS: 7910, - Profit: 3655.82, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4473`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 31311, - Discounts: 556.15, - Sales: 30754.85, - COGS: 5675, - Profit: 25079.85, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1246`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 436100, - Discounts: 43144.5, - Sales: 392955.5, - COGS: 457860, - Profit: 64904.5, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1615`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 484500, - Discounts: 9408, - Sales: 475092, - COGS: 112000, - Profit: 363092, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `749`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 224700, - Discounts: 45801, - Sales: 178899, - COGS: 545250, - Profit: 366351, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1318`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 26360, - Discounts: 2766.4, - Sales: 23593.6, - COGS: 19760, - Profit: 3833.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `2882`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 864600, - Discounts: 45801, - Sales: 818799, - COGS: 545250, - Profit: 273549, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3039`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 379875, - Discounts: 21875, - Sales: 358000, - COGS: 300000, - Profit: 58000, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2484`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 745200, - Discounts: 35742, - Sales: 709458, - COGS: 425500, - Profit: 283958, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3169`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 950700, - Discounts: 9408, - Sales: 941292, - COGS: 112000, - Profit: 829292, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 510000, - Discounts: 30738.75, - Sales: 479261.25, - COGS: 421560, - Profit: 57701.25, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3943`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 59145, - Discounts: 2206.05, - Sales: 56938.95, - COGS: 21010, - Profit: 35928.95, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `784`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 11760, - Discounts: 3077.55, - Sales: 8682.45, - COGS: 29310, - Profit: 20627.55, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `253`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 5060, - Discounts: 2149, - Sales: 2911, - COGS: 15350, - Profit: 12439, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1316`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 394800, - Discounts: 23583, - Sales: 371217, - COGS: 280750, - Profit: 90467, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `808`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 242400, - Discounts: 29484, - Sales: 212916, - COGS: 351000, - Profit: 138084, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3295`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 39540, - Discounts: 2320.92, - Sales: 37219.08, - COGS: 8289, - Profit: 28930.08, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `520`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 3640, - Discounts: 1041.25, - Sales: 2598.75, - COGS: 10625, - Profit: 8026.25, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `799`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 239700, - Discounts: 34839, - Sales: 204861, - COGS: 414750, - Profit: 209889, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3942`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 78840, - Discounts: 852.6, - Sales: 77987.4, - COGS: 6090, - Profit: 71897.4, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2498`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 312250, - Discounts: 18261.25, - Sales: 293988.75, - COGS: 250440, - Profit: 43548.75, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2517`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 50340, - Discounts: 2766.4, - Sales: 47573.6, - COGS: 19760, - Profit: 27813.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3182`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 63640, - Discounts: 1989.4, - Sales: 61650.6, - COGS: 14210, - Profit: 47440.6, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1145`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 343500, - Discounts: 28812, - Sales: 314688, - COGS: 343000, - Profit: 28312, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `895`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 17900, - Discounts: 823.2, - Sales: 17076.8, - COGS: 5880, - Profit: 11196.8, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3814`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 45768, - Discounts: 2725.38, - Sales: 43042.62, - COGS: 9733.5, - Profit: 33309.12, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1188`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 356400, - Discounts: 20139, - Sales: 336261, - COGS: 239750, - Profit: 96511, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2233`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 669900, - Discounts: 57687, - Sales: 612213, - COGS: 686750, - Profit: 74537, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `421`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 52625, - Discounts: 14393.75, - Sales: 38231.25, - COGS: 197400, - Profit: 159168.75, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `269`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 94150, - Discounts: 70462, - Sales: 23688, - COGS: 747760, - Profit: 724072, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `3766`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 470750, - Discounts: 8697.5, - Sales: 462052.5, - COGS: 119280, - Profit: 342772.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `952`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19040, - Discounts: 1565.2, - Sales: 17474.8, - COGS: 11180, - Profit: 6294.8, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2964`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 889200, - Discounts: 28812, - Sales: 860388, - COGS: 343000, - Profit: 517388, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1505`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 10535, - Discounts: 273.28, - Sales: 10261.72, - COGS: 2440, - Profit: 7821.72, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1678`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 33560, - Discounts: 2051.2, - Sales: 31508.8, - COGS: 12820, - Profit: 18688.8, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4249`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 29743, - Discounts: 143.92, - Sales: 29599.08, - COGS: 1285, - Profit: 28314.08, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1677`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 33540, - Discounts: 2051.2, - Sales: 31488.8, - COGS: 12820, - Profit: 18668.8, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3051`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 381375, - Discounts: 15400, - Sales: 365975, - COGS: 184800, - Profit: 181175, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `3372`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 50580, - Discounts: 588, - Sales: 49992, - COGS: 4900, - Profit: 45092, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1686`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 590100, - Discounts: 38136, - Sales: 551964, - COGS: 354120, - Profit: 197844, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3086`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 46290, - Discounts: 3001.2, - Sales: 43288.8, - COGS: 25010, - Profit: 18278.8, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `4150`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 83000, - Discounts: 1132.8, - Sales: 81867.2, - COGS: 7080, - Profit: 74787.2, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3027`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 60540, - Discounts: 1032, - Sales: 59508, - COGS: 6450, - Profit: 53058, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `4359`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1307700, - Discounts: 37488, - Sales: 1270212, - COGS: 390500, - Profit: 879712, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3628`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1088400, - Discounts: 30792, - Sales: 1057608, - COGS: 320750, - Profit: 736858, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `1589`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 23835, - Discounts: 853.2, - Sales: 22981.8, - COGS: 7110, - Profit: 15871.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2679`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 334875, - Discounts: 11140, - Sales: 323735, - COGS: 133680, - Profit: 190055, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3401`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 23807, - Discounts: 705.04, - Sales: 23101.96, - COGS: 6295, - Profit: 16806.96, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2815`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 19705, - Discounts: 613.2, - Sales: 19091.8, - COGS: 5475, - Profit: 13616.8, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2964`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 59280, - Discounts: 2185.6, - Sales: 57094.4, - COGS: 13660, - Profit: 43434.4, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4173`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1251900, - Discounts: 59040, - Sales: 1192860, - COGS: 615000, - Profit: 577860, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1157`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 8099, - Discounts: 379.68, - Sales: 7719.32, - COGS: 3390, - Profit: 4329.32, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3065`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 21455, - Discounts: 894.88, - Sales: 20560.12, - COGS: 7990, - Profit: 12570.12, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1962`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 13734, - Discounts: 1349.04, - Sales: 12384.96, - COGS: 12045, - Profit: 339.96, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4080`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 81600, - Discounts: 3094.4, - Sales: 78505.6, - COGS: 19340, - Profit: 59165.6, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1713`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34260, - Discounts: 4788.8, - Sales: 29471.2, - COGS: 29930, - Profit: 458.8, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2795`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 978250, - Discounts: 60088, - Sales: 918162, - COGS: 557960, - Profit: 360202, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4082`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 28574, - Discounts: 1089.76, - Sales: 27484.24, - COGS: 9730, - Profit: 17754.24, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1691`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 591850, - Discounts: 38136, - Sales: 553714, - COGS: 354120, - Profit: 199594, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2305`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 27660, - Discounts: 574.08, - Sales: 27085.92, - COGS: 1794, - Profit: 25291.92, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3401`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 23807, - Discounts: 1627.92, - Sales: 22179.08, - COGS: 14535, - Profit: 7644.08, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2288`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 16016, - Discounts: 1309.28, - Sales: 14706.72, - COGS: 11690, - Profit: 3016.72, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `2399`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 719700, - Discounts: 9264, - Sales: 710436, - COGS: 96500, - Profit: 613936, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4086`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1225800, - Discounts: 15240, - Sales: 1210560, - COGS: 158750, - Profit: 1051810, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2651`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 927850, - Discounts: 16086, - Sales: 911764, - COGS: 149370, - Profit: 762394, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3971`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27797, - Discounts: 1309.28, - Sales: 26487.72, - COGS: 11690, - Profit: 14797.72, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2512`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 879200, - Discounts: 10668, - Sales: 868532, - COGS: 99060, - Profit: 769472, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2745`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 960750, - Discounts: 11816, - Sales: 948934, - COGS: 109720, - Profit: 839214, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1903`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 570900, - Discounts: 51216, - Sales: 519684, - COGS: 533500, - Profit: 13816, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `647`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 194100, - Discounts: 19392, - Sales: 174708, - COGS: 202000, - Profit: 27292, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2914`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 58280, - Discounts: 1132.8, - Sales: 57147.2, - COGS: 7080, - Profit: 50067.2, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1889`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 13223, - Discounts: 1627.92, - Sales: 11595.08, - COGS: 14535, - Profit: 2939.92, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1466`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 29320, - Discounts: 2185.6, - Sales: 27134.4, - COGS: 13660, - Profit: 13474.4, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `887`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 266100, - Discounts: 59040, - Sales: 207060, - COGS: 615000, - Profit: 407940, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `395`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 7900, - Discounts: 2432, - Sales: 5468, - COGS: 15200, - Profit: 9732, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1693`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 25395, - Discounts: 853.2, - Sales: 24541.8, - COGS: 7110, - Profit: 17431.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2459`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 29508, - Discounts: 1320, - Sales: 28188, - COGS: 4125, - Profit: 24063, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2649`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 794700, - Discounts: 15240, - Sales: 779460, - COGS: 158750, - Profit: 620710, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3608`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 72160, - Discounts: 698.4, - Sales: 71461.6, - COGS: 4365, - Profit: 67096.6, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1073`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 321900, - Discounts: 29538, - Sales: 292362, - COGS: 273500, - Profit: 18862, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1754`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 21048, - Discounts: 396.36, - Sales: 20651.64, - COGS: 1101, - Profit: 19550.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2167`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 650100, - Discounts: 102667.5, - Sales: 547432.5, - COGS: 950625, - Profit: 403192.5, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1319`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 461650, - Discounts: 52479, - Sales: 409171, - COGS: 433160, - Profit: 23989, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1679`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 503700, - Discounts: 8694, - Sales: 495006, - COGS: 80500, - Profit: 414506, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1252`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 15024, - Discounts: 2506.68, - Sales: 12517.32, - COGS: 6963, - Profit: 5554.32, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3493`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 436625, - Discounts: 20891.25, - Sales: 415733.75, - COGS: 222840, - Profit: 192893.75, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1697`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 11879, - Discounts: 1014.93, - Sales: 10864.07, - COGS: 8055, - Profit: 2809.07, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1156`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 144500, - Discounts: 31466.25, - Sales: 113033.75, - COGS: 335640, - Profit: 222606.25, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `726`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 217800, - Discounts: 9018, - Sales: 208782, - COGS: 83500, - Profit: 125282, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1153`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 345900, - Discounts: 69255, - Sales: 276645, - COGS: 641250, - Profit: 364605, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2720`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 952000, - Discounts: 76135.5, - Sales: 875864.5, - COGS: 628420, - Profit: 247444.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3658`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 54870, - Discounts: 4961.25, - Sales: 49908.75, - COGS: 36750, - Profit: 13158.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2950`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 885000, - Discounts: 29538, - Sales: 855462, - COGS: 273500, - Profit: 581962, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1821`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 27315, - Discounts: 1656.45, - Sales: 25658.55, - COGS: 12270, - Profit: 13388.55, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4174`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 50088, - Discounts: 396.36, - Sales: 49691.64, - COGS: 1101, - Profit: 48590.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1127`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 338100, - Discounts: 35748, - Sales: 302352, - COGS: 331000, - Profit: 28648, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2209`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 26508, - Discounts: 1917, - Sales: 24591, - COGS: 5325, - Profit: 19266, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `862`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 107750, - Discounts: 31466.25, - Sales: 76283.75, - COGS: 335640, - Profit: 259356.25, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3805`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 57075, - Discounts: 330.75, - Sales: 56744.25, - COGS: 2450, - Profit: 54294.25, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1415`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 424500, - Discounts: 102424.5, - Sales: 322075.5, - COGS: 948375, - Profit: 626299.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2231`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 780850, - Discounts: 41170.5, - Sales: 739679.5, - COGS: 339820, - Profit: 399859.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3649`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 456125, - Discounts: 6378.75, - Sales: 449746.25, - COGS: 68040, - Profit: 381706.25, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2948`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 368500, - Discounts: 23737.5, - Sales: 344762.5, - COGS: 253200, - Profit: 91562.5, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `3395`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1188250, - Discounts: 39973.5, - Sales: 1148276.5, - COGS: 329940, - Profit: 818336.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2650`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 31800, - Discounts: 2112.48, - Sales: 29687.52, - COGS: 5868, - Profit: 23819.52, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `585`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 175500, - Discounts: 71793, - Sales: 103707, - COGS: 664750, - Profit: 561043, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1316`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 460600, - Discounts: 42572.25, - Sales: 418027.75, - COGS: 351390, - Profit: 66637.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `4459`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 53508, - Discounts: 950.4, - Sales: 52557.6, - COGS: 2640, - Profit: 49917.6, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2711`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 813300, - Discounts: 50409, - Sales: 762891, - COGS: 466750, - Profit: 296141, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2621`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 31452, - Discounts: 2412.72, - Sales: 29039.28, - COGS: 6702, - Profit: 22337.28, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3613`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 54195, - Discounts: 1656.45, - Sales: 52538.55, - COGS: 12270, - Profit: 40268.55, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1847`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 230875, - Discounts: 9866.25, - Sales: 221008.75, - COGS: 105240, - Profit: 115768.75, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2996`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1048600, - Discounts: 65236.5, - Sales: 983363.5, - COGS: 538460, - Profit: 444903.5, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2838`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 993300, - Discounts: 39973.5, - Sales: 953326.5, - COGS: 329940, - Profit: 623386.5, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `1302`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 19530, - Discounts: 1309.5, - Sales: 18220.5, - COGS: 9700, - Profit: 8520.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1536`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 30720, - Discounts: 3049.2, - Sales: 27670.8, - COGS: 16940, - Profit: 10730.8, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1291`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 25820, - Discounts: 1193.4, - Sales: 24626.6, - COGS: 6630, - Profit: 17996.6, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1213`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 8491, - Discounts: 515.97, - Sales: 7975.03, - COGS: 4095, - Profit: 3880.03, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2370`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 28440, - Discounts: 1706.4, - Sales: 26733.6, - COGS: 4740, - Profit: 21993.6, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1979`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 13853, - Discounts: 328.23, - Sales: 13524.77, - COGS: 2605, - Profit: 10919.77, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2879`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 57580, - Discounts: 1751.4, - Sales: 55828.6, - COGS: 9730, - Profit: 46098.6, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1707`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 34140, - Discounts: 1868.4, - Sales: 32271.6, - COGS: 10380, - Profit: 21891.6, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2933`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 20531, - Discounts: 226.8, - Sales: 20304.2, - COGS: 1800, - Profit: 18504.2, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1014`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 12168, - Discounts: 2124.36, - Sales: 10043.64, - COGS: 5901, - Profit: 4142.64, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `693`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 10395, - Discounts: 3547.8, - Sales: 6847.2, - COGS: 26280, - Profit: 19432.8, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3741`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 26187, - Discounts: 226.8, - Sales: 25960.2, - COGS: 1800, - Profit: 24160.2, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3116`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 62320, - Discounts: 4827.6, - Sales: 57492.4, - COGS: 26820, - Profit: 30672.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `3995`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 27965, - Discounts: 328.23, - Sales: 27636.77, - COGS: 2605, - Profit: 25031.77, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `953`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 19060, - Discounts: 1868.4, - Sales: 17191.6, - COGS: 10380, - Profit: 6811.6, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `2530`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 37950, - Discounts: 2201.18, - Sales: 35748.82, - COGS: 16305, - Profit: 19443.82, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2565`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 30780, - Discounts: 330.48, - Sales: 30449.52, - COGS: 918, - Profit: 29531.52, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `4297`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 51564, - Discounts: 463.2, - Sales: 51100.8, - COGS: 1158, - Profit: 49942.8, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2871`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20097, - Discounts: 1629.6, - Sales: 18467.4, - COGS: 11640, - Profit: 6827.4, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3537`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 42444, - Discounts: 463.2, - Sales: 41980.8, - COGS: 1158, - Profit: 40822.8, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1598`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 199750, - Discounts: 43068.75, - Sales: 156681.25, - COGS: 413460, - Profit: 256778.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2616`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 327000, - Discounts: 18525, - Sales: 308475, - COGS: 177840, - Profit: 130635, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2836`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 992600, - Discounts: 80955, - Sales: 911645, - COGS: 601380, - Profit: 310265, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `4023`, - ManufacturingPrice: 5, - SalePrice: 125, - GrossSales: 502875, - Discounts: 22550, - Sales: 480325, - COGS: 216480, - Profit: 263845, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3994`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 59910, - Discounts: 3108, - Sales: 56802, - COGS: 20720, - Profit: 36082, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2928`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 58560, - Discounts: 3908, - Sales: 54652, - COGS: 19540, - Profit: 35112, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2912`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 873600, - Discounts: 17730, - Sales: 855870, - COGS: 147750, - Profit: 708120, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3671`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 55065, - Discounts: 3250.5, - Sales: 51814.5, - COGS: 21670, - Profit: 30144.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2778`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 55560, - Discounts: 482, - Sales: 55078, - COGS: 2410, - Profit: 52668, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `405`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 6075, - Discounts: 1021.5, - Sales: 5053.5, - COGS: 6810, - Profit: 1756.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `2013`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 30195, - Discounts: 765, - Sales: 29430, - COGS: 5100, - Profit: 24330, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2634`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 39510, - Discounts: 1185, - Sales: 38325, - COGS: 7900, - Profit: 30425, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4166`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1458100, - Discounts: 22365, - Sales: 1435735, - COGS: 166140, - Profit: 1269595, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `355`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 44375, - Discounts: 19950, - Sales: 24425, - COGS: 191520, - Profit: 167095, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2382`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 714600, - Discounts: 68820, - Sales: 645780, - COGS: 573500, - Profit: 72280, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `4170`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 83400, - Discounts: 482, - Sales: 82918, - COGS: 2410, - Profit: 80508, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `892`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 6244, - Discounts: 1865.5, - Sales: 4378.5, - COGS: 13325, - Profit: 8946.5, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2200`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 275000, - Discounts: 23950, - Sales: 251050, - COGS: 229920, - Profit: 21130, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3389`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1016700, - Discounts: 25590, - Sales: 991110, - COGS: 213250, - Profit: 777860, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `2990`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 373750, - Discounts: 4262.5, - Sales: 369487.5, - COGS: 40920, - Profit: 328567.5, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4013`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 60195, - Discounts: 961.5, - Sales: 59233.5, - COGS: 6410, - Profit: 52823.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `739`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 258650, - Discounts: 98245, - Sales: 160405, - COGS: 729820, - Profit: 569415, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `1989`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 596700, - Discounts: 12960, - Sales: 583740, - COGS: 108000, - Profit: 475740, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2991`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 897300, - Discounts: 68820, - Sales: 828480, - COGS: 573500, - Profit: 254980, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `4237`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 63555, - Discounts: 3250.5, - Sales: 60304.5, - COGS: 21670, - Profit: 38634.5, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1442`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 180250, - Discounts: 31612.5, - Sales: 148637.5, - COGS: 303480, - Profit: 154842.5, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2712`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 949200, - Discounts: 65450, - Sales: 883750, - COGS: 486200, - Profit: 397550, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1508`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 188500, - Discounts: 7237.5, - Sales: 181262.5, - COGS: 69480, - Profit: 111782.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4245`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1485750, - Discounts: 78400, - Sales: 1407350, - COGS: 582400, - Profit: 824950, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2630`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 789000, - Discounts: 89790, - Sales: 699210, - COGS: 748250, - Profit: 49040, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1182`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 14184, - Discounts: 4224.6, - Sales: 9959.4, - COGS: 10561.5, - Profit: 602.1, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1221`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 24420, - Discounts: 4078, - Sales: 20342, - COGS: 20390, - Profit: 48, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `963`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 11556, - Discounts: 3088.8, - Sales: 8467.2, - COGS: 7722, - Profit: 745.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3243`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 1135050, - Discounts: 24745, - Sales: 1110305, - COGS: 183820, - Profit: 926485, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1120`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 16800, - Discounts: 3108, - Sales: 13692, - COGS: 20720, - Profit: 7028, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1174`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 352200, - Discounts: 25590, - Sales: 326610, - COGS: 213250, - Profit: 113360, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `2541`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 30492, - Discounts: 1581.36, - Sales: 28910.64, - COGS: 3594, - Profit: 25316.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3246`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 22722, - Discounts: 1949.64, - Sales: 20772.36, - COGS: 12660, - Profit: 8112.36, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1531`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 18372, - Discounts: 1581.36, - Sales: 16790.64, - COGS: 3594, - Profit: 13196.64, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2526`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 37890, - Discounts: 633.6, - Sales: 37256.4, - COGS: 3840, - Profit: 33416.4, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1136`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 13632, - Discounts: 623.04, - Sales: 13008.96, - COGS: 1416, - Profit: 11592.96, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1983`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 13881, - Discounts: 1215.83, - Sales: 12665.17, - COGS: 7895, - Profit: 4770.17, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `3259`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 39108, - Discounts: 1326.6, - Sales: 37781.4, - COGS: 3015, - Profit: 34766.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `3267`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 49005, - Discounts: 5279.17, - Sales: 43725.82, - COGS: 31995, - Profit: 11730.82, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `2454`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 29448, - Discounts: 623.04, - Sales: 28824.96, - COGS: 1416, - Profit: 27408.96, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `2643`, - ManufacturingPrice: 3, - SalePrice: 12, - GrossSales: 31716, - Discounts: 2556.84, - Sales: 29159.16, - COGS: 5811, - Profit: 23348.16, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `383`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 134050, - Discounts: 30492, - Sales: 103558, - COGS: 205920, - Profit: 102362, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2801`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 840300, - Discounts: 92763, - Sales: 747537, - COGS: 702750, - Profit: 44787, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1667`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 208375, - Discounts: 33563.75, - Sales: 174811.25, - COGS: 292920, - Profit: 118108.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3539`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 53085, - Discounts: 2574, - Sales: 50511, - COGS: 15600, - Profit: 34911, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `4226`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 29582, - Discounts: 2083.62, - Sales: 27498.38, - COGS: 13530, - Profit: 13968.38, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `2220`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 777000, - Discounts: 29491, - Sales: 747509, - COGS: 199160, - Profit: 548349, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `776`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 15520, - Discounts: 6582.4, - Sales: 8937.6, - COGS: 29920, - Profit: 20982.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `553`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 8295, - Discounts: 3559.05, - Sales: 4735.95, - COGS: 21570, - Profit: 16834.05, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2107`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 632100, - Discounts: 28809, - Sales: 603291, - COGS: 218250, - Profit: 385041, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2468`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 49360, - Discounts: 2468.4, - Sales: 46891.6, - COGS: 11220, - Profit: 35671.6, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1905`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 666750, - Discounts: 81023.25, - Sales: 585726.75, - COGS: 547170, - Profit: 38556.75, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3658`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 43896, - Discounts: 5314.32, - Sales: 38581.68, - COGS: 12078, - Profit: 26503.68, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `4301`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 51612, - Discounts: 3201.66, - Sales: 48410.34, - COGS: 7276.5, - Profit: 41133.84, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2446`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 48920, - Discounts: 5266.8, - Sales: 43653.2, - COGS: 23940, - Profit: 19713.2, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `4209`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 63135, - Discounts: 3273.6, - Sales: 59861.4, - COGS: 19840, - Profit: 40021.4, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3353`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 419125, - Discounts: 33563.75, - Sales: 385561.25, - COGS: 292920, - Profit: 92641.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1401`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 28020, - Discounts: 6582.4, - Sales: 21437.6, - COGS: 29920, - Profit: 8482.4, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1865`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 559500, - Discounts: 45078, - Sales: 514422, - COGS: 341500, - Profit: 172922, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `463`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 9260, - Discounts: 6171, - Sales: 3089, - COGS: 28050, - Profit: 24961, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4177`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 62655, - Discounts: 1080.75, - Sales: 61574.25, - COGS: 6550, - Profit: 55024.25, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2523`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 883050, - Discounts: 13244, - Sales: 869806, - COGS: 89440, - Profit: 780366, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `1930`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 13510, - Discounts: 1392.16, - Sales: 12117.84, - COGS: 9040, - Profit: 3077.84, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1301`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 15612, - Discounts: 2288.88, - Sales: 13323.12, - COGS: 5202, - Profit: 8121.12, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4125`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 515625, - Discounts: 7617.5, - Sales: 508007.5, - COGS: 66480, - Profit: 441527.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `607`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 12140, - Discounts: 6457, - Sales: 5683, - COGS: 29350, - Profit: 23667, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `478`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 59750, - Discounts: 43518.75, - Sales: 16231.25, - COGS: 379800, - Profit: 363568.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `4489`, - ManufacturingPrice: 260, - SalePrice: 20, - GrossSales: 89780, - Discounts: 5783.8, - Sales: 83996.2, - COGS: 26290, - Profit: 57706.2, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1504`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 188000, - Discounts: 19703.75, - Sales: 168296.25, - COGS: 171960, - Profit: 3663.75, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `3763`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 470375, - Discounts: 13021.25, - Sales: 457353.75, - COGS: 113640, - Profit: 343713.75, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2412`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 844200, - Discounts: 13244, - Sales: 830956, - COGS: 89440, - Profit: 741516, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `2342`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 35130, - Discounts: 3559.05, - Sales: 31570.95, - COGS: 21570, - Profit: 10000.95, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4451`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 31157, - Discounts: 292.6, - Sales: 30864.4, - COGS: 1900, - Profit: 28964.4, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3796`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1328600, - Discounts: 37212, - Sales: 1291388, - COGS: 230360, - Profit: 1061028, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `2286`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 285750, - Discounts: 36240, - Sales: 249510, - COGS: 289920, - Profit: 40410, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `3614`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 451750, - Discounts: 32340, - Sales: 419410, - COGS: 258720, - Profit: 160690, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1716`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 25740, - Discounts: 4840.2, - Sales: 20899.8, - COGS: 26890, - Profit: 5990.2, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1301`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 19515, - Discounts: 1218.6, - Sales: 18296.4, - COGS: 6770, - Profit: 11526.4, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `4175`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1252500, - Discounts: 63828, - Sales: 1188672, - COGS: 443250, - Profit: 745422, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `975`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 6825, - Discounts: 2032.8, - Sales: 4792.2, - COGS: 12100, - Profit: 7307.8, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `1154`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 8078, - Discounts: 2296.56, - Sales: 5781.44, - COGS: 13670, - Profit: 7888.56, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1873`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 37460, - Discounts: 4116, - Sales: 33344, - COGS: 17150, - Profit: 16194, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `3766`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 1129800, - Discounts: 42696, - Sales: 1087104, - COGS: 296500, - Profit: 790604, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3558`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1067400, - Discounts: 125820, - Sales: 941580, - COGS: 873750, - Profit: 67830, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3156`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1104600, - Discounts: 37212, - Sales: 1067388, - COGS: 230360, - Profit: 837028, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2994`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 374250, - Discounts: 32340, - Sales: 341910, - COGS: 258720, - Profit: 83190, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2087`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 41740, - Discounts: 2172, - Sales: 39568, - COGS: 9050, - Profit: 30518, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1056`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 21120, - Discounts: 4116, - Sales: 17004, - COGS: 17150, - Profit: 146, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1353`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 473550, - Discounts: 66948, - Sales: 406602, - COGS: 414440, - Profit: 7838, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `416`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 124800, - Discounts: 48924, - Sales: 75876, - COGS: 339750, - Profit: 263874, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `3880`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1164000, - Discounts: 77400, - Sales: 1086600, - COGS: 537500, - Profit: 549100, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `809`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 283150, - Discounts: 50274, - Sales: 232876, - COGS: 311220, - Profit: 78344, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1892`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 28380, - Discounts: 684, - Sales: 27696, - COGS: 3800, - Profit: 23896, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2072`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 41440, - Discounts: 2959.2, - Sales: 38480.8, - COGS: 12330, - Profit: 26150.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3052`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1068200, - Discounts: 58590, - Sales: 1009610, - COGS: 362700, - Profit: 646910, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `3121`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 1092350, - Discounts: 41412, - Sales: 1050938, - COGS: 256360, - Profit: 794578, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2059`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 41180, - Discounts: 2172, - Sales: 39008, - COGS: 9050, - Profit: 29958, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4254`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 51048, - Discounts: 3036.96, - Sales: 48011.04, - COGS: 6327, - Profit: 41684.04, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `1293`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 19395, - Discounts: 6974.1, - Sales: 12420.9, - COGS: 38745, - Profit: 26324.1, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1293`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 452550, - Discounts: 26166, - Sales: 426384, - COGS: 161980, - Profit: 264404, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `230`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 80500, - Discounts: 41412, - Sales: 39088, - COGS: 256360, - Profit: 217272, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1723`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 215375, - Discounts: 35805, - Sales: 179570, - COGS: 286440, - Profit: 106870, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `240`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 4800, - Discounts: 2959.2, - Sales: 1840.8, - COGS: 12330, - Profit: 10489.2, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `2571`, - ManufacturingPrice: 260, - SalePrice: 350, - GrossSales: 899850, - Discounts: 11340, - Sales: 888510, - COGS: 70200, - Profit: 818310, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1661`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 11627, - Discounts: 2874.06, - Sales: 8752.94, - COGS: 17107.5, - Profit: 8354.56, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `4474`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 31318, - Discounts: 2296.56, - Sales: 29021.44, - COGS: 13670, - Profit: 15351.44, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `833`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 12495, - Discounts: 4586.4, - Sales: 7908.6, - COGS: 25480, - Profit: 17571.4, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `674`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 13480, - Discounts: 6051.6, - Sales: 7428.4, - COGS: 25215, - Profit: 17786.6, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `778`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 9336, - Discounts: 3831.84, - Sales: 5504.16, - COGS: 7983, - Profit: 2478.84, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1457`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 29140, - Discounts: 3674.4, - Sales: 25465.6, - COGS: 15310, - Profit: 10155.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `3158`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 22106, - Discounts: 1252.44, - Sales: 20853.56, - COGS: 7455, - Profit: 13398.56, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `4095`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 81900, - Discounts: 3674.4, - Sales: 78225.6, - COGS: 15310, - Profit: 62915.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3170`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 38040, - Discounts: 3975.84, - Sales: 34064.16, - COGS: 8283, - Profit: 25781.16, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `493`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 7395, - Discounts: 5005.65, - Sales: 2389.35, - COGS: 25670, - Profit: 23280.65, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `3286`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 49290, - Discounts: 5005.65, - Sales: 44284.35, - COGS: 25670, - Profit: 18614.35, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `3563`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1247050, - Discounts: 41996.5, - Sales: 1205053.5, - COGS: 239980, - Profit: 965073.5, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `4109`, - ManufacturingPrice: 3, - SalePrice: 350, - GrossSales: 1438150, - Discounts: 81445, - Sales: 1356705, - COGS: 465400, - Profit: 891305, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `3653`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 73060, - Discounts: 1149.2, - Sales: 71910.8, - COGS: 4420, - Profit: 67490.8, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2203`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 771050, - Discounts: 44703.75, - Sales: 726346.25, - COGS: 255450, - Profit: 470896.25, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `2924`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 20468, - Discounts: 1181.18, - Sales: 19286.82, - COGS: 6490, - Profit: 12796.82, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2650`, - ManufacturingPrice: 5, - SalePrice: 12, - GrossSales: 31800, - Discounts: 942.24, - Sales: 30857.76, - COGS: 1812, - Profit: 29045.76, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `1194`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 23880, - Discounts: 5863, - Sales: 18017, - COGS: 22550, - Profit: 4533, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3366`, - ManufacturingPrice: 5, - SalePrice: 20, - GrossSales: 67320, - Discounts: 3247.4, - Sales: 64072.6, - COGS: 12490, - Profit: 51582.6, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1325`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 9275, - Discounts: 1309.04, - Sales: 7965.97, - COGS: 7192.5, - Profit: 773.47, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `4243`, - ManufacturingPrice: 10, - SalePrice: 300, - GrossSales: 1272900, - Discounts: 31473, - Sales: 1241427, - COGS: 201750, - Profit: 1039677, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2887`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 57740, - Discounts: 6866.6, - Sales: 50873.4, - COGS: 26410, - Profit: 24463.4, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3839`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 76780, - Discounts: 7040.8, - Sales: 69739.2, - COGS: 27080, - Profit: 42659.2, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1863`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 652050, - Discounts: 119756, - Sales: 532294, - COGS: 684320, - Profit: 152026, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2858`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 357250, - Discounts: 25723.75, - Sales: 331526.25, - COGS: 189960, - Profit: 141566.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2868`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 34416, - Discounts: 890.76, - Sales: 33525.24, - COGS: 1713, - Profit: 31812.24, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `3805`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 26635, - Discounts: 2453.36, - Sales: 24181.64, - COGS: 13480, - Profit: 10701.64, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3914`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 58710, - Discounts: 3051.75, - Sales: 55658.25, - COGS: 15650, - Profit: 40008.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `524`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 10480, - Discounts: 3247.4, - Sales: 7232.6, - COGS: 12490, - Profit: 5257.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `3095`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1083250, - Discounts: 16243.5, - Sales: 1067006.5, - COGS: 92820, - Profit: 974186.5, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2410`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 28920, - Discounts: 1580.28, - Sales: 27339.72, - COGS: 3039, - Profit: 24300.72, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `4263`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 63945, - Discounts: 7795.13, - Sales: 56149.88, - COGS: 39975, - Profit: 16174.88, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2239`, - ManufacturingPrice: 120, - SalePrice: 350, - GrossSales: 783650, - Discounts: 119756, - Sales: 663894, - COGS: 684320, - Profit: 20426, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `569`, - ManufacturingPrice: 120, - SalePrice: 7, - GrossSales: 3983, - Discounts: 1082.9, - Sales: 2900.1, - COGS: 5950, - Profit: 3049.9, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3889`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 46668, - Discounts: 942.24, - Sales: 45725.76, - COGS: 1812, - Profit: 43913.76, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `1378`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 20670, - Discounts: 1287, - Sales: 19383, - COGS: 6600, - Profit: 12783, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2253`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 27036, - Discounts: 639.6, - Sales: 26396.4, - COGS: 1230, - Profit: 25166.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `3202`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 960600, - Discounts: 101595, - Sales: 859005, - COGS: 651250, - Profit: 207755, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3835`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 46020, - Discounts: 1580.28, - Sales: 44439.72, - COGS: 3039, - Profit: 41400.72, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `2487`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 310875, - Discounts: 25723.75, - Sales: 285151.25, - COGS: 189960, - Profit: 95191.25, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4428`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 66420, - Discounts: 3051.75, - Sales: 63368.25, - COGS: 15650, - Profit: 47718.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1200`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 150000, - Discounts: 26958.75, - Sales: 123041.25, - COGS: 199080, - Profit: 76038.75, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2953`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 20671, - Discounts: 1082.9, - Sales: 19588.1, - COGS: 5950, - Profit: 13638.1, - Date: `6/1/19`, - MonthName: `June`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1453`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 17436, - Discounts: 639.6, - Sales: 16796.4, - COGS: 1230, - Profit: 15566.4, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Luxe`, - UnitsSold: `865`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 10380, - Discounts: 2761.2, - Sales: 7618.8, - COGS: 5310, - Profit: 2308.8, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `1072`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 21440, - Discounts: 7221.2, - Sales: 14218.8, - COGS: 25790, - Profit: 11571.2, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1737`, - ManufacturingPrice: 3, - SalePrice: 20, - GrossSales: 34740, - Discounts: 4880.4, - Sales: 29859.6, - COGS: 17430, - Profit: 12429.6, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `1535`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 10745, - Discounts: 2936.08, - Sales: 7808.92, - COGS: 14980, - Profit: 7171.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2532`, - ManufacturingPrice: 3, - SalePrice: 7, - GrossSales: 17724, - Discounts: 274.4, - Sales: 17449.6, - COGS: 1400, - Profit: 16049.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Royal Oak`, - UnitsSold: `1765`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 12355, - Discounts: 287.14, - Sales: 12067.86, - COGS: 1465, - Profit: 10602.86, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Royal Oak`, - UnitsSold: `1567`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 10969, - Discounts: 2936.08, - Sales: 8032.92, - COGS: 14980, - Profit: 6947.08, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2640`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 39600, - Discounts: 583.8, - Sales: 39016.2, - COGS: 2780, - Profit: 36236.2, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3079`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 61580, - Discounts: 6798.4, - Sales: 54781.6, - COGS: 24280, - Profit: 30501.6, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `4130`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 61950, - Discounts: 3710.7, - Sales: 58239.3, - COGS: 17670, - Profit: 40569.3, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2938`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 35256, - Discounts: 2340.24, - Sales: 32915.76, - COGS: 4179, - Profit: 28736.76, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `3080`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 21560, - Discounts: 274.4, - Sales: 21285.6, - COGS: 1400, - Profit: 19885.6, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1530`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 18360, - Discounts: 2340.24, - Sales: 16019.76, - COGS: 4179, - Profit: 11840.76, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `3537`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 42444, - Discounts: 3385.2, - Sales: 39058.8, - COGS: 6045, - Profit: 33013.8, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `2021`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 606300, - Discounts: 33642, - Sales: 572658, - COGS: 200250, - Profit: 372408, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1804`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 225500, - Discounts: 17902.5, - Sales: 207597.5, - COGS: 122760, - Profit: 84837.5, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1014`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 304200, - Discounts: 62832, - Sales: 241368, - COGS: 374000, - Profit: 132632, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Kensington`, - UnitsSold: `2913`, - ManufacturingPrice: 3, - SalePrice: 300, - GrossSales: 873900, - Discounts: 42420, - Sales: 831480, - COGS: 252500, - Profit: 578980, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `763`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 11445, - Discounts: 3177.3, - Sales: 8267.7, - COGS: 15130, - Profit: 6862.3, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Kensington`, - UnitsSold: `1425`, - ManufacturingPrice: 3, - SalePrice: 15, - GrossSales: 21375, - Discounts: 4830, - Sales: 16545, - COGS: 23000, - Profit: 6455, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Kensington`, - UnitsSold: `4357`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 544625, - Discounts: 49367.5, - Sales: 495257.5, - COGS: 338520, - Profit: 156737.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2138`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 748300, - Discounts: 109147.5, - Sales: 639152.5, - COGS: 579150, - Profit: 60002.5, - Date: `1/1/19`, - MonthName: `January`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Royal Oak`, - UnitsSold: `3825`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1338750, - Discounts: 58751, - Sales: 1279999, - COGS: 311740, - Profit: 968259, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `3393`, - ManufacturingPrice: 5, - SalePrice: 350, - GrossSales: 1187550, - Discounts: 9800, - Sales: 1177750, - COGS: 52000, - Profit: 1125750, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `2215`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 15505, - Discounts: 380.24, - Sales: 15124.76, - COGS: 1940, - Profit: 13184.76, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2278`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 15946, - Discounts: 1692.46, - Sales: 14253.54, - COGS: 8635, - Profit: 5618.54, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Royal Oak`, - UnitsSold: `403`, - ManufacturingPrice: 5, - SalePrice: 15, - GrossSales: 6045, - Discounts: 4830, - Sales: 1215, - COGS: 23000, - Profit: 21785, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `289`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 5780, - Discounts: 728, - Sales: 5052, - COGS: 2600, - Profit: 2452, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `749`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 11235, - Discounts: 5187, - Sales: 6048, - COGS: 24700, - Profit: 18652, - Date: `9/1/18`, - MonthName: `September`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `372`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 5580, - Discounts: 3660.3, - Sales: 1919.7, - COGS: 17430, - Profit: 15510.3, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3781`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 45372, - Discounts: 4895.52, - Sales: 40476.48, - COGS: 8742, - Profit: 31734.48, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1785`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 12495, - Discounts: 1696.38, - Sales: 10798.62, - COGS: 8655, - Profit: 2143.62, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `4029`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1410150, - Discounts: 34300, - Sales: 1375850, - COGS: 182000, - Profit: 1193850, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2813`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 33756, - Discounts: 3732.96, - Sales: 30023.04, - COGS: 6666, - Profit: 23357.04, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `2150`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 752500, - Discounts: 57673, - Sales: 694827, - COGS: 306020, - Profit: 388807, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `2093`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 732550, - Discounts: 94178, - Sales: 638372, - COGS: 499720, - Profit: 138652, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `4391`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 548875, - Discounts: 27562.5, - Sales: 521312.5, - COGS: 189000, - Profit: 332312.5, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2695`, - ManufacturingPrice: 120, - SalePrice: 20, - GrossSales: 53900, - Discounts: 1696.8, - Sales: 52203.2, - COGS: 6060, - Profit: 46143.2, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1337`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 401100, - Discounts: 103320, - Sales: 297780, - COGS: 615000, - Profit: 317220, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Burlington`, - UnitsSold: `2621`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 786300, - Discounts: 11298, - Sales: 775002, - COGS: 67250, - Profit: 707752, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Burlington`, - UnitsSold: `3735`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1120500, - Discounts: 106512, - Sales: 1013988, - COGS: 634000, - Profit: 379988, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Mandarin`, - UnitsSold: `4320`, - ManufacturingPrice: 250, - SalePrice: 7, - GrossSales: 30240, - Discounts: 2844.94, - Sales: 27395.06, - COGS: 14515, - Profit: 12880.06, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `2828`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 848400, - Discounts: 106722, - Sales: 741678, - COGS: 635250, - Profit: 106428, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `2586`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 775800, - Discounts: 11298, - Sales: 764502, - COGS: 67250, - Profit: 697252, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `1248`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 374400, - Discounts: 62832, - Sales: 311568, - COGS: 374000, - Profit: 62432, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `4035`, - ManufacturingPrice: 250, - SalePrice: 300, - GrossSales: 1210500, - Discounts: 42420, - Sales: 1168080, - COGS: 252500, - Profit: 915580, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `359`, - ManufacturingPrice: 250, - SalePrice: 350, - GrossSales: 125650, - Discounts: 62769, - Sales: 62881, - COGS: 333060, - Profit: 270179, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `3926`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 1177800, - Discounts: 37296, - Sales: 1140504, - COGS: 222000, - Profit: 918504, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `4247`, - ManufacturingPrice: 260, - SalePrice: 125, - GrossSales: 530875, - Discounts: 49770, - Sales: 481105, - COGS: 341280, - Profit: 139825, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `2695`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 32340, - Discounts: 4158, - Sales: 28182, - COGS: 7425, - Profit: 20757, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Luxe`, - UnitsSold: `1104`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 16560, - Discounts: 3660.3, - Sales: 12899.7, - COGS: 17430, - Profit: 4530.3, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Luxe`, - UnitsSold: `1449`, - ManufacturingPrice: 260, - SalePrice: 12, - GrossSales: 17388, - Discounts: 4895.52, - Sales: 12492.48, - COGS: 8742, - Profit: 3750.48, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1131`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 7917, - Discounts: 1696.38, - Sales: 6220.62, - COGS: 8655, - Profit: 2434.38, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1468`, - ManufacturingPrice: 260, - SalePrice: 7, - GrossSales: 10276, - Discounts: 1692.46, - Sales: 8583.54, - COGS: 8635, - Profit: 51.46, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `1272`, - ManufacturingPrice: 260, - SalePrice: 15, - GrossSales: 19080, - Discounts: 3927, - Sales: 15153, - COGS: 18700, - Profit: 3547, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Kensington`, - UnitsSold: `1403`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 175375, - Discounts: 22012.5, - Sales: 153362.5, - COGS: 140880, - Profit: 12482.5, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `2161`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 270125, - Discounts: 51881.25, - Sales: 218243.75, - COGS: 332040, - Profit: 113796.25, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Kensington`, - UnitsSold: `1937`, - ManufacturingPrice: 3, - SalePrice: 125, - GrossSales: 242125, - Discounts: 20343.75, - Sales: 221781.25, - COGS: 130200, - Profit: 91581.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `2879`, - ManufacturingPrice: 5, - SalePrice: 300, - GrossSales: 863700, - Discounts: 24570, - Sales: 839130, - COGS: 136500, - Profit: 702630, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1330`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 26600, - Discounts: 3474, - Sales: 23126, - COGS: 11580, - Profit: 11546, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `2426`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 36390, - Discounts: 3631.5, - Sales: 32758.5, - COGS: 16140, - Profit: 16618.5, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2033`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 14231, - Discounts: 2661.75, - Sales: 11569.25, - COGS: 12675, - Profit: 1105.75, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `2029`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 710150, - Discounts: 149677.5, - Sales: 560472.5, - COGS: 741260, - Profit: 180787.5, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `1049`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 15735, - Discounts: 5757.75, - Sales: 9977.25, - COGS: 25590, - Profit: 15612.75, - Date: `8/1/19`, - MonthName: `August`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `1062`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 21240, - Discounts: 801, - Sales: 20439, - COGS: 2670, - Profit: 17769, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `2509`, - ManufacturingPrice: 10, - SalePrice: 125, - GrossSales: 313625, - Discounts: 20343.75, - Sales: 293281.25, - COGS: 130200, - Profit: 163081.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Vermont`, - UnitsSold: `1743`, - ManufacturingPrice: 10, - SalePrice: 15, - GrossSales: 26145, - Discounts: 2643.75, - Sales: 23501.25, - COGS: 11750, - Profit: 11751.25, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3418`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 1196300, - Discounts: 105367.5, - Sales: 1090932.5, - COGS: 521820, - Profit: 569112.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Vermont`, - UnitsSold: `1751`, - ManufacturingPrice: 10, - SalePrice: 350, - GrossSales: 612850, - Discounts: 112927.5, - Sales: 499922.5, - COGS: 559260, - Profit: 59337.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Vermont`, - UnitsSold: `3228`, - ManufacturingPrice: 10, - SalePrice: 12, - GrossSales: 38736, - Discounts: 1645.2, - Sales: 37090.8, - COGS: 2742, - Profit: 34348.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Vermont`, - UnitsSold: `1105`, - ManufacturingPrice: 10, - SalePrice: 20, - GrossSales: 22100, - Discounts: 879, - Sales: 21221, - COGS: 2930, - Profit: 18291, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Burlington`, - UnitsSold: `2778`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 33336, - Discounts: 900, - Sales: 32436, - COGS: 1500, - Profit: 30936, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `1173`, - ManufacturingPrice: 120, - SalePrice: 15, - GrossSales: 17595, - Discounts: 6358.5, - Sales: 11236.5, - COGS: 28260, - Profit: 17023.5, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Burlington`, - UnitsSold: `3160`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 395000, - Discounts: 12431.25, - Sales: 382568.75, - COGS: 79560, - Profit: 303008.75, - Date: `9/1/19`, - MonthName: `September`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `4322`, - ManufacturingPrice: 120, - SalePrice: 300, - GrossSales: 1296600, - Discounts: 115830, - Sales: 1180770, - COGS: 643500, - Profit: 537270, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `1901`, - ManufacturingPrice: 120, - SalePrice: 125, - GrossSales: 237625, - Discounts: 45712.5, - Sales: 191912.5, - COGS: 292560, - Profit: 100647.5, - Date: `12/1/18`, - MonthName: `December`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Burlington`, - UnitsSold: `2980`, - ManufacturingPrice: 120, - SalePrice: 12, - GrossSales: 35760, - Discounts: 1645.2, - Sales: 34114.8, - COGS: 2742, - Profit: 31372.8, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `4068`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 81360, - Discounts: 2596.5, - Sales: 78763.5, - COGS: 8655, - Profit: 70108.5, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2105`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 31575, - Discounts: 1107, - Sales: 30468, - COGS: 4920, - Profit: 25548, - Date: `7/1/19`, - MonthName: `July`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `1647`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 32940, - Discounts: 801, - Sales: 32139, - COGS: 2670, - Profit: 29469, - Date: `10/1/18`, - MonthName: `October`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `235`, - ManufacturingPrice: 250, - SalePrice: 15, - GrossSales: 3525, - Discounts: 2643.75, - Sales: 881.25, - COGS: 11750, - Profit: 10868.75, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Mandarin`, - UnitsSold: `3617`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 452125, - Discounts: 55387.5, - Sales: 396737.5, - COGS: 354480, - Profit: 42257.5, - Date: `11/1/18`, - MonthName: `November`, - Year: `2018` - })); - this.push(new SalesDataItem( - { - Country: `India`, - Product: `Mandarin`, - UnitsSold: `2106`, - ManufacturingPrice: 250, - SalePrice: 125, - GrossSales: 263250, - Discounts: 10350, - Sales: 252900, - COGS: 66240, - Profit: 186660, - Date: `11/1/19`, - MonthName: `November`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Mandarin`, - UnitsSold: `2351`, - ManufacturingPrice: 250, - SalePrice: 20, - GrossSales: 47020, - Discounts: 879, - Sales: 46141, - COGS: 2930, - Profit: 43211, - Date: `12/1/19`, - MonthName: `December`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `UK`, - Product: `Luxe`, - UnitsSold: `1897`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 569100, - Discounts: 111375, - Sales: 457725, - COGS: 618750, - Profit: 161025, - Date: `3/1/19`, - MonthName: `March`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Luxe`, - UnitsSold: `647`, - ManufacturingPrice: 260, - SalePrice: 300, - GrossSales: 194100, - Discounts: 24570, - Sales: 169530, - COGS: 136500, - Profit: 33030, - Date: `10/1/19`, - MonthName: `October`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Brazil`, - Product: `Royal Oak`, - UnitsSold: `3621`, - ManufacturingPrice: 5, - SalePrice: 7, - GrossSales: 25347, - Discounts: 1436.4, - Sales: 23910.6, - COGS: 6840, - Profit: 17070.6, - Date: `2/1/19`, - MonthName: `February`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `Japan`, - Product: `Vermont`, - UnitsSold: `3221`, - ManufacturingPrice: 10, - SalePrice: 7, - GrossSales: 22547, - Discounts: 759.15, - Sales: 21787.85, - COGS: 3615, - Profit: 18172.85, - Date: `4/1/19`, - MonthName: `April`, - Year: `2019` - })); - this.push(new SalesDataItem( - { - Country: `USA`, - Product: `Mandarin`, - UnitsSold: `493`, - ManufacturingPrice: 250, - SalePrice: 12, - GrossSales: 5916, - Discounts: 3250.8, - Sales: 2665.2, - COGS: 5418, - Profit: 2752.8, - Date: `5/1/19`, - MonthName: `May`, - Year: `2019` - })); - } -} - -export class SalesDataItem { - public constructor(init: Partial) { - Object.assign(this, init); - } - - public Country: string; - public Product: string; - public UnitsSold: string; - public ManufacturingPrice: number; - public SalePrice: number; - public GrossSales: number; - public Discounts: number; - public Sales: number; - public COGS: number; - public Profit: number; - public Date: string; - public MonthName: string; - public Year: string; - -} -//end data \ No newline at end of file diff --git a/samples/charts/category-chart/data-filter/src/app.component.html b/samples/charts/category-chart/data-filter/src/app.component.html index 9b3dcf130..21b390d29 100644 --- a/samples/charts/category-chart/data-filter/src/app.component.html +++ b/samples/charts/category-chart/data-filter/src/app.component.html @@ -10,18 +10,19 @@ isWrappingEnabled="true"> + dropDownNames="1950, 1960, 1970, 1980, 1990, 2000, 2010, 2020" + dropDownValues="1950, 1960, 1970, 1980, 1990, 2000, 2010, 2020" + (changed)="this.editorChangeDataFilter($event)">
- Sales Filtered by Country, Product, and Dates + Annual Birth Rates by World Region
+ yAxisLabelFormat="{0}M">
diff --git a/samples/charts/category-chart/data-filter/src/app.component.ts b/samples/charts/category-chart/data-filter/src/app.component.ts index 8c01c4b48..5432c3011 100644 --- a/samples/charts/category-chart/data-filter/src/app.component.ts +++ b/samples/charts/category-chart/data-filter/src/app.component.ts @@ -1,6 +1,6 @@ import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; import { ComponentRenderer, PropertyEditorPanelDescriptionModule, LegendDescriptionModule, CategoryChartDescriptionModule } from 'igniteui-angular-core'; -import { SalesData } from './SalesData'; +import { ContinentsBirthRateItem, ContinentsBirthRate } from './ContinentsBirthRate'; import { IgxPropertyEditorPropertyDescriptionChangedEventArgs, IgxPropertyEditorPropertyDescriptionComponent } from 'igniteui-angular-layouts'; import { IgxCategoryChartComponent, MarkerType, MarkerType_$type } from 'igniteui-angular-charts'; import { EnumUtil } from 'igniteui-angular-core'; @@ -29,13 +29,13 @@ export class AppComponent implements AfterViewInit private initialFilter: IgxPropertyEditorPropertyDescriptionComponent @ViewChild("chart", { static: true } ) private chart: IgxCategoryChartComponent - private _salesData: SalesData = null; - public get salesData(): SalesData { - if (this._salesData == null) + private _continentsBirthRate: ContinentsBirthRate = null; + public get continentsBirthRate(): ContinentsBirthRate { + if (this._continentsBirthRate == null) { - this._salesData = new SalesData(); + this._continentsBirthRate = new ContinentsBirthRate(); } - return this._salesData; + return this._continentsBirthRate; } private _componentRenderer: ComponentRenderer = null; @@ -58,11 +58,11 @@ export class AppComponent implements AfterViewInit { } - public editorChangeUpdateInitialFilter({ sender, args }: { sender: any, args: IgxPropertyEditorPropertyDescriptionChangedEventArgs }): void { + public editorChangeDataFilter({ sender, args }: { sender: any, args: IgxPropertyEditorPropertyDescriptionChangedEventArgs }): void { var chart = this.chart; - var intialFilterVal = args.newValue.toString(); - chart.initialFilter = intialFilterVal; + var filter = args.newValue.toString(); + chart.initialFilter = "(contains(Year," + "'" + filter + "'" + "))"; } } diff --git a/samples/charts/category-chart/data-filter/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/data-filter/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/data-filter/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/data-filter/src/config/tsconfig.app.json b/samples/charts/category-chart/data-filter/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/data-filter/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/data-filter/src/config/tsconfig.base.json b/samples/charts/category-chart/data-filter/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/data-filter/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/data-filter/src/config/tsconfig.spec.json b/samples/charts/category-chart/data-filter/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/data-filter/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/data-filter/src/config/tsconfig.worker.json b/samples/charts/category-chart/data-filter/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/data-filter/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/data-filter/tsconfig.app.json b/samples/charts/category-chart/data-filter/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/data-filter/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/category-chart/data-filter/tsconfig.json b/samples/charts/category-chart/data-filter/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/data-filter/tsconfig.json +++ b/samples/charts/category-chart/data-filter/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/data-legend-formatting-decimals/.codesandbox/Dockerfile b/samples/charts/category-chart/data-legend-formatting-decimals/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/data-legend-formatting-decimals/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/data-legend-formatting-decimals/.codesandbox/tasks.json b/samples/charts/category-chart/data-legend-formatting-decimals/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/data-legend-formatting-decimals/.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/category-chart/data-legend-formatting-decimals/.stackblitzrc b/samples/charts/category-chart/data-legend-formatting-decimals/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/data-legend-formatting-decimals/.stackblitzrc +++ b/samples/charts/category-chart/data-legend-formatting-decimals/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/data-legend-formatting-decimals/angular.json b/samples/charts/category-chart/data-legend-formatting-decimals/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/data-legend-formatting-decimals/angular.json +++ b/samples/charts/category-chart/data-legend-formatting-decimals/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/data-legend-formatting-decimals/package.json b/samples/charts/category-chart/data-legend-formatting-decimals/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/data-legend-formatting-decimals/package.json +++ b/samples/charts/category-chart/data-legend-formatting-decimals/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/data-legend-formatting-decimals/sandbox.config.json b/samples/charts/category-chart/data-legend-formatting-decimals/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/data-legend-formatting-decimals/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.app.json b/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.base.json b/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.spec.json b/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.worker.json b/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/data-legend-formatting-decimals/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/data-legend-formatting-decimals/tsconfig.app.json b/samples/charts/category-chart/data-legend-formatting-decimals/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/data-legend-formatting-decimals/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/category-chart/data-legend-formatting-decimals/tsconfig.json b/samples/charts/category-chart/data-legend-formatting-decimals/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/data-legend-formatting-decimals/tsconfig.json +++ b/samples/charts/category-chart/data-legend-formatting-decimals/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/data-legend/.codesandbox/Dockerfile b/samples/charts/category-chart/data-legend/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/data-legend/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/data-legend/.codesandbox/tasks.json b/samples/charts/category-chart/data-legend/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/data-legend/.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/category-chart/data-legend/.stackblitzrc b/samples/charts/category-chart/data-legend/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/data-legend/.stackblitzrc +++ b/samples/charts/category-chart/data-legend/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/data-legend/angular.json b/samples/charts/category-chart/data-legend/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/data-legend/angular.json +++ b/samples/charts/category-chart/data-legend/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/data-legend/package.json b/samples/charts/category-chart/data-legend/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/data-legend/package.json +++ b/samples/charts/category-chart/data-legend/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/data-legend/sandbox.config.json b/samples/charts/category-chart/data-legend/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/data-legend/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/data-legend/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/data-legend/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/data-legend/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/data-legend/src/config/tsconfig.app.json b/samples/charts/category-chart/data-legend/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/data-legend/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/data-legend/src/config/tsconfig.base.json b/samples/charts/category-chart/data-legend/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/data-legend/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/data-legend/src/config/tsconfig.spec.json b/samples/charts/category-chart/data-legend/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/data-legend/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/data-legend/src/config/tsconfig.worker.json b/samples/charts/category-chart/data-legend/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/data-legend/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/data-legend/tsconfig.app.json b/samples/charts/category-chart/data-legend/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/data-legend/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/category-chart/data-legend/tsconfig.json b/samples/charts/category-chart/data-legend/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/data-legend/tsconfig.json +++ b/samples/charts/category-chart/data-legend/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/data-tooltip-formatting-decimals/.codesandbox/Dockerfile b/samples/charts/category-chart/data-tooltip-formatting-decimals/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/data-tooltip-formatting-decimals/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/data-tooltip-formatting-decimals/.codesandbox/tasks.json b/samples/charts/category-chart/data-tooltip-formatting-decimals/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/data-tooltip-formatting-decimals/.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/category-chart/data-tooltip-formatting-decimals/.stackblitzrc b/samples/charts/category-chart/data-tooltip-formatting-decimals/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/data-tooltip-formatting-decimals/.stackblitzrc +++ b/samples/charts/category-chart/data-tooltip-formatting-decimals/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/data-tooltip-formatting-decimals/angular.json b/samples/charts/category-chart/data-tooltip-formatting-decimals/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/data-tooltip-formatting-decimals/angular.json +++ b/samples/charts/category-chart/data-tooltip-formatting-decimals/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/data-tooltip-formatting-decimals/package.json b/samples/charts/category-chart/data-tooltip-formatting-decimals/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/data-tooltip-formatting-decimals/package.json +++ b/samples/charts/category-chart/data-tooltip-formatting-decimals/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/data-tooltip-formatting-decimals/sandbox.config.json b/samples/charts/category-chart/data-tooltip-formatting-decimals/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/data-tooltip-formatting-decimals/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.app.json b/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.base.json b/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.spec.json b/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.worker.json b/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/data-tooltip-formatting-decimals/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/data-tooltip-formatting-decimals/tsconfig.app.json b/samples/charts/category-chart/data-tooltip-formatting-decimals/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/data-tooltip-formatting-decimals/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/category-chart/data-tooltip-formatting-decimals/tsconfig.json b/samples/charts/category-chart/data-tooltip-formatting-decimals/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/data-tooltip-formatting-decimals/tsconfig.json +++ b/samples/charts/category-chart/data-tooltip-formatting-decimals/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/data-tooltip-positioning/.codesandbox/Dockerfile b/samples/charts/category-chart/data-tooltip-positioning/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/data-tooltip-positioning/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/data-tooltip-positioning/.codesandbox/tasks.json b/samples/charts/category-chart/data-tooltip-positioning/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/data-tooltip-positioning/.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/category-chart/data-tooltip-positioning/.stackblitzrc b/samples/charts/category-chart/data-tooltip-positioning/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/data-tooltip-positioning/.stackblitzrc +++ b/samples/charts/category-chart/data-tooltip-positioning/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/data-tooltip-positioning/angular.json b/samples/charts/category-chart/data-tooltip-positioning/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/data-tooltip-positioning/angular.json +++ b/samples/charts/category-chart/data-tooltip-positioning/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/data-tooltip-positioning/package.json b/samples/charts/category-chart/data-tooltip-positioning/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/data-tooltip-positioning/package.json +++ b/samples/charts/category-chart/data-tooltip-positioning/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/data-tooltip-positioning/sandbox.config.json b/samples/charts/category-chart/data-tooltip-positioning/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/data-tooltip-positioning/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.app.json b/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.base.json b/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.spec.json b/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.worker.json b/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/data-tooltip-positioning/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/data-tooltip-positioning/tsconfig.app.json b/samples/charts/category-chart/data-tooltip-positioning/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/data-tooltip-positioning/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/category-chart/data-tooltip-positioning/tsconfig.json b/samples/charts/category-chart/data-tooltip-positioning/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/data-tooltip-positioning/tsconfig.json +++ b/samples/charts/category-chart/data-tooltip-positioning/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/data-tooltip/.codesandbox/Dockerfile b/samples/charts/category-chart/data-tooltip/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/data-tooltip/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/data-tooltip/.codesandbox/tasks.json b/samples/charts/category-chart/data-tooltip/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/data-tooltip/.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/category-chart/data-tooltip/.stackblitzrc b/samples/charts/category-chart/data-tooltip/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/data-tooltip/.stackblitzrc +++ b/samples/charts/category-chart/data-tooltip/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/data-tooltip/angular.json b/samples/charts/category-chart/data-tooltip/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/data-tooltip/angular.json +++ b/samples/charts/category-chart/data-tooltip/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/data-tooltip/package.json b/samples/charts/category-chart/data-tooltip/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/data-tooltip/package.json +++ b/samples/charts/category-chart/data-tooltip/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/data-tooltip/sandbox.config.json b/samples/charts/category-chart/data-tooltip/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/data-tooltip/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/data-tooltip/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/data-tooltip/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/data-tooltip/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/data-tooltip/src/config/tsconfig.app.json b/samples/charts/category-chart/data-tooltip/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/data-tooltip/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/data-tooltip/src/config/tsconfig.base.json b/samples/charts/category-chart/data-tooltip/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/data-tooltip/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/data-tooltip/src/config/tsconfig.spec.json b/samples/charts/category-chart/data-tooltip/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/data-tooltip/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/data-tooltip/src/config/tsconfig.worker.json b/samples/charts/category-chart/data-tooltip/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/data-tooltip/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/data-tooltip/tsconfig.app.json b/samples/charts/category-chart/data-tooltip/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/data-tooltip/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/category-chart/data-tooltip/tsconfig.json b/samples/charts/category-chart/data-tooltip/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/data-tooltip/tsconfig.json +++ b/samples/charts/category-chart/data-tooltip/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/format-specifiers/.codesandbox/Dockerfile b/samples/charts/category-chart/format-specifiers/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/format-specifiers/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/format-specifiers/.codesandbox/tasks.json b/samples/charts/category-chart/format-specifiers/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/format-specifiers/.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/category-chart/format-specifiers/.stackblitzrc b/samples/charts/category-chart/format-specifiers/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/format-specifiers/.stackblitzrc +++ b/samples/charts/category-chart/format-specifiers/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/format-specifiers/angular.json b/samples/charts/category-chart/format-specifiers/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/format-specifiers/angular.json +++ b/samples/charts/category-chart/format-specifiers/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/format-specifiers/package.json b/samples/charts/category-chart/format-specifiers/package.json index 632873a59..b18743c2c 100644 --- a/samples/charts/category-chart/format-specifiers/package.json +++ b/samples/charts/category-chart/format-specifiers/package.json @@ -7,40 +7,40 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/format-specifiers/sandbox.config.json b/samples/charts/category-chart/format-specifiers/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/format-specifiers/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/format-specifiers/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/format-specifiers/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/format-specifiers/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/format-specifiers/src/config/tsconfig.app.json b/samples/charts/category-chart/format-specifiers/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/format-specifiers/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/format-specifiers/src/config/tsconfig.base.json b/samples/charts/category-chart/format-specifiers/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/format-specifiers/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/format-specifiers/src/config/tsconfig.spec.json b/samples/charts/category-chart/format-specifiers/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/format-specifiers/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/format-specifiers/src/config/tsconfig.worker.json b/samples/charts/category-chart/format-specifiers/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/format-specifiers/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/format-specifiers/tsconfig.app.json b/samples/charts/category-chart/format-specifiers/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/format-specifiers/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/category-chart/format-specifiers/tsconfig.json b/samples/charts/category-chart/format-specifiers/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/format-specifiers/tsconfig.json +++ b/samples/charts/category-chart/format-specifiers/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/high-frequency/.codesandbox/Dockerfile b/samples/charts/category-chart/high-frequency/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/high-frequency/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/high-frequency/.codesandbox/tasks.json b/samples/charts/category-chart/high-frequency/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/high-frequency/.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/category-chart/high-frequency/.stackblitzrc b/samples/charts/category-chart/high-frequency/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/high-frequency/.stackblitzrc +++ b/samples/charts/category-chart/high-frequency/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/high-frequency/angular.json b/samples/charts/category-chart/high-frequency/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/high-frequency/angular.json +++ b/samples/charts/category-chart/high-frequency/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/high-frequency/package.json b/samples/charts/category-chart/high-frequency/package.json index 3f89920d8..455da6795 100644 --- a/samples/charts/category-chart/high-frequency/package.json +++ b/samples/charts/category-chart/high-frequency/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular": "17.0.0", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular": "17.2.3", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/high-frequency/sandbox.config.json b/samples/charts/category-chart/high-frequency/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/high-frequency/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/high-frequency/src/app/app.component.html b/samples/charts/category-chart/high-frequency/src/app.component.html similarity index 100% rename from samples/charts/category-chart/high-frequency/src/app/app.component.html rename to samples/charts/category-chart/high-frequency/src/app.component.html diff --git a/samples/charts/category-chart/high-frequency/src/app/app.component.scss b/samples/charts/category-chart/high-frequency/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/high-frequency/src/app/app.component.scss rename to samples/charts/category-chart/high-frequency/src/app.component.scss diff --git a/samples/charts/category-chart/high-frequency/src/app/app.component.ts b/samples/charts/category-chart/high-frequency/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/high-frequency/src/app/app.component.ts rename to samples/charts/category-chart/high-frequency/src/app.component.ts diff --git a/samples/charts/category-chart/high-frequency/src/app/app.module.ts b/samples/charts/category-chart/high-frequency/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/high-frequency/src/app/app.module.ts rename to samples/charts/category-chart/high-frequency/src/app.module.ts diff --git a/samples/charts/category-chart/high-frequency/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/high-frequency/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/high-frequency/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/high-frequency/src/config/tsconfig.app.json b/samples/charts/category-chart/high-frequency/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/high-frequency/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/high-frequency/src/config/tsconfig.base.json b/samples/charts/category-chart/high-frequency/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/high-frequency/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/high-frequency/src/config/tsconfig.spec.json b/samples/charts/category-chart/high-frequency/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/high-frequency/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/high-frequency/src/config/tsconfig.worker.json b/samples/charts/category-chart/high-frequency/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/high-frequency/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/high-frequency/src/main.ts b/samples/charts/category-chart/high-frequency/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/high-frequency/src/main.ts +++ b/samples/charts/category-chart/high-frequency/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/high-frequency/tsconfig.app.json b/samples/charts/category-chart/high-frequency/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/high-frequency/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/category-chart/high-frequency/tsconfig.json b/samples/charts/category-chart/high-frequency/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/high-frequency/tsconfig.json +++ b/samples/charts/category-chart/high-frequency/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/high-volume/.codesandbox/Dockerfile b/samples/charts/category-chart/high-volume/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/high-volume/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/high-volume/.codesandbox/tasks.json b/samples/charts/category-chart/high-volume/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/high-volume/.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/category-chart/high-volume/.stackblitzrc b/samples/charts/category-chart/high-volume/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/high-volume/.stackblitzrc +++ b/samples/charts/category-chart/high-volume/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/high-volume/angular.json b/samples/charts/category-chart/high-volume/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/high-volume/angular.json +++ b/samples/charts/category-chart/high-volume/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/high-volume/package.json b/samples/charts/category-chart/high-volume/package.json index 3f89920d8..455da6795 100644 --- a/samples/charts/category-chart/high-volume/package.json +++ b/samples/charts/category-chart/high-volume/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular": "17.0.0", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular": "17.2.3", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/high-volume/sandbox.config.json b/samples/charts/category-chart/high-volume/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/high-volume/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/high-volume/src/app/app.component.html b/samples/charts/category-chart/high-volume/src/app.component.html similarity index 100% rename from samples/charts/category-chart/high-volume/src/app/app.component.html rename to samples/charts/category-chart/high-volume/src/app.component.html diff --git a/samples/charts/category-chart/high-volume/src/app/app.component.scss b/samples/charts/category-chart/high-volume/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/high-volume/src/app/app.component.scss rename to samples/charts/category-chart/high-volume/src/app.component.scss diff --git a/samples/charts/category-chart/high-volume/src/app/app.component.ts b/samples/charts/category-chart/high-volume/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/high-volume/src/app/app.component.ts rename to samples/charts/category-chart/high-volume/src/app.component.ts diff --git a/samples/charts/category-chart/high-volume/src/app/app.module.ts b/samples/charts/category-chart/high-volume/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/high-volume/src/app/app.module.ts rename to samples/charts/category-chart/high-volume/src/app.module.ts diff --git a/samples/charts/category-chart/high-volume/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/high-volume/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/high-volume/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/high-volume/src/config/tsconfig.app.json b/samples/charts/category-chart/high-volume/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/high-volume/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/high-volume/src/config/tsconfig.base.json b/samples/charts/category-chart/high-volume/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/high-volume/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/high-volume/src/config/tsconfig.spec.json b/samples/charts/category-chart/high-volume/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/high-volume/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/high-volume/src/config/tsconfig.worker.json b/samples/charts/category-chart/high-volume/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/high-volume/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/high-volume/src/main.ts b/samples/charts/category-chart/high-volume/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/high-volume/src/main.ts +++ b/samples/charts/category-chart/high-volume/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/high-volume/tsconfig.app.json b/samples/charts/category-chart/high-volume/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/high-volume/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/category-chart/high-volume/tsconfig.json b/samples/charts/category-chart/high-volume/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/high-volume/tsconfig.json +++ b/samples/charts/category-chart/high-volume/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/highlighting-behavior/.codesandbox/Dockerfile b/samples/charts/category-chart/highlighting-behavior/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/highlighting-behavior/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/highlighting-behavior/.codesandbox/tasks.json b/samples/charts/category-chart/highlighting-behavior/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/highlighting-behavior/.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/category-chart/highlighting-behavior/.stackblitzrc b/samples/charts/category-chart/highlighting-behavior/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/highlighting-behavior/.stackblitzrc +++ b/samples/charts/category-chart/highlighting-behavior/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/highlighting-behavior/angular.json b/samples/charts/category-chart/highlighting-behavior/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/highlighting-behavior/angular.json +++ b/samples/charts/category-chart/highlighting-behavior/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/highlighting-behavior/package.json b/samples/charts/category-chart/highlighting-behavior/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/highlighting-behavior/package.json +++ b/samples/charts/category-chart/highlighting-behavior/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/highlighting-behavior/src/app.component.html b/samples/charts/category-chart/highlighting-behavior/src/app.component.html index 6fa8551eb..8ec2d58b5 100644 --- a/samples/charts/category-chart/highlighting-behavior/src/app.component.html +++ b/samples/charts/category-chart/highlighting-behavior/src/app.component.html @@ -28,7 +28,6 @@ [dataSource]="temperatureAnnotatedData" highlightingMode="Brighten" highlightingBehavior="DirectlyOver" - crosshairsAnnotationEnabled="false" toolTipType="None" crosshairsDisplayMode="None"> diff --git a/samples/charts/category-chart/highlighting-behavior/tsconfig.app.json b/samples/charts/category-chart/highlighting-behavior/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/highlighting-behavior/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/category-chart/highlighting-behavior/tsconfig.json b/samples/charts/category-chart/highlighting-behavior/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/highlighting-behavior/tsconfig.json +++ b/samples/charts/category-chart/highlighting-behavior/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/highlighting-mode/.codesandbox/Dockerfile b/samples/charts/category-chart/highlighting-mode/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/highlighting-mode/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/highlighting-mode/.codesandbox/tasks.json b/samples/charts/category-chart/highlighting-mode/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/highlighting-mode/.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/category-chart/highlighting-mode/.stackblitzrc b/samples/charts/category-chart/highlighting-mode/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/highlighting-mode/.stackblitzrc +++ b/samples/charts/category-chart/highlighting-mode/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/highlighting-mode/angular.json b/samples/charts/category-chart/highlighting-mode/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/highlighting-mode/angular.json +++ b/samples/charts/category-chart/highlighting-mode/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/highlighting-mode/package.json b/samples/charts/category-chart/highlighting-mode/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/highlighting-mode/package.json +++ b/samples/charts/category-chart/highlighting-mode/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/highlighting-mode/src/app.component.html b/samples/charts/category-chart/highlighting-mode/src/app.component.html index 3ff4b3a23..a0dad92d9 100644 --- a/samples/charts/category-chart/highlighting-mode/src/app.component.html +++ b/samples/charts/category-chart/highlighting-mode/src/app.component.html @@ -27,7 +27,6 @@ isVerticalZoomEnabled="false" [dataSource]="temperatureAnnotatedData" highlightingMode="BrightenSpecific" - crosshairsAnnotationEnabled="false" toolTipType="None" crosshairsDisplayMode="None"> diff --git a/samples/charts/category-chart/highlighting-mode/tsconfig.app.json b/samples/charts/category-chart/highlighting-mode/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/highlighting-mode/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/category-chart/highlighting-mode/tsconfig.json b/samples/charts/category-chart/highlighting-mode/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/highlighting-mode/tsconfig.json +++ b/samples/charts/category-chart/highlighting-mode/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/highlighting/.codesandbox/Dockerfile b/samples/charts/category-chart/highlighting/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/highlighting/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/highlighting/.codesandbox/tasks.json b/samples/charts/category-chart/highlighting/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/highlighting/.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/category-chart/highlighting/.stackblitzrc b/samples/charts/category-chart/highlighting/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/highlighting/.stackblitzrc +++ b/samples/charts/category-chart/highlighting/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/highlighting/angular.json b/samples/charts/category-chart/highlighting/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/highlighting/angular.json +++ b/samples/charts/category-chart/highlighting/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/highlighting/package.json b/samples/charts/category-chart/highlighting/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/category-chart/highlighting/package.json +++ b/samples/charts/category-chart/highlighting/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/highlighting/sandbox.config.json b/samples/charts/category-chart/highlighting/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/highlighting/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/highlighting/src/app/app.component.html b/samples/charts/category-chart/highlighting/src/app.component.html similarity index 100% rename from samples/charts/category-chart/highlighting/src/app/app.component.html rename to samples/charts/category-chart/highlighting/src/app.component.html diff --git a/samples/charts/category-chart/highlighting/src/app/app.component.scss b/samples/charts/category-chart/highlighting/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/highlighting/src/app/app.component.scss rename to samples/charts/category-chart/highlighting/src/app.component.scss diff --git a/samples/charts/category-chart/highlighting/src/app/app.component.ts b/samples/charts/category-chart/highlighting/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/highlighting/src/app/app.component.ts rename to samples/charts/category-chart/highlighting/src/app.component.ts diff --git a/samples/charts/category-chart/highlighting/src/app/app.module.ts b/samples/charts/category-chart/highlighting/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/highlighting/src/app/app.module.ts rename to samples/charts/category-chart/highlighting/src/app.module.ts diff --git a/samples/charts/category-chart/highlighting/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/highlighting/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/highlighting/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/highlighting/src/config/tsconfig.app.json b/samples/charts/category-chart/highlighting/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/highlighting/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/highlighting/src/config/tsconfig.base.json b/samples/charts/category-chart/highlighting/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/highlighting/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/highlighting/src/config/tsconfig.spec.json b/samples/charts/category-chart/highlighting/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/highlighting/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/highlighting/src/config/tsconfig.worker.json b/samples/charts/category-chart/highlighting/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/highlighting/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/highlighting/src/main.ts b/samples/charts/category-chart/highlighting/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/highlighting/src/main.ts +++ b/samples/charts/category-chart/highlighting/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/highlighting/tsconfig.app.json b/samples/charts/category-chart/highlighting/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/highlighting/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/category-chart/highlighting/tsconfig.json b/samples/charts/category-chart/highlighting/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/highlighting/tsconfig.json +++ b/samples/charts/category-chart/highlighting/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/legend-highlighting/.codesandbox/Dockerfile b/samples/charts/category-chart/legend-highlighting/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/legend-highlighting/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/legend-highlighting/.codesandbox/tasks.json b/samples/charts/category-chart/legend-highlighting/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/legend-highlighting/.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/category-chart/legend-highlighting/.stackblitzrc b/samples/charts/category-chart/legend-highlighting/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/legend-highlighting/.stackblitzrc +++ b/samples/charts/category-chart/legend-highlighting/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/legend-highlighting/angular.json b/samples/charts/category-chart/legend-highlighting/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/legend-highlighting/angular.json +++ b/samples/charts/category-chart/legend-highlighting/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/legend-highlighting/package.json b/samples/charts/category-chart/legend-highlighting/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/legend-highlighting/package.json +++ b/samples/charts/category-chart/legend-highlighting/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/legend-highlighting/tsconfig.app.json b/samples/charts/category-chart/legend-highlighting/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/legend-highlighting/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/category-chart/legend-highlighting/tsconfig.json b/samples/charts/category-chart/legend-highlighting/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/legend-highlighting/tsconfig.json +++ b/samples/charts/category-chart/legend-highlighting/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/line-chart-multiple-sources/.codesandbox/Dockerfile b/samples/charts/category-chart/line-chart-multiple-sources/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/line-chart-multiple-sources/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-multiple-sources/.codesandbox/tasks.json b/samples/charts/category-chart/line-chart-multiple-sources/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/line-chart-multiple-sources/.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/category-chart/line-chart-multiple-sources/.stackblitzrc b/samples/charts/category-chart/line-chart-multiple-sources/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/line-chart-multiple-sources/.stackblitzrc +++ b/samples/charts/category-chart/line-chart-multiple-sources/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-multiple-sources/angular.json b/samples/charts/category-chart/line-chart-multiple-sources/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/line-chart-multiple-sources/angular.json +++ b/samples/charts/category-chart/line-chart-multiple-sources/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/line-chart-multiple-sources/package.json b/samples/charts/category-chart/line-chart-multiple-sources/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/line-chart-multiple-sources/package.json +++ b/samples/charts/category-chart/line-chart-multiple-sources/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/line-chart-multiple-sources/sandbox.config.json b/samples/charts/category-chart/line-chart-multiple-sources/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/line-chart-multiple-sources/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.app.json b/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.base.json b/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.spec.json b/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.worker.json b/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/line-chart-multiple-sources/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-multiple-sources/tsconfig.app.json b/samples/charts/category-chart/line-chart-multiple-sources/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/line-chart-multiple-sources/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/category-chart/line-chart-multiple-sources/tsconfig.json b/samples/charts/category-chart/line-chart-multiple-sources/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/line-chart-multiple-sources/tsconfig.json +++ b/samples/charts/category-chart/line-chart-multiple-sources/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/line-chart-single-source/.codesandbox/Dockerfile b/samples/charts/category-chart/line-chart-single-source/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/line-chart-single-source/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-single-source/.codesandbox/tasks.json b/samples/charts/category-chart/line-chart-single-source/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/line-chart-single-source/.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/category-chart/line-chart-single-source/.stackblitzrc b/samples/charts/category-chart/line-chart-single-source/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/line-chart-single-source/.stackblitzrc +++ b/samples/charts/category-chart/line-chart-single-source/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-single-source/angular.json b/samples/charts/category-chart/line-chart-single-source/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/line-chart-single-source/angular.json +++ b/samples/charts/category-chart/line-chart-single-source/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/line-chart-single-source/package.json b/samples/charts/category-chart/line-chart-single-source/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/line-chart-single-source/package.json +++ b/samples/charts/category-chart/line-chart-single-source/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/line-chart-single-source/sandbox.config.json b/samples/charts/category-chart/line-chart-single-source/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/line-chart-single-source/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.app.json b/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.base.json b/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.spec.json b/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.worker.json b/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/line-chart-single-source/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-single-source/tsconfig.app.json b/samples/charts/category-chart/line-chart-single-source/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/line-chart-single-source/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/category-chart/line-chart-single-source/tsconfig.json b/samples/charts/category-chart/line-chart-single-source/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/line-chart-single-source/tsconfig.json +++ b/samples/charts/category-chart/line-chart-single-source/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/line-chart-styling/.codesandbox/Dockerfile b/samples/charts/category-chart/line-chart-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/line-chart-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-styling/.codesandbox/tasks.json b/samples/charts/category-chart/line-chart-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/line-chart-styling/.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/category-chart/line-chart-styling/.stackblitzrc b/samples/charts/category-chart/line-chart-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/line-chart-styling/.stackblitzrc +++ b/samples/charts/category-chart/line-chart-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-styling/angular.json b/samples/charts/category-chart/line-chart-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/line-chart-styling/angular.json +++ b/samples/charts/category-chart/line-chart-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/line-chart-styling/package.json b/samples/charts/category-chart/line-chart-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/line-chart-styling/package.json +++ b/samples/charts/category-chart/line-chart-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/line-chart-styling/sandbox.config.json b/samples/charts/category-chart/line-chart-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/line-chart-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-styling/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/line-chart-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/line-chart-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.app.json b/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.base.json b/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.spec.json b/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.worker.json b/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/line-chart-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-styling/tsconfig.app.json b/samples/charts/category-chart/line-chart-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/line-chart-styling/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/category-chart/line-chart-styling/tsconfig.json b/samples/charts/category-chart/line-chart-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/line-chart-styling/tsconfig.json +++ b/samples/charts/category-chart/line-chart-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/line-chart-with-animations/.codesandbox/Dockerfile b/samples/charts/category-chart/line-chart-with-animations/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/line-chart-with-animations/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-with-animations/.codesandbox/tasks.json b/samples/charts/category-chart/line-chart-with-animations/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/line-chart-with-animations/.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/category-chart/line-chart-with-animations/.stackblitzrc b/samples/charts/category-chart/line-chart-with-animations/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/line-chart-with-animations/.stackblitzrc +++ b/samples/charts/category-chart/line-chart-with-animations/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-with-animations/angular.json b/samples/charts/category-chart/line-chart-with-animations/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/line-chart-with-animations/angular.json +++ b/samples/charts/category-chart/line-chart-with-animations/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/line-chart-with-animations/package.json b/samples/charts/category-chart/line-chart-with-animations/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/category-chart/line-chart-with-animations/package.json +++ b/samples/charts/category-chart/line-chart-with-animations/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/line-chart-with-animations/sandbox.config.json b/samples/charts/category-chart/line-chart-with-animations/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/line-chart-with-animations/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-with-animations/src/app/app.component.html b/samples/charts/category-chart/line-chart-with-animations/src/app.component.html similarity index 100% rename from samples/charts/category-chart/line-chart-with-animations/src/app/app.component.html rename to samples/charts/category-chart/line-chart-with-animations/src/app.component.html diff --git a/samples/charts/category-chart/line-chart-with-animations/src/app/app.component.scss b/samples/charts/category-chart/line-chart-with-animations/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/line-chart-with-animations/src/app/app.component.scss rename to samples/charts/category-chart/line-chart-with-animations/src/app.component.scss diff --git a/samples/charts/category-chart/line-chart-with-animations/src/app/app.component.ts b/samples/charts/category-chart/line-chart-with-animations/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/line-chart-with-animations/src/app/app.component.ts rename to samples/charts/category-chart/line-chart-with-animations/src/app.component.ts diff --git a/samples/charts/category-chart/line-chart-with-animations/src/app/app.module.ts b/samples/charts/category-chart/line-chart-with-animations/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/line-chart-with-animations/src/app/app.module.ts rename to samples/charts/category-chart/line-chart-with-animations/src/app.module.ts diff --git a/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.app.json b/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.base.json b/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.spec.json b/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.worker.json b/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/line-chart-with-animations/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-with-animations/src/main.ts b/samples/charts/category-chart/line-chart-with-animations/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/line-chart-with-animations/src/main.ts +++ b/samples/charts/category-chart/line-chart-with-animations/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/line-chart-with-animations/tsconfig.app.json b/samples/charts/category-chart/line-chart-with-animations/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/line-chart-with-animations/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/category-chart/line-chart-with-animations/tsconfig.json b/samples/charts/category-chart/line-chart-with-animations/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/line-chart-with-animations/tsconfig.json +++ b/samples/charts/category-chart/line-chart-with-animations/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/line-chart-with-annotations/.codesandbox/Dockerfile b/samples/charts/category-chart/line-chart-with-annotations/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/line-chart-with-annotations/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-with-annotations/.codesandbox/tasks.json b/samples/charts/category-chart/line-chart-with-annotations/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/line-chart-with-annotations/.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/category-chart/line-chart-with-annotations/.stackblitzrc b/samples/charts/category-chart/line-chart-with-annotations/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/line-chart-with-annotations/.stackblitzrc +++ b/samples/charts/category-chart/line-chart-with-annotations/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-with-annotations/angular.json b/samples/charts/category-chart/line-chart-with-annotations/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/line-chart-with-annotations/angular.json +++ b/samples/charts/category-chart/line-chart-with-annotations/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/line-chart-with-annotations/package.json b/samples/charts/category-chart/line-chart-with-annotations/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/category-chart/line-chart-with-annotations/package.json +++ b/samples/charts/category-chart/line-chart-with-annotations/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/line-chart-with-annotations/sandbox.config.json b/samples/charts/category-chart/line-chart-with-annotations/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/line-chart-with-annotations/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-with-annotations/src/app/app.component.html b/samples/charts/category-chart/line-chart-with-annotations/src/app.component.html similarity index 100% rename from samples/charts/category-chart/line-chart-with-annotations/src/app/app.component.html rename to samples/charts/category-chart/line-chart-with-annotations/src/app.component.html diff --git a/samples/charts/category-chart/line-chart-with-annotations/src/app/app.component.scss b/samples/charts/category-chart/line-chart-with-annotations/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/line-chart-with-annotations/src/app/app.component.scss rename to samples/charts/category-chart/line-chart-with-annotations/src/app.component.scss diff --git a/samples/charts/category-chart/line-chart-with-annotations/src/app/app.component.ts b/samples/charts/category-chart/line-chart-with-annotations/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/line-chart-with-annotations/src/app/app.component.ts rename to samples/charts/category-chart/line-chart-with-annotations/src/app.component.ts diff --git a/samples/charts/category-chart/line-chart-with-annotations/src/app/app.module.ts b/samples/charts/category-chart/line-chart-with-annotations/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/line-chart-with-annotations/src/app/app.module.ts rename to samples/charts/category-chart/line-chart-with-annotations/src/app.module.ts diff --git a/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.app.json b/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.base.json b/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.spec.json b/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.worker.json b/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/line-chart-with-annotations/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-with-annotations/src/main.ts b/samples/charts/category-chart/line-chart-with-annotations/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/line-chart-with-annotations/src/main.ts +++ b/samples/charts/category-chart/line-chart-with-annotations/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/line-chart-with-annotations/tsconfig.app.json b/samples/charts/category-chart/line-chart-with-annotations/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/line-chart-with-annotations/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/category-chart/line-chart-with-annotations/tsconfig.json b/samples/charts/category-chart/line-chart-with-annotations/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/line-chart-with-annotations/tsconfig.json +++ b/samples/charts/category-chart/line-chart-with-annotations/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/line-chart-with-legend/.codesandbox/Dockerfile b/samples/charts/category-chart/line-chart-with-legend/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/line-chart-with-legend/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-with-legend/.codesandbox/tasks.json b/samples/charts/category-chart/line-chart-with-legend/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/line-chart-with-legend/.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/category-chart/line-chart-with-legend/.stackblitzrc b/samples/charts/category-chart/line-chart-with-legend/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/line-chart-with-legend/.stackblitzrc +++ b/samples/charts/category-chart/line-chart-with-legend/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-with-legend/angular.json b/samples/charts/category-chart/line-chart-with-legend/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/line-chart-with-legend/angular.json +++ b/samples/charts/category-chart/line-chart-with-legend/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/line-chart-with-legend/package.json b/samples/charts/category-chart/line-chart-with-legend/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/category-chart/line-chart-with-legend/package.json +++ b/samples/charts/category-chart/line-chart-with-legend/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/line-chart-with-legend/sandbox.config.json b/samples/charts/category-chart/line-chart-with-legend/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/line-chart-with-legend/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/line-chart-with-legend/src/app/app.component.html b/samples/charts/category-chart/line-chart-with-legend/src/app.component.html similarity index 100% rename from samples/charts/category-chart/line-chart-with-legend/src/app/app.component.html rename to samples/charts/category-chart/line-chart-with-legend/src/app.component.html diff --git a/samples/charts/category-chart/line-chart-with-legend/src/app/app.component.scss b/samples/charts/category-chart/line-chart-with-legend/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/line-chart-with-legend/src/app/app.component.scss rename to samples/charts/category-chart/line-chart-with-legend/src/app.component.scss diff --git a/samples/charts/category-chart/line-chart-with-legend/src/app/app.component.ts b/samples/charts/category-chart/line-chart-with-legend/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/line-chart-with-legend/src/app/app.component.ts rename to samples/charts/category-chart/line-chart-with-legend/src/app.component.ts diff --git a/samples/charts/category-chart/line-chart-with-legend/src/app/app.module.ts b/samples/charts/category-chart/line-chart-with-legend/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/line-chart-with-legend/src/app/app.module.ts rename to samples/charts/category-chart/line-chart-with-legend/src/app.module.ts diff --git a/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.app.json b/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.base.json b/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.spec.json b/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.worker.json b/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/line-chart-with-legend/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/line-chart-with-legend/src/main.ts b/samples/charts/category-chart/line-chart-with-legend/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/line-chart-with-legend/src/main.ts +++ b/samples/charts/category-chart/line-chart-with-legend/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/line-chart-with-legend/tsconfig.app.json b/samples/charts/category-chart/line-chart-with-legend/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/line-chart-with-legend/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/category-chart/line-chart-with-legend/tsconfig.json b/samples/charts/category-chart/line-chart-with-legend/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/line-chart-with-legend/tsconfig.json +++ b/samples/charts/category-chart/line-chart-with-legend/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/marker-options/.codesandbox/Dockerfile b/samples/charts/category-chart/marker-options/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/marker-options/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/marker-options/.codesandbox/tasks.json b/samples/charts/category-chart/marker-options/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/marker-options/.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/category-chart/marker-options/.stackblitzrc b/samples/charts/category-chart/marker-options/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/marker-options/.stackblitzrc +++ b/samples/charts/category-chart/marker-options/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/marker-options/angular.json b/samples/charts/category-chart/marker-options/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/marker-options/angular.json +++ b/samples/charts/category-chart/marker-options/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/marker-options/package.json b/samples/charts/category-chart/marker-options/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/marker-options/package.json +++ b/samples/charts/category-chart/marker-options/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/marker-options/sandbox.config.json b/samples/charts/category-chart/marker-options/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/marker-options/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/marker-options/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/marker-options/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/marker-options/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/marker-options/src/config/tsconfig.app.json b/samples/charts/category-chart/marker-options/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/marker-options/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/marker-options/src/config/tsconfig.base.json b/samples/charts/category-chart/marker-options/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/marker-options/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/marker-options/src/config/tsconfig.spec.json b/samples/charts/category-chart/marker-options/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/marker-options/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/marker-options/src/config/tsconfig.worker.json b/samples/charts/category-chart/marker-options/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/marker-options/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/marker-options/tsconfig.app.json b/samples/charts/category-chart/marker-options/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/marker-options/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/category-chart/marker-options/tsconfig.json b/samples/charts/category-chart/marker-options/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/marker-options/tsconfig.json +++ b/samples/charts/category-chart/marker-options/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/marker-templates/.codesandbox/Dockerfile b/samples/charts/category-chart/marker-templates/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/marker-templates/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/marker-templates/.codesandbox/tasks.json b/samples/charts/category-chart/marker-templates/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/marker-templates/.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/category-chart/marker-templates/.stackblitzrc b/samples/charts/category-chart/marker-templates/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/marker-templates/.stackblitzrc +++ b/samples/charts/category-chart/marker-templates/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/marker-templates/angular.json b/samples/charts/category-chart/marker-templates/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/marker-templates/angular.json +++ b/samples/charts/category-chart/marker-templates/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/marker-templates/package.json b/samples/charts/category-chart/marker-templates/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/category-chart/marker-templates/package.json +++ b/samples/charts/category-chart/marker-templates/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/marker-templates/sandbox.config.json b/samples/charts/category-chart/marker-templates/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/marker-templates/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/marker-templates/src/app/app.component.html b/samples/charts/category-chart/marker-templates/src/app.component.html similarity index 100% rename from samples/charts/category-chart/marker-templates/src/app/app.component.html rename to samples/charts/category-chart/marker-templates/src/app.component.html diff --git a/samples/charts/category-chart/marker-templates/src/app/app.component.scss b/samples/charts/category-chart/marker-templates/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/marker-templates/src/app/app.component.scss rename to samples/charts/category-chart/marker-templates/src/app.component.scss diff --git a/samples/charts/category-chart/marker-templates/src/app/app.component.ts b/samples/charts/category-chart/marker-templates/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/marker-templates/src/app/app.component.ts rename to samples/charts/category-chart/marker-templates/src/app.component.ts diff --git a/samples/charts/category-chart/marker-templates/src/app/app.module.ts b/samples/charts/category-chart/marker-templates/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/marker-templates/src/app/app.module.ts rename to samples/charts/category-chart/marker-templates/src/app.module.ts diff --git a/samples/charts/category-chart/marker-templates/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/marker-templates/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/marker-templates/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/marker-templates/src/config/tsconfig.app.json b/samples/charts/category-chart/marker-templates/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/marker-templates/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/marker-templates/src/config/tsconfig.base.json b/samples/charts/category-chart/marker-templates/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/marker-templates/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/marker-templates/src/config/tsconfig.spec.json b/samples/charts/category-chart/marker-templates/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/marker-templates/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/marker-templates/src/config/tsconfig.worker.json b/samples/charts/category-chart/marker-templates/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/marker-templates/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/marker-templates/src/main.ts b/samples/charts/category-chart/marker-templates/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/marker-templates/src/main.ts +++ b/samples/charts/category-chart/marker-templates/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/marker-templates/tsconfig.app.json b/samples/charts/category-chart/marker-templates/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/marker-templates/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/category-chart/marker-templates/tsconfig.json b/samples/charts/category-chart/marker-templates/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/marker-templates/tsconfig.json +++ b/samples/charts/category-chart/marker-templates/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/overview/.codesandbox/Dockerfile b/samples/charts/category-chart/overview/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/overview/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/overview/.codesandbox/tasks.json b/samples/charts/category-chart/overview/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/overview/.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/category-chart/overview/.stackblitzrc b/samples/charts/category-chart/overview/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/overview/.stackblitzrc +++ b/samples/charts/category-chart/overview/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/overview/angular.json b/samples/charts/category-chart/overview/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/overview/angular.json +++ b/samples/charts/category-chart/overview/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/overview/package.json b/samples/charts/category-chart/overview/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/overview/package.json +++ b/samples/charts/category-chart/overview/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/overview/sandbox.config.json b/samples/charts/category-chart/overview/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/overview/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/overview/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/overview/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/overview/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/overview/src/config/tsconfig.app.json b/samples/charts/category-chart/overview/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/overview/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/overview/src/config/tsconfig.base.json b/samples/charts/category-chart/overview/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/overview/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/overview/src/config/tsconfig.spec.json b/samples/charts/category-chart/overview/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/overview/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/overview/src/config/tsconfig.worker.json b/samples/charts/category-chart/overview/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/overview/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/overview/tsconfig.app.json b/samples/charts/category-chart/overview/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/overview/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/category-chart/overview/tsconfig.json b/samples/charts/category-chart/overview/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/overview/tsconfig.json +++ b/samples/charts/category-chart/overview/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/point-chart-multiple-sources/.codesandbox/Dockerfile b/samples/charts/category-chart/point-chart-multiple-sources/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/point-chart-multiple-sources/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/point-chart-multiple-sources/.codesandbox/tasks.json b/samples/charts/category-chart/point-chart-multiple-sources/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/point-chart-multiple-sources/.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/category-chart/point-chart-multiple-sources/.stackblitzrc b/samples/charts/category-chart/point-chart-multiple-sources/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/point-chart-multiple-sources/.stackblitzrc +++ b/samples/charts/category-chart/point-chart-multiple-sources/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/point-chart-multiple-sources/angular.json b/samples/charts/category-chart/point-chart-multiple-sources/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/point-chart-multiple-sources/angular.json +++ b/samples/charts/category-chart/point-chart-multiple-sources/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/point-chart-multiple-sources/package.json b/samples/charts/category-chart/point-chart-multiple-sources/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/point-chart-multiple-sources/package.json +++ b/samples/charts/category-chart/point-chart-multiple-sources/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/point-chart-multiple-sources/sandbox.config.json b/samples/charts/category-chart/point-chart-multiple-sources/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/point-chart-multiple-sources/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.app.json b/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.base.json b/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.spec.json b/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.worker.json b/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/point-chart-multiple-sources/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/point-chart-multiple-sources/tsconfig.app.json b/samples/charts/category-chart/point-chart-multiple-sources/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/point-chart-multiple-sources/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/category-chart/point-chart-multiple-sources/tsconfig.json b/samples/charts/category-chart/point-chart-multiple-sources/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/point-chart-multiple-sources/tsconfig.json +++ b/samples/charts/category-chart/point-chart-multiple-sources/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/point-chart-single-source/.codesandbox/Dockerfile b/samples/charts/category-chart/point-chart-single-source/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/point-chart-single-source/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/point-chart-single-source/.codesandbox/tasks.json b/samples/charts/category-chart/point-chart-single-source/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/point-chart-single-source/.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/category-chart/point-chart-single-source/.stackblitzrc b/samples/charts/category-chart/point-chart-single-source/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/point-chart-single-source/.stackblitzrc +++ b/samples/charts/category-chart/point-chart-single-source/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/point-chart-single-source/angular.json b/samples/charts/category-chart/point-chart-single-source/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/point-chart-single-source/angular.json +++ b/samples/charts/category-chart/point-chart-single-source/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/point-chart-single-source/package.json b/samples/charts/category-chart/point-chart-single-source/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/point-chart-single-source/package.json +++ b/samples/charts/category-chart/point-chart-single-source/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/point-chart-single-source/sandbox.config.json b/samples/charts/category-chart/point-chart-single-source/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/point-chart-single-source/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.app.json b/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.base.json b/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.spec.json b/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.worker.json b/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/point-chart-single-source/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/point-chart-single-source/tsconfig.app.json b/samples/charts/category-chart/point-chart-single-source/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/point-chart-single-source/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/category-chart/point-chart-single-source/tsconfig.json b/samples/charts/category-chart/point-chart-single-source/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/point-chart-single-source/tsconfig.json +++ b/samples/charts/category-chart/point-chart-single-source/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/point-chart-styling/.codesandbox/Dockerfile b/samples/charts/category-chart/point-chart-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/point-chart-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/point-chart-styling/.codesandbox/tasks.json b/samples/charts/category-chart/point-chart-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/point-chart-styling/.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/category-chart/point-chart-styling/.stackblitzrc b/samples/charts/category-chart/point-chart-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/point-chart-styling/.stackblitzrc +++ b/samples/charts/category-chart/point-chart-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/point-chart-styling/angular.json b/samples/charts/category-chart/point-chart-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/point-chart-styling/angular.json +++ b/samples/charts/category-chart/point-chart-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/point-chart-styling/package.json b/samples/charts/category-chart/point-chart-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/point-chart-styling/package.json +++ b/samples/charts/category-chart/point-chart-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/point-chart-styling/sandbox.config.json b/samples/charts/category-chart/point-chart-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/point-chart-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/point-chart-styling/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/point-chart-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/point-chart-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.app.json b/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.base.json b/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.spec.json b/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.worker.json b/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/point-chart-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/point-chart-styling/tsconfig.app.json b/samples/charts/category-chart/point-chart-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/point-chart-styling/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/category-chart/point-chart-styling/tsconfig.json b/samples/charts/category-chart/point-chart-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/point-chart-styling/tsconfig.json +++ b/samples/charts/category-chart/point-chart-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/spline-area-multiple-sources/.codesandbox/Dockerfile b/samples/charts/category-chart/spline-area-multiple-sources/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/spline-area-multiple-sources/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/spline-area-multiple-sources/.codesandbox/tasks.json b/samples/charts/category-chart/spline-area-multiple-sources/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/spline-area-multiple-sources/.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/category-chart/spline-area-multiple-sources/.stackblitzrc b/samples/charts/category-chart/spline-area-multiple-sources/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/spline-area-multiple-sources/.stackblitzrc +++ b/samples/charts/category-chart/spline-area-multiple-sources/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-area-multiple-sources/angular.json b/samples/charts/category-chart/spline-area-multiple-sources/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/spline-area-multiple-sources/angular.json +++ b/samples/charts/category-chart/spline-area-multiple-sources/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/spline-area-multiple-sources/package.json b/samples/charts/category-chart/spline-area-multiple-sources/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/spline-area-multiple-sources/package.json +++ b/samples/charts/category-chart/spline-area-multiple-sources/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/spline-area-multiple-sources/sandbox.config.json b/samples/charts/category-chart/spline-area-multiple-sources/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/spline-area-multiple-sources/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.app.json b/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.base.json b/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.spec.json b/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.worker.json b/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/spline-area-multiple-sources/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/spline-area-multiple-sources/tsconfig.app.json b/samples/charts/category-chart/spline-area-multiple-sources/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/spline-area-multiple-sources/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/category-chart/spline-area-multiple-sources/tsconfig.json b/samples/charts/category-chart/spline-area-multiple-sources/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/spline-area-multiple-sources/tsconfig.json +++ b/samples/charts/category-chart/spline-area-multiple-sources/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/spline-area-single-source/.codesandbox/Dockerfile b/samples/charts/category-chart/spline-area-single-source/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/spline-area-single-source/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/spline-area-single-source/.codesandbox/tasks.json b/samples/charts/category-chart/spline-area-single-source/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/spline-area-single-source/.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/category-chart/spline-area-single-source/.stackblitzrc b/samples/charts/category-chart/spline-area-single-source/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/spline-area-single-source/.stackblitzrc +++ b/samples/charts/category-chart/spline-area-single-source/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-area-single-source/angular.json b/samples/charts/category-chart/spline-area-single-source/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/spline-area-single-source/angular.json +++ b/samples/charts/category-chart/spline-area-single-source/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/spline-area-single-source/package.json b/samples/charts/category-chart/spline-area-single-source/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/spline-area-single-source/package.json +++ b/samples/charts/category-chart/spline-area-single-source/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/spline-area-single-source/sandbox.config.json b/samples/charts/category-chart/spline-area-single-source/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/spline-area-single-source/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.app.json b/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.base.json b/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.spec.json b/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.worker.json b/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/spline-area-single-source/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/spline-area-single-source/tsconfig.app.json b/samples/charts/category-chart/spline-area-single-source/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/spline-area-single-source/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/category-chart/spline-area-single-source/tsconfig.json b/samples/charts/category-chart/spline-area-single-source/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/spline-area-single-source/tsconfig.json +++ b/samples/charts/category-chart/spline-area-single-source/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/spline-area-styling/.codesandbox/Dockerfile b/samples/charts/category-chart/spline-area-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/spline-area-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/spline-area-styling/.codesandbox/tasks.json b/samples/charts/category-chart/spline-area-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/spline-area-styling/.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/category-chart/spline-area-styling/.stackblitzrc b/samples/charts/category-chart/spline-area-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/spline-area-styling/.stackblitzrc +++ b/samples/charts/category-chart/spline-area-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-area-styling/angular.json b/samples/charts/category-chart/spline-area-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/spline-area-styling/angular.json +++ b/samples/charts/category-chart/spline-area-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/spline-area-styling/package.json b/samples/charts/category-chart/spline-area-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/spline-area-styling/package.json +++ b/samples/charts/category-chart/spline-area-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/spline-area-styling/sandbox.config.json b/samples/charts/category-chart/spline-area-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/spline-area-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-area-styling/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/spline-area-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/spline-area-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.app.json b/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.base.json b/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.spec.json b/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.worker.json b/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/spline-area-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/spline-area-styling/tsconfig.app.json b/samples/charts/category-chart/spline-area-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/spline-area-styling/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/category-chart/spline-area-styling/tsconfig.json b/samples/charts/category-chart/spline-area-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/spline-area-styling/tsconfig.json +++ b/samples/charts/category-chart/spline-area-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/spline-multiple-sources/.codesandbox/Dockerfile b/samples/charts/category-chart/spline-multiple-sources/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/spline-multiple-sources/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/spline-multiple-sources/.codesandbox/tasks.json b/samples/charts/category-chart/spline-multiple-sources/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/spline-multiple-sources/.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/category-chart/spline-multiple-sources/.stackblitzrc b/samples/charts/category-chart/spline-multiple-sources/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/spline-multiple-sources/.stackblitzrc +++ b/samples/charts/category-chart/spline-multiple-sources/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-multiple-sources/angular.json b/samples/charts/category-chart/spline-multiple-sources/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/spline-multiple-sources/angular.json +++ b/samples/charts/category-chart/spline-multiple-sources/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/spline-multiple-sources/package.json b/samples/charts/category-chart/spline-multiple-sources/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/spline-multiple-sources/package.json +++ b/samples/charts/category-chart/spline-multiple-sources/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/spline-multiple-sources/sandbox.config.json b/samples/charts/category-chart/spline-multiple-sources/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/spline-multiple-sources/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.app.json b/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.base.json b/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.spec.json b/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.worker.json b/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/spline-multiple-sources/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/spline-multiple-sources/tsconfig.app.json b/samples/charts/category-chart/spline-multiple-sources/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/spline-multiple-sources/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/category-chart/spline-multiple-sources/tsconfig.json b/samples/charts/category-chart/spline-multiple-sources/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/spline-multiple-sources/tsconfig.json +++ b/samples/charts/category-chart/spline-multiple-sources/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/spline-single-source/.codesandbox/Dockerfile b/samples/charts/category-chart/spline-single-source/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/spline-single-source/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/spline-single-source/.codesandbox/tasks.json b/samples/charts/category-chart/spline-single-source/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/spline-single-source/.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/category-chart/spline-single-source/.stackblitzrc b/samples/charts/category-chart/spline-single-source/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/spline-single-source/.stackblitzrc +++ b/samples/charts/category-chart/spline-single-source/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-single-source/angular.json b/samples/charts/category-chart/spline-single-source/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/spline-single-source/angular.json +++ b/samples/charts/category-chart/spline-single-source/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/spline-single-source/package.json b/samples/charts/category-chart/spline-single-source/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/spline-single-source/package.json +++ b/samples/charts/category-chart/spline-single-source/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/spline-single-source/sandbox.config.json b/samples/charts/category-chart/spline-single-source/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/spline-single-source/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-single-source/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/spline-single-source/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/spline-single-source/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/spline-single-source/src/config/tsconfig.app.json b/samples/charts/category-chart/spline-single-source/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/spline-single-source/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/spline-single-source/src/config/tsconfig.base.json b/samples/charts/category-chart/spline-single-source/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/spline-single-source/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/spline-single-source/src/config/tsconfig.spec.json b/samples/charts/category-chart/spline-single-source/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/spline-single-source/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/spline-single-source/src/config/tsconfig.worker.json b/samples/charts/category-chart/spline-single-source/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/spline-single-source/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/spline-single-source/tsconfig.app.json b/samples/charts/category-chart/spline-single-source/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/spline-single-source/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/category-chart/spline-single-source/tsconfig.json b/samples/charts/category-chart/spline-single-source/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/spline-single-source/tsconfig.json +++ b/samples/charts/category-chart/spline-single-source/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/spline-styling/.codesandbox/Dockerfile b/samples/charts/category-chart/spline-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/spline-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/spline-styling/.codesandbox/tasks.json b/samples/charts/category-chart/spline-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/spline-styling/.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/category-chart/spline-styling/.stackblitzrc b/samples/charts/category-chart/spline-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/spline-styling/.stackblitzrc +++ b/samples/charts/category-chart/spline-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-styling/angular.json b/samples/charts/category-chart/spline-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/spline-styling/angular.json +++ b/samples/charts/category-chart/spline-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/spline-styling/package.json b/samples/charts/category-chart/spline-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/spline-styling/package.json +++ b/samples/charts/category-chart/spline-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/spline-styling/sandbox.config.json b/samples/charts/category-chart/spline-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/spline-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/spline-styling/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/spline-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/spline-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/spline-styling/src/config/tsconfig.app.json b/samples/charts/category-chart/spline-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/spline-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/spline-styling/src/config/tsconfig.base.json b/samples/charts/category-chart/spline-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/spline-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/spline-styling/src/config/tsconfig.spec.json b/samples/charts/category-chart/spline-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/spline-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/spline-styling/src/config/tsconfig.worker.json b/samples/charts/category-chart/spline-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/spline-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/spline-styling/tsconfig.app.json b/samples/charts/category-chart/spline-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/spline-styling/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/category-chart/spline-styling/tsconfig.json b/samples/charts/category-chart/spline-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/spline-styling/tsconfig.json +++ b/samples/charts/category-chart/spline-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/stack-columns/.codesandbox/Dockerfile b/samples/charts/category-chart/stack-columns/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/stack-columns/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/stack-columns/.codesandbox/tasks.json b/samples/charts/category-chart/stack-columns/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/stack-columns/.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/category-chart/stack-columns/.stackblitzrc b/samples/charts/category-chart/stack-columns/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/stack-columns/.stackblitzrc +++ b/samples/charts/category-chart/stack-columns/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/stack-columns/angular.json b/samples/charts/category-chart/stack-columns/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/stack-columns/angular.json +++ b/samples/charts/category-chart/stack-columns/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/stack-columns/package.json b/samples/charts/category-chart/stack-columns/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/category-chart/stack-columns/package.json +++ b/samples/charts/category-chart/stack-columns/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/stack-columns/sandbox.config.json b/samples/charts/category-chart/stack-columns/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/stack-columns/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/stack-columns/src/app/app.component.html b/samples/charts/category-chart/stack-columns/src/app.component.html similarity index 100% rename from samples/charts/category-chart/stack-columns/src/app/app.component.html rename to samples/charts/category-chart/stack-columns/src/app.component.html diff --git a/samples/charts/category-chart/stack-columns/src/app/app.component.scss b/samples/charts/category-chart/stack-columns/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/stack-columns/src/app/app.component.scss rename to samples/charts/category-chart/stack-columns/src/app.component.scss diff --git a/samples/charts/category-chart/stack-columns/src/app/app.component.ts b/samples/charts/category-chart/stack-columns/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/stack-columns/src/app/app.component.ts rename to samples/charts/category-chart/stack-columns/src/app.component.ts diff --git a/samples/charts/category-chart/stack-columns/src/app/app.module.ts b/samples/charts/category-chart/stack-columns/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/stack-columns/src/app/app.module.ts rename to samples/charts/category-chart/stack-columns/src/app.module.ts diff --git a/samples/charts/category-chart/stack-columns/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/stack-columns/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/stack-columns/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/stack-columns/src/config/tsconfig.app.json b/samples/charts/category-chart/stack-columns/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/stack-columns/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/stack-columns/src/config/tsconfig.base.json b/samples/charts/category-chart/stack-columns/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/stack-columns/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/stack-columns/src/config/tsconfig.spec.json b/samples/charts/category-chart/stack-columns/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/stack-columns/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/stack-columns/src/config/tsconfig.worker.json b/samples/charts/category-chart/stack-columns/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/stack-columns/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/stack-columns/src/main.ts b/samples/charts/category-chart/stack-columns/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/stack-columns/src/main.ts +++ b/samples/charts/category-chart/stack-columns/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/stack-columns/tsconfig.app.json b/samples/charts/category-chart/stack-columns/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/stack-columns/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/category-chart/stack-columns/tsconfig.json b/samples/charts/category-chart/stack-columns/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/stack-columns/tsconfig.json +++ b/samples/charts/category-chart/stack-columns/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/step-area-multiple-sources/.codesandbox/Dockerfile b/samples/charts/category-chart/step-area-multiple-sources/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/step-area-multiple-sources/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/step-area-multiple-sources/.codesandbox/tasks.json b/samples/charts/category-chart/step-area-multiple-sources/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/step-area-multiple-sources/.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/category-chart/step-area-multiple-sources/.stackblitzrc b/samples/charts/category-chart/step-area-multiple-sources/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/step-area-multiple-sources/.stackblitzrc +++ b/samples/charts/category-chart/step-area-multiple-sources/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/step-area-multiple-sources/angular.json b/samples/charts/category-chart/step-area-multiple-sources/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/step-area-multiple-sources/angular.json +++ b/samples/charts/category-chart/step-area-multiple-sources/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/step-area-multiple-sources/package.json b/samples/charts/category-chart/step-area-multiple-sources/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/step-area-multiple-sources/package.json +++ b/samples/charts/category-chart/step-area-multiple-sources/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/step-area-multiple-sources/sandbox.config.json b/samples/charts/category-chart/step-area-multiple-sources/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/step-area-multiple-sources/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.app.json b/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.base.json b/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.spec.json b/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.worker.json b/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/step-area-multiple-sources/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/step-area-multiple-sources/tsconfig.app.json b/samples/charts/category-chart/step-area-multiple-sources/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/step-area-multiple-sources/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/category-chart/step-area-multiple-sources/tsconfig.json b/samples/charts/category-chart/step-area-multiple-sources/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/step-area-multiple-sources/tsconfig.json +++ b/samples/charts/category-chart/step-area-multiple-sources/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/step-area-single-source/.codesandbox/Dockerfile b/samples/charts/category-chart/step-area-single-source/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/step-area-single-source/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/step-area-single-source/.codesandbox/tasks.json b/samples/charts/category-chart/step-area-single-source/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/step-area-single-source/.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/category-chart/step-area-single-source/.stackblitzrc b/samples/charts/category-chart/step-area-single-source/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/step-area-single-source/.stackblitzrc +++ b/samples/charts/category-chart/step-area-single-source/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/step-area-single-source/angular.json b/samples/charts/category-chart/step-area-single-source/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/step-area-single-source/angular.json +++ b/samples/charts/category-chart/step-area-single-source/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/step-area-single-source/package.json b/samples/charts/category-chart/step-area-single-source/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/step-area-single-source/package.json +++ b/samples/charts/category-chart/step-area-single-source/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/step-area-single-source/sandbox.config.json b/samples/charts/category-chart/step-area-single-source/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/step-area-single-source/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/step-area-single-source/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/step-area-single-source/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/step-area-single-source/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.app.json b/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.base.json b/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.spec.json b/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.worker.json b/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/step-area-single-source/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/step-area-single-source/tsconfig.app.json b/samples/charts/category-chart/step-area-single-source/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/step-area-single-source/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/category-chart/step-area-single-source/tsconfig.json b/samples/charts/category-chart/step-area-single-source/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/step-area-single-source/tsconfig.json +++ b/samples/charts/category-chart/step-area-single-source/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/step-area-styling/.codesandbox/Dockerfile b/samples/charts/category-chart/step-area-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/step-area-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/step-area-styling/.codesandbox/tasks.json b/samples/charts/category-chart/step-area-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/step-area-styling/.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/category-chart/step-area-styling/.stackblitzrc b/samples/charts/category-chart/step-area-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/step-area-styling/.stackblitzrc +++ b/samples/charts/category-chart/step-area-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/step-area-styling/angular.json b/samples/charts/category-chart/step-area-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/step-area-styling/angular.json +++ b/samples/charts/category-chart/step-area-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/step-area-styling/package.json b/samples/charts/category-chart/step-area-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/step-area-styling/package.json +++ b/samples/charts/category-chart/step-area-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/step-area-styling/sandbox.config.json b/samples/charts/category-chart/step-area-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/step-area-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/step-area-styling/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/step-area-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/step-area-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/step-area-styling/src/config/tsconfig.app.json b/samples/charts/category-chart/step-area-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/step-area-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/step-area-styling/src/config/tsconfig.base.json b/samples/charts/category-chart/step-area-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/step-area-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/step-area-styling/src/config/tsconfig.spec.json b/samples/charts/category-chart/step-area-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/step-area-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/step-area-styling/src/config/tsconfig.worker.json b/samples/charts/category-chart/step-area-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/step-area-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/step-area-styling/tsconfig.app.json b/samples/charts/category-chart/step-area-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/step-area-styling/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/category-chart/step-area-styling/tsconfig.json b/samples/charts/category-chart/step-area-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/step-area-styling/tsconfig.json +++ b/samples/charts/category-chart/step-area-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/step-line-multiple-sources/.codesandbox/Dockerfile b/samples/charts/category-chart/step-line-multiple-sources/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/step-line-multiple-sources/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/step-line-multiple-sources/.codesandbox/tasks.json b/samples/charts/category-chart/step-line-multiple-sources/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/step-line-multiple-sources/.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/category-chart/step-line-multiple-sources/.stackblitzrc b/samples/charts/category-chart/step-line-multiple-sources/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/step-line-multiple-sources/.stackblitzrc +++ b/samples/charts/category-chart/step-line-multiple-sources/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/step-line-multiple-sources/angular.json b/samples/charts/category-chart/step-line-multiple-sources/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/step-line-multiple-sources/angular.json +++ b/samples/charts/category-chart/step-line-multiple-sources/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/step-line-multiple-sources/package.json b/samples/charts/category-chart/step-line-multiple-sources/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/step-line-multiple-sources/package.json +++ b/samples/charts/category-chart/step-line-multiple-sources/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/step-line-multiple-sources/sandbox.config.json b/samples/charts/category-chart/step-line-multiple-sources/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/step-line-multiple-sources/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.app.json b/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.base.json b/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.spec.json b/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.worker.json b/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/step-line-multiple-sources/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/step-line-multiple-sources/tsconfig.app.json b/samples/charts/category-chart/step-line-multiple-sources/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/step-line-multiple-sources/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/category-chart/step-line-multiple-sources/tsconfig.json b/samples/charts/category-chart/step-line-multiple-sources/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/step-line-multiple-sources/tsconfig.json +++ b/samples/charts/category-chart/step-line-multiple-sources/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/step-line-single-source/.codesandbox/Dockerfile b/samples/charts/category-chart/step-line-single-source/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/step-line-single-source/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/step-line-single-source/.codesandbox/tasks.json b/samples/charts/category-chart/step-line-single-source/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/step-line-single-source/.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/category-chart/step-line-single-source/.stackblitzrc b/samples/charts/category-chart/step-line-single-source/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/step-line-single-source/.stackblitzrc +++ b/samples/charts/category-chart/step-line-single-source/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/step-line-single-source/angular.json b/samples/charts/category-chart/step-line-single-source/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/step-line-single-source/angular.json +++ b/samples/charts/category-chart/step-line-single-source/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/step-line-single-source/package.json b/samples/charts/category-chart/step-line-single-source/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/step-line-single-source/package.json +++ b/samples/charts/category-chart/step-line-single-source/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/step-line-single-source/sandbox.config.json b/samples/charts/category-chart/step-line-single-source/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/step-line-single-source/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/step-line-single-source/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/step-line-single-source/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/step-line-single-source/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.app.json b/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.base.json b/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.spec.json b/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.worker.json b/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/step-line-single-source/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/step-line-single-source/tsconfig.app.json b/samples/charts/category-chart/step-line-single-source/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/step-line-single-source/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/category-chart/step-line-single-source/tsconfig.json b/samples/charts/category-chart/step-line-single-source/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/step-line-single-source/tsconfig.json +++ b/samples/charts/category-chart/step-line-single-source/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/step-line-styling/.codesandbox/Dockerfile b/samples/charts/category-chart/step-line-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/step-line-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/step-line-styling/.codesandbox/tasks.json b/samples/charts/category-chart/step-line-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/step-line-styling/.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/category-chart/step-line-styling/.stackblitzrc b/samples/charts/category-chart/step-line-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/step-line-styling/.stackblitzrc +++ b/samples/charts/category-chart/step-line-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/step-line-styling/angular.json b/samples/charts/category-chart/step-line-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/step-line-styling/angular.json +++ b/samples/charts/category-chart/step-line-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/step-line-styling/package.json b/samples/charts/category-chart/step-line-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/category-chart/step-line-styling/package.json +++ b/samples/charts/category-chart/step-line-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/step-line-styling/sandbox.config.json b/samples/charts/category-chart/step-line-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/step-line-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/step-line-styling/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/step-line-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/step-line-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/step-line-styling/src/config/tsconfig.app.json b/samples/charts/category-chart/step-line-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/step-line-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/step-line-styling/src/config/tsconfig.base.json b/samples/charts/category-chart/step-line-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/step-line-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/step-line-styling/src/config/tsconfig.spec.json b/samples/charts/category-chart/step-line-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/step-line-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/step-line-styling/src/config/tsconfig.worker.json b/samples/charts/category-chart/step-line-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/step-line-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/step-line-styling/tsconfig.app.json b/samples/charts/category-chart/step-line-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/step-line-styling/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/category-chart/step-line-styling/tsconfig.json b/samples/charts/category-chart/step-line-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/step-line-styling/tsconfig.json +++ b/samples/charts/category-chart/step-line-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/tooltip-template/.codesandbox/Dockerfile b/samples/charts/category-chart/tooltip-template/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/tooltip-template/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/tooltip-template/.codesandbox/tasks.json b/samples/charts/category-chart/tooltip-template/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/tooltip-template/.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/category-chart/tooltip-template/.stackblitzrc b/samples/charts/category-chart/tooltip-template/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/tooltip-template/.stackblitzrc +++ b/samples/charts/category-chart/tooltip-template/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/tooltip-template/angular.json b/samples/charts/category-chart/tooltip-template/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/tooltip-template/angular.json +++ b/samples/charts/category-chart/tooltip-template/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/tooltip-template/package.json b/samples/charts/category-chart/tooltip-template/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/category-chart/tooltip-template/package.json +++ b/samples/charts/category-chart/tooltip-template/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/tooltip-template/sandbox.config.json b/samples/charts/category-chart/tooltip-template/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/tooltip-template/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/tooltip-template/src/app/app.component.html b/samples/charts/category-chart/tooltip-template/src/app.component.html similarity index 100% rename from samples/charts/category-chart/tooltip-template/src/app/app.component.html rename to samples/charts/category-chart/tooltip-template/src/app.component.html diff --git a/samples/charts/category-chart/tooltip-template/src/app/app.component.scss b/samples/charts/category-chart/tooltip-template/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/tooltip-template/src/app/app.component.scss rename to samples/charts/category-chart/tooltip-template/src/app.component.scss diff --git a/samples/charts/category-chart/tooltip-template/src/app/app.component.ts b/samples/charts/category-chart/tooltip-template/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/tooltip-template/src/app/app.component.ts rename to samples/charts/category-chart/tooltip-template/src/app.component.ts diff --git a/samples/charts/category-chart/tooltip-template/src/app/app.module.ts b/samples/charts/category-chart/tooltip-template/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/tooltip-template/src/app/app.module.ts rename to samples/charts/category-chart/tooltip-template/src/app.module.ts diff --git a/samples/charts/category-chart/tooltip-template/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/tooltip-template/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/tooltip-template/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/tooltip-template/src/config/tsconfig.app.json b/samples/charts/category-chart/tooltip-template/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/tooltip-template/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/tooltip-template/src/config/tsconfig.base.json b/samples/charts/category-chart/tooltip-template/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/tooltip-template/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/tooltip-template/src/config/tsconfig.spec.json b/samples/charts/category-chart/tooltip-template/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/tooltip-template/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/tooltip-template/src/config/tsconfig.worker.json b/samples/charts/category-chart/tooltip-template/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/tooltip-template/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/tooltip-template/src/main.ts b/samples/charts/category-chart/tooltip-template/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/tooltip-template/src/main.ts +++ b/samples/charts/category-chart/tooltip-template/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/tooltip-template/tsconfig.app.json b/samples/charts/category-chart/tooltip-template/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/tooltip-template/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/category-chart/tooltip-template/tsconfig.json b/samples/charts/category-chart/tooltip-template/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/tooltip-template/tsconfig.json +++ b/samples/charts/category-chart/tooltip-template/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/tooltip-types/.codesandbox/Dockerfile b/samples/charts/category-chart/tooltip-types/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/tooltip-types/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/tooltip-types/.codesandbox/tasks.json b/samples/charts/category-chart/tooltip-types/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/tooltip-types/.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/category-chart/tooltip-types/.stackblitzrc b/samples/charts/category-chart/tooltip-types/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/tooltip-types/.stackblitzrc +++ b/samples/charts/category-chart/tooltip-types/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/tooltip-types/angular.json b/samples/charts/category-chart/tooltip-types/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/tooltip-types/angular.json +++ b/samples/charts/category-chart/tooltip-types/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/tooltip-types/package.json b/samples/charts/category-chart/tooltip-types/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/category-chart/tooltip-types/package.json +++ b/samples/charts/category-chart/tooltip-types/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/tooltip-types/sandbox.config.json b/samples/charts/category-chart/tooltip-types/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/tooltip-types/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/tooltip-types/src/app/app.component.html b/samples/charts/category-chart/tooltip-types/src/app.component.html similarity index 100% rename from samples/charts/category-chart/tooltip-types/src/app/app.component.html rename to samples/charts/category-chart/tooltip-types/src/app.component.html diff --git a/samples/charts/category-chart/tooltip-types/src/app/app.component.scss b/samples/charts/category-chart/tooltip-types/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/tooltip-types/src/app/app.component.scss rename to samples/charts/category-chart/tooltip-types/src/app.component.scss diff --git a/samples/charts/category-chart/tooltip-types/src/app/app.component.ts b/samples/charts/category-chart/tooltip-types/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/tooltip-types/src/app/app.component.ts rename to samples/charts/category-chart/tooltip-types/src/app.component.ts diff --git a/samples/charts/category-chart/tooltip-types/src/app/app.module.ts b/samples/charts/category-chart/tooltip-types/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/tooltip-types/src/app/app.module.ts rename to samples/charts/category-chart/tooltip-types/src/app.module.ts diff --git a/samples/charts/category-chart/tooltip-types/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/tooltip-types/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/tooltip-types/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/tooltip-types/src/config/tsconfig.app.json b/samples/charts/category-chart/tooltip-types/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/tooltip-types/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/tooltip-types/src/config/tsconfig.base.json b/samples/charts/category-chart/tooltip-types/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/tooltip-types/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/tooltip-types/src/config/tsconfig.spec.json b/samples/charts/category-chart/tooltip-types/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/tooltip-types/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/tooltip-types/src/config/tsconfig.worker.json b/samples/charts/category-chart/tooltip-types/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/tooltip-types/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/tooltip-types/src/main.ts b/samples/charts/category-chart/tooltip-types/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/tooltip-types/src/main.ts +++ b/samples/charts/category-chart/tooltip-types/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/tooltip-types/tsconfig.app.json b/samples/charts/category-chart/tooltip-types/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/tooltip-types/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/category-chart/tooltip-types/tsconfig.json b/samples/charts/category-chart/tooltip-types/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/tooltip-types/tsconfig.json +++ b/samples/charts/category-chart/tooltip-types/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/trendline/.codesandbox/Dockerfile b/samples/charts/category-chart/trendline/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/trendline/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/trendline/.codesandbox/tasks.json b/samples/charts/category-chart/trendline/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/trendline/.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/category-chart/trendline/.stackblitzrc b/samples/charts/category-chart/trendline/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/trendline/.stackblitzrc +++ b/samples/charts/category-chart/trendline/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/trendline/angular.json b/samples/charts/category-chart/trendline/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/category-chart/trendline/angular.json +++ b/samples/charts/category-chart/trendline/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/trendline/package.json b/samples/charts/category-chart/trendline/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/category-chart/trendline/package.json +++ b/samples/charts/category-chart/trendline/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/trendline/sandbox.config.json b/samples/charts/category-chart/trendline/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/category-chart/trendline/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/trendline/src/app/app.component.html b/samples/charts/category-chart/trendline/src/app.component.html similarity index 100% rename from samples/charts/category-chart/trendline/src/app/app.component.html rename to samples/charts/category-chart/trendline/src/app.component.html diff --git a/samples/charts/category-chart/trendline/src/app/app.component.scss b/samples/charts/category-chart/trendline/src/app.component.scss similarity index 100% rename from samples/charts/category-chart/trendline/src/app/app.component.scss rename to samples/charts/category-chart/trendline/src/app.component.scss diff --git a/samples/charts/category-chart/trendline/src/app/app.component.ts b/samples/charts/category-chart/trendline/src/app.component.ts similarity index 100% rename from samples/charts/category-chart/trendline/src/app/app.component.ts rename to samples/charts/category-chart/trendline/src/app.component.ts diff --git a/samples/charts/category-chart/trendline/src/app/app.module.ts b/samples/charts/category-chart/trendline/src/app.module.ts similarity index 100% rename from samples/charts/category-chart/trendline/src/app/app.module.ts rename to samples/charts/category-chart/trendline/src/app.module.ts diff --git a/samples/charts/category-chart/trendline/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/trendline/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/trendline/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/trendline/src/config/tsconfig.app.json b/samples/charts/category-chart/trendline/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/trendline/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/trendline/src/config/tsconfig.base.json b/samples/charts/category-chart/trendline/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/trendline/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/trendline/src/config/tsconfig.spec.json b/samples/charts/category-chart/trendline/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/trendline/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/trendline/src/config/tsconfig.worker.json b/samples/charts/category-chart/trendline/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/trendline/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/trendline/src/main.ts b/samples/charts/category-chart/trendline/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/category-chart/trendline/src/main.ts +++ b/samples/charts/category-chart/trendline/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/category-chart/trendline/tsconfig.app.json b/samples/charts/category-chart/trendline/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/trendline/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/category-chart/trendline/tsconfig.json b/samples/charts/category-chart/trendline/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/trendline/tsconfig.json +++ b/samples/charts/category-chart/trendline/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/category-chart/value-lines/.codesandbox/Dockerfile b/samples/charts/category-chart/value-lines/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/category-chart/value-lines/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/category-chart/value-lines/.codesandbox/tasks.json b/samples/charts/category-chart/value-lines/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/category-chart/value-lines/.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/category-chart/value-lines/.stackblitzrc b/samples/charts/category-chart/value-lines/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/category-chart/value-lines/.stackblitzrc +++ b/samples/charts/category-chart/value-lines/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/category-chart/value-lines/angular.json b/samples/charts/category-chart/value-lines/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/category-chart/value-lines/angular.json +++ b/samples/charts/category-chart/value-lines/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/category-chart/value-lines/package.json b/samples/charts/category-chart/value-lines/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/category-chart/value-lines/package.json +++ b/samples/charts/category-chart/value-lines/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/category-chart/value-lines/sandbox.config.json b/samples/charts/category-chart/value-lines/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/category-chart/value-lines/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/category-chart/value-lines/src/config/tsconfig-es5.app.json b/samples/charts/category-chart/value-lines/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/category-chart/value-lines/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/category-chart/value-lines/src/config/tsconfig.app.json b/samples/charts/category-chart/value-lines/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/category-chart/value-lines/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/category-chart/value-lines/src/config/tsconfig.base.json b/samples/charts/category-chart/value-lines/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/category-chart/value-lines/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/category-chart/value-lines/src/config/tsconfig.spec.json b/samples/charts/category-chart/value-lines/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/category-chart/value-lines/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/category-chart/value-lines/src/config/tsconfig.worker.json b/samples/charts/category-chart/value-lines/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/category-chart/value-lines/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/category-chart/value-lines/tsconfig.app.json b/samples/charts/category-chart/value-lines/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/category-chart/value-lines/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/category-chart/value-lines/tsconfig.json b/samples/charts/category-chart/value-lines/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/category-chart/value-lines/tsconfig.json +++ b/samples/charts/category-chart/value-lines/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/annotations-custom/.codesandbox/Dockerfile b/samples/charts/data-chart/annotations-custom/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/annotations-custom/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/annotations-custom/.codesandbox/tasks.json b/samples/charts/data-chart/annotations-custom/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/annotations-custom/.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/data-chart/annotations-custom/.stackblitzrc b/samples/charts/data-chart/annotations-custom/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/annotations-custom/.stackblitzrc +++ b/samples/charts/data-chart/annotations-custom/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/annotations-custom/angular.json b/samples/charts/data-chart/annotations-custom/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/annotations-custom/angular.json +++ b/samples/charts/data-chart/annotations-custom/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/annotations-custom/package.json b/samples/charts/data-chart/annotations-custom/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/annotations-custom/package.json +++ b/samples/charts/data-chart/annotations-custom/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/annotations-custom/sandbox.config.json b/samples/charts/data-chart/annotations-custom/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/annotations-custom/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/annotations-custom/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/annotations-custom/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/annotations-custom/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/annotations-custom/src/config/tsconfig.app.json b/samples/charts/data-chart/annotations-custom/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/annotations-custom/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/annotations-custom/src/config/tsconfig.base.json b/samples/charts/data-chart/annotations-custom/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/annotations-custom/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/annotations-custom/src/config/tsconfig.spec.json b/samples/charts/data-chart/annotations-custom/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/annotations-custom/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/annotations-custom/src/config/tsconfig.worker.json b/samples/charts/data-chart/annotations-custom/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/annotations-custom/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/annotations-custom/tsconfig.app.json b/samples/charts/data-chart/annotations-custom/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/annotations-custom/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/data-chart/annotations-custom/tsconfig.json b/samples/charts/data-chart/annotations-custom/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/annotations-custom/tsconfig.json +++ b/samples/charts/data-chart/annotations-custom/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/axis-annotations-corner-radius/.codesandbox/Dockerfile b/samples/charts/data-chart/axis-annotations-corner-radius/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/axis-annotations-corner-radius/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/axis-annotations-corner-radius/.codesandbox/tasks.json b/samples/charts/data-chart/axis-annotations-corner-radius/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/axis-annotations-corner-radius/.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/data-chart/axis-annotations-corner-radius/.stackblitzrc b/samples/charts/data-chart/axis-annotations-corner-radius/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/axis-annotations-corner-radius/.stackblitzrc +++ b/samples/charts/data-chart/axis-annotations-corner-radius/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-annotations-corner-radius/angular.json b/samples/charts/data-chart/axis-annotations-corner-radius/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/axis-annotations-corner-radius/angular.json +++ b/samples/charts/data-chart/axis-annotations-corner-radius/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/axis-annotations-corner-radius/package.json b/samples/charts/data-chart/axis-annotations-corner-radius/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/axis-annotations-corner-radius/package.json +++ b/samples/charts/data-chart/axis-annotations-corner-radius/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/axis-annotations-corner-radius/sandbox.config.json b/samples/charts/data-chart/axis-annotations-corner-radius/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/axis-annotations-corner-radius/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.app.json b/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.base.json b/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.spec.json b/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.worker.json b/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/axis-annotations-corner-radius/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/axis-annotations-corner-radius/tsconfig.app.json b/samples/charts/data-chart/axis-annotations-corner-radius/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/axis-annotations-corner-radius/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/data-chart/axis-annotations-corner-radius/tsconfig.json b/samples/charts/data-chart/axis-annotations-corner-radius/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/axis-annotations-corner-radius/tsconfig.json +++ b/samples/charts/data-chart/axis-annotations-corner-radius/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/axis-annotations/.codesandbox/Dockerfile b/samples/charts/data-chart/axis-annotations/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/axis-annotations/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/axis-annotations/.codesandbox/tasks.json b/samples/charts/data-chart/axis-annotations/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/axis-annotations/.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/data-chart/axis-annotations/.stackblitzrc b/samples/charts/data-chart/axis-annotations/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/axis-annotations/.stackblitzrc +++ b/samples/charts/data-chart/axis-annotations/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-annotations/angular.json b/samples/charts/data-chart/axis-annotations/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/axis-annotations/angular.json +++ b/samples/charts/data-chart/axis-annotations/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/axis-annotations/package.json b/samples/charts/data-chart/axis-annotations/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/axis-annotations/package.json +++ b/samples/charts/data-chart/axis-annotations/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/axis-annotations/sandbox.config.json b/samples/charts/data-chart/axis-annotations/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/axis-annotations/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-annotations/src/app/app.component.html b/samples/charts/data-chart/axis-annotations/src/app.component.html similarity index 100% rename from samples/charts/data-chart/axis-annotations/src/app/app.component.html rename to samples/charts/data-chart/axis-annotations/src/app.component.html diff --git a/samples/charts/data-chart/axis-annotations/src/app/app.component.scss b/samples/charts/data-chart/axis-annotations/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/axis-annotations/src/app/app.component.scss rename to samples/charts/data-chart/axis-annotations/src/app.component.scss diff --git a/samples/charts/data-chart/axis-annotations/src/app/app.component.ts b/samples/charts/data-chart/axis-annotations/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/axis-annotations/src/app/app.component.ts rename to samples/charts/data-chart/axis-annotations/src/app.component.ts diff --git a/samples/charts/data-chart/axis-annotations/src/app/app.module.ts b/samples/charts/data-chart/axis-annotations/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/axis-annotations/src/app/app.module.ts rename to samples/charts/data-chart/axis-annotations/src/app.module.ts diff --git a/samples/charts/data-chart/axis-annotations/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/axis-annotations/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/axis-annotations/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/axis-annotations/src/config/tsconfig.app.json b/samples/charts/data-chart/axis-annotations/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/axis-annotations/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/axis-annotations/src/config/tsconfig.base.json b/samples/charts/data-chart/axis-annotations/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/axis-annotations/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/axis-annotations/src/config/tsconfig.spec.json b/samples/charts/data-chart/axis-annotations/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/axis-annotations/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/axis-annotations/src/config/tsconfig.worker.json b/samples/charts/data-chart/axis-annotations/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/axis-annotations/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/axis-annotations/src/main.ts b/samples/charts/data-chart/axis-annotations/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/axis-annotations/src/main.ts +++ b/samples/charts/data-chart/axis-annotations/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/axis-annotations/tsconfig.app.json b/samples/charts/data-chart/axis-annotations/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/axis-annotations/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/data-chart/axis-annotations/tsconfig.json b/samples/charts/data-chart/axis-annotations/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/axis-annotations/tsconfig.json +++ b/samples/charts/data-chart/axis-annotations/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/axis-crossing/.codesandbox/Dockerfile b/samples/charts/data-chart/axis-crossing/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/axis-crossing/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/axis-crossing/.codesandbox/tasks.json b/samples/charts/data-chart/axis-crossing/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/axis-crossing/.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/data-chart/axis-crossing/.stackblitzrc b/samples/charts/data-chart/axis-crossing/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/axis-crossing/.stackblitzrc +++ b/samples/charts/data-chart/axis-crossing/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-crossing/angular.json b/samples/charts/data-chart/axis-crossing/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/axis-crossing/angular.json +++ b/samples/charts/data-chart/axis-crossing/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/axis-crossing/package.json b/samples/charts/data-chart/axis-crossing/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/axis-crossing/package.json +++ b/samples/charts/data-chart/axis-crossing/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/axis-crossing/sandbox.config.json b/samples/charts/data-chart/axis-crossing/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/axis-crossing/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-crossing/src/app/app.component.html b/samples/charts/data-chart/axis-crossing/src/app.component.html similarity index 100% rename from samples/charts/data-chart/axis-crossing/src/app/app.component.html rename to samples/charts/data-chart/axis-crossing/src/app.component.html diff --git a/samples/charts/data-chart/axis-crossing/src/app/app.component.scss b/samples/charts/data-chart/axis-crossing/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/axis-crossing/src/app/app.component.scss rename to samples/charts/data-chart/axis-crossing/src/app.component.scss diff --git a/samples/charts/data-chart/axis-crossing/src/app/app.component.ts b/samples/charts/data-chart/axis-crossing/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/axis-crossing/src/app/app.component.ts rename to samples/charts/data-chart/axis-crossing/src/app.component.ts diff --git a/samples/charts/data-chart/axis-crossing/src/app/app.module.ts b/samples/charts/data-chart/axis-crossing/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/axis-crossing/src/app/app.module.ts rename to samples/charts/data-chart/axis-crossing/src/app.module.ts diff --git a/samples/charts/data-chart/axis-crossing/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/axis-crossing/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/axis-crossing/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/axis-crossing/src/config/tsconfig.app.json b/samples/charts/data-chart/axis-crossing/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/axis-crossing/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/axis-crossing/src/config/tsconfig.base.json b/samples/charts/data-chart/axis-crossing/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/axis-crossing/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/axis-crossing/src/config/tsconfig.spec.json b/samples/charts/data-chart/axis-crossing/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/axis-crossing/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/axis-crossing/src/config/tsconfig.worker.json b/samples/charts/data-chart/axis-crossing/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/axis-crossing/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/axis-crossing/src/main.ts b/samples/charts/data-chart/axis-crossing/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/axis-crossing/src/main.ts +++ b/samples/charts/data-chart/axis-crossing/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/axis-crossing/tsconfig.app.json b/samples/charts/data-chart/axis-crossing/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/axis-crossing/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/data-chart/axis-crossing/tsconfig.json b/samples/charts/data-chart/axis-crossing/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/axis-crossing/tsconfig.json +++ b/samples/charts/data-chart/axis-crossing/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/axis-label-rotation/.codesandbox/Dockerfile b/samples/charts/data-chart/axis-label-rotation/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/axis-label-rotation/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/axis-label-rotation/.codesandbox/tasks.json b/samples/charts/data-chart/axis-label-rotation/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/axis-label-rotation/.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/data-chart/axis-label-rotation/.stackblitzrc b/samples/charts/data-chart/axis-label-rotation/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/axis-label-rotation/.stackblitzrc +++ b/samples/charts/data-chart/axis-label-rotation/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-label-rotation/angular.json b/samples/charts/data-chart/axis-label-rotation/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/axis-label-rotation/angular.json +++ b/samples/charts/data-chart/axis-label-rotation/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/axis-label-rotation/package.json b/samples/charts/data-chart/axis-label-rotation/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/data-chart/axis-label-rotation/package.json +++ b/samples/charts/data-chart/axis-label-rotation/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/axis-label-rotation/sandbox.config.json b/samples/charts/data-chart/axis-label-rotation/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/axis-label-rotation/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.app.json b/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.base.json b/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.spec.json b/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.worker.json b/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/axis-label-rotation/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/axis-label-rotation/tsconfig.app.json b/samples/charts/data-chart/axis-label-rotation/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/axis-label-rotation/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/data-chart/axis-label-rotation/tsconfig.json b/samples/charts/data-chart/axis-label-rotation/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/axis-label-rotation/tsconfig.json +++ b/samples/charts/data-chart/axis-label-rotation/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/axis-locations/.codesandbox/Dockerfile b/samples/charts/data-chart/axis-locations/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/axis-locations/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/axis-locations/.codesandbox/tasks.json b/samples/charts/data-chart/axis-locations/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/axis-locations/.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/data-chart/axis-locations/.stackblitzrc b/samples/charts/data-chart/axis-locations/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/axis-locations/.stackblitzrc +++ b/samples/charts/data-chart/axis-locations/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-locations/angular.json b/samples/charts/data-chart/axis-locations/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/axis-locations/angular.json +++ b/samples/charts/data-chart/axis-locations/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/axis-locations/package.json b/samples/charts/data-chart/axis-locations/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/axis-locations/package.json +++ b/samples/charts/data-chart/axis-locations/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/axis-locations/sandbox.config.json b/samples/charts/data-chart/axis-locations/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/axis-locations/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-locations/src/app/app.component.html b/samples/charts/data-chart/axis-locations/src/app.component.html similarity index 100% rename from samples/charts/data-chart/axis-locations/src/app/app.component.html rename to samples/charts/data-chart/axis-locations/src/app.component.html diff --git a/samples/charts/data-chart/axis-locations/src/app/app.component.scss b/samples/charts/data-chart/axis-locations/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/axis-locations/src/app/app.component.scss rename to samples/charts/data-chart/axis-locations/src/app.component.scss diff --git a/samples/charts/data-chart/axis-locations/src/app/app.component.ts b/samples/charts/data-chart/axis-locations/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/axis-locations/src/app/app.component.ts rename to samples/charts/data-chart/axis-locations/src/app.component.ts diff --git a/samples/charts/data-chart/axis-locations/src/app/app.module.ts b/samples/charts/data-chart/axis-locations/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/axis-locations/src/app/app.module.ts rename to samples/charts/data-chart/axis-locations/src/app.module.ts diff --git a/samples/charts/data-chart/axis-locations/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/axis-locations/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/axis-locations/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/axis-locations/src/config/tsconfig.app.json b/samples/charts/data-chart/axis-locations/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/axis-locations/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/axis-locations/src/config/tsconfig.base.json b/samples/charts/data-chart/axis-locations/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/axis-locations/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/axis-locations/src/config/tsconfig.spec.json b/samples/charts/data-chart/axis-locations/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/axis-locations/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/axis-locations/src/config/tsconfig.worker.json b/samples/charts/data-chart/axis-locations/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/axis-locations/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/axis-locations/src/main.ts b/samples/charts/data-chart/axis-locations/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/axis-locations/src/main.ts +++ b/samples/charts/data-chart/axis-locations/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/axis-locations/tsconfig.app.json b/samples/charts/data-chart/axis-locations/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/axis-locations/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/data-chart/axis-locations/tsconfig.json b/samples/charts/data-chart/axis-locations/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/axis-locations/tsconfig.json +++ b/samples/charts/data-chart/axis-locations/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/axis-min-max-gap/.codesandbox/Dockerfile b/samples/charts/data-chart/axis-min-max-gap/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/axis-min-max-gap/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/axis-min-max-gap/.codesandbox/tasks.json b/samples/charts/data-chart/axis-min-max-gap/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/axis-min-max-gap/.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/data-chart/axis-min-max-gap/.stackblitzrc b/samples/charts/data-chart/axis-min-max-gap/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/axis-min-max-gap/.stackblitzrc +++ b/samples/charts/data-chart/axis-min-max-gap/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-min-max-gap/angular.json b/samples/charts/data-chart/axis-min-max-gap/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/axis-min-max-gap/angular.json +++ b/samples/charts/data-chart/axis-min-max-gap/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/axis-min-max-gap/package.json b/samples/charts/data-chart/axis-min-max-gap/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/axis-min-max-gap/package.json +++ b/samples/charts/data-chart/axis-min-max-gap/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/axis-min-max-gap/sandbox.config.json b/samples/charts/data-chart/axis-min-max-gap/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/axis-min-max-gap/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.app.json b/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.base.json b/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.spec.json b/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.worker.json b/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/axis-min-max-gap/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/axis-min-max-gap/tsconfig.app.json b/samples/charts/data-chart/axis-min-max-gap/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/axis-min-max-gap/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/data-chart/axis-min-max-gap/tsconfig.json b/samples/charts/data-chart/axis-min-max-gap/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/axis-min-max-gap/tsconfig.json +++ b/samples/charts/data-chart/axis-min-max-gap/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/axis-settings/.codesandbox/Dockerfile b/samples/charts/data-chart/axis-settings/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/axis-settings/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/axis-settings/.codesandbox/tasks.json b/samples/charts/data-chart/axis-settings/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/axis-settings/.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/data-chart/axis-settings/.stackblitzrc b/samples/charts/data-chart/axis-settings/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/axis-settings/.stackblitzrc +++ b/samples/charts/data-chart/axis-settings/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-settings/angular.json b/samples/charts/data-chart/axis-settings/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/axis-settings/angular.json +++ b/samples/charts/data-chart/axis-settings/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/axis-settings/package.json b/samples/charts/data-chart/axis-settings/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/axis-settings/package.json +++ b/samples/charts/data-chart/axis-settings/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/axis-settings/sandbox.config.json b/samples/charts/data-chart/axis-settings/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/axis-settings/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-settings/src/app/SharedData.ts b/samples/charts/data-chart/axis-settings/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/axis-settings/src/app/SharedData.ts rename to samples/charts/data-chart/axis-settings/src/SharedData.ts diff --git a/samples/charts/data-chart/axis-settings/src/app/app.component.html b/samples/charts/data-chart/axis-settings/src/app.component.html similarity index 100% rename from samples/charts/data-chart/axis-settings/src/app/app.component.html rename to samples/charts/data-chart/axis-settings/src/app.component.html diff --git a/samples/charts/data-chart/axis-settings/src/app/app.component.scss b/samples/charts/data-chart/axis-settings/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/axis-settings/src/app/app.component.scss rename to samples/charts/data-chart/axis-settings/src/app.component.scss diff --git a/samples/charts/data-chart/axis-settings/src/app/app.component.ts b/samples/charts/data-chart/axis-settings/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/axis-settings/src/app/app.component.ts rename to samples/charts/data-chart/axis-settings/src/app.component.ts diff --git a/samples/charts/data-chart/axis-settings/src/app/app.module.ts b/samples/charts/data-chart/axis-settings/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/axis-settings/src/app/app.module.ts rename to samples/charts/data-chart/axis-settings/src/app.module.ts diff --git a/samples/charts/data-chart/axis-settings/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/axis-settings/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/axis-settings/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/axis-settings/src/config/tsconfig.app.json b/samples/charts/data-chart/axis-settings/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/axis-settings/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/axis-settings/src/config/tsconfig.base.json b/samples/charts/data-chart/axis-settings/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/axis-settings/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/axis-settings/src/config/tsconfig.spec.json b/samples/charts/data-chart/axis-settings/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/axis-settings/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/axis-settings/src/config/tsconfig.worker.json b/samples/charts/data-chart/axis-settings/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/axis-settings/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/axis-settings/src/main.ts b/samples/charts/data-chart/axis-settings/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/axis-settings/src/main.ts +++ b/samples/charts/data-chart/axis-settings/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/axis-settings/tsconfig.app.json b/samples/charts/data-chart/axis-settings/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/axis-settings/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/data-chart/axis-settings/tsconfig.json b/samples/charts/data-chart/axis-settings/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/axis-settings/tsconfig.json +++ b/samples/charts/data-chart/axis-settings/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/axis-sharing/.codesandbox/Dockerfile b/samples/charts/data-chart/axis-sharing/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/axis-sharing/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/axis-sharing/.codesandbox/tasks.json b/samples/charts/data-chart/axis-sharing/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/axis-sharing/.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/data-chart/axis-sharing/.stackblitzrc b/samples/charts/data-chart/axis-sharing/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/axis-sharing/.stackblitzrc +++ b/samples/charts/data-chart/axis-sharing/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-sharing/angular.json b/samples/charts/data-chart/axis-sharing/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/axis-sharing/angular.json +++ b/samples/charts/data-chart/axis-sharing/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/axis-sharing/package.json b/samples/charts/data-chart/axis-sharing/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/axis-sharing/package.json +++ b/samples/charts/data-chart/axis-sharing/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/axis-sharing/sandbox.config.json b/samples/charts/data-chart/axis-sharing/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/axis-sharing/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-sharing/src/app/SampleFinancialData.ts b/samples/charts/data-chart/axis-sharing/src/SampleFinancialData.ts similarity index 100% rename from samples/charts/data-chart/axis-sharing/src/app/SampleFinancialData.ts rename to samples/charts/data-chart/axis-sharing/src/SampleFinancialData.ts diff --git a/samples/charts/data-chart/axis-sharing/src/app/app.component.html b/samples/charts/data-chart/axis-sharing/src/app.component.html similarity index 100% rename from samples/charts/data-chart/axis-sharing/src/app/app.component.html rename to samples/charts/data-chart/axis-sharing/src/app.component.html diff --git a/samples/charts/data-chart/axis-sharing/src/app/app.component.scss b/samples/charts/data-chart/axis-sharing/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/axis-sharing/src/app/app.component.scss rename to samples/charts/data-chart/axis-sharing/src/app.component.scss diff --git a/samples/charts/data-chart/axis-sharing/src/app/app.component.ts b/samples/charts/data-chart/axis-sharing/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/axis-sharing/src/app/app.component.ts rename to samples/charts/data-chart/axis-sharing/src/app.component.ts diff --git a/samples/charts/data-chart/axis-sharing/src/app/app.module.ts b/samples/charts/data-chart/axis-sharing/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/axis-sharing/src/app/app.module.ts rename to samples/charts/data-chart/axis-sharing/src/app.module.ts diff --git a/samples/charts/data-chart/axis-sharing/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/axis-sharing/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/axis-sharing/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/axis-sharing/src/config/tsconfig.app.json b/samples/charts/data-chart/axis-sharing/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/axis-sharing/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/axis-sharing/src/config/tsconfig.base.json b/samples/charts/data-chart/axis-sharing/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/axis-sharing/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/axis-sharing/src/config/tsconfig.spec.json b/samples/charts/data-chart/axis-sharing/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/axis-sharing/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/axis-sharing/src/config/tsconfig.worker.json b/samples/charts/data-chart/axis-sharing/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/axis-sharing/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/axis-sharing/src/main.ts b/samples/charts/data-chart/axis-sharing/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/axis-sharing/src/main.ts +++ b/samples/charts/data-chart/axis-sharing/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/axis-sharing/tsconfig.app.json b/samples/charts/data-chart/axis-sharing/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/axis-sharing/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/data-chart/axis-sharing/tsconfig.json b/samples/charts/data-chart/axis-sharing/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/axis-sharing/tsconfig.json +++ b/samples/charts/data-chart/axis-sharing/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/axis-types/.codesandbox/Dockerfile b/samples/charts/data-chart/axis-types/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/axis-types/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/axis-types/.codesandbox/tasks.json b/samples/charts/data-chart/axis-types/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/axis-types/.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/data-chart/axis-types/.stackblitzrc b/samples/charts/data-chart/axis-types/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/axis-types/.stackblitzrc +++ b/samples/charts/data-chart/axis-types/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-types/angular.json b/samples/charts/data-chart/axis-types/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/axis-types/angular.json +++ b/samples/charts/data-chart/axis-types/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/axis-types/package.json b/samples/charts/data-chart/axis-types/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/axis-types/package.json +++ b/samples/charts/data-chart/axis-types/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/axis-types/sandbox.config.json b/samples/charts/data-chart/axis-types/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/axis-types/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/axis-types/src/app/SampleCategoryData.ts b/samples/charts/data-chart/axis-types/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/axis-types/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/axis-types/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/axis-types/src/app/SampleFinancialData.ts b/samples/charts/data-chart/axis-types/src/SampleFinancialData.ts similarity index 100% rename from samples/charts/data-chart/axis-types/src/app/SampleFinancialData.ts rename to samples/charts/data-chart/axis-types/src/SampleFinancialData.ts diff --git a/samples/charts/data-chart/axis-types/src/app/SampleScatterData.ts b/samples/charts/data-chart/axis-types/src/SampleScatterData.ts similarity index 100% rename from samples/charts/data-chart/axis-types/src/app/SampleScatterData.ts rename to samples/charts/data-chart/axis-types/src/SampleScatterData.ts diff --git a/samples/charts/data-chart/axis-types/src/app/app.component.html b/samples/charts/data-chart/axis-types/src/app.component.html similarity index 100% rename from samples/charts/data-chart/axis-types/src/app/app.component.html rename to samples/charts/data-chart/axis-types/src/app.component.html diff --git a/samples/charts/data-chart/axis-types/src/app/app.component.scss b/samples/charts/data-chart/axis-types/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/axis-types/src/app/app.component.scss rename to samples/charts/data-chart/axis-types/src/app.component.scss diff --git a/samples/charts/data-chart/axis-types/src/app/app.component.ts b/samples/charts/data-chart/axis-types/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/axis-types/src/app/app.component.ts rename to samples/charts/data-chart/axis-types/src/app.component.ts diff --git a/samples/charts/data-chart/axis-types/src/app/app.module.ts b/samples/charts/data-chart/axis-types/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/axis-types/src/app/app.module.ts rename to samples/charts/data-chart/axis-types/src/app.module.ts diff --git a/samples/charts/data-chart/axis-types/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/axis-types/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/axis-types/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/axis-types/src/config/tsconfig.app.json b/samples/charts/data-chart/axis-types/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/axis-types/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/axis-types/src/config/tsconfig.base.json b/samples/charts/data-chart/axis-types/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/axis-types/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/axis-types/src/config/tsconfig.spec.json b/samples/charts/data-chart/axis-types/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/axis-types/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/axis-types/src/config/tsconfig.worker.json b/samples/charts/data-chart/axis-types/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/axis-types/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/axis-types/src/main.ts b/samples/charts/data-chart/axis-types/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/axis-types/src/main.ts +++ b/samples/charts/data-chart/axis-types/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/axis-types/tsconfig.app.json b/samples/charts/data-chart/axis-types/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/axis-types/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/data-chart/axis-types/tsconfig.json b/samples/charts/data-chart/axis-types/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/axis-types/tsconfig.json +++ b/samples/charts/data-chart/axis-types/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/bar-chart-multiple-sources/.codesandbox/Dockerfile b/samples/charts/data-chart/bar-chart-multiple-sources/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/bar-chart-multiple-sources/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-multiple-sources/.codesandbox/tasks.json b/samples/charts/data-chart/bar-chart-multiple-sources/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/bar-chart-multiple-sources/.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/data-chart/bar-chart-multiple-sources/.stackblitzrc b/samples/charts/data-chart/bar-chart-multiple-sources/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/bar-chart-multiple-sources/.stackblitzrc +++ b/samples/charts/data-chart/bar-chart-multiple-sources/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-multiple-sources/angular.json b/samples/charts/data-chart/bar-chart-multiple-sources/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/bar-chart-multiple-sources/angular.json +++ b/samples/charts/data-chart/bar-chart-multiple-sources/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/bar-chart-multiple-sources/package.json b/samples/charts/data-chart/bar-chart-multiple-sources/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/bar-chart-multiple-sources/package.json +++ b/samples/charts/data-chart/bar-chart-multiple-sources/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/bar-chart-multiple-sources/sandbox.config.json b/samples/charts/data-chart/bar-chart-multiple-sources/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/bar-chart-multiple-sources/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.app.json b/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.base.json b/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.spec.json b/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.worker.json b/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/bar-chart-multiple-sources/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-multiple-sources/tsconfig.app.json b/samples/charts/data-chart/bar-chart-multiple-sources/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/bar-chart-multiple-sources/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/data-chart/bar-chart-multiple-sources/tsconfig.json b/samples/charts/data-chart/bar-chart-multiple-sources/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/bar-chart-multiple-sources/tsconfig.json +++ b/samples/charts/data-chart/bar-chart-multiple-sources/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/bar-chart-overlapping/.codesandbox/Dockerfile b/samples/charts/data-chart/bar-chart-overlapping/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/bar-chart-overlapping/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-overlapping/.codesandbox/tasks.json b/samples/charts/data-chart/bar-chart-overlapping/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/bar-chart-overlapping/.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/data-chart/bar-chart-overlapping/.stackblitzrc b/samples/charts/data-chart/bar-chart-overlapping/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/bar-chart-overlapping/.stackblitzrc +++ b/samples/charts/data-chart/bar-chart-overlapping/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-overlapping/angular.json b/samples/charts/data-chart/bar-chart-overlapping/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/bar-chart-overlapping/angular.json +++ b/samples/charts/data-chart/bar-chart-overlapping/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/bar-chart-overlapping/package.json b/samples/charts/data-chart/bar-chart-overlapping/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/bar-chart-overlapping/package.json +++ b/samples/charts/data-chart/bar-chart-overlapping/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/bar-chart-overlapping/sandbox.config.json b/samples/charts/data-chart/bar-chart-overlapping/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/bar-chart-overlapping/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.app.json b/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.base.json b/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.spec.json b/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.worker.json b/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/bar-chart-overlapping/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-overlapping/tsconfig.app.json b/samples/charts/data-chart/bar-chart-overlapping/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/bar-chart-overlapping/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/data-chart/bar-chart-overlapping/tsconfig.json b/samples/charts/data-chart/bar-chart-overlapping/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/bar-chart-overlapping/tsconfig.json +++ b/samples/charts/data-chart/bar-chart-overlapping/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/bar-chart-single-source/.codesandbox/Dockerfile b/samples/charts/data-chart/bar-chart-single-source/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/bar-chart-single-source/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-single-source/.codesandbox/tasks.json b/samples/charts/data-chart/bar-chart-single-source/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/bar-chart-single-source/.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/data-chart/bar-chart-single-source/.stackblitzrc b/samples/charts/data-chart/bar-chart-single-source/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/bar-chart-single-source/.stackblitzrc +++ b/samples/charts/data-chart/bar-chart-single-source/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-single-source/angular.json b/samples/charts/data-chart/bar-chart-single-source/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/bar-chart-single-source/angular.json +++ b/samples/charts/data-chart/bar-chart-single-source/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/bar-chart-single-source/package.json b/samples/charts/data-chart/bar-chart-single-source/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/bar-chart-single-source/package.json +++ b/samples/charts/data-chart/bar-chart-single-source/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/bar-chart-single-source/sandbox.config.json b/samples/charts/data-chart/bar-chart-single-source/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/bar-chart-single-source/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.app.json b/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.base.json b/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.spec.json b/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.worker.json b/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/bar-chart-single-source/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-single-source/tsconfig.app.json b/samples/charts/data-chart/bar-chart-single-source/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/bar-chart-single-source/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/data-chart/bar-chart-single-source/tsconfig.json b/samples/charts/data-chart/bar-chart-single-source/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/bar-chart-single-source/tsconfig.json +++ b/samples/charts/data-chart/bar-chart-single-source/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/bar-chart-styling/.codesandbox/Dockerfile b/samples/charts/data-chart/bar-chart-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/bar-chart-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-styling/.codesandbox/tasks.json b/samples/charts/data-chart/bar-chart-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/bar-chart-styling/.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/data-chart/bar-chart-styling/.stackblitzrc b/samples/charts/data-chart/bar-chart-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/bar-chart-styling/.stackblitzrc +++ b/samples/charts/data-chart/bar-chart-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-styling/angular.json b/samples/charts/data-chart/bar-chart-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/bar-chart-styling/angular.json +++ b/samples/charts/data-chart/bar-chart-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/bar-chart-styling/package.json b/samples/charts/data-chart/bar-chart-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/bar-chart-styling/package.json +++ b/samples/charts/data-chart/bar-chart-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/bar-chart-styling/sandbox.config.json b/samples/charts/data-chart/bar-chart-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/bar-chart-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.app.json b/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.base.json b/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.spec.json b/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.worker.json b/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/bar-chart-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/bar-chart-styling/tsconfig.app.json b/samples/charts/data-chart/bar-chart-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/bar-chart-styling/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/data-chart/bar-chart-styling/tsconfig.json b/samples/charts/data-chart/bar-chart-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/bar-chart-styling/tsconfig.json +++ b/samples/charts/data-chart/bar-chart-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/callout-layer-styling/.codesandbox/Dockerfile b/samples/charts/data-chart/callout-layer-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/callout-layer-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/callout-layer-styling/.codesandbox/tasks.json b/samples/charts/data-chart/callout-layer-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/callout-layer-styling/.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/data-chart/callout-layer-styling/.stackblitzrc b/samples/charts/data-chart/callout-layer-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/callout-layer-styling/.stackblitzrc +++ b/samples/charts/data-chart/callout-layer-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/callout-layer-styling/angular.json b/samples/charts/data-chart/callout-layer-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/callout-layer-styling/angular.json +++ b/samples/charts/data-chart/callout-layer-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/callout-layer-styling/package.json b/samples/charts/data-chart/callout-layer-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/callout-layer-styling/package.json +++ b/samples/charts/data-chart/callout-layer-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/callout-layer-styling/sandbox.config.json b/samples/charts/data-chart/callout-layer-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/callout-layer-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.app.json b/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.base.json b/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.spec.json b/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.worker.json b/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/callout-layer-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/callout-layer-styling/tsconfig.app.json b/samples/charts/data-chart/callout-layer-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/callout-layer-styling/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/data-chart/callout-layer-styling/tsconfig.json b/samples/charts/data-chart/callout-layer-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/callout-layer-styling/tsconfig.json +++ b/samples/charts/data-chart/callout-layer-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/chart-highlight-filter-datasource/.codesandbox/Dockerfile b/samples/charts/data-chart/chart-highlight-filter-datasource/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/chart-highlight-filter-datasource/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/chart-highlight-filter-datasource/.codesandbox/tasks.json b/samples/charts/data-chart/chart-highlight-filter-datasource/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/chart-highlight-filter-datasource/.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/data-chart/chart-highlight-filter-datasource/.stackblitzrc b/samples/charts/data-chart/chart-highlight-filter-datasource/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/chart-highlight-filter-datasource/.stackblitzrc +++ b/samples/charts/data-chart/chart-highlight-filter-datasource/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-highlight-filter-datasource/angular.json b/samples/charts/data-chart/chart-highlight-filter-datasource/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/chart-highlight-filter-datasource/angular.json +++ b/samples/charts/data-chart/chart-highlight-filter-datasource/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/chart-highlight-filter-datasource/package.json b/samples/charts/data-chart/chart-highlight-filter-datasource/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/data-chart/chart-highlight-filter-datasource/package.json +++ b/samples/charts/data-chart/chart-highlight-filter-datasource/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/chart-highlight-filter-datasource/sandbox.config.json b/samples/charts/data-chart/chart-highlight-filter-datasource/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-datasource/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.app.json b/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.base.json b/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.spec.json b/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.worker.json b/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-datasource/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/chart-highlight-filter-datasource/tsconfig.app.json b/samples/charts/data-chart/chart-highlight-filter-datasource/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/chart-highlight-filter-datasource/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/data-chart/chart-highlight-filter-datasource/tsconfig.json b/samples/charts/data-chart/chart-highlight-filter-datasource/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/chart-highlight-filter-datasource/tsconfig.json +++ b/samples/charts/data-chart/chart-highlight-filter-datasource/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/chart-highlight-filter-multiple-series/.codesandbox/Dockerfile b/samples/charts/data-chart/chart-highlight-filter-multiple-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/chart-highlight-filter-multiple-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/chart-highlight-filter-multiple-series/.codesandbox/tasks.json b/samples/charts/data-chart/chart-highlight-filter-multiple-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/chart-highlight-filter-multiple-series/.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/data-chart/chart-highlight-filter-multiple-series/.stackblitzrc b/samples/charts/data-chart/chart-highlight-filter-multiple-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/chart-highlight-filter-multiple-series/.stackblitzrc +++ b/samples/charts/data-chart/chart-highlight-filter-multiple-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-highlight-filter-multiple-series/angular.json b/samples/charts/data-chart/chart-highlight-filter-multiple-series/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/chart-highlight-filter-multiple-series/angular.json +++ b/samples/charts/data-chart/chart-highlight-filter-multiple-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/chart-highlight-filter-multiple-series/package.json b/samples/charts/data-chart/chart-highlight-filter-multiple-series/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/data-chart/chart-highlight-filter-multiple-series/package.json +++ b/samples/charts/data-chart/chart-highlight-filter-multiple-series/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/chart-highlight-filter-multiple-series/sandbox.config.json b/samples/charts/data-chart/chart-highlight-filter-multiple-series/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-multiple-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.app.json b/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.base.json b/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/chart-highlight-filter-multiple-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/chart-highlight-filter-multiple-series/tsconfig.app.json b/samples/charts/data-chart/chart-highlight-filter-multiple-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/chart-highlight-filter-multiple-series/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/data-chart/chart-highlight-filter-multiple-series/tsconfig.json b/samples/charts/data-chart/chart-highlight-filter-multiple-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/chart-highlight-filter-multiple-series/tsconfig.json +++ b/samples/charts/data-chart/chart-highlight-filter-multiple-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/chart-highlight-filter/.codesandbox/Dockerfile b/samples/charts/data-chart/chart-highlight-filter/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/chart-highlight-filter/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/chart-highlight-filter/.codesandbox/tasks.json b/samples/charts/data-chart/chart-highlight-filter/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/chart-highlight-filter/.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/data-chart/chart-highlight-filter/.stackblitzrc b/samples/charts/data-chart/chart-highlight-filter/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/chart-highlight-filter/.stackblitzrc +++ b/samples/charts/data-chart/chart-highlight-filter/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-highlight-filter/angular.json b/samples/charts/data-chart/chart-highlight-filter/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/chart-highlight-filter/angular.json +++ b/samples/charts/data-chart/chart-highlight-filter/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/chart-highlight-filter/package.json b/samples/charts/data-chart/chart-highlight-filter/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/data-chart/chart-highlight-filter/package.json +++ b/samples/charts/data-chart/chart-highlight-filter/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/chart-highlight-filter/sandbox.config.json b/samples/charts/data-chart/chart-highlight-filter/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/chart-highlight-filter/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.app.json b/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.base.json b/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.spec.json b/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.worker.json b/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/chart-highlight-filter/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/chart-highlight-filter/tsconfig.app.json b/samples/charts/data-chart/chart-highlight-filter/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/chart-highlight-filter/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/data-chart/chart-highlight-filter/tsconfig.json b/samples/charts/data-chart/chart-highlight-filter/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/chart-highlight-filter/tsconfig.json +++ b/samples/charts/data-chart/chart-highlight-filter/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/chart-navigation/.codesandbox/Dockerfile b/samples/charts/data-chart/chart-navigation/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/chart-navigation/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/chart-navigation/.codesandbox/tasks.json b/samples/charts/data-chart/chart-navigation/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/chart-navigation/.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/data-chart/chart-navigation/.stackblitzrc b/samples/charts/data-chart/chart-navigation/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/chart-navigation/.stackblitzrc +++ b/samples/charts/data-chart/chart-navigation/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-navigation/angular.json b/samples/charts/data-chart/chart-navigation/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/chart-navigation/angular.json +++ b/samples/charts/data-chart/chart-navigation/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/chart-navigation/package.json b/samples/charts/data-chart/chart-navigation/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/chart-navigation/package.json +++ b/samples/charts/data-chart/chart-navigation/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/chart-navigation/sandbox.config.json b/samples/charts/data-chart/chart-navigation/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/chart-navigation/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-navigation/src/app/SampleScatterStats.ts b/samples/charts/data-chart/chart-navigation/src/SampleScatterStats.ts similarity index 100% rename from samples/charts/data-chart/chart-navigation/src/app/SampleScatterStats.ts rename to samples/charts/data-chart/chart-navigation/src/SampleScatterStats.ts diff --git a/samples/charts/data-chart/chart-navigation/src/app/app.component.html b/samples/charts/data-chart/chart-navigation/src/app.component.html similarity index 100% rename from samples/charts/data-chart/chart-navigation/src/app/app.component.html rename to samples/charts/data-chart/chart-navigation/src/app.component.html diff --git a/samples/charts/data-chart/chart-navigation/src/app/app.component.scss b/samples/charts/data-chart/chart-navigation/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/chart-navigation/src/app/app.component.scss rename to samples/charts/data-chart/chart-navigation/src/app.component.scss diff --git a/samples/charts/data-chart/chart-navigation/src/app/app.component.ts b/samples/charts/data-chart/chart-navigation/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/chart-navigation/src/app/app.component.ts rename to samples/charts/data-chart/chart-navigation/src/app.component.ts diff --git a/samples/charts/data-chart/chart-navigation/src/app/app.module.ts b/samples/charts/data-chart/chart-navigation/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/chart-navigation/src/app/app.module.ts rename to samples/charts/data-chart/chart-navigation/src/app.module.ts diff --git a/samples/charts/data-chart/chart-navigation/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/chart-navigation/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/chart-navigation/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/chart-navigation/src/config/tsconfig.app.json b/samples/charts/data-chart/chart-navigation/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/chart-navigation/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/chart-navigation/src/config/tsconfig.base.json b/samples/charts/data-chart/chart-navigation/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/chart-navigation/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/chart-navigation/src/config/tsconfig.spec.json b/samples/charts/data-chart/chart-navigation/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/chart-navigation/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/chart-navigation/src/config/tsconfig.worker.json b/samples/charts/data-chart/chart-navigation/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/chart-navigation/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/chart-navigation/src/main.ts b/samples/charts/data-chart/chart-navigation/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/chart-navigation/src/main.ts +++ b/samples/charts/data-chart/chart-navigation/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/chart-navigation/tsconfig.app.json b/samples/charts/data-chart/chart-navigation/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/chart-navigation/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/data-chart/chart-navigation/tsconfig.json b/samples/charts/data-chart/chart-navigation/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/chart-navigation/tsconfig.json +++ b/samples/charts/data-chart/chart-navigation/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/chart-overview/.codesandbox/Dockerfile b/samples/charts/data-chart/chart-overview/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/chart-overview/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/chart-overview/.codesandbox/tasks.json b/samples/charts/data-chart/chart-overview/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/chart-overview/.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/data-chart/chart-overview/.stackblitzrc b/samples/charts/data-chart/chart-overview/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/chart-overview/.stackblitzrc +++ b/samples/charts/data-chart/chart-overview/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-overview/angular.json b/samples/charts/data-chart/chart-overview/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/chart-overview/angular.json +++ b/samples/charts/data-chart/chart-overview/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/chart-overview/package.json b/samples/charts/data-chart/chart-overview/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/chart-overview/package.json +++ b/samples/charts/data-chart/chart-overview/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/chart-overview/sandbox.config.json b/samples/charts/data-chart/chart-overview/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/chart-overview/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-overview/src/app/SampleScatterStats.ts b/samples/charts/data-chart/chart-overview/src/SampleScatterStats.ts similarity index 100% rename from samples/charts/data-chart/chart-overview/src/app/SampleScatterStats.ts rename to samples/charts/data-chart/chart-overview/src/SampleScatterStats.ts diff --git a/samples/charts/data-chart/chart-overview/src/app/app.component.html b/samples/charts/data-chart/chart-overview/src/app.component.html similarity index 100% rename from samples/charts/data-chart/chart-overview/src/app/app.component.html rename to samples/charts/data-chart/chart-overview/src/app.component.html diff --git a/samples/charts/data-chart/chart-overview/src/app/app.component.scss b/samples/charts/data-chart/chart-overview/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/chart-overview/src/app/app.component.scss rename to samples/charts/data-chart/chart-overview/src/app.component.scss diff --git a/samples/charts/data-chart/chart-overview/src/app/app.component.ts b/samples/charts/data-chart/chart-overview/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/chart-overview/src/app/app.component.ts rename to samples/charts/data-chart/chart-overview/src/app.component.ts diff --git a/samples/charts/data-chart/chart-overview/src/app/app.module.ts b/samples/charts/data-chart/chart-overview/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/chart-overview/src/app/app.module.ts rename to samples/charts/data-chart/chart-overview/src/app.module.ts diff --git a/samples/charts/data-chart/chart-overview/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/chart-overview/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/chart-overview/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/chart-overview/src/config/tsconfig.app.json b/samples/charts/data-chart/chart-overview/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/chart-overview/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/chart-overview/src/config/tsconfig.base.json b/samples/charts/data-chart/chart-overview/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/chart-overview/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/chart-overview/src/config/tsconfig.spec.json b/samples/charts/data-chart/chart-overview/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/chart-overview/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/chart-overview/src/config/tsconfig.worker.json b/samples/charts/data-chart/chart-overview/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/chart-overview/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/chart-overview/src/main.ts b/samples/charts/data-chart/chart-overview/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/chart-overview/src/main.ts +++ b/samples/charts/data-chart/chart-overview/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/chart-overview/tsconfig.app.json b/samples/charts/data-chart/chart-overview/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/chart-overview/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/data-chart/chart-overview/tsconfig.json b/samples/charts/data-chart/chart-overview/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/chart-overview/tsconfig.json +++ b/samples/charts/data-chart/chart-overview/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/chart-performance/.codesandbox/Dockerfile b/samples/charts/data-chart/chart-performance/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/chart-performance/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/chart-performance/.codesandbox/tasks.json b/samples/charts/data-chart/chart-performance/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/chart-performance/.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/data-chart/chart-performance/.stackblitzrc b/samples/charts/data-chart/chart-performance/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/chart-performance/.stackblitzrc +++ b/samples/charts/data-chart/chart-performance/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-performance/angular.json b/samples/charts/data-chart/chart-performance/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/chart-performance/angular.json +++ b/samples/charts/data-chart/chart-performance/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/chart-performance/package.json b/samples/charts/data-chart/chart-performance/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/chart-performance/package.json +++ b/samples/charts/data-chart/chart-performance/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/chart-performance/sandbox.config.json b/samples/charts/data-chart/chart-performance/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/chart-performance/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-performance/src/app/SharedData.ts b/samples/charts/data-chart/chart-performance/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/chart-performance/src/app/SharedData.ts rename to samples/charts/data-chart/chart-performance/src/SharedData.ts diff --git a/samples/charts/data-chart/chart-performance/src/app/app.component.html b/samples/charts/data-chart/chart-performance/src/app.component.html similarity index 100% rename from samples/charts/data-chart/chart-performance/src/app/app.component.html rename to samples/charts/data-chart/chart-performance/src/app.component.html diff --git a/samples/charts/data-chart/chart-performance/src/app/app.component.scss b/samples/charts/data-chart/chart-performance/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/chart-performance/src/app/app.component.scss rename to samples/charts/data-chart/chart-performance/src/app.component.scss diff --git a/samples/charts/data-chart/chart-performance/src/app/app.component.ts b/samples/charts/data-chart/chart-performance/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/chart-performance/src/app/app.component.ts rename to samples/charts/data-chart/chart-performance/src/app.component.ts diff --git a/samples/charts/data-chart/chart-performance/src/app/app.module.ts b/samples/charts/data-chart/chart-performance/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/chart-performance/src/app/app.module.ts rename to samples/charts/data-chart/chart-performance/src/app.module.ts diff --git a/samples/charts/data-chart/chart-performance/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/chart-performance/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/chart-performance/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/chart-performance/src/config/tsconfig.app.json b/samples/charts/data-chart/chart-performance/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/chart-performance/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/chart-performance/src/config/tsconfig.base.json b/samples/charts/data-chart/chart-performance/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/chart-performance/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/chart-performance/src/config/tsconfig.spec.json b/samples/charts/data-chart/chart-performance/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/chart-performance/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/chart-performance/src/config/tsconfig.worker.json b/samples/charts/data-chart/chart-performance/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/chart-performance/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/chart-performance/src/main.ts b/samples/charts/data-chart/chart-performance/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/chart-performance/src/main.ts +++ b/samples/charts/data-chart/chart-performance/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/chart-performance/tsconfig.app.json b/samples/charts/data-chart/chart-performance/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/chart-performance/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/data-chart/chart-performance/tsconfig.json b/samples/charts/data-chart/chart-performance/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/chart-performance/tsconfig.json +++ b/samples/charts/data-chart/chart-performance/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/chart-synchronization/.codesandbox/Dockerfile b/samples/charts/data-chart/chart-synchronization/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/chart-synchronization/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/chart-synchronization/.codesandbox/tasks.json b/samples/charts/data-chart/chart-synchronization/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/chart-synchronization/.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/data-chart/chart-synchronization/.stackblitzrc b/samples/charts/data-chart/chart-synchronization/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/chart-synchronization/.stackblitzrc +++ b/samples/charts/data-chart/chart-synchronization/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-synchronization/angular.json b/samples/charts/data-chart/chart-synchronization/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/chart-synchronization/angular.json +++ b/samples/charts/data-chart/chart-synchronization/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/chart-synchronization/package.json b/samples/charts/data-chart/chart-synchronization/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/chart-synchronization/package.json +++ b/samples/charts/data-chart/chart-synchronization/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/chart-synchronization/sandbox.config.json b/samples/charts/data-chart/chart-synchronization/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/chart-synchronization/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-synchronization/src/app/SharedData.ts b/samples/charts/data-chart/chart-synchronization/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/chart-synchronization/src/app/SharedData.ts rename to samples/charts/data-chart/chart-synchronization/src/SharedData.ts diff --git a/samples/charts/data-chart/chart-synchronization/src/app/app.component.html b/samples/charts/data-chart/chart-synchronization/src/app.component.html similarity index 100% rename from samples/charts/data-chart/chart-synchronization/src/app/app.component.html rename to samples/charts/data-chart/chart-synchronization/src/app.component.html diff --git a/samples/charts/data-chart/chart-synchronization/src/app/app.component.scss b/samples/charts/data-chart/chart-synchronization/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/chart-synchronization/src/app/app.component.scss rename to samples/charts/data-chart/chart-synchronization/src/app.component.scss diff --git a/samples/charts/data-chart/chart-synchronization/src/app/app.component.ts b/samples/charts/data-chart/chart-synchronization/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/chart-synchronization/src/app/app.component.ts rename to samples/charts/data-chart/chart-synchronization/src/app.component.ts diff --git a/samples/charts/data-chart/chart-synchronization/src/app/app.module.ts b/samples/charts/data-chart/chart-synchronization/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/chart-synchronization/src/app/app.module.ts rename to samples/charts/data-chart/chart-synchronization/src/app.module.ts diff --git a/samples/charts/data-chart/chart-synchronization/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/chart-synchronization/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/chart-synchronization/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.app.json b/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.base.json b/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.spec.json b/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.worker.json b/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/chart-synchronization/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/chart-synchronization/src/main.ts b/samples/charts/data-chart/chart-synchronization/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/chart-synchronization/src/main.ts +++ b/samples/charts/data-chart/chart-synchronization/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/chart-synchronization/tsconfig.app.json b/samples/charts/data-chart/chart-synchronization/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/chart-synchronization/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/data-chart/chart-synchronization/tsconfig.json b/samples/charts/data-chart/chart-synchronization/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/chart-synchronization/tsconfig.json +++ b/samples/charts/data-chart/chart-synchronization/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/chart-titles/.codesandbox/Dockerfile b/samples/charts/data-chart/chart-titles/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/chart-titles/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/chart-titles/.codesandbox/tasks.json b/samples/charts/data-chart/chart-titles/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/chart-titles/.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/data-chart/chart-titles/.stackblitzrc b/samples/charts/data-chart/chart-titles/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/chart-titles/.stackblitzrc +++ b/samples/charts/data-chart/chart-titles/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-titles/angular.json b/samples/charts/data-chart/chart-titles/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/chart-titles/angular.json +++ b/samples/charts/data-chart/chart-titles/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/chart-titles/package.json b/samples/charts/data-chart/chart-titles/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/chart-titles/package.json +++ b/samples/charts/data-chart/chart-titles/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/chart-titles/sandbox.config.json b/samples/charts/data-chart/chart-titles/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/chart-titles/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/chart-titles/src/app/SharedData.ts b/samples/charts/data-chart/chart-titles/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/chart-titles/src/app/SharedData.ts rename to samples/charts/data-chart/chart-titles/src/SharedData.ts diff --git a/samples/charts/data-chart/chart-titles/src/app/app.component.html b/samples/charts/data-chart/chart-titles/src/app.component.html similarity index 100% rename from samples/charts/data-chart/chart-titles/src/app/app.component.html rename to samples/charts/data-chart/chart-titles/src/app.component.html diff --git a/samples/charts/data-chart/chart-titles/src/app/app.component.scss b/samples/charts/data-chart/chart-titles/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/chart-titles/src/app/app.component.scss rename to samples/charts/data-chart/chart-titles/src/app.component.scss diff --git a/samples/charts/data-chart/chart-titles/src/app/app.component.ts b/samples/charts/data-chart/chart-titles/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/chart-titles/src/app/app.component.ts rename to samples/charts/data-chart/chart-titles/src/app.component.ts diff --git a/samples/charts/data-chart/chart-titles/src/app/app.module.ts b/samples/charts/data-chart/chart-titles/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/chart-titles/src/app/app.module.ts rename to samples/charts/data-chart/chart-titles/src/app.module.ts diff --git a/samples/charts/data-chart/chart-titles/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/chart-titles/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/chart-titles/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/chart-titles/src/config/tsconfig.app.json b/samples/charts/data-chart/chart-titles/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/chart-titles/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/chart-titles/src/config/tsconfig.base.json b/samples/charts/data-chart/chart-titles/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/chart-titles/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/chart-titles/src/config/tsconfig.spec.json b/samples/charts/data-chart/chart-titles/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/chart-titles/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/chart-titles/src/config/tsconfig.worker.json b/samples/charts/data-chart/chart-titles/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/chart-titles/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/chart-titles/src/main.ts b/samples/charts/data-chart/chart-titles/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/chart-titles/src/main.ts +++ b/samples/charts/data-chart/chart-titles/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/chart-titles/tsconfig.app.json b/samples/charts/data-chart/chart-titles/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/chart-titles/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/data-chart/chart-titles/tsconfig.json b/samples/charts/data-chart/chart-titles/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/chart-titles/tsconfig.json +++ b/samples/charts/data-chart/chart-titles/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/column-chart-styling/.codesandbox/Dockerfile b/samples/charts/data-chart/column-chart-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/column-chart-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/column-chart-styling/.codesandbox/tasks.json b/samples/charts/data-chart/column-chart-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/column-chart-styling/.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/data-chart/column-chart-styling/.stackblitzrc b/samples/charts/data-chart/column-chart-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/column-chart-styling/.stackblitzrc +++ b/samples/charts/data-chart/column-chart-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/column-chart-styling/angular.json b/samples/charts/data-chart/column-chart-styling/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/column-chart-styling/angular.json +++ b/samples/charts/data-chart/column-chart-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/column-chart-styling/package.json b/samples/charts/data-chart/column-chart-styling/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/column-chart-styling/package.json +++ b/samples/charts/data-chart/column-chart-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/column-chart-styling/sandbox.config.json b/samples/charts/data-chart/column-chart-styling/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/column-chart-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/column-chart-styling/src/app/app.component.html b/samples/charts/data-chart/column-chart-styling/src/app.component.html similarity index 100% rename from samples/charts/data-chart/column-chart-styling/src/app/app.component.html rename to samples/charts/data-chart/column-chart-styling/src/app.component.html diff --git a/samples/charts/data-chart/column-chart-styling/src/app/app.component.scss b/samples/charts/data-chart/column-chart-styling/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/column-chart-styling/src/app/app.component.scss rename to samples/charts/data-chart/column-chart-styling/src/app.component.scss diff --git a/samples/charts/data-chart/column-chart-styling/src/app/app.component.ts b/samples/charts/data-chart/column-chart-styling/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/column-chart-styling/src/app/app.component.ts rename to samples/charts/data-chart/column-chart-styling/src/app.component.ts diff --git a/samples/charts/data-chart/column-chart-styling/src/app/app.module.ts b/samples/charts/data-chart/column-chart-styling/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/column-chart-styling/src/app/app.module.ts rename to samples/charts/data-chart/column-chart-styling/src/app.module.ts diff --git a/samples/charts/data-chart/column-chart-styling/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/column-chart-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/column-chart-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.app.json b/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.base.json b/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.spec.json b/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.worker.json b/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/column-chart-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/column-chart-styling/src/main.ts b/samples/charts/data-chart/column-chart-styling/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/column-chart-styling/src/main.ts +++ b/samples/charts/data-chart/column-chart-styling/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/column-chart-styling/tsconfig.app.json b/samples/charts/data-chart/column-chart-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/column-chart-styling/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/data-chart/column-chart-styling/tsconfig.json b/samples/charts/data-chart/column-chart-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/column-chart-styling/tsconfig.json +++ b/samples/charts/data-chart/column-chart-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/composite-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/composite-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/composite-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/composite-chart/.codesandbox/tasks.json b/samples/charts/data-chart/composite-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/composite-chart/.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/data-chart/composite-chart/.stackblitzrc b/samples/charts/data-chart/composite-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/composite-chart/.stackblitzrc +++ b/samples/charts/data-chart/composite-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/composite-chart/angular.json b/samples/charts/data-chart/composite-chart/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/composite-chart/angular.json +++ b/samples/charts/data-chart/composite-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/composite-chart/package.json b/samples/charts/data-chart/composite-chart/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/composite-chart/package.json +++ b/samples/charts/data-chart/composite-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/composite-chart/sandbox.config.json b/samples/charts/data-chart/composite-chart/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/composite-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/composite-chart/src/app/app.component.html b/samples/charts/data-chart/composite-chart/src/app.component.html similarity index 100% rename from samples/charts/data-chart/composite-chart/src/app/app.component.html rename to samples/charts/data-chart/composite-chart/src/app.component.html diff --git a/samples/charts/data-chart/composite-chart/src/app/app.component.scss b/samples/charts/data-chart/composite-chart/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/composite-chart/src/app/app.component.scss rename to samples/charts/data-chart/composite-chart/src/app.component.scss diff --git a/samples/charts/data-chart/composite-chart/src/app/app.component.ts b/samples/charts/data-chart/composite-chart/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/composite-chart/src/app/app.component.ts rename to samples/charts/data-chart/composite-chart/src/app.component.ts diff --git a/samples/charts/data-chart/composite-chart/src/app/app.module.ts b/samples/charts/data-chart/composite-chart/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/composite-chart/src/app/app.module.ts rename to samples/charts/data-chart/composite-chart/src/app.module.ts diff --git a/samples/charts/data-chart/composite-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/composite-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/composite-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/composite-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/composite-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/composite-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/composite-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/composite-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/composite-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/composite-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/composite-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/composite-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/composite-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/composite-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/composite-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/composite-chart/src/main.ts b/samples/charts/data-chart/composite-chart/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/composite-chart/src/main.ts +++ b/samples/charts/data-chart/composite-chart/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/composite-chart/tsconfig.app.json b/samples/charts/data-chart/composite-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/composite-chart/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/data-chart/composite-chart/tsconfig.json b/samples/charts/data-chart/composite-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/composite-chart/tsconfig.json +++ b/samples/charts/data-chart/composite-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/crosshair-layer-styling/.codesandbox/Dockerfile b/samples/charts/data-chart/crosshair-layer-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/crosshair-layer-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/crosshair-layer-styling/.codesandbox/tasks.json b/samples/charts/data-chart/crosshair-layer-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/crosshair-layer-styling/.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/data-chart/crosshair-layer-styling/.stackblitzrc b/samples/charts/data-chart/crosshair-layer-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/crosshair-layer-styling/.stackblitzrc +++ b/samples/charts/data-chart/crosshair-layer-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/crosshair-layer-styling/angular.json b/samples/charts/data-chart/crosshair-layer-styling/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/crosshair-layer-styling/angular.json +++ b/samples/charts/data-chart/crosshair-layer-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/crosshair-layer-styling/package.json b/samples/charts/data-chart/crosshair-layer-styling/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/crosshair-layer-styling/package.json +++ b/samples/charts/data-chart/crosshair-layer-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/crosshair-layer-styling/sandbox.config.json b/samples/charts/data-chart/crosshair-layer-styling/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/crosshair-layer-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/crosshair-layer-styling/src/app/app.component.html b/samples/charts/data-chart/crosshair-layer-styling/src/app.component.html similarity index 100% rename from samples/charts/data-chart/crosshair-layer-styling/src/app/app.component.html rename to samples/charts/data-chart/crosshair-layer-styling/src/app.component.html diff --git a/samples/charts/data-chart/crosshair-layer-styling/src/app/app.component.scss b/samples/charts/data-chart/crosshair-layer-styling/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/crosshair-layer-styling/src/app/app.component.scss rename to samples/charts/data-chart/crosshair-layer-styling/src/app.component.scss diff --git a/samples/charts/data-chart/crosshair-layer-styling/src/app/app.component.ts b/samples/charts/data-chart/crosshair-layer-styling/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/crosshair-layer-styling/src/app/app.component.ts rename to samples/charts/data-chart/crosshair-layer-styling/src/app.component.ts diff --git a/samples/charts/data-chart/crosshair-layer-styling/src/app/app.module.ts b/samples/charts/data-chart/crosshair-layer-styling/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/crosshair-layer-styling/src/app/app.module.ts rename to samples/charts/data-chart/crosshair-layer-styling/src/app.module.ts diff --git a/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.app.json b/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.base.json b/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.spec.json b/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.worker.json b/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/crosshair-layer-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/crosshair-layer-styling/src/main.ts b/samples/charts/data-chart/crosshair-layer-styling/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/crosshair-layer-styling/src/main.ts +++ b/samples/charts/data-chart/crosshair-layer-styling/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/crosshair-layer-styling/tsconfig.app.json b/samples/charts/data-chart/crosshair-layer-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/crosshair-layer-styling/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/data-chart/crosshair-layer-styling/tsconfig.json b/samples/charts/data-chart/crosshair-layer-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/crosshair-layer-styling/tsconfig.json +++ b/samples/charts/data-chart/crosshair-layer-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/custom-drawing-annotations/.codesandbox/Dockerfile b/samples/charts/data-chart/custom-drawing-annotations/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/custom-drawing-annotations/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/custom-drawing-annotations/.codesandbox/tasks.json b/samples/charts/data-chart/custom-drawing-annotations/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/custom-drawing-annotations/.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/data-chart/custom-drawing-annotations/.stackblitzrc b/samples/charts/data-chart/custom-drawing-annotations/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/custom-drawing-annotations/.stackblitzrc +++ b/samples/charts/data-chart/custom-drawing-annotations/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/custom-drawing-annotations/angular.json b/samples/charts/data-chart/custom-drawing-annotations/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/custom-drawing-annotations/angular.json +++ b/samples/charts/data-chart/custom-drawing-annotations/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/custom-drawing-annotations/package.json b/samples/charts/data-chart/custom-drawing-annotations/package.json index 2f591a834..692bec68c 100644 --- a/samples/charts/data-chart/custom-drawing-annotations/package.json +++ b/samples/charts/data-chart/custom-drawing-annotations/package.json @@ -7,40 +7,40 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/custom-drawing-annotations/sandbox.config.json b/samples/charts/data-chart/custom-drawing-annotations/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/custom-drawing-annotations/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/custom-drawing-annotations/src/app/StocksHistory.ts b/samples/charts/data-chart/custom-drawing-annotations/src/StocksHistory.ts similarity index 100% rename from samples/charts/data-chart/custom-drawing-annotations/src/app/StocksHistory.ts rename to samples/charts/data-chart/custom-drawing-annotations/src/StocksHistory.ts diff --git a/samples/charts/data-chart/custom-drawing-annotations/src/app/app.component.html b/samples/charts/data-chart/custom-drawing-annotations/src/app.component.html similarity index 100% rename from samples/charts/data-chart/custom-drawing-annotations/src/app/app.component.html rename to samples/charts/data-chart/custom-drawing-annotations/src/app.component.html diff --git a/samples/charts/data-chart/custom-drawing-annotations/src/app/app.component.scss b/samples/charts/data-chart/custom-drawing-annotations/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/custom-drawing-annotations/src/app/app.component.scss rename to samples/charts/data-chart/custom-drawing-annotations/src/app.component.scss diff --git a/samples/charts/data-chart/custom-drawing-annotations/src/app/app.component.ts b/samples/charts/data-chart/custom-drawing-annotations/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/custom-drawing-annotations/src/app/app.component.ts rename to samples/charts/data-chart/custom-drawing-annotations/src/app.component.ts diff --git a/samples/charts/data-chart/custom-drawing-annotations/src/app/app.module.ts b/samples/charts/data-chart/custom-drawing-annotations/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/custom-drawing-annotations/src/app/app.module.ts rename to samples/charts/data-chart/custom-drawing-annotations/src/app.module.ts diff --git a/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.app.json b/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.base.json b/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.spec.json b/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.worker.json b/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/custom-drawing-annotations/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/custom-drawing-annotations/src/main.ts b/samples/charts/data-chart/custom-drawing-annotations/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/custom-drawing-annotations/src/main.ts +++ b/samples/charts/data-chart/custom-drawing-annotations/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/custom-drawing-annotations/tsconfig.app.json b/samples/charts/data-chart/custom-drawing-annotations/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/custom-drawing-annotations/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/data-chart/custom-drawing-annotations/tsconfig.json b/samples/charts/data-chart/custom-drawing-annotations/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/custom-drawing-annotations/tsconfig.json +++ b/samples/charts/data-chart/custom-drawing-annotations/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/custom-editing-data/.codesandbox/Dockerfile b/samples/charts/data-chart/custom-editing-data/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/custom-editing-data/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/custom-editing-data/.codesandbox/tasks.json b/samples/charts/data-chart/custom-editing-data/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/custom-editing-data/.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/data-chart/custom-editing-data/.stackblitzrc b/samples/charts/data-chart/custom-editing-data/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/custom-editing-data/.stackblitzrc +++ b/samples/charts/data-chart/custom-editing-data/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/custom-editing-data/angular.json b/samples/charts/data-chart/custom-editing-data/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/custom-editing-data/angular.json +++ b/samples/charts/data-chart/custom-editing-data/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/custom-editing-data/package.json b/samples/charts/data-chart/custom-editing-data/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/custom-editing-data/package.json +++ b/samples/charts/data-chart/custom-editing-data/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/custom-editing-data/sandbox.config.json b/samples/charts/data-chart/custom-editing-data/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/custom-editing-data/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/custom-editing-data/src/app/EditableDataSource.ts b/samples/charts/data-chart/custom-editing-data/src/EditableDataSource.ts similarity index 100% rename from samples/charts/data-chart/custom-editing-data/src/app/EditableDataSource.ts rename to samples/charts/data-chart/custom-editing-data/src/EditableDataSource.ts diff --git a/samples/charts/data-chart/custom-editing-data/src/app/app.component.html b/samples/charts/data-chart/custom-editing-data/src/app.component.html similarity index 100% rename from samples/charts/data-chart/custom-editing-data/src/app/app.component.html rename to samples/charts/data-chart/custom-editing-data/src/app.component.html diff --git a/samples/charts/data-chart/custom-editing-data/src/app/app.component.scss b/samples/charts/data-chart/custom-editing-data/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/custom-editing-data/src/app/app.component.scss rename to samples/charts/data-chart/custom-editing-data/src/app.component.scss diff --git a/samples/charts/data-chart/custom-editing-data/src/app/app.component.ts b/samples/charts/data-chart/custom-editing-data/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/custom-editing-data/src/app/app.component.ts rename to samples/charts/data-chart/custom-editing-data/src/app.component.ts diff --git a/samples/charts/data-chart/custom-editing-data/src/app/app.module.ts b/samples/charts/data-chart/custom-editing-data/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/custom-editing-data/src/app/app.module.ts rename to samples/charts/data-chart/custom-editing-data/src/app.module.ts diff --git a/samples/charts/data-chart/custom-editing-data/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/custom-editing-data/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/custom-editing-data/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.app.json b/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.base.json b/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.spec.json b/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.worker.json b/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/custom-editing-data/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/custom-editing-data/src/main.ts b/samples/charts/data-chart/custom-editing-data/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/custom-editing-data/src/main.ts +++ b/samples/charts/data-chart/custom-editing-data/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/custom-editing-data/tsconfig.app.json b/samples/charts/data-chart/custom-editing-data/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/custom-editing-data/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/data-chart/custom-editing-data/tsconfig.json b/samples/charts/data-chart/custom-editing-data/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/custom-editing-data/tsconfig.json +++ b/samples/charts/data-chart/custom-editing-data/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/dash-array-axes/.codesandbox/Dockerfile b/samples/charts/data-chart/dash-array-axes/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/dash-array-axes/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-axes/.codesandbox/tasks.json b/samples/charts/data-chart/dash-array-axes/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/dash-array-axes/.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/data-chart/dash-array-axes/.stackblitzrc b/samples/charts/data-chart/dash-array-axes/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/dash-array-axes/.stackblitzrc +++ b/samples/charts/data-chart/dash-array-axes/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-axes/angular.json b/samples/charts/data-chart/dash-array-axes/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/dash-array-axes/angular.json +++ b/samples/charts/data-chart/dash-array-axes/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/dash-array-axes/package.json b/samples/charts/data-chart/dash-array-axes/package.json index 1be6b88e2..2b3760a42 100644 --- a/samples/charts/data-chart/dash-array-axes/package.json +++ b/samples/charts/data-chart/dash-array-axes/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "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", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/dash-array-axes/sandbox.config.json b/samples/charts/data-chart/dash-array-axes/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/dash-array-axes/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-axes/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/dash-array-axes/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/dash-array-axes/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.app.json b/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.base.json b/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.spec.json b/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.worker.json b/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/dash-array-axes/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-axes/tsconfig.app.json b/samples/charts/data-chart/dash-array-axes/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/dash-array-axes/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/data-chart/dash-array-axes/tsconfig.json b/samples/charts/data-chart/dash-array-axes/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/dash-array-axes/tsconfig.json +++ b/samples/charts/data-chart/dash-array-axes/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/dash-array-series/.codesandbox/Dockerfile b/samples/charts/data-chart/dash-array-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/dash-array-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-series/.codesandbox/tasks.json b/samples/charts/data-chart/dash-array-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/dash-array-series/.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/data-chart/dash-array-series/.stackblitzrc b/samples/charts/data-chart/dash-array-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/dash-array-series/.stackblitzrc +++ b/samples/charts/data-chart/dash-array-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-series/angular.json b/samples/charts/data-chart/dash-array-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/dash-array-series/angular.json +++ b/samples/charts/data-chart/dash-array-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/dash-array-series/package.json b/samples/charts/data-chart/dash-array-series/package.json index 1be6b88e2..2b3760a42 100644 --- a/samples/charts/data-chart/dash-array-series/package.json +++ b/samples/charts/data-chart/dash-array-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "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", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/dash-array-series/sandbox.config.json b/samples/charts/data-chart/dash-array-series/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/dash-array-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/dash-array-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/dash-array-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/dash-array-series/src/config/tsconfig.app.json b/samples/charts/data-chart/dash-array-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/dash-array-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-series/src/config/tsconfig.base.json b/samples/charts/data-chart/dash-array-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/dash-array-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/dash-array-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/dash-array-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/dash-array-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/dash-array-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/dash-array-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-series/tsconfig.app.json b/samples/charts/data-chart/dash-array-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/dash-array-series/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/data-chart/dash-array-series/tsconfig.json b/samples/charts/data-chart/dash-array-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/dash-array-series/tsconfig.json +++ b/samples/charts/data-chart/dash-array-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/dash-array-tickmarks/.codesandbox/Dockerfile b/samples/charts/data-chart/dash-array-tickmarks/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/dash-array-tickmarks/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-tickmarks/.codesandbox/tasks.json b/samples/charts/data-chart/dash-array-tickmarks/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/dash-array-tickmarks/.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/data-chart/dash-array-tickmarks/.stackblitzrc b/samples/charts/data-chart/dash-array-tickmarks/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/dash-array-tickmarks/.stackblitzrc +++ b/samples/charts/data-chart/dash-array-tickmarks/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-tickmarks/angular.json b/samples/charts/data-chart/dash-array-tickmarks/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/dash-array-tickmarks/angular.json +++ b/samples/charts/data-chart/dash-array-tickmarks/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/dash-array-tickmarks/package.json b/samples/charts/data-chart/dash-array-tickmarks/package.json index 1be6b88e2..2b3760a42 100644 --- a/samples/charts/data-chart/dash-array-tickmarks/package.json +++ b/samples/charts/data-chart/dash-array-tickmarks/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "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", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/dash-array-tickmarks/sandbox.config.json b/samples/charts/data-chart/dash-array-tickmarks/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/dash-array-tickmarks/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.app.json b/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.base.json b/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.spec.json b/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.worker.json b/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/dash-array-tickmarks/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-tickmarks/tsconfig.app.json b/samples/charts/data-chart/dash-array-tickmarks/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/dash-array-tickmarks/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/data-chart/dash-array-tickmarks/tsconfig.json b/samples/charts/data-chart/dash-array-tickmarks/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/dash-array-tickmarks/tsconfig.json +++ b/samples/charts/data-chart/dash-array-tickmarks/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/dash-array-trendline/.codesandbox/Dockerfile b/samples/charts/data-chart/dash-array-trendline/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/dash-array-trendline/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-trendline/.codesandbox/tasks.json b/samples/charts/data-chart/dash-array-trendline/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/dash-array-trendline/.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/data-chart/dash-array-trendline/.stackblitzrc b/samples/charts/data-chart/dash-array-trendline/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/dash-array-trendline/.stackblitzrc +++ b/samples/charts/data-chart/dash-array-trendline/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-trendline/angular.json b/samples/charts/data-chart/dash-array-trendline/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/dash-array-trendline/angular.json +++ b/samples/charts/data-chart/dash-array-trendline/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/dash-array-trendline/package.json b/samples/charts/data-chart/dash-array-trendline/package.json index 1be6b88e2..2b3760a42 100644 --- a/samples/charts/data-chart/dash-array-trendline/package.json +++ b/samples/charts/data-chart/dash-array-trendline/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "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", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/dash-array-trendline/sandbox.config.json b/samples/charts/data-chart/dash-array-trendline/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/dash-array-trendline/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.app.json b/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.base.json b/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.spec.json b/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.worker.json b/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/dash-array-trendline/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/dash-array-trendline/tsconfig.app.json b/samples/charts/data-chart/dash-array-trendline/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/dash-array-trendline/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/data-chart/dash-array-trendline/tsconfig.json b/samples/charts/data-chart/dash-array-trendline/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/dash-array-trendline/tsconfig.json +++ b/samples/charts/data-chart/dash-array-trendline/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/data-legend-grouping-and-highlighting/.codesandbox/Dockerfile b/samples/charts/data-chart/data-legend-grouping-and-highlighting/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/data-legend-grouping-and-highlighting/.codesandbox/tasks.json b/samples/charts/data-chart/data-legend-grouping-and-highlighting/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/.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/data-chart/data-legend-grouping-and-highlighting/.stackblitzrc b/samples/charts/data-chart/data-legend-grouping-and-highlighting/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/data-legend-grouping-and-highlighting/angular.json b/samples/charts/data-chart/data-legend-grouping-and-highlighting/angular.json new file mode 100644 index 000000000..ff6803cf7 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/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/data-chart/data-legend-grouping-and-highlighting/package.json b/samples/charts/data-chart/data-legend-grouping-and-highlighting/package.json new file mode 100644 index 000000000..35620b319 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/package.json @@ -0,0 +1,44 @@ +{ + "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": "^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", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.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.14.4" + }, + "devDependencies": { + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@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.3.3" + } +} diff --git a/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/OlympicMedalsTopCountriesWithTotals.ts b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/OlympicMedalsTopCountriesWithTotals.ts new file mode 100644 index 000000000..63183e6f0 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/OlympicMedalsTopCountriesWithTotals.ts @@ -0,0 +1,92 @@ +export class OlympicMedalsTopCountriesWithTotalsItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public year: string; + public america: number; + public americaGold: number; + public china: number; + public chinaGold: number; + public russia: number; + public russiaGold: number; + public total: number; + +} +export class OlympicMedalsTopCountriesWithTotals extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `1996`, + america: 148, + americaGold: 50, + china: 110, + chinaGold: 40, + russia: 95, + russiaGold: 20, + total: 353 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2000`, + america: 142, + americaGold: 40, + china: 115, + chinaGold: 45, + russia: 91, + russiaGold: 40, + total: 348 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2004`, + america: 134, + americaGold: 35, + china: 121, + chinaGold: 55, + russia: 86, + russiaGold: 25, + total: 341 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2008`, + america: 131, + americaGold: 20, + china: 129, + chinaGold: 35, + russia: 65, + russiaGold: 35, + total: 325 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2012`, + america: 135, + americaGold: 25, + china: 115, + chinaGold: 50, + russia: 77, + russiaGold: 15, + total: 327 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2016`, + america: 146, + americaGold: 45, + china: 112, + chinaGold: 45, + russia: 88, + russiaGold: 30, + total: 346 + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/app.component.html b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/app.component.html new file mode 100644 index 000000000..cefd8cb52 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/app.component.html @@ -0,0 +1,68 @@ +
+
+ + +
+
+ + + + + + + + + + + + +
+
diff --git a/samples/charts/data-chart/final-value-layer-styling/src/app/app.component.scss b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/final-value-layer-styling/src/app/app.component.scss rename to samples/charts/data-chart/data-legend-grouping-and-highlighting/src/app.component.scss diff --git a/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/app.component.ts b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/app.component.ts new file mode 100644 index 000000000..92a707fb1 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/app.component.ts @@ -0,0 +1,64 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { ComponentRenderer, LegendDescriptionModule, NumberAbbreviatorDescriptionModule, DataChartCoreDescriptionModule, DataChartCategoryDescriptionModule, DataChartInteractivityDescriptionModule, DataLegendDescriptionModule, DataChartAnnotationDescriptionModule } from 'igniteui-angular-core'; +import { OlympicMedalsTopCountriesWithTotalsItem, OlympicMedalsTopCountriesWithTotals } from './OlympicMedalsTopCountriesWithTotals'; +import { IgxDataLegendComponent, IgxDataChartComponent, IgxCategoryXAxisComponent, IgxNumericYAxisComponent, IgxColumnSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxDataLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDataChartComponent + @ViewChild("xAxis", { static: true } ) + private xAxis: IgxCategoryXAxisComponent + @ViewChild("yAxis", { static: true } ) + private yAxis: IgxNumericYAxisComponent + @ViewChild("columnSeries1", { static: true } ) + private columnSeries1: IgxColumnSeriesComponent + @ViewChild("columnSeries2", { static: true } ) + private columnSeries2: IgxColumnSeriesComponent + @ViewChild("columnSeries3", { static: true } ) + private columnSeries3: IgxColumnSeriesComponent + private _olympicMedalsTopCountriesWithTotals: OlympicMedalsTopCountriesWithTotals = null; + public get olympicMedalsTopCountriesWithTotals(): OlympicMedalsTopCountriesWithTotals { + if (this._olympicMedalsTopCountriesWithTotals == null) + { + this._olympicMedalsTopCountriesWithTotals = new OlympicMedalsTopCountriesWithTotals(); + } + return this._olympicMedalsTopCountriesWithTotals; + } + + private _componentRenderer: ComponentRenderer = null; + public get renderer(): ComponentRenderer { + if (this._componentRenderer == null) { + this._componentRenderer = new ComponentRenderer(); + var context = this._componentRenderer.context; + LegendDescriptionModule.register(context); + NumberAbbreviatorDescriptionModule.register(context); + DataChartCoreDescriptionModule.register(context); + DataChartCategoryDescriptionModule.register(context); + DataChartInteractivityDescriptionModule.register(context); + DataLegendDescriptionModule.register(context); + DataChartAnnotationDescriptionModule.register(context); + } + return this._componentRenderer; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/app.module.ts b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/app.module.ts new file mode 100644 index 000000000..4014dfdbf --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/app.module.ts @@ -0,0 +1,31 @@ +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 { IgxLegendModule, IgxNumberAbbreviatorModule, IgxDataChartCoreModule, IgxDataChartCategoryModule, IgxDataChartInteractivityModule, IgxDataLegendModule, IgxDataChartAnnotationModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxLegendModule, + IgxNumberAbbreviatorModule, + IgxDataChartCoreModule, + IgxDataChartCategoryModule, + IgxDataChartInteractivityModule, + IgxDataLegendModule, + IgxDataChartAnnotationModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/environments/environment.prod.ts b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/environments/environment.ts b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/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/data-chart/data-legend-grouping-and-highlighting/src/index.html b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/main.ts b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/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/data-chart/data-legend-grouping-and-highlighting/src/polyfills.ts b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/data-legend-grouping-and-highlighting/src/styles.scss b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/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/data-chart/data-legend-grouping-and-highlighting/src/typings.d.ts b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/data-chart/data-legend-grouping-and-highlighting/tsconfig.app.json b/samples/charts/data-chart/data-legend-grouping-and-highlighting/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/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/data-chart/data-legend-grouping-and-highlighting/tsconfig.json b/samples/charts/data-chart/data-legend-grouping-and-highlighting/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/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/data-chart/data-legend-grouping-and-highlighting/tslint.json b/samples/charts/data-chart/data-legend-grouping-and-highlighting/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping-and-highlighting/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"] + } +} diff --git a/samples/charts/data-chart/data-legend-grouping/.codesandbox/Dockerfile b/samples/charts/data-chart/data-legend-grouping/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/data-legend-grouping/.codesandbox/tasks.json b/samples/charts/data-chart/data-legend-grouping/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/.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/data-chart/data-legend-grouping/.stackblitzrc b/samples/charts/data-chart/data-legend-grouping/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/data-legend-grouping/angular.json b/samples/charts/data-chart/data-legend-grouping/angular.json new file mode 100644 index 000000000..ff6803cf7 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/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/data-chart/data-legend-grouping/package.json b/samples/charts/data-chart/data-legend-grouping/package.json new file mode 100644 index 000000000..35620b319 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/package.json @@ -0,0 +1,44 @@ +{ + "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": "^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", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.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.14.4" + }, + "devDependencies": { + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@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.3.3" + } +} diff --git a/samples/charts/data-chart/data-legend-grouping/src/OlympicMedalsTopCountriesWithTotals.ts b/samples/charts/data-chart/data-legend-grouping/src/OlympicMedalsTopCountriesWithTotals.ts new file mode 100644 index 000000000..63183e6f0 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/src/OlympicMedalsTopCountriesWithTotals.ts @@ -0,0 +1,92 @@ +export class OlympicMedalsTopCountriesWithTotalsItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public year: string; + public america: number; + public americaGold: number; + public china: number; + public chinaGold: number; + public russia: number; + public russiaGold: number; + public total: number; + +} +export class OlympicMedalsTopCountriesWithTotals extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `1996`, + america: 148, + americaGold: 50, + china: 110, + chinaGold: 40, + russia: 95, + russiaGold: 20, + total: 353 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2000`, + america: 142, + americaGold: 40, + china: 115, + chinaGold: 45, + russia: 91, + russiaGold: 40, + total: 348 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2004`, + america: 134, + americaGold: 35, + china: 121, + chinaGold: 55, + russia: 86, + russiaGold: 25, + total: 341 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2008`, + america: 131, + americaGold: 20, + china: 129, + chinaGold: 35, + russia: 65, + russiaGold: 35, + total: 325 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2012`, + america: 135, + americaGold: 25, + china: 115, + chinaGold: 50, + russia: 77, + russiaGold: 15, + total: 327 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2016`, + america: 146, + americaGold: 45, + china: 112, + chinaGold: 45, + russia: 88, + russiaGold: 30, + total: 346 + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/data-chart/data-legend-grouping/src/app.component.html b/samples/charts/data-chart/data-legend-grouping/src/app.component.html new file mode 100644 index 000000000..cea9e8230 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/src/app.component.html @@ -0,0 +1,56 @@ +
+
+ + +
+
+ + + + + + + + + + + + +
+
diff --git a/samples/charts/data-chart/legends/src/app/app.component.scss b/samples/charts/data-chart/data-legend-grouping/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/legends/src/app/app.component.scss rename to samples/charts/data-chart/data-legend-grouping/src/app.component.scss diff --git a/samples/charts/data-chart/data-legend-grouping/src/app.component.ts b/samples/charts/data-chart/data-legend-grouping/src/app.component.ts new file mode 100644 index 000000000..92a707fb1 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/src/app.component.ts @@ -0,0 +1,64 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { ComponentRenderer, LegendDescriptionModule, NumberAbbreviatorDescriptionModule, DataChartCoreDescriptionModule, DataChartCategoryDescriptionModule, DataChartInteractivityDescriptionModule, DataLegendDescriptionModule, DataChartAnnotationDescriptionModule } from 'igniteui-angular-core'; +import { OlympicMedalsTopCountriesWithTotalsItem, OlympicMedalsTopCountriesWithTotals } from './OlympicMedalsTopCountriesWithTotals'; +import { IgxDataLegendComponent, IgxDataChartComponent, IgxCategoryXAxisComponent, IgxNumericYAxisComponent, IgxColumnSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxDataLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDataChartComponent + @ViewChild("xAxis", { static: true } ) + private xAxis: IgxCategoryXAxisComponent + @ViewChild("yAxis", { static: true } ) + private yAxis: IgxNumericYAxisComponent + @ViewChild("columnSeries1", { static: true } ) + private columnSeries1: IgxColumnSeriesComponent + @ViewChild("columnSeries2", { static: true } ) + private columnSeries2: IgxColumnSeriesComponent + @ViewChild("columnSeries3", { static: true } ) + private columnSeries3: IgxColumnSeriesComponent + private _olympicMedalsTopCountriesWithTotals: OlympicMedalsTopCountriesWithTotals = null; + public get olympicMedalsTopCountriesWithTotals(): OlympicMedalsTopCountriesWithTotals { + if (this._olympicMedalsTopCountriesWithTotals == null) + { + this._olympicMedalsTopCountriesWithTotals = new OlympicMedalsTopCountriesWithTotals(); + } + return this._olympicMedalsTopCountriesWithTotals; + } + + private _componentRenderer: ComponentRenderer = null; + public get renderer(): ComponentRenderer { + if (this._componentRenderer == null) { + this._componentRenderer = new ComponentRenderer(); + var context = this._componentRenderer.context; + LegendDescriptionModule.register(context); + NumberAbbreviatorDescriptionModule.register(context); + DataChartCoreDescriptionModule.register(context); + DataChartCategoryDescriptionModule.register(context); + DataChartInteractivityDescriptionModule.register(context); + DataLegendDescriptionModule.register(context); + DataChartAnnotationDescriptionModule.register(context); + } + return this._componentRenderer; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/samples/charts/data-chart/data-legend-grouping/src/app.module.ts b/samples/charts/data-chart/data-legend-grouping/src/app.module.ts new file mode 100644 index 000000000..4014dfdbf --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/src/app.module.ts @@ -0,0 +1,31 @@ +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 { IgxLegendModule, IgxNumberAbbreviatorModule, IgxDataChartCoreModule, IgxDataChartCategoryModule, IgxDataChartInteractivityModule, IgxDataLegendModule, IgxDataChartAnnotationModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxLegendModule, + IgxNumberAbbreviatorModule, + IgxDataChartCoreModule, + IgxDataChartCategoryModule, + IgxDataChartInteractivityModule, + IgxDataLegendModule, + IgxDataChartAnnotationModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/data-chart/data-legend-grouping/src/environments/environment.prod.ts b/samples/charts/data-chart/data-legend-grouping/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/data-chart/data-legend-grouping/src/environments/environment.ts b/samples/charts/data-chart/data-legend-grouping/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/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/data-chart/data-legend-grouping/src/index.html b/samples/charts/data-chart/data-legend-grouping/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/data-chart/data-legend-grouping/src/main.ts b/samples/charts/data-chart/data-legend-grouping/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/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/data-chart/data-legend-grouping/src/polyfills.ts b/samples/charts/data-chart/data-legend-grouping/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/data-legend-grouping/src/styles.scss b/samples/charts/data-chart/data-legend-grouping/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/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/data-chart/data-legend-grouping/src/typings.d.ts b/samples/charts/data-chart/data-legend-grouping/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/data-chart/data-legend-grouping/tsconfig.app.json b/samples/charts/data-chart/data-legend-grouping/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/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/data-chart/data-legend-grouping/tsconfig.json b/samples/charts/data-chart/data-legend-grouping/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/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/data-chart/data-legend-grouping/tslint.json b/samples/charts/data-chart/data-legend-grouping/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/data-chart/data-legend-grouping/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"] + } +} diff --git a/samples/charts/data-chart/data-legend-styling/.codesandbox/Dockerfile b/samples/charts/data-chart/data-legend-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/data-legend-styling/.codesandbox/tasks.json b/samples/charts/data-chart/data-legend-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/.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/data-chart/data-legend-styling/.stackblitzrc b/samples/charts/data-chart/data-legend-styling/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/data-legend-styling/angular.json b/samples/charts/data-chart/data-legend-styling/angular.json new file mode 100644 index 000000000..ff6803cf7 --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/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/data-chart/data-legend-styling/package.json b/samples/charts/data-chart/data-legend-styling/package.json new file mode 100644 index 000000000..35620b319 --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/package.json @@ -0,0 +1,44 @@ +{ + "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": "^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", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.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.14.4" + }, + "devDependencies": { + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@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.3.3" + } +} diff --git a/samples/charts/data-chart/data-legend-styling/src/OlympicMedalsTopCountriesWithTotals.ts b/samples/charts/data-chart/data-legend-styling/src/OlympicMedalsTopCountriesWithTotals.ts new file mode 100644 index 000000000..63183e6f0 --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/src/OlympicMedalsTopCountriesWithTotals.ts @@ -0,0 +1,92 @@ +export class OlympicMedalsTopCountriesWithTotalsItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public year: string; + public america: number; + public americaGold: number; + public china: number; + public chinaGold: number; + public russia: number; + public russiaGold: number; + public total: number; + +} +export class OlympicMedalsTopCountriesWithTotals extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `1996`, + america: 148, + americaGold: 50, + china: 110, + chinaGold: 40, + russia: 95, + russiaGold: 20, + total: 353 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2000`, + america: 142, + americaGold: 40, + china: 115, + chinaGold: 45, + russia: 91, + russiaGold: 40, + total: 348 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2004`, + america: 134, + americaGold: 35, + china: 121, + chinaGold: 55, + russia: 86, + russiaGold: 25, + total: 341 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2008`, + america: 131, + americaGold: 20, + china: 129, + chinaGold: 35, + russia: 65, + russiaGold: 35, + total: 325 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2012`, + america: 135, + americaGold: 25, + china: 115, + chinaGold: 50, + russia: 77, + russiaGold: 15, + total: 327 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2016`, + america: 146, + americaGold: 45, + china: 112, + chinaGold: 45, + russia: 88, + russiaGold: 30, + total: 346 + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/data-chart/data-legend-styling/src/app.component.html b/samples/charts/data-chart/data-legend-styling/src/app.component.html new file mode 100644 index 000000000..dc9c7a2e2 --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/src/app.component.html @@ -0,0 +1,50 @@ +
+
+ + +
+
+ + + + + + + + + + +
+
diff --git a/samples/charts/data-chart/polar-chart-types/src/app/app.component.scss b/samples/charts/data-chart/data-legend-styling/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/polar-chart-types/src/app/app.component.scss rename to samples/charts/data-chart/data-legend-styling/src/app.component.scss diff --git a/samples/charts/data-chart/data-legend-styling/src/app.component.ts b/samples/charts/data-chart/data-legend-styling/src/app.component.ts new file mode 100644 index 000000000..868110677 --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/src/app.component.ts @@ -0,0 +1,62 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { ComponentRenderer, LegendDescriptionModule, NumberAbbreviatorDescriptionModule, DataChartCoreDescriptionModule, DataChartCategoryDescriptionModule, DataChartInteractivityDescriptionModule, DataLegendDescriptionModule, DataChartAnnotationDescriptionModule } from 'igniteui-angular-core'; +import { OlympicMedalsTopCountriesWithTotalsItem, OlympicMedalsTopCountriesWithTotals } from './OlympicMedalsTopCountriesWithTotals'; +import { IgxDataLegendComponent, IgxDataChartComponent, IgxCategoryXAxisComponent, IgxNumericYAxisComponent, IgxColumnSeriesComponent, IgxDataToolTipLayerComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxDataLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDataChartComponent + @ViewChild("xAxis", { static: true } ) + private xAxis: IgxCategoryXAxisComponent + @ViewChild("yAxis", { static: true } ) + private yAxis: IgxNumericYAxisComponent + @ViewChild("columnSeries1", { static: true } ) + private columnSeries1: IgxColumnSeriesComponent + @ViewChild("dataToolTipLayer", { static: true } ) + private dataToolTipLayer: IgxDataToolTipLayerComponent + private _olympicMedalsTopCountriesWithTotals: OlympicMedalsTopCountriesWithTotals = null; + public get olympicMedalsTopCountriesWithTotals(): OlympicMedalsTopCountriesWithTotals { + if (this._olympicMedalsTopCountriesWithTotals == null) + { + this._olympicMedalsTopCountriesWithTotals = new OlympicMedalsTopCountriesWithTotals(); + } + return this._olympicMedalsTopCountriesWithTotals; + } + + private _componentRenderer: ComponentRenderer = null; + public get renderer(): ComponentRenderer { + if (this._componentRenderer == null) { + this._componentRenderer = new ComponentRenderer(); + var context = this._componentRenderer.context; + LegendDescriptionModule.register(context); + NumberAbbreviatorDescriptionModule.register(context); + DataChartCoreDescriptionModule.register(context); + DataChartCategoryDescriptionModule.register(context); + DataChartInteractivityDescriptionModule.register(context); + DataLegendDescriptionModule.register(context); + DataChartAnnotationDescriptionModule.register(context); + } + return this._componentRenderer; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/samples/charts/data-chart/data-legend-styling/src/app.module.ts b/samples/charts/data-chart/data-legend-styling/src/app.module.ts new file mode 100644 index 000000000..4014dfdbf --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/src/app.module.ts @@ -0,0 +1,31 @@ +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 { IgxLegendModule, IgxNumberAbbreviatorModule, IgxDataChartCoreModule, IgxDataChartCategoryModule, IgxDataChartInteractivityModule, IgxDataLegendModule, IgxDataChartAnnotationModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxLegendModule, + IgxNumberAbbreviatorModule, + IgxDataChartCoreModule, + IgxDataChartCategoryModule, + IgxDataChartInteractivityModule, + IgxDataLegendModule, + IgxDataChartAnnotationModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/data-chart/data-legend-styling/src/environments/environment.prod.ts b/samples/charts/data-chart/data-legend-styling/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/data-chart/data-legend-styling/src/environments/environment.ts b/samples/charts/data-chart/data-legend-styling/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/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/data-chart/data-legend-styling/src/index.html b/samples/charts/data-chart/data-legend-styling/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/data-chart/data-legend-styling/src/main.ts b/samples/charts/data-chart/data-legend-styling/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/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/data-chart/data-legend-styling/src/polyfills.ts b/samples/charts/data-chart/data-legend-styling/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/data-legend-styling/src/styles.scss b/samples/charts/data-chart/data-legend-styling/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/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/data-chart/data-legend-styling/src/typings.d.ts b/samples/charts/data-chart/data-legend-styling/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/data-chart/data-legend-styling/tsconfig.app.json b/samples/charts/data-chart/data-legend-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/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/data-chart/data-legend-styling/tsconfig.json b/samples/charts/data-chart/data-legend-styling/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/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/data-chart/data-legend-styling/tslint.json b/samples/charts/data-chart/data-legend-styling/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/data-chart/data-legend-styling/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"] + } +} diff --git a/samples/charts/data-chart/data-legend/.codesandbox/Dockerfile b/samples/charts/data-chart/data-legend/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/data-legend/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/data-legend/.codesandbox/tasks.json b/samples/charts/data-chart/data-legend/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/data-legend/.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/data-chart/data-legend/.stackblitzrc b/samples/charts/data-chart/data-legend/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/data-legend/.stackblitzrc +++ b/samples/charts/data-chart/data-legend/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/data-legend/angular.json b/samples/charts/data-chart/data-legend/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/data-legend/angular.json +++ b/samples/charts/data-chart/data-legend/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/data-legend/package.json b/samples/charts/data-chart/data-legend/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/data-legend/package.json +++ b/samples/charts/data-chart/data-legend/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/data-legend/sandbox.config.json b/samples/charts/data-chart/data-legend/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/data-legend/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/data-legend/src/CountryDemographicEurope.ts b/samples/charts/data-chart/data-legend/src/CountryDemographicEurope.ts index 28a586e0f..7b578d2a7 100644 --- a/samples/charts/data-chart/data-legend/src/CountryDemographicEurope.ts +++ b/samples/charts/data-chart/data-legend/src/CountryDemographicEurope.ts @@ -83,7 +83,7 @@ export class CountryDemographicEurope extends Array) { + Object.assign(this, init); + } + + public year: string; + public america: number; + public americaGold: number; + public china: number; + public chinaGold: number; + public russia: number; + public russiaGold: number; + public total: number; + +} +export class OlympicMedalsTopCountriesWithTotals extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `1996`, + america: 148, + americaGold: 50, + china: 110, + chinaGold: 40, + russia: 95, + russiaGold: 20, + total: 353 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2000`, + america: 142, + americaGold: 40, + china: 115, + chinaGold: 45, + russia: 91, + russiaGold: 40, + total: 348 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2004`, + america: 134, + americaGold: 35, + china: 121, + chinaGold: 55, + russia: 86, + russiaGold: 25, + total: 341 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2008`, + america: 131, + americaGold: 20, + china: 129, + chinaGold: 35, + russia: 65, + russiaGold: 35, + total: 325 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2012`, + america: 135, + americaGold: 25, + china: 115, + chinaGold: 50, + russia: 77, + russiaGold: 15, + total: 327 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2016`, + america: 146, + americaGold: 45, + china: 112, + chinaGold: 45, + russia: 88, + russiaGold: 30, + total: 346 + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/app.component.html b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/app.component.html new file mode 100644 index 000000000..7e21a56ee --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/app.component.html @@ -0,0 +1,66 @@ +
+
+ + + + + + + + + + + + + + +
+
diff --git a/samples/charts/data-chart/radial-chart-types/src/app/app.component.scss b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/radial-chart-types/src/app/app.component.scss rename to samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/app.component.scss diff --git a/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/app.component.ts b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/app.component.ts new file mode 100644 index 000000000..883055c04 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/app.component.ts @@ -0,0 +1,62 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { ComponentRenderer, PropertyEditorPanelDescriptionModule, DataChartCoreDescriptionModule, DataChartCategoryDescriptionModule, DataChartInteractivityDescriptionModule, DataChartAnnotationDescriptionModule } from 'igniteui-angular-core'; +import { OlympicMedalsTopCountriesWithTotalsItem, OlympicMedalsTopCountriesWithTotals } from './OlympicMedalsTopCountriesWithTotals'; +import { IgxDataChartComponent, IgxCategoryXAxisComponent, IgxNumericYAxisComponent, IgxColumnSeriesComponent, IgxDataToolTipLayerComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("chart", { static: true } ) + private chart: IgxDataChartComponent + @ViewChild("xAxis", { static: true } ) + private xAxis: IgxCategoryXAxisComponent + @ViewChild("yAxis", { static: true } ) + private yAxis: IgxNumericYAxisComponent + @ViewChild("columnSeries1", { static: true } ) + private columnSeries1: IgxColumnSeriesComponent + @ViewChild("columnSeries2", { static: true } ) + private columnSeries2: IgxColumnSeriesComponent + @ViewChild("columnSeries3", { static: true } ) + private columnSeries3: IgxColumnSeriesComponent + @ViewChild("dataToolTipLayer", { static: true } ) + private dataToolTipLayer: IgxDataToolTipLayerComponent + private _olympicMedalsTopCountriesWithTotals: OlympicMedalsTopCountriesWithTotals = null; + public get olympicMedalsTopCountriesWithTotals(): OlympicMedalsTopCountriesWithTotals { + if (this._olympicMedalsTopCountriesWithTotals == null) + { + this._olympicMedalsTopCountriesWithTotals = new OlympicMedalsTopCountriesWithTotals(); + } + return this._olympicMedalsTopCountriesWithTotals; + } + + private _componentRenderer: ComponentRenderer = null; + public get renderer(): ComponentRenderer { + if (this._componentRenderer == null) { + this._componentRenderer = new ComponentRenderer(); + var context = this._componentRenderer.context; + PropertyEditorPanelDescriptionModule.register(context); + DataChartCoreDescriptionModule.register(context); + DataChartCategoryDescriptionModule.register(context); + DataChartInteractivityDescriptionModule.register(context); + DataChartAnnotationDescriptionModule.register(context); + } + return this._componentRenderer; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/app.module.ts b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/app.module.ts new file mode 100644 index 000000000..f2aa4328f --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/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 { IgxPropertyEditorPanelModule } from 'igniteui-angular-layouts'; +import { IgxDataChartCoreModule, IgxDataChartCategoryModule, IgxDataChartInteractivityModule, IgxDataChartAnnotationModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxPropertyEditorPanelModule, + IgxDataChartCoreModule, + IgxDataChartCategoryModule, + IgxDataChartInteractivityModule, + IgxDataChartAnnotationModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/environments/environment.prod.ts b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/environments/environment.ts b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/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/data-chart/data-tooltip-grouping-and-highlighting/src/index.html b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/main.ts b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/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/data-chart/data-tooltip-grouping-and-highlighting/src/polyfills.ts b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/data-tooltip-grouping-and-highlighting/src/styles.scss b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/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/data-chart/data-tooltip-grouping-and-highlighting/src/typings.d.ts b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/tsconfig.app.json b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/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/data-chart/data-tooltip-grouping-and-highlighting/tsconfig.json b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/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/data-chart/data-tooltip-grouping-and-highlighting/tslint.json b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping-and-highlighting/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"] + } +} diff --git a/samples/charts/data-chart/data-tooltip-grouping/.codesandbox/Dockerfile b/samples/charts/data-chart/data-tooltip-grouping/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/data-tooltip-grouping/.codesandbox/tasks.json b/samples/charts/data-chart/data-tooltip-grouping/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/.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/data-chart/data-tooltip-grouping/.stackblitzrc b/samples/charts/data-chart/data-tooltip-grouping/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/data-tooltip-grouping/angular.json b/samples/charts/data-chart/data-tooltip-grouping/angular.json new file mode 100644 index 000000000..ff6803cf7 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/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/data-chart/data-tooltip-grouping/package.json b/samples/charts/data-chart/data-tooltip-grouping/package.json new file mode 100644 index 000000000..b18743c2c --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/package.json @@ -0,0 +1,46 @@ +{ + "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": "^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", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.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.14.4" + }, + "devDependencies": { + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@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.3.3" + } +} diff --git a/samples/charts/data-chart/data-tooltip-grouping/src/OlympicMedalsTopCountriesWithTotals.ts b/samples/charts/data-chart/data-tooltip-grouping/src/OlympicMedalsTopCountriesWithTotals.ts new file mode 100644 index 000000000..63183e6f0 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/src/OlympicMedalsTopCountriesWithTotals.ts @@ -0,0 +1,92 @@ +export class OlympicMedalsTopCountriesWithTotalsItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public year: string; + public america: number; + public americaGold: number; + public china: number; + public chinaGold: number; + public russia: number; + public russiaGold: number; + public total: number; + +} +export class OlympicMedalsTopCountriesWithTotals extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `1996`, + america: 148, + americaGold: 50, + china: 110, + chinaGold: 40, + russia: 95, + russiaGold: 20, + total: 353 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2000`, + america: 142, + americaGold: 40, + china: 115, + chinaGold: 45, + russia: 91, + russiaGold: 40, + total: 348 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2004`, + america: 134, + americaGold: 35, + china: 121, + chinaGold: 55, + russia: 86, + russiaGold: 25, + total: 341 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2008`, + america: 131, + americaGold: 20, + china: 129, + chinaGold: 35, + russia: 65, + russiaGold: 35, + total: 325 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2012`, + america: 135, + americaGold: 25, + china: 115, + chinaGold: 50, + russia: 77, + russiaGold: 15, + total: 327 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2016`, + america: 146, + americaGold: 45, + china: 112, + chinaGold: 45, + russia: 88, + russiaGold: 30, + total: 346 + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/data-chart/data-tooltip-grouping/src/app.component.html b/samples/charts/data-chart/data-tooltip-grouping/src/app.component.html new file mode 100644 index 000000000..7522afd73 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/src/app.component.html @@ -0,0 +1,56 @@ +
+
+ + + + + + + + + + + + + + +
+
diff --git a/samples/charts/data-chart/series-animations/src/app/app.component.scss b/samples/charts/data-chart/data-tooltip-grouping/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/series-animations/src/app/app.component.scss rename to samples/charts/data-chart/data-tooltip-grouping/src/app.component.scss diff --git a/samples/charts/data-chart/data-tooltip-grouping/src/app.component.ts b/samples/charts/data-chart/data-tooltip-grouping/src/app.component.ts new file mode 100644 index 000000000..883055c04 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/src/app.component.ts @@ -0,0 +1,62 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { ComponentRenderer, PropertyEditorPanelDescriptionModule, DataChartCoreDescriptionModule, DataChartCategoryDescriptionModule, DataChartInteractivityDescriptionModule, DataChartAnnotationDescriptionModule } from 'igniteui-angular-core'; +import { OlympicMedalsTopCountriesWithTotalsItem, OlympicMedalsTopCountriesWithTotals } from './OlympicMedalsTopCountriesWithTotals'; +import { IgxDataChartComponent, IgxCategoryXAxisComponent, IgxNumericYAxisComponent, IgxColumnSeriesComponent, IgxDataToolTipLayerComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("chart", { static: true } ) + private chart: IgxDataChartComponent + @ViewChild("xAxis", { static: true } ) + private xAxis: IgxCategoryXAxisComponent + @ViewChild("yAxis", { static: true } ) + private yAxis: IgxNumericYAxisComponent + @ViewChild("columnSeries1", { static: true } ) + private columnSeries1: IgxColumnSeriesComponent + @ViewChild("columnSeries2", { static: true } ) + private columnSeries2: IgxColumnSeriesComponent + @ViewChild("columnSeries3", { static: true } ) + private columnSeries3: IgxColumnSeriesComponent + @ViewChild("dataToolTipLayer", { static: true } ) + private dataToolTipLayer: IgxDataToolTipLayerComponent + private _olympicMedalsTopCountriesWithTotals: OlympicMedalsTopCountriesWithTotals = null; + public get olympicMedalsTopCountriesWithTotals(): OlympicMedalsTopCountriesWithTotals { + if (this._olympicMedalsTopCountriesWithTotals == null) + { + this._olympicMedalsTopCountriesWithTotals = new OlympicMedalsTopCountriesWithTotals(); + } + return this._olympicMedalsTopCountriesWithTotals; + } + + private _componentRenderer: ComponentRenderer = null; + public get renderer(): ComponentRenderer { + if (this._componentRenderer == null) { + this._componentRenderer = new ComponentRenderer(); + var context = this._componentRenderer.context; + PropertyEditorPanelDescriptionModule.register(context); + DataChartCoreDescriptionModule.register(context); + DataChartCategoryDescriptionModule.register(context); + DataChartInteractivityDescriptionModule.register(context); + DataChartAnnotationDescriptionModule.register(context); + } + return this._componentRenderer; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/samples/charts/data-chart/data-tooltip-grouping/src/app.module.ts b/samples/charts/data-chart/data-tooltip-grouping/src/app.module.ts new file mode 100644 index 000000000..f2aa4328f --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/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 { IgxPropertyEditorPanelModule } from 'igniteui-angular-layouts'; +import { IgxDataChartCoreModule, IgxDataChartCategoryModule, IgxDataChartInteractivityModule, IgxDataChartAnnotationModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxPropertyEditorPanelModule, + IgxDataChartCoreModule, + IgxDataChartCategoryModule, + IgxDataChartInteractivityModule, + IgxDataChartAnnotationModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/data-chart/data-tooltip-grouping/src/environments/environment.prod.ts b/samples/charts/data-chart/data-tooltip-grouping/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/data-chart/data-tooltip-grouping/src/environments/environment.ts b/samples/charts/data-chart/data-tooltip-grouping/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/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/data-chart/data-tooltip-grouping/src/index.html b/samples/charts/data-chart/data-tooltip-grouping/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/data-chart/data-tooltip-grouping/src/main.ts b/samples/charts/data-chart/data-tooltip-grouping/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/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/data-chart/data-tooltip-grouping/src/polyfills.ts b/samples/charts/data-chart/data-tooltip-grouping/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/data-tooltip-grouping/src/styles.scss b/samples/charts/data-chart/data-tooltip-grouping/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/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/data-chart/data-tooltip-grouping/src/typings.d.ts b/samples/charts/data-chart/data-tooltip-grouping/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/data-chart/data-tooltip-grouping/tsconfig.app.json b/samples/charts/data-chart/data-tooltip-grouping/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/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/data-chart/data-tooltip-grouping/tsconfig.json b/samples/charts/data-chart/data-tooltip-grouping/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/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/data-chart/data-tooltip-grouping/tslint.json b/samples/charts/data-chart/data-tooltip-grouping/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-grouping/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"] + } +} diff --git a/samples/charts/data-chart/data-tooltip-styling/.codesandbox/Dockerfile b/samples/charts/data-chart/data-tooltip-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/data-tooltip-styling/.codesandbox/tasks.json b/samples/charts/data-chart/data-tooltip-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/.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/data-chart/data-tooltip-styling/.stackblitzrc b/samples/charts/data-chart/data-tooltip-styling/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/data-tooltip-styling/angular.json b/samples/charts/data-chart/data-tooltip-styling/angular.json new file mode 100644 index 000000000..ff6803cf7 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/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/data-chart/data-tooltip-styling/package.json b/samples/charts/data-chart/data-tooltip-styling/package.json new file mode 100644 index 000000000..b18743c2c --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/package.json @@ -0,0 +1,46 @@ +{ + "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": "^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", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.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.14.4" + }, + "devDependencies": { + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@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.3.3" + } +} diff --git a/samples/charts/data-chart/data-tooltip-styling/src/OlympicMedalsTopCountriesWithTotals.ts b/samples/charts/data-chart/data-tooltip-styling/src/OlympicMedalsTopCountriesWithTotals.ts new file mode 100644 index 000000000..63183e6f0 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/src/OlympicMedalsTopCountriesWithTotals.ts @@ -0,0 +1,92 @@ +export class OlympicMedalsTopCountriesWithTotalsItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public year: string; + public america: number; + public americaGold: number; + public china: number; + public chinaGold: number; + public russia: number; + public russiaGold: number; + public total: number; + +} +export class OlympicMedalsTopCountriesWithTotals extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `1996`, + america: 148, + americaGold: 50, + china: 110, + chinaGold: 40, + russia: 95, + russiaGold: 20, + total: 353 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2000`, + america: 142, + americaGold: 40, + china: 115, + chinaGold: 45, + russia: 91, + russiaGold: 40, + total: 348 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2004`, + america: 134, + americaGold: 35, + china: 121, + chinaGold: 55, + russia: 86, + russiaGold: 25, + total: 341 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2008`, + america: 131, + americaGold: 20, + china: 129, + chinaGold: 35, + russia: 65, + russiaGold: 35, + total: 325 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2012`, + america: 135, + americaGold: 25, + china: 115, + chinaGold: 50, + russia: 77, + russiaGold: 15, + total: 327 + }), + new OlympicMedalsTopCountriesWithTotalsItem( + { + year: `2016`, + america: 146, + americaGold: 45, + china: 112, + chinaGold: 45, + russia: 88, + russiaGold: 30, + total: 346 + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/data-chart/data-tooltip-styling/src/app.component.html b/samples/charts/data-chart/data-tooltip-styling/src/app.component.html new file mode 100644 index 000000000..7df3aecb4 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/src/app.component.html @@ -0,0 +1,42 @@ +
+
+ + + + + + + + + + +
+
diff --git a/samples/charts/data-chart/series-annotations/src/app/app.component.scss b/samples/charts/data-chart/data-tooltip-styling/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/series-annotations/src/app/app.component.scss rename to samples/charts/data-chart/data-tooltip-styling/src/app.component.scss diff --git a/samples/charts/data-chart/data-tooltip-styling/src/app.component.ts b/samples/charts/data-chart/data-tooltip-styling/src/app.component.ts new file mode 100644 index 000000000..c898f34f9 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/src/app.component.ts @@ -0,0 +1,58 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { ComponentRenderer, PropertyEditorPanelDescriptionModule, DataChartCoreDescriptionModule, DataChartCategoryDescriptionModule, DataChartInteractivityDescriptionModule, DataChartAnnotationDescriptionModule } from 'igniteui-angular-core'; +import { OlympicMedalsTopCountriesWithTotalsItem, OlympicMedalsTopCountriesWithTotals } from './OlympicMedalsTopCountriesWithTotals'; +import { IgxDataChartComponent, IgxCategoryXAxisComponent, IgxNumericYAxisComponent, IgxColumnSeriesComponent, IgxDataToolTipLayerComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("chart", { static: true } ) + private chart: IgxDataChartComponent + @ViewChild("xAxis", { static: true } ) + private xAxis: IgxCategoryXAxisComponent + @ViewChild("yAxis", { static: true } ) + private yAxis: IgxNumericYAxisComponent + @ViewChild("columnSeries1", { static: true } ) + private columnSeries1: IgxColumnSeriesComponent + @ViewChild("dataToolTipLayer", { static: true } ) + private dataToolTipLayer: IgxDataToolTipLayerComponent + private _olympicMedalsTopCountriesWithTotals: OlympicMedalsTopCountriesWithTotals = null; + public get olympicMedalsTopCountriesWithTotals(): OlympicMedalsTopCountriesWithTotals { + if (this._olympicMedalsTopCountriesWithTotals == null) + { + this._olympicMedalsTopCountriesWithTotals = new OlympicMedalsTopCountriesWithTotals(); + } + return this._olympicMedalsTopCountriesWithTotals; + } + + private _componentRenderer: ComponentRenderer = null; + public get renderer(): ComponentRenderer { + if (this._componentRenderer == null) { + this._componentRenderer = new ComponentRenderer(); + var context = this._componentRenderer.context; + PropertyEditorPanelDescriptionModule.register(context); + DataChartCoreDescriptionModule.register(context); + DataChartCategoryDescriptionModule.register(context); + DataChartInteractivityDescriptionModule.register(context); + DataChartAnnotationDescriptionModule.register(context); + } + return this._componentRenderer; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/samples/charts/data-chart/data-tooltip-styling/src/app.module.ts b/samples/charts/data-chart/data-tooltip-styling/src/app.module.ts new file mode 100644 index 000000000..f2aa4328f --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/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 { IgxPropertyEditorPanelModule } from 'igniteui-angular-layouts'; +import { IgxDataChartCoreModule, IgxDataChartCategoryModule, IgxDataChartInteractivityModule, IgxDataChartAnnotationModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxPropertyEditorPanelModule, + IgxDataChartCoreModule, + IgxDataChartCategoryModule, + IgxDataChartInteractivityModule, + IgxDataChartAnnotationModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/data-chart/data-tooltip-styling/src/environments/environment.prod.ts b/samples/charts/data-chart/data-tooltip-styling/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/data-chart/data-tooltip-styling/src/environments/environment.ts b/samples/charts/data-chart/data-tooltip-styling/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/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/data-chart/data-tooltip-styling/src/index.html b/samples/charts/data-chart/data-tooltip-styling/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/data-chart/data-tooltip-styling/src/main.ts b/samples/charts/data-chart/data-tooltip-styling/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/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/data-chart/data-tooltip-styling/src/polyfills.ts b/samples/charts/data-chart/data-tooltip-styling/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/data-tooltip-styling/src/styles.scss b/samples/charts/data-chart/data-tooltip-styling/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/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/data-chart/data-tooltip-styling/src/typings.d.ts b/samples/charts/data-chart/data-tooltip-styling/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/data-chart/data-tooltip-styling/tsconfig.app.json b/samples/charts/data-chart/data-tooltip-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/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/data-chart/data-tooltip-styling/tsconfig.json b/samples/charts/data-chart/data-tooltip-styling/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/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/data-chart/data-tooltip-styling/tslint.json b/samples/charts/data-chart/data-tooltip-styling/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip-styling/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"] + } +} diff --git a/samples/charts/data-chart/data-tooltip/.codesandbox/Dockerfile b/samples/charts/data-chart/data-tooltip/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/data-tooltip/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/data-tooltip/.codesandbox/tasks.json b/samples/charts/data-chart/data-tooltip/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/data-tooltip/.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/data-chart/data-tooltip/.stackblitzrc b/samples/charts/data-chart/data-tooltip/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/data-tooltip/.stackblitzrc +++ b/samples/charts/data-chart/data-tooltip/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/data-tooltip/angular.json b/samples/charts/data-chart/data-tooltip/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/data-tooltip/angular.json +++ b/samples/charts/data-chart/data-tooltip/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/data-tooltip/package.json b/samples/charts/data-chart/data-tooltip/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/data-tooltip/package.json +++ b/samples/charts/data-chart/data-tooltip/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/data-tooltip/sandbox.config.json b/samples/charts/data-chart/data-tooltip/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/data-tooltip/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/data-tooltip/src/CountryDemographicEurope.ts b/samples/charts/data-chart/data-tooltip/src/CountryDemographicEurope.ts index 28a586e0f..7b578d2a7 100644 --- a/samples/charts/data-chart/data-tooltip/src/CountryDemographicEurope.ts +++ b/samples/charts/data-chart/data-tooltip/src/CountryDemographicEurope.ts @@ -83,7 +83,7 @@ export class CountryDemographicEurope extends Array { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/final-value-layer-styling/tsconfig.app.json b/samples/charts/data-chart/final-value-layer-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/final-value-layer-styling/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/data-chart/final-value-layer-styling/tsconfig.json b/samples/charts/data-chart/final-value-layer-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/final-value-layer-styling/tsconfig.json +++ b/samples/charts/data-chart/final-value-layer-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/financial-price-series/.codesandbox/Dockerfile b/samples/charts/data-chart/financial-price-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/financial-price-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/financial-price-series/.codesandbox/tasks.json b/samples/charts/data-chart/financial-price-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/financial-price-series/.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/data-chart/financial-price-series/.stackblitzrc b/samples/charts/data-chart/financial-price-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/financial-price-series/.stackblitzrc +++ b/samples/charts/data-chart/financial-price-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/financial-price-series/angular.json b/samples/charts/data-chart/financial-price-series/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/financial-price-series/angular.json +++ b/samples/charts/data-chart/financial-price-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/financial-price-series/package.json b/samples/charts/data-chart/financial-price-series/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/financial-price-series/package.json +++ b/samples/charts/data-chart/financial-price-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/financial-price-series/sandbox.config.json b/samples/charts/data-chart/financial-price-series/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/financial-price-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/financial-price-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/financial-price-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/financial-price-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/financial-price-series/src/config/tsconfig.app.json b/samples/charts/data-chart/financial-price-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/financial-price-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/financial-price-series/src/config/tsconfig.base.json b/samples/charts/data-chart/financial-price-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/financial-price-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/financial-price-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/financial-price-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/financial-price-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/financial-price-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/financial-price-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/financial-price-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/financial-price-series/tsconfig.app.json b/samples/charts/data-chart/financial-price-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/financial-price-series/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/data-chart/financial-price-series/tsconfig.json b/samples/charts/data-chart/financial-price-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/financial-price-series/tsconfig.json +++ b/samples/charts/data-chart/financial-price-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/format-specifiers/.codesandbox/Dockerfile b/samples/charts/data-chart/format-specifiers/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/format-specifiers/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/format-specifiers/.codesandbox/tasks.json b/samples/charts/data-chart/format-specifiers/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/format-specifiers/.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/data-chart/format-specifiers/.stackblitzrc b/samples/charts/data-chart/format-specifiers/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/format-specifiers/.stackblitzrc +++ b/samples/charts/data-chart/format-specifiers/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/format-specifiers/angular.json b/samples/charts/data-chart/format-specifiers/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/format-specifiers/angular.json +++ b/samples/charts/data-chart/format-specifiers/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/format-specifiers/package.json b/samples/charts/data-chart/format-specifiers/package.json index 1be6b88e2..2b3760a42 100644 --- a/samples/charts/data-chart/format-specifiers/package.json +++ b/samples/charts/data-chart/format-specifiers/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "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", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/format-specifiers/sandbox.config.json b/samples/charts/data-chart/format-specifiers/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/format-specifiers/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/format-specifiers/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/format-specifiers/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/format-specifiers/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/format-specifiers/src/config/tsconfig.app.json b/samples/charts/data-chart/format-specifiers/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/format-specifiers/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/format-specifiers/src/config/tsconfig.base.json b/samples/charts/data-chart/format-specifiers/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/format-specifiers/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/format-specifiers/src/config/tsconfig.spec.json b/samples/charts/data-chart/format-specifiers/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/format-specifiers/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/format-specifiers/src/config/tsconfig.worker.json b/samples/charts/data-chart/format-specifiers/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/format-specifiers/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/format-specifiers/tsconfig.app.json b/samples/charts/data-chart/format-specifiers/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/format-specifiers/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/data-chart/format-specifiers/tsconfig.json b/samples/charts/data-chart/format-specifiers/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/format-specifiers/tsconfig.json +++ b/samples/charts/data-chart/format-specifiers/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/legends/.codesandbox/Dockerfile b/samples/charts/data-chart/legends/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/legends/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/legends/.codesandbox/tasks.json b/samples/charts/data-chart/legends/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/legends/.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/data-chart/legends/.stackblitzrc b/samples/charts/data-chart/legends/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/legends/.stackblitzrc +++ b/samples/charts/data-chart/legends/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/legends/angular.json b/samples/charts/data-chart/legends/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/legends/angular.json +++ b/samples/charts/data-chart/legends/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/legends/package.json b/samples/charts/data-chart/legends/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/legends/package.json +++ b/samples/charts/data-chart/legends/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/legends/sandbox.config.json b/samples/charts/data-chart/legends/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/legends/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/legends/src/app/SharedData.ts b/samples/charts/data-chart/legends/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/legends/src/app/SharedData.ts rename to samples/charts/data-chart/legends/src/SharedData.ts diff --git a/samples/charts/data-chart/legends/src/app/app.component.html b/samples/charts/data-chart/legends/src/app.component.html similarity index 100% rename from samples/charts/data-chart/legends/src/app/app.component.html rename to samples/charts/data-chart/legends/src/app.component.html diff --git a/samples/charts/data-chart/series-marker-template/src/app/app.component.scss b/samples/charts/data-chart/legends/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/series-marker-template/src/app/app.component.scss rename to samples/charts/data-chart/legends/src/app.component.scss diff --git a/samples/charts/data-chart/legends/src/app/app.component.ts b/samples/charts/data-chart/legends/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/legends/src/app/app.component.ts rename to samples/charts/data-chart/legends/src/app.component.ts diff --git a/samples/charts/data-chart/legends/src/app/app.module.ts b/samples/charts/data-chart/legends/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/legends/src/app/app.module.ts rename to samples/charts/data-chart/legends/src/app.module.ts diff --git a/samples/charts/data-chart/legends/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/legends/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/legends/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/legends/src/config/tsconfig.app.json b/samples/charts/data-chart/legends/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/legends/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/legends/src/config/tsconfig.base.json b/samples/charts/data-chart/legends/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/legends/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/legends/src/config/tsconfig.spec.json b/samples/charts/data-chart/legends/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/legends/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/legends/src/config/tsconfig.worker.json b/samples/charts/data-chart/legends/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/legends/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/legends/src/main.ts b/samples/charts/data-chart/legends/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/legends/src/main.ts +++ b/samples/charts/data-chart/legends/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/legends/tsconfig.app.json b/samples/charts/data-chart/legends/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/legends/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/data-chart/legends/tsconfig.json b/samples/charts/data-chart/legends/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/legends/tsconfig.json +++ b/samples/charts/data-chart/legends/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/polar-area-chart-styling/.codesandbox/Dockerfile b/samples/charts/data-chart/polar-area-chart-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/polar-area-chart-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/polar-area-chart-styling/.codesandbox/tasks.json b/samples/charts/data-chart/polar-area-chart-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/polar-area-chart-styling/.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/data-chart/polar-area-chart-styling/.stackblitzrc b/samples/charts/data-chart/polar-area-chart-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/polar-area-chart-styling/.stackblitzrc +++ b/samples/charts/data-chart/polar-area-chart-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-area-chart-styling/angular.json b/samples/charts/data-chart/polar-area-chart-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/polar-area-chart-styling/angular.json +++ b/samples/charts/data-chart/polar-area-chart-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/polar-area-chart-styling/package.json b/samples/charts/data-chart/polar-area-chart-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/polar-area-chart-styling/package.json +++ b/samples/charts/data-chart/polar-area-chart-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/polar-area-chart-styling/sandbox.config.json b/samples/charts/data-chart/polar-area-chart-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/polar-area-chart-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.app.json b/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.base.json b/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.spec.json b/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.worker.json b/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/polar-area-chart-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/polar-area-chart-styling/tsconfig.app.json b/samples/charts/data-chart/polar-area-chart-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/polar-area-chart-styling/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/data-chart/polar-area-chart-styling/tsconfig.json b/samples/charts/data-chart/polar-area-chart-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/polar-area-chart-styling/tsconfig.json +++ b/samples/charts/data-chart/polar-area-chart-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/polar-area-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/polar-area-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/polar-area-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/polar-area-chart/.codesandbox/tasks.json b/samples/charts/data-chart/polar-area-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/polar-area-chart/.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/data-chart/polar-area-chart/.stackblitzrc b/samples/charts/data-chart/polar-area-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/polar-area-chart/.stackblitzrc +++ b/samples/charts/data-chart/polar-area-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-area-chart/angular.json b/samples/charts/data-chart/polar-area-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/polar-area-chart/angular.json +++ b/samples/charts/data-chart/polar-area-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/polar-area-chart/package.json b/samples/charts/data-chart/polar-area-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/polar-area-chart/package.json +++ b/samples/charts/data-chart/polar-area-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/polar-area-chart/sandbox.config.json b/samples/charts/data-chart/polar-area-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/polar-area-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-area-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/polar-area-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/polar-area-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/polar-area-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/polar-area-chart/tsconfig.app.json b/samples/charts/data-chart/polar-area-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/polar-area-chart/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/data-chart/polar-area-chart/tsconfig.json b/samples/charts/data-chart/polar-area-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/polar-area-chart/tsconfig.json +++ b/samples/charts/data-chart/polar-area-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/polar-chart-types/.codesandbox/Dockerfile b/samples/charts/data-chart/polar-chart-types/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/polar-chart-types/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/polar-chart-types/.codesandbox/tasks.json b/samples/charts/data-chart/polar-chart-types/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/polar-chart-types/.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/data-chart/polar-chart-types/.stackblitzrc b/samples/charts/data-chart/polar-chart-types/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/polar-chart-types/.stackblitzrc +++ b/samples/charts/data-chart/polar-chart-types/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-chart-types/angular.json b/samples/charts/data-chart/polar-chart-types/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/polar-chart-types/angular.json +++ b/samples/charts/data-chart/polar-chart-types/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/polar-chart-types/package.json b/samples/charts/data-chart/polar-chart-types/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/polar-chart-types/package.json +++ b/samples/charts/data-chart/polar-chart-types/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/polar-chart-types/sandbox.config.json b/samples/charts/data-chart/polar-chart-types/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/polar-chart-types/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-chart-types/src/app/SamplePolarData.ts b/samples/charts/data-chart/polar-chart-types/src/SamplePolarData.ts similarity index 100% rename from samples/charts/data-chart/polar-chart-types/src/app/SamplePolarData.ts rename to samples/charts/data-chart/polar-chart-types/src/SamplePolarData.ts diff --git a/samples/charts/data-chart/polar-chart-types/src/app/app.component.html b/samples/charts/data-chart/polar-chart-types/src/app.component.html similarity index 100% rename from samples/charts/data-chart/polar-chart-types/src/app/app.component.html rename to samples/charts/data-chart/polar-chart-types/src/app.component.html diff --git a/samples/charts/data-chart/series-markers/src/app/app.component.scss b/samples/charts/data-chart/polar-chart-types/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/series-markers/src/app/app.component.scss rename to samples/charts/data-chart/polar-chart-types/src/app.component.scss diff --git a/samples/charts/data-chart/polar-chart-types/src/app/app.component.ts b/samples/charts/data-chart/polar-chart-types/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/polar-chart-types/src/app/app.component.ts rename to samples/charts/data-chart/polar-chart-types/src/app.component.ts diff --git a/samples/charts/data-chart/polar-chart-types/src/app/app.module.ts b/samples/charts/data-chart/polar-chart-types/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/polar-chart-types/src/app/app.module.ts rename to samples/charts/data-chart/polar-chart-types/src/app.module.ts diff --git a/samples/charts/data-chart/polar-chart-types/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/polar-chart-types/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/polar-chart-types/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.app.json b/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.base.json b/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.spec.json b/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.worker.json b/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/polar-chart-types/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/polar-chart-types/src/main.ts b/samples/charts/data-chart/polar-chart-types/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/polar-chart-types/src/main.ts +++ b/samples/charts/data-chart/polar-chart-types/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/polar-chart-types/tsconfig.app.json b/samples/charts/data-chart/polar-chart-types/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/polar-chart-types/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/data-chart/polar-chart-types/tsconfig.json b/samples/charts/data-chart/polar-chart-types/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/polar-chart-types/tsconfig.json +++ b/samples/charts/data-chart/polar-chart-types/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/polar-line-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/polar-line-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/polar-line-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/polar-line-chart/.codesandbox/tasks.json b/samples/charts/data-chart/polar-line-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/polar-line-chart/.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/data-chart/polar-line-chart/.stackblitzrc b/samples/charts/data-chart/polar-line-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/polar-line-chart/.stackblitzrc +++ b/samples/charts/data-chart/polar-line-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-line-chart/angular.json b/samples/charts/data-chart/polar-line-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/polar-line-chart/angular.json +++ b/samples/charts/data-chart/polar-line-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/polar-line-chart/package.json b/samples/charts/data-chart/polar-line-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/polar-line-chart/package.json +++ b/samples/charts/data-chart/polar-line-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/polar-line-chart/sandbox.config.json b/samples/charts/data-chart/polar-line-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/polar-line-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-line-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/polar-line-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/polar-line-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/polar-line-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/polar-line-chart/tsconfig.app.json b/samples/charts/data-chart/polar-line-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/polar-line-chart/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/data-chart/polar-line-chart/tsconfig.json b/samples/charts/data-chart/polar-line-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/polar-line-chart/tsconfig.json +++ b/samples/charts/data-chart/polar-line-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/polar-scatter-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/polar-scatter-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/polar-scatter-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/polar-scatter-chart/.codesandbox/tasks.json b/samples/charts/data-chart/polar-scatter-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/polar-scatter-chart/.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/data-chart/polar-scatter-chart/.stackblitzrc b/samples/charts/data-chart/polar-scatter-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/polar-scatter-chart/.stackblitzrc +++ b/samples/charts/data-chart/polar-scatter-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-scatter-chart/angular.json b/samples/charts/data-chart/polar-scatter-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/polar-scatter-chart/angular.json +++ b/samples/charts/data-chart/polar-scatter-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/polar-scatter-chart/package.json b/samples/charts/data-chart/polar-scatter-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/polar-scatter-chart/package.json +++ b/samples/charts/data-chart/polar-scatter-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/polar-scatter-chart/sandbox.config.json b/samples/charts/data-chart/polar-scatter-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/polar-scatter-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/polar-scatter-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/polar-scatter-chart/tsconfig.app.json b/samples/charts/data-chart/polar-scatter-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/polar-scatter-chart/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/data-chart/polar-scatter-chart/tsconfig.json b/samples/charts/data-chart/polar-scatter-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/polar-scatter-chart/tsconfig.json +++ b/samples/charts/data-chart/polar-scatter-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/polar-spline-area-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/polar-spline-area-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/polar-spline-area-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/polar-spline-area-chart/.codesandbox/tasks.json b/samples/charts/data-chart/polar-spline-area-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/polar-spline-area-chart/.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/data-chart/polar-spline-area-chart/.stackblitzrc b/samples/charts/data-chart/polar-spline-area-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/polar-spline-area-chart/.stackblitzrc +++ b/samples/charts/data-chart/polar-spline-area-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-spline-area-chart/angular.json b/samples/charts/data-chart/polar-spline-area-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/polar-spline-area-chart/angular.json +++ b/samples/charts/data-chart/polar-spline-area-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/polar-spline-area-chart/package.json b/samples/charts/data-chart/polar-spline-area-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/polar-spline-area-chart/package.json +++ b/samples/charts/data-chart/polar-spline-area-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/polar-spline-area-chart/sandbox.config.json b/samples/charts/data-chart/polar-spline-area-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/polar-spline-area-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/polar-spline-area-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/polar-spline-area-chart/tsconfig.app.json b/samples/charts/data-chart/polar-spline-area-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/polar-spline-area-chart/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/data-chart/polar-spline-area-chart/tsconfig.json b/samples/charts/data-chart/polar-spline-area-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/polar-spline-area-chart/tsconfig.json +++ b/samples/charts/data-chart/polar-spline-area-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/polar-spline-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/polar-spline-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/polar-spline-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/polar-spline-chart/.codesandbox/tasks.json b/samples/charts/data-chart/polar-spline-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/polar-spline-chart/.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/data-chart/polar-spline-chart/.stackblitzrc b/samples/charts/data-chart/polar-spline-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/polar-spline-chart/.stackblitzrc +++ b/samples/charts/data-chart/polar-spline-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-spline-chart/angular.json b/samples/charts/data-chart/polar-spline-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/polar-spline-chart/angular.json +++ b/samples/charts/data-chart/polar-spline-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/polar-spline-chart/package.json b/samples/charts/data-chart/polar-spline-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/polar-spline-chart/package.json +++ b/samples/charts/data-chart/polar-spline-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/polar-spline-chart/sandbox.config.json b/samples/charts/data-chart/polar-spline-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/polar-spline-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/polar-spline-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/polar-spline-chart/tsconfig.app.json b/samples/charts/data-chart/polar-spline-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/polar-spline-chart/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/data-chart/polar-spline-chart/tsconfig.json b/samples/charts/data-chart/polar-spline-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/polar-spline-chart/tsconfig.json +++ b/samples/charts/data-chart/polar-spline-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/radial-area-chart-styling/.codesandbox/Dockerfile b/samples/charts/data-chart/radial-area-chart-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/radial-area-chart-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/radial-area-chart-styling/.codesandbox/tasks.json b/samples/charts/data-chart/radial-area-chart-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/radial-area-chart-styling/.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/data-chart/radial-area-chart-styling/.stackblitzrc b/samples/charts/data-chart/radial-area-chart-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/radial-area-chart-styling/.stackblitzrc +++ b/samples/charts/data-chart/radial-area-chart-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-area-chart-styling/angular.json b/samples/charts/data-chart/radial-area-chart-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/radial-area-chart-styling/angular.json +++ b/samples/charts/data-chart/radial-area-chart-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/radial-area-chart-styling/package.json b/samples/charts/data-chart/radial-area-chart-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/radial-area-chart-styling/package.json +++ b/samples/charts/data-chart/radial-area-chart-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/radial-area-chart-styling/sandbox.config.json b/samples/charts/data-chart/radial-area-chart-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/radial-area-chart-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.app.json b/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.base.json b/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.spec.json b/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.worker.json b/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/radial-area-chart-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/radial-area-chart-styling/tsconfig.app.json b/samples/charts/data-chart/radial-area-chart-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/radial-area-chart-styling/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/data-chart/radial-area-chart-styling/tsconfig.json b/samples/charts/data-chart/radial-area-chart-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/radial-area-chart-styling/tsconfig.json +++ b/samples/charts/data-chart/radial-area-chart-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/radial-area-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/radial-area-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/radial-area-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/radial-area-chart/.codesandbox/tasks.json b/samples/charts/data-chart/radial-area-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/radial-area-chart/.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/data-chart/radial-area-chart/.stackblitzrc b/samples/charts/data-chart/radial-area-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/radial-area-chart/.stackblitzrc +++ b/samples/charts/data-chart/radial-area-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-area-chart/angular.json b/samples/charts/data-chart/radial-area-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/radial-area-chart/angular.json +++ b/samples/charts/data-chart/radial-area-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/radial-area-chart/package.json b/samples/charts/data-chart/radial-area-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/radial-area-chart/package.json +++ b/samples/charts/data-chart/radial-area-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/radial-area-chart/sandbox.config.json b/samples/charts/data-chart/radial-area-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/radial-area-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-area-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/radial-area-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/radial-area-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/radial-area-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/radial-area-chart/tsconfig.app.json b/samples/charts/data-chart/radial-area-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/radial-area-chart/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/data-chart/radial-area-chart/tsconfig.json b/samples/charts/data-chart/radial-area-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/radial-area-chart/tsconfig.json +++ b/samples/charts/data-chart/radial-area-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/radial-chart-types/.codesandbox/Dockerfile b/samples/charts/data-chart/radial-chart-types/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/radial-chart-types/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/radial-chart-types/.codesandbox/tasks.json b/samples/charts/data-chart/radial-chart-types/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/radial-chart-types/.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/data-chart/radial-chart-types/.stackblitzrc b/samples/charts/data-chart/radial-chart-types/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/radial-chart-types/.stackblitzrc +++ b/samples/charts/data-chart/radial-chart-types/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-chart-types/angular.json b/samples/charts/data-chart/radial-chart-types/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/radial-chart-types/angular.json +++ b/samples/charts/data-chart/radial-chart-types/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/radial-chart-types/package.json b/samples/charts/data-chart/radial-chart-types/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/radial-chart-types/package.json +++ b/samples/charts/data-chart/radial-chart-types/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/radial-chart-types/sandbox.config.json b/samples/charts/data-chart/radial-chart-types/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/radial-chart-types/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-chart-types/src/app/SampleRadialData.ts b/samples/charts/data-chart/radial-chart-types/src/SampleRadialData.ts similarity index 100% rename from samples/charts/data-chart/radial-chart-types/src/app/SampleRadialData.ts rename to samples/charts/data-chart/radial-chart-types/src/SampleRadialData.ts diff --git a/samples/charts/data-chart/radial-chart-types/src/app/app.component.html b/samples/charts/data-chart/radial-chart-types/src/app.component.html similarity index 100% rename from samples/charts/data-chart/radial-chart-types/src/app/app.component.html rename to samples/charts/data-chart/radial-chart-types/src/app.component.html diff --git a/samples/charts/data-chart/series-tooltips/src/app/app.component.scss b/samples/charts/data-chart/radial-chart-types/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/series-tooltips/src/app/app.component.scss rename to samples/charts/data-chart/radial-chart-types/src/app.component.scss diff --git a/samples/charts/data-chart/radial-chart-types/src/app/app.component.ts b/samples/charts/data-chart/radial-chart-types/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/radial-chart-types/src/app/app.component.ts rename to samples/charts/data-chart/radial-chart-types/src/app.component.ts diff --git a/samples/charts/data-chart/radial-chart-types/src/app/app.module.ts b/samples/charts/data-chart/radial-chart-types/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/radial-chart-types/src/app/app.module.ts rename to samples/charts/data-chart/radial-chart-types/src/app.module.ts diff --git a/samples/charts/data-chart/radial-chart-types/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/radial-chart-types/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/radial-chart-types/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.app.json b/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.base.json b/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.spec.json b/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.worker.json b/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/radial-chart-types/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/radial-chart-types/src/main.ts b/samples/charts/data-chart/radial-chart-types/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/radial-chart-types/src/main.ts +++ b/samples/charts/data-chart/radial-chart-types/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/radial-chart-types/tsconfig.app.json b/samples/charts/data-chart/radial-chart-types/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/radial-chart-types/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/data-chart/radial-chart-types/tsconfig.json b/samples/charts/data-chart/radial-chart-types/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/radial-chart-types/tsconfig.json +++ b/samples/charts/data-chart/radial-chart-types/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/radial-column-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/radial-column-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/radial-column-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/radial-column-chart/.codesandbox/tasks.json b/samples/charts/data-chart/radial-column-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/radial-column-chart/.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/data-chart/radial-column-chart/.stackblitzrc b/samples/charts/data-chart/radial-column-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/radial-column-chart/.stackblitzrc +++ b/samples/charts/data-chart/radial-column-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-column-chart/angular.json b/samples/charts/data-chart/radial-column-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/radial-column-chart/angular.json +++ b/samples/charts/data-chart/radial-column-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/radial-column-chart/package.json b/samples/charts/data-chart/radial-column-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/radial-column-chart/package.json +++ b/samples/charts/data-chart/radial-column-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/radial-column-chart/sandbox.config.json b/samples/charts/data-chart/radial-column-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/radial-column-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-column-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/radial-column-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/radial-column-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/radial-column-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/radial-column-chart/tsconfig.app.json b/samples/charts/data-chart/radial-column-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/radial-column-chart/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/data-chart/radial-column-chart/tsconfig.json b/samples/charts/data-chart/radial-column-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/radial-column-chart/tsconfig.json +++ b/samples/charts/data-chart/radial-column-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/radial-line-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/radial-line-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/radial-line-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/radial-line-chart/.codesandbox/tasks.json b/samples/charts/data-chart/radial-line-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/radial-line-chart/.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/data-chart/radial-line-chart/.stackblitzrc b/samples/charts/data-chart/radial-line-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/radial-line-chart/.stackblitzrc +++ b/samples/charts/data-chart/radial-line-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-line-chart/angular.json b/samples/charts/data-chart/radial-line-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/radial-line-chart/angular.json +++ b/samples/charts/data-chart/radial-line-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/radial-line-chart/package.json b/samples/charts/data-chart/radial-line-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/radial-line-chart/package.json +++ b/samples/charts/data-chart/radial-line-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/radial-line-chart/sandbox.config.json b/samples/charts/data-chart/radial-line-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/radial-line-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-line-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/radial-line-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/radial-line-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/radial-line-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/radial-line-chart/tsconfig.app.json b/samples/charts/data-chart/radial-line-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/radial-line-chart/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/data-chart/radial-line-chart/tsconfig.json b/samples/charts/data-chart/radial-line-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/radial-line-chart/tsconfig.json +++ b/samples/charts/data-chart/radial-line-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/radial-pie-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/radial-pie-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/radial-pie-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/radial-pie-chart/.codesandbox/tasks.json b/samples/charts/data-chart/radial-pie-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/radial-pie-chart/.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/data-chart/radial-pie-chart/.stackblitzrc b/samples/charts/data-chart/radial-pie-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/radial-pie-chart/.stackblitzrc +++ b/samples/charts/data-chart/radial-pie-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-pie-chart/angular.json b/samples/charts/data-chart/radial-pie-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/radial-pie-chart/angular.json +++ b/samples/charts/data-chart/radial-pie-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/radial-pie-chart/package.json b/samples/charts/data-chart/radial-pie-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/radial-pie-chart/package.json +++ b/samples/charts/data-chart/radial-pie-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/radial-pie-chart/sandbox.config.json b/samples/charts/data-chart/radial-pie-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/radial-pie-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/radial-pie-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/radial-pie-chart/tsconfig.app.json b/samples/charts/data-chart/radial-pie-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/radial-pie-chart/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/data-chart/radial-pie-chart/tsconfig.json b/samples/charts/data-chart/radial-pie-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/radial-pie-chart/tsconfig.json +++ b/samples/charts/data-chart/radial-pie-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/range-area-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/range-area-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/range-area-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/range-area-chart/.codesandbox/tasks.json b/samples/charts/data-chart/range-area-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/range-area-chart/.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/data-chart/range-area-chart/.stackblitzrc b/samples/charts/data-chart/range-area-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/range-area-chart/.stackblitzrc +++ b/samples/charts/data-chart/range-area-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/range-area-chart/angular.json b/samples/charts/data-chart/range-area-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/range-area-chart/angular.json +++ b/samples/charts/data-chart/range-area-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/range-area-chart/package.json b/samples/charts/data-chart/range-area-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/range-area-chart/package.json +++ b/samples/charts/data-chart/range-area-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/range-area-chart/sandbox.config.json b/samples/charts/data-chart/range-area-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/range-area-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/range-area-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/range-area-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/range-area-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/range-area-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/range-area-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/range-area-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/range-area-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/range-area-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/range-area-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/range-area-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/range-area-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/range-area-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/range-area-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/range-area-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/range-area-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/range-area-chart/tsconfig.app.json b/samples/charts/data-chart/range-area-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/range-area-chart/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/data-chart/range-area-chart/tsconfig.json b/samples/charts/data-chart/range-area-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/range-area-chart/tsconfig.json +++ b/samples/charts/data-chart/range-area-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/range-column-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/range-column-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/range-column-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/range-column-chart/.codesandbox/tasks.json b/samples/charts/data-chart/range-column-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/range-column-chart/.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/data-chart/range-column-chart/.stackblitzrc b/samples/charts/data-chart/range-column-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/range-column-chart/.stackblitzrc +++ b/samples/charts/data-chart/range-column-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/range-column-chart/angular.json b/samples/charts/data-chart/range-column-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/range-column-chart/angular.json +++ b/samples/charts/data-chart/range-column-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/range-column-chart/package.json b/samples/charts/data-chart/range-column-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/range-column-chart/package.json +++ b/samples/charts/data-chart/range-column-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/range-column-chart/sandbox.config.json b/samples/charts/data-chart/range-column-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/range-column-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/range-column-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/range-column-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/range-column-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/range-column-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/range-column-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/range-column-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/range-column-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/range-column-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/range-column-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/range-column-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/range-column-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/range-column-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/range-column-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/range-column-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/range-column-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/range-column-chart/tsconfig.app.json b/samples/charts/data-chart/range-column-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/range-column-chart/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/data-chart/range-column-chart/tsconfig.json b/samples/charts/data-chart/range-column-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/range-column-chart/tsconfig.json +++ b/samples/charts/data-chart/range-column-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/scatter-bubble-chart-fill-scale/.codesandbox/Dockerfile b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/.codesandbox/tasks.json b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/.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/data-chart/scatter-bubble-chart-fill-scale/.stackblitzrc b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/.stackblitzrc +++ b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/angular.json b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/angular.json +++ b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/package.json b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/package.json index 45bc6e299..35620b319 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/package.json +++ b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/package.json @@ -7,41 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/src/WorldStats.ts b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/src/WorldStats.ts new file mode 100644 index 000000000..b08f50344 --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/src/WorldStats.ts @@ -0,0 +1,5443 @@ +export class WorldStatsItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public code: string; + public name: string; + public continent: string; + public population: number; + public gdpTotal: number; + public economy: string; + public region: string; + public status: string; + public longitude: number; + public latitude: number; + public gdpPerPerson: number; + public rank: number; + public unemployment: number; + public oilProduction: number; + public birthRate: number; + public medianAge: number; + public electricity: number; + public televisions: number; + public publicDebt: number; + public internet: number; + +} +export class WorldStats extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new WorldStatsItem( + { + code: `CHN`, + name: `China`, + continent: `Asia`, + population: 1379302771, + gdpTotal: 21140000, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 104.18, + latitude: 35.887, + gdpPerPerson: 15327, + rank: 1, + unemployment: 4, + oilProduction: 3725000, + birthRate: 14, + medianAge: 34, + electricity: 3256000, + televisions: 400000000, + publicDebt: 18, + internet: 253000000 + }), + new WorldStatsItem( + { + code: `IND`, + name: `India`, + continent: `Asia`, + population: 1281935911, + gdpTotal: 8721000, + economy: `Emerging`, + region: `Southern Asia`, + status: `Country`, + longitude: 78.022, + latitude: 22.665, + gdpPerPerson: 6803, + rank: 2, + unemployment: 7, + oilProduction: 810000, + birthRate: 22, + medianAge: 25, + electricity: 661600, + televisions: 63000000, + publicDebt: 58, + internet: 80000000 + }), + new WorldStatsItem( + { + code: `USA`, + name: `United States`, + continent: `North America`, + population: 326625791, + gdpTotal: 18560000, + economy: `Developed`, + region: `Northern America`, + status: `Country`, + longitude: -101.8, + latitude: 39.818, + gdpPerPerson: 56823, + rank: 3, + unemployment: 5, + oilProduction: 7460000, + birthRate: 14, + medianAge: 37, + electricity: 4062000, + televisions: 219000000, + publicDebt: 61, + internet: 223000000 + }), + new WorldStatsItem( + { + code: `IDN`, + name: `Indonesia`, + continent: `Asia`, + population: 260580739, + gdpTotal: 3028000, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 102.72, + latitude: -2.698, + gdpPerPerson: 11620, + rank: 4, + unemployment: 9, + oilProduction: 837500, + birthRate: 19, + medianAge: 27, + electricity: 125900, + televisions: 13750000, + publicDebt: 34, + internet: 13000000 + }), + new WorldStatsItem( + { + code: `BRA`, + name: `Brazil`, + continent: `South America`, + population: 207353391, + gdpTotal: 3081000, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -48.88, + latitude: -12.89, + gdpPerPerson: 14859, + rank: 5, + unemployment: 9, + oilProduction: 1797000, + birthRate: 19, + medianAge: 28, + electricity: 396400, + televisions: 36500000, + publicDebt: 45, + internet: 50000000 + }), + new WorldStatsItem( + { + code: `PAK`, + name: `Pakistan`, + continent: `Asia`, + population: 204924861, + gdpTotal: 988200, + economy: `Emerging`, + region: `Southern Asia`, + status: `Country`, + longitude: 67.624, + latitude: 28.421, + gdpPerPerson: 4822, + rank: 6, + unemployment: 6, + oilProduction: 62000, + birthRate: 28, + medianAge: 21, + electricity: 89820, + televisions: 3100000, + publicDebt: 51, + internet: 17500000 + }), + new WorldStatsItem( + { + code: `NGA`, + name: `Nigeria`, + continent: `Africa`, + population: 190632261, + gdpTotal: 1089000, + economy: `Emerging`, + region: `Western Africa`, + status: `Country`, + longitude: 8.657, + latitude: 9.075, + gdpPerPerson: 5713, + rank: 7, + unemployment: 5, + oilProduction: 2166000, + birthRate: 37, + medianAge: 19, + electricity: 22530, + televisions: 6900000, + publicDebt: 14, + internet: 10000000 + }), + new WorldStatsItem( + { + code: `BGD`, + name: `Bangladesh`, + continent: `Asia`, + population: 157826578, + gdpTotal: 628400, + economy: `Least developed`, + region: `Southern Asia`, + status: `Country`, + longitude: 89.935, + latitude: 24.474, + gdpPerPerson: 3982, + rank: 8, + unemployment: 3, + oilProduction: 6746, + birthRate: 29, + medianAge: 23, + electricity: 21350, + televisions: 770000, + publicDebt: 37, + internet: 500000 + }), + new WorldStatsItem( + { + code: `RUS`, + name: `Russia`, + continent: `Europe`, + population: 142257519, + gdpTotal: 3745000, + economy: `Emerging`, + region: `Eastern Europe`, + status: `Country`, + longitude: 42.379, + latitude: 56.974, + gdpPerPerson: 26325, + rank: 9, + unemployment: 6, + oilProduction: 9870000, + birthRate: 11, + medianAge: 38, + electricity: 1000000, + televisions: 60500000, + publicDebt: 6, + internet: 30000000 + }), + new WorldStatsItem( + { + code: `JPN`, + name: `Japan`, + continent: `Asia`, + population: 126451398, + gdpTotal: 4932000, + economy: `Developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 138.48, + latitude: 36.519, + gdpPerPerson: 39003, + rank: 10, + unemployment: 4, + oilProduction: 125000, + birthRate: 8, + medianAge: 44, + electricity: 1025000, + televisions: 86500000, + publicDebt: 170, + internet: 88110000 + }), + new WorldStatsItem( + { + code: `MEX`, + name: `Mexico`, + continent: `North America`, + population: 124574795, + gdpTotal: 2307000, + economy: `Emerging`, + region: `Central America`, + status: `Country`, + longitude: -102.5, + latitude: 23.63, + gdpPerPerson: 18519, + rank: 11, + unemployment: 4, + oilProduction: 3083000, + birthRate: 20, + medianAge: 26, + electricity: 222400, + televisions: 25600000, + publicDebt: 23, + internet: 22812000 + }), + new WorldStatsItem( + { + code: `ETH`, + name: `Ethiopia`, + continent: `Africa`, + population: 105350020, + gdpTotal: 174700, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 40.489, + latitude: 9.154, + gdpPerPerson: 1658, + rank: 12, + unemployment: 5, + oilProduction: 1, + birthRate: 25, + medianAge: 52, + electricity: 60942, + televisions: 66893500, + publicDebt: 45, + internet: 291000 + }), + new WorldStatsItem( + { + code: `PHL`, + name: `Philippines`, + continent: `Asia`, + population: 104256076, + gdpTotal: 801900, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 121.4, + latitude: 16.78, + gdpPerPerson: 7692, + rank: 13, + unemployment: 7, + oilProduction: 0, + birthRate: 26, + medianAge: 22, + electricity: 53670, + televisions: 3700000, + publicDebt: 56, + internet: 5300000 + }), + new WorldStatsItem( + { + code: `EGY`, + name: `Egypt`, + continent: `Africa`, + population: 97041072, + gdpTotal: 1105000, + economy: `Emerging`, + region: `Middle East`, + status: `Country`, + longitude: 30.787, + latitude: 26.825, + gdpPerPerson: 11387, + rank: 14, + unemployment: 9, + oilProduction: 665000, + birthRate: 22, + medianAge: 25, + electricity: 102500, + televisions: 7700000, + publicDebt: 106, + internet: 8620000 + }), + new WorldStatsItem( + { + code: `VNM`, + name: `Vietnam`, + continent: `Asia`, + population: 96160163, + gdpTotal: 594900, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 108.46, + latitude: 13.711, + gdpPerPerson: 6187, + rank: 15, + unemployment: 4, + oilProduction: 324000, + birthRate: 16, + medianAge: 27, + electricity: 59010, + televisions: 3570000, + publicDebt: 42, + internet: 17870000 + }), + new WorldStatsItem( + { + code: `COD`, + name: `Dem. Rep. Congo`, + continent: `Africa`, + population: 83301151, + gdpTotal: 66010, + economy: `Least developed`, + region: `Middle Africa`, + status: `Country`, + longitude: 21.738, + latitude: -4.071, + gdpPerPerson: 792, + rank: 16, + unemployment: 3, + oilProduction: 4, + birthRate: 13, + medianAge: 41, + electricity: 48913, + televisions: 55942436, + publicDebt: 16, + internet: 8903936 + }), + new WorldStatsItem( + { + code: `IRN`, + name: `Iran`, + continent: `Asia`, + population: 82021564, + gdpTotal: 1459000, + economy: `Emerging`, + region: `Middle East`, + status: `Country`, + longitude: 53.664, + latitude: 32.435, + gdpPerPerson: 17788, + rank: 17, + unemployment: 12, + oilProduction: 3956000, + birthRate: 17, + medianAge: 26, + electricity: 170400, + televisions: 4610000, + publicDebt: 17, + internet: 23000000 + }), + new WorldStatsItem( + { + code: `TUR`, + name: `Turkey`, + continent: `Asia`, + population: 80845215, + gdpTotal: 1670000, + economy: `Emerging`, + region: `Middle East`, + status: `Country`, + longitude: 35.243, + latitude: 38.962, + gdpPerPerson: 20657, + rank: 18, + unemployment: 10, + oilProduction: 45460, + birthRate: 16, + medianAge: 29, + electricity: 154200, + televisions: 20900000, + publicDebt: 39, + internet: 13150000 + }), + new WorldStatsItem( + { + code: `DEU`, + name: `Germany`, + continent: `Europe`, + population: 80594017, + gdpTotal: 3979000, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 11.43, + latitude: 52.237, + gdpPerPerson: 49371, + rank: 19, + unemployment: 9, + oilProduction: 141700, + birthRate: 8, + medianAge: 43, + electricity: 579400, + televisions: 51400000, + publicDebt: 65, + internet: 42500000 + }), + new WorldStatsItem( + { + code: `THA`, + name: `Thailand`, + continent: `Asia`, + population: 68414135, + gdpTotal: 1161000, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 100.65, + latitude: 15.345, + gdpPerPerson: 16970, + rank: 20, + unemployment: 1, + oilProduction: 310000, + birthRate: 14, + medianAge: 33, + electricity: 124600, + televisions: 15190000, + publicDebt: 38, + internet: 13416000 + }), + new WorldStatsItem( + { + code: `FRA`, + name: `France`, + continent: `Europe`, + population: 67106161, + gdpTotal: 2699000, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 2.267, + latitude: 46.645, + gdpPerPerson: 40220, + rank: 21, + unemployment: 12, + oilProduction: 1, + birthRate: 24, + medianAge: 48, + electricity: 63711, + televisions: 43156970, + publicDebt: 11, + internet: 7012454 + }), + new WorldStatsItem( + { + code: `GBR`, + name: `United Kingdom`, + continent: `Europe`, + population: 64769452, + gdpTotal: 2788000, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: -1.233, + latitude: 52.242, + gdpPerPerson: 43045, + rank: 22, + unemployment: 5, + oilProduction: 1636000, + birthRate: 11, + medianAge: 40, + electricity: 372600, + televisions: 30500000, + publicDebt: 44, + internet: 40200000 + }), + new WorldStatsItem( + { + code: `ITA`, + name: `Italy`, + continent: `Europe`, + population: 62137802, + gdpTotal: 2221000, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 15.701, + latitude: 40.885, + gdpPerPerson: 35743, + rank: 23, + unemployment: 6, + oilProduction: 164800, + birthRate: 8, + medianAge: 43, + electricity: 278500, + televisions: 30300000, + publicDebt: 104, + internet: 32000000 + }), + new WorldStatsItem( + { + code: `MMR`, + name: `Myanmar`, + continent: `Asia`, + population: 55123814, + gdpTotal: 311100, + economy: `Least developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 96.028, + latitude: 21.509, + gdpPerPerson: 5644, + rank: 24, + unemployment: 13, + oilProduction: 4, + birthRate: 24, + medianAge: 37, + electricity: 26955, + televisions: 39322205, + publicDebt: 18, + internet: 30207772 + }), + new WorldStatsItem( + { + code: `ZAF`, + name: `South Africa`, + continent: `Africa`, + population: 54841552, + gdpTotal: 739100, + economy: `Emerging`, + region: `Southern Africa`, + status: `Country`, + longitude: 22.489, + latitude: -32.4, + gdpPerPerson: 13477, + rank: 25, + unemployment: 24, + oilProduction: 200000, + birthRate: 20, + medianAge: 24, + electricity: 264000, + televisions: 6000000, + publicDebt: 31, + internet: 5100000 + }), + new WorldStatsItem( + { + code: `TZA`, + name: `Tanzania`, + continent: `Africa`, + population: 53950935, + gdpTotal: 150600, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 34.894, + latitude: -6.356, + gdpPerPerson: 2791, + rank: 26, + unemployment: 6, + oilProduction: 3, + birthRate: 9, + medianAge: 34, + electricity: 10186, + televisions: 35987980, + publicDebt: 20, + internet: 400000 + }), + new WorldStatsItem( + { + code: `KOR`, + name: `South Korea`, + continent: `Asia`, + population: 51181299, + gdpTotal: 1929000, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 128.29, + latitude: 36.399, + gdpPerPerson: 37690, + rank: 27, + unemployment: 3, + oilProduction: 17050, + birthRate: 9, + medianAge: 37, + electricity: 403200, + televisions: 15900000, + publicDebt: 28, + internet: 35590000 + }), + new WorldStatsItem( + { + code: `ESP`, + name: `Spain`, + continent: `Europe`, + population: 48958159, + gdpTotal: 1690000, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: -2.892, + latitude: 40.569, + gdpPerPerson: 34519, + rank: 28, + unemployment: 8, + oilProduction: 29350, + birthRate: 10, + medianAge: 41, + electricity: 270300, + televisions: 16200000, + publicDebt: 36, + internet: 19690000 + }), + new WorldStatsItem( + { + code: `COL`, + name: `Colombia`, + continent: `South America`, + population: 47698524, + gdpTotal: 688000, + economy: `Developing`, + region: `South America`, + status: `Country`, + longitude: -72.95, + latitude: 4.099, + gdpPerPerson: 14424, + rank: 29, + unemployment: 11, + oilProduction: 531300, + birthRate: 20, + medianAge: 27, + electricity: 50470, + televisions: 4590000, + publicDebt: 53, + internet: 12100000 + }), + new WorldStatsItem( + { + code: `KEN`, + name: `Kenya`, + continent: `Africa`, + population: 47615739, + gdpTotal: 152700, + economy: `Emerging`, + region: `Eastern Africa`, + status: `Country`, + longitude: 37.929, + latitude: 0.4, + gdpPerPerson: 3207, + rank: 30, + unemployment: 40, + oilProduction: 0, + birthRate: 38, + medianAge: 19, + electricity: 5502, + televisions: 730000, + publicDebt: 49, + internet: 3000000 + }), + new WorldStatsItem( + { + code: `ARG`, + name: `Argentina`, + continent: `South America`, + population: 44293293, + gdpTotal: 879400, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -64.84, + latitude: -33.07, + gdpPerPerson: 19854, + rank: 31, + unemployment: 9, + oilProduction: 730000, + birthRate: 18, + medianAge: 30, + electricity: 101100, + televisions: 7950000, + publicDebt: 56, + internet: 9309000 + }), + new WorldStatsItem( + { + code: `UKR`, + name: `Ukraine`, + continent: `Europe`, + population: 44033874, + gdpTotal: 352600, + economy: `Developing`, + region: `Eastern Europe`, + status: `Country`, + longitude: 30.86, + latitude: 49.723, + gdpPerPerson: 8007, + rank: 32, + unemployment: 2, + oilProduction: 90400, + birthRate: 10, + medianAge: 39, + electricity: 192100, + televisions: 18050000, + publicDebt: 12, + internet: 10000000 + }), + new WorldStatsItem( + { + code: `DZA`, + name: `Algeria`, + continent: `Africa`, + population: 40969443, + gdpTotal: 609400, + economy: `Developing`, + region: `Northern Africa`, + status: `Country`, + longitude: 1.642, + latitude: 28.04, + gdpPerPerson: 14875, + rank: 33, + unemployment: 12, + oilProduction: 1358000, + birthRate: 17, + medianAge: 26, + electricity: 31910, + televisions: 3100000, + publicDebt: 18, + internet: 3500000 + }), + new WorldStatsItem( + { + code: `UGA`, + name: `Uganda`, + continent: `Africa`, + population: 39570125, + gdpTotal: 84930, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 32.27, + latitude: 1.375, + gdpPerPerson: 2146, + rank: 34, + unemployment: 10, + oilProduction: 1, + birthRate: 10, + medianAge: 32, + electricity: 35388, + televisions: 27867123, + publicDebt: 21, + internet: 2000000 + }), + new WorldStatsItem( + { + code: `IRQ`, + name: `Iraq`, + continent: `Asia`, + population: 39192111, + gdpTotal: 596700, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 43.66, + latitude: 33.218, + gdpPerPerson: 15225, + rank: 35, + unemployment: 6, + oilProduction: 0, + birthRate: 20, + medianAge: 44, + electricity: 48545, + televisions: 13178804, + publicDebt: 40, + internet: 9538092 + }), + new WorldStatsItem( + { + code: `POL`, + name: `Poland`, + continent: `Europe`, + population: 38476269, + gdpTotal: 1052000, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 20.073, + latitude: 52.374, + gdpPerPerson: 27342, + rank: 36, + unemployment: 13, + oilProduction: 0, + birthRate: 10, + medianAge: 38, + electricity: 146200, + televisions: 13050000, + publicDebt: 43, + internet: 16000000 + }), + new WorldStatsItem( + { + code: `SDN`, + name: `Sudan`, + continent: `Africa`, + population: 37345935, + gdpTotal: 176300, + economy: `Developing`, + region: `Northern Africa`, + status: `Country`, + longitude: 30.217, + latitude: 15.434, + gdpPerPerson: 4721, + rank: 37, + unemployment: 19, + oilProduction: 484500, + birthRate: 34, + medianAge: 19, + electricity: 3944, + televisions: 2380000, + publicDebt: 106, + internet: 1500000 + }), + new WorldStatsItem( + { + code: `CAN`, + name: `Canada`, + continent: `North America`, + population: 35623680, + gdpTotal: 1674000, + economy: `Developed`, + region: `Northern America`, + status: `Country`, + longitude: -108, + latitude: 55.855, + gdpPerPerson: 46991, + rank: 38, + unemployment: 6, + oilProduction: 3310000, + birthRate: 10, + medianAge: 40, + electricity: 609600, + televisions: 21500000, + publicDebt: 64, + internet: 28000000 + }), + new WorldStatsItem( + { + code: `AFG`, + name: `Afghanistan`, + continent: `Asia`, + population: 34124811, + gdpTotal: 64080, + economy: `Least developed`, + region: `Southern Asia`, + status: `Country`, + longitude: 66.041, + latitude: 33.977, + gdpPerPerson: 1878, + rank: 39, + unemployment: 9, + oilProduction: 2, + birthRate: 15, + medianAge: 39, + electricity: 64532, + televisions: 15374294, + publicDebt: 25, + internet: 18662148 + }), + new WorldStatsItem( + { + code: `MAR`, + name: `Morocco`, + continent: `Africa`, + population: 33986655, + gdpTotal: 282800, + economy: `Developing`, + region: `Northern Africa`, + status: `Country`, + longitude: -5.707, + latitude: 32.104, + gdpPerPerson: 8321, + rank: 40, + unemployment: 10, + oilProduction: 300, + birthRate: 21, + medianAge: 25, + electricity: 21370, + televisions: 3100000, + publicDebt: 67, + internet: 7300000 + }), + new WorldStatsItem( + { + code: `MYS`, + name: `Malaysia`, + continent: `Asia`, + population: 31381992, + gdpTotal: 863000, + economy: `Developing`, + region: `Eastern Asia`, + status: `Country`, + longitude: 101.72, + latitude: 4.89, + gdpPerPerson: 27500, + rank: 41, + unemployment: 3, + oilProduction: 757500, + birthRate: 22, + medianAge: 25, + electricity: 82360, + televisions: 10800000, + publicDebt: 42, + internet: 15868000 + }), + new WorldStatsItem( + { + code: `VEN`, + name: `Venezuela`, + continent: `South America`, + population: 31304016, + gdpTotal: 468600, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -64.78, + latitude: 6.695, + gdpPerPerson: 14969, + rank: 42, + unemployment: 9, + oilProduction: 2398000, + birthRate: 21, + medianAge: 25, + electricity: 99200, + televisions: 4100000, + publicDebt: 19, + internet: 5720000 + }), + new WorldStatsItem( + { + code: `PER`, + name: `Peru`, + continent: `South America`, + population: 31036656, + gdpTotal: 410400, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -73.82, + latitude: -12.89, + gdpPerPerson: 13223, + rank: 43, + unemployment: 7, + oilProduction: 119000, + birthRate: 20, + medianAge: 26, + electricity: 24970, + televisions: 3060000, + publicDebt: 29, + internet: 7636000 + }), + new WorldStatsItem( + { + code: `UZB`, + name: `Uzbekistan`, + continent: `Asia`, + population: 29748859, + gdpTotal: 202300, + economy: `Developing`, + region: `Central Asia`, + status: `Country`, + longitude: 63.288, + latitude: 42.338, + gdpPerPerson: 6800, + rank: 44, + unemployment: 1, + oilProduction: 109400, + birthRate: 18, + medianAge: 24, + electricity: 49000, + televisions: 6400000, + publicDebt: 19, + internet: 1200000 + }), + new WorldStatsItem( + { + code: `NPL`, + name: `Nepal`, + continent: `Asia`, + population: 29384297, + gdpTotal: 71520, + economy: `Least developed`, + region: `Southern Asia`, + status: `Country`, + longitude: 82.328, + latitude: 28.843, + gdpPerPerson: 2434, + rank: 45, + unemployment: 5, + oilProduction: 3, + birthRate: 18, + medianAge: 34, + electricity: 68842, + televisions: 21075997, + publicDebt: 16, + internet: 7780693 + }), + new WorldStatsItem( + { + code: `AGO`, + name: `Angola`, + continent: `Africa`, + population: 29310273, + gdpTotal: 189000, + economy: `Least developed`, + region: `Middle Africa`, + status: `Country`, + longitude: 18.097, + latitude: -12.37, + gdpPerPerson: 6448, + rank: 46, + unemployment: 14, + oilProduction: 0, + birthRate: 15, + medianAge: 38, + electricity: 25890, + televisions: 21283158, + publicDebt: 12, + internet: 100000 + }), + new WorldStatsItem( + { + code: `SAU`, + name: `Saudi Arabia`, + continent: `Asia`, + population: 28571770, + gdpTotal: 1731000, + economy: `Developed`, + region: `Middle East`, + status: `Country`, + longitude: 45.129, + latitude: 24.248, + gdpPerPerson: 60584, + rank: 47, + unemployment: 13, + oilProduction: 11000000, + birthRate: 29, + medianAge: 22, + electricity: 165600, + televisions: 5100000, + publicDebt: 24, + internet: 6200000 + }), + new WorldStatsItem( + { + code: `YEM`, + name: `Yemen`, + continent: `Asia`, + population: 28036829, + gdpTotal: 73450, + economy: `Least developed`, + region: `Middle East`, + status: `Country`, + longitude: 48.53, + latitude: 15.658, + gdpPerPerson: 2620, + rank: 48, + unemployment: 35, + oilProduction: 339200, + birthRate: 42, + medianAge: 17, + electricity: 4456, + televisions: 470000, + publicDebt: 34, + internet: 320000 + }), + new WorldStatsItem( + { + code: `GHA`, + name: `Ghana`, + continent: `Africa`, + population: 27499924, + gdpTotal: 120800, + economy: `Developing`, + region: `Western Africa`, + status: `Country`, + longitude: -0.893, + latitude: 8.607, + gdpPerPerson: 4393, + rank: 49, + unemployment: 11, + oilProduction: 700, + birthRate: 29, + medianAge: 20, + electricity: 7042, + televisions: 1900000, + publicDebt: 59, + internet: 650000 + }), + new WorldStatsItem( + { + code: `MOZ`, + name: `Mozambique`, + continent: `Africa`, + population: 26573706, + gdpTotal: 35010, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 38.075, + latitude: -15.41, + gdpPerPerson: 1317, + rank: 50, + unemployment: 21, + oilProduction: 0, + birthRate: 38, + medianAge: 17, + electricity: 13170, + televisions: 67600, + publicDebt: 22, + internet: 200000 + }), + new WorldStatsItem( + { + code: `PRK`, + name: `North Korea`, + continent: `Asia`, + population: 25248140, + gdpTotal: 40000, + economy: `Least developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 127.01, + latitude: 40.333, + gdpPerPerson: 1584, + rank: 51, + unemployment: 13, + oilProduction: 0, + birthRate: 23, + medianAge: 55, + electricity: 35619, + televisions: 16501842, + publicDebt: 30, + internet: 2340760 + }), + new WorldStatsItem( + { + code: `MDG`, + name: `Madagascar`, + continent: `Africa`, + population: 25054161, + gdpTotal: 36860, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 46.87, + latitude: -18.82, + gdpPerPerson: 1471, + rank: 52, + unemployment: 15, + oilProduction: 0, + birthRate: 20, + medianAge: 36, + electricity: 86068, + televisions: 9470858, + publicDebt: 31, + internet: 1407981 + }), + new WorldStatsItem( + { + code: `CMR`, + name: `Cameroon`, + continent: `Africa`, + population: 24994885, + gdpTotal: 77240, + economy: `Developing`, + region: `Middle Africa`, + status: `Country`, + longitude: 12.451, + latitude: 4.365, + gdpPerPerson: 3090, + rank: 53, + unemployment: 30, + oilProduction: 85300, + birthRate: 35, + medianAge: 19, + electricity: 4090, + televisions: 450000, + publicDebt: 16, + internet: 370000 + }), + new WorldStatsItem( + { + code: `CIV`, + name: `Ivory Coast`, + continent: `Africa`, + population: 24184810, + gdpTotal: 87120, + economy: `Developing`, + region: `Western Africa`, + status: `Country`, + longitude: -5.555, + latitude: 7.538, + gdpPerPerson: 3602, + rank: 54, + unemployment: 3, + oilProduction: 1, + birthRate: 17, + medianAge: 55, + electricity: 49302, + televisions: 9034402, + publicDebt: 75, + internet: 300000 + }), + new WorldStatsItem( + { + code: `TWN`, + name: `Taiwan`, + continent: `Asia`, + population: 23508428, + gdpTotal: 1127000, + economy: `Developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 120.96, + latitude: 23.636, + gdpPerPerson: 47940, + rank: 55, + unemployment: 4, + oilProduction: 600, + birthRate: 9, + medianAge: 36, + electricity: 235000, + televisions: 8800000, + publicDebt: 28, + internet: 14760000 + }), + new WorldStatsItem( + { + code: `AUS`, + name: `Australia`, + continent: `Oceania`, + population: 23232413, + gdpTotal: 1189000, + economy: `Developed`, + region: `Australia`, + status: `Country`, + longitude: 135.87, + latitude: -25.63, + gdpPerPerson: 51178, + rank: 56, + unemployment: 4, + oilProduction: 540000, + birthRate: 13, + medianAge: 37, + electricity: 236700, + televisions: 10150000, + publicDebt: 16, + internet: 11240000 + }), + new WorldStatsItem( + { + code: `LKA`, + name: `Sri Lanka`, + continent: `Asia`, + population: 22409381, + gdpTotal: 236700, + economy: `Developing`, + region: `Southern Asia`, + status: `Country`, + longitude: 80.792, + latitude: 7.881, + gdpPerPerson: 10563, + rank: 57, + unemployment: 6, + oilProduction: 0, + birthRate: 17, + medianAge: 30, + electricity: 8411, + televisions: 1530000, + publicDebt: 86, + internet: 771700 + }), + new WorldStatsItem( + { + code: `ROU`, + name: `Romania`, + continent: `Europe`, + population: 21529967, + gdpTotal: 441000, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 24.974, + latitude: 45.967, + gdpPerPerson: 20483, + rank: 58, + unemployment: 4, + oilProduction: 115000, + birthRate: 11, + medianAge: 37, + electricity: 60520, + televisions: 5250000, + publicDebt: 13, + internet: 12000000 + }), + new WorldStatsItem( + { + code: `BFA`, + name: `Burkina Faso`, + continent: `Africa`, + population: 20107509, + gdpTotal: 32990, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -1.567, + latitude: 12.251, + gdpPerPerson: 1641, + rank: 59, + unemployment: 4, + oilProduction: 5, + birthRate: 21, + medianAge: 30, + electricity: 82658, + televisions: 7478745, + publicDebt: 14, + internet: 5896530 + }), + new WorldStatsItem( + { + code: `NER`, + name: `Niger`, + continent: `Africa`, + population: 19245344, + gdpTotal: 20150, + economy: `Least developed`, + region: `Northern Africa`, + status: `Country`, + longitude: 10.845, + latitude: 17.92, + gdpPerPerson: 1047, + rank: 60, + unemployment: 9, + oilProduction: 5, + birthRate: 18, + medianAge: 53, + electricity: 10652, + televisions: 8203307, + publicDebt: 17, + internet: 157021 + }), + new WorldStatsItem( + { + code: `MWI`, + name: `Malawi`, + continent: `Africa`, + population: 19196246, + gdpTotal: 21200, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 34.282, + latitude: -13.26, + gdpPerPerson: 1104, + rank: 61, + unemployment: 12, + oilProduction: 3, + birthRate: 12, + medianAge: 51, + electricity: 20676, + televisions: 4938675, + publicDebt: 51, + internet: 139500 + }), + new WorldStatsItem( + { + code: `KAZ`, + name: `Kazakhstan`, + continent: `Asia`, + population: 18556698, + gdpTotal: 460700, + economy: `Developing`, + region: `Central Asia`, + status: `Country`, + longitude: 66.966, + latitude: 47.999, + gdpPerPerson: 24827, + rank: 62, + unemployment: 7, + oilProduction: 1355000, + birthRate: 16, + medianAge: 29, + electricity: 76340, + televisions: 3880000, + publicDebt: 8, + internet: 1901000 + }), + new WorldStatsItem( + { + code: `SYR`, + name: `Syria`, + continent: `Asia`, + population: 18028549, + gdpTotal: 50280, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 39.062, + latitude: 34.807, + gdpPerPerson: 2789, + rank: 63, + unemployment: 9, + oilProduction: 379000, + birthRate: 27, + medianAge: 21, + electricity: 153200, + televisions: 1050000, + publicDebt: 38, + internet: 3470000 + }), + new WorldStatsItem( + { + code: `MLI`, + name: `Mali`, + continent: `Africa`, + population: 17885245, + gdpTotal: 38090, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -1.496, + latitude: 17.867, + gdpPerPerson: 2130, + rank: 64, + unemployment: 4, + oilProduction: 4, + birthRate: 21, + medianAge: 46, + electricity: 72483, + televisions: 4783188, + publicDebt: 38, + internet: 8619386 + }), + new WorldStatsItem( + { + code: `CHL`, + name: `Chile`, + continent: `South America`, + population: 17789267, + gdpTotal: 436100, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -69.11, + latitude: -23.36, + gdpPerPerson: 24515, + rank: 65, + unemployment: 7, + oilProduction: 15100, + birthRate: 15, + medianAge: 31, + electricity: 47600, + televisions: 3150000, + publicDebt: 4, + internet: 557000 + }), + new WorldStatsItem( + { + code: `NLD`, + name: `Netherlands`, + continent: `Europe`, + population: 17084719, + gdpTotal: 870800, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 6.272, + latitude: 52.971, + gdpPerPerson: 50970, + rank: 66, + unemployment: 5, + oilProduction: 76000, + birthRate: 11, + medianAge: 40, + electricity: 94340, + televisions: 8100000, + publicDebt: 46, + internet: 15000000 + }), + new WorldStatsItem( + { + code: `ECU`, + name: `Ecuador`, + continent: `South America`, + population: 16290913, + gdpTotal: 182400, + economy: `Developing`, + region: `South America`, + status: `Country`, + longitude: -77.98, + latitude: -1.291, + gdpPerPerson: 11196, + rank: 67, + unemployment: 9, + oilProduction: 511100, + birthRate: 22, + medianAge: 24, + electricity: 12940, + televisions: 2500000, + publicDebt: 33, + internet: 1549000 + }), + new WorldStatsItem( + { + code: `KHM`, + name: `Cambodia`, + continent: `Asia`, + population: 16204486, + gdpTotal: 58940, + economy: `Least developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 104.96, + latitude: 12.558, + gdpPerPerson: 3637, + rank: 68, + unemployment: 15, + oilProduction: 1, + birthRate: 17, + medianAge: 50, + electricity: 45509, + televisions: 2489832, + publicDebt: 22, + internet: 11512560 + }), + new WorldStatsItem( + { + code: `ZMB`, + name: `Zambia`, + continent: `Africa`, + population: 15972000, + gdpTotal: 65170, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 26.301, + latitude: -14.3, + gdpPerPerson: 4080, + rank: 69, + unemployment: 50, + oilProduction: 150, + birthRate: 41, + medianAge: 17, + electricity: 8850, + televisions: 277000, + publicDebt: 28, + internet: 500000 + }), + new WorldStatsItem( + { + code: `GTM`, + name: `Guatemala`, + continent: `North America`, + population: 15460732, + gdpTotal: 131800, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -90.4, + latitude: 15.225, + gdpPerPerson: 8525, + rank: 70, + unemployment: 3, + oilProduction: 13000, + birthRate: 29, + medianAge: 19, + electricity: 7281, + televisions: 1323000, + publicDebt: 21, + internet: 1320000 + }), + new WorldStatsItem( + { + code: `SEN`, + name: `Senegal`, + continent: `Africa`, + population: 14668522, + gdpTotal: 39720, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -14.76, + latitude: 15.47, + gdpPerPerson: 2708, + rank: 71, + unemployment: 48, + oilProduction: 0, + birthRate: 37, + medianAge: 19, + electricity: 2159, + televisions: 361000, + publicDebt: 23, + internet: 820000 + }), + new WorldStatsItem( + { + code: `ZWE`, + name: `Zimbabwe`, + continent: `Africa`, + population: 13805084, + gdpTotal: 28330, + economy: `Emerging`, + region: `Eastern Africa`, + status: `Country`, + longitude: 29.115, + latitude: -19.02, + gdpPerPerson: 2052, + rank: 72, + unemployment: 80, + oilProduction: 0, + birthRate: 32, + medianAge: 18, + electricity: 9950, + televisions: 370000, + publicDebt: 218, + internet: 1351000 + }), + new WorldStatsItem( + { + code: `SSD`, + name: `South Sudan`, + continent: `Africa`, + population: 13026129, + gdpTotal: 20880, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 29.708, + latitude: 7.857, + gdpPerPerson: 1603, + rank: 73, + unemployment: 11, + oilProduction: 5, + birthRate: 8, + medianAge: 43, + electricity: 41476, + televisions: 7716253, + publicDebt: 41, + internet: 4569804 + }), + new WorldStatsItem( + { + code: `GIN`, + name: `Guinea`, + continent: `Africa`, + population: 12413867, + gdpTotal: 16080, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -9.522, + latitude: 10.478, + gdpPerPerson: 1295, + rank: 74, + unemployment: 15, + oilProduction: 4, + birthRate: 5, + medianAge: 49, + electricity: 15826, + televisions: 6262180, + publicDebt: 32, + internet: 6439493 + }), + new WorldStatsItem( + { + code: `TCD`, + name: `Chad`, + continent: `Africa`, + population: 12075985, + gdpTotal: 30590, + economy: `Least developed`, + region: `Northern Africa`, + status: `Country`, + longitude: 18.716, + latitude: 15.46, + gdpPerPerson: 2533, + rank: 75, + unemployment: 15, + oilProduction: 2, + birthRate: 25, + medianAge: 46, + electricity: 57747, + televisions: 8629897, + publicDebt: 33, + internet: 6531943 + }), + new WorldStatsItem( + { + code: `RWA`, + name: `Rwanda`, + continent: `Africa`, + population: 11901484, + gdpTotal: 21970, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 29.867, + latitude: -1.936, + gdpPerPerson: 1846, + rank: 76, + unemployment: 14, + oilProduction: 0, + birthRate: 23, + medianAge: 51, + electricity: 51710, + televisions: 1363647, + publicDebt: 36, + internet: 2425128 + }), + new WorldStatsItem( + { + code: `BEL`, + name: `Belgium`, + continent: `Europe`, + population: 11491346, + gdpTotal: 508600, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 4.605, + latitude: 50.911, + gdpPerPerson: 44259, + rank: 77, + unemployment: 8, + oilProduction: 9000, + birthRate: 10, + medianAge: 41, + electricity: 80840, + televisions: 4720000, + publicDebt: 85, + internet: 5220000 + }), + new WorldStatsItem( + { + code: `BDI`, + name: `Burundi`, + continent: `Africa`, + population: 11466756, + gdpTotal: 7892, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 29.913, + latitude: -3.384, + gdpPerPerson: 688, + rank: 78, + unemployment: 12, + oilProduction: 3, + birthRate: 16, + medianAge: 35, + electricity: 43850, + televisions: 2920735, + publicDebt: 20, + internet: 3908915 + }), + new WorldStatsItem( + { + code: `TUN`, + name: `Tunisia`, + continent: `Africa`, + population: 11403800, + gdpTotal: 130800, + economy: `Developing`, + region: `Northern Africa`, + status: `Country`, + longitude: 9.516, + latitude: 33.785, + gdpPerPerson: 11470, + rank: 79, + unemployment: 14, + oilProduction: 76900, + birthRate: 16, + medianAge: 29, + electricity: 12850, + televisions: 920000, + publicDebt: 55, + internet: 1722000 + }), + new WorldStatsItem( + { + code: `CUB`, + name: `Cuba`, + continent: `North America`, + population: 11147407, + gdpTotal: 132900, + economy: `Emerging`, + region: `Central America`, + status: `Country`, + longitude: -80.54, + latitude: 22.567, + gdpPerPerson: 11922, + rank: 80, + unemployment: 2, + oilProduction: 58300, + birthRate: 11, + medianAge: 37, + electricity: 16450, + televisions: 2640000, + publicDebt: 37, + internet: 1310000 + }), + new WorldStatsItem( + { + code: `BOL`, + name: `Bolivia`, + continent: `South America`, + population: 11138234, + gdpTotal: 78350, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -63.57, + latitude: -16.3, + gdpPerPerson: 7034, + rank: 81, + unemployment: 8, + oilProduction: 46470, + birthRate: 22, + medianAge: 23, + electricity: 5293, + televisions: 900000, + publicDebt: 46, + internet: 1000000 + }), + new WorldStatsItem( + { + code: `BEN`, + name: `Benin`, + continent: `Africa`, + population: 11038805, + gdpTotal: 24310, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: 2.704, + latitude: 10.535, + gdpPerPerson: 2202, + rank: 82, + unemployment: 2, + oilProduction: 0, + birthRate: 25, + medianAge: 40, + electricity: 13145, + televisions: 7167916, + publicDebt: 34, + internet: 8520122 + }), + new WorldStatsItem( + { + code: `PRT`, + name: `Portugal`, + continent: `Europe`, + population: 10839514, + gdpTotal: 297100, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: -7.757, + latitude: 40.815, + gdpPerPerson: 27409, + rank: 83, + unemployment: 8, + oilProduction: 9500, + birthRate: 10, + medianAge: 39, + electricity: 49040, + televisions: 3310000, + publicDebt: 64, + internet: 3549000 + }), + new WorldStatsItem( + { + code: `GRC`, + name: `Greece`, + continent: `Europe`, + population: 10768477, + gdpTotal: 290500, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 21.871, + latitude: 39.558, + gdpPerPerson: 26977, + rank: 84, + unemployment: 8, + oilProduction: 5687, + birthRate: 10, + medianAge: 42, + electricity: 56130, + televisions: 2540000, + publicDebt: 90, + internet: 2540000 + }), + new WorldStatsItem( + { + code: `DOM`, + name: `Dominican Republic`, + continent: `North America`, + population: 10734247, + gdpTotal: 161900, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -70.17, + latitude: 18.775, + gdpPerPerson: 15083, + rank: 85, + unemployment: 16, + oilProduction: 12, + birthRate: 23, + medianAge: 25, + electricity: 12220, + televisions: 770000, + publicDebt: 41, + internet: 1677000 + }), + new WorldStatsItem( + { + code: `CZE`, + name: `Czechia`, + continent: `Europe`, + population: 10674723, + gdpTotal: 350900, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 15.461, + latitude: 49.807, + gdpPerPerson: 32872, + rank: 86, + unemployment: 7, + oilProduction: 18030, + birthRate: 9, + medianAge: 40, + electricity: 77380, + televisions: 3405834, + publicDebt: 26, + internet: 4400000 + }), + new WorldStatsItem( + { + code: `HTI`, + name: `Haiti`, + continent: `North America`, + population: 10646714, + gdpTotal: 19340, + economy: `Least developed`, + region: `Central America`, + status: `Country`, + longitude: -72.23, + latitude: 19.342, + gdpPerPerson: 1817, + rank: 87, + unemployment: 15, + oilProduction: 2, + birthRate: 9, + medianAge: 52, + electricity: 12871, + televisions: 4329511, + publicDebt: 25, + internet: 4777792 + }), + new WorldStatsItem( + { + code: `JOR`, + name: `Jordan`, + continent: `Asia`, + population: 10248069, + gdpTotal: 86190, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 38.125, + latitude: 32.309, + gdpPerPerson: 8410, + rank: 88, + unemployment: 14, + oilProduction: 0, + birthRate: 20, + medianAge: 24, + electricity: 9074, + televisions: 500000, + publicDebt: 72, + internet: 1127000 + }), + new WorldStatsItem( + { + code: `AZE`, + name: `Azerbaijan`, + continent: `Asia`, + population: 9961396, + gdpTotal: 167900, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 48.401, + latitude: 40.344, + gdpPerPerson: 16855, + rank: 89, + unemployment: 1, + oilProduction: 934700, + birthRate: 18, + medianAge: 28, + electricity: 23800, + televisions: 170000, + publicDebt: 7, + internet: 1036000 + }), + new WorldStatsItem( + { + code: `SWE`, + name: `Sweden`, + continent: `Europe`, + population: 9960487, + gdpTotal: 498100, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 17.594, + latitude: 64.621, + gdpPerPerson: 50008, + rank: 90, + unemployment: 6, + oilProduction: 2350, + birthRate: 10, + medianAge: 41, + electricity: 153200, + televisions: 4600000, + publicDebt: 42, + internet: 7000000 + }), + new WorldStatsItem( + { + code: `HUN`, + name: `Hungary`, + continent: `Europe`, + population: 9850845, + gdpTotal: 267600, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 19.485, + latitude: 47.153, + gdpPerPerson: 27165, + rank: 91, + unemployment: 7, + oilProduction: 42180, + birthRate: 10, + medianAge: 39, + electricity: 33690, + televisions: 4420000, + publicDebt: 67, + internet: 4200000 + }), + new WorldStatsItem( + { + code: `BLR`, + name: `Belarus`, + continent: `Europe`, + population: 9549747, + gdpTotal: 165400, + economy: `Developing`, + region: `Eastern Europe`, + status: `Country`, + longitude: 27.943, + latitude: 53.705, + gdpPerPerson: 17320, + rank: 92, + unemployment: 15, + oilProduction: 5, + birthRate: 7, + medianAge: 33, + electricity: 84070, + televisions: 3348094, + publicDebt: 6, + internet: 3754027 + }), + new WorldStatsItem( + { + code: `HND`, + name: `Honduras`, + continent: `North America`, + population: 9038741, + gdpTotal: 43190, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -86.74, + latitude: 14.889, + gdpPerPerson: 4778, + rank: 93, + unemployment: 28, + oilProduction: 0, + birthRate: 27, + medianAge: 20, + electricity: 5339, + televisions: 570000, + publicDebt: 24, + internet: 344100 + }), + new WorldStatsItem( + { + code: `AUT`, + name: `Austria`, + continent: `Europe`, + population: 8754413, + gdpTotal: 416600, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 14.987, + latitude: 47.624, + gdpPerPerson: 47587, + rank: 94, + unemployment: 4, + oilProduction: 23320, + birthRate: 9, + medianAge: 42, + electricity: 61020, + televisions: 10150000, + publicDebt: 59, + internet: 4277000 + }), + new WorldStatsItem( + { + code: `TJK`, + name: `Tajikistan`, + continent: `Asia`, + population: 8468555, + gdpTotal: 25810, + economy: `Developing`, + region: `Central Asia`, + status: `Country`, + longitude: 71.234, + latitude: 38.86, + gdpPerPerson: 3048, + rank: 95, + unemployment: 11, + oilProduction: 5, + birthRate: 8, + medianAge: 44, + electricity: 56534, + televisions: 6542566, + publicDebt: 44, + internet: 4521889 + }), + new WorldStatsItem( + { + code: `ISR`, + name: `Israel`, + continent: `Asia`, + population: 8299706, + gdpTotal: 297000, + economy: `Developed`, + region: `Middle East`, + status: `Country`, + longitude: 34.977, + latitude: 30.748, + gdpPerPerson: 35784, + rank: 96, + unemployment: 7, + oilProduction: 100, + birthRate: 20, + medianAge: 29, + electricity: 46850, + televisions: 1690000, + publicDebt: 81, + internet: 2000000 + }), + new WorldStatsItem( + { + code: `CHE`, + name: `Switzerland`, + continent: `Europe`, + population: 8236303, + gdpTotal: 496300, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 7.865, + latitude: 46.729, + gdpPerPerson: 60258, + rank: 97, + unemployment: 3, + oilProduction: 3202, + birthRate: 10, + medianAge: 41, + electricity: 56100, + televisions: 3310000, + publicDebt: 44, + internet: 4610000 + }), + new WorldStatsItem( + { + code: `TGO`, + name: `Togo`, + continent: `Africa`, + population: 7965055, + gdpTotal: 11610, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: 1.146, + latitude: 6.799, + gdpPerPerson: 1458, + rank: 98, + unemployment: 3, + oilProduction: 4, + birthRate: 9, + medianAge: 37, + electricity: 28181, + televisions: 2309082, + publicDebt: 41, + internet: 789456 + }), + new WorldStatsItem( + { + code: `SOM`, + name: `Somalia`, + continent: `Africa`, + population: 7531386, + gdpTotal: 4719, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 44.134, + latitude: 3.077, + gdpPerPerson: 627, + rank: 99, + unemployment: 2, + oilProduction: 4, + birthRate: 12, + medianAge: 50, + electricity: 29272, + televisions: 1648650, + publicDebt: 22, + internet: 3227211 + }), + new WorldStatsItem( + { + code: `HKG`, + name: `Hong Kong`, + continent: `Asia`, + population: 7191503, + gdpTotal: 427400, + economy: `Developing`, + region: `Eastern Asia`, + status: `Dependency`, + longitude: 114.08, + latitude: 22.38, + gdpPerPerson: 59431, + rank: 100, + unemployment: 3, + oilProduction: 0, + birthRate: 8, + medianAge: 55, + electricity: 86792, + televisions: 4084025, + publicDebt: 35, + internet: 3907543 + }), + new WorldStatsItem( + { + code: `LAO`, + name: `Laos`, + continent: `Asia`, + population: 7126706, + gdpTotal: 40960, + economy: `Least developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 102.36, + latitude: 20.171, + gdpPerPerson: 5747, + rank: 101, + unemployment: 8, + oilProduction: 0, + birthRate: 6, + medianAge: 34, + electricity: 7093, + televisions: 4503172, + publicDebt: 19, + internet: 5426041 + }), + new WorldStatsItem( + { + code: `SRB`, + name: `Serbia`, + continent: `Europe`, + population: 7111024, + gdpTotal: 101800, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 20.908, + latitude: 44.206, + gdpPerPerson: 14316, + rank: 102, + unemployment: 5, + oilProduction: 4, + birthRate: 13, + medianAge: 48, + electricity: 30150, + televisions: 1316607, + publicDebt: 17, + internet: 4104775 + }), + new WorldStatsItem( + { + code: `BGR`, + name: `Bulgaria`, + continent: `Europe`, + population: 7101510, + gdpTotal: 143100, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 25.465, + latitude: 42.741, + gdpPerPerson: 20151, + rank: 103, + unemployment: 8, + oilProduction: 3661, + birthRate: 10, + medianAge: 41, + electricity: 45700, + televisions: 3310000, + publicDebt: 11, + internet: 1899000 + }), + new WorldStatsItem( + { + code: `PRY`, + name: `Paraguay`, + continent: `South America`, + population: 6943739, + gdpTotal: 64670, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -58.44, + latitude: -23.42, + gdpPerPerson: 9313, + rank: 104, + unemployment: 6, + oilProduction: 0, + birthRate: 28, + medianAge: 22, + electricity: 70000, + televisions: 990000, + publicDebt: 27, + internet: 280000 + }), + new WorldStatsItem( + { + code: `PNG`, + name: `Papua New Guinea`, + continent: `Oceania`, + population: 6909701, + gdpTotal: 28020, + economy: `Developing`, + region: `Melanesia`, + status: `Country`, + longitude: 143.62, + latitude: -5.836, + gdpPerPerson: 4055, + rank: 105, + unemployment: 2, + oilProduction: 47800, + birthRate: 28, + medianAge: 22, + electricity: 3698, + televisions: 59841, + publicDebt: 40, + internet: 110000 + }), + new WorldStatsItem( + { + code: `LBY`, + name: `Libya`, + continent: `Africa`, + population: 6653210, + gdpTotal: 90890, + economy: `Developing`, + region: `Northern Africa`, + status: `Country`, + longitude: 17.23, + latitude: 26.339, + gdpPerPerson: 13661, + rank: 106, + unemployment: 30, + oilProduction: 1712000, + birthRate: 26, + medianAge: 24, + electricity: 21150, + televisions: 730000, + publicDebt: 5, + internet: 260000 + }), + new WorldStatsItem( + { + code: `LBN`, + name: `Lebanon`, + continent: `Asia`, + population: 6229794, + gdpTotal: 85160, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 36.042, + latitude: 34.168, + gdpPerPerson: 13670, + rank: 107, + unemployment: 20, + oilProduction: 0, + birthRate: 18, + medianAge: 29, + electricity: 9183, + televisions: 1180000, + publicDebt: 187, + internet: 950000 + }), + new WorldStatsItem( + { + code: `SLV`, + name: `El Salvador`, + continent: `North America`, + population: 6172011, + gdpTotal: 54790, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -88.91, + latitude: 13.798, + gdpPerPerson: 8877, + rank: 108, + unemployment: 6, + oilProduction: 0, + birthRate: 26, + medianAge: 22, + electricity: 5316, + televisions: 600000, + publicDebt: 37, + internet: 700000 + }), + new WorldStatsItem( + { + code: `SLE`, + name: `Sierra Leone`, + continent: `Africa`, + population: 6163195, + gdpTotal: 10640, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -11.78, + latitude: 8.452, + gdpPerPerson: 1726, + rank: 109, + unemployment: 14, + oilProduction: 4, + birthRate: 6, + medianAge: 37, + electricity: 37412, + televisions: 2727270, + publicDebt: 6, + internet: 223239 + }), + new WorldStatsItem( + { + code: `ARE`, + name: `United Arab Emirates`, + continent: `Asia`, + population: 6072475, + gdpTotal: 667200, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 54.192, + latitude: 23.795, + gdpPerPerson: 109873, + rank: 110, + unemployment: 2, + oilProduction: 2510000, + birthRate: 16, + medianAge: 30, + electricity: 57060, + televisions: 310000, + publicDebt: 21, + internet: 2300000 + }), + new WorldStatsItem( + { + code: `NIC`, + name: `Nicaragua`, + continent: `North America`, + population: 6025951, + gdpTotal: 33550, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -85.09, + latitude: 12.523, + gdpPerPerson: 5568, + rank: 111, + unemployment: 5, + oilProduction: 0, + birthRate: 24, + medianAge: 22, + electricity: 2778, + televisions: 320000, + publicDebt: 63, + internet: 155000 + }), + new WorldStatsItem( + { + code: `ERI`, + name: `Eritrea`, + continent: `Africa`, + population: 5918919, + gdpTotal: 9169, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 39.772, + latitude: 15.191, + gdpPerPerson: 1549, + rank: 112, + unemployment: 9, + oilProduction: 5, + birthRate: 17, + medianAge: 54, + electricity: 67474, + televisions: 2078077, + publicDebt: 41, + internet: 1067843 + }), + new WorldStatsItem( + { + code: `SGP`, + name: `Singapore`, + continent: `Asia`, + population: 5888926, + gdpTotal: 487900, + economy: `Developing`, + region: `Eastern Asia`, + status: `Country`, + longitude: 103.82, + latitude: 1.356, + gdpPerPerson: 82850, + rank: 113, + unemployment: 2, + oilProduction: 9836, + birthRate: 9, + medianAge: 38, + electricity: 39440, + televisions: 1330000, + publicDebt: 96, + internet: 3105000 + }), + new WorldStatsItem( + { + code: `KGZ`, + name: `Kyrgyzstan`, + continent: `Asia`, + population: 5789122, + gdpTotal: 21010, + economy: `Developing`, + region: `Central Asia`, + status: `Country`, + longitude: 74.738, + latitude: 41.224, + gdpPerPerson: 3629, + rank: 114, + unemployment: 12, + oilProduction: 1, + birthRate: 21, + medianAge: 42, + electricity: 16640, + televisions: 2101152, + publicDebt: 15, + internet: 738896 + }), + new WorldStatsItem( + { + code: `CAF`, + name: `Central African Republic`, + continent: `Africa`, + population: 5625118, + gdpTotal: 3206, + economy: `Least developed`, + region: `Middle Africa`, + status: `Country`, + longitude: 20.917, + latitude: 6.633, + gdpPerPerson: 570, + rank: 115, + unemployment: 8, + oilProduction: 5, + birthRate: 13, + medianAge: 32, + electricity: 71424, + televisions: 635931, + publicDebt: 29, + internet: 1933873 + }), + new WorldStatsItem( + { + code: `DNK`, + name: `Denmark`, + continent: `Europe`, + population: 5605948, + gdpTotal: 264800, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 9.348, + latitude: 56.13, + gdpPerPerson: 47236, + rank: 116, + unemployment: 3, + oilProduction: 342000, + birthRate: 11, + medianAge: 40, + electricity: 43350, + televisions: 3121000, + publicDebt: 26, + internet: 3500000 + }), + new WorldStatsItem( + { + code: `FIN`, + name: `Finland`, + continent: `Europe`, + population: 5491218, + gdpTotal: 224137, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 25.988, + latitude: 61.841, + gdpPerPerson: 40817, + rank: 117, + unemployment: 7, + oilProduction: 8951, + birthRate: 10, + medianAge: 42, + electricity: 73470, + televisions: 3200000, + publicDebt: 36, + internet: 3600000 + }), + new WorldStatsItem( + { + code: `SVK`, + name: `Slovakia`, + continent: `Europe`, + population: 5445829, + gdpTotal: 168800, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 18.877, + latitude: 48.702, + gdpPerPerson: 30996, + rank: 118, + unemployment: 8, + oilProduction: 12840, + birthRate: 11, + medianAge: 37, + electricity: 29890, + televisions: 2620000, + publicDebt: 36, + internet: 2350000 + }), + new WorldStatsItem( + { + code: `TKM`, + name: `Turkmenistan`, + continent: `Asia`, + population: 5351277, + gdpTotal: 94720, + economy: `Developing`, + region: `Central Asia`, + status: `Country`, + longitude: 59.562, + latitude: 38.975, + gdpPerPerson: 17700, + rank: 119, + unemployment: 11, + oilProduction: 4, + birthRate: 11, + medianAge: 43, + electricity: 91281, + televisions: 2935468, + publicDebt: 17, + internet: 3203210 + }), + new WorldStatsItem( + { + code: `NOR`, + name: `Norway`, + continent: `Europe`, + population: 5320045, + gdpTotal: 364700, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 9.66, + latitude: 60.712, + gdpPerPerson: 68552, + rank: 120, + unemployment: 3, + oilProduction: 2560000, + birthRate: 11, + medianAge: 39, + electricity: 135800, + televisions: 2030000, + publicDebt: 83, + internet: 3800000 + }), + new WorldStatsItem( + { + code: `IRL`, + name: `Ireland`, + continent: `Europe`, + population: 5011102, + gdpTotal: 322000, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: -8.209, + latitude: 53.42, + gdpPerPerson: 64257, + rank: 121, + unemployment: 5, + oilProduction: 0, + birthRate: 14, + medianAge: 35, + electricity: 24130, + televisions: 1820000, + publicDebt: 25, + internet: 1708000 + }), + new WorldStatsItem( + { + code: `COG`, + name: `Congo`, + continent: `Africa`, + population: 4954674, + gdpTotal: 30270, + economy: `Developing`, + region: `Middle Africa`, + status: `Country`, + longitude: 16.264, + latitude: -0.07, + gdpPerPerson: 6109, + rank: 122, + unemployment: 13, + oilProduction: 4, + birthRate: 11, + medianAge: 52, + electricity: 83556, + televisions: 1560800, + publicDebt: 6, + internet: 2650237 + }), + new WorldStatsItem( + { + code: `CRI`, + name: `Costa Rica`, + continent: `North America`, + population: 4930258, + gdpTotal: 79260, + economy: `Emerging`, + region: `Central America`, + status: `Country`, + longitude: -83.91, + latitude: 9.92, + gdpPerPerson: 16076, + rank: 123, + unemployment: 5, + oilProduction: 0, + birthRate: 18, + medianAge: 27, + electricity: 8349, + televisions: 525000, + publicDebt: 47, + internet: 1500000 + }), + new WorldStatsItem( + { + code: `GEO`, + name: `Georgia`, + continent: `Asia`, + population: 4926330, + gdpTotal: 37270, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 43.257, + latitude: 42.162, + gdpPerPerson: 7565, + rank: 124, + unemployment: 15, + oilProduction: 5, + birthRate: 10, + medianAge: 43, + electricity: 44936, + televisions: 2728128, + publicDebt: 29, + internet: 3844448 + }), + new WorldStatsItem( + { + code: `LBR`, + name: `Liberia`, + continent: `Africa`, + population: 4689021, + gdpTotal: 3881, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -9.454, + latitude: 6.445, + gdpPerPerson: 828, + rank: 125, + unemployment: 4, + oilProduction: 0, + birthRate: 8, + medianAge: 35, + electricity: 89626, + televisions: 3065112, + publicDebt: 38, + internet: 1475304 + }), + new WorldStatsItem( + { + code: `PSE`, + name: `Palestine`, + continent: `Asia`, + population: 4543126, + gdpTotal: 21221, + economy: `Developing`, + region: `Middle East`, + status: `Disputed`, + longitude: 35.347, + latitude: 32.031, + gdpPerPerson: 4671, + rank: 126, + unemployment: 9, + oilProduction: 1, + birthRate: 10, + medianAge: 48, + electricity: 45973, + televisions: 2774033, + publicDebt: 16, + internet: 1718915 + }), + new WorldStatsItem( + { + code: `NZL`, + name: `New Zealand`, + continent: `Oceania`, + population: 4510327, + gdpTotal: 174800, + economy: `Developed`, + region: `Australia`, + status: `Country`, + longitude: 169.42, + latitude: -44.86, + gdpPerPerson: 38756, + rank: 127, + unemployment: 4, + oilProduction: 25880, + birthRate: 14, + medianAge: 36, + electricity: 42060, + televisions: 1926000, + publicDebt: 21, + internet: 3360000 + }), + new WorldStatsItem( + { + code: `HRV`, + name: `Croatia`, + continent: `Europe`, + population: 4292095, + gdpTotal: 94240, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 16.847, + latitude: 45.674, + gdpPerPerson: 21957, + rank: 128, + unemployment: 12, + oilProduction: 17100, + birthRate: 10, + medianAge: 41, + electricity: 11990, + televisions: 1220000, + publicDebt: 48, + internet: 1995000 + }), + new WorldStatsItem( + { + code: `BIH`, + name: `Bosnia`, + continent: `Europe`, + population: 3856181, + gdpTotal: 42530, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 17.66, + latitude: 43.918, + gdpPerPerson: 11029, + rank: 129, + unemployment: 46, + oilProduction: 0, + birthRate: 9, + medianAge: 39, + electricity: 12220, + televisions: 0, + publicDebt: 34, + internet: 1055000 + }), + new WorldStatsItem( + { + code: `MRT`, + name: `Mauritania`, + continent: `Africa`, + population: 3758571, + gdpTotal: 16710, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -8.89, + latitude: 20.387, + gdpPerPerson: 4446, + rank: 130, + unemployment: 9, + oilProduction: 5, + birthRate: 25, + medianAge: 50, + electricity: 15176, + televisions: 2558125, + publicDebt: 29, + internet: 2098221 + }), + new WorldStatsItem( + { + code: `PAN`, + name: `Panama`, + continent: `North America`, + population: 3753142, + gdpTotal: 93120, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -81.17, + latitude: 8.457, + gdpPerPerson: 24811, + rank: 131, + unemployment: 6, + oilProduction: 0, + birthRate: 21, + medianAge: 27, + electricity: 5661, + televisions: 510000, + publicDebt: 53, + internet: 525200 + }), + new WorldStatsItem( + { + code: `SOL`, + name: `Somaliland`, + continent: `Africa`, + population: 3500000, + gdpTotal: 12250, + economy: `Developing`, + region: `Eastern Africa`, + status: `Indeterminate`, + longitude: 45.798, + latitude: 9.748, + gdpPerPerson: 3500, + rank: 132, + unemployment: 1, + oilProduction: 4, + birthRate: 13, + medianAge: 43, + electricity: 73247, + televisions: 2235408, + publicDebt: 21, + internet: 1300238 + }), + new WorldStatsItem( + { + code: `MDA`, + name: `Moldova`, + continent: `Europe`, + population: 3474121, + gdpTotal: 18540, + economy: `Developing`, + region: `Eastern Europe`, + status: `Country`, + longitude: 28.552, + latitude: 47.515, + gdpPerPerson: 5337, + rank: 133, + unemployment: 2, + oilProduction: 0, + birthRate: 11, + medianAge: 34, + electricity: 3881, + televisions: 1260000, + publicDebt: 23, + internet: 700000 + }), + new WorldStatsItem( + { + code: `OMN`, + name: `Oman`, + continent: `Asia`, + population: 3424386, + gdpTotal: 173100, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 57.563, + latitude: 22.014, + gdpPerPerson: 50549, + rank: 134, + unemployment: 15, + oilProduction: 710800, + birthRate: 35, + medianAge: 19, + electricity: 11890, + televisions: 1600000, + publicDebt: 4, + internet: 340000 + }), + new WorldStatsItem( + { + code: `URY`, + name: `Uruguay`, + continent: `South America`, + population: 3360148, + gdpTotal: 73250, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -55.78, + latitude: -32.51, + gdpPerPerson: 21800, + rank: 135, + unemployment: 9, + oilProduction: 27830, + birthRate: 14, + medianAge: 33, + electricity: 9200, + televisions: 782000, + publicDebt: 65, + internet: 968000 + }), + new WorldStatsItem( + { + code: `PRI`, + name: `Puerto Rico`, + continent: `North America`, + population: 3351827, + gdpTotal: 131000, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -66.61, + latitude: 18.235, + gdpPerPerson: 39083, + rank: 136, + unemployment: 5, + oilProduction: 3, + birthRate: 11, + medianAge: 32, + electricity: 19677, + televisions: 1917997, + publicDebt: 25, + internet: 608062 + }), + new WorldStatsItem( + { + code: `MNG`, + name: `Mongolia`, + continent: `Asia`, + population: 3068243, + gdpTotal: 37000, + economy: `Developing`, + region: `Eastern Asia`, + status: `Country`, + longitude: 103.82, + latitude: 46.856, + gdpPerPerson: 12059, + rank: 137, + unemployment: 4, + oilProduction: 1, + birthRate: 7, + medianAge: 35, + electricity: 3875, + televisions: 1726758, + publicDebt: 17, + internet: 562546 + }), + new WorldStatsItem( + { + code: `ALB`, + name: `Albania`, + continent: `Europe`, + population: 3047987, + gdpTotal: 33900, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 19.964, + latitude: 40.759, + gdpPerPerson: 11122, + rank: 138, + unemployment: 13, + oilProduction: 7006, + birthRate: 15, + medianAge: 30, + electricity: 5385, + televisions: 700000, + publicDebt: 51, + internet: 471200 + }), + new WorldStatsItem( + { + code: `ARM`, + name: `Armenia`, + continent: `Asia`, + population: 3045191, + gdpTotal: 26300, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 44.646, + latitude: 40.618, + gdpPerPerson: 8637, + rank: 139, + unemployment: 4, + oilProduction: 4, + birthRate: 14, + medianAge: 39, + electricity: 71042, + televisions: 2390201, + publicDebt: 9, + internet: 488333 + }), + new WorldStatsItem( + { + code: `JAM`, + name: `Jamaica`, + continent: `North America`, + population: 2990561, + gdpTotal: 25390, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -77.27, + latitude: 18.119, + gdpPerPerson: 8490, + rank: 140, + unemployment: 10, + oilProduction: 0, + birthRate: 20, + medianAge: 23, + electricity: 6985, + televisions: 460000, + publicDebt: 127, + internet: 1500000 + }), + new WorldStatsItem( + { + code: `KWT`, + name: `Kuwait`, + continent: `Asia`, + population: 2875422, + gdpTotal: 301100, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 47.487, + latitude: 29.315, + gdpPerPerson: 104715, + rank: 141, + unemployment: 2, + oilProduction: 2440000, + birthRate: 22, + medianAge: 26, + electricity: 41110, + televisions: 875000, + publicDebt: 10, + internet: 900000 + }), + new WorldStatsItem( + { + code: `LTU`, + name: `Lithuania`, + continent: `Europe`, + population: 2823859, + gdpTotal: 85620, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 23.838, + latitude: 55.152, + gdpPerPerson: 30320, + rank: 142, + unemployment: 4, + oilProduction: 13160, + birthRate: 9, + medianAge: 39, + electricity: 13480, + televisions: 1700000, + publicDebt: 17, + internet: 1330000 + }), + new WorldStatsItem( + { + code: `NAM`, + name: `Namibia`, + continent: `Africa`, + population: 2484780, + gdpTotal: 25990, + economy: `Developing`, + region: `Southern Africa`, + status: `Country`, + longitude: 16.944, + latitude: -20.52, + gdpPerPerson: 10460, + rank: 143, + unemployment: 5, + oilProduction: 0, + birthRate: 23, + medianAge: 21, + electricity: 1688, + televisions: 60000, + publicDebt: 22, + internet: 101000 + }), + new WorldStatsItem( + { + code: `QAT`, + name: `Qatar`, + continent: `Asia`, + population: 2314307, + gdpTotal: 334500, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 51.182, + latitude: 25.359, + gdpPerPerson: 144536, + rank: 144, + unemployment: 1, + oilProduction: 797500, + birthRate: 16, + medianAge: 31, + electricity: 13540, + televisions: 230000, + publicDebt: 11, + internet: 351000 + }), + new WorldStatsItem( + { + code: `BWA`, + name: `Botswana`, + continent: `Africa`, + population: 2214858, + gdpTotal: 35900, + economy: `Developing`, + region: `Southern Africa`, + status: `Country`, + longitude: 24.671, + latitude: -22.32, + gdpPerPerson: 16209, + rank: 145, + unemployment: 8, + oilProduction: 0, + birthRate: 23, + medianAge: 21, + electricity: 912, + televisions: 31000, + publicDebt: 5, + internet: 80000 + }), + new WorldStatsItem( + { + code: `MKD`, + name: `North Macedonia`, + continent: `Europe`, + population: 2103721, + gdpTotal: 29520, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 21.727, + latitude: 41.604, + gdpPerPerson: 14032, + rank: 146, + unemployment: 35, + oilProduction: 0, + birthRate: 12, + medianAge: 35, + electricity: 6051, + televisions: 510000, + publicDebt: 31, + internet: 685000 + }), + new WorldStatsItem( + { + code: `GMB`, + name: `Gambia`, + continent: `Africa`, + population: 2051363, + gdpTotal: 3387, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -15.32, + latitude: 13.438, + gdpPerPerson: 1651, + rank: 147, + unemployment: 7, + oilProduction: 1, + birthRate: 11, + medianAge: 37, + electricity: 9769, + televisions: 1486289, + publicDebt: 30, + internet: 187890 + }), + new WorldStatsItem( + { + code: `SVN`, + name: `Slovenia`, + continent: `Europe`, + population: 1972126, + gdpTotal: 68350, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 14.947, + latitude: 46.146, + gdpPerPerson: 34658, + rank: 148, + unemployment: 8, + oilProduction: 5, + birthRate: 9, + medianAge: 41, + electricity: 14900, + televisions: 710000, + publicDebt: 24, + internet: 1300000 + }), + new WorldStatsItem( + { + code: `LSO`, + name: `Lesotho`, + continent: `Africa`, + population: 1958042, + gdpTotal: 6019, + economy: `Least developed`, + region: `Southern Africa`, + status: `Country`, + longitude: 28.221, + latitude: -29.61, + gdpPerPerson: 3074, + rank: 149, + unemployment: 12, + oilProduction: 2, + birthRate: 8, + medianAge: 32, + electricity: 20229, + televisions: 1457517, + publicDebt: 14, + internet: 1375222 + }), + new WorldStatsItem( + { + code: `LVA`, + name: `Latvia`, + continent: `Europe`, + population: 1944643, + gdpTotal: 50650, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 26.505, + latitude: 56.755, + gdpPerPerson: 26046, + rank: 150, + unemployment: 6, + oilProduction: 0, + birthRate: 10, + medianAge: 40, + electricity: 4778, + televisions: 1220000, + publicDebt: 7, + internet: 1770000 + }), + new WorldStatsItem( + { + code: `RKS`, + name: `Kosovo`, + continent: `Europe`, + population: 1895250, + gdpTotal: 18490, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 20.891, + latitude: 42.557, + gdpPerPerson: 9756, + rank: 151, + unemployment: 12, + oilProduction: 0, + birthRate: 8, + medianAge: 55, + electricity: 14878, + televisions: 1287863, + publicDebt: 20, + internet: 1422193 + }), + new WorldStatsItem( + { + code: `GNB`, + name: `Guinea-Bissau`, + continent: `Africa`, + population: 1792338, + gdpTotal: 2851, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -14.59, + latitude: 11.942, + gdpPerPerson: 1591, + rank: 152, + unemployment: 5, + oilProduction: 5, + birthRate: 5, + medianAge: 55, + electricity: 74684, + televisions: 1427462, + publicDebt: 8, + internet: 365000 + }), + new WorldStatsItem( + { + code: `GAB`, + name: `Gabon`, + continent: `Africa`, + population: 1772255, + gdpTotal: 35980, + economy: `Developing`, + region: `Middle Africa`, + status: `Country`, + longitude: 11.592, + latitude: -0.807, + gdpPerPerson: 20302, + rank: 153, + unemployment: 21, + oilProduction: 240000, + birthRate: 36, + medianAge: 19, + electricity: 1520, + televisions: 63000, + publicDebt: 53, + internet: 145000 + }), + new WorldStatsItem( + { + code: `SWZ`, + name: `Eswatini`, + continent: `Africa`, + population: 1467152, + gdpTotal: 11060, + economy: `Developing`, + region: `Southern Africa`, + status: `Country`, + longitude: 31.45, + latitude: -26.52, + gdpPerPerson: 7538, + rank: 154, + unemployment: 6, + oilProduction: 3, + birthRate: 17, + medianAge: 39, + electricity: 72804, + televisions: 229393, + publicDebt: 5, + internet: 427760 + }), + new WorldStatsItem( + { + code: `BHR`, + name: `Bahrain`, + continent: `Asia`, + population: 1410942, + gdpTotal: 66370, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 50.535, + latitude: 26.027, + gdpPerPerson: 47039, + rank: 155, + unemployment: 15, + oilProduction: 184300, + birthRate: 17, + medianAge: 30, + electricity: 8187, + televisions: 275000, + publicDebt: 31, + internet: 250000 + }), + new WorldStatsItem( + { + code: `MUS`, + name: `Mauritius`, + continent: `Africa`, + population: 1356388, + gdpTotal: 25850, + economy: `Developing`, + region: `Eastern Africa`, + status: `Country`, + longitude: 57.555, + latitude: -20.25, + gdpPerPerson: 19058, + rank: 156, + unemployment: 9, + oilProduction: 0, + birthRate: 15, + medianAge: 32, + electricity: 2350, + televisions: 258000, + publicDebt: 63, + internet: 340000 + }), + new WorldStatsItem( + { + code: `TLS`, + name: `Timor-Leste`, + continent: `Asia`, + population: 1291358, + gdpTotal: 4975, + economy: `Least developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 125.66, + latitude: -8.826, + gdpPerPerson: 3853, + rank: 157, + unemployment: 8, + oilProduction: 5, + birthRate: 18, + medianAge: 48, + electricity: 84061, + televisions: 416260, + publicDebt: 25, + internet: 267437 + }), + new WorldStatsItem( + { + code: `EST`, + name: `Estonia`, + continent: `Europe`, + population: 1251581, + gdpTotal: 38700, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 25.441, + latitude: 58.845, + gdpPerPerson: 30921, + rank: 158, + unemployment: 5, + oilProduction: 6930, + birthRate: 10, + medianAge: 40, + electricity: 9599, + televisions: 605000, + publicDebt: 3, + internet: 780000 + }), + new WorldStatsItem( + { + code: `CYP`, + name: `Cyprus`, + continent: `Asia`, + population: 1221549, + gdpTotal: 29260, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 33.176, + latitude: 34.876, + gdpPerPerson: 23953, + rank: 159, + unemployment: 4, + oilProduction: 0, + birthRate: 13, + medianAge: 35, + electricity: 4618, + televisions: 0, + publicDebt: 60, + internet: 380000 + }), + new WorldStatsItem( + { + code: `TTO`, + name: `Trinidad and Tobago`, + continent: `North America`, + population: 1218208, + gdpTotal: 43570, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -61.21, + latitude: 10.352, + gdpPerPerson: 35766, + rank: 160, + unemployment: 4, + oilProduction: 5, + birthRate: 15, + medianAge: 47, + electricity: 58959, + televisions: 359389, + publicDebt: 29, + internet: 152416 + }), + new WorldStatsItem( + { + code: `FJI`, + name: `Fiji`, + continent: `Oceania`, + population: 920938, + gdpTotal: 8374, + economy: `Developing`, + region: `Melanesia`, + status: `Country`, + longitude: 177.85, + latitude: -17.75, + gdpPerPerson: 9093, + rank: 161, + unemployment: 11, + oilProduction: 5, + birthRate: 5, + medianAge: 41, + electricity: 88931, + televisions: 517580, + publicDebt: 17, + internet: 539400 + }), + new WorldStatsItem( + { + code: `DJI`, + name: `Djibouti`, + continent: `Africa`, + population: 865267, + gdpTotal: 3345, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 42.587, + latitude: 11.825, + gdpPerPerson: 3866, + rank: 162, + unemployment: 5, + oilProduction: 3, + birthRate: 17, + medianAge: 44, + electricity: 91593, + televisions: 209004, + publicDebt: 43, + internet: 476114 + }), + new WorldStatsItem( + { + code: `COM`, + name: `Comoros`, + continent: `Africa`, + population: 808080, + gdpTotal: 1259, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 43.877, + latitude: -11.86, + gdpPerPerson: 1558, + rank: 163, + unemployment: 11, + oilProduction: 3, + birthRate: 14, + medianAge: 46, + electricity: 6146, + televisions: 495921, + publicDebt: 10, + internet: 459977 + }), + new WorldStatsItem( + { + code: `GNQ`, + name: `Equatorial Guinea`, + continent: `Africa`, + population: 778358, + gdpTotal: 31770, + economy: `Least developed`, + region: `Middle Africa`, + status: `Country`, + longitude: 10.521, + latitude: 1.763, + gdpPerPerson: 40817, + rank: 164, + unemployment: 30, + oilProduction: 385500, + birthRate: 37, + medianAge: 19, + electricity: 28, + televisions: 4000, + publicDebt: 2, + internet: 8000 + }), + new WorldStatsItem( + { + code: `BTN`, + name: `Bhutan`, + continent: `Asia`, + population: 758288, + gdpTotal: 6432, + economy: `Least developed`, + region: `Southern Asia`, + status: `Country`, + longitude: 90.411, + latitude: 27.506, + gdpPerPerson: 8482, + rank: 165, + unemployment: 3, + oilProduction: 0, + birthRate: 21, + medianAge: 24, + electricity: 2000, + televisions: 11000, + publicDebt: 81, + internet: 40000 + }), + new WorldStatsItem( + { + code: `GUY`, + name: `Guyana`, + continent: `South America`, + population: 737718, + gdpTotal: 6093, + economy: `Developing`, + region: `South America`, + status: `Country`, + longitude: -58.96, + latitude: 5.607, + gdpPerPerson: 8259, + rank: 166, + unemployment: 2, + oilProduction: 3, + birthRate: 9, + medianAge: 37, + electricity: 84988, + televisions: 149848, + publicDebt: 12, + internet: 134377 + }), + new WorldStatsItem( + { + code: `SLB`, + name: `Solomon Islands`, + continent: `Oceania`, + population: 647581, + gdpTotal: 1198, + economy: `Least developed`, + region: `Melanesia`, + status: `Country`, + longitude: 161.3, + latitude: -9.221, + gdpPerPerson: 1850, + rank: 167, + unemployment: 4, + oilProduction: 3, + birthRate: 18, + medianAge: 30, + electricity: 3432, + televisions: 177555, + publicDebt: 43, + internet: 478635 + }), + new WorldStatsItem( + { + code: `MNE`, + name: `Montenegro`, + continent: `Europe`, + population: 642550, + gdpTotal: 10610, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 19.191, + latitude: 42.814, + gdpPerPerson: 16512, + rank: 168, + unemployment: 10, + oilProduction: 2, + birthRate: 24, + medianAge: 46, + electricity: 24709, + televisions: 126756, + publicDebt: 29, + internet: 336628 + }), + new WorldStatsItem( + { + code: `ESH`, + name: `Western Sahara`, + continent: `Africa`, + population: 603253, + gdpTotal: 907, + economy: `Least developed`, + region: `Northern Africa`, + status: `Dependency`, + longitude: -12.89, + latitude: 24.231, + gdpPerPerson: 1504, + rank: 169, + unemployment: 6, + oilProduction: 1, + birthRate: 23, + medianAge: 30, + electricity: 11081, + televisions: 237857, + publicDebt: 30, + internet: 306624 + }), + new WorldStatsItem( + { + code: `MAC`, + name: `Macao`, + continent: `Asia`, + population: 601969, + gdpTotal: 63220, + economy: `Developing`, + region: `Eastern Asia`, + status: `Dependency`, + longitude: 113.51, + latitude: 22.221, + gdpPerPerson: 105022, + rank: 170, + unemployment: 10, + oilProduction: 2, + birthRate: 10, + medianAge: 47, + electricity: 77896, + televisions: 163859, + publicDebt: 18, + internet: 62728 + }), + new WorldStatsItem( + { + code: `LUX`, + name: `Luxembourg`, + continent: `Europe`, + population: 594130, + gdpTotal: 58740, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 6.109, + latitude: 49.806, + gdpPerPerson: 98867, + rank: 171, + unemployment: 4, + oilProduction: 0, + birthRate: 12, + medianAge: 39, + electricity: 3156, + televisions: 285000, + publicDebt: 6, + internet: 345000 + }), + new WorldStatsItem( + { + code: `SUR`, + name: `Suriname`, + continent: `South America`, + population: 591919, + gdpTotal: 8547, + economy: `Developing`, + region: `South America`, + status: `Country`, + longitude: -56.02, + latitude: 4.506, + gdpPerPerson: 14439, + rank: 172, + unemployment: 5, + oilProduction: 1, + birthRate: 16, + medianAge: 44, + electricity: 82658, + televisions: 69068, + publicDebt: 31, + internet: 367104 + }), + new WorldStatsItem( + { + code: `CPV`, + name: `Cabo Verde`, + continent: `Africa`, + population: 560899, + gdpTotal: 3583, + economy: `Developing`, + region: `Western Africa`, + status: `Country`, + longitude: -25.16, + latitude: 17.102, + gdpPerPerson: 6388, + rank: 173, + unemployment: 12, + oilProduction: 1, + birthRate: 12, + medianAge: 54, + electricity: 60647, + televisions: 101289, + publicDebt: 34, + internet: 40105 + }), + new WorldStatsItem( + { + code: `BRN`, + name: `Brunei`, + continent: `Asia`, + population: 443593, + gdpTotal: 33730, + economy: `Developing`, + region: `Eastern Asia`, + status: `Country`, + longitude: 114.69, + latitude: 4.523, + gdpPerPerson: 76038, + rank: 174, + unemployment: 4, + oilProduction: 0, + birthRate: 17, + medianAge: 32, + electricity: 50701, + televisions: 235042, + publicDebt: 16, + internet: 188751 + }), + new WorldStatsItem( + { + code: `MLT`, + name: `Malta`, + continent: `Europe`, + population: 416338, + gdpTotal: 16320, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 14.373, + latitude: 35.948, + gdpPerPerson: 39199, + rank: 175, + unemployment: 7, + oilProduction: 4, + birthRate: 6, + medianAge: 52, + electricity: 77444, + televisions: 282390, + publicDebt: 41, + internet: 317612 + }), + new WorldStatsItem( + { + code: `MDV`, + name: `Maldives`, + continent: `Asia`, + population: 392709, + gdpTotal: 5407, + economy: `Developing`, + region: `Southern Asia`, + status: `Country`, + longitude: 73.455, + latitude: 3.739, + gdpPerPerson: 13768, + rank: 176, + unemployment: 13, + oilProduction: 4, + birthRate: 10, + medianAge: 43, + electricity: 26004, + televisions: 156412, + publicDebt: 28, + internet: 45331 + }), + new WorldStatsItem( + { + code: `BLZ`, + name: `Belize`, + continent: `North America`, + population: 360346, + gdpTotal: 3088, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -88.51, + latitude: 17.185, + gdpPerPerson: 8570, + rank: 177, + unemployment: 4, + oilProduction: 2, + birthRate: 7, + medianAge: 36, + electricity: 57433, + televisions: 127478, + publicDebt: 36, + internet: 223855 + }), + new WorldStatsItem( + { + code: `ISL`, + name: `Iceland`, + continent: `Europe`, + population: 339747, + gdpTotal: 16150, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: -19.01, + latitude: 64.966, + gdpPerPerson: 47535, + rank: 178, + unemployment: 1, + oilProduction: 0, + birthRate: 14, + medianAge: 35, + electricity: 8533, + televisions: 98000, + publicDebt: 28, + internet: 202300 + }), + new WorldStatsItem( + { + code: `BHS`, + name: `Bahamas`, + continent: `North America`, + population: 329988, + gdpTotal: 9066, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -78.01, + latitude: 24.761, + gdpPerPerson: 27474, + rank: 179, + unemployment: 5, + oilProduction: 2, + birthRate: 17, + medianAge: 47, + electricity: 38395, + televisions: 203588, + publicDebt: 6, + internet: 91807 + }), + new WorldStatsItem( + { + code: `FRG`, + name: `French Guiana`, + continent: `South America`, + population: 296161, + gdpTotal: 1299000, + economy: `Developed`, + region: `South America`, + status: `Dependency`, + longitude: -53.13, + latitude: 3.893, + gdpPerPerson: 4386128, + rank: 180, + unemployment: 3, + oilProduction: 0, + birthRate: 15, + medianAge: 55, + electricity: 73845, + televisions: 147489, + publicDebt: 35, + internet: 209593 + }), + new WorldStatsItem( + { + code: `BRB`, + name: `Barbados`, + continent: `North America`, + population: 292336, + gdpTotal: 4804, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -59.53, + latitude: 13.19, + gdpPerPerson: 16433, + rank: 181, + unemployment: 8, + oilProduction: 3, + birthRate: 21, + medianAge: 51, + electricity: 28728, + televisions: 173392, + publicDebt: 12, + internet: 73593 + }), + new WorldStatsItem( + { + code: `PYF`, + name: `Fr. Polynesia`, + continent: `Oceania`, + population: 287881, + gdpTotal: 5490, + economy: `Developing`, + region: `Polynesia`, + status: `Dependency`, + longitude: -143.9, + latitude: -14.82, + gdpPerPerson: 19070, + rank: 182, + unemployment: 1, + oilProduction: 4, + birthRate: 6, + medianAge: 45, + electricity: 46206, + televisions: 43757, + publicDebt: 12, + internet: 172560 + }), + new WorldStatsItem( + { + code: `VUT`, + name: `Vanuatu`, + continent: `Oceania`, + population: 282814, + gdpTotal: 723, + economy: `Least developed`, + region: `Melanesia`, + status: `Country`, + longitude: 168.21, + latitude: -16.97, + gdpPerPerson: 2556, + rank: 183, + unemployment: 11, + oilProduction: 4, + birthRate: 17, + medianAge: 39, + electricity: 50581, + televisions: 187584, + publicDebt: 42, + internet: 223352 + }), + new WorldStatsItem( + { + code: `NCL`, + name: `New Caledonia`, + continent: `Oceania`, + population: 279070, + gdpTotal: 10770, + economy: `Developing`, + region: `Melanesia`, + status: `Dependency`, + longitude: 165.26, + latitude: -21.09, + gdpPerPerson: 38592, + rank: 184, + unemployment: 10, + oilProduction: 3, + birthRate: 6, + medianAge: 49, + electricity: 18361, + televisions: 79923, + publicDebt: 45, + internet: 149003 + }), + new WorldStatsItem( + { + code: `NCP`, + name: `Northern Cyprus`, + continent: `Asia`, + population: 265100, + gdpTotal: 3600, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 33.714, + latitude: 35.257, + gdpPerPerson: 13580, + rank: 185, + unemployment: 4, + oilProduction: 5, + birthRate: 25, + medianAge: 51, + electricity: 84000, + televisions: 135551, + publicDebt: 30, + internet: 167480 + }), + new WorldStatsItem( + { + code: `STP`, + name: `Sao Tome and Principe`, + continent: `Africa`, + population: 201025, + gdpTotal: 694, + economy: `Least developed`, + region: `Middle Africa`, + status: `Country`, + longitude: 6.598, + latitude: 0.248, + gdpPerPerson: 3452, + rank: 186, + unemployment: 1, + oilProduction: 3, + birthRate: 24, + medianAge: 30, + electricity: 6691, + televisions: 65480, + publicDebt: 12, + internet: 121162 + }), + new WorldStatsItem( + { + code: `WSM`, + name: `Samoa`, + continent: `Oceania`, + population: 200108, + gdpTotal: 1046, + economy: `Least developed`, + region: `Polynesia`, + status: `Country`, + longitude: -172.1, + latitude: -13.75, + gdpPerPerson: 5227, + rank: 187, + unemployment: 3, + oilProduction: 2, + birthRate: 7, + medianAge: 46, + electricity: 50118, + televisions: 54930, + publicDebt: 42, + internet: 84739 + }), + new WorldStatsItem( + { + code: `GUM`, + name: `Guam`, + continent: `Oceania`, + population: 167358, + gdpTotal: 4882, + economy: `Developing`, + region: `Micronesia`, + status: `Dependency`, + longitude: 144.79, + latitude: 13.44, + gdpPerPerson: 29171, + rank: 188, + unemployment: 15, + oilProduction: 2, + birthRate: 24, + medianAge: 42, + electricity: 64229, + televisions: 43567, + publicDebt: 37, + internet: 121131 + }), + new WorldStatsItem( + { + code: `LCA`, + name: `Saint Lucia`, + continent: `North America`, + population: 164994, + gdpTotal: 2083, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -60.98, + latitude: 13.905, + gdpPerPerson: 12625, + rank: 189, + unemployment: 3, + oilProduction: 2, + birthRate: 14, + medianAge: 32, + electricity: 75473, + televisions: 87743, + publicDebt: 7, + internet: 64498 + }), + new WorldStatsItem( + { + code: `CUW`, + name: `Curacao`, + continent: `North America`, + population: 149648, + gdpTotal: 3128, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -68.95, + latitude: 12.213, + gdpPerPerson: 20902, + rank: 190, + unemployment: 6, + oilProduction: 1, + birthRate: 7, + medianAge: 35, + electricity: 74665, + televisions: 89830, + publicDebt: 36, + internet: 55905 + }), + new WorldStatsItem( + { + code: `ABW`, + name: `Aruba`, + continent: `North America`, + population: 115120, + gdpTotal: 2516, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -69.98, + latitude: 12.519, + gdpPerPerson: 21855, + rank: 191, + unemployment: 7, + oilProduction: 2356, + birthRate: 13, + medianAge: 38, + electricity: 770, + televisions: 20000, + publicDebt: 46, + internet: 24000 + }), + new WorldStatsItem( + { + code: `GRD`, + name: `Grenada`, + continent: `North America`, + population: 111724, + gdpTotal: 1511, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -61.69, + latitude: 12.123, + gdpPerPerson: 13524, + rank: 192, + unemployment: 10, + oilProduction: 0, + birthRate: 10, + medianAge: 50, + electricity: 4992, + televisions: 58674, + publicDebt: 42, + internet: 33132 + }), + new WorldStatsItem( + { + code: `KIR`, + name: `Kiribati`, + continent: `Oceania`, + population: 108145, + gdpTotal: 211, + economy: `Least developed`, + region: `Micronesia`, + status: `Country`, + longitude: -157.333, + latitude: 1.884, + gdpPerPerson: 1951, + rank: 193, + unemployment: 13, + oilProduction: 4, + birthRate: 9, + medianAge: 52, + electricity: 37081, + televisions: 52395, + publicDebt: 40, + internet: 36620 + }), + new WorldStatsItem( + { + code: `VIR`, + name: `U.S. Virgin Island`, + continent: `North America`, + population: 107268, + gdpTotal: 3792, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -64.77, + latitude: 17.77, + gdpPerPerson: 35351, + rank: 194, + unemployment: 11, + oilProduction: 2, + birthRate: 12, + medianAge: 38, + electricity: 13387, + televisions: 77187, + publicDebt: 43, + internet: 40836 + }), + new WorldStatsItem( + { + code: `TON`, + name: `Tonga`, + continent: `Oceania`, + population: 106479, + gdpTotal: 557, + economy: `Developing`, + region: `Polynesia`, + status: `Country`, + longitude: -173.9, + latitude: -18.62, + gdpPerPerson: 5231, + rank: 195, + unemployment: 4, + oilProduction: 4, + birthRate: 5, + medianAge: 33, + electricity: 88735, + televisions: 30257, + publicDebt: 25, + internet: 71756 + }), + new WorldStatsItem( + { + code: `FSM`, + name: `Micronesia`, + continent: `Oceania`, + population: 104196, + gdpTotal: 314, + economy: `Developing`, + region: `Micronesia`, + status: `Country`, + longitude: 150.52, + latitude: 7.435, + gdpPerPerson: 3014, + rank: 196, + unemployment: 9, + oilProduction: 5, + birthRate: 5, + medianAge: 38, + electricity: 39068, + televisions: 45396, + publicDebt: 40, + internet: 29169 + }), + new WorldStatsItem( + { + code: `VCT`, + name: `St. Vin. and Gren.`, + continent: `North America`, + population: 102089, + gdpTotal: 1241, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -61.17, + latitude: 13.239, + gdpPerPerson: 12156, + rank: 197, + unemployment: 10, + oilProduction: 5, + birthRate: 7, + medianAge: 30, + electricity: 39467, + televisions: 42804, + publicDebt: 9, + internet: 66754 + }), + new WorldStatsItem( + { + code: `JEY`, + name: `Jersey`, + continent: `Europe`, + population: 98840, + gdpTotal: 5080, + economy: `Developed`, + region: `Northern Europe`, + status: `Territory`, + longitude: -2.123, + latitude: 49.218, + gdpPerPerson: 51396, + rank: 198, + unemployment: 4, + oilProduction: 1, + birthRate: 18, + medianAge: 30, + electricity: 64261, + televisions: 52453, + publicDebt: 34, + internet: 3026 + }), + new WorldStatsItem( + { + code: `ATG`, + name: `Antigua and Barbuda`, + continent: `North America`, + population: 94731, + gdpTotal: 2171, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -61.79, + latitude: 17.096, + gdpPerPerson: 22918, + rank: 199, + unemployment: 3, + oilProduction: 1, + birthRate: 5, + medianAge: 36, + electricity: 35849, + televisions: 75384, + publicDebt: 32, + internet: 6170 + }), + new WorldStatsItem( + { + code: `SYC`, + name: `Seychelles`, + continent: `Africa`, + population: 93920, + gdpTotal: 2608, + economy: `Developing`, + region: `Eastern Africa`, + status: `Country`, + longitude: 55.463, + latitude: -4.672, + gdpPerPerson: 27768, + rank: 200, + unemployment: 2, + oilProduction: 0, + birthRate: 16, + medianAge: 29, + electricity: 252, + televisions: 11000, + publicDebt: 92, + internet: 32000 + }), + new WorldStatsItem( + { + code: `IMN`, + name: `Isle of Man`, + continent: `Europe`, + population: 88815, + gdpTotal: 7428, + economy: `Developed`, + region: `Northern Europe`, + status: `Territory`, + longitude: -4.562, + latitude: 54.233, + gdpPerPerson: 83635, + rank: 201, + unemployment: 4, + oilProduction: 4, + birthRate: 14, + medianAge: 36, + electricity: 15745, + televisions: 25734, + publicDebt: 13, + internet: 2650 + }), + new WorldStatsItem( + { + code: `AND`, + name: `Andorra`, + continent: `Europe`, + population: 85702, + gdpTotal: 3327, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 1.578, + latitude: 42.539, + gdpPerPerson: 38821, + rank: 202, + unemployment: 11, + oilProduction: 3, + birthRate: 20, + medianAge: 50, + electricity: 56209, + televisions: 42797, + publicDebt: 33, + internet: 42006 + }), + new WorldStatsItem( + { + code: `MHL`, + name: `Marshall Islands`, + continent: `Oceania`, + population: 74539, + gdpTotal: 180, + economy: `Developing`, + region: `Micronesia`, + status: `Country`, + longitude: 169.3, + latitude: 8.484, + gdpPerPerson: 2415, + rank: 203, + unemployment: 3, + oilProduction: 3, + birthRate: 23, + medianAge: 42, + electricity: 78832, + televisions: 15193, + publicDebt: 44, + internet: 8536 + }), + new WorldStatsItem( + { + code: `DMA`, + name: `Dominica`, + continent: `North America`, + population: 73897, + gdpTotal: 812, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -61.36, + latitude: 15.43, + gdpPerPerson: 10988, + rank: 204, + unemployment: 6, + oilProduction: 1, + birthRate: 13, + medianAge: 35, + electricity: 49809, + televisions: 17676, + publicDebt: 37, + internet: 2616 + }), + new WorldStatsItem( + { + code: `BMU`, + name: `Bermuda`, + continent: `North America`, + population: 70864, + gdpTotal: 5198, + economy: `Developed`, + region: `Northern America`, + status: `Dependency`, + longitude: -64.76, + latitude: 32.323, + gdpPerPerson: 73352, + rank: 205, + unemployment: 15, + oilProduction: 1, + birthRate: 21, + medianAge: 43, + electricity: 54728, + televisions: 16336, + publicDebt: 27, + internet: 41606 + }), + new WorldStatsItem( + { + code: `GGY`, + name: `Guernsey`, + continent: `Europe`, + population: 66502, + gdpTotal: 3465, + economy: `Developed`, + region: `Northern Europe`, + status: `Territory`, + longitude: -2.579, + latitude: 49.468, + gdpPerPerson: 52104, + rank: 206, + unemployment: 2, + oilProduction: 1, + birthRate: 25, + medianAge: 33, + electricity: 9806, + televisions: 24638, + publicDebt: 34, + internet: 29222 + }), + new WorldStatsItem( + { + code: `CYM`, + name: `Cayman Island`, + continent: `North America`, + population: 58441, + gdpTotal: 2507, + economy: `Emerging`, + region: `Central America`, + status: `Dependency`, + longitude: -81.25, + latitude: 19.343, + gdpPerPerson: 42898, + rank: 207, + unemployment: 12, + oilProduction: 3, + birthRate: 7, + medianAge: 35, + electricity: 70206, + televisions: 28885, + publicDebt: 21, + internet: 9332 + }), + new WorldStatsItem( + { + code: `GRL`, + name: `Greenland`, + continent: `North America`, + population: 57713, + gdpTotal: 2173, + economy: `Developed`, + region: `Northern America`, + status: `Dependency`, + longitude: -42.12, + latitude: 69.547, + gdpPerPerson: 37652, + rank: 208, + unemployment: 7, + oilProduction: 5, + birthRate: 19, + medianAge: 42, + electricity: 86090, + televisions: 43741, + publicDebt: 42, + internet: 11423 + }), + new WorldStatsItem( + { + code: `KNA`, + name: `St. Kitts and Nevis`, + continent: `North America`, + population: 52715, + gdpTotal: 1427, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -62.77, + latitude: 17.351, + gdpPerPerson: 27070, + rank: 209, + unemployment: 5, + oilProduction: 2, + birthRate: 18, + medianAge: 40, + electricity: 65438, + televisions: 17719, + publicDebt: 11, + internet: 8543 + }), + new WorldStatsItem( + { + code: `TCA`, + name: `Turks and Caicos Is.`, + continent: `North America`, + population: 52570, + gdpTotal: 632, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -71.96, + latitude: 21.913, + gdpPerPerson: 12022, + rank: 210, + unemployment: 6, + oilProduction: 0, + birthRate: 13, + medianAge: 42, + electricity: 51325, + televisions: 13109, + publicDebt: 13, + internet: 24564 + }), + new WorldStatsItem( + { + code: `MNP`, + name: `N. Mariana Island`, + continent: `Oceania`, + population: 52263, + gdpTotal: 682, + economy: `Developing`, + region: `Micronesia`, + status: `Dependency`, + longitude: 145.49, + latitude: 16.459, + gdpPerPerson: 13049, + rank: 211, + unemployment: 10, + oilProduction: 1, + birthRate: 9, + medianAge: 46, + electricity: 87386, + televisions: 13049, + publicDebt: 20, + internet: 5484 + }), + new WorldStatsItem( + { + code: `ASM`, + name: `American Samoa`, + continent: `Oceania`, + population: 51504, + gdpTotal: 711, + economy: `Developing`, + region: `Polynesia`, + status: `Dependency`, + longitude: -170.6, + latitude: -14.3, + gdpPerPerson: 13805, + rank: 212, + unemployment: 3, + oilProduction: 4, + birthRate: 13, + medianAge: 42, + electricity: 65918, + televisions: 18802, + publicDebt: 23, + internet: 14691 + }), + new WorldStatsItem( + { + code: `FRO`, + name: `Faeroe Island`, + continent: `Europe`, + population: 50730, + gdpTotal: 2001, + economy: `Developed`, + region: `Northern Europe`, + status: `Dependency`, + longitude: -6.857, + latitude: 62.178, + gdpPerPerson: 39444, + rank: 213, + unemployment: 15, + oilProduction: 2, + birthRate: 11, + medianAge: 46, + electricity: 55029, + televisions: 11762, + publicDebt: 13, + internet: 2412 + }), + new WorldStatsItem( + { + code: `SXM`, + name: `Sint Maarten`, + continent: `North America`, + population: 42083, + gdpTotal: 366, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -63.06, + latitude: 18.044, + gdpPerPerson: 8697, + rank: 214, + unemployment: 14, + oilProduction: 4, + birthRate: 19, + medianAge: 50, + electricity: 17166, + televisions: 8474, + publicDebt: 33, + internet: 14309 + }), + new WorldStatsItem( + { + code: `LIE`, + name: `Liechtenstein`, + continent: `Europe`, + population: 38244, + gdpTotal: 4978, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 9.545, + latitude: 47.164, + gdpPerPerson: 130164, + rank: 215, + unemployment: 11, + oilProduction: 3, + birthRate: 10, + medianAge: 55, + electricity: 80781, + televisions: 23104, + publicDebt: 21, + internet: 8159 + }), + new WorldStatsItem( + { + code: `VGB`, + name: `British Virgin Island`, + continent: `North America`, + population: 35015, + gdpTotal: 500, + economy: `Developed`, + region: `Central America`, + status: `Dependency`, + longitude: -64.6, + latitude: 18.44, + gdpPerPerson: 14280, + rank: 216, + unemployment: 13, + oilProduction: 2, + birthRate: 6, + medianAge: 51, + electricity: 47732, + televisions: 17777, + publicDebt: 7, + internet: 6238 + }), + new WorldStatsItem( + { + code: `SMR`, + name: `San Marino`, + continent: `Europe`, + population: 33537, + gdpTotal: 2023, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 12.456, + latitude: 43.942, + gdpPerPerson: 60321, + rank: 217, + unemployment: 10, + oilProduction: 0, + birthRate: 15, + medianAge: 48, + electricity: 21943, + televisions: 22355, + publicDebt: 34, + internet: 23505 + }), + new WorldStatsItem( + { + code: `MAF`, + name: `St. Martin`, + continent: `North America`, + population: 32125, + gdpTotal: 562, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -63.06, + latitude: 18.092, + gdpPerPerson: 17494, + rank: 218, + unemployment: 15, + oilProduction: 5, + birthRate: 10, + medianAge: 34, + electricity: 76791, + televisions: 17592, + publicDebt: 43, + internet: 25032 + }), + new WorldStatsItem( + { + code: `MCO`, + name: `Monaco`, + continent: `Europe`, + population: 30645, + gdpTotal: 7672, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 7.408, + latitude: 43.751, + gdpPerPerson: 250351, + rank: 219, + unemployment: 15, + oilProduction: 5, + birthRate: 18, + medianAge: 31, + electricity: 73517, + televisions: 10057, + publicDebt: 10, + internet: 18394 + }), + new WorldStatsItem( + { + code: `ALA`, + name: `Aland Islands`, + continent: `Europe`, + population: 27153, + gdpTotal: 1563, + economy: `Developed`, + region: `Northern Europe`, + status: `Territory`, + longitude: 20.065, + latitude: 60.209, + gdpPerPerson: 57563, + rank: 220, + unemployment: 14, + oilProduction: 3, + birthRate: 15, + medianAge: 54, + electricity: 69394, + televisions: 14696, + publicDebt: 19, + internet: 2736 + }), + new WorldStatsItem( + { + code: `PLW`, + name: `Palau`, + continent: `Oceania`, + population: 21431, + gdpTotal: 276, + economy: `Developing`, + region: `Micronesia`, + status: `Country`, + longitude: 134.63, + latitude: 7.532, + gdpPerPerson: 12879, + rank: 221, + unemployment: 8, + oilProduction: 1, + birthRate: 7, + medianAge: 39, + electricity: 88599, + televisions: 3019, + publicDebt: 8, + internet: 17075 + }), + new WorldStatsItem( + { + code: `AIA`, + name: `Anguilla`, + continent: `North America`, + population: 17087, + gdpTotal: 175, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -63.07, + latitude: 18.221, + gdpPerPerson: 10242, + rank: 222, + unemployment: 9, + oilProduction: 1, + birthRate: 10, + medianAge: 49, + electricity: 68590, + televisions: 10632, + publicDebt: 40, + internet: 8703 + }), + new WorldStatsItem( + { + code: `WLF`, + name: `Wallis Island`, + continent: `Oceania`, + population: 15714, + gdpTotal: 60, + economy: `Developing`, + region: `Polynesia`, + status: `Dependency`, + longitude: -177.1, + latitude: -13.77, + gdpPerPerson: 3818, + rank: 223, + unemployment: 15, + oilProduction: 0, + birthRate: 0, + medianAge: 0, + electricity: 0, + televisions: 0, + publicDebt: 6, + internet: 900 + }), + new WorldStatsItem( + { + code: `NRU`, + name: `Nauru`, + continent: `Oceania`, + population: 9642, + gdpTotal: 151, + economy: `Developing`, + region: `Micronesia`, + status: `Country`, + longitude: 166.93, + latitude: -0.52, + gdpPerPerson: 15661, + rank: 224, + unemployment: 5, + oilProduction: 3, + birthRate: 17, + medianAge: 32, + electricity: 84092, + televisions: 1777, + publicDebt: 34, + internet: 4585 + }), + new WorldStatsItem( + { + code: `COK`, + name: `Cook Island`, + continent: `Oceania`, + population: 9290, + gdpTotal: 244, + economy: `Developing`, + region: `Polynesia`, + status: `Dependency`, + longitude: -159.7, + latitude: -21.21, + gdpPerPerson: 26265, + rank: 225, + unemployment: 15, + oilProduction: 1, + birthRate: 6, + medianAge: 45, + electricity: 41320, + televisions: 3712, + publicDebt: 24, + internet: 3555 + }), + new WorldStatsItem( + { + code: `SHN`, + name: `Saint Helena`, + continent: `Africa`, + population: 7828, + gdpTotal: 31, + economy: `Developing`, + region: `Western Africa`, + status: `Dependency`, + longitude: -10.03, + latitude: -11.94, + gdpPerPerson: 3960, + rank: 226, + unemployment: 13, + oilProduction: 1, + birthRate: 17, + medianAge: 48, + electricity: 84435, + televisions: 3812, + publicDebt: 15, + internet: 5530 + }), + new WorldStatsItem( + { + code: `BLM`, + name: `St. Barthalemy`, + continent: `North America`, + population: 7184, + gdpTotal: 255, + economy: `Developed`, + region: `Central America`, + status: `Dependency`, + longitude: -62.83, + latitude: 17.899, + gdpPerPerson: 35496, + rank: 227, + unemployment: 14, + oilProduction: 0, + birthRate: 23, + medianAge: 46, + electricity: 36112, + televisions: 4072, + publicDebt: 27, + internet: 5097 + }), + new WorldStatsItem( + { + code: `KAS`, + name: `Siachen Glacier`, + continent: `Asia`, + population: 6000, + gdpTotal: 15, + economy: `Developing`, + region: `Southern Asia`, + status: `Territory`, + longitude: 77.283, + latitude: 35.386, + gdpPerPerson: 2500, + rank: 228, + unemployment: 7, + oilProduction: 0, + birthRate: 9, + medianAge: 55, + electricity: 62932, + televisions: 936, + publicDebt: 14, + internet: 1303 + }), + new WorldStatsItem( + { + code: `SPM`, + name: `St. Pierre and Miquelon`, + continent: `North America`, + population: 5533, + gdpTotal: 215, + economy: `Developed`, + region: `Northern America`, + status: `Territory`, + longitude: -56.26, + latitude: 46.926, + gdpPerPerson: 38858, + rank: 229, + unemployment: 13, + oilProduction: 0, + birthRate: 13, + medianAge: 42, + electricity: 61277, + televisions: 2067, + publicDebt: 18, + internet: 2924 + }), + new WorldStatsItem( + { + code: `MSR`, + name: `Montserrat`, + continent: `North America`, + population: 5292, + gdpTotal: 44, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -62.18, + latitude: 16.745, + gdpPerPerson: 8314, + rank: 230, + unemployment: 13, + oilProduction: 1, + birthRate: 12, + medianAge: 50, + electricity: 19088, + televisions: 1964, + publicDebt: 44, + internet: 4009 + }), + new WorldStatsItem( + { + code: `ATA`, + name: `Antarctica`, + continent: `Antarctica`, + population: 4050, + gdpTotal: 810, + economy: `Developing`, + region: `Antarctica`, + status: `Indeterminate`, + longitude: 54.592, + latitude: -70.81, + gdpPerPerson: 200000, + rank: 231, + unemployment: 9, + oilProduction: 2, + birthRate: 18, + medianAge: 42, + electricity: 63975, + televisions: 2439, + publicDebt: 45, + internet: 2190 + }), + new WorldStatsItem( + { + code: `IOT`, + name: `British Indian Territory`, + continent: `Asia`, + population: 4000, + gdpTotal: 160, + economy: `Developed`, + region: `Southern Asia`, + status: `Dependency`, + longitude: 72.424, + latitude: -7.328, + gdpPerPerson: 40000, + rank: 232, + unemployment: 13, + oilProduction: 0, + birthRate: 6, + medianAge: 47, + electricity: 91829, + televisions: 1510, + publicDebt: 14, + internet: 1656 + }), + new WorldStatsItem( + { + code: `FLK`, + name: `Falkland Island`, + continent: `South America`, + population: 2931, + gdpTotal: 282, + economy: `Developed`, + region: `South America`, + status: `Dependency`, + longitude: -59.46, + latitude: -51.78, + gdpPerPerson: 96213, + rank: 233, + unemployment: 3, + oilProduction: 5, + birthRate: 9, + medianAge: 36, + electricity: 68007, + televisions: 1489, + publicDebt: 22, + internet: 1335 + }), + new WorldStatsItem( + { + code: `NFK`, + name: `Norfolk Island`, + continent: `Oceania`, + population: 2210, + gdpTotal: 33, + economy: `Developing`, + region: `Australia`, + status: `Dependency`, + longitude: 167.94, + latitude: -29.05, + gdpPerPerson: 14932, + rank: 234, + unemployment: 1, + oilProduction: 0, + birthRate: 15, + medianAge: 46, + electricity: 91943, + televisions: 583, + publicDebt: 41, + internet: 1183 + }), + new WorldStatsItem( + { + code: `NIU`, + name: `Niue`, + continent: `Oceania`, + population: 1626, + gdpTotal: 10, + economy: `Developing`, + region: `Polynesia`, + status: `Dependency`, + longitude: -169.8, + latitude: -19.05, + gdpPerPerson: 6150, + rank: 235, + unemployment: 15, + oilProduction: 4, + birthRate: 17, + medianAge: 51, + electricity: 16785, + televisions: 585, + publicDebt: 31, + internet: 1247 + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/src/app.component.html b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/src/app.component.html index 5334a49f7..cb8de07c5 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/src/app.component.html +++ b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/src/app.component.html @@ -1,33 +1,4 @@
-
- - - - - - -
= 25000){ - fillScale.maximumValue = args.newValue; - } - else{ - fillScale.minimumValue = args.newValue; - } - } - } diff --git a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/src/app.module.ts b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/src/app.module.ts index 47d634286..db571d6e9 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/src/app.module.ts +++ b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/src/app.module.ts @@ -6,7 +6,6 @@ import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { AppComponent } from "./app.component"; import { IgxNumberAbbreviatorModule, IgxDataChartCoreModule, IgxDataChartScatterModule, IgxDataChartScatterCoreModule, IgxDataChartInteractivityModule, IgxDataChartAnnotationModule } from 'igniteui-angular-charts'; -import { IgxPropertyEditorPanelModule } from 'igniteui-angular-layouts'; @NgModule({ bootstrap: [AppComponent], @@ -23,8 +22,7 @@ import { IgxPropertyEditorPanelModule } from 'igniteui-angular-layouts'; IgxDataChartScatterModule, IgxDataChartScatterCoreModule, IgxDataChartInteractivityModule, - IgxDataChartAnnotationModule, - IgxPropertyEditorPanelModule + IgxDataChartAnnotationModule ], providers: [], schemas: [] diff --git a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/tsconfig.app.json b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/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/data-chart/scatter-bubble-chart-fill-scale/tsconfig.json b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-fill-scale/tsconfig.json +++ b/samples/charts/data-chart/scatter-bubble-chart-fill-scale/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/scatter-bubble-chart-multiple-sources/.codesandbox/Dockerfile b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/.codesandbox/tasks.json b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/.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/data-chart/scatter-bubble-chart-multiple-sources/.stackblitzrc b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/.stackblitzrc +++ b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/angular.json b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/angular.json +++ b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/package.json b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/package.json +++ b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/sandbox.config.json b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.app.json b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.base.json b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.spec.json b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.worker.json b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/tsconfig.app.json b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/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/data-chart/scatter-bubble-chart-multiple-sources/tsconfig.json b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/tsconfig.json +++ b/samples/charts/data-chart/scatter-bubble-chart-multiple-sources/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/scatter-bubble-chart-single-source/.codesandbox/Dockerfile b/samples/charts/data-chart/scatter-bubble-chart-single-source/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-single-source/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/.codesandbox/tasks.json b/samples/charts/data-chart/scatter-bubble-chart-single-source/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-single-source/.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/data-chart/scatter-bubble-chart-single-source/.stackblitzrc b/samples/charts/data-chart/scatter-bubble-chart-single-source/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/.stackblitzrc +++ b/samples/charts/data-chart/scatter-bubble-chart-single-source/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/angular.json b/samples/charts/data-chart/scatter-bubble-chart-single-source/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/angular.json +++ b/samples/charts/data-chart/scatter-bubble-chart-single-source/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/package.json b/samples/charts/data-chart/scatter-bubble-chart-single-source/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/package.json +++ b/samples/charts/data-chart/scatter-bubble-chart-single-source/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/sandbox.config.json b/samples/charts/data-chart/scatter-bubble-chart-single-source/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/WorldStats.ts b/samples/charts/data-chart/scatter-bubble-chart-single-source/src/WorldStats.ts new file mode 100644 index 000000000..b08f50344 --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-single-source/src/WorldStats.ts @@ -0,0 +1,5443 @@ +export class WorldStatsItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public code: string; + public name: string; + public continent: string; + public population: number; + public gdpTotal: number; + public economy: string; + public region: string; + public status: string; + public longitude: number; + public latitude: number; + public gdpPerPerson: number; + public rank: number; + public unemployment: number; + public oilProduction: number; + public birthRate: number; + public medianAge: number; + public electricity: number; + public televisions: number; + public publicDebt: number; + public internet: number; + +} +export class WorldStats extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new WorldStatsItem( + { + code: `CHN`, + name: `China`, + continent: `Asia`, + population: 1379302771, + gdpTotal: 21140000, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 104.18, + latitude: 35.887, + gdpPerPerson: 15327, + rank: 1, + unemployment: 4, + oilProduction: 3725000, + birthRate: 14, + medianAge: 34, + electricity: 3256000, + televisions: 400000000, + publicDebt: 18, + internet: 253000000 + }), + new WorldStatsItem( + { + code: `IND`, + name: `India`, + continent: `Asia`, + population: 1281935911, + gdpTotal: 8721000, + economy: `Emerging`, + region: `Southern Asia`, + status: `Country`, + longitude: 78.022, + latitude: 22.665, + gdpPerPerson: 6803, + rank: 2, + unemployment: 7, + oilProduction: 810000, + birthRate: 22, + medianAge: 25, + electricity: 661600, + televisions: 63000000, + publicDebt: 58, + internet: 80000000 + }), + new WorldStatsItem( + { + code: `USA`, + name: `United States`, + continent: `North America`, + population: 326625791, + gdpTotal: 18560000, + economy: `Developed`, + region: `Northern America`, + status: `Country`, + longitude: -101.8, + latitude: 39.818, + gdpPerPerson: 56823, + rank: 3, + unemployment: 5, + oilProduction: 7460000, + birthRate: 14, + medianAge: 37, + electricity: 4062000, + televisions: 219000000, + publicDebt: 61, + internet: 223000000 + }), + new WorldStatsItem( + { + code: `IDN`, + name: `Indonesia`, + continent: `Asia`, + population: 260580739, + gdpTotal: 3028000, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 102.72, + latitude: -2.698, + gdpPerPerson: 11620, + rank: 4, + unemployment: 9, + oilProduction: 837500, + birthRate: 19, + medianAge: 27, + electricity: 125900, + televisions: 13750000, + publicDebt: 34, + internet: 13000000 + }), + new WorldStatsItem( + { + code: `BRA`, + name: `Brazil`, + continent: `South America`, + population: 207353391, + gdpTotal: 3081000, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -48.88, + latitude: -12.89, + gdpPerPerson: 14859, + rank: 5, + unemployment: 9, + oilProduction: 1797000, + birthRate: 19, + medianAge: 28, + electricity: 396400, + televisions: 36500000, + publicDebt: 45, + internet: 50000000 + }), + new WorldStatsItem( + { + code: `PAK`, + name: `Pakistan`, + continent: `Asia`, + population: 204924861, + gdpTotal: 988200, + economy: `Emerging`, + region: `Southern Asia`, + status: `Country`, + longitude: 67.624, + latitude: 28.421, + gdpPerPerson: 4822, + rank: 6, + unemployment: 6, + oilProduction: 62000, + birthRate: 28, + medianAge: 21, + electricity: 89820, + televisions: 3100000, + publicDebt: 51, + internet: 17500000 + }), + new WorldStatsItem( + { + code: `NGA`, + name: `Nigeria`, + continent: `Africa`, + population: 190632261, + gdpTotal: 1089000, + economy: `Emerging`, + region: `Western Africa`, + status: `Country`, + longitude: 8.657, + latitude: 9.075, + gdpPerPerson: 5713, + rank: 7, + unemployment: 5, + oilProduction: 2166000, + birthRate: 37, + medianAge: 19, + electricity: 22530, + televisions: 6900000, + publicDebt: 14, + internet: 10000000 + }), + new WorldStatsItem( + { + code: `BGD`, + name: `Bangladesh`, + continent: `Asia`, + population: 157826578, + gdpTotal: 628400, + economy: `Least developed`, + region: `Southern Asia`, + status: `Country`, + longitude: 89.935, + latitude: 24.474, + gdpPerPerson: 3982, + rank: 8, + unemployment: 3, + oilProduction: 6746, + birthRate: 29, + medianAge: 23, + electricity: 21350, + televisions: 770000, + publicDebt: 37, + internet: 500000 + }), + new WorldStatsItem( + { + code: `RUS`, + name: `Russia`, + continent: `Europe`, + population: 142257519, + gdpTotal: 3745000, + economy: `Emerging`, + region: `Eastern Europe`, + status: `Country`, + longitude: 42.379, + latitude: 56.974, + gdpPerPerson: 26325, + rank: 9, + unemployment: 6, + oilProduction: 9870000, + birthRate: 11, + medianAge: 38, + electricity: 1000000, + televisions: 60500000, + publicDebt: 6, + internet: 30000000 + }), + new WorldStatsItem( + { + code: `JPN`, + name: `Japan`, + continent: `Asia`, + population: 126451398, + gdpTotal: 4932000, + economy: `Developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 138.48, + latitude: 36.519, + gdpPerPerson: 39003, + rank: 10, + unemployment: 4, + oilProduction: 125000, + birthRate: 8, + medianAge: 44, + electricity: 1025000, + televisions: 86500000, + publicDebt: 170, + internet: 88110000 + }), + new WorldStatsItem( + { + code: `MEX`, + name: `Mexico`, + continent: `North America`, + population: 124574795, + gdpTotal: 2307000, + economy: `Emerging`, + region: `Central America`, + status: `Country`, + longitude: -102.5, + latitude: 23.63, + gdpPerPerson: 18519, + rank: 11, + unemployment: 4, + oilProduction: 3083000, + birthRate: 20, + medianAge: 26, + electricity: 222400, + televisions: 25600000, + publicDebt: 23, + internet: 22812000 + }), + new WorldStatsItem( + { + code: `ETH`, + name: `Ethiopia`, + continent: `Africa`, + population: 105350020, + gdpTotal: 174700, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 40.489, + latitude: 9.154, + gdpPerPerson: 1658, + rank: 12, + unemployment: 5, + oilProduction: 1, + birthRate: 25, + medianAge: 52, + electricity: 60942, + televisions: 66893500, + publicDebt: 45, + internet: 291000 + }), + new WorldStatsItem( + { + code: `PHL`, + name: `Philippines`, + continent: `Asia`, + population: 104256076, + gdpTotal: 801900, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 121.4, + latitude: 16.78, + gdpPerPerson: 7692, + rank: 13, + unemployment: 7, + oilProduction: 0, + birthRate: 26, + medianAge: 22, + electricity: 53670, + televisions: 3700000, + publicDebt: 56, + internet: 5300000 + }), + new WorldStatsItem( + { + code: `EGY`, + name: `Egypt`, + continent: `Africa`, + population: 97041072, + gdpTotal: 1105000, + economy: `Emerging`, + region: `Middle East`, + status: `Country`, + longitude: 30.787, + latitude: 26.825, + gdpPerPerson: 11387, + rank: 14, + unemployment: 9, + oilProduction: 665000, + birthRate: 22, + medianAge: 25, + electricity: 102500, + televisions: 7700000, + publicDebt: 106, + internet: 8620000 + }), + new WorldStatsItem( + { + code: `VNM`, + name: `Vietnam`, + continent: `Asia`, + population: 96160163, + gdpTotal: 594900, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 108.46, + latitude: 13.711, + gdpPerPerson: 6187, + rank: 15, + unemployment: 4, + oilProduction: 324000, + birthRate: 16, + medianAge: 27, + electricity: 59010, + televisions: 3570000, + publicDebt: 42, + internet: 17870000 + }), + new WorldStatsItem( + { + code: `COD`, + name: `Dem. Rep. Congo`, + continent: `Africa`, + population: 83301151, + gdpTotal: 66010, + economy: `Least developed`, + region: `Middle Africa`, + status: `Country`, + longitude: 21.738, + latitude: -4.071, + gdpPerPerson: 792, + rank: 16, + unemployment: 3, + oilProduction: 4, + birthRate: 13, + medianAge: 41, + electricity: 48913, + televisions: 55942436, + publicDebt: 16, + internet: 8903936 + }), + new WorldStatsItem( + { + code: `IRN`, + name: `Iran`, + continent: `Asia`, + population: 82021564, + gdpTotal: 1459000, + economy: `Emerging`, + region: `Middle East`, + status: `Country`, + longitude: 53.664, + latitude: 32.435, + gdpPerPerson: 17788, + rank: 17, + unemployment: 12, + oilProduction: 3956000, + birthRate: 17, + medianAge: 26, + electricity: 170400, + televisions: 4610000, + publicDebt: 17, + internet: 23000000 + }), + new WorldStatsItem( + { + code: `TUR`, + name: `Turkey`, + continent: `Asia`, + population: 80845215, + gdpTotal: 1670000, + economy: `Emerging`, + region: `Middle East`, + status: `Country`, + longitude: 35.243, + latitude: 38.962, + gdpPerPerson: 20657, + rank: 18, + unemployment: 10, + oilProduction: 45460, + birthRate: 16, + medianAge: 29, + electricity: 154200, + televisions: 20900000, + publicDebt: 39, + internet: 13150000 + }), + new WorldStatsItem( + { + code: `DEU`, + name: `Germany`, + continent: `Europe`, + population: 80594017, + gdpTotal: 3979000, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 11.43, + latitude: 52.237, + gdpPerPerson: 49371, + rank: 19, + unemployment: 9, + oilProduction: 141700, + birthRate: 8, + medianAge: 43, + electricity: 579400, + televisions: 51400000, + publicDebt: 65, + internet: 42500000 + }), + new WorldStatsItem( + { + code: `THA`, + name: `Thailand`, + continent: `Asia`, + population: 68414135, + gdpTotal: 1161000, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 100.65, + latitude: 15.345, + gdpPerPerson: 16970, + rank: 20, + unemployment: 1, + oilProduction: 310000, + birthRate: 14, + medianAge: 33, + electricity: 124600, + televisions: 15190000, + publicDebt: 38, + internet: 13416000 + }), + new WorldStatsItem( + { + code: `FRA`, + name: `France`, + continent: `Europe`, + population: 67106161, + gdpTotal: 2699000, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 2.267, + latitude: 46.645, + gdpPerPerson: 40220, + rank: 21, + unemployment: 12, + oilProduction: 1, + birthRate: 24, + medianAge: 48, + electricity: 63711, + televisions: 43156970, + publicDebt: 11, + internet: 7012454 + }), + new WorldStatsItem( + { + code: `GBR`, + name: `United Kingdom`, + continent: `Europe`, + population: 64769452, + gdpTotal: 2788000, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: -1.233, + latitude: 52.242, + gdpPerPerson: 43045, + rank: 22, + unemployment: 5, + oilProduction: 1636000, + birthRate: 11, + medianAge: 40, + electricity: 372600, + televisions: 30500000, + publicDebt: 44, + internet: 40200000 + }), + new WorldStatsItem( + { + code: `ITA`, + name: `Italy`, + continent: `Europe`, + population: 62137802, + gdpTotal: 2221000, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 15.701, + latitude: 40.885, + gdpPerPerson: 35743, + rank: 23, + unemployment: 6, + oilProduction: 164800, + birthRate: 8, + medianAge: 43, + electricity: 278500, + televisions: 30300000, + publicDebt: 104, + internet: 32000000 + }), + new WorldStatsItem( + { + code: `MMR`, + name: `Myanmar`, + continent: `Asia`, + population: 55123814, + gdpTotal: 311100, + economy: `Least developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 96.028, + latitude: 21.509, + gdpPerPerson: 5644, + rank: 24, + unemployment: 13, + oilProduction: 4, + birthRate: 24, + medianAge: 37, + electricity: 26955, + televisions: 39322205, + publicDebt: 18, + internet: 30207772 + }), + new WorldStatsItem( + { + code: `ZAF`, + name: `South Africa`, + continent: `Africa`, + population: 54841552, + gdpTotal: 739100, + economy: `Emerging`, + region: `Southern Africa`, + status: `Country`, + longitude: 22.489, + latitude: -32.4, + gdpPerPerson: 13477, + rank: 25, + unemployment: 24, + oilProduction: 200000, + birthRate: 20, + medianAge: 24, + electricity: 264000, + televisions: 6000000, + publicDebt: 31, + internet: 5100000 + }), + new WorldStatsItem( + { + code: `TZA`, + name: `Tanzania`, + continent: `Africa`, + population: 53950935, + gdpTotal: 150600, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 34.894, + latitude: -6.356, + gdpPerPerson: 2791, + rank: 26, + unemployment: 6, + oilProduction: 3, + birthRate: 9, + medianAge: 34, + electricity: 10186, + televisions: 35987980, + publicDebt: 20, + internet: 400000 + }), + new WorldStatsItem( + { + code: `KOR`, + name: `South Korea`, + continent: `Asia`, + population: 51181299, + gdpTotal: 1929000, + economy: `Emerging`, + region: `Eastern Asia`, + status: `Country`, + longitude: 128.29, + latitude: 36.399, + gdpPerPerson: 37690, + rank: 27, + unemployment: 3, + oilProduction: 17050, + birthRate: 9, + medianAge: 37, + electricity: 403200, + televisions: 15900000, + publicDebt: 28, + internet: 35590000 + }), + new WorldStatsItem( + { + code: `ESP`, + name: `Spain`, + continent: `Europe`, + population: 48958159, + gdpTotal: 1690000, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: -2.892, + latitude: 40.569, + gdpPerPerson: 34519, + rank: 28, + unemployment: 8, + oilProduction: 29350, + birthRate: 10, + medianAge: 41, + electricity: 270300, + televisions: 16200000, + publicDebt: 36, + internet: 19690000 + }), + new WorldStatsItem( + { + code: `COL`, + name: `Colombia`, + continent: `South America`, + population: 47698524, + gdpTotal: 688000, + economy: `Developing`, + region: `South America`, + status: `Country`, + longitude: -72.95, + latitude: 4.099, + gdpPerPerson: 14424, + rank: 29, + unemployment: 11, + oilProduction: 531300, + birthRate: 20, + medianAge: 27, + electricity: 50470, + televisions: 4590000, + publicDebt: 53, + internet: 12100000 + }), + new WorldStatsItem( + { + code: `KEN`, + name: `Kenya`, + continent: `Africa`, + population: 47615739, + gdpTotal: 152700, + economy: `Emerging`, + region: `Eastern Africa`, + status: `Country`, + longitude: 37.929, + latitude: 0.4, + gdpPerPerson: 3207, + rank: 30, + unemployment: 40, + oilProduction: 0, + birthRate: 38, + medianAge: 19, + electricity: 5502, + televisions: 730000, + publicDebt: 49, + internet: 3000000 + }), + new WorldStatsItem( + { + code: `ARG`, + name: `Argentina`, + continent: `South America`, + population: 44293293, + gdpTotal: 879400, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -64.84, + latitude: -33.07, + gdpPerPerson: 19854, + rank: 31, + unemployment: 9, + oilProduction: 730000, + birthRate: 18, + medianAge: 30, + electricity: 101100, + televisions: 7950000, + publicDebt: 56, + internet: 9309000 + }), + new WorldStatsItem( + { + code: `UKR`, + name: `Ukraine`, + continent: `Europe`, + population: 44033874, + gdpTotal: 352600, + economy: `Developing`, + region: `Eastern Europe`, + status: `Country`, + longitude: 30.86, + latitude: 49.723, + gdpPerPerson: 8007, + rank: 32, + unemployment: 2, + oilProduction: 90400, + birthRate: 10, + medianAge: 39, + electricity: 192100, + televisions: 18050000, + publicDebt: 12, + internet: 10000000 + }), + new WorldStatsItem( + { + code: `DZA`, + name: `Algeria`, + continent: `Africa`, + population: 40969443, + gdpTotal: 609400, + economy: `Developing`, + region: `Northern Africa`, + status: `Country`, + longitude: 1.642, + latitude: 28.04, + gdpPerPerson: 14875, + rank: 33, + unemployment: 12, + oilProduction: 1358000, + birthRate: 17, + medianAge: 26, + electricity: 31910, + televisions: 3100000, + publicDebt: 18, + internet: 3500000 + }), + new WorldStatsItem( + { + code: `UGA`, + name: `Uganda`, + continent: `Africa`, + population: 39570125, + gdpTotal: 84930, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 32.27, + latitude: 1.375, + gdpPerPerson: 2146, + rank: 34, + unemployment: 10, + oilProduction: 1, + birthRate: 10, + medianAge: 32, + electricity: 35388, + televisions: 27867123, + publicDebt: 21, + internet: 2000000 + }), + new WorldStatsItem( + { + code: `IRQ`, + name: `Iraq`, + continent: `Asia`, + population: 39192111, + gdpTotal: 596700, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 43.66, + latitude: 33.218, + gdpPerPerson: 15225, + rank: 35, + unemployment: 6, + oilProduction: 0, + birthRate: 20, + medianAge: 44, + electricity: 48545, + televisions: 13178804, + publicDebt: 40, + internet: 9538092 + }), + new WorldStatsItem( + { + code: `POL`, + name: `Poland`, + continent: `Europe`, + population: 38476269, + gdpTotal: 1052000, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 20.073, + latitude: 52.374, + gdpPerPerson: 27342, + rank: 36, + unemployment: 13, + oilProduction: 0, + birthRate: 10, + medianAge: 38, + electricity: 146200, + televisions: 13050000, + publicDebt: 43, + internet: 16000000 + }), + new WorldStatsItem( + { + code: `SDN`, + name: `Sudan`, + continent: `Africa`, + population: 37345935, + gdpTotal: 176300, + economy: `Developing`, + region: `Northern Africa`, + status: `Country`, + longitude: 30.217, + latitude: 15.434, + gdpPerPerson: 4721, + rank: 37, + unemployment: 19, + oilProduction: 484500, + birthRate: 34, + medianAge: 19, + electricity: 3944, + televisions: 2380000, + publicDebt: 106, + internet: 1500000 + }), + new WorldStatsItem( + { + code: `CAN`, + name: `Canada`, + continent: `North America`, + population: 35623680, + gdpTotal: 1674000, + economy: `Developed`, + region: `Northern America`, + status: `Country`, + longitude: -108, + latitude: 55.855, + gdpPerPerson: 46991, + rank: 38, + unemployment: 6, + oilProduction: 3310000, + birthRate: 10, + medianAge: 40, + electricity: 609600, + televisions: 21500000, + publicDebt: 64, + internet: 28000000 + }), + new WorldStatsItem( + { + code: `AFG`, + name: `Afghanistan`, + continent: `Asia`, + population: 34124811, + gdpTotal: 64080, + economy: `Least developed`, + region: `Southern Asia`, + status: `Country`, + longitude: 66.041, + latitude: 33.977, + gdpPerPerson: 1878, + rank: 39, + unemployment: 9, + oilProduction: 2, + birthRate: 15, + medianAge: 39, + electricity: 64532, + televisions: 15374294, + publicDebt: 25, + internet: 18662148 + }), + new WorldStatsItem( + { + code: `MAR`, + name: `Morocco`, + continent: `Africa`, + population: 33986655, + gdpTotal: 282800, + economy: `Developing`, + region: `Northern Africa`, + status: `Country`, + longitude: -5.707, + latitude: 32.104, + gdpPerPerson: 8321, + rank: 40, + unemployment: 10, + oilProduction: 300, + birthRate: 21, + medianAge: 25, + electricity: 21370, + televisions: 3100000, + publicDebt: 67, + internet: 7300000 + }), + new WorldStatsItem( + { + code: `MYS`, + name: `Malaysia`, + continent: `Asia`, + population: 31381992, + gdpTotal: 863000, + economy: `Developing`, + region: `Eastern Asia`, + status: `Country`, + longitude: 101.72, + latitude: 4.89, + gdpPerPerson: 27500, + rank: 41, + unemployment: 3, + oilProduction: 757500, + birthRate: 22, + medianAge: 25, + electricity: 82360, + televisions: 10800000, + publicDebt: 42, + internet: 15868000 + }), + new WorldStatsItem( + { + code: `VEN`, + name: `Venezuela`, + continent: `South America`, + population: 31304016, + gdpTotal: 468600, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -64.78, + latitude: 6.695, + gdpPerPerson: 14969, + rank: 42, + unemployment: 9, + oilProduction: 2398000, + birthRate: 21, + medianAge: 25, + electricity: 99200, + televisions: 4100000, + publicDebt: 19, + internet: 5720000 + }), + new WorldStatsItem( + { + code: `PER`, + name: `Peru`, + continent: `South America`, + population: 31036656, + gdpTotal: 410400, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -73.82, + latitude: -12.89, + gdpPerPerson: 13223, + rank: 43, + unemployment: 7, + oilProduction: 119000, + birthRate: 20, + medianAge: 26, + electricity: 24970, + televisions: 3060000, + publicDebt: 29, + internet: 7636000 + }), + new WorldStatsItem( + { + code: `UZB`, + name: `Uzbekistan`, + continent: `Asia`, + population: 29748859, + gdpTotal: 202300, + economy: `Developing`, + region: `Central Asia`, + status: `Country`, + longitude: 63.288, + latitude: 42.338, + gdpPerPerson: 6800, + rank: 44, + unemployment: 1, + oilProduction: 109400, + birthRate: 18, + medianAge: 24, + electricity: 49000, + televisions: 6400000, + publicDebt: 19, + internet: 1200000 + }), + new WorldStatsItem( + { + code: `NPL`, + name: `Nepal`, + continent: `Asia`, + population: 29384297, + gdpTotal: 71520, + economy: `Least developed`, + region: `Southern Asia`, + status: `Country`, + longitude: 82.328, + latitude: 28.843, + gdpPerPerson: 2434, + rank: 45, + unemployment: 5, + oilProduction: 3, + birthRate: 18, + medianAge: 34, + electricity: 68842, + televisions: 21075997, + publicDebt: 16, + internet: 7780693 + }), + new WorldStatsItem( + { + code: `AGO`, + name: `Angola`, + continent: `Africa`, + population: 29310273, + gdpTotal: 189000, + economy: `Least developed`, + region: `Middle Africa`, + status: `Country`, + longitude: 18.097, + latitude: -12.37, + gdpPerPerson: 6448, + rank: 46, + unemployment: 14, + oilProduction: 0, + birthRate: 15, + medianAge: 38, + electricity: 25890, + televisions: 21283158, + publicDebt: 12, + internet: 100000 + }), + new WorldStatsItem( + { + code: `SAU`, + name: `Saudi Arabia`, + continent: `Asia`, + population: 28571770, + gdpTotal: 1731000, + economy: `Developed`, + region: `Middle East`, + status: `Country`, + longitude: 45.129, + latitude: 24.248, + gdpPerPerson: 60584, + rank: 47, + unemployment: 13, + oilProduction: 11000000, + birthRate: 29, + medianAge: 22, + electricity: 165600, + televisions: 5100000, + publicDebt: 24, + internet: 6200000 + }), + new WorldStatsItem( + { + code: `YEM`, + name: `Yemen`, + continent: `Asia`, + population: 28036829, + gdpTotal: 73450, + economy: `Least developed`, + region: `Middle East`, + status: `Country`, + longitude: 48.53, + latitude: 15.658, + gdpPerPerson: 2620, + rank: 48, + unemployment: 35, + oilProduction: 339200, + birthRate: 42, + medianAge: 17, + electricity: 4456, + televisions: 470000, + publicDebt: 34, + internet: 320000 + }), + new WorldStatsItem( + { + code: `GHA`, + name: `Ghana`, + continent: `Africa`, + population: 27499924, + gdpTotal: 120800, + economy: `Developing`, + region: `Western Africa`, + status: `Country`, + longitude: -0.893, + latitude: 8.607, + gdpPerPerson: 4393, + rank: 49, + unemployment: 11, + oilProduction: 700, + birthRate: 29, + medianAge: 20, + electricity: 7042, + televisions: 1900000, + publicDebt: 59, + internet: 650000 + }), + new WorldStatsItem( + { + code: `MOZ`, + name: `Mozambique`, + continent: `Africa`, + population: 26573706, + gdpTotal: 35010, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 38.075, + latitude: -15.41, + gdpPerPerson: 1317, + rank: 50, + unemployment: 21, + oilProduction: 0, + birthRate: 38, + medianAge: 17, + electricity: 13170, + televisions: 67600, + publicDebt: 22, + internet: 200000 + }), + new WorldStatsItem( + { + code: `PRK`, + name: `North Korea`, + continent: `Asia`, + population: 25248140, + gdpTotal: 40000, + economy: `Least developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 127.01, + latitude: 40.333, + gdpPerPerson: 1584, + rank: 51, + unemployment: 13, + oilProduction: 0, + birthRate: 23, + medianAge: 55, + electricity: 35619, + televisions: 16501842, + publicDebt: 30, + internet: 2340760 + }), + new WorldStatsItem( + { + code: `MDG`, + name: `Madagascar`, + continent: `Africa`, + population: 25054161, + gdpTotal: 36860, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 46.87, + latitude: -18.82, + gdpPerPerson: 1471, + rank: 52, + unemployment: 15, + oilProduction: 0, + birthRate: 20, + medianAge: 36, + electricity: 86068, + televisions: 9470858, + publicDebt: 31, + internet: 1407981 + }), + new WorldStatsItem( + { + code: `CMR`, + name: `Cameroon`, + continent: `Africa`, + population: 24994885, + gdpTotal: 77240, + economy: `Developing`, + region: `Middle Africa`, + status: `Country`, + longitude: 12.451, + latitude: 4.365, + gdpPerPerson: 3090, + rank: 53, + unemployment: 30, + oilProduction: 85300, + birthRate: 35, + medianAge: 19, + electricity: 4090, + televisions: 450000, + publicDebt: 16, + internet: 370000 + }), + new WorldStatsItem( + { + code: `CIV`, + name: `Ivory Coast`, + continent: `Africa`, + population: 24184810, + gdpTotal: 87120, + economy: `Developing`, + region: `Western Africa`, + status: `Country`, + longitude: -5.555, + latitude: 7.538, + gdpPerPerson: 3602, + rank: 54, + unemployment: 3, + oilProduction: 1, + birthRate: 17, + medianAge: 55, + electricity: 49302, + televisions: 9034402, + publicDebt: 75, + internet: 300000 + }), + new WorldStatsItem( + { + code: `TWN`, + name: `Taiwan`, + continent: `Asia`, + population: 23508428, + gdpTotal: 1127000, + economy: `Developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 120.96, + latitude: 23.636, + gdpPerPerson: 47940, + rank: 55, + unemployment: 4, + oilProduction: 600, + birthRate: 9, + medianAge: 36, + electricity: 235000, + televisions: 8800000, + publicDebt: 28, + internet: 14760000 + }), + new WorldStatsItem( + { + code: `AUS`, + name: `Australia`, + continent: `Oceania`, + population: 23232413, + gdpTotal: 1189000, + economy: `Developed`, + region: `Australia`, + status: `Country`, + longitude: 135.87, + latitude: -25.63, + gdpPerPerson: 51178, + rank: 56, + unemployment: 4, + oilProduction: 540000, + birthRate: 13, + medianAge: 37, + electricity: 236700, + televisions: 10150000, + publicDebt: 16, + internet: 11240000 + }), + new WorldStatsItem( + { + code: `LKA`, + name: `Sri Lanka`, + continent: `Asia`, + population: 22409381, + gdpTotal: 236700, + economy: `Developing`, + region: `Southern Asia`, + status: `Country`, + longitude: 80.792, + latitude: 7.881, + gdpPerPerson: 10563, + rank: 57, + unemployment: 6, + oilProduction: 0, + birthRate: 17, + medianAge: 30, + electricity: 8411, + televisions: 1530000, + publicDebt: 86, + internet: 771700 + }), + new WorldStatsItem( + { + code: `ROU`, + name: `Romania`, + continent: `Europe`, + population: 21529967, + gdpTotal: 441000, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 24.974, + latitude: 45.967, + gdpPerPerson: 20483, + rank: 58, + unemployment: 4, + oilProduction: 115000, + birthRate: 11, + medianAge: 37, + electricity: 60520, + televisions: 5250000, + publicDebt: 13, + internet: 12000000 + }), + new WorldStatsItem( + { + code: `BFA`, + name: `Burkina Faso`, + continent: `Africa`, + population: 20107509, + gdpTotal: 32990, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -1.567, + latitude: 12.251, + gdpPerPerson: 1641, + rank: 59, + unemployment: 4, + oilProduction: 5, + birthRate: 21, + medianAge: 30, + electricity: 82658, + televisions: 7478745, + publicDebt: 14, + internet: 5896530 + }), + new WorldStatsItem( + { + code: `NER`, + name: `Niger`, + continent: `Africa`, + population: 19245344, + gdpTotal: 20150, + economy: `Least developed`, + region: `Northern Africa`, + status: `Country`, + longitude: 10.845, + latitude: 17.92, + gdpPerPerson: 1047, + rank: 60, + unemployment: 9, + oilProduction: 5, + birthRate: 18, + medianAge: 53, + electricity: 10652, + televisions: 8203307, + publicDebt: 17, + internet: 157021 + }), + new WorldStatsItem( + { + code: `MWI`, + name: `Malawi`, + continent: `Africa`, + population: 19196246, + gdpTotal: 21200, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 34.282, + latitude: -13.26, + gdpPerPerson: 1104, + rank: 61, + unemployment: 12, + oilProduction: 3, + birthRate: 12, + medianAge: 51, + electricity: 20676, + televisions: 4938675, + publicDebt: 51, + internet: 139500 + }), + new WorldStatsItem( + { + code: `KAZ`, + name: `Kazakhstan`, + continent: `Asia`, + population: 18556698, + gdpTotal: 460700, + economy: `Developing`, + region: `Central Asia`, + status: `Country`, + longitude: 66.966, + latitude: 47.999, + gdpPerPerson: 24827, + rank: 62, + unemployment: 7, + oilProduction: 1355000, + birthRate: 16, + medianAge: 29, + electricity: 76340, + televisions: 3880000, + publicDebt: 8, + internet: 1901000 + }), + new WorldStatsItem( + { + code: `SYR`, + name: `Syria`, + continent: `Asia`, + population: 18028549, + gdpTotal: 50280, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 39.062, + latitude: 34.807, + gdpPerPerson: 2789, + rank: 63, + unemployment: 9, + oilProduction: 379000, + birthRate: 27, + medianAge: 21, + electricity: 153200, + televisions: 1050000, + publicDebt: 38, + internet: 3470000 + }), + new WorldStatsItem( + { + code: `MLI`, + name: `Mali`, + continent: `Africa`, + population: 17885245, + gdpTotal: 38090, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -1.496, + latitude: 17.867, + gdpPerPerson: 2130, + rank: 64, + unemployment: 4, + oilProduction: 4, + birthRate: 21, + medianAge: 46, + electricity: 72483, + televisions: 4783188, + publicDebt: 38, + internet: 8619386 + }), + new WorldStatsItem( + { + code: `CHL`, + name: `Chile`, + continent: `South America`, + population: 17789267, + gdpTotal: 436100, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -69.11, + latitude: -23.36, + gdpPerPerson: 24515, + rank: 65, + unemployment: 7, + oilProduction: 15100, + birthRate: 15, + medianAge: 31, + electricity: 47600, + televisions: 3150000, + publicDebt: 4, + internet: 557000 + }), + new WorldStatsItem( + { + code: `NLD`, + name: `Netherlands`, + continent: `Europe`, + population: 17084719, + gdpTotal: 870800, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 6.272, + latitude: 52.971, + gdpPerPerson: 50970, + rank: 66, + unemployment: 5, + oilProduction: 76000, + birthRate: 11, + medianAge: 40, + electricity: 94340, + televisions: 8100000, + publicDebt: 46, + internet: 15000000 + }), + new WorldStatsItem( + { + code: `ECU`, + name: `Ecuador`, + continent: `South America`, + population: 16290913, + gdpTotal: 182400, + economy: `Developing`, + region: `South America`, + status: `Country`, + longitude: -77.98, + latitude: -1.291, + gdpPerPerson: 11196, + rank: 67, + unemployment: 9, + oilProduction: 511100, + birthRate: 22, + medianAge: 24, + electricity: 12940, + televisions: 2500000, + publicDebt: 33, + internet: 1549000 + }), + new WorldStatsItem( + { + code: `KHM`, + name: `Cambodia`, + continent: `Asia`, + population: 16204486, + gdpTotal: 58940, + economy: `Least developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 104.96, + latitude: 12.558, + gdpPerPerson: 3637, + rank: 68, + unemployment: 15, + oilProduction: 1, + birthRate: 17, + medianAge: 50, + electricity: 45509, + televisions: 2489832, + publicDebt: 22, + internet: 11512560 + }), + new WorldStatsItem( + { + code: `ZMB`, + name: `Zambia`, + continent: `Africa`, + population: 15972000, + gdpTotal: 65170, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 26.301, + latitude: -14.3, + gdpPerPerson: 4080, + rank: 69, + unemployment: 50, + oilProduction: 150, + birthRate: 41, + medianAge: 17, + electricity: 8850, + televisions: 277000, + publicDebt: 28, + internet: 500000 + }), + new WorldStatsItem( + { + code: `GTM`, + name: `Guatemala`, + continent: `North America`, + population: 15460732, + gdpTotal: 131800, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -90.4, + latitude: 15.225, + gdpPerPerson: 8525, + rank: 70, + unemployment: 3, + oilProduction: 13000, + birthRate: 29, + medianAge: 19, + electricity: 7281, + televisions: 1323000, + publicDebt: 21, + internet: 1320000 + }), + new WorldStatsItem( + { + code: `SEN`, + name: `Senegal`, + continent: `Africa`, + population: 14668522, + gdpTotal: 39720, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -14.76, + latitude: 15.47, + gdpPerPerson: 2708, + rank: 71, + unemployment: 48, + oilProduction: 0, + birthRate: 37, + medianAge: 19, + electricity: 2159, + televisions: 361000, + publicDebt: 23, + internet: 820000 + }), + new WorldStatsItem( + { + code: `ZWE`, + name: `Zimbabwe`, + continent: `Africa`, + population: 13805084, + gdpTotal: 28330, + economy: `Emerging`, + region: `Eastern Africa`, + status: `Country`, + longitude: 29.115, + latitude: -19.02, + gdpPerPerson: 2052, + rank: 72, + unemployment: 80, + oilProduction: 0, + birthRate: 32, + medianAge: 18, + electricity: 9950, + televisions: 370000, + publicDebt: 218, + internet: 1351000 + }), + new WorldStatsItem( + { + code: `SSD`, + name: `South Sudan`, + continent: `Africa`, + population: 13026129, + gdpTotal: 20880, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 29.708, + latitude: 7.857, + gdpPerPerson: 1603, + rank: 73, + unemployment: 11, + oilProduction: 5, + birthRate: 8, + medianAge: 43, + electricity: 41476, + televisions: 7716253, + publicDebt: 41, + internet: 4569804 + }), + new WorldStatsItem( + { + code: `GIN`, + name: `Guinea`, + continent: `Africa`, + population: 12413867, + gdpTotal: 16080, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -9.522, + latitude: 10.478, + gdpPerPerson: 1295, + rank: 74, + unemployment: 15, + oilProduction: 4, + birthRate: 5, + medianAge: 49, + electricity: 15826, + televisions: 6262180, + publicDebt: 32, + internet: 6439493 + }), + new WorldStatsItem( + { + code: `TCD`, + name: `Chad`, + continent: `Africa`, + population: 12075985, + gdpTotal: 30590, + economy: `Least developed`, + region: `Northern Africa`, + status: `Country`, + longitude: 18.716, + latitude: 15.46, + gdpPerPerson: 2533, + rank: 75, + unemployment: 15, + oilProduction: 2, + birthRate: 25, + medianAge: 46, + electricity: 57747, + televisions: 8629897, + publicDebt: 33, + internet: 6531943 + }), + new WorldStatsItem( + { + code: `RWA`, + name: `Rwanda`, + continent: `Africa`, + population: 11901484, + gdpTotal: 21970, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 29.867, + latitude: -1.936, + gdpPerPerson: 1846, + rank: 76, + unemployment: 14, + oilProduction: 0, + birthRate: 23, + medianAge: 51, + electricity: 51710, + televisions: 1363647, + publicDebt: 36, + internet: 2425128 + }), + new WorldStatsItem( + { + code: `BEL`, + name: `Belgium`, + continent: `Europe`, + population: 11491346, + gdpTotal: 508600, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 4.605, + latitude: 50.911, + gdpPerPerson: 44259, + rank: 77, + unemployment: 8, + oilProduction: 9000, + birthRate: 10, + medianAge: 41, + electricity: 80840, + televisions: 4720000, + publicDebt: 85, + internet: 5220000 + }), + new WorldStatsItem( + { + code: `BDI`, + name: `Burundi`, + continent: `Africa`, + population: 11466756, + gdpTotal: 7892, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 29.913, + latitude: -3.384, + gdpPerPerson: 688, + rank: 78, + unemployment: 12, + oilProduction: 3, + birthRate: 16, + medianAge: 35, + electricity: 43850, + televisions: 2920735, + publicDebt: 20, + internet: 3908915 + }), + new WorldStatsItem( + { + code: `TUN`, + name: `Tunisia`, + continent: `Africa`, + population: 11403800, + gdpTotal: 130800, + economy: `Developing`, + region: `Northern Africa`, + status: `Country`, + longitude: 9.516, + latitude: 33.785, + gdpPerPerson: 11470, + rank: 79, + unemployment: 14, + oilProduction: 76900, + birthRate: 16, + medianAge: 29, + electricity: 12850, + televisions: 920000, + publicDebt: 55, + internet: 1722000 + }), + new WorldStatsItem( + { + code: `CUB`, + name: `Cuba`, + continent: `North America`, + population: 11147407, + gdpTotal: 132900, + economy: `Emerging`, + region: `Central America`, + status: `Country`, + longitude: -80.54, + latitude: 22.567, + gdpPerPerson: 11922, + rank: 80, + unemployment: 2, + oilProduction: 58300, + birthRate: 11, + medianAge: 37, + electricity: 16450, + televisions: 2640000, + publicDebt: 37, + internet: 1310000 + }), + new WorldStatsItem( + { + code: `BOL`, + name: `Bolivia`, + continent: `South America`, + population: 11138234, + gdpTotal: 78350, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -63.57, + latitude: -16.3, + gdpPerPerson: 7034, + rank: 81, + unemployment: 8, + oilProduction: 46470, + birthRate: 22, + medianAge: 23, + electricity: 5293, + televisions: 900000, + publicDebt: 46, + internet: 1000000 + }), + new WorldStatsItem( + { + code: `BEN`, + name: `Benin`, + continent: `Africa`, + population: 11038805, + gdpTotal: 24310, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: 2.704, + latitude: 10.535, + gdpPerPerson: 2202, + rank: 82, + unemployment: 2, + oilProduction: 0, + birthRate: 25, + medianAge: 40, + electricity: 13145, + televisions: 7167916, + publicDebt: 34, + internet: 8520122 + }), + new WorldStatsItem( + { + code: `PRT`, + name: `Portugal`, + continent: `Europe`, + population: 10839514, + gdpTotal: 297100, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: -7.757, + latitude: 40.815, + gdpPerPerson: 27409, + rank: 83, + unemployment: 8, + oilProduction: 9500, + birthRate: 10, + medianAge: 39, + electricity: 49040, + televisions: 3310000, + publicDebt: 64, + internet: 3549000 + }), + new WorldStatsItem( + { + code: `GRC`, + name: `Greece`, + continent: `Europe`, + population: 10768477, + gdpTotal: 290500, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 21.871, + latitude: 39.558, + gdpPerPerson: 26977, + rank: 84, + unemployment: 8, + oilProduction: 5687, + birthRate: 10, + medianAge: 42, + electricity: 56130, + televisions: 2540000, + publicDebt: 90, + internet: 2540000 + }), + new WorldStatsItem( + { + code: `DOM`, + name: `Dominican Republic`, + continent: `North America`, + population: 10734247, + gdpTotal: 161900, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -70.17, + latitude: 18.775, + gdpPerPerson: 15083, + rank: 85, + unemployment: 16, + oilProduction: 12, + birthRate: 23, + medianAge: 25, + electricity: 12220, + televisions: 770000, + publicDebt: 41, + internet: 1677000 + }), + new WorldStatsItem( + { + code: `CZE`, + name: `Czechia`, + continent: `Europe`, + population: 10674723, + gdpTotal: 350900, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 15.461, + latitude: 49.807, + gdpPerPerson: 32872, + rank: 86, + unemployment: 7, + oilProduction: 18030, + birthRate: 9, + medianAge: 40, + electricity: 77380, + televisions: 3405834, + publicDebt: 26, + internet: 4400000 + }), + new WorldStatsItem( + { + code: `HTI`, + name: `Haiti`, + continent: `North America`, + population: 10646714, + gdpTotal: 19340, + economy: `Least developed`, + region: `Central America`, + status: `Country`, + longitude: -72.23, + latitude: 19.342, + gdpPerPerson: 1817, + rank: 87, + unemployment: 15, + oilProduction: 2, + birthRate: 9, + medianAge: 52, + electricity: 12871, + televisions: 4329511, + publicDebt: 25, + internet: 4777792 + }), + new WorldStatsItem( + { + code: `JOR`, + name: `Jordan`, + continent: `Asia`, + population: 10248069, + gdpTotal: 86190, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 38.125, + latitude: 32.309, + gdpPerPerson: 8410, + rank: 88, + unemployment: 14, + oilProduction: 0, + birthRate: 20, + medianAge: 24, + electricity: 9074, + televisions: 500000, + publicDebt: 72, + internet: 1127000 + }), + new WorldStatsItem( + { + code: `AZE`, + name: `Azerbaijan`, + continent: `Asia`, + population: 9961396, + gdpTotal: 167900, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 48.401, + latitude: 40.344, + gdpPerPerson: 16855, + rank: 89, + unemployment: 1, + oilProduction: 934700, + birthRate: 18, + medianAge: 28, + electricity: 23800, + televisions: 170000, + publicDebt: 7, + internet: 1036000 + }), + new WorldStatsItem( + { + code: `SWE`, + name: `Sweden`, + continent: `Europe`, + population: 9960487, + gdpTotal: 498100, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 17.594, + latitude: 64.621, + gdpPerPerson: 50008, + rank: 90, + unemployment: 6, + oilProduction: 2350, + birthRate: 10, + medianAge: 41, + electricity: 153200, + televisions: 4600000, + publicDebt: 42, + internet: 7000000 + }), + new WorldStatsItem( + { + code: `HUN`, + name: `Hungary`, + continent: `Europe`, + population: 9850845, + gdpTotal: 267600, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 19.485, + latitude: 47.153, + gdpPerPerson: 27165, + rank: 91, + unemployment: 7, + oilProduction: 42180, + birthRate: 10, + medianAge: 39, + electricity: 33690, + televisions: 4420000, + publicDebt: 67, + internet: 4200000 + }), + new WorldStatsItem( + { + code: `BLR`, + name: `Belarus`, + continent: `Europe`, + population: 9549747, + gdpTotal: 165400, + economy: `Developing`, + region: `Eastern Europe`, + status: `Country`, + longitude: 27.943, + latitude: 53.705, + gdpPerPerson: 17320, + rank: 92, + unemployment: 15, + oilProduction: 5, + birthRate: 7, + medianAge: 33, + electricity: 84070, + televisions: 3348094, + publicDebt: 6, + internet: 3754027 + }), + new WorldStatsItem( + { + code: `HND`, + name: `Honduras`, + continent: `North America`, + population: 9038741, + gdpTotal: 43190, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -86.74, + latitude: 14.889, + gdpPerPerson: 4778, + rank: 93, + unemployment: 28, + oilProduction: 0, + birthRate: 27, + medianAge: 20, + electricity: 5339, + televisions: 570000, + publicDebt: 24, + internet: 344100 + }), + new WorldStatsItem( + { + code: `AUT`, + name: `Austria`, + continent: `Europe`, + population: 8754413, + gdpTotal: 416600, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 14.987, + latitude: 47.624, + gdpPerPerson: 47587, + rank: 94, + unemployment: 4, + oilProduction: 23320, + birthRate: 9, + medianAge: 42, + electricity: 61020, + televisions: 10150000, + publicDebt: 59, + internet: 4277000 + }), + new WorldStatsItem( + { + code: `TJK`, + name: `Tajikistan`, + continent: `Asia`, + population: 8468555, + gdpTotal: 25810, + economy: `Developing`, + region: `Central Asia`, + status: `Country`, + longitude: 71.234, + latitude: 38.86, + gdpPerPerson: 3048, + rank: 95, + unemployment: 11, + oilProduction: 5, + birthRate: 8, + medianAge: 44, + electricity: 56534, + televisions: 6542566, + publicDebt: 44, + internet: 4521889 + }), + new WorldStatsItem( + { + code: `ISR`, + name: `Israel`, + continent: `Asia`, + population: 8299706, + gdpTotal: 297000, + economy: `Developed`, + region: `Middle East`, + status: `Country`, + longitude: 34.977, + latitude: 30.748, + gdpPerPerson: 35784, + rank: 96, + unemployment: 7, + oilProduction: 100, + birthRate: 20, + medianAge: 29, + electricity: 46850, + televisions: 1690000, + publicDebt: 81, + internet: 2000000 + }), + new WorldStatsItem( + { + code: `CHE`, + name: `Switzerland`, + continent: `Europe`, + population: 8236303, + gdpTotal: 496300, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 7.865, + latitude: 46.729, + gdpPerPerson: 60258, + rank: 97, + unemployment: 3, + oilProduction: 3202, + birthRate: 10, + medianAge: 41, + electricity: 56100, + televisions: 3310000, + publicDebt: 44, + internet: 4610000 + }), + new WorldStatsItem( + { + code: `TGO`, + name: `Togo`, + continent: `Africa`, + population: 7965055, + gdpTotal: 11610, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: 1.146, + latitude: 6.799, + gdpPerPerson: 1458, + rank: 98, + unemployment: 3, + oilProduction: 4, + birthRate: 9, + medianAge: 37, + electricity: 28181, + televisions: 2309082, + publicDebt: 41, + internet: 789456 + }), + new WorldStatsItem( + { + code: `SOM`, + name: `Somalia`, + continent: `Africa`, + population: 7531386, + gdpTotal: 4719, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 44.134, + latitude: 3.077, + gdpPerPerson: 627, + rank: 99, + unemployment: 2, + oilProduction: 4, + birthRate: 12, + medianAge: 50, + electricity: 29272, + televisions: 1648650, + publicDebt: 22, + internet: 3227211 + }), + new WorldStatsItem( + { + code: `HKG`, + name: `Hong Kong`, + continent: `Asia`, + population: 7191503, + gdpTotal: 427400, + economy: `Developing`, + region: `Eastern Asia`, + status: `Dependency`, + longitude: 114.08, + latitude: 22.38, + gdpPerPerson: 59431, + rank: 100, + unemployment: 3, + oilProduction: 0, + birthRate: 8, + medianAge: 55, + electricity: 86792, + televisions: 4084025, + publicDebt: 35, + internet: 3907543 + }), + new WorldStatsItem( + { + code: `LAO`, + name: `Laos`, + continent: `Asia`, + population: 7126706, + gdpTotal: 40960, + economy: `Least developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 102.36, + latitude: 20.171, + gdpPerPerson: 5747, + rank: 101, + unemployment: 8, + oilProduction: 0, + birthRate: 6, + medianAge: 34, + electricity: 7093, + televisions: 4503172, + publicDebt: 19, + internet: 5426041 + }), + new WorldStatsItem( + { + code: `SRB`, + name: `Serbia`, + continent: `Europe`, + population: 7111024, + gdpTotal: 101800, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 20.908, + latitude: 44.206, + gdpPerPerson: 14316, + rank: 102, + unemployment: 5, + oilProduction: 4, + birthRate: 13, + medianAge: 48, + electricity: 30150, + televisions: 1316607, + publicDebt: 17, + internet: 4104775 + }), + new WorldStatsItem( + { + code: `BGR`, + name: `Bulgaria`, + continent: `Europe`, + population: 7101510, + gdpTotal: 143100, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 25.465, + latitude: 42.741, + gdpPerPerson: 20151, + rank: 103, + unemployment: 8, + oilProduction: 3661, + birthRate: 10, + medianAge: 41, + electricity: 45700, + televisions: 3310000, + publicDebt: 11, + internet: 1899000 + }), + new WorldStatsItem( + { + code: `PRY`, + name: `Paraguay`, + continent: `South America`, + population: 6943739, + gdpTotal: 64670, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -58.44, + latitude: -23.42, + gdpPerPerson: 9313, + rank: 104, + unemployment: 6, + oilProduction: 0, + birthRate: 28, + medianAge: 22, + electricity: 70000, + televisions: 990000, + publicDebt: 27, + internet: 280000 + }), + new WorldStatsItem( + { + code: `PNG`, + name: `Papua New Guinea`, + continent: `Oceania`, + population: 6909701, + gdpTotal: 28020, + economy: `Developing`, + region: `Melanesia`, + status: `Country`, + longitude: 143.62, + latitude: -5.836, + gdpPerPerson: 4055, + rank: 105, + unemployment: 2, + oilProduction: 47800, + birthRate: 28, + medianAge: 22, + electricity: 3698, + televisions: 59841, + publicDebt: 40, + internet: 110000 + }), + new WorldStatsItem( + { + code: `LBY`, + name: `Libya`, + continent: `Africa`, + population: 6653210, + gdpTotal: 90890, + economy: `Developing`, + region: `Northern Africa`, + status: `Country`, + longitude: 17.23, + latitude: 26.339, + gdpPerPerson: 13661, + rank: 106, + unemployment: 30, + oilProduction: 1712000, + birthRate: 26, + medianAge: 24, + electricity: 21150, + televisions: 730000, + publicDebt: 5, + internet: 260000 + }), + new WorldStatsItem( + { + code: `LBN`, + name: `Lebanon`, + continent: `Asia`, + population: 6229794, + gdpTotal: 85160, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 36.042, + latitude: 34.168, + gdpPerPerson: 13670, + rank: 107, + unemployment: 20, + oilProduction: 0, + birthRate: 18, + medianAge: 29, + electricity: 9183, + televisions: 1180000, + publicDebt: 187, + internet: 950000 + }), + new WorldStatsItem( + { + code: `SLV`, + name: `El Salvador`, + continent: `North America`, + population: 6172011, + gdpTotal: 54790, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -88.91, + latitude: 13.798, + gdpPerPerson: 8877, + rank: 108, + unemployment: 6, + oilProduction: 0, + birthRate: 26, + medianAge: 22, + electricity: 5316, + televisions: 600000, + publicDebt: 37, + internet: 700000 + }), + new WorldStatsItem( + { + code: `SLE`, + name: `Sierra Leone`, + continent: `Africa`, + population: 6163195, + gdpTotal: 10640, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -11.78, + latitude: 8.452, + gdpPerPerson: 1726, + rank: 109, + unemployment: 14, + oilProduction: 4, + birthRate: 6, + medianAge: 37, + electricity: 37412, + televisions: 2727270, + publicDebt: 6, + internet: 223239 + }), + new WorldStatsItem( + { + code: `ARE`, + name: `United Arab Emirates`, + continent: `Asia`, + population: 6072475, + gdpTotal: 667200, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 54.192, + latitude: 23.795, + gdpPerPerson: 109873, + rank: 110, + unemployment: 2, + oilProduction: 2510000, + birthRate: 16, + medianAge: 30, + electricity: 57060, + televisions: 310000, + publicDebt: 21, + internet: 2300000 + }), + new WorldStatsItem( + { + code: `NIC`, + name: `Nicaragua`, + continent: `North America`, + population: 6025951, + gdpTotal: 33550, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -85.09, + latitude: 12.523, + gdpPerPerson: 5568, + rank: 111, + unemployment: 5, + oilProduction: 0, + birthRate: 24, + medianAge: 22, + electricity: 2778, + televisions: 320000, + publicDebt: 63, + internet: 155000 + }), + new WorldStatsItem( + { + code: `ERI`, + name: `Eritrea`, + continent: `Africa`, + population: 5918919, + gdpTotal: 9169, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 39.772, + latitude: 15.191, + gdpPerPerson: 1549, + rank: 112, + unemployment: 9, + oilProduction: 5, + birthRate: 17, + medianAge: 54, + electricity: 67474, + televisions: 2078077, + publicDebt: 41, + internet: 1067843 + }), + new WorldStatsItem( + { + code: `SGP`, + name: `Singapore`, + continent: `Asia`, + population: 5888926, + gdpTotal: 487900, + economy: `Developing`, + region: `Eastern Asia`, + status: `Country`, + longitude: 103.82, + latitude: 1.356, + gdpPerPerson: 82850, + rank: 113, + unemployment: 2, + oilProduction: 9836, + birthRate: 9, + medianAge: 38, + electricity: 39440, + televisions: 1330000, + publicDebt: 96, + internet: 3105000 + }), + new WorldStatsItem( + { + code: `KGZ`, + name: `Kyrgyzstan`, + continent: `Asia`, + population: 5789122, + gdpTotal: 21010, + economy: `Developing`, + region: `Central Asia`, + status: `Country`, + longitude: 74.738, + latitude: 41.224, + gdpPerPerson: 3629, + rank: 114, + unemployment: 12, + oilProduction: 1, + birthRate: 21, + medianAge: 42, + electricity: 16640, + televisions: 2101152, + publicDebt: 15, + internet: 738896 + }), + new WorldStatsItem( + { + code: `CAF`, + name: `Central African Republic`, + continent: `Africa`, + population: 5625118, + gdpTotal: 3206, + economy: `Least developed`, + region: `Middle Africa`, + status: `Country`, + longitude: 20.917, + latitude: 6.633, + gdpPerPerson: 570, + rank: 115, + unemployment: 8, + oilProduction: 5, + birthRate: 13, + medianAge: 32, + electricity: 71424, + televisions: 635931, + publicDebt: 29, + internet: 1933873 + }), + new WorldStatsItem( + { + code: `DNK`, + name: `Denmark`, + continent: `Europe`, + population: 5605948, + gdpTotal: 264800, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 9.348, + latitude: 56.13, + gdpPerPerson: 47236, + rank: 116, + unemployment: 3, + oilProduction: 342000, + birthRate: 11, + medianAge: 40, + electricity: 43350, + televisions: 3121000, + publicDebt: 26, + internet: 3500000 + }), + new WorldStatsItem( + { + code: `FIN`, + name: `Finland`, + continent: `Europe`, + population: 5491218, + gdpTotal: 224137, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 25.988, + latitude: 61.841, + gdpPerPerson: 40817, + rank: 117, + unemployment: 7, + oilProduction: 8951, + birthRate: 10, + medianAge: 42, + electricity: 73470, + televisions: 3200000, + publicDebt: 36, + internet: 3600000 + }), + new WorldStatsItem( + { + code: `SVK`, + name: `Slovakia`, + continent: `Europe`, + population: 5445829, + gdpTotal: 168800, + economy: `Developed`, + region: `Eastern Europe`, + status: `Country`, + longitude: 18.877, + latitude: 48.702, + gdpPerPerson: 30996, + rank: 118, + unemployment: 8, + oilProduction: 12840, + birthRate: 11, + medianAge: 37, + electricity: 29890, + televisions: 2620000, + publicDebt: 36, + internet: 2350000 + }), + new WorldStatsItem( + { + code: `TKM`, + name: `Turkmenistan`, + continent: `Asia`, + population: 5351277, + gdpTotal: 94720, + economy: `Developing`, + region: `Central Asia`, + status: `Country`, + longitude: 59.562, + latitude: 38.975, + gdpPerPerson: 17700, + rank: 119, + unemployment: 11, + oilProduction: 4, + birthRate: 11, + medianAge: 43, + electricity: 91281, + televisions: 2935468, + publicDebt: 17, + internet: 3203210 + }), + new WorldStatsItem( + { + code: `NOR`, + name: `Norway`, + continent: `Europe`, + population: 5320045, + gdpTotal: 364700, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 9.66, + latitude: 60.712, + gdpPerPerson: 68552, + rank: 120, + unemployment: 3, + oilProduction: 2560000, + birthRate: 11, + medianAge: 39, + electricity: 135800, + televisions: 2030000, + publicDebt: 83, + internet: 3800000 + }), + new WorldStatsItem( + { + code: `IRL`, + name: `Ireland`, + continent: `Europe`, + population: 5011102, + gdpTotal: 322000, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: -8.209, + latitude: 53.42, + gdpPerPerson: 64257, + rank: 121, + unemployment: 5, + oilProduction: 0, + birthRate: 14, + medianAge: 35, + electricity: 24130, + televisions: 1820000, + publicDebt: 25, + internet: 1708000 + }), + new WorldStatsItem( + { + code: `COG`, + name: `Congo`, + continent: `Africa`, + population: 4954674, + gdpTotal: 30270, + economy: `Developing`, + region: `Middle Africa`, + status: `Country`, + longitude: 16.264, + latitude: -0.07, + gdpPerPerson: 6109, + rank: 122, + unemployment: 13, + oilProduction: 4, + birthRate: 11, + medianAge: 52, + electricity: 83556, + televisions: 1560800, + publicDebt: 6, + internet: 2650237 + }), + new WorldStatsItem( + { + code: `CRI`, + name: `Costa Rica`, + continent: `North America`, + population: 4930258, + gdpTotal: 79260, + economy: `Emerging`, + region: `Central America`, + status: `Country`, + longitude: -83.91, + latitude: 9.92, + gdpPerPerson: 16076, + rank: 123, + unemployment: 5, + oilProduction: 0, + birthRate: 18, + medianAge: 27, + electricity: 8349, + televisions: 525000, + publicDebt: 47, + internet: 1500000 + }), + new WorldStatsItem( + { + code: `GEO`, + name: `Georgia`, + continent: `Asia`, + population: 4926330, + gdpTotal: 37270, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 43.257, + latitude: 42.162, + gdpPerPerson: 7565, + rank: 124, + unemployment: 15, + oilProduction: 5, + birthRate: 10, + medianAge: 43, + electricity: 44936, + televisions: 2728128, + publicDebt: 29, + internet: 3844448 + }), + new WorldStatsItem( + { + code: `LBR`, + name: `Liberia`, + continent: `Africa`, + population: 4689021, + gdpTotal: 3881, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -9.454, + latitude: 6.445, + gdpPerPerson: 828, + rank: 125, + unemployment: 4, + oilProduction: 0, + birthRate: 8, + medianAge: 35, + electricity: 89626, + televisions: 3065112, + publicDebt: 38, + internet: 1475304 + }), + new WorldStatsItem( + { + code: `PSE`, + name: `Palestine`, + continent: `Asia`, + population: 4543126, + gdpTotal: 21221, + economy: `Developing`, + region: `Middle East`, + status: `Disputed`, + longitude: 35.347, + latitude: 32.031, + gdpPerPerson: 4671, + rank: 126, + unemployment: 9, + oilProduction: 1, + birthRate: 10, + medianAge: 48, + electricity: 45973, + televisions: 2774033, + publicDebt: 16, + internet: 1718915 + }), + new WorldStatsItem( + { + code: `NZL`, + name: `New Zealand`, + continent: `Oceania`, + population: 4510327, + gdpTotal: 174800, + economy: `Developed`, + region: `Australia`, + status: `Country`, + longitude: 169.42, + latitude: -44.86, + gdpPerPerson: 38756, + rank: 127, + unemployment: 4, + oilProduction: 25880, + birthRate: 14, + medianAge: 36, + electricity: 42060, + televisions: 1926000, + publicDebt: 21, + internet: 3360000 + }), + new WorldStatsItem( + { + code: `HRV`, + name: `Croatia`, + continent: `Europe`, + population: 4292095, + gdpTotal: 94240, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 16.847, + latitude: 45.674, + gdpPerPerson: 21957, + rank: 128, + unemployment: 12, + oilProduction: 17100, + birthRate: 10, + medianAge: 41, + electricity: 11990, + televisions: 1220000, + publicDebt: 48, + internet: 1995000 + }), + new WorldStatsItem( + { + code: `BIH`, + name: `Bosnia`, + continent: `Europe`, + population: 3856181, + gdpTotal: 42530, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 17.66, + latitude: 43.918, + gdpPerPerson: 11029, + rank: 129, + unemployment: 46, + oilProduction: 0, + birthRate: 9, + medianAge: 39, + electricity: 12220, + televisions: 0, + publicDebt: 34, + internet: 1055000 + }), + new WorldStatsItem( + { + code: `MRT`, + name: `Mauritania`, + continent: `Africa`, + population: 3758571, + gdpTotal: 16710, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -8.89, + latitude: 20.387, + gdpPerPerson: 4446, + rank: 130, + unemployment: 9, + oilProduction: 5, + birthRate: 25, + medianAge: 50, + electricity: 15176, + televisions: 2558125, + publicDebt: 29, + internet: 2098221 + }), + new WorldStatsItem( + { + code: `PAN`, + name: `Panama`, + continent: `North America`, + population: 3753142, + gdpTotal: 93120, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -81.17, + latitude: 8.457, + gdpPerPerson: 24811, + rank: 131, + unemployment: 6, + oilProduction: 0, + birthRate: 21, + medianAge: 27, + electricity: 5661, + televisions: 510000, + publicDebt: 53, + internet: 525200 + }), + new WorldStatsItem( + { + code: `SOL`, + name: `Somaliland`, + continent: `Africa`, + population: 3500000, + gdpTotal: 12250, + economy: `Developing`, + region: `Eastern Africa`, + status: `Indeterminate`, + longitude: 45.798, + latitude: 9.748, + gdpPerPerson: 3500, + rank: 132, + unemployment: 1, + oilProduction: 4, + birthRate: 13, + medianAge: 43, + electricity: 73247, + televisions: 2235408, + publicDebt: 21, + internet: 1300238 + }), + new WorldStatsItem( + { + code: `MDA`, + name: `Moldova`, + continent: `Europe`, + population: 3474121, + gdpTotal: 18540, + economy: `Developing`, + region: `Eastern Europe`, + status: `Country`, + longitude: 28.552, + latitude: 47.515, + gdpPerPerson: 5337, + rank: 133, + unemployment: 2, + oilProduction: 0, + birthRate: 11, + medianAge: 34, + electricity: 3881, + televisions: 1260000, + publicDebt: 23, + internet: 700000 + }), + new WorldStatsItem( + { + code: `OMN`, + name: `Oman`, + continent: `Asia`, + population: 3424386, + gdpTotal: 173100, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 57.563, + latitude: 22.014, + gdpPerPerson: 50549, + rank: 134, + unemployment: 15, + oilProduction: 710800, + birthRate: 35, + medianAge: 19, + electricity: 11890, + televisions: 1600000, + publicDebt: 4, + internet: 340000 + }), + new WorldStatsItem( + { + code: `URY`, + name: `Uruguay`, + continent: `South America`, + population: 3360148, + gdpTotal: 73250, + economy: `Emerging`, + region: `South America`, + status: `Country`, + longitude: -55.78, + latitude: -32.51, + gdpPerPerson: 21800, + rank: 135, + unemployment: 9, + oilProduction: 27830, + birthRate: 14, + medianAge: 33, + electricity: 9200, + televisions: 782000, + publicDebt: 65, + internet: 968000 + }), + new WorldStatsItem( + { + code: `PRI`, + name: `Puerto Rico`, + continent: `North America`, + population: 3351827, + gdpTotal: 131000, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -66.61, + latitude: 18.235, + gdpPerPerson: 39083, + rank: 136, + unemployment: 5, + oilProduction: 3, + birthRate: 11, + medianAge: 32, + electricity: 19677, + televisions: 1917997, + publicDebt: 25, + internet: 608062 + }), + new WorldStatsItem( + { + code: `MNG`, + name: `Mongolia`, + continent: `Asia`, + population: 3068243, + gdpTotal: 37000, + economy: `Developing`, + region: `Eastern Asia`, + status: `Country`, + longitude: 103.82, + latitude: 46.856, + gdpPerPerson: 12059, + rank: 137, + unemployment: 4, + oilProduction: 1, + birthRate: 7, + medianAge: 35, + electricity: 3875, + televisions: 1726758, + publicDebt: 17, + internet: 562546 + }), + new WorldStatsItem( + { + code: `ALB`, + name: `Albania`, + continent: `Europe`, + population: 3047987, + gdpTotal: 33900, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 19.964, + latitude: 40.759, + gdpPerPerson: 11122, + rank: 138, + unemployment: 13, + oilProduction: 7006, + birthRate: 15, + medianAge: 30, + electricity: 5385, + televisions: 700000, + publicDebt: 51, + internet: 471200 + }), + new WorldStatsItem( + { + code: `ARM`, + name: `Armenia`, + continent: `Asia`, + population: 3045191, + gdpTotal: 26300, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 44.646, + latitude: 40.618, + gdpPerPerson: 8637, + rank: 139, + unemployment: 4, + oilProduction: 4, + birthRate: 14, + medianAge: 39, + electricity: 71042, + televisions: 2390201, + publicDebt: 9, + internet: 488333 + }), + new WorldStatsItem( + { + code: `JAM`, + name: `Jamaica`, + continent: `North America`, + population: 2990561, + gdpTotal: 25390, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -77.27, + latitude: 18.119, + gdpPerPerson: 8490, + rank: 140, + unemployment: 10, + oilProduction: 0, + birthRate: 20, + medianAge: 23, + electricity: 6985, + televisions: 460000, + publicDebt: 127, + internet: 1500000 + }), + new WorldStatsItem( + { + code: `KWT`, + name: `Kuwait`, + continent: `Asia`, + population: 2875422, + gdpTotal: 301100, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 47.487, + latitude: 29.315, + gdpPerPerson: 104715, + rank: 141, + unemployment: 2, + oilProduction: 2440000, + birthRate: 22, + medianAge: 26, + electricity: 41110, + televisions: 875000, + publicDebt: 10, + internet: 900000 + }), + new WorldStatsItem( + { + code: `LTU`, + name: `Lithuania`, + continent: `Europe`, + population: 2823859, + gdpTotal: 85620, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 23.838, + latitude: 55.152, + gdpPerPerson: 30320, + rank: 142, + unemployment: 4, + oilProduction: 13160, + birthRate: 9, + medianAge: 39, + electricity: 13480, + televisions: 1700000, + publicDebt: 17, + internet: 1330000 + }), + new WorldStatsItem( + { + code: `NAM`, + name: `Namibia`, + continent: `Africa`, + population: 2484780, + gdpTotal: 25990, + economy: `Developing`, + region: `Southern Africa`, + status: `Country`, + longitude: 16.944, + latitude: -20.52, + gdpPerPerson: 10460, + rank: 143, + unemployment: 5, + oilProduction: 0, + birthRate: 23, + medianAge: 21, + electricity: 1688, + televisions: 60000, + publicDebt: 22, + internet: 101000 + }), + new WorldStatsItem( + { + code: `QAT`, + name: `Qatar`, + continent: `Asia`, + population: 2314307, + gdpTotal: 334500, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 51.182, + latitude: 25.359, + gdpPerPerson: 144536, + rank: 144, + unemployment: 1, + oilProduction: 797500, + birthRate: 16, + medianAge: 31, + electricity: 13540, + televisions: 230000, + publicDebt: 11, + internet: 351000 + }), + new WorldStatsItem( + { + code: `BWA`, + name: `Botswana`, + continent: `Africa`, + population: 2214858, + gdpTotal: 35900, + economy: `Developing`, + region: `Southern Africa`, + status: `Country`, + longitude: 24.671, + latitude: -22.32, + gdpPerPerson: 16209, + rank: 145, + unemployment: 8, + oilProduction: 0, + birthRate: 23, + medianAge: 21, + electricity: 912, + televisions: 31000, + publicDebt: 5, + internet: 80000 + }), + new WorldStatsItem( + { + code: `MKD`, + name: `North Macedonia`, + continent: `Europe`, + population: 2103721, + gdpTotal: 29520, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 21.727, + latitude: 41.604, + gdpPerPerson: 14032, + rank: 146, + unemployment: 35, + oilProduction: 0, + birthRate: 12, + medianAge: 35, + electricity: 6051, + televisions: 510000, + publicDebt: 31, + internet: 685000 + }), + new WorldStatsItem( + { + code: `GMB`, + name: `Gambia`, + continent: `Africa`, + population: 2051363, + gdpTotal: 3387, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -15.32, + latitude: 13.438, + gdpPerPerson: 1651, + rank: 147, + unemployment: 7, + oilProduction: 1, + birthRate: 11, + medianAge: 37, + electricity: 9769, + televisions: 1486289, + publicDebt: 30, + internet: 187890 + }), + new WorldStatsItem( + { + code: `SVN`, + name: `Slovenia`, + continent: `Europe`, + population: 1972126, + gdpTotal: 68350, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 14.947, + latitude: 46.146, + gdpPerPerson: 34658, + rank: 148, + unemployment: 8, + oilProduction: 5, + birthRate: 9, + medianAge: 41, + electricity: 14900, + televisions: 710000, + publicDebt: 24, + internet: 1300000 + }), + new WorldStatsItem( + { + code: `LSO`, + name: `Lesotho`, + continent: `Africa`, + population: 1958042, + gdpTotal: 6019, + economy: `Least developed`, + region: `Southern Africa`, + status: `Country`, + longitude: 28.221, + latitude: -29.61, + gdpPerPerson: 3074, + rank: 149, + unemployment: 12, + oilProduction: 2, + birthRate: 8, + medianAge: 32, + electricity: 20229, + televisions: 1457517, + publicDebt: 14, + internet: 1375222 + }), + new WorldStatsItem( + { + code: `LVA`, + name: `Latvia`, + continent: `Europe`, + population: 1944643, + gdpTotal: 50650, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 26.505, + latitude: 56.755, + gdpPerPerson: 26046, + rank: 150, + unemployment: 6, + oilProduction: 0, + birthRate: 10, + medianAge: 40, + electricity: 4778, + televisions: 1220000, + publicDebt: 7, + internet: 1770000 + }), + new WorldStatsItem( + { + code: `RKS`, + name: `Kosovo`, + continent: `Europe`, + population: 1895250, + gdpTotal: 18490, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 20.891, + latitude: 42.557, + gdpPerPerson: 9756, + rank: 151, + unemployment: 12, + oilProduction: 0, + birthRate: 8, + medianAge: 55, + electricity: 14878, + televisions: 1287863, + publicDebt: 20, + internet: 1422193 + }), + new WorldStatsItem( + { + code: `GNB`, + name: `Guinea-Bissau`, + continent: `Africa`, + population: 1792338, + gdpTotal: 2851, + economy: `Least developed`, + region: `Western Africa`, + status: `Country`, + longitude: -14.59, + latitude: 11.942, + gdpPerPerson: 1591, + rank: 152, + unemployment: 5, + oilProduction: 5, + birthRate: 5, + medianAge: 55, + electricity: 74684, + televisions: 1427462, + publicDebt: 8, + internet: 365000 + }), + new WorldStatsItem( + { + code: `GAB`, + name: `Gabon`, + continent: `Africa`, + population: 1772255, + gdpTotal: 35980, + economy: `Developing`, + region: `Middle Africa`, + status: `Country`, + longitude: 11.592, + latitude: -0.807, + gdpPerPerson: 20302, + rank: 153, + unemployment: 21, + oilProduction: 240000, + birthRate: 36, + medianAge: 19, + electricity: 1520, + televisions: 63000, + publicDebt: 53, + internet: 145000 + }), + new WorldStatsItem( + { + code: `SWZ`, + name: `Eswatini`, + continent: `Africa`, + population: 1467152, + gdpTotal: 11060, + economy: `Developing`, + region: `Southern Africa`, + status: `Country`, + longitude: 31.45, + latitude: -26.52, + gdpPerPerson: 7538, + rank: 154, + unemployment: 6, + oilProduction: 3, + birthRate: 17, + medianAge: 39, + electricity: 72804, + televisions: 229393, + publicDebt: 5, + internet: 427760 + }), + new WorldStatsItem( + { + code: `BHR`, + name: `Bahrain`, + continent: `Asia`, + population: 1410942, + gdpTotal: 66370, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 50.535, + latitude: 26.027, + gdpPerPerson: 47039, + rank: 155, + unemployment: 15, + oilProduction: 184300, + birthRate: 17, + medianAge: 30, + electricity: 8187, + televisions: 275000, + publicDebt: 31, + internet: 250000 + }), + new WorldStatsItem( + { + code: `MUS`, + name: `Mauritius`, + continent: `Africa`, + population: 1356388, + gdpTotal: 25850, + economy: `Developing`, + region: `Eastern Africa`, + status: `Country`, + longitude: 57.555, + latitude: -20.25, + gdpPerPerson: 19058, + rank: 156, + unemployment: 9, + oilProduction: 0, + birthRate: 15, + medianAge: 32, + electricity: 2350, + televisions: 258000, + publicDebt: 63, + internet: 340000 + }), + new WorldStatsItem( + { + code: `TLS`, + name: `Timor-Leste`, + continent: `Asia`, + population: 1291358, + gdpTotal: 4975, + economy: `Least developed`, + region: `Eastern Asia`, + status: `Country`, + longitude: 125.66, + latitude: -8.826, + gdpPerPerson: 3853, + rank: 157, + unemployment: 8, + oilProduction: 5, + birthRate: 18, + medianAge: 48, + electricity: 84061, + televisions: 416260, + publicDebt: 25, + internet: 267437 + }), + new WorldStatsItem( + { + code: `EST`, + name: `Estonia`, + continent: `Europe`, + population: 1251581, + gdpTotal: 38700, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: 25.441, + latitude: 58.845, + gdpPerPerson: 30921, + rank: 158, + unemployment: 5, + oilProduction: 6930, + birthRate: 10, + medianAge: 40, + electricity: 9599, + televisions: 605000, + publicDebt: 3, + internet: 780000 + }), + new WorldStatsItem( + { + code: `CYP`, + name: `Cyprus`, + continent: `Asia`, + population: 1221549, + gdpTotal: 29260, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 33.176, + latitude: 34.876, + gdpPerPerson: 23953, + rank: 159, + unemployment: 4, + oilProduction: 0, + birthRate: 13, + medianAge: 35, + electricity: 4618, + televisions: 0, + publicDebt: 60, + internet: 380000 + }), + new WorldStatsItem( + { + code: `TTO`, + name: `Trinidad and Tobago`, + continent: `North America`, + population: 1218208, + gdpTotal: 43570, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -61.21, + latitude: 10.352, + gdpPerPerson: 35766, + rank: 160, + unemployment: 4, + oilProduction: 5, + birthRate: 15, + medianAge: 47, + electricity: 58959, + televisions: 359389, + publicDebt: 29, + internet: 152416 + }), + new WorldStatsItem( + { + code: `FJI`, + name: `Fiji`, + continent: `Oceania`, + population: 920938, + gdpTotal: 8374, + economy: `Developing`, + region: `Melanesia`, + status: `Country`, + longitude: 177.85, + latitude: -17.75, + gdpPerPerson: 9093, + rank: 161, + unemployment: 11, + oilProduction: 5, + birthRate: 5, + medianAge: 41, + electricity: 88931, + televisions: 517580, + publicDebt: 17, + internet: 539400 + }), + new WorldStatsItem( + { + code: `DJI`, + name: `Djibouti`, + continent: `Africa`, + population: 865267, + gdpTotal: 3345, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 42.587, + latitude: 11.825, + gdpPerPerson: 3866, + rank: 162, + unemployment: 5, + oilProduction: 3, + birthRate: 17, + medianAge: 44, + electricity: 91593, + televisions: 209004, + publicDebt: 43, + internet: 476114 + }), + new WorldStatsItem( + { + code: `COM`, + name: `Comoros`, + continent: `Africa`, + population: 808080, + gdpTotal: 1259, + economy: `Least developed`, + region: `Eastern Africa`, + status: `Country`, + longitude: 43.877, + latitude: -11.86, + gdpPerPerson: 1558, + rank: 163, + unemployment: 11, + oilProduction: 3, + birthRate: 14, + medianAge: 46, + electricity: 6146, + televisions: 495921, + publicDebt: 10, + internet: 459977 + }), + new WorldStatsItem( + { + code: `GNQ`, + name: `Equatorial Guinea`, + continent: `Africa`, + population: 778358, + gdpTotal: 31770, + economy: `Least developed`, + region: `Middle Africa`, + status: `Country`, + longitude: 10.521, + latitude: 1.763, + gdpPerPerson: 40817, + rank: 164, + unemployment: 30, + oilProduction: 385500, + birthRate: 37, + medianAge: 19, + electricity: 28, + televisions: 4000, + publicDebt: 2, + internet: 8000 + }), + new WorldStatsItem( + { + code: `BTN`, + name: `Bhutan`, + continent: `Asia`, + population: 758288, + gdpTotal: 6432, + economy: `Least developed`, + region: `Southern Asia`, + status: `Country`, + longitude: 90.411, + latitude: 27.506, + gdpPerPerson: 8482, + rank: 165, + unemployment: 3, + oilProduction: 0, + birthRate: 21, + medianAge: 24, + electricity: 2000, + televisions: 11000, + publicDebt: 81, + internet: 40000 + }), + new WorldStatsItem( + { + code: `GUY`, + name: `Guyana`, + continent: `South America`, + population: 737718, + gdpTotal: 6093, + economy: `Developing`, + region: `South America`, + status: `Country`, + longitude: -58.96, + latitude: 5.607, + gdpPerPerson: 8259, + rank: 166, + unemployment: 2, + oilProduction: 3, + birthRate: 9, + medianAge: 37, + electricity: 84988, + televisions: 149848, + publicDebt: 12, + internet: 134377 + }), + new WorldStatsItem( + { + code: `SLB`, + name: `Solomon Islands`, + continent: `Oceania`, + population: 647581, + gdpTotal: 1198, + economy: `Least developed`, + region: `Melanesia`, + status: `Country`, + longitude: 161.3, + latitude: -9.221, + gdpPerPerson: 1850, + rank: 167, + unemployment: 4, + oilProduction: 3, + birthRate: 18, + medianAge: 30, + electricity: 3432, + televisions: 177555, + publicDebt: 43, + internet: 478635 + }), + new WorldStatsItem( + { + code: `MNE`, + name: `Montenegro`, + continent: `Europe`, + population: 642550, + gdpTotal: 10610, + economy: `Developing`, + region: `Southern Europe`, + status: `Country`, + longitude: 19.191, + latitude: 42.814, + gdpPerPerson: 16512, + rank: 168, + unemployment: 10, + oilProduction: 2, + birthRate: 24, + medianAge: 46, + electricity: 24709, + televisions: 126756, + publicDebt: 29, + internet: 336628 + }), + new WorldStatsItem( + { + code: `ESH`, + name: `Western Sahara`, + continent: `Africa`, + population: 603253, + gdpTotal: 907, + economy: `Least developed`, + region: `Northern Africa`, + status: `Dependency`, + longitude: -12.89, + latitude: 24.231, + gdpPerPerson: 1504, + rank: 169, + unemployment: 6, + oilProduction: 1, + birthRate: 23, + medianAge: 30, + electricity: 11081, + televisions: 237857, + publicDebt: 30, + internet: 306624 + }), + new WorldStatsItem( + { + code: `MAC`, + name: `Macao`, + continent: `Asia`, + population: 601969, + gdpTotal: 63220, + economy: `Developing`, + region: `Eastern Asia`, + status: `Dependency`, + longitude: 113.51, + latitude: 22.221, + gdpPerPerson: 105022, + rank: 170, + unemployment: 10, + oilProduction: 2, + birthRate: 10, + medianAge: 47, + electricity: 77896, + televisions: 163859, + publicDebt: 18, + internet: 62728 + }), + new WorldStatsItem( + { + code: `LUX`, + name: `Luxembourg`, + continent: `Europe`, + population: 594130, + gdpTotal: 58740, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 6.109, + latitude: 49.806, + gdpPerPerson: 98867, + rank: 171, + unemployment: 4, + oilProduction: 0, + birthRate: 12, + medianAge: 39, + electricity: 3156, + televisions: 285000, + publicDebt: 6, + internet: 345000 + }), + new WorldStatsItem( + { + code: `SUR`, + name: `Suriname`, + continent: `South America`, + population: 591919, + gdpTotal: 8547, + economy: `Developing`, + region: `South America`, + status: `Country`, + longitude: -56.02, + latitude: 4.506, + gdpPerPerson: 14439, + rank: 172, + unemployment: 5, + oilProduction: 1, + birthRate: 16, + medianAge: 44, + electricity: 82658, + televisions: 69068, + publicDebt: 31, + internet: 367104 + }), + new WorldStatsItem( + { + code: `CPV`, + name: `Cabo Verde`, + continent: `Africa`, + population: 560899, + gdpTotal: 3583, + economy: `Developing`, + region: `Western Africa`, + status: `Country`, + longitude: -25.16, + latitude: 17.102, + gdpPerPerson: 6388, + rank: 173, + unemployment: 12, + oilProduction: 1, + birthRate: 12, + medianAge: 54, + electricity: 60647, + televisions: 101289, + publicDebt: 34, + internet: 40105 + }), + new WorldStatsItem( + { + code: `BRN`, + name: `Brunei`, + continent: `Asia`, + population: 443593, + gdpTotal: 33730, + economy: `Developing`, + region: `Eastern Asia`, + status: `Country`, + longitude: 114.69, + latitude: 4.523, + gdpPerPerson: 76038, + rank: 174, + unemployment: 4, + oilProduction: 0, + birthRate: 17, + medianAge: 32, + electricity: 50701, + televisions: 235042, + publicDebt: 16, + internet: 188751 + }), + new WorldStatsItem( + { + code: `MLT`, + name: `Malta`, + continent: `Europe`, + population: 416338, + gdpTotal: 16320, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 14.373, + latitude: 35.948, + gdpPerPerson: 39199, + rank: 175, + unemployment: 7, + oilProduction: 4, + birthRate: 6, + medianAge: 52, + electricity: 77444, + televisions: 282390, + publicDebt: 41, + internet: 317612 + }), + new WorldStatsItem( + { + code: `MDV`, + name: `Maldives`, + continent: `Asia`, + population: 392709, + gdpTotal: 5407, + economy: `Developing`, + region: `Southern Asia`, + status: `Country`, + longitude: 73.455, + latitude: 3.739, + gdpPerPerson: 13768, + rank: 176, + unemployment: 13, + oilProduction: 4, + birthRate: 10, + medianAge: 43, + electricity: 26004, + televisions: 156412, + publicDebt: 28, + internet: 45331 + }), + new WorldStatsItem( + { + code: `BLZ`, + name: `Belize`, + continent: `North America`, + population: 360346, + gdpTotal: 3088, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -88.51, + latitude: 17.185, + gdpPerPerson: 8570, + rank: 177, + unemployment: 4, + oilProduction: 2, + birthRate: 7, + medianAge: 36, + electricity: 57433, + televisions: 127478, + publicDebt: 36, + internet: 223855 + }), + new WorldStatsItem( + { + code: `ISL`, + name: `Iceland`, + continent: `Europe`, + population: 339747, + gdpTotal: 16150, + economy: `Developed`, + region: `Northern Europe`, + status: `Country`, + longitude: -19.01, + latitude: 64.966, + gdpPerPerson: 47535, + rank: 178, + unemployment: 1, + oilProduction: 0, + birthRate: 14, + medianAge: 35, + electricity: 8533, + televisions: 98000, + publicDebt: 28, + internet: 202300 + }), + new WorldStatsItem( + { + code: `BHS`, + name: `Bahamas`, + continent: `North America`, + population: 329988, + gdpTotal: 9066, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -78.01, + latitude: 24.761, + gdpPerPerson: 27474, + rank: 179, + unemployment: 5, + oilProduction: 2, + birthRate: 17, + medianAge: 47, + electricity: 38395, + televisions: 203588, + publicDebt: 6, + internet: 91807 + }), + new WorldStatsItem( + { + code: `FRG`, + name: `French Guiana`, + continent: `South America`, + population: 296161, + gdpTotal: 1299000, + economy: `Developed`, + region: `South America`, + status: `Dependency`, + longitude: -53.13, + latitude: 3.893, + gdpPerPerson: 4386128, + rank: 180, + unemployment: 3, + oilProduction: 0, + birthRate: 15, + medianAge: 55, + electricity: 73845, + televisions: 147489, + publicDebt: 35, + internet: 209593 + }), + new WorldStatsItem( + { + code: `BRB`, + name: `Barbados`, + continent: `North America`, + population: 292336, + gdpTotal: 4804, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -59.53, + latitude: 13.19, + gdpPerPerson: 16433, + rank: 181, + unemployment: 8, + oilProduction: 3, + birthRate: 21, + medianAge: 51, + electricity: 28728, + televisions: 173392, + publicDebt: 12, + internet: 73593 + }), + new WorldStatsItem( + { + code: `PYF`, + name: `Fr. Polynesia`, + continent: `Oceania`, + population: 287881, + gdpTotal: 5490, + economy: `Developing`, + region: `Polynesia`, + status: `Dependency`, + longitude: -143.9, + latitude: -14.82, + gdpPerPerson: 19070, + rank: 182, + unemployment: 1, + oilProduction: 4, + birthRate: 6, + medianAge: 45, + electricity: 46206, + televisions: 43757, + publicDebt: 12, + internet: 172560 + }), + new WorldStatsItem( + { + code: `VUT`, + name: `Vanuatu`, + continent: `Oceania`, + population: 282814, + gdpTotal: 723, + economy: `Least developed`, + region: `Melanesia`, + status: `Country`, + longitude: 168.21, + latitude: -16.97, + gdpPerPerson: 2556, + rank: 183, + unemployment: 11, + oilProduction: 4, + birthRate: 17, + medianAge: 39, + electricity: 50581, + televisions: 187584, + publicDebt: 42, + internet: 223352 + }), + new WorldStatsItem( + { + code: `NCL`, + name: `New Caledonia`, + continent: `Oceania`, + population: 279070, + gdpTotal: 10770, + economy: `Developing`, + region: `Melanesia`, + status: `Dependency`, + longitude: 165.26, + latitude: -21.09, + gdpPerPerson: 38592, + rank: 184, + unemployment: 10, + oilProduction: 3, + birthRate: 6, + medianAge: 49, + electricity: 18361, + televisions: 79923, + publicDebt: 45, + internet: 149003 + }), + new WorldStatsItem( + { + code: `NCP`, + name: `Northern Cyprus`, + continent: `Asia`, + population: 265100, + gdpTotal: 3600, + economy: `Developing`, + region: `Middle East`, + status: `Country`, + longitude: 33.714, + latitude: 35.257, + gdpPerPerson: 13580, + rank: 185, + unemployment: 4, + oilProduction: 5, + birthRate: 25, + medianAge: 51, + electricity: 84000, + televisions: 135551, + publicDebt: 30, + internet: 167480 + }), + new WorldStatsItem( + { + code: `STP`, + name: `Sao Tome and Principe`, + continent: `Africa`, + population: 201025, + gdpTotal: 694, + economy: `Least developed`, + region: `Middle Africa`, + status: `Country`, + longitude: 6.598, + latitude: 0.248, + gdpPerPerson: 3452, + rank: 186, + unemployment: 1, + oilProduction: 3, + birthRate: 24, + medianAge: 30, + electricity: 6691, + televisions: 65480, + publicDebt: 12, + internet: 121162 + }), + new WorldStatsItem( + { + code: `WSM`, + name: `Samoa`, + continent: `Oceania`, + population: 200108, + gdpTotal: 1046, + economy: `Least developed`, + region: `Polynesia`, + status: `Country`, + longitude: -172.1, + latitude: -13.75, + gdpPerPerson: 5227, + rank: 187, + unemployment: 3, + oilProduction: 2, + birthRate: 7, + medianAge: 46, + electricity: 50118, + televisions: 54930, + publicDebt: 42, + internet: 84739 + }), + new WorldStatsItem( + { + code: `GUM`, + name: `Guam`, + continent: `Oceania`, + population: 167358, + gdpTotal: 4882, + economy: `Developing`, + region: `Micronesia`, + status: `Dependency`, + longitude: 144.79, + latitude: 13.44, + gdpPerPerson: 29171, + rank: 188, + unemployment: 15, + oilProduction: 2, + birthRate: 24, + medianAge: 42, + electricity: 64229, + televisions: 43567, + publicDebt: 37, + internet: 121131 + }), + new WorldStatsItem( + { + code: `LCA`, + name: `Saint Lucia`, + continent: `North America`, + population: 164994, + gdpTotal: 2083, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -60.98, + latitude: 13.905, + gdpPerPerson: 12625, + rank: 189, + unemployment: 3, + oilProduction: 2, + birthRate: 14, + medianAge: 32, + electricity: 75473, + televisions: 87743, + publicDebt: 7, + internet: 64498 + }), + new WorldStatsItem( + { + code: `CUW`, + name: `Curacao`, + continent: `North America`, + population: 149648, + gdpTotal: 3128, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -68.95, + latitude: 12.213, + gdpPerPerson: 20902, + rank: 190, + unemployment: 6, + oilProduction: 1, + birthRate: 7, + medianAge: 35, + electricity: 74665, + televisions: 89830, + publicDebt: 36, + internet: 55905 + }), + new WorldStatsItem( + { + code: `ABW`, + name: `Aruba`, + continent: `North America`, + population: 115120, + gdpTotal: 2516, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -69.98, + latitude: 12.519, + gdpPerPerson: 21855, + rank: 191, + unemployment: 7, + oilProduction: 2356, + birthRate: 13, + medianAge: 38, + electricity: 770, + televisions: 20000, + publicDebt: 46, + internet: 24000 + }), + new WorldStatsItem( + { + code: `GRD`, + name: `Grenada`, + continent: `North America`, + population: 111724, + gdpTotal: 1511, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -61.69, + latitude: 12.123, + gdpPerPerson: 13524, + rank: 192, + unemployment: 10, + oilProduction: 0, + birthRate: 10, + medianAge: 50, + electricity: 4992, + televisions: 58674, + publicDebt: 42, + internet: 33132 + }), + new WorldStatsItem( + { + code: `KIR`, + name: `Kiribati`, + continent: `Oceania`, + population: 108145, + gdpTotal: 211, + economy: `Least developed`, + region: `Micronesia`, + status: `Country`, + longitude: -157.333, + latitude: 1.884, + gdpPerPerson: 1951, + rank: 193, + unemployment: 13, + oilProduction: 4, + birthRate: 9, + medianAge: 52, + electricity: 37081, + televisions: 52395, + publicDebt: 40, + internet: 36620 + }), + new WorldStatsItem( + { + code: `VIR`, + name: `U.S. Virgin Island`, + continent: `North America`, + population: 107268, + gdpTotal: 3792, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -64.77, + latitude: 17.77, + gdpPerPerson: 35351, + rank: 194, + unemployment: 11, + oilProduction: 2, + birthRate: 12, + medianAge: 38, + electricity: 13387, + televisions: 77187, + publicDebt: 43, + internet: 40836 + }), + new WorldStatsItem( + { + code: `TON`, + name: `Tonga`, + continent: `Oceania`, + population: 106479, + gdpTotal: 557, + economy: `Developing`, + region: `Polynesia`, + status: `Country`, + longitude: -173.9, + latitude: -18.62, + gdpPerPerson: 5231, + rank: 195, + unemployment: 4, + oilProduction: 4, + birthRate: 5, + medianAge: 33, + electricity: 88735, + televisions: 30257, + publicDebt: 25, + internet: 71756 + }), + new WorldStatsItem( + { + code: `FSM`, + name: `Micronesia`, + continent: `Oceania`, + population: 104196, + gdpTotal: 314, + economy: `Developing`, + region: `Micronesia`, + status: `Country`, + longitude: 150.52, + latitude: 7.435, + gdpPerPerson: 3014, + rank: 196, + unemployment: 9, + oilProduction: 5, + birthRate: 5, + medianAge: 38, + electricity: 39068, + televisions: 45396, + publicDebt: 40, + internet: 29169 + }), + new WorldStatsItem( + { + code: `VCT`, + name: `St. Vin. and Gren.`, + continent: `North America`, + population: 102089, + gdpTotal: 1241, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -61.17, + latitude: 13.239, + gdpPerPerson: 12156, + rank: 197, + unemployment: 10, + oilProduction: 5, + birthRate: 7, + medianAge: 30, + electricity: 39467, + televisions: 42804, + publicDebt: 9, + internet: 66754 + }), + new WorldStatsItem( + { + code: `JEY`, + name: `Jersey`, + continent: `Europe`, + population: 98840, + gdpTotal: 5080, + economy: `Developed`, + region: `Northern Europe`, + status: `Territory`, + longitude: -2.123, + latitude: 49.218, + gdpPerPerson: 51396, + rank: 198, + unemployment: 4, + oilProduction: 1, + birthRate: 18, + medianAge: 30, + electricity: 64261, + televisions: 52453, + publicDebt: 34, + internet: 3026 + }), + new WorldStatsItem( + { + code: `ATG`, + name: `Antigua and Barbuda`, + continent: `North America`, + population: 94731, + gdpTotal: 2171, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -61.79, + latitude: 17.096, + gdpPerPerson: 22918, + rank: 199, + unemployment: 3, + oilProduction: 1, + birthRate: 5, + medianAge: 36, + electricity: 35849, + televisions: 75384, + publicDebt: 32, + internet: 6170 + }), + new WorldStatsItem( + { + code: `SYC`, + name: `Seychelles`, + continent: `Africa`, + population: 93920, + gdpTotal: 2608, + economy: `Developing`, + region: `Eastern Africa`, + status: `Country`, + longitude: 55.463, + latitude: -4.672, + gdpPerPerson: 27768, + rank: 200, + unemployment: 2, + oilProduction: 0, + birthRate: 16, + medianAge: 29, + electricity: 252, + televisions: 11000, + publicDebt: 92, + internet: 32000 + }), + new WorldStatsItem( + { + code: `IMN`, + name: `Isle of Man`, + continent: `Europe`, + population: 88815, + gdpTotal: 7428, + economy: `Developed`, + region: `Northern Europe`, + status: `Territory`, + longitude: -4.562, + latitude: 54.233, + gdpPerPerson: 83635, + rank: 201, + unemployment: 4, + oilProduction: 4, + birthRate: 14, + medianAge: 36, + electricity: 15745, + televisions: 25734, + publicDebt: 13, + internet: 2650 + }), + new WorldStatsItem( + { + code: `AND`, + name: `Andorra`, + continent: `Europe`, + population: 85702, + gdpTotal: 3327, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 1.578, + latitude: 42.539, + gdpPerPerson: 38821, + rank: 202, + unemployment: 11, + oilProduction: 3, + birthRate: 20, + medianAge: 50, + electricity: 56209, + televisions: 42797, + publicDebt: 33, + internet: 42006 + }), + new WorldStatsItem( + { + code: `MHL`, + name: `Marshall Islands`, + continent: `Oceania`, + population: 74539, + gdpTotal: 180, + economy: `Developing`, + region: `Micronesia`, + status: `Country`, + longitude: 169.3, + latitude: 8.484, + gdpPerPerson: 2415, + rank: 203, + unemployment: 3, + oilProduction: 3, + birthRate: 23, + medianAge: 42, + electricity: 78832, + televisions: 15193, + publicDebt: 44, + internet: 8536 + }), + new WorldStatsItem( + { + code: `DMA`, + name: `Dominica`, + continent: `North America`, + population: 73897, + gdpTotal: 812, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -61.36, + latitude: 15.43, + gdpPerPerson: 10988, + rank: 204, + unemployment: 6, + oilProduction: 1, + birthRate: 13, + medianAge: 35, + electricity: 49809, + televisions: 17676, + publicDebt: 37, + internet: 2616 + }), + new WorldStatsItem( + { + code: `BMU`, + name: `Bermuda`, + continent: `North America`, + population: 70864, + gdpTotal: 5198, + economy: `Developed`, + region: `Northern America`, + status: `Dependency`, + longitude: -64.76, + latitude: 32.323, + gdpPerPerson: 73352, + rank: 205, + unemployment: 15, + oilProduction: 1, + birthRate: 21, + medianAge: 43, + electricity: 54728, + televisions: 16336, + publicDebt: 27, + internet: 41606 + }), + new WorldStatsItem( + { + code: `GGY`, + name: `Guernsey`, + continent: `Europe`, + population: 66502, + gdpTotal: 3465, + economy: `Developed`, + region: `Northern Europe`, + status: `Territory`, + longitude: -2.579, + latitude: 49.468, + gdpPerPerson: 52104, + rank: 206, + unemployment: 2, + oilProduction: 1, + birthRate: 25, + medianAge: 33, + electricity: 9806, + televisions: 24638, + publicDebt: 34, + internet: 29222 + }), + new WorldStatsItem( + { + code: `CYM`, + name: `Cayman Island`, + continent: `North America`, + population: 58441, + gdpTotal: 2507, + economy: `Emerging`, + region: `Central America`, + status: `Dependency`, + longitude: -81.25, + latitude: 19.343, + gdpPerPerson: 42898, + rank: 207, + unemployment: 12, + oilProduction: 3, + birthRate: 7, + medianAge: 35, + electricity: 70206, + televisions: 28885, + publicDebt: 21, + internet: 9332 + }), + new WorldStatsItem( + { + code: `GRL`, + name: `Greenland`, + continent: `North America`, + population: 57713, + gdpTotal: 2173, + economy: `Developed`, + region: `Northern America`, + status: `Dependency`, + longitude: -42.12, + latitude: 69.547, + gdpPerPerson: 37652, + rank: 208, + unemployment: 7, + oilProduction: 5, + birthRate: 19, + medianAge: 42, + electricity: 86090, + televisions: 43741, + publicDebt: 42, + internet: 11423 + }), + new WorldStatsItem( + { + code: `KNA`, + name: `St. Kitts and Nevis`, + continent: `North America`, + population: 52715, + gdpTotal: 1427, + economy: `Developing`, + region: `Central America`, + status: `Country`, + longitude: -62.77, + latitude: 17.351, + gdpPerPerson: 27070, + rank: 209, + unemployment: 5, + oilProduction: 2, + birthRate: 18, + medianAge: 40, + electricity: 65438, + televisions: 17719, + publicDebt: 11, + internet: 8543 + }), + new WorldStatsItem( + { + code: `TCA`, + name: `Turks and Caicos Is.`, + continent: `North America`, + population: 52570, + gdpTotal: 632, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -71.96, + latitude: 21.913, + gdpPerPerson: 12022, + rank: 210, + unemployment: 6, + oilProduction: 0, + birthRate: 13, + medianAge: 42, + electricity: 51325, + televisions: 13109, + publicDebt: 13, + internet: 24564 + }), + new WorldStatsItem( + { + code: `MNP`, + name: `N. Mariana Island`, + continent: `Oceania`, + population: 52263, + gdpTotal: 682, + economy: `Developing`, + region: `Micronesia`, + status: `Dependency`, + longitude: 145.49, + latitude: 16.459, + gdpPerPerson: 13049, + rank: 211, + unemployment: 10, + oilProduction: 1, + birthRate: 9, + medianAge: 46, + electricity: 87386, + televisions: 13049, + publicDebt: 20, + internet: 5484 + }), + new WorldStatsItem( + { + code: `ASM`, + name: `American Samoa`, + continent: `Oceania`, + population: 51504, + gdpTotal: 711, + economy: `Developing`, + region: `Polynesia`, + status: `Dependency`, + longitude: -170.6, + latitude: -14.3, + gdpPerPerson: 13805, + rank: 212, + unemployment: 3, + oilProduction: 4, + birthRate: 13, + medianAge: 42, + electricity: 65918, + televisions: 18802, + publicDebt: 23, + internet: 14691 + }), + new WorldStatsItem( + { + code: `FRO`, + name: `Faeroe Island`, + continent: `Europe`, + population: 50730, + gdpTotal: 2001, + economy: `Developed`, + region: `Northern Europe`, + status: `Dependency`, + longitude: -6.857, + latitude: 62.178, + gdpPerPerson: 39444, + rank: 213, + unemployment: 15, + oilProduction: 2, + birthRate: 11, + medianAge: 46, + electricity: 55029, + televisions: 11762, + publicDebt: 13, + internet: 2412 + }), + new WorldStatsItem( + { + code: `SXM`, + name: `Sint Maarten`, + continent: `North America`, + population: 42083, + gdpTotal: 366, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -63.06, + latitude: 18.044, + gdpPerPerson: 8697, + rank: 214, + unemployment: 14, + oilProduction: 4, + birthRate: 19, + medianAge: 50, + electricity: 17166, + televisions: 8474, + publicDebt: 33, + internet: 14309 + }), + new WorldStatsItem( + { + code: `LIE`, + name: `Liechtenstein`, + continent: `Europe`, + population: 38244, + gdpTotal: 4978, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 9.545, + latitude: 47.164, + gdpPerPerson: 130164, + rank: 215, + unemployment: 11, + oilProduction: 3, + birthRate: 10, + medianAge: 55, + electricity: 80781, + televisions: 23104, + publicDebt: 21, + internet: 8159 + }), + new WorldStatsItem( + { + code: `VGB`, + name: `British Virgin Island`, + continent: `North America`, + population: 35015, + gdpTotal: 500, + economy: `Developed`, + region: `Central America`, + status: `Dependency`, + longitude: -64.6, + latitude: 18.44, + gdpPerPerson: 14280, + rank: 216, + unemployment: 13, + oilProduction: 2, + birthRate: 6, + medianAge: 51, + electricity: 47732, + televisions: 17777, + publicDebt: 7, + internet: 6238 + }), + new WorldStatsItem( + { + code: `SMR`, + name: `San Marino`, + continent: `Europe`, + population: 33537, + gdpTotal: 2023, + economy: `Developed`, + region: `Southern Europe`, + status: `Country`, + longitude: 12.456, + latitude: 43.942, + gdpPerPerson: 60321, + rank: 217, + unemployment: 10, + oilProduction: 0, + birthRate: 15, + medianAge: 48, + electricity: 21943, + televisions: 22355, + publicDebt: 34, + internet: 23505 + }), + new WorldStatsItem( + { + code: `MAF`, + name: `St. Martin`, + continent: `North America`, + population: 32125, + gdpTotal: 562, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -63.06, + latitude: 18.092, + gdpPerPerson: 17494, + rank: 218, + unemployment: 15, + oilProduction: 5, + birthRate: 10, + medianAge: 34, + electricity: 76791, + televisions: 17592, + publicDebt: 43, + internet: 25032 + }), + new WorldStatsItem( + { + code: `MCO`, + name: `Monaco`, + continent: `Europe`, + population: 30645, + gdpTotal: 7672, + economy: `Developed`, + region: `Western Europe`, + status: `Country`, + longitude: 7.408, + latitude: 43.751, + gdpPerPerson: 250351, + rank: 219, + unemployment: 15, + oilProduction: 5, + birthRate: 18, + medianAge: 31, + electricity: 73517, + televisions: 10057, + publicDebt: 10, + internet: 18394 + }), + new WorldStatsItem( + { + code: `ALA`, + name: `Aland Islands`, + continent: `Europe`, + population: 27153, + gdpTotal: 1563, + economy: `Developed`, + region: `Northern Europe`, + status: `Territory`, + longitude: 20.065, + latitude: 60.209, + gdpPerPerson: 57563, + rank: 220, + unemployment: 14, + oilProduction: 3, + birthRate: 15, + medianAge: 54, + electricity: 69394, + televisions: 14696, + publicDebt: 19, + internet: 2736 + }), + new WorldStatsItem( + { + code: `PLW`, + name: `Palau`, + continent: `Oceania`, + population: 21431, + gdpTotal: 276, + economy: `Developing`, + region: `Micronesia`, + status: `Country`, + longitude: 134.63, + latitude: 7.532, + gdpPerPerson: 12879, + rank: 221, + unemployment: 8, + oilProduction: 1, + birthRate: 7, + medianAge: 39, + electricity: 88599, + televisions: 3019, + publicDebt: 8, + internet: 17075 + }), + new WorldStatsItem( + { + code: `AIA`, + name: `Anguilla`, + continent: `North America`, + population: 17087, + gdpTotal: 175, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -63.07, + latitude: 18.221, + gdpPerPerson: 10242, + rank: 222, + unemployment: 9, + oilProduction: 1, + birthRate: 10, + medianAge: 49, + electricity: 68590, + televisions: 10632, + publicDebt: 40, + internet: 8703 + }), + new WorldStatsItem( + { + code: `WLF`, + name: `Wallis Island`, + continent: `Oceania`, + population: 15714, + gdpTotal: 60, + economy: `Developing`, + region: `Polynesia`, + status: `Dependency`, + longitude: -177.1, + latitude: -13.77, + gdpPerPerson: 3818, + rank: 223, + unemployment: 15, + oilProduction: 0, + birthRate: 0, + medianAge: 0, + electricity: 0, + televisions: 0, + publicDebt: 6, + internet: 900 + }), + new WorldStatsItem( + { + code: `NRU`, + name: `Nauru`, + continent: `Oceania`, + population: 9642, + gdpTotal: 151, + economy: `Developing`, + region: `Micronesia`, + status: `Country`, + longitude: 166.93, + latitude: -0.52, + gdpPerPerson: 15661, + rank: 224, + unemployment: 5, + oilProduction: 3, + birthRate: 17, + medianAge: 32, + electricity: 84092, + televisions: 1777, + publicDebt: 34, + internet: 4585 + }), + new WorldStatsItem( + { + code: `COK`, + name: `Cook Island`, + continent: `Oceania`, + population: 9290, + gdpTotal: 244, + economy: `Developing`, + region: `Polynesia`, + status: `Dependency`, + longitude: -159.7, + latitude: -21.21, + gdpPerPerson: 26265, + rank: 225, + unemployment: 15, + oilProduction: 1, + birthRate: 6, + medianAge: 45, + electricity: 41320, + televisions: 3712, + publicDebt: 24, + internet: 3555 + }), + new WorldStatsItem( + { + code: `SHN`, + name: `Saint Helena`, + continent: `Africa`, + population: 7828, + gdpTotal: 31, + economy: `Developing`, + region: `Western Africa`, + status: `Dependency`, + longitude: -10.03, + latitude: -11.94, + gdpPerPerson: 3960, + rank: 226, + unemployment: 13, + oilProduction: 1, + birthRate: 17, + medianAge: 48, + electricity: 84435, + televisions: 3812, + publicDebt: 15, + internet: 5530 + }), + new WorldStatsItem( + { + code: `BLM`, + name: `St. Barthalemy`, + continent: `North America`, + population: 7184, + gdpTotal: 255, + economy: `Developed`, + region: `Central America`, + status: `Dependency`, + longitude: -62.83, + latitude: 17.899, + gdpPerPerson: 35496, + rank: 227, + unemployment: 14, + oilProduction: 0, + birthRate: 23, + medianAge: 46, + electricity: 36112, + televisions: 4072, + publicDebt: 27, + internet: 5097 + }), + new WorldStatsItem( + { + code: `KAS`, + name: `Siachen Glacier`, + continent: `Asia`, + population: 6000, + gdpTotal: 15, + economy: `Developing`, + region: `Southern Asia`, + status: `Territory`, + longitude: 77.283, + latitude: 35.386, + gdpPerPerson: 2500, + rank: 228, + unemployment: 7, + oilProduction: 0, + birthRate: 9, + medianAge: 55, + electricity: 62932, + televisions: 936, + publicDebt: 14, + internet: 1303 + }), + new WorldStatsItem( + { + code: `SPM`, + name: `St. Pierre and Miquelon`, + continent: `North America`, + population: 5533, + gdpTotal: 215, + economy: `Developed`, + region: `Northern America`, + status: `Territory`, + longitude: -56.26, + latitude: 46.926, + gdpPerPerson: 38858, + rank: 229, + unemployment: 13, + oilProduction: 0, + birthRate: 13, + medianAge: 42, + electricity: 61277, + televisions: 2067, + publicDebt: 18, + internet: 2924 + }), + new WorldStatsItem( + { + code: `MSR`, + name: `Montserrat`, + continent: `North America`, + population: 5292, + gdpTotal: 44, + economy: `Developing`, + region: `Central America`, + status: `Dependency`, + longitude: -62.18, + latitude: 16.745, + gdpPerPerson: 8314, + rank: 230, + unemployment: 13, + oilProduction: 1, + birthRate: 12, + medianAge: 50, + electricity: 19088, + televisions: 1964, + publicDebt: 44, + internet: 4009 + }), + new WorldStatsItem( + { + code: `ATA`, + name: `Antarctica`, + continent: `Antarctica`, + population: 4050, + gdpTotal: 810, + economy: `Developing`, + region: `Antarctica`, + status: `Indeterminate`, + longitude: 54.592, + latitude: -70.81, + gdpPerPerson: 200000, + rank: 231, + unemployment: 9, + oilProduction: 2, + birthRate: 18, + medianAge: 42, + electricity: 63975, + televisions: 2439, + publicDebt: 45, + internet: 2190 + }), + new WorldStatsItem( + { + code: `IOT`, + name: `British Indian Territory`, + continent: `Asia`, + population: 4000, + gdpTotal: 160, + economy: `Developed`, + region: `Southern Asia`, + status: `Dependency`, + longitude: 72.424, + latitude: -7.328, + gdpPerPerson: 40000, + rank: 232, + unemployment: 13, + oilProduction: 0, + birthRate: 6, + medianAge: 47, + electricity: 91829, + televisions: 1510, + publicDebt: 14, + internet: 1656 + }), + new WorldStatsItem( + { + code: `FLK`, + name: `Falkland Island`, + continent: `South America`, + population: 2931, + gdpTotal: 282, + economy: `Developed`, + region: `South America`, + status: `Dependency`, + longitude: -59.46, + latitude: -51.78, + gdpPerPerson: 96213, + rank: 233, + unemployment: 3, + oilProduction: 5, + birthRate: 9, + medianAge: 36, + electricity: 68007, + televisions: 1489, + publicDebt: 22, + internet: 1335 + }), + new WorldStatsItem( + { + code: `NFK`, + name: `Norfolk Island`, + continent: `Oceania`, + population: 2210, + gdpTotal: 33, + economy: `Developing`, + region: `Australia`, + status: `Dependency`, + longitude: 167.94, + latitude: -29.05, + gdpPerPerson: 14932, + rank: 234, + unemployment: 1, + oilProduction: 0, + birthRate: 15, + medianAge: 46, + electricity: 91943, + televisions: 583, + publicDebt: 41, + internet: 1183 + }), + new WorldStatsItem( + { + code: `NIU`, + name: `Niue`, + continent: `Oceania`, + population: 1626, + gdpTotal: 10, + economy: `Developing`, + region: `Polynesia`, + status: `Dependency`, + longitude: -169.8, + latitude: -19.05, + gdpPerPerson: 6150, + rank: 235, + unemployment: 15, + oilProduction: 4, + birthRate: 17, + medianAge: 51, + electricity: 16785, + televisions: 585, + publicDebt: 31, + internet: 1247 + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/app.component.html b/samples/charts/data-chart/scatter-bubble-chart-single-source/src/app.component.html index 672b6b1c7..1b499f158 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/app.component.html +++ b/samples/charts/data-chart/scatter-bubble-chart-single-source/src/app.component.html @@ -26,12 +26,12 @@ #bubbleSeries1 xMemberPath="population" yMemberPath="publicDebt" - radiusMemberPath="gdpPerCapita" + radiusMemberPath="gdpPerPerson" [radiusScale]="sizeScale1" - fillMemberPath="gdpPerCapita" + fillMemberPath="gdpPerPerson" [xAxis]="xAxis" [yAxis]="yAxis" - [dataSource]="worldDebtAndPopulation" + [dataSource]="worldStats" markerType="Circle" showDefaultTooltip="true"> diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/app.component.ts b/samples/charts/data-chart/scatter-bubble-chart-single-source/src/app.component.ts index 0b1b2d4e5..62b87e728 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/app.component.ts +++ b/samples/charts/data-chart/scatter-bubble-chart-single-source/src/app.component.ts @@ -1,5 +1,5 @@ import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; -import { WorldDebtAndPopulationItem, WorldDebtAndPopulation } from './WorldDebtAndPopulation'; +import { WorldStatsItem, WorldStats } from './WorldStats'; import { IgxDataChartComponent, IgxNumericXAxisComponent, IgxNumericYAxisComponent, IgxBubbleSeriesComponent, IgxSizeScaleComponent, IgxDataToolTipLayerComponent } from 'igniteui-angular-charts'; @Component({ @@ -35,13 +35,13 @@ export class AppComponent implements AfterViewInit } @ViewChild("dataToolTipLayer", { static: true } ) private dataToolTipLayer: IgxDataToolTipLayerComponent - private _worldDebtAndPopulation: WorldDebtAndPopulation = null; - public get worldDebtAndPopulation(): WorldDebtAndPopulation { - if (this._worldDebtAndPopulation == null) + private _worldStats: WorldStats = null; + public get worldStats(): WorldStats { + if (this._worldStats == null) { - this._worldDebtAndPopulation = new WorldDebtAndPopulation(); + this._worldStats = new WorldStats(); } - return this._worldDebtAndPopulation; + return this._worldStats; } public constructor(private _detector: ChangeDetectorRef) diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.app.json b/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.base.json b/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.spec.json b/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.worker.json b/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-single-source/tsconfig.app.json b/samples/charts/data-chart/scatter-bubble-chart-single-source/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-single-source/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/data-chart/scatter-bubble-chart-single-source/tsconfig.json b/samples/charts/data-chart/scatter-bubble-chart-single-source/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-single-source/tsconfig.json +++ b/samples/charts/data-chart/scatter-bubble-chart-single-source/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/scatter-bubble-chart-styling/.codesandbox/Dockerfile b/samples/charts/data-chart/scatter-bubble-chart-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-bubble-chart-styling/.codesandbox/tasks.json b/samples/charts/data-chart/scatter-bubble-chart-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-styling/.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/data-chart/scatter-bubble-chart-styling/.stackblitzrc b/samples/charts/data-chart/scatter-bubble-chart-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-styling/.stackblitzrc +++ b/samples/charts/data-chart/scatter-bubble-chart-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-bubble-chart-styling/angular.json b/samples/charts/data-chart/scatter-bubble-chart-styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-styling/angular.json +++ b/samples/charts/data-chart/scatter-bubble-chart-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/scatter-bubble-chart-styling/package.json b/samples/charts/data-chart/scatter-bubble-chart-styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-styling/package.json +++ b/samples/charts/data-chart/scatter-bubble-chart-styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/scatter-bubble-chart-styling/sandbox.config.json b/samples/charts/data-chart/scatter-bubble-chart-styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.app.json b/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.base.json b/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.spec.json b/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.worker.json b/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/scatter-bubble-chart-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-bubble-chart-styling/tsconfig.app.json b/samples/charts/data-chart/scatter-bubble-chart-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/scatter-bubble-chart-styling/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/data-chart/scatter-bubble-chart-styling/tsconfig.json b/samples/charts/data-chart/scatter-bubble-chart-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/scatter-bubble-chart-styling/tsconfig.json +++ b/samples/charts/data-chart/scatter-bubble-chart-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/scatter-line-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/scatter-line-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/scatter-line-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-line-chart/.codesandbox/tasks.json b/samples/charts/data-chart/scatter-line-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/scatter-line-chart/.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/data-chart/scatter-line-chart/.stackblitzrc b/samples/charts/data-chart/scatter-line-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/scatter-line-chart/.stackblitzrc +++ b/samples/charts/data-chart/scatter-line-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-line-chart/angular.json b/samples/charts/data-chart/scatter-line-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/scatter-line-chart/angular.json +++ b/samples/charts/data-chart/scatter-line-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/scatter-line-chart/package.json b/samples/charts/data-chart/scatter-line-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/scatter-line-chart/package.json +++ b/samples/charts/data-chart/scatter-line-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/scatter-line-chart/sandbox.config.json b/samples/charts/data-chart/scatter-line-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/scatter-line-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/scatter-line-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/scatter-line-chart/tsconfig.app.json b/samples/charts/data-chart/scatter-line-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/scatter-line-chart/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/data-chart/scatter-line-chart/tsconfig.json b/samples/charts/data-chart/scatter-line-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/scatter-line-chart/tsconfig.json +++ b/samples/charts/data-chart/scatter-line-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/scatter-point-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/scatter-point-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/scatter-point-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-point-chart/.codesandbox/tasks.json b/samples/charts/data-chart/scatter-point-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/scatter-point-chart/.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/data-chart/scatter-point-chart/.stackblitzrc b/samples/charts/data-chart/scatter-point-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/scatter-point-chart/.stackblitzrc +++ b/samples/charts/data-chart/scatter-point-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-point-chart/angular.json b/samples/charts/data-chart/scatter-point-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/scatter-point-chart/angular.json +++ b/samples/charts/data-chart/scatter-point-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/scatter-point-chart/package.json b/samples/charts/data-chart/scatter-point-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/scatter-point-chart/package.json +++ b/samples/charts/data-chart/scatter-point-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/scatter-point-chart/sandbox.config.json b/samples/charts/data-chart/scatter-point-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/scatter-point-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/scatter-point-chart/src/CountryDemographicEurope.ts b/samples/charts/data-chart/scatter-point-chart/src/CountryDemographicEurope.ts index 28a586e0f..7b578d2a7 100644 --- a/samples/charts/data-chart/scatter-point-chart/src/CountryDemographicEurope.ts +++ b/samples/charts/data-chart/scatter-point-chart/src/CountryDemographicEurope.ts @@ -83,7 +83,7 @@ export class CountryDemographicEurope extends Array { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/series-animations/tsconfig.app.json b/samples/charts/data-chart/series-animations/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/series-animations/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/data-chart/series-animations/tsconfig.json b/samples/charts/data-chart/series-animations/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/series-animations/tsconfig.json +++ b/samples/charts/data-chart/series-animations/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/series-annotations/.codesandbox/Dockerfile b/samples/charts/data-chart/series-annotations/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/series-annotations/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/series-annotations/.codesandbox/tasks.json b/samples/charts/data-chart/series-annotations/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/series-annotations/.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/data-chart/series-annotations/.stackblitzrc b/samples/charts/data-chart/series-annotations/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/series-annotations/.stackblitzrc +++ b/samples/charts/data-chart/series-annotations/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/series-annotations/angular.json b/samples/charts/data-chart/series-annotations/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/series-annotations/angular.json +++ b/samples/charts/data-chart/series-annotations/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/series-annotations/package.json b/samples/charts/data-chart/series-annotations/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/series-annotations/package.json +++ b/samples/charts/data-chart/series-annotations/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/series-annotations/sandbox.config.json b/samples/charts/data-chart/series-annotations/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/series-annotations/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/series-annotations/src/app/SharedData.ts b/samples/charts/data-chart/series-annotations/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/series-annotations/src/app/SharedData.ts rename to samples/charts/data-chart/series-annotations/src/SharedData.ts diff --git a/samples/charts/data-chart/series-annotations/src/app/app.component.html b/samples/charts/data-chart/series-annotations/src/app.component.html similarity index 100% rename from samples/charts/data-chart/series-annotations/src/app/app.component.html rename to samples/charts/data-chart/series-annotations/src/app.component.html diff --git a/samples/charts/data-chart/series-value-overlay/src/app/app.component.scss b/samples/charts/data-chart/series-annotations/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/series-value-overlay/src/app/app.component.scss rename to samples/charts/data-chart/series-annotations/src/app.component.scss diff --git a/samples/charts/data-chart/series-annotations/src/app/app.component.ts b/samples/charts/data-chart/series-annotations/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/series-annotations/src/app/app.component.ts rename to samples/charts/data-chart/series-annotations/src/app.component.ts diff --git a/samples/charts/data-chart/series-annotations/src/app/app.module.ts b/samples/charts/data-chart/series-annotations/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/series-annotations/src/app/app.module.ts rename to samples/charts/data-chart/series-annotations/src/app.module.ts diff --git a/samples/charts/data-chart/series-annotations/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/series-annotations/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/series-annotations/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/series-annotations/src/config/tsconfig.app.json b/samples/charts/data-chart/series-annotations/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/series-annotations/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/series-annotations/src/config/tsconfig.base.json b/samples/charts/data-chart/series-annotations/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/series-annotations/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/series-annotations/src/config/tsconfig.spec.json b/samples/charts/data-chart/series-annotations/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/series-annotations/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/series-annotations/src/config/tsconfig.worker.json b/samples/charts/data-chart/series-annotations/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/series-annotations/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/series-annotations/src/main.ts b/samples/charts/data-chart/series-annotations/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/series-annotations/src/main.ts +++ b/samples/charts/data-chart/series-annotations/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/series-annotations/tsconfig.app.json b/samples/charts/data-chart/series-annotations/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/series-annotations/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/data-chart/series-annotations/tsconfig.json b/samples/charts/data-chart/series-annotations/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/series-annotations/tsconfig.json +++ b/samples/charts/data-chart/series-annotations/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/series-highlighting/.codesandbox/Dockerfile b/samples/charts/data-chart/series-highlighting/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/series-highlighting/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/series-highlighting/.codesandbox/tasks.json b/samples/charts/data-chart/series-highlighting/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/series-highlighting/.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/data-chart/series-highlighting/.stackblitzrc b/samples/charts/data-chart/series-highlighting/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/series-highlighting/.stackblitzrc +++ b/samples/charts/data-chart/series-highlighting/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/series-highlighting/angular.json b/samples/charts/data-chart/series-highlighting/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/series-highlighting/angular.json +++ b/samples/charts/data-chart/series-highlighting/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/series-highlighting/package.json b/samples/charts/data-chart/series-highlighting/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/series-highlighting/package.json +++ b/samples/charts/data-chart/series-highlighting/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/series-highlighting/sandbox.config.json b/samples/charts/data-chart/series-highlighting/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/series-highlighting/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/series-highlighting/src/app/SharedData.ts b/samples/charts/data-chart/series-highlighting/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/series-highlighting/src/app/SharedData.ts rename to samples/charts/data-chart/series-highlighting/src/SharedData.ts diff --git a/samples/charts/data-chart/series-highlighting/src/app/app.component.html b/samples/charts/data-chart/series-highlighting/src/app.component.html similarity index 100% rename from samples/charts/data-chart/series-highlighting/src/app/app.component.html rename to samples/charts/data-chart/series-highlighting/src/app.component.html diff --git a/samples/charts/data-chart/stacked-chart-types/src/app/app.component.scss b/samples/charts/data-chart/series-highlighting/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/stacked-chart-types/src/app/app.component.scss rename to samples/charts/data-chart/series-highlighting/src/app.component.scss diff --git a/samples/charts/data-chart/series-highlighting/src/app/app.component.ts b/samples/charts/data-chart/series-highlighting/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/series-highlighting/src/app/app.component.ts rename to samples/charts/data-chart/series-highlighting/src/app.component.ts diff --git a/samples/charts/data-chart/series-highlighting/src/app/app.module.ts b/samples/charts/data-chart/series-highlighting/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/series-highlighting/src/app/app.module.ts rename to samples/charts/data-chart/series-highlighting/src/app.module.ts diff --git a/samples/charts/data-chart/series-highlighting/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/series-highlighting/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/series-highlighting/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/series-highlighting/src/config/tsconfig.app.json b/samples/charts/data-chart/series-highlighting/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/series-highlighting/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/series-highlighting/src/config/tsconfig.base.json b/samples/charts/data-chart/series-highlighting/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/series-highlighting/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/series-highlighting/src/config/tsconfig.spec.json b/samples/charts/data-chart/series-highlighting/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/series-highlighting/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/series-highlighting/src/config/tsconfig.worker.json b/samples/charts/data-chart/series-highlighting/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/series-highlighting/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/series-highlighting/src/main.ts b/samples/charts/data-chart/series-highlighting/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/series-highlighting/src/main.ts +++ b/samples/charts/data-chart/series-highlighting/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/series-highlighting/tsconfig.app.json b/samples/charts/data-chart/series-highlighting/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/series-highlighting/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/data-chart/series-highlighting/tsconfig.json b/samples/charts/data-chart/series-highlighting/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/series-highlighting/tsconfig.json +++ b/samples/charts/data-chart/series-highlighting/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/series-marker-template/.codesandbox/Dockerfile b/samples/charts/data-chart/series-marker-template/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/series-marker-template/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/series-marker-template/.codesandbox/tasks.json b/samples/charts/data-chart/series-marker-template/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/series-marker-template/.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/data-chart/series-marker-template/.stackblitzrc b/samples/charts/data-chart/series-marker-template/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/series-marker-template/.stackblitzrc +++ b/samples/charts/data-chart/series-marker-template/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/series-marker-template/angular.json b/samples/charts/data-chart/series-marker-template/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/series-marker-template/angular.json +++ b/samples/charts/data-chart/series-marker-template/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/series-marker-template/package.json b/samples/charts/data-chart/series-marker-template/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/series-marker-template/package.json +++ b/samples/charts/data-chart/series-marker-template/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/series-marker-template/sandbox.config.json b/samples/charts/data-chart/series-marker-template/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/series-marker-template/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/series-marker-template/src/app/app.component.html b/samples/charts/data-chart/series-marker-template/src/app.component.html similarity index 100% rename from samples/charts/data-chart/series-marker-template/src/app/app.component.html rename to samples/charts/data-chart/series-marker-template/src/app.component.html diff --git a/samples/charts/data-chart/tooltip-template/src/app/app.component.scss b/samples/charts/data-chart/series-marker-template/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/tooltip-template/src/app/app.component.scss rename to samples/charts/data-chart/series-marker-template/src/app.component.scss diff --git a/samples/charts/data-chart/series-marker-template/src/app/app.component.ts b/samples/charts/data-chart/series-marker-template/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/series-marker-template/src/app/app.component.ts rename to samples/charts/data-chart/series-marker-template/src/app.component.ts diff --git a/samples/charts/data-chart/series-marker-template/src/app/app.module.ts b/samples/charts/data-chart/series-marker-template/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/series-marker-template/src/app/app.module.ts rename to samples/charts/data-chart/series-marker-template/src/app.module.ts diff --git a/samples/charts/data-chart/series-marker-template/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/series-marker-template/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/series-marker-template/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/series-marker-template/src/config/tsconfig.app.json b/samples/charts/data-chart/series-marker-template/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/series-marker-template/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/series-marker-template/src/config/tsconfig.base.json b/samples/charts/data-chart/series-marker-template/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/series-marker-template/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/series-marker-template/src/config/tsconfig.spec.json b/samples/charts/data-chart/series-marker-template/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/series-marker-template/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/series-marker-template/src/config/tsconfig.worker.json b/samples/charts/data-chart/series-marker-template/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/series-marker-template/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/series-marker-template/src/main.ts b/samples/charts/data-chart/series-marker-template/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/series-marker-template/src/main.ts +++ b/samples/charts/data-chart/series-marker-template/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/series-marker-template/tsconfig.app.json b/samples/charts/data-chart/series-marker-template/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/series-marker-template/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/data-chart/series-marker-template/tsconfig.json b/samples/charts/data-chart/series-marker-template/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/series-marker-template/tsconfig.json +++ b/samples/charts/data-chart/series-marker-template/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/series-markers/.codesandbox/Dockerfile b/samples/charts/data-chart/series-markers/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/series-markers/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/series-markers/.codesandbox/tasks.json b/samples/charts/data-chart/series-markers/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/series-markers/.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/data-chart/series-markers/.stackblitzrc b/samples/charts/data-chart/series-markers/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/series-markers/.stackblitzrc +++ b/samples/charts/data-chart/series-markers/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/series-markers/angular.json b/samples/charts/data-chart/series-markers/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/series-markers/angular.json +++ b/samples/charts/data-chart/series-markers/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/series-markers/package.json b/samples/charts/data-chart/series-markers/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/series-markers/package.json +++ b/samples/charts/data-chart/series-markers/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/series-markers/sandbox.config.json b/samples/charts/data-chart/series-markers/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/series-markers/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/series-markers/src/app/SharedData.ts b/samples/charts/data-chart/series-markers/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/series-markers/src/app/SharedData.ts rename to samples/charts/data-chart/series-markers/src/SharedData.ts diff --git a/samples/charts/data-chart/series-markers/src/app/app.component.html b/samples/charts/data-chart/series-markers/src/app.component.html similarity index 100% rename from samples/charts/data-chart/series-markers/src/app/app.component.html rename to samples/charts/data-chart/series-markers/src/app.component.html diff --git a/samples/charts/data-chart/type-category-area-series/src/app/app.component.scss b/samples/charts/data-chart/series-markers/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-category-area-series/src/app/app.component.scss rename to samples/charts/data-chart/series-markers/src/app.component.scss diff --git a/samples/charts/data-chart/series-markers/src/app/app.component.ts b/samples/charts/data-chart/series-markers/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/series-markers/src/app/app.component.ts rename to samples/charts/data-chart/series-markers/src/app.component.ts diff --git a/samples/charts/data-chart/series-markers/src/app/app.module.ts b/samples/charts/data-chart/series-markers/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/series-markers/src/app/app.module.ts rename to samples/charts/data-chart/series-markers/src/app.module.ts diff --git a/samples/charts/data-chart/series-markers/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/series-markers/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/series-markers/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/series-markers/src/config/tsconfig.app.json b/samples/charts/data-chart/series-markers/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/series-markers/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/series-markers/src/config/tsconfig.base.json b/samples/charts/data-chart/series-markers/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/series-markers/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/series-markers/src/config/tsconfig.spec.json b/samples/charts/data-chart/series-markers/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/series-markers/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/series-markers/src/config/tsconfig.worker.json b/samples/charts/data-chart/series-markers/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/series-markers/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/series-markers/src/main.ts b/samples/charts/data-chart/series-markers/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/series-markers/src/main.ts +++ b/samples/charts/data-chart/series-markers/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/series-markers/tsconfig.app.json b/samples/charts/data-chart/series-markers/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/series-markers/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/data-chart/series-markers/tsconfig.json b/samples/charts/data-chart/series-markers/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/series-markers/tsconfig.json +++ b/samples/charts/data-chart/series-markers/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/series-tooltips/.codesandbox/Dockerfile b/samples/charts/data-chart/series-tooltips/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/series-tooltips/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/series-tooltips/.codesandbox/tasks.json b/samples/charts/data-chart/series-tooltips/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/series-tooltips/.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/data-chart/series-tooltips/.stackblitzrc b/samples/charts/data-chart/series-tooltips/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/series-tooltips/.stackblitzrc +++ b/samples/charts/data-chart/series-tooltips/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/series-tooltips/angular.json b/samples/charts/data-chart/series-tooltips/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/series-tooltips/angular.json +++ b/samples/charts/data-chart/series-tooltips/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/series-tooltips/package.json b/samples/charts/data-chart/series-tooltips/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/series-tooltips/package.json +++ b/samples/charts/data-chart/series-tooltips/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/series-tooltips/sandbox.config.json b/samples/charts/data-chart/series-tooltips/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/series-tooltips/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/series-tooltips/src/app/SharedData.ts b/samples/charts/data-chart/series-tooltips/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/series-tooltips/src/app/SharedData.ts rename to samples/charts/data-chart/series-tooltips/src/SharedData.ts diff --git a/samples/charts/data-chart/series-tooltips/src/app/app.component.html b/samples/charts/data-chart/series-tooltips/src/app.component.html similarity index 100% rename from samples/charts/data-chart/series-tooltips/src/app/app.component.html rename to samples/charts/data-chart/series-tooltips/src/app.component.html diff --git a/samples/charts/data-chart/type-category-bar-series/src/app/app.component.scss b/samples/charts/data-chart/series-tooltips/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-category-bar-series/src/app/app.component.scss rename to samples/charts/data-chart/series-tooltips/src/app.component.scss diff --git a/samples/charts/data-chart/series-tooltips/src/app/app.component.ts b/samples/charts/data-chart/series-tooltips/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/series-tooltips/src/app/app.component.ts rename to samples/charts/data-chart/series-tooltips/src/app.component.ts diff --git a/samples/charts/data-chart/series-tooltips/src/app/app.module.ts b/samples/charts/data-chart/series-tooltips/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/series-tooltips/src/app/app.module.ts rename to samples/charts/data-chart/series-tooltips/src/app.module.ts diff --git a/samples/charts/data-chart/series-tooltips/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/series-tooltips/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/series-tooltips/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/series-tooltips/src/config/tsconfig.app.json b/samples/charts/data-chart/series-tooltips/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/series-tooltips/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/series-tooltips/src/config/tsconfig.base.json b/samples/charts/data-chart/series-tooltips/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/series-tooltips/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/series-tooltips/src/config/tsconfig.spec.json b/samples/charts/data-chart/series-tooltips/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/series-tooltips/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/series-tooltips/src/config/tsconfig.worker.json b/samples/charts/data-chart/series-tooltips/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/series-tooltips/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/series-tooltips/src/main.ts b/samples/charts/data-chart/series-tooltips/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/series-tooltips/src/main.ts +++ b/samples/charts/data-chart/series-tooltips/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/series-tooltips/tsconfig.app.json b/samples/charts/data-chart/series-tooltips/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/series-tooltips/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/data-chart/series-tooltips/tsconfig.json b/samples/charts/data-chart/series-tooltips/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/series-tooltips/tsconfig.json +++ b/samples/charts/data-chart/series-tooltips/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/series-trendlines/.codesandbox/Dockerfile b/samples/charts/data-chart/series-trendlines/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/series-trendlines/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/series-trendlines/.codesandbox/tasks.json b/samples/charts/data-chart/series-trendlines/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/series-trendlines/.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/data-chart/series-trendlines/.stackblitzrc b/samples/charts/data-chart/series-trendlines/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/series-trendlines/.stackblitzrc +++ b/samples/charts/data-chart/series-trendlines/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/series-trendlines/angular.json b/samples/charts/data-chart/series-trendlines/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/series-trendlines/angular.json +++ b/samples/charts/data-chart/series-trendlines/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/series-trendlines/package.json b/samples/charts/data-chart/series-trendlines/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/series-trendlines/package.json +++ b/samples/charts/data-chart/series-trendlines/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/series-trendlines/sandbox.config.json b/samples/charts/data-chart/series-trendlines/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/series-trendlines/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/series-trendlines/src/app/SampleFinancialData.ts b/samples/charts/data-chart/series-trendlines/src/SampleFinancialData.ts similarity index 100% rename from samples/charts/data-chart/series-trendlines/src/app/SampleFinancialData.ts rename to samples/charts/data-chart/series-trendlines/src/SampleFinancialData.ts diff --git a/samples/charts/data-chart/series-trendlines/src/app/app.component.html b/samples/charts/data-chart/series-trendlines/src/app.component.html similarity index 100% rename from samples/charts/data-chart/series-trendlines/src/app/app.component.html rename to samples/charts/data-chart/series-trendlines/src/app.component.html diff --git a/samples/charts/data-chart/type-category-column-series/src/app/app.component.scss b/samples/charts/data-chart/series-trendlines/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-category-column-series/src/app/app.component.scss rename to samples/charts/data-chart/series-trendlines/src/app.component.scss diff --git a/samples/charts/data-chart/series-trendlines/src/app/app.component.ts b/samples/charts/data-chart/series-trendlines/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/series-trendlines/src/app/app.component.ts rename to samples/charts/data-chart/series-trendlines/src/app.component.ts diff --git a/samples/charts/data-chart/series-trendlines/src/app/app.module.ts b/samples/charts/data-chart/series-trendlines/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/series-trendlines/src/app/app.module.ts rename to samples/charts/data-chart/series-trendlines/src/app.module.ts diff --git a/samples/charts/data-chart/series-trendlines/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/series-trendlines/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/series-trendlines/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/series-trendlines/src/config/tsconfig.app.json b/samples/charts/data-chart/series-trendlines/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/series-trendlines/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/series-trendlines/src/config/tsconfig.base.json b/samples/charts/data-chart/series-trendlines/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/series-trendlines/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/series-trendlines/src/config/tsconfig.spec.json b/samples/charts/data-chart/series-trendlines/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/series-trendlines/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/series-trendlines/src/config/tsconfig.worker.json b/samples/charts/data-chart/series-trendlines/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/series-trendlines/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/series-trendlines/src/main.ts b/samples/charts/data-chart/series-trendlines/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/series-trendlines/src/main.ts +++ b/samples/charts/data-chart/series-trendlines/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/series-trendlines/tsconfig.app.json b/samples/charts/data-chart/series-trendlines/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/series-trendlines/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/data-chart/series-trendlines/tsconfig.json b/samples/charts/data-chart/series-trendlines/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/series-trendlines/tsconfig.json +++ b/samples/charts/data-chart/series-trendlines/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/series-value-overlay/.codesandbox/Dockerfile b/samples/charts/data-chart/series-value-overlay/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/series-value-overlay/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/series-value-overlay/.codesandbox/tasks.json b/samples/charts/data-chart/series-value-overlay/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/series-value-overlay/.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/data-chart/series-value-overlay/.stackblitzrc b/samples/charts/data-chart/series-value-overlay/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/series-value-overlay/.stackblitzrc +++ b/samples/charts/data-chart/series-value-overlay/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/series-value-overlay/angular.json b/samples/charts/data-chart/series-value-overlay/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/series-value-overlay/angular.json +++ b/samples/charts/data-chart/series-value-overlay/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/series-value-overlay/package.json b/samples/charts/data-chart/series-value-overlay/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/series-value-overlay/package.json +++ b/samples/charts/data-chart/series-value-overlay/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/series-value-overlay/sandbox.config.json b/samples/charts/data-chart/series-value-overlay/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/series-value-overlay/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/series-value-overlay/src/app/SharedData.ts b/samples/charts/data-chart/series-value-overlay/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/series-value-overlay/src/app/SharedData.ts rename to samples/charts/data-chart/series-value-overlay/src/SharedData.ts diff --git a/samples/charts/data-chart/series-value-overlay/src/app/app.component.html b/samples/charts/data-chart/series-value-overlay/src/app.component.html similarity index 100% rename from samples/charts/data-chart/series-value-overlay/src/app/app.component.html rename to samples/charts/data-chart/series-value-overlay/src/app.component.html diff --git a/samples/charts/data-chart/type-category-line-series/src/app/app.component.scss b/samples/charts/data-chart/series-value-overlay/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-category-line-series/src/app/app.component.scss rename to samples/charts/data-chart/series-value-overlay/src/app.component.scss diff --git a/samples/charts/data-chart/series-value-overlay/src/app/app.component.ts b/samples/charts/data-chart/series-value-overlay/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/series-value-overlay/src/app/app.component.ts rename to samples/charts/data-chart/series-value-overlay/src/app.component.ts diff --git a/samples/charts/data-chart/series-value-overlay/src/app/app.module.ts b/samples/charts/data-chart/series-value-overlay/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/series-value-overlay/src/app/app.module.ts rename to samples/charts/data-chart/series-value-overlay/src/app.module.ts diff --git a/samples/charts/data-chart/series-value-overlay/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/series-value-overlay/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/series-value-overlay/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.app.json b/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.base.json b/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.spec.json b/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.worker.json b/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/series-value-overlay/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/series-value-overlay/src/main.ts b/samples/charts/data-chart/series-value-overlay/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/series-value-overlay/src/main.ts +++ b/samples/charts/data-chart/series-value-overlay/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/series-value-overlay/tsconfig.app.json b/samples/charts/data-chart/series-value-overlay/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/series-value-overlay/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/data-chart/series-value-overlay/tsconfig.json b/samples/charts/data-chart/series-value-overlay/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/series-value-overlay/tsconfig.json +++ b/samples/charts/data-chart/series-value-overlay/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/stacked-100-area-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/stacked-100-area-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/stacked-100-area-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-area-chart/.codesandbox/tasks.json b/samples/charts/data-chart/stacked-100-area-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/stacked-100-area-chart/.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/data-chart/stacked-100-area-chart/.stackblitzrc b/samples/charts/data-chart/stacked-100-area-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/stacked-100-area-chart/.stackblitzrc +++ b/samples/charts/data-chart/stacked-100-area-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-area-chart/angular.json b/samples/charts/data-chart/stacked-100-area-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/stacked-100-area-chart/angular.json +++ b/samples/charts/data-chart/stacked-100-area-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/stacked-100-area-chart/package.json b/samples/charts/data-chart/stacked-100-area-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/stacked-100-area-chart/package.json +++ b/samples/charts/data-chart/stacked-100-area-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/stacked-100-area-chart/sandbox.config.json b/samples/charts/data-chart/stacked-100-area-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/stacked-100-area-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/stacked-100-area-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-area-chart/tsconfig.app.json b/samples/charts/data-chart/stacked-100-area-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/stacked-100-area-chart/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/data-chart/stacked-100-area-chart/tsconfig.json b/samples/charts/data-chart/stacked-100-area-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/stacked-100-area-chart/tsconfig.json +++ b/samples/charts/data-chart/stacked-100-area-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/stacked-100-bar-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/stacked-100-bar-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/stacked-100-bar-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-bar-chart/.codesandbox/tasks.json b/samples/charts/data-chart/stacked-100-bar-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/stacked-100-bar-chart/.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/data-chart/stacked-100-bar-chart/.stackblitzrc b/samples/charts/data-chart/stacked-100-bar-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/stacked-100-bar-chart/.stackblitzrc +++ b/samples/charts/data-chart/stacked-100-bar-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-bar-chart/angular.json b/samples/charts/data-chart/stacked-100-bar-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/stacked-100-bar-chart/angular.json +++ b/samples/charts/data-chart/stacked-100-bar-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/stacked-100-bar-chart/package.json b/samples/charts/data-chart/stacked-100-bar-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/stacked-100-bar-chart/package.json +++ b/samples/charts/data-chart/stacked-100-bar-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/stacked-100-bar-chart/sandbox.config.json b/samples/charts/data-chart/stacked-100-bar-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/stacked-100-bar-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/stacked-100-bar-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-bar-chart/tsconfig.app.json b/samples/charts/data-chart/stacked-100-bar-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/stacked-100-bar-chart/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/data-chart/stacked-100-bar-chart/tsconfig.json b/samples/charts/data-chart/stacked-100-bar-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/stacked-100-bar-chart/tsconfig.json +++ b/samples/charts/data-chart/stacked-100-bar-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/stacked-100-column-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/stacked-100-column-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/stacked-100-column-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-column-chart/.codesandbox/tasks.json b/samples/charts/data-chart/stacked-100-column-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/stacked-100-column-chart/.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/data-chart/stacked-100-column-chart/.stackblitzrc b/samples/charts/data-chart/stacked-100-column-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/stacked-100-column-chart/.stackblitzrc +++ b/samples/charts/data-chart/stacked-100-column-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-column-chart/angular.json b/samples/charts/data-chart/stacked-100-column-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/stacked-100-column-chart/angular.json +++ b/samples/charts/data-chart/stacked-100-column-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/stacked-100-column-chart/package.json b/samples/charts/data-chart/stacked-100-column-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/stacked-100-column-chart/package.json +++ b/samples/charts/data-chart/stacked-100-column-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/stacked-100-column-chart/sandbox.config.json b/samples/charts/data-chart/stacked-100-column-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/stacked-100-column-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/stacked-100-column-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-column-chart/tsconfig.app.json b/samples/charts/data-chart/stacked-100-column-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/stacked-100-column-chart/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/data-chart/stacked-100-column-chart/tsconfig.json b/samples/charts/data-chart/stacked-100-column-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/stacked-100-column-chart/tsconfig.json +++ b/samples/charts/data-chart/stacked-100-column-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/stacked-100-line-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/stacked-100-line-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/stacked-100-line-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-line-chart/.codesandbox/tasks.json b/samples/charts/data-chart/stacked-100-line-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/stacked-100-line-chart/.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/data-chart/stacked-100-line-chart/.stackblitzrc b/samples/charts/data-chart/stacked-100-line-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/stacked-100-line-chart/.stackblitzrc +++ b/samples/charts/data-chart/stacked-100-line-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-line-chart/angular.json b/samples/charts/data-chart/stacked-100-line-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/stacked-100-line-chart/angular.json +++ b/samples/charts/data-chart/stacked-100-line-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/stacked-100-line-chart/package.json b/samples/charts/data-chart/stacked-100-line-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/stacked-100-line-chart/package.json +++ b/samples/charts/data-chart/stacked-100-line-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/stacked-100-line-chart/sandbox.config.json b/samples/charts/data-chart/stacked-100-line-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/stacked-100-line-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/stacked-100-line-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-line-chart/tsconfig.app.json b/samples/charts/data-chart/stacked-100-line-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/stacked-100-line-chart/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/data-chart/stacked-100-line-chart/tsconfig.json b/samples/charts/data-chart/stacked-100-line-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/stacked-100-line-chart/tsconfig.json +++ b/samples/charts/data-chart/stacked-100-line-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/stacked-100-spline-area-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/stacked-100-spline-area-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/stacked-100-spline-area-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-spline-area-chart/.codesandbox/tasks.json b/samples/charts/data-chart/stacked-100-spline-area-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/stacked-100-spline-area-chart/.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/data-chart/stacked-100-spline-area-chart/.stackblitzrc b/samples/charts/data-chart/stacked-100-spline-area-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/stacked-100-spline-area-chart/.stackblitzrc +++ b/samples/charts/data-chart/stacked-100-spline-area-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-spline-area-chart/angular.json b/samples/charts/data-chart/stacked-100-spline-area-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/stacked-100-spline-area-chart/angular.json +++ b/samples/charts/data-chart/stacked-100-spline-area-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/stacked-100-spline-area-chart/package.json b/samples/charts/data-chart/stacked-100-spline-area-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/stacked-100-spline-area-chart/package.json +++ b/samples/charts/data-chart/stacked-100-spline-area-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/stacked-100-spline-area-chart/sandbox.config.json b/samples/charts/data-chart/stacked-100-spline-area-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/stacked-100-spline-area-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/stacked-100-spline-area-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-spline-area-chart/tsconfig.app.json b/samples/charts/data-chart/stacked-100-spline-area-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/stacked-100-spline-area-chart/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/data-chart/stacked-100-spline-area-chart/tsconfig.json b/samples/charts/data-chart/stacked-100-spline-area-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/stacked-100-spline-area-chart/tsconfig.json +++ b/samples/charts/data-chart/stacked-100-spline-area-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/stacked-100-spline-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/stacked-100-spline-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/stacked-100-spline-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-spline-chart/.codesandbox/tasks.json b/samples/charts/data-chart/stacked-100-spline-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/stacked-100-spline-chart/.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/data-chart/stacked-100-spline-chart/.stackblitzrc b/samples/charts/data-chart/stacked-100-spline-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/stacked-100-spline-chart/.stackblitzrc +++ b/samples/charts/data-chart/stacked-100-spline-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-spline-chart/angular.json b/samples/charts/data-chart/stacked-100-spline-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/stacked-100-spline-chart/angular.json +++ b/samples/charts/data-chart/stacked-100-spline-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/stacked-100-spline-chart/package.json b/samples/charts/data-chart/stacked-100-spline-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/stacked-100-spline-chart/package.json +++ b/samples/charts/data-chart/stacked-100-spline-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/stacked-100-spline-chart/sandbox.config.json b/samples/charts/data-chart/stacked-100-spline-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/stacked-100-spline-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/stacked-100-spline-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-100-spline-chart/tsconfig.app.json b/samples/charts/data-chart/stacked-100-spline-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/stacked-100-spline-chart/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/data-chart/stacked-100-spline-chart/tsconfig.json b/samples/charts/data-chart/stacked-100-spline-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/stacked-100-spline-chart/tsconfig.json +++ b/samples/charts/data-chart/stacked-100-spline-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/stacked-area-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/stacked-area-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/stacked-area-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-area-chart/.codesandbox/tasks.json b/samples/charts/data-chart/stacked-area-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/stacked-area-chart/.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/data-chart/stacked-area-chart/.stackblitzrc b/samples/charts/data-chart/stacked-area-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/stacked-area-chart/.stackblitzrc +++ b/samples/charts/data-chart/stacked-area-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-area-chart/angular.json b/samples/charts/data-chart/stacked-area-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/stacked-area-chart/angular.json +++ b/samples/charts/data-chart/stacked-area-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/stacked-area-chart/package.json b/samples/charts/data-chart/stacked-area-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/stacked-area-chart/package.json +++ b/samples/charts/data-chart/stacked-area-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/stacked-area-chart/sandbox.config.json b/samples/charts/data-chart/stacked-area-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/stacked-area-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/stacked-area-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-area-chart/tsconfig.app.json b/samples/charts/data-chart/stacked-area-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/stacked-area-chart/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/data-chart/stacked-area-chart/tsconfig.json b/samples/charts/data-chart/stacked-area-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/stacked-area-chart/tsconfig.json +++ b/samples/charts/data-chart/stacked-area-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/stacked-bar-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/stacked-bar-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/stacked-bar-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-bar-chart/.codesandbox/tasks.json b/samples/charts/data-chart/stacked-bar-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/stacked-bar-chart/.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/data-chart/stacked-bar-chart/.stackblitzrc b/samples/charts/data-chart/stacked-bar-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/stacked-bar-chart/.stackblitzrc +++ b/samples/charts/data-chart/stacked-bar-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-bar-chart/angular.json b/samples/charts/data-chart/stacked-bar-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/stacked-bar-chart/angular.json +++ b/samples/charts/data-chart/stacked-bar-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/stacked-bar-chart/package.json b/samples/charts/data-chart/stacked-bar-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/stacked-bar-chart/package.json +++ b/samples/charts/data-chart/stacked-bar-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/stacked-bar-chart/sandbox.config.json b/samples/charts/data-chart/stacked-bar-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/stacked-bar-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/stacked-bar-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-bar-chart/tsconfig.app.json b/samples/charts/data-chart/stacked-bar-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/stacked-bar-chart/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/data-chart/stacked-bar-chart/tsconfig.json b/samples/charts/data-chart/stacked-bar-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/stacked-bar-chart/tsconfig.json +++ b/samples/charts/data-chart/stacked-bar-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/stacked-chart-types/.codesandbox/Dockerfile b/samples/charts/data-chart/stacked-chart-types/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/stacked-chart-types/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-chart-types/.codesandbox/tasks.json b/samples/charts/data-chart/stacked-chart-types/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/stacked-chart-types/.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/data-chart/stacked-chart-types/.stackblitzrc b/samples/charts/data-chart/stacked-chart-types/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/stacked-chart-types/.stackblitzrc +++ b/samples/charts/data-chart/stacked-chart-types/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-chart-types/angular.json b/samples/charts/data-chart/stacked-chart-types/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/stacked-chart-types/angular.json +++ b/samples/charts/data-chart/stacked-chart-types/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/stacked-chart-types/package.json b/samples/charts/data-chart/stacked-chart-types/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/stacked-chart-types/package.json +++ b/samples/charts/data-chart/stacked-chart-types/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/stacked-chart-types/sandbox.config.json b/samples/charts/data-chart/stacked-chart-types/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/stacked-chart-types/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-chart-types/src/app/SharedData.ts b/samples/charts/data-chart/stacked-chart-types/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/stacked-chart-types/src/app/SharedData.ts rename to samples/charts/data-chart/stacked-chart-types/src/SharedData.ts diff --git a/samples/charts/data-chart/stacked-chart-types/src/app/app.component.html b/samples/charts/data-chart/stacked-chart-types/src/app.component.html similarity index 100% rename from samples/charts/data-chart/stacked-chart-types/src/app/app.component.html rename to samples/charts/data-chart/stacked-chart-types/src/app.component.html diff --git a/samples/charts/data-chart/type-category-point-series/src/app/app.component.scss b/samples/charts/data-chart/stacked-chart-types/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-category-point-series/src/app/app.component.scss rename to samples/charts/data-chart/stacked-chart-types/src/app.component.scss diff --git a/samples/charts/data-chart/stacked-chart-types/src/app/app.component.ts b/samples/charts/data-chart/stacked-chart-types/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/stacked-chart-types/src/app/app.component.ts rename to samples/charts/data-chart/stacked-chart-types/src/app.component.ts diff --git a/samples/charts/data-chart/stacked-chart-types/src/app/app.module.ts b/samples/charts/data-chart/stacked-chart-types/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/stacked-chart-types/src/app/app.module.ts rename to samples/charts/data-chart/stacked-chart-types/src/app.module.ts diff --git a/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.app.json b/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.base.json b/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.spec.json b/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.worker.json b/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/stacked-chart-types/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/stacked-chart-types/src/main.ts b/samples/charts/data-chart/stacked-chart-types/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/stacked-chart-types/src/main.ts +++ b/samples/charts/data-chart/stacked-chart-types/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/stacked-chart-types/tsconfig.app.json b/samples/charts/data-chart/stacked-chart-types/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/stacked-chart-types/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/data-chart/stacked-chart-types/tsconfig.json b/samples/charts/data-chart/stacked-chart-types/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/stacked-chart-types/tsconfig.json +++ b/samples/charts/data-chart/stacked-chart-types/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/stacked-column-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/stacked-column-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/stacked-column-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-column-chart/.codesandbox/tasks.json b/samples/charts/data-chart/stacked-column-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/stacked-column-chart/.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/data-chart/stacked-column-chart/.stackblitzrc b/samples/charts/data-chart/stacked-column-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/stacked-column-chart/.stackblitzrc +++ b/samples/charts/data-chart/stacked-column-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-column-chart/angular.json b/samples/charts/data-chart/stacked-column-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/stacked-column-chart/angular.json +++ b/samples/charts/data-chart/stacked-column-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/stacked-column-chart/package.json b/samples/charts/data-chart/stacked-column-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/stacked-column-chart/package.json +++ b/samples/charts/data-chart/stacked-column-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/stacked-column-chart/sandbox.config.json b/samples/charts/data-chart/stacked-column-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/stacked-column-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/stacked-column-chart/src/app.component.html b/samples/charts/data-chart/stacked-column-chart/src/app.component.html index a977585f0..480da2e17 100644 --- a/samples/charts/data-chart/stacked-column-chart/src/app.component.html +++ b/samples/charts/data-chart/stacked-column-chart/src/app.component.html @@ -1,6 +1,6 @@
- Electricity Production from Renewables + Annual Birth Rates by World Region
{ // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/tooltip-template/tsconfig.app.json b/samples/charts/data-chart/tooltip-template/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/tooltip-template/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/data-chart/tooltip-template/tsconfig.json b/samples/charts/data-chart/tooltip-template/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/tooltip-template/tsconfig.json +++ b/samples/charts/data-chart/tooltip-template/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/transition-event/.codesandbox/Dockerfile b/samples/charts/data-chart/transition-event/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/transition-event/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/transition-event/.codesandbox/tasks.json b/samples/charts/data-chart/transition-event/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/transition-event/.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/data-chart/transition-event/.stackblitzrc b/samples/charts/data-chart/transition-event/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/transition-event/.stackblitzrc +++ b/samples/charts/data-chart/transition-event/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/transition-event/angular.json b/samples/charts/data-chart/transition-event/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/transition-event/angular.json +++ b/samples/charts/data-chart/transition-event/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/transition-event/package.json b/samples/charts/data-chart/transition-event/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/data-chart/transition-event/package.json +++ b/samples/charts/data-chart/transition-event/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/transition-event/sandbox.config.json b/samples/charts/data-chart/transition-event/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/transition-event/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/transition-event/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/transition-event/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/transition-event/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/transition-event/src/config/tsconfig.app.json b/samples/charts/data-chart/transition-event/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/transition-event/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/transition-event/src/config/tsconfig.base.json b/samples/charts/data-chart/transition-event/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/transition-event/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/transition-event/src/config/tsconfig.spec.json b/samples/charts/data-chart/transition-event/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/transition-event/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/transition-event/src/config/tsconfig.worker.json b/samples/charts/data-chart/transition-event/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/transition-event/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/transition-event/tsconfig.app.json b/samples/charts/data-chart/transition-event/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/transition-event/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/data-chart/transition-event/tsconfig.json b/samples/charts/data-chart/transition-event/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/transition-event/tsconfig.json +++ b/samples/charts/data-chart/transition-event/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-category-area-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-category-area-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-category-area-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-area-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-category-area-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-category-area-series/.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/data-chart/type-category-area-series/.stackblitzrc b/samples/charts/data-chart/type-category-area-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-category-area-series/.stackblitzrc +++ b/samples/charts/data-chart/type-category-area-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-area-series/angular.json b/samples/charts/data-chart/type-category-area-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-category-area-series/angular.json +++ b/samples/charts/data-chart/type-category-area-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-category-area-series/package.json b/samples/charts/data-chart/type-category-area-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-category-area-series/package.json +++ b/samples/charts/data-chart/type-category-area-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-category-area-series/sandbox.config.json b/samples/charts/data-chart/type-category-area-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-category-area-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-area-series/src/app/SampleCategoryData.ts b/samples/charts/data-chart/type-category-area-series/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/type-category-area-series/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/type-category-area-series/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/type-category-area-series/src/app/app.component.html b/samples/charts/data-chart/type-category-area-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-category-area-series/src/app/app.component.html rename to samples/charts/data-chart/type-category-area-series/src/app.component.html diff --git a/samples/charts/data-chart/type-category-spline-area-series/src/app/app.component.scss b/samples/charts/data-chart/type-category-area-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-category-spline-area-series/src/app/app.component.scss rename to samples/charts/data-chart/type-category-area-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-category-area-series/src/app/app.component.ts b/samples/charts/data-chart/type-category-area-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-category-area-series/src/app/app.component.ts rename to samples/charts/data-chart/type-category-area-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-category-area-series/src/app/app.module.ts b/samples/charts/data-chart/type-category-area-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-category-area-series/src/app/app.module.ts rename to samples/charts/data-chart/type-category-area-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-category-area-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-category-area-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-category-area-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-category-area-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-area-series/src/main.ts b/samples/charts/data-chart/type-category-area-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-category-area-series/src/main.ts +++ b/samples/charts/data-chart/type-category-area-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-category-area-series/tsconfig.app.json b/samples/charts/data-chart/type-category-area-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-category-area-series/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/data-chart/type-category-area-series/tsconfig.json b/samples/charts/data-chart/type-category-area-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-category-area-series/tsconfig.json +++ b/samples/charts/data-chart/type-category-area-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-category-bar-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-category-bar-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-category-bar-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-bar-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-category-bar-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-category-bar-series/.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/data-chart/type-category-bar-series/.stackblitzrc b/samples/charts/data-chart/type-category-bar-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-category-bar-series/.stackblitzrc +++ b/samples/charts/data-chart/type-category-bar-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-bar-series/angular.json b/samples/charts/data-chart/type-category-bar-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-category-bar-series/angular.json +++ b/samples/charts/data-chart/type-category-bar-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-category-bar-series/package.json b/samples/charts/data-chart/type-category-bar-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-category-bar-series/package.json +++ b/samples/charts/data-chart/type-category-bar-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-category-bar-series/sandbox.config.json b/samples/charts/data-chart/type-category-bar-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-category-bar-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-bar-series/src/app/SampleCategoryData.ts b/samples/charts/data-chart/type-category-bar-series/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/type-category-bar-series/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/type-category-bar-series/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/type-category-bar-series/src/app/app.component.html b/samples/charts/data-chart/type-category-bar-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-category-bar-series/src/app/app.component.html rename to samples/charts/data-chart/type-category-bar-series/src/app.component.html diff --git a/samples/charts/data-chart/type-category-spline-series/src/app/app.component.scss b/samples/charts/data-chart/type-category-bar-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-category-spline-series/src/app/app.component.scss rename to samples/charts/data-chart/type-category-bar-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-category-bar-series/src/app/app.component.ts b/samples/charts/data-chart/type-category-bar-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-category-bar-series/src/app/app.component.ts rename to samples/charts/data-chart/type-category-bar-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-category-bar-series/src/app/app.module.ts b/samples/charts/data-chart/type-category-bar-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-category-bar-series/src/app/app.module.ts rename to samples/charts/data-chart/type-category-bar-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-category-bar-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-bar-series/src/main.ts b/samples/charts/data-chart/type-category-bar-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-category-bar-series/src/main.ts +++ b/samples/charts/data-chart/type-category-bar-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-category-bar-series/tsconfig.app.json b/samples/charts/data-chart/type-category-bar-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-category-bar-series/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/data-chart/type-category-bar-series/tsconfig.json b/samples/charts/data-chart/type-category-bar-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-category-bar-series/tsconfig.json +++ b/samples/charts/data-chart/type-category-bar-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-category-column-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-category-column-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-category-column-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-column-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-category-column-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-category-column-series/.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/data-chart/type-category-column-series/.stackblitzrc b/samples/charts/data-chart/type-category-column-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-category-column-series/.stackblitzrc +++ b/samples/charts/data-chart/type-category-column-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-column-series/angular.json b/samples/charts/data-chart/type-category-column-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-category-column-series/angular.json +++ b/samples/charts/data-chart/type-category-column-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-category-column-series/package.json b/samples/charts/data-chart/type-category-column-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-category-column-series/package.json +++ b/samples/charts/data-chart/type-category-column-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-category-column-series/sandbox.config.json b/samples/charts/data-chart/type-category-column-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-category-column-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-column-series/src/app/SampleCategoryData.ts b/samples/charts/data-chart/type-category-column-series/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/type-category-column-series/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/type-category-column-series/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/type-category-column-series/src/app/app.component.html b/samples/charts/data-chart/type-category-column-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-category-column-series/src/app/app.component.html rename to samples/charts/data-chart/type-category-column-series/src/app.component.html diff --git a/samples/charts/data-chart/type-category-step-area-series/src/app/app.component.scss b/samples/charts/data-chart/type-category-column-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-category-step-area-series/src/app/app.component.scss rename to samples/charts/data-chart/type-category-column-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-category-column-series/src/app/app.component.ts b/samples/charts/data-chart/type-category-column-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-category-column-series/src/app/app.component.ts rename to samples/charts/data-chart/type-category-column-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-category-column-series/src/app/app.module.ts b/samples/charts/data-chart/type-category-column-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-category-column-series/src/app/app.module.ts rename to samples/charts/data-chart/type-category-column-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-category-column-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-category-column-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-category-column-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-category-column-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-column-series/src/main.ts b/samples/charts/data-chart/type-category-column-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-category-column-series/src/main.ts +++ b/samples/charts/data-chart/type-category-column-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-category-column-series/tsconfig.app.json b/samples/charts/data-chart/type-category-column-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-category-column-series/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/data-chart/type-category-column-series/tsconfig.json b/samples/charts/data-chart/type-category-column-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-category-column-series/tsconfig.json +++ b/samples/charts/data-chart/type-category-column-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-category-line-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-category-line-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-category-line-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-line-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-category-line-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-category-line-series/.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/data-chart/type-category-line-series/.stackblitzrc b/samples/charts/data-chart/type-category-line-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-category-line-series/.stackblitzrc +++ b/samples/charts/data-chart/type-category-line-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-line-series/angular.json b/samples/charts/data-chart/type-category-line-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-category-line-series/angular.json +++ b/samples/charts/data-chart/type-category-line-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-category-line-series/package.json b/samples/charts/data-chart/type-category-line-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-category-line-series/package.json +++ b/samples/charts/data-chart/type-category-line-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-category-line-series/sandbox.config.json b/samples/charts/data-chart/type-category-line-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-category-line-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-line-series/src/app/SampleCategoryData.ts b/samples/charts/data-chart/type-category-line-series/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/type-category-line-series/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/type-category-line-series/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/type-category-line-series/src/app/app.component.html b/samples/charts/data-chart/type-category-line-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-category-line-series/src/app/app.component.html rename to samples/charts/data-chart/type-category-line-series/src/app.component.html diff --git a/samples/charts/data-chart/type-category-step-line-series/src/app/app.component.scss b/samples/charts/data-chart/type-category-line-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-category-step-line-series/src/app/app.component.scss rename to samples/charts/data-chart/type-category-line-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-category-line-series/src/app/app.component.ts b/samples/charts/data-chart/type-category-line-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-category-line-series/src/app/app.component.ts rename to samples/charts/data-chart/type-category-line-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-category-line-series/src/app/app.module.ts b/samples/charts/data-chart/type-category-line-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-category-line-series/src/app/app.module.ts rename to samples/charts/data-chart/type-category-line-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-category-line-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-category-line-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-category-line-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-category-line-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-line-series/src/main.ts b/samples/charts/data-chart/type-category-line-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-category-line-series/src/main.ts +++ b/samples/charts/data-chart/type-category-line-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-category-line-series/tsconfig.app.json b/samples/charts/data-chart/type-category-line-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-category-line-series/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/data-chart/type-category-line-series/tsconfig.json b/samples/charts/data-chart/type-category-line-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-category-line-series/tsconfig.json +++ b/samples/charts/data-chart/type-category-line-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-category-point-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-category-point-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-category-point-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-point-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-category-point-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-category-point-series/.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/data-chart/type-category-point-series/.stackblitzrc b/samples/charts/data-chart/type-category-point-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-category-point-series/.stackblitzrc +++ b/samples/charts/data-chart/type-category-point-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-point-series/angular.json b/samples/charts/data-chart/type-category-point-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-category-point-series/angular.json +++ b/samples/charts/data-chart/type-category-point-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-category-point-series/package.json b/samples/charts/data-chart/type-category-point-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-category-point-series/package.json +++ b/samples/charts/data-chart/type-category-point-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-category-point-series/sandbox.config.json b/samples/charts/data-chart/type-category-point-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-category-point-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-point-series/src/app/SampleCategoryData.ts b/samples/charts/data-chart/type-category-point-series/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/type-category-point-series/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/type-category-point-series/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/type-category-point-series/src/app/app.component.html b/samples/charts/data-chart/type-category-point-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-category-point-series/src/app/app.component.html rename to samples/charts/data-chart/type-category-point-series/src/app.component.html diff --git a/samples/charts/data-chart/type-category-waterfall-series/src/app/app.component.scss b/samples/charts/data-chart/type-category-point-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-category-waterfall-series/src/app/app.component.scss rename to samples/charts/data-chart/type-category-point-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-category-point-series/src/app/app.component.ts b/samples/charts/data-chart/type-category-point-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-category-point-series/src/app/app.component.ts rename to samples/charts/data-chart/type-category-point-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-category-point-series/src/app/app.module.ts b/samples/charts/data-chart/type-category-point-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-category-point-series/src/app/app.module.ts rename to samples/charts/data-chart/type-category-point-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-category-point-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-category-point-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-category-point-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-category-point-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-point-series/src/main.ts b/samples/charts/data-chart/type-category-point-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-category-point-series/src/main.ts +++ b/samples/charts/data-chart/type-category-point-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-category-point-series/tsconfig.app.json b/samples/charts/data-chart/type-category-point-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-category-point-series/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/data-chart/type-category-point-series/tsconfig.json b/samples/charts/data-chart/type-category-point-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-category-point-series/tsconfig.json +++ b/samples/charts/data-chart/type-category-point-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-category-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-category-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-category-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-category-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-category-series/.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/data-chart/type-category-series/.stackblitzrc b/samples/charts/data-chart/type-category-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-category-series/.stackblitzrc +++ b/samples/charts/data-chart/type-category-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-series/angular.json b/samples/charts/data-chart/type-category-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-category-series/angular.json +++ b/samples/charts/data-chart/type-category-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-category-series/package.json b/samples/charts/data-chart/type-category-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-category-series/package.json +++ b/samples/charts/data-chart/type-category-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-category-series/sandbox.config.json b/samples/charts/data-chart/type-category-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-category-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-series/src/app/SampleCategoryData.ts b/samples/charts/data-chart/type-category-series/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/type-category-series/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/type-category-series/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/type-category-series/src/app/app.component.html b/samples/charts/data-chart/type-category-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-category-series/src/app/app.component.html rename to samples/charts/data-chart/type-category-series/src/app.component.html diff --git a/samples/charts/data-chart/type-financial-area-indicators/src/app/app.component.scss b/samples/charts/data-chart/type-category-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-financial-area-indicators/src/app/app.component.scss rename to samples/charts/data-chart/type-category-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-category-series/src/app/app.component.ts b/samples/charts/data-chart/type-category-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-category-series/src/app/app.component.ts rename to samples/charts/data-chart/type-category-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-category-series/src/app/app.module.ts b/samples/charts/data-chart/type-category-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-category-series/src/app/app.module.ts rename to samples/charts/data-chart/type-category-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-category-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-category-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-category-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-category-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-category-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-category-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-category-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-category-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-category-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-category-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-category-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-category-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-category-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-series/src/main.ts b/samples/charts/data-chart/type-category-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-category-series/src/main.ts +++ b/samples/charts/data-chart/type-category-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-category-series/tsconfig.app.json b/samples/charts/data-chart/type-category-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-category-series/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/data-chart/type-category-series/tsconfig.json b/samples/charts/data-chart/type-category-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-category-series/tsconfig.json +++ b/samples/charts/data-chart/type-category-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-category-spline-area-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-category-spline-area-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-category-spline-area-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-spline-area-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-category-spline-area-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-category-spline-area-series/.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/data-chart/type-category-spline-area-series/.stackblitzrc b/samples/charts/data-chart/type-category-spline-area-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-category-spline-area-series/.stackblitzrc +++ b/samples/charts/data-chart/type-category-spline-area-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-spline-area-series/angular.json b/samples/charts/data-chart/type-category-spline-area-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-category-spline-area-series/angular.json +++ b/samples/charts/data-chart/type-category-spline-area-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-category-spline-area-series/package.json b/samples/charts/data-chart/type-category-spline-area-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-category-spline-area-series/package.json +++ b/samples/charts/data-chart/type-category-spline-area-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-category-spline-area-series/sandbox.config.json b/samples/charts/data-chart/type-category-spline-area-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-category-spline-area-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-spline-area-series/src/app/SampleCategoryData.ts b/samples/charts/data-chart/type-category-spline-area-series/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/type-category-spline-area-series/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/type-category-spline-area-series/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/type-category-spline-area-series/src/app/app.component.html b/samples/charts/data-chart/type-category-spline-area-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-category-spline-area-series/src/app/app.component.html rename to samples/charts/data-chart/type-category-spline-area-series/src/app.component.html diff --git a/samples/charts/data-chart/type-financial-candlestick-series/src/app/app.component.scss b/samples/charts/data-chart/type-category-spline-area-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-financial-candlestick-series/src/app/app.component.scss rename to samples/charts/data-chart/type-category-spline-area-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-category-spline-area-series/src/app/app.component.ts b/samples/charts/data-chart/type-category-spline-area-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-category-spline-area-series/src/app/app.component.ts rename to samples/charts/data-chart/type-category-spline-area-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-category-spline-area-series/src/app/app.module.ts b/samples/charts/data-chart/type-category-spline-area-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-category-spline-area-series/src/app/app.module.ts rename to samples/charts/data-chart/type-category-spline-area-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-category-spline-area-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-spline-area-series/src/main.ts b/samples/charts/data-chart/type-category-spline-area-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-category-spline-area-series/src/main.ts +++ b/samples/charts/data-chart/type-category-spline-area-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-category-spline-area-series/tsconfig.app.json b/samples/charts/data-chart/type-category-spline-area-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-category-spline-area-series/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/data-chart/type-category-spline-area-series/tsconfig.json b/samples/charts/data-chart/type-category-spline-area-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-category-spline-area-series/tsconfig.json +++ b/samples/charts/data-chart/type-category-spline-area-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-category-spline-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-category-spline-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-category-spline-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-spline-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-category-spline-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-category-spline-series/.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/data-chart/type-category-spline-series/.stackblitzrc b/samples/charts/data-chart/type-category-spline-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-category-spline-series/.stackblitzrc +++ b/samples/charts/data-chart/type-category-spline-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-spline-series/angular.json b/samples/charts/data-chart/type-category-spline-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-category-spline-series/angular.json +++ b/samples/charts/data-chart/type-category-spline-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-category-spline-series/package.json b/samples/charts/data-chart/type-category-spline-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-category-spline-series/package.json +++ b/samples/charts/data-chart/type-category-spline-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-category-spline-series/sandbox.config.json b/samples/charts/data-chart/type-category-spline-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-category-spline-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-spline-series/src/app/SampleCategoryData.ts b/samples/charts/data-chart/type-category-spline-series/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/type-category-spline-series/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/type-category-spline-series/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/type-category-spline-series/src/app/app.component.html b/samples/charts/data-chart/type-category-spline-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-category-spline-series/src/app/app.component.html rename to samples/charts/data-chart/type-category-spline-series/src/app.component.html diff --git a/samples/charts/data-chart/type-financial-column-indicators/src/app/app.component.scss b/samples/charts/data-chart/type-category-spline-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-financial-column-indicators/src/app/app.component.scss rename to samples/charts/data-chart/type-category-spline-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-category-spline-series/src/app/app.component.ts b/samples/charts/data-chart/type-category-spline-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-category-spline-series/src/app/app.component.ts rename to samples/charts/data-chart/type-category-spline-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-category-spline-series/src/app/app.module.ts b/samples/charts/data-chart/type-category-spline-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-category-spline-series/src/app/app.module.ts rename to samples/charts/data-chart/type-category-spline-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-category-spline-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-spline-series/src/main.ts b/samples/charts/data-chart/type-category-spline-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-category-spline-series/src/main.ts +++ b/samples/charts/data-chart/type-category-spline-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-category-spline-series/tsconfig.app.json b/samples/charts/data-chart/type-category-spline-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-category-spline-series/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/data-chart/type-category-spline-series/tsconfig.json b/samples/charts/data-chart/type-category-spline-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-category-spline-series/tsconfig.json +++ b/samples/charts/data-chart/type-category-spline-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-category-step-area-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-category-step-area-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-category-step-area-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-step-area-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-category-step-area-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-category-step-area-series/.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/data-chart/type-category-step-area-series/.stackblitzrc b/samples/charts/data-chart/type-category-step-area-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-category-step-area-series/.stackblitzrc +++ b/samples/charts/data-chart/type-category-step-area-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-step-area-series/angular.json b/samples/charts/data-chart/type-category-step-area-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-category-step-area-series/angular.json +++ b/samples/charts/data-chart/type-category-step-area-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-category-step-area-series/package.json b/samples/charts/data-chart/type-category-step-area-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-category-step-area-series/package.json +++ b/samples/charts/data-chart/type-category-step-area-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-category-step-area-series/sandbox.config.json b/samples/charts/data-chart/type-category-step-area-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-category-step-area-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-step-area-series/src/app/SampleCategoryData.ts b/samples/charts/data-chart/type-category-step-area-series/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/type-category-step-area-series/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/type-category-step-area-series/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/type-category-step-area-series/src/app/app.component.html b/samples/charts/data-chart/type-category-step-area-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-category-step-area-series/src/app/app.component.html rename to samples/charts/data-chart/type-category-step-area-series/src/app.component.html diff --git a/samples/charts/data-chart/type-financial-line-indicators/src/app/app.component.scss b/samples/charts/data-chart/type-category-step-area-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-financial-line-indicators/src/app/app.component.scss rename to samples/charts/data-chart/type-category-step-area-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-category-step-area-series/src/app/app.component.ts b/samples/charts/data-chart/type-category-step-area-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-category-step-area-series/src/app/app.component.ts rename to samples/charts/data-chart/type-category-step-area-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-category-step-area-series/src/app/app.module.ts b/samples/charts/data-chart/type-category-step-area-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-category-step-area-series/src/app/app.module.ts rename to samples/charts/data-chart/type-category-step-area-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-category-step-area-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-step-area-series/src/main.ts b/samples/charts/data-chart/type-category-step-area-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-category-step-area-series/src/main.ts +++ b/samples/charts/data-chart/type-category-step-area-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-category-step-area-series/tsconfig.app.json b/samples/charts/data-chart/type-category-step-area-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-category-step-area-series/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/data-chart/type-category-step-area-series/tsconfig.json b/samples/charts/data-chart/type-category-step-area-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-category-step-area-series/tsconfig.json +++ b/samples/charts/data-chart/type-category-step-area-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-category-step-line-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-category-step-line-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-category-step-line-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-step-line-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-category-step-line-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-category-step-line-series/.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/data-chart/type-category-step-line-series/.stackblitzrc b/samples/charts/data-chart/type-category-step-line-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-category-step-line-series/.stackblitzrc +++ b/samples/charts/data-chart/type-category-step-line-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-step-line-series/angular.json b/samples/charts/data-chart/type-category-step-line-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-category-step-line-series/angular.json +++ b/samples/charts/data-chart/type-category-step-line-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-category-step-line-series/package.json b/samples/charts/data-chart/type-category-step-line-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-category-step-line-series/package.json +++ b/samples/charts/data-chart/type-category-step-line-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-category-step-line-series/sandbox.config.json b/samples/charts/data-chart/type-category-step-line-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-category-step-line-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-step-line-series/src/app/SampleCategoryData.ts b/samples/charts/data-chart/type-category-step-line-series/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/type-category-step-line-series/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/type-category-step-line-series/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/type-category-step-line-series/src/app/app.component.html b/samples/charts/data-chart/type-category-step-line-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-category-step-line-series/src/app/app.component.html rename to samples/charts/data-chart/type-category-step-line-series/src/app.component.html diff --git a/samples/charts/data-chart/type-financial-ohlc-series/src/app/app.component.scss b/samples/charts/data-chart/type-category-step-line-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-financial-ohlc-series/src/app/app.component.scss rename to samples/charts/data-chart/type-category-step-line-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-category-step-line-series/src/app/app.component.ts b/samples/charts/data-chart/type-category-step-line-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-category-step-line-series/src/app/app.component.ts rename to samples/charts/data-chart/type-category-step-line-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-category-step-line-series/src/app/app.module.ts b/samples/charts/data-chart/type-category-step-line-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-category-step-line-series/src/app/app.module.ts rename to samples/charts/data-chart/type-category-step-line-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-category-step-line-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-step-line-series/src/main.ts b/samples/charts/data-chart/type-category-step-line-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-category-step-line-series/src/main.ts +++ b/samples/charts/data-chart/type-category-step-line-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-category-step-line-series/tsconfig.app.json b/samples/charts/data-chart/type-category-step-line-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-category-step-line-series/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/data-chart/type-category-step-line-series/tsconfig.json b/samples/charts/data-chart/type-category-step-line-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-category-step-line-series/tsconfig.json +++ b/samples/charts/data-chart/type-category-step-line-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-category-waterfall-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-category-waterfall-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-category-waterfall-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-waterfall-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-category-waterfall-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-category-waterfall-series/.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/data-chart/type-category-waterfall-series/.stackblitzrc b/samples/charts/data-chart/type-category-waterfall-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-category-waterfall-series/.stackblitzrc +++ b/samples/charts/data-chart/type-category-waterfall-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-waterfall-series/angular.json b/samples/charts/data-chart/type-category-waterfall-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-category-waterfall-series/angular.json +++ b/samples/charts/data-chart/type-category-waterfall-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-category-waterfall-series/package.json b/samples/charts/data-chart/type-category-waterfall-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-category-waterfall-series/package.json +++ b/samples/charts/data-chart/type-category-waterfall-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-category-waterfall-series/sandbox.config.json b/samples/charts/data-chart/type-category-waterfall-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-category-waterfall-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-category-waterfall-series/src/app/SampleCategoryData.ts b/samples/charts/data-chart/type-category-waterfall-series/src/SampleCategoryData.ts similarity index 100% rename from samples/charts/data-chart/type-category-waterfall-series/src/app/SampleCategoryData.ts rename to samples/charts/data-chart/type-category-waterfall-series/src/SampleCategoryData.ts diff --git a/samples/charts/data-chart/type-category-waterfall-series/src/app/app.component.html b/samples/charts/data-chart/type-category-waterfall-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-category-waterfall-series/src/app/app.component.html rename to samples/charts/data-chart/type-category-waterfall-series/src/app.component.html diff --git a/samples/charts/data-chart/type-financial-overlays/src/app/app.component.scss b/samples/charts/data-chart/type-category-waterfall-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-financial-overlays/src/app/app.component.scss rename to samples/charts/data-chart/type-category-waterfall-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-category-waterfall-series/src/app/app.component.ts b/samples/charts/data-chart/type-category-waterfall-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-category-waterfall-series/src/app/app.component.ts rename to samples/charts/data-chart/type-category-waterfall-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-category-waterfall-series/src/app/app.module.ts b/samples/charts/data-chart/type-category-waterfall-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-category-waterfall-series/src/app/app.module.ts rename to samples/charts/data-chart/type-category-waterfall-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-category-waterfall-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-category-waterfall-series/src/main.ts b/samples/charts/data-chart/type-category-waterfall-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-category-waterfall-series/src/main.ts +++ b/samples/charts/data-chart/type-category-waterfall-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-category-waterfall-series/tsconfig.app.json b/samples/charts/data-chart/type-category-waterfall-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-category-waterfall-series/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/data-chart/type-category-waterfall-series/tsconfig.json b/samples/charts/data-chart/type-category-waterfall-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-category-waterfall-series/tsconfig.json +++ b/samples/charts/data-chart/type-category-waterfall-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-financial-area-indicators/.codesandbox/Dockerfile b/samples/charts/data-chart/type-financial-area-indicators/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-financial-area-indicators/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-area-indicators/.codesandbox/tasks.json b/samples/charts/data-chart/type-financial-area-indicators/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-financial-area-indicators/.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/data-chart/type-financial-area-indicators/.stackblitzrc b/samples/charts/data-chart/type-financial-area-indicators/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-financial-area-indicators/.stackblitzrc +++ b/samples/charts/data-chart/type-financial-area-indicators/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-area-indicators/angular.json b/samples/charts/data-chart/type-financial-area-indicators/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-financial-area-indicators/angular.json +++ b/samples/charts/data-chart/type-financial-area-indicators/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-financial-area-indicators/package.json b/samples/charts/data-chart/type-financial-area-indicators/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-financial-area-indicators/package.json +++ b/samples/charts/data-chart/type-financial-area-indicators/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-financial-area-indicators/sandbox.config.json b/samples/charts/data-chart/type-financial-area-indicators/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-financial-area-indicators/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-area-indicators/src/app/SampleFinancialData.ts b/samples/charts/data-chart/type-financial-area-indicators/src/SampleFinancialData.ts similarity index 100% rename from samples/charts/data-chart/type-financial-area-indicators/src/app/SampleFinancialData.ts rename to samples/charts/data-chart/type-financial-area-indicators/src/SampleFinancialData.ts diff --git a/samples/charts/data-chart/type-financial-area-indicators/src/app/app.component.html b/samples/charts/data-chart/type-financial-area-indicators/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-financial-area-indicators/src/app/app.component.html rename to samples/charts/data-chart/type-financial-area-indicators/src/app.component.html diff --git a/samples/charts/data-chart/type-financial-series/src/app/app.component.scss b/samples/charts/data-chart/type-financial-area-indicators/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-financial-series/src/app/app.component.scss rename to samples/charts/data-chart/type-financial-area-indicators/src/app.component.scss diff --git a/samples/charts/data-chart/type-financial-area-indicators/src/app/app.component.ts b/samples/charts/data-chart/type-financial-area-indicators/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-financial-area-indicators/src/app/app.component.ts rename to samples/charts/data-chart/type-financial-area-indicators/src/app.component.ts diff --git a/samples/charts/data-chart/type-financial-area-indicators/src/app/app.module.ts b/samples/charts/data-chart/type-financial-area-indicators/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-financial-area-indicators/src/app/app.module.ts rename to samples/charts/data-chart/type-financial-area-indicators/src/app.module.ts diff --git a/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.app.json b/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.base.json b/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-financial-area-indicators/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-area-indicators/src/main.ts b/samples/charts/data-chart/type-financial-area-indicators/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-financial-area-indicators/src/main.ts +++ b/samples/charts/data-chart/type-financial-area-indicators/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-financial-area-indicators/tsconfig.app.json b/samples/charts/data-chart/type-financial-area-indicators/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-financial-area-indicators/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/data-chart/type-financial-area-indicators/tsconfig.json b/samples/charts/data-chart/type-financial-area-indicators/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-financial-area-indicators/tsconfig.json +++ b/samples/charts/data-chart/type-financial-area-indicators/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-financial-candlestick-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-financial-candlestick-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-financial-candlestick-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-candlestick-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-financial-candlestick-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-financial-candlestick-series/.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/data-chart/type-financial-candlestick-series/.stackblitzrc b/samples/charts/data-chart/type-financial-candlestick-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-financial-candlestick-series/.stackblitzrc +++ b/samples/charts/data-chart/type-financial-candlestick-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-candlestick-series/angular.json b/samples/charts/data-chart/type-financial-candlestick-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-financial-candlestick-series/angular.json +++ b/samples/charts/data-chart/type-financial-candlestick-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-financial-candlestick-series/package.json b/samples/charts/data-chart/type-financial-candlestick-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-financial-candlestick-series/package.json +++ b/samples/charts/data-chart/type-financial-candlestick-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-financial-candlestick-series/sandbox.config.json b/samples/charts/data-chart/type-financial-candlestick-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-financial-candlestick-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-candlestick-series/src/app/SampleFinancialData.ts b/samples/charts/data-chart/type-financial-candlestick-series/src/SampleFinancialData.ts similarity index 100% rename from samples/charts/data-chart/type-financial-candlestick-series/src/app/SampleFinancialData.ts rename to samples/charts/data-chart/type-financial-candlestick-series/src/SampleFinancialData.ts diff --git a/samples/charts/data-chart/type-financial-candlestick-series/src/app/app.component.html b/samples/charts/data-chart/type-financial-candlestick-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-financial-candlestick-series/src/app/app.component.html rename to samples/charts/data-chart/type-financial-candlestick-series/src/app.component.html diff --git a/samples/charts/data-chart/type-radial-area-series/src/app/app.component.scss b/samples/charts/data-chart/type-financial-candlestick-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-radial-area-series/src/app/app.component.scss rename to samples/charts/data-chart/type-financial-candlestick-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-financial-candlestick-series/src/app/app.component.ts b/samples/charts/data-chart/type-financial-candlestick-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-financial-candlestick-series/src/app/app.component.ts rename to samples/charts/data-chart/type-financial-candlestick-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-financial-candlestick-series/src/app/app.module.ts b/samples/charts/data-chart/type-financial-candlestick-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-financial-candlestick-series/src/app/app.module.ts rename to samples/charts/data-chart/type-financial-candlestick-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-financial-candlestick-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-candlestick-series/src/main.ts b/samples/charts/data-chart/type-financial-candlestick-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-financial-candlestick-series/src/main.ts +++ b/samples/charts/data-chart/type-financial-candlestick-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-financial-candlestick-series/tsconfig.app.json b/samples/charts/data-chart/type-financial-candlestick-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-financial-candlestick-series/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/data-chart/type-financial-candlestick-series/tsconfig.json b/samples/charts/data-chart/type-financial-candlestick-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-financial-candlestick-series/tsconfig.json +++ b/samples/charts/data-chart/type-financial-candlestick-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-financial-column-indicators/.codesandbox/Dockerfile b/samples/charts/data-chart/type-financial-column-indicators/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-financial-column-indicators/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-column-indicators/.codesandbox/tasks.json b/samples/charts/data-chart/type-financial-column-indicators/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-financial-column-indicators/.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/data-chart/type-financial-column-indicators/.stackblitzrc b/samples/charts/data-chart/type-financial-column-indicators/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-financial-column-indicators/.stackblitzrc +++ b/samples/charts/data-chart/type-financial-column-indicators/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-column-indicators/angular.json b/samples/charts/data-chart/type-financial-column-indicators/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-financial-column-indicators/angular.json +++ b/samples/charts/data-chart/type-financial-column-indicators/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-financial-column-indicators/package.json b/samples/charts/data-chart/type-financial-column-indicators/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-financial-column-indicators/package.json +++ b/samples/charts/data-chart/type-financial-column-indicators/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-financial-column-indicators/sandbox.config.json b/samples/charts/data-chart/type-financial-column-indicators/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-financial-column-indicators/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-column-indicators/src/app/SampleFinancialData.ts b/samples/charts/data-chart/type-financial-column-indicators/src/SampleFinancialData.ts similarity index 100% rename from samples/charts/data-chart/type-financial-column-indicators/src/app/SampleFinancialData.ts rename to samples/charts/data-chart/type-financial-column-indicators/src/SampleFinancialData.ts diff --git a/samples/charts/data-chart/type-financial-column-indicators/src/app/app.component.html b/samples/charts/data-chart/type-financial-column-indicators/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-financial-column-indicators/src/app/app.component.html rename to samples/charts/data-chart/type-financial-column-indicators/src/app.component.html diff --git a/samples/charts/data-chart/type-radial-column-series/src/app/app.component.scss b/samples/charts/data-chart/type-financial-column-indicators/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-radial-column-series/src/app/app.component.scss rename to samples/charts/data-chart/type-financial-column-indicators/src/app.component.scss diff --git a/samples/charts/data-chart/type-financial-column-indicators/src/app/app.component.ts b/samples/charts/data-chart/type-financial-column-indicators/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-financial-column-indicators/src/app/app.component.ts rename to samples/charts/data-chart/type-financial-column-indicators/src/app.component.ts diff --git a/samples/charts/data-chart/type-financial-column-indicators/src/app/app.module.ts b/samples/charts/data-chart/type-financial-column-indicators/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-financial-column-indicators/src/app/app.module.ts rename to samples/charts/data-chart/type-financial-column-indicators/src/app.module.ts diff --git a/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.app.json b/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.base.json b/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-financial-column-indicators/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-column-indicators/src/main.ts b/samples/charts/data-chart/type-financial-column-indicators/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-financial-column-indicators/src/main.ts +++ b/samples/charts/data-chart/type-financial-column-indicators/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-financial-column-indicators/tsconfig.app.json b/samples/charts/data-chart/type-financial-column-indicators/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-financial-column-indicators/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/data-chart/type-financial-column-indicators/tsconfig.json b/samples/charts/data-chart/type-financial-column-indicators/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-financial-column-indicators/tsconfig.json +++ b/samples/charts/data-chart/type-financial-column-indicators/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-financial-line-indicators/.codesandbox/Dockerfile b/samples/charts/data-chart/type-financial-line-indicators/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-financial-line-indicators/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-line-indicators/.codesandbox/tasks.json b/samples/charts/data-chart/type-financial-line-indicators/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-financial-line-indicators/.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/data-chart/type-financial-line-indicators/.stackblitzrc b/samples/charts/data-chart/type-financial-line-indicators/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-financial-line-indicators/.stackblitzrc +++ b/samples/charts/data-chart/type-financial-line-indicators/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-line-indicators/angular.json b/samples/charts/data-chart/type-financial-line-indicators/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-financial-line-indicators/angular.json +++ b/samples/charts/data-chart/type-financial-line-indicators/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-financial-line-indicators/package.json b/samples/charts/data-chart/type-financial-line-indicators/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-financial-line-indicators/package.json +++ b/samples/charts/data-chart/type-financial-line-indicators/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-financial-line-indicators/sandbox.config.json b/samples/charts/data-chart/type-financial-line-indicators/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-financial-line-indicators/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-line-indicators/src/app/SampleFinancialData.ts b/samples/charts/data-chart/type-financial-line-indicators/src/SampleFinancialData.ts similarity index 100% rename from samples/charts/data-chart/type-financial-line-indicators/src/app/SampleFinancialData.ts rename to samples/charts/data-chart/type-financial-line-indicators/src/SampleFinancialData.ts diff --git a/samples/charts/data-chart/type-financial-line-indicators/src/app/app.component.html b/samples/charts/data-chart/type-financial-line-indicators/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-financial-line-indicators/src/app/app.component.html rename to samples/charts/data-chart/type-financial-line-indicators/src/app.component.html diff --git a/samples/charts/data-chart/type-radial-line-series/src/app/app.component.scss b/samples/charts/data-chart/type-financial-line-indicators/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-radial-line-series/src/app/app.component.scss rename to samples/charts/data-chart/type-financial-line-indicators/src/app.component.scss diff --git a/samples/charts/data-chart/type-financial-line-indicators/src/app/app.component.ts b/samples/charts/data-chart/type-financial-line-indicators/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-financial-line-indicators/src/app/app.component.ts rename to samples/charts/data-chart/type-financial-line-indicators/src/app.component.ts diff --git a/samples/charts/data-chart/type-financial-line-indicators/src/app/app.module.ts b/samples/charts/data-chart/type-financial-line-indicators/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-financial-line-indicators/src/app/app.module.ts rename to samples/charts/data-chart/type-financial-line-indicators/src/app.module.ts diff --git a/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.app.json b/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.base.json b/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-financial-line-indicators/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-line-indicators/src/main.ts b/samples/charts/data-chart/type-financial-line-indicators/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-financial-line-indicators/src/main.ts +++ b/samples/charts/data-chart/type-financial-line-indicators/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-financial-line-indicators/tsconfig.app.json b/samples/charts/data-chart/type-financial-line-indicators/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-financial-line-indicators/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/data-chart/type-financial-line-indicators/tsconfig.json b/samples/charts/data-chart/type-financial-line-indicators/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-financial-line-indicators/tsconfig.json +++ b/samples/charts/data-chart/type-financial-line-indicators/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-financial-ohlc-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-financial-ohlc-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-financial-ohlc-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-ohlc-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-financial-ohlc-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-financial-ohlc-series/.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/data-chart/type-financial-ohlc-series/.stackblitzrc b/samples/charts/data-chart/type-financial-ohlc-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-financial-ohlc-series/.stackblitzrc +++ b/samples/charts/data-chart/type-financial-ohlc-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-ohlc-series/angular.json b/samples/charts/data-chart/type-financial-ohlc-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-financial-ohlc-series/angular.json +++ b/samples/charts/data-chart/type-financial-ohlc-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-financial-ohlc-series/package.json b/samples/charts/data-chart/type-financial-ohlc-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-financial-ohlc-series/package.json +++ b/samples/charts/data-chart/type-financial-ohlc-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-financial-ohlc-series/sandbox.config.json b/samples/charts/data-chart/type-financial-ohlc-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-financial-ohlc-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-ohlc-series/src/app/SampleFinancialData.ts b/samples/charts/data-chart/type-financial-ohlc-series/src/SampleFinancialData.ts similarity index 100% rename from samples/charts/data-chart/type-financial-ohlc-series/src/app/SampleFinancialData.ts rename to samples/charts/data-chart/type-financial-ohlc-series/src/SampleFinancialData.ts diff --git a/samples/charts/data-chart/type-financial-ohlc-series/src/app/app.component.html b/samples/charts/data-chart/type-financial-ohlc-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-financial-ohlc-series/src/app/app.component.html rename to samples/charts/data-chart/type-financial-ohlc-series/src/app.component.html diff --git a/samples/charts/data-chart/type-radial-pie-series/src/app/app.component.scss b/samples/charts/data-chart/type-financial-ohlc-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-radial-pie-series/src/app/app.component.scss rename to samples/charts/data-chart/type-financial-ohlc-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-financial-ohlc-series/src/app/app.component.ts b/samples/charts/data-chart/type-financial-ohlc-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-financial-ohlc-series/src/app/app.component.ts rename to samples/charts/data-chart/type-financial-ohlc-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-financial-ohlc-series/src/app/app.module.ts b/samples/charts/data-chart/type-financial-ohlc-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-financial-ohlc-series/src/app/app.module.ts rename to samples/charts/data-chart/type-financial-ohlc-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-financial-ohlc-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-ohlc-series/src/main.ts b/samples/charts/data-chart/type-financial-ohlc-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-financial-ohlc-series/src/main.ts +++ b/samples/charts/data-chart/type-financial-ohlc-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-financial-ohlc-series/tsconfig.app.json b/samples/charts/data-chart/type-financial-ohlc-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-financial-ohlc-series/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/data-chart/type-financial-ohlc-series/tsconfig.json b/samples/charts/data-chart/type-financial-ohlc-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-financial-ohlc-series/tsconfig.json +++ b/samples/charts/data-chart/type-financial-ohlc-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-financial-overlays/.codesandbox/Dockerfile b/samples/charts/data-chart/type-financial-overlays/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-financial-overlays/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-overlays/.codesandbox/tasks.json b/samples/charts/data-chart/type-financial-overlays/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-financial-overlays/.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/data-chart/type-financial-overlays/.stackblitzrc b/samples/charts/data-chart/type-financial-overlays/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-financial-overlays/.stackblitzrc +++ b/samples/charts/data-chart/type-financial-overlays/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-overlays/angular.json b/samples/charts/data-chart/type-financial-overlays/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-financial-overlays/angular.json +++ b/samples/charts/data-chart/type-financial-overlays/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-financial-overlays/package.json b/samples/charts/data-chart/type-financial-overlays/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-financial-overlays/package.json +++ b/samples/charts/data-chart/type-financial-overlays/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-financial-overlays/sandbox.config.json b/samples/charts/data-chart/type-financial-overlays/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-financial-overlays/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-overlays/src/app/SampleFinancialData.ts b/samples/charts/data-chart/type-financial-overlays/src/SampleFinancialData.ts similarity index 100% rename from samples/charts/data-chart/type-financial-overlays/src/app/SampleFinancialData.ts rename to samples/charts/data-chart/type-financial-overlays/src/SampleFinancialData.ts diff --git a/samples/charts/data-chart/type-financial-overlays/src/app/app.component.html b/samples/charts/data-chart/type-financial-overlays/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-financial-overlays/src/app/app.component.html rename to samples/charts/data-chart/type-financial-overlays/src/app.component.html diff --git a/samples/charts/data-chart/type-range-area-series/src/app/app.component.scss b/samples/charts/data-chart/type-financial-overlays/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-range-area-series/src/app/app.component.scss rename to samples/charts/data-chart/type-financial-overlays/src/app.component.scss diff --git a/samples/charts/data-chart/type-financial-overlays/src/app/app.component.ts b/samples/charts/data-chart/type-financial-overlays/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-financial-overlays/src/app/app.component.ts rename to samples/charts/data-chart/type-financial-overlays/src/app.component.ts diff --git a/samples/charts/data-chart/type-financial-overlays/src/app/app.module.ts b/samples/charts/data-chart/type-financial-overlays/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-financial-overlays/src/app/app.module.ts rename to samples/charts/data-chart/type-financial-overlays/src/app.module.ts diff --git a/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.app.json b/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.base.json b/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-financial-overlays/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-overlays/src/main.ts b/samples/charts/data-chart/type-financial-overlays/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-financial-overlays/src/main.ts +++ b/samples/charts/data-chart/type-financial-overlays/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-financial-overlays/tsconfig.app.json b/samples/charts/data-chart/type-financial-overlays/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-financial-overlays/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/data-chart/type-financial-overlays/tsconfig.json b/samples/charts/data-chart/type-financial-overlays/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-financial-overlays/tsconfig.json +++ b/samples/charts/data-chart/type-financial-overlays/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-financial-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-financial-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-financial-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-financial-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-financial-series/.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/data-chart/type-financial-series/.stackblitzrc b/samples/charts/data-chart/type-financial-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-financial-series/.stackblitzrc +++ b/samples/charts/data-chart/type-financial-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-series/angular.json b/samples/charts/data-chart/type-financial-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-financial-series/angular.json +++ b/samples/charts/data-chart/type-financial-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-financial-series/package.json b/samples/charts/data-chart/type-financial-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-financial-series/package.json +++ b/samples/charts/data-chart/type-financial-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-financial-series/sandbox.config.json b/samples/charts/data-chart/type-financial-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-financial-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-financial-series/src/app/SampleFinancialData.ts b/samples/charts/data-chart/type-financial-series/src/SampleFinancialData.ts similarity index 100% rename from samples/charts/data-chart/type-financial-series/src/app/SampleFinancialData.ts rename to samples/charts/data-chart/type-financial-series/src/SampleFinancialData.ts diff --git a/samples/charts/data-chart/type-financial-series/src/app/app.component.html b/samples/charts/data-chart/type-financial-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-financial-series/src/app/app.component.html rename to samples/charts/data-chart/type-financial-series/src/app.component.html diff --git a/samples/charts/data-chart/type-range-column-series/src/app/app.component.scss b/samples/charts/data-chart/type-financial-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-range-column-series/src/app/app.component.scss rename to samples/charts/data-chart/type-financial-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-financial-series/src/app/app.component.ts b/samples/charts/data-chart/type-financial-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-financial-series/src/app/app.component.ts rename to samples/charts/data-chart/type-financial-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-financial-series/src/app/app.module.ts b/samples/charts/data-chart/type-financial-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-financial-series/src/app/app.module.ts rename to samples/charts/data-chart/type-financial-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-financial-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-financial-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-financial-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-financial-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-financial-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-financial-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-financial-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-financial-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-financial-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-financial-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-financial-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-financial-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-financial-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-financial-series/src/main.ts b/samples/charts/data-chart/type-financial-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-financial-series/src/main.ts +++ b/samples/charts/data-chart/type-financial-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-financial-series/tsconfig.app.json b/samples/charts/data-chart/type-financial-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-financial-series/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/data-chart/type-financial-series/tsconfig.json b/samples/charts/data-chart/type-financial-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-financial-series/tsconfig.json +++ b/samples/charts/data-chart/type-financial-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-radial-area-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-radial-area-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-radial-area-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-area-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-radial-area-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-radial-area-series/.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/data-chart/type-radial-area-series/.stackblitzrc b/samples/charts/data-chart/type-radial-area-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-radial-area-series/.stackblitzrc +++ b/samples/charts/data-chart/type-radial-area-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-area-series/angular.json b/samples/charts/data-chart/type-radial-area-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-radial-area-series/angular.json +++ b/samples/charts/data-chart/type-radial-area-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-radial-area-series/package.json b/samples/charts/data-chart/type-radial-area-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-radial-area-series/package.json +++ b/samples/charts/data-chart/type-radial-area-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-radial-area-series/sandbox.config.json b/samples/charts/data-chart/type-radial-area-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-radial-area-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-area-series/src/app/SampleRadialData.ts b/samples/charts/data-chart/type-radial-area-series/src/SampleRadialData.ts similarity index 100% rename from samples/charts/data-chart/type-radial-area-series/src/app/SampleRadialData.ts rename to samples/charts/data-chart/type-radial-area-series/src/SampleRadialData.ts diff --git a/samples/charts/data-chart/type-radial-area-series/src/app/app.component.html b/samples/charts/data-chart/type-radial-area-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-radial-area-series/src/app/app.component.html rename to samples/charts/data-chart/type-radial-area-series/src/app.component.html diff --git a/samples/charts/data-chart/type-range-series/src/app/app.component.scss b/samples/charts/data-chart/type-radial-area-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-range-series/src/app/app.component.scss rename to samples/charts/data-chart/type-radial-area-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-radial-area-series/src/app/app.component.ts b/samples/charts/data-chart/type-radial-area-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-radial-area-series/src/app/app.component.ts rename to samples/charts/data-chart/type-radial-area-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-radial-area-series/src/app/app.module.ts b/samples/charts/data-chart/type-radial-area-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-radial-area-series/src/app/app.module.ts rename to samples/charts/data-chart/type-radial-area-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-radial-area-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-area-series/src/main.ts b/samples/charts/data-chart/type-radial-area-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-radial-area-series/src/main.ts +++ b/samples/charts/data-chart/type-radial-area-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-radial-area-series/tsconfig.app.json b/samples/charts/data-chart/type-radial-area-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-radial-area-series/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/data-chart/type-radial-area-series/tsconfig.json b/samples/charts/data-chart/type-radial-area-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-radial-area-series/tsconfig.json +++ b/samples/charts/data-chart/type-radial-area-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-radial-column-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-radial-column-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-radial-column-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-column-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-radial-column-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-radial-column-series/.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/data-chart/type-radial-column-series/.stackblitzrc b/samples/charts/data-chart/type-radial-column-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-radial-column-series/.stackblitzrc +++ b/samples/charts/data-chart/type-radial-column-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-column-series/angular.json b/samples/charts/data-chart/type-radial-column-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-radial-column-series/angular.json +++ b/samples/charts/data-chart/type-radial-column-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-radial-column-series/package.json b/samples/charts/data-chart/type-radial-column-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-radial-column-series/package.json +++ b/samples/charts/data-chart/type-radial-column-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-radial-column-series/sandbox.config.json b/samples/charts/data-chart/type-radial-column-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-radial-column-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-column-series/src/app/SampleRadialData.ts b/samples/charts/data-chart/type-radial-column-series/src/SampleRadialData.ts similarity index 100% rename from samples/charts/data-chart/type-radial-column-series/src/app/SampleRadialData.ts rename to samples/charts/data-chart/type-radial-column-series/src/SampleRadialData.ts diff --git a/samples/charts/data-chart/type-radial-column-series/src/app/app.component.html b/samples/charts/data-chart/type-radial-column-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-radial-column-series/src/app/app.component.html rename to samples/charts/data-chart/type-radial-column-series/src/app.component.html diff --git a/samples/charts/data-chart/type-scatter-area-series/src/app/app.component.scss b/samples/charts/data-chart/type-radial-column-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-scatter-area-series/src/app/app.component.scss rename to samples/charts/data-chart/type-radial-column-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-radial-column-series/src/app/app.component.ts b/samples/charts/data-chart/type-radial-column-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-radial-column-series/src/app/app.component.ts rename to samples/charts/data-chart/type-radial-column-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-radial-column-series/src/app/app.module.ts b/samples/charts/data-chart/type-radial-column-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-radial-column-series/src/app/app.module.ts rename to samples/charts/data-chart/type-radial-column-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-radial-column-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-column-series/src/main.ts b/samples/charts/data-chart/type-radial-column-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-radial-column-series/src/main.ts +++ b/samples/charts/data-chart/type-radial-column-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-radial-column-series/tsconfig.app.json b/samples/charts/data-chart/type-radial-column-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-radial-column-series/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/data-chart/type-radial-column-series/tsconfig.json b/samples/charts/data-chart/type-radial-column-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-radial-column-series/tsconfig.json +++ b/samples/charts/data-chart/type-radial-column-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-radial-line-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-radial-line-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-radial-line-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-line-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-radial-line-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-radial-line-series/.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/data-chart/type-radial-line-series/.stackblitzrc b/samples/charts/data-chart/type-radial-line-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-radial-line-series/.stackblitzrc +++ b/samples/charts/data-chart/type-radial-line-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-line-series/angular.json b/samples/charts/data-chart/type-radial-line-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-radial-line-series/angular.json +++ b/samples/charts/data-chart/type-radial-line-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-radial-line-series/package.json b/samples/charts/data-chart/type-radial-line-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-radial-line-series/package.json +++ b/samples/charts/data-chart/type-radial-line-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-radial-line-series/sandbox.config.json b/samples/charts/data-chart/type-radial-line-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-radial-line-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-line-series/src/app/SampleRadialData.ts b/samples/charts/data-chart/type-radial-line-series/src/SampleRadialData.ts similarity index 100% rename from samples/charts/data-chart/type-radial-line-series/src/app/SampleRadialData.ts rename to samples/charts/data-chart/type-radial-line-series/src/SampleRadialData.ts diff --git a/samples/charts/data-chart/type-radial-line-series/src/app/app.component.html b/samples/charts/data-chart/type-radial-line-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-radial-line-series/src/app/app.component.html rename to samples/charts/data-chart/type-radial-line-series/src/app.component.html diff --git a/samples/charts/data-chart/type-scatter-bubble-series/src/app/app.component.scss b/samples/charts/data-chart/type-radial-line-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-scatter-bubble-series/src/app/app.component.scss rename to samples/charts/data-chart/type-radial-line-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-radial-line-series/src/app/app.component.ts b/samples/charts/data-chart/type-radial-line-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-radial-line-series/src/app/app.component.ts rename to samples/charts/data-chart/type-radial-line-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-radial-line-series/src/app/app.module.ts b/samples/charts/data-chart/type-radial-line-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-radial-line-series/src/app/app.module.ts rename to samples/charts/data-chart/type-radial-line-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-radial-line-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-line-series/src/main.ts b/samples/charts/data-chart/type-radial-line-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-radial-line-series/src/main.ts +++ b/samples/charts/data-chart/type-radial-line-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-radial-line-series/tsconfig.app.json b/samples/charts/data-chart/type-radial-line-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-radial-line-series/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/data-chart/type-radial-line-series/tsconfig.json b/samples/charts/data-chart/type-radial-line-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-radial-line-series/tsconfig.json +++ b/samples/charts/data-chart/type-radial-line-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-radial-pie-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-radial-pie-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-radial-pie-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-pie-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-radial-pie-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-radial-pie-series/.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/data-chart/type-radial-pie-series/.stackblitzrc b/samples/charts/data-chart/type-radial-pie-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-radial-pie-series/.stackblitzrc +++ b/samples/charts/data-chart/type-radial-pie-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-pie-series/angular.json b/samples/charts/data-chart/type-radial-pie-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-radial-pie-series/angular.json +++ b/samples/charts/data-chart/type-radial-pie-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-radial-pie-series/package.json b/samples/charts/data-chart/type-radial-pie-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-radial-pie-series/package.json +++ b/samples/charts/data-chart/type-radial-pie-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-radial-pie-series/sandbox.config.json b/samples/charts/data-chart/type-radial-pie-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-radial-pie-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-radial-pie-series/src/app/SampleRadialData.ts b/samples/charts/data-chart/type-radial-pie-series/src/SampleRadialData.ts similarity index 100% rename from samples/charts/data-chart/type-radial-pie-series/src/app/SampleRadialData.ts rename to samples/charts/data-chart/type-radial-pie-series/src/SampleRadialData.ts diff --git a/samples/charts/data-chart/type-radial-pie-series/src/app/app.component.html b/samples/charts/data-chart/type-radial-pie-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-radial-pie-series/src/app/app.component.html rename to samples/charts/data-chart/type-radial-pie-series/src/app.component.html diff --git a/samples/charts/data-chart/type-scatter-contour-series/src/app/app.component.scss b/samples/charts/data-chart/type-radial-pie-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-scatter-contour-series/src/app/app.component.scss rename to samples/charts/data-chart/type-radial-pie-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-radial-pie-series/src/app/app.component.ts b/samples/charts/data-chart/type-radial-pie-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-radial-pie-series/src/app/app.component.ts rename to samples/charts/data-chart/type-radial-pie-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-radial-pie-series/src/app/app.module.ts b/samples/charts/data-chart/type-radial-pie-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-radial-pie-series/src/app/app.module.ts rename to samples/charts/data-chart/type-radial-pie-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-radial-pie-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-radial-pie-series/src/main.ts b/samples/charts/data-chart/type-radial-pie-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-radial-pie-series/src/main.ts +++ b/samples/charts/data-chart/type-radial-pie-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-radial-pie-series/tsconfig.app.json b/samples/charts/data-chart/type-radial-pie-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-radial-pie-series/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/data-chart/type-radial-pie-series/tsconfig.json b/samples/charts/data-chart/type-radial-pie-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-radial-pie-series/tsconfig.json +++ b/samples/charts/data-chart/type-radial-pie-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-range-area-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-range-area-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-range-area-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-range-area-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-range-area-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-range-area-series/.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/data-chart/type-range-area-series/.stackblitzrc b/samples/charts/data-chart/type-range-area-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-range-area-series/.stackblitzrc +++ b/samples/charts/data-chart/type-range-area-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-range-area-series/angular.json b/samples/charts/data-chart/type-range-area-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-range-area-series/angular.json +++ b/samples/charts/data-chart/type-range-area-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-range-area-series/package.json b/samples/charts/data-chart/type-range-area-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-range-area-series/package.json +++ b/samples/charts/data-chart/type-range-area-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-range-area-series/sandbox.config.json b/samples/charts/data-chart/type-range-area-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-range-area-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-range-area-series/src/app/SampleRangeData.ts b/samples/charts/data-chart/type-range-area-series/src/SampleRangeData.ts similarity index 100% rename from samples/charts/data-chart/type-range-area-series/src/app/SampleRangeData.ts rename to samples/charts/data-chart/type-range-area-series/src/SampleRangeData.ts diff --git a/samples/charts/data-chart/type-range-area-series/src/app/app.component.html b/samples/charts/data-chart/type-range-area-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-range-area-series/src/app/app.component.html rename to samples/charts/data-chart/type-range-area-series/src/app.component.html diff --git a/samples/charts/data-chart/type-scatter-hd-series/src/app/app.component.scss b/samples/charts/data-chart/type-range-area-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-scatter-hd-series/src/app/app.component.scss rename to samples/charts/data-chart/type-range-area-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-range-area-series/src/app/app.component.ts b/samples/charts/data-chart/type-range-area-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-range-area-series/src/app/app.component.ts rename to samples/charts/data-chart/type-range-area-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-range-area-series/src/app/app.module.ts b/samples/charts/data-chart/type-range-area-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-range-area-series/src/app/app.module.ts rename to samples/charts/data-chart/type-range-area-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-range-area-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-range-area-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-range-area-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-range-area-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-range-area-series/src/main.ts b/samples/charts/data-chart/type-range-area-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-range-area-series/src/main.ts +++ b/samples/charts/data-chart/type-range-area-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-range-area-series/tsconfig.app.json b/samples/charts/data-chart/type-range-area-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-range-area-series/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/data-chart/type-range-area-series/tsconfig.json b/samples/charts/data-chart/type-range-area-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-range-area-series/tsconfig.json +++ b/samples/charts/data-chart/type-range-area-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-range-column-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-range-column-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-range-column-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-range-column-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-range-column-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-range-column-series/.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/data-chart/type-range-column-series/.stackblitzrc b/samples/charts/data-chart/type-range-column-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-range-column-series/.stackblitzrc +++ b/samples/charts/data-chart/type-range-column-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-range-column-series/angular.json b/samples/charts/data-chart/type-range-column-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-range-column-series/angular.json +++ b/samples/charts/data-chart/type-range-column-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-range-column-series/package.json b/samples/charts/data-chart/type-range-column-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-range-column-series/package.json +++ b/samples/charts/data-chart/type-range-column-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-range-column-series/sandbox.config.json b/samples/charts/data-chart/type-range-column-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-range-column-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-range-column-series/src/app/SampleRangeData.ts b/samples/charts/data-chart/type-range-column-series/src/SampleRangeData.ts similarity index 100% rename from samples/charts/data-chart/type-range-column-series/src/app/SampleRangeData.ts rename to samples/charts/data-chart/type-range-column-series/src/SampleRangeData.ts diff --git a/samples/charts/data-chart/type-range-column-series/src/app/app.component.html b/samples/charts/data-chart/type-range-column-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-range-column-series/src/app/app.component.html rename to samples/charts/data-chart/type-range-column-series/src/app.component.html diff --git a/samples/charts/data-chart/type-scatter-line-series/src/app/app.component.scss b/samples/charts/data-chart/type-range-column-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-scatter-line-series/src/app/app.component.scss rename to samples/charts/data-chart/type-range-column-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-range-column-series/src/app/app.component.ts b/samples/charts/data-chart/type-range-column-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-range-column-series/src/app/app.component.ts rename to samples/charts/data-chart/type-range-column-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-range-column-series/src/app/app.module.ts b/samples/charts/data-chart/type-range-column-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-range-column-series/src/app/app.module.ts rename to samples/charts/data-chart/type-range-column-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-range-column-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-range-column-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-range-column-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-range-column-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-range-column-series/src/main.ts b/samples/charts/data-chart/type-range-column-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-range-column-series/src/main.ts +++ b/samples/charts/data-chart/type-range-column-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-range-column-series/tsconfig.app.json b/samples/charts/data-chart/type-range-column-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-range-column-series/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/data-chart/type-range-column-series/tsconfig.json b/samples/charts/data-chart/type-range-column-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-range-column-series/tsconfig.json +++ b/samples/charts/data-chart/type-range-column-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-range-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-range-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-range-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-range-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-range-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-range-series/.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/data-chart/type-range-series/.stackblitzrc b/samples/charts/data-chart/type-range-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-range-series/.stackblitzrc +++ b/samples/charts/data-chart/type-range-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-range-series/angular.json b/samples/charts/data-chart/type-range-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-range-series/angular.json +++ b/samples/charts/data-chart/type-range-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-range-series/package.json b/samples/charts/data-chart/type-range-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-range-series/package.json +++ b/samples/charts/data-chart/type-range-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-range-series/sandbox.config.json b/samples/charts/data-chart/type-range-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-range-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-range-series/src/app/SampleRangeData.ts b/samples/charts/data-chart/type-range-series/src/SampleRangeData.ts similarity index 100% rename from samples/charts/data-chart/type-range-series/src/app/SampleRangeData.ts rename to samples/charts/data-chart/type-range-series/src/SampleRangeData.ts diff --git a/samples/charts/data-chart/type-range-series/src/app/app.component.html b/samples/charts/data-chart/type-range-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-range-series/src/app/app.component.html rename to samples/charts/data-chart/type-range-series/src/app.component.html diff --git a/samples/charts/data-chart/type-scatter-point-series/src/app/app.component.scss b/samples/charts/data-chart/type-range-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-scatter-point-series/src/app/app.component.scss rename to samples/charts/data-chart/type-range-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-range-series/src/app/app.component.ts b/samples/charts/data-chart/type-range-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-range-series/src/app/app.component.ts rename to samples/charts/data-chart/type-range-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-range-series/src/app/app.module.ts b/samples/charts/data-chart/type-range-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-range-series/src/app/app.module.ts rename to samples/charts/data-chart/type-range-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-range-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-range-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-range-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-range-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-range-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-range-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-range-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-range-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-range-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-range-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-range-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-range-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-range-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-range-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-range-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-range-series/src/main.ts b/samples/charts/data-chart/type-range-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-range-series/src/main.ts +++ b/samples/charts/data-chart/type-range-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-range-series/tsconfig.app.json b/samples/charts/data-chart/type-range-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-range-series/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/data-chart/type-range-series/tsconfig.json b/samples/charts/data-chart/type-range-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-range-series/tsconfig.json +++ b/samples/charts/data-chart/type-range-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-scatter-area-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-scatter-area-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-scatter-area-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-area-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-scatter-area-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-scatter-area-series/.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/data-chart/type-scatter-area-series/.stackblitzrc b/samples/charts/data-chart/type-scatter-area-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-scatter-area-series/.stackblitzrc +++ b/samples/charts/data-chart/type-scatter-area-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-area-series/angular.json b/samples/charts/data-chart/type-scatter-area-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-scatter-area-series/angular.json +++ b/samples/charts/data-chart/type-scatter-area-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-scatter-area-series/package.json b/samples/charts/data-chart/type-scatter-area-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-scatter-area-series/package.json +++ b/samples/charts/data-chart/type-scatter-area-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-scatter-area-series/sandbox.config.json b/samples/charts/data-chart/type-scatter-area-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-scatter-area-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-area-series/src/app/SampleScatterData.ts b/samples/charts/data-chart/type-scatter-area-series/src/SampleScatterData.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-area-series/src/app/SampleScatterData.ts rename to samples/charts/data-chart/type-scatter-area-series/src/SampleScatterData.ts diff --git a/samples/charts/data-chart/type-scatter-area-series/src/app/app.component.html b/samples/charts/data-chart/type-scatter-area-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-scatter-area-series/src/app/app.component.html rename to samples/charts/data-chart/type-scatter-area-series/src/app.component.html diff --git a/samples/charts/data-chart/type-scatter-polygon-series/src/app/app.component.scss b/samples/charts/data-chart/type-scatter-area-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-scatter-polygon-series/src/app/app.component.scss rename to samples/charts/data-chart/type-scatter-area-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-scatter-area-series/src/app/app.component.ts b/samples/charts/data-chart/type-scatter-area-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-area-series/src/app/app.component.ts rename to samples/charts/data-chart/type-scatter-area-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-scatter-area-series/src/app/app.module.ts b/samples/charts/data-chart/type-scatter-area-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-area-series/src/app/app.module.ts rename to samples/charts/data-chart/type-scatter-area-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-scatter-area-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-area-series/src/main.ts b/samples/charts/data-chart/type-scatter-area-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-scatter-area-series/src/main.ts +++ b/samples/charts/data-chart/type-scatter-area-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-scatter-area-series/tsconfig.app.json b/samples/charts/data-chart/type-scatter-area-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-scatter-area-series/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/data-chart/type-scatter-area-series/tsconfig.json b/samples/charts/data-chart/type-scatter-area-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-scatter-area-series/tsconfig.json +++ b/samples/charts/data-chart/type-scatter-area-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-scatter-bubble-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-scatter-bubble-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-scatter-bubble-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-bubble-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-scatter-bubble-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-scatter-bubble-series/.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/data-chart/type-scatter-bubble-series/.stackblitzrc b/samples/charts/data-chart/type-scatter-bubble-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-scatter-bubble-series/.stackblitzrc +++ b/samples/charts/data-chart/type-scatter-bubble-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-bubble-series/angular.json b/samples/charts/data-chart/type-scatter-bubble-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-scatter-bubble-series/angular.json +++ b/samples/charts/data-chart/type-scatter-bubble-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-scatter-bubble-series/package.json b/samples/charts/data-chart/type-scatter-bubble-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-scatter-bubble-series/package.json +++ b/samples/charts/data-chart/type-scatter-bubble-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-scatter-bubble-series/sandbox.config.json b/samples/charts/data-chart/type-scatter-bubble-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-scatter-bubble-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-bubble-series/src/app/SampleScatterStats.ts b/samples/charts/data-chart/type-scatter-bubble-series/src/SampleScatterStats.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-bubble-series/src/app/SampleScatterStats.ts rename to samples/charts/data-chart/type-scatter-bubble-series/src/SampleScatterStats.ts diff --git a/samples/charts/data-chart/type-scatter-bubble-series/src/app/app.component.html b/samples/charts/data-chart/type-scatter-bubble-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-scatter-bubble-series/src/app/app.component.html rename to samples/charts/data-chart/type-scatter-bubble-series/src/app.component.html diff --git a/samples/charts/data-chart/type-scatter-polyline-series/src/app/app.component.scss b/samples/charts/data-chart/type-scatter-bubble-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-scatter-polyline-series/src/app/app.component.scss rename to samples/charts/data-chart/type-scatter-bubble-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-scatter-bubble-series/src/app/app.component.ts b/samples/charts/data-chart/type-scatter-bubble-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-bubble-series/src/app/app.component.ts rename to samples/charts/data-chart/type-scatter-bubble-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-scatter-bubble-series/src/app/app.module.ts b/samples/charts/data-chart/type-scatter-bubble-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-bubble-series/src/app/app.module.ts rename to samples/charts/data-chart/type-scatter-bubble-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-scatter-bubble-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-bubble-series/src/main.ts b/samples/charts/data-chart/type-scatter-bubble-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-scatter-bubble-series/src/main.ts +++ b/samples/charts/data-chart/type-scatter-bubble-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-scatter-bubble-series/tsconfig.app.json b/samples/charts/data-chart/type-scatter-bubble-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-scatter-bubble-series/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/data-chart/type-scatter-bubble-series/tsconfig.json b/samples/charts/data-chart/type-scatter-bubble-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-scatter-bubble-series/tsconfig.json +++ b/samples/charts/data-chart/type-scatter-bubble-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-scatter-contour-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-scatter-contour-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-scatter-contour-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-contour-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-scatter-contour-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-scatter-contour-series/.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/data-chart/type-scatter-contour-series/.stackblitzrc b/samples/charts/data-chart/type-scatter-contour-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-scatter-contour-series/.stackblitzrc +++ b/samples/charts/data-chart/type-scatter-contour-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-contour-series/angular.json b/samples/charts/data-chart/type-scatter-contour-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-scatter-contour-series/angular.json +++ b/samples/charts/data-chart/type-scatter-contour-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-scatter-contour-series/package.json b/samples/charts/data-chart/type-scatter-contour-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-scatter-contour-series/package.json +++ b/samples/charts/data-chart/type-scatter-contour-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-scatter-contour-series/sandbox.config.json b/samples/charts/data-chart/type-scatter-contour-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-scatter-contour-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-contour-series/src/app/SampleScatterData.ts b/samples/charts/data-chart/type-scatter-contour-series/src/SampleScatterData.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-contour-series/src/app/SampleScatterData.ts rename to samples/charts/data-chart/type-scatter-contour-series/src/SampleScatterData.ts diff --git a/samples/charts/data-chart/type-scatter-contour-series/src/app/app.component.html b/samples/charts/data-chart/type-scatter-contour-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-scatter-contour-series/src/app/app.component.html rename to samples/charts/data-chart/type-scatter-contour-series/src/app.component.html diff --git a/samples/charts/data-chart/type-scatter-series/src/app/app.component.scss b/samples/charts/data-chart/type-scatter-contour-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-scatter-series/src/app/app.component.scss rename to samples/charts/data-chart/type-scatter-contour-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-scatter-contour-series/src/app/app.component.ts b/samples/charts/data-chart/type-scatter-contour-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-contour-series/src/app/app.component.ts rename to samples/charts/data-chart/type-scatter-contour-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-scatter-contour-series/src/app/app.module.ts b/samples/charts/data-chart/type-scatter-contour-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-contour-series/src/app/app.module.ts rename to samples/charts/data-chart/type-scatter-contour-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-scatter-contour-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-contour-series/src/main.ts b/samples/charts/data-chart/type-scatter-contour-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-scatter-contour-series/src/main.ts +++ b/samples/charts/data-chart/type-scatter-contour-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-scatter-contour-series/tsconfig.app.json b/samples/charts/data-chart/type-scatter-contour-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-scatter-contour-series/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/data-chart/type-scatter-contour-series/tsconfig.json b/samples/charts/data-chart/type-scatter-contour-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-scatter-contour-series/tsconfig.json +++ b/samples/charts/data-chart/type-scatter-contour-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-scatter-hd-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-scatter-hd-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-scatter-hd-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-hd-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-scatter-hd-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-scatter-hd-series/.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/data-chart/type-scatter-hd-series/.stackblitzrc b/samples/charts/data-chart/type-scatter-hd-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-scatter-hd-series/.stackblitzrc +++ b/samples/charts/data-chart/type-scatter-hd-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-hd-series/angular.json b/samples/charts/data-chart/type-scatter-hd-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-scatter-hd-series/angular.json +++ b/samples/charts/data-chart/type-scatter-hd-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-scatter-hd-series/package.json b/samples/charts/data-chart/type-scatter-hd-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-scatter-hd-series/package.json +++ b/samples/charts/data-chart/type-scatter-hd-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-scatter-hd-series/sandbox.config.json b/samples/charts/data-chart/type-scatter-hd-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-scatter-hd-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-hd-series/src/app/SampleDensityData.ts b/samples/charts/data-chart/type-scatter-hd-series/src/SampleDensityData.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-hd-series/src/app/SampleDensityData.ts rename to samples/charts/data-chart/type-scatter-hd-series/src/SampleDensityData.ts diff --git a/samples/charts/data-chart/type-scatter-hd-series/src/app/app.component.html b/samples/charts/data-chart/type-scatter-hd-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-scatter-hd-series/src/app/app.component.html rename to samples/charts/data-chart/type-scatter-hd-series/src/app.component.html diff --git a/samples/charts/data-chart/type-scatter-spline-series/src/app/app.component.scss b/samples/charts/data-chart/type-scatter-hd-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-scatter-spline-series/src/app/app.component.scss rename to samples/charts/data-chart/type-scatter-hd-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-scatter-hd-series/src/app/app.component.ts b/samples/charts/data-chart/type-scatter-hd-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-hd-series/src/app/app.component.ts rename to samples/charts/data-chart/type-scatter-hd-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-scatter-hd-series/src/app/app.module.ts b/samples/charts/data-chart/type-scatter-hd-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-hd-series/src/app/app.module.ts rename to samples/charts/data-chart/type-scatter-hd-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-scatter-hd-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-hd-series/src/main.ts b/samples/charts/data-chart/type-scatter-hd-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-scatter-hd-series/src/main.ts +++ b/samples/charts/data-chart/type-scatter-hd-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-scatter-hd-series/tsconfig.app.json b/samples/charts/data-chart/type-scatter-hd-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-scatter-hd-series/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/data-chart/type-scatter-hd-series/tsconfig.json b/samples/charts/data-chart/type-scatter-hd-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-scatter-hd-series/tsconfig.json +++ b/samples/charts/data-chart/type-scatter-hd-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-scatter-line-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-scatter-line-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-scatter-line-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-line-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-scatter-line-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-scatter-line-series/.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/data-chart/type-scatter-line-series/.stackblitzrc b/samples/charts/data-chart/type-scatter-line-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-scatter-line-series/.stackblitzrc +++ b/samples/charts/data-chart/type-scatter-line-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-line-series/angular.json b/samples/charts/data-chart/type-scatter-line-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-scatter-line-series/angular.json +++ b/samples/charts/data-chart/type-scatter-line-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-scatter-line-series/package.json b/samples/charts/data-chart/type-scatter-line-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-scatter-line-series/package.json +++ b/samples/charts/data-chart/type-scatter-line-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-scatter-line-series/sandbox.config.json b/samples/charts/data-chart/type-scatter-line-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-scatter-line-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-line-series/src/app/SampleScatterStats.ts b/samples/charts/data-chart/type-scatter-line-series/src/SampleScatterStats.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-line-series/src/app/SampleScatterStats.ts rename to samples/charts/data-chart/type-scatter-line-series/src/SampleScatterStats.ts diff --git a/samples/charts/data-chart/type-scatter-line-series/src/app/app.component.html b/samples/charts/data-chart/type-scatter-line-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-scatter-line-series/src/app/app.component.html rename to samples/charts/data-chart/type-scatter-line-series/src/app.component.html diff --git a/samples/charts/data-chart/type-shape-series/src/app/app.component.scss b/samples/charts/data-chart/type-scatter-line-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-shape-series/src/app/app.component.scss rename to samples/charts/data-chart/type-scatter-line-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-scatter-line-series/src/app/app.component.ts b/samples/charts/data-chart/type-scatter-line-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-line-series/src/app/app.component.ts rename to samples/charts/data-chart/type-scatter-line-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-scatter-line-series/src/app/app.module.ts b/samples/charts/data-chart/type-scatter-line-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-line-series/src/app/app.module.ts rename to samples/charts/data-chart/type-scatter-line-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-scatter-line-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-line-series/src/main.ts b/samples/charts/data-chart/type-scatter-line-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-scatter-line-series/src/main.ts +++ b/samples/charts/data-chart/type-scatter-line-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-scatter-line-series/tsconfig.app.json b/samples/charts/data-chart/type-scatter-line-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-scatter-line-series/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/data-chart/type-scatter-line-series/tsconfig.json b/samples/charts/data-chart/type-scatter-line-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-scatter-line-series/tsconfig.json +++ b/samples/charts/data-chart/type-scatter-line-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-scatter-point-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-scatter-point-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-scatter-point-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-point-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-scatter-point-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-scatter-point-series/.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/data-chart/type-scatter-point-series/.stackblitzrc b/samples/charts/data-chart/type-scatter-point-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-scatter-point-series/.stackblitzrc +++ b/samples/charts/data-chart/type-scatter-point-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-point-series/angular.json b/samples/charts/data-chart/type-scatter-point-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-scatter-point-series/angular.json +++ b/samples/charts/data-chart/type-scatter-point-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-scatter-point-series/package.json b/samples/charts/data-chart/type-scatter-point-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-scatter-point-series/package.json +++ b/samples/charts/data-chart/type-scatter-point-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-scatter-point-series/sandbox.config.json b/samples/charts/data-chart/type-scatter-point-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-scatter-point-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-point-series/src/app/SampleScatterStats.ts b/samples/charts/data-chart/type-scatter-point-series/src/SampleScatterStats.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-point-series/src/app/SampleScatterStats.ts rename to samples/charts/data-chart/type-scatter-point-series/src/SampleScatterStats.ts diff --git a/samples/charts/data-chart/type-scatter-point-series/src/app/app.component.html b/samples/charts/data-chart/type-scatter-point-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-scatter-point-series/src/app/app.component.html rename to samples/charts/data-chart/type-scatter-point-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-100-area-series/src/app/app.component.scss b/samples/charts/data-chart/type-scatter-point-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-100-area-series/src/app/app.component.scss rename to samples/charts/data-chart/type-scatter-point-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-scatter-point-series/src/app/app.component.ts b/samples/charts/data-chart/type-scatter-point-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-point-series/src/app/app.component.ts rename to samples/charts/data-chart/type-scatter-point-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-scatter-point-series/src/app/app.module.ts b/samples/charts/data-chart/type-scatter-point-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-point-series/src/app/app.module.ts rename to samples/charts/data-chart/type-scatter-point-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-scatter-point-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-point-series/src/main.ts b/samples/charts/data-chart/type-scatter-point-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-scatter-point-series/src/main.ts +++ b/samples/charts/data-chart/type-scatter-point-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-scatter-point-series/tsconfig.app.json b/samples/charts/data-chart/type-scatter-point-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-scatter-point-series/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/data-chart/type-scatter-point-series/tsconfig.json b/samples/charts/data-chart/type-scatter-point-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-scatter-point-series/tsconfig.json +++ b/samples/charts/data-chart/type-scatter-point-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-scatter-polygon-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-scatter-polygon-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-scatter-polygon-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-polygon-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-scatter-polygon-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-scatter-polygon-series/.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/data-chart/type-scatter-polygon-series/.stackblitzrc b/samples/charts/data-chart/type-scatter-polygon-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-scatter-polygon-series/.stackblitzrc +++ b/samples/charts/data-chart/type-scatter-polygon-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-polygon-series/angular.json b/samples/charts/data-chart/type-scatter-polygon-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-scatter-polygon-series/angular.json +++ b/samples/charts/data-chart/type-scatter-polygon-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-scatter-polygon-series/package.json b/samples/charts/data-chart/type-scatter-polygon-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-scatter-polygon-series/package.json +++ b/samples/charts/data-chart/type-scatter-polygon-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-scatter-polygon-series/sandbox.config.json b/samples/charts/data-chart/type-scatter-polygon-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-scatter-polygon-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-polygon-series/src/app/app.component.html b/samples/charts/data-chart/type-scatter-polygon-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-scatter-polygon-series/src/app/app.component.html rename to samples/charts/data-chart/type-scatter-polygon-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/src/app/app.component.scss b/samples/charts/data-chart/type-scatter-polygon-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-100-bar-series/src/app/app.component.scss rename to samples/charts/data-chart/type-scatter-polygon-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-scatter-polygon-series/src/app/app.component.ts b/samples/charts/data-chart/type-scatter-polygon-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-polygon-series/src/app/app.component.ts rename to samples/charts/data-chart/type-scatter-polygon-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-scatter-polygon-series/src/app/app.module.ts b/samples/charts/data-chart/type-scatter-polygon-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-polygon-series/src/app/app.module.ts rename to samples/charts/data-chart/type-scatter-polygon-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-scatter-polygon-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-polygon-series/src/main.ts b/samples/charts/data-chart/type-scatter-polygon-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-scatter-polygon-series/src/main.ts +++ b/samples/charts/data-chart/type-scatter-polygon-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-scatter-polygon-series/tsconfig.app.json b/samples/charts/data-chart/type-scatter-polygon-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-scatter-polygon-series/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/data-chart/type-scatter-polygon-series/tsconfig.json b/samples/charts/data-chart/type-scatter-polygon-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-scatter-polygon-series/tsconfig.json +++ b/samples/charts/data-chart/type-scatter-polygon-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-scatter-polyline-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-scatter-polyline-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-scatter-polyline-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-polyline-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-scatter-polyline-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-scatter-polyline-series/.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/data-chart/type-scatter-polyline-series/.stackblitzrc b/samples/charts/data-chart/type-scatter-polyline-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-scatter-polyline-series/.stackblitzrc +++ b/samples/charts/data-chart/type-scatter-polyline-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-polyline-series/angular.json b/samples/charts/data-chart/type-scatter-polyline-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-scatter-polyline-series/angular.json +++ b/samples/charts/data-chart/type-scatter-polyline-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-scatter-polyline-series/package.json b/samples/charts/data-chart/type-scatter-polyline-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-scatter-polyline-series/package.json +++ b/samples/charts/data-chart/type-scatter-polyline-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-scatter-polyline-series/sandbox.config.json b/samples/charts/data-chart/type-scatter-polyline-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-scatter-polyline-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-polyline-series/src/app/app.component.html b/samples/charts/data-chart/type-scatter-polyline-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-scatter-polyline-series/src/app/app.component.html rename to samples/charts/data-chart/type-scatter-polyline-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-100-column-series/src/app/app.component.scss b/samples/charts/data-chart/type-scatter-polyline-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-100-column-series/src/app/app.component.scss rename to samples/charts/data-chart/type-scatter-polyline-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-scatter-polyline-series/src/app/app.component.ts b/samples/charts/data-chart/type-scatter-polyline-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-polyline-series/src/app/app.component.ts rename to samples/charts/data-chart/type-scatter-polyline-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-scatter-polyline-series/src/app/app.module.ts b/samples/charts/data-chart/type-scatter-polyline-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-polyline-series/src/app/app.module.ts rename to samples/charts/data-chart/type-scatter-polyline-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-scatter-polyline-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-polyline-series/src/main.ts b/samples/charts/data-chart/type-scatter-polyline-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-scatter-polyline-series/src/main.ts +++ b/samples/charts/data-chart/type-scatter-polyline-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-scatter-polyline-series/tsconfig.app.json b/samples/charts/data-chart/type-scatter-polyline-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-scatter-polyline-series/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/data-chart/type-scatter-polyline-series/tsconfig.json b/samples/charts/data-chart/type-scatter-polyline-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-scatter-polyline-series/tsconfig.json +++ b/samples/charts/data-chart/type-scatter-polyline-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-scatter-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-scatter-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-scatter-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-scatter-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-scatter-series/.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/data-chart/type-scatter-series/.stackblitzrc b/samples/charts/data-chart/type-scatter-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-scatter-series/.stackblitzrc +++ b/samples/charts/data-chart/type-scatter-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-series/angular.json b/samples/charts/data-chart/type-scatter-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-scatter-series/angular.json +++ b/samples/charts/data-chart/type-scatter-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-scatter-series/package.json b/samples/charts/data-chart/type-scatter-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-scatter-series/package.json +++ b/samples/charts/data-chart/type-scatter-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-scatter-series/sandbox.config.json b/samples/charts/data-chart/type-scatter-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-scatter-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-series/src/app/SampleScatterStats.ts b/samples/charts/data-chart/type-scatter-series/src/SampleScatterStats.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-series/src/app/SampleScatterStats.ts rename to samples/charts/data-chart/type-scatter-series/src/SampleScatterStats.ts diff --git a/samples/charts/data-chart/type-scatter-series/src/app/app.component.html b/samples/charts/data-chart/type-scatter-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-scatter-series/src/app/app.component.html rename to samples/charts/data-chart/type-scatter-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-100-line-series/src/app/app.component.scss b/samples/charts/data-chart/type-scatter-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-100-line-series/src/app/app.component.scss rename to samples/charts/data-chart/type-scatter-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-scatter-series/src/app/app.component.ts b/samples/charts/data-chart/type-scatter-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-series/src/app/app.component.ts rename to samples/charts/data-chart/type-scatter-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-scatter-series/src/app/app.module.ts b/samples/charts/data-chart/type-scatter-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-series/src/app/app.module.ts rename to samples/charts/data-chart/type-scatter-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-scatter-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-scatter-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-scatter-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-scatter-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-series/src/main.ts b/samples/charts/data-chart/type-scatter-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-scatter-series/src/main.ts +++ b/samples/charts/data-chart/type-scatter-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-scatter-series/tsconfig.app.json b/samples/charts/data-chart/type-scatter-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-scatter-series/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/data-chart/type-scatter-series/tsconfig.json b/samples/charts/data-chart/type-scatter-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-scatter-series/tsconfig.json +++ b/samples/charts/data-chart/type-scatter-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-scatter-spline-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-scatter-spline-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-scatter-spline-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-spline-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-scatter-spline-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-scatter-spline-series/.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/data-chart/type-scatter-spline-series/.stackblitzrc b/samples/charts/data-chart/type-scatter-spline-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-scatter-spline-series/.stackblitzrc +++ b/samples/charts/data-chart/type-scatter-spline-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-spline-series/angular.json b/samples/charts/data-chart/type-scatter-spline-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-scatter-spline-series/angular.json +++ b/samples/charts/data-chart/type-scatter-spline-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-scatter-spline-series/package.json b/samples/charts/data-chart/type-scatter-spline-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-scatter-spline-series/package.json +++ b/samples/charts/data-chart/type-scatter-spline-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-scatter-spline-series/sandbox.config.json b/samples/charts/data-chart/type-scatter-spline-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-scatter-spline-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-scatter-spline-series/src/app/SampleScatterStats.ts b/samples/charts/data-chart/type-scatter-spline-series/src/SampleScatterStats.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-spline-series/src/app/SampleScatterStats.ts rename to samples/charts/data-chart/type-scatter-spline-series/src/SampleScatterStats.ts diff --git a/samples/charts/data-chart/type-scatter-spline-series/src/app/app.component.html b/samples/charts/data-chart/type-scatter-spline-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-scatter-spline-series/src/app/app.component.html rename to samples/charts/data-chart/type-scatter-spline-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/app/app.component.scss b/samples/charts/data-chart/type-scatter-spline-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-100-spline-area-series/src/app/app.component.scss rename to samples/charts/data-chart/type-scatter-spline-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-scatter-spline-series/src/app/app.component.ts b/samples/charts/data-chart/type-scatter-spline-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-spline-series/src/app/app.component.ts rename to samples/charts/data-chart/type-scatter-spline-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-scatter-spline-series/src/app/app.module.ts b/samples/charts/data-chart/type-scatter-spline-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-scatter-spline-series/src/app/app.module.ts rename to samples/charts/data-chart/type-scatter-spline-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-scatter-spline-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-scatter-spline-series/src/main.ts b/samples/charts/data-chart/type-scatter-spline-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-scatter-spline-series/src/main.ts +++ b/samples/charts/data-chart/type-scatter-spline-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-scatter-spline-series/tsconfig.app.json b/samples/charts/data-chart/type-scatter-spline-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-scatter-spline-series/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/data-chart/type-scatter-spline-series/tsconfig.json b/samples/charts/data-chart/type-scatter-spline-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-scatter-spline-series/tsconfig.json +++ b/samples/charts/data-chart/type-scatter-spline-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-shape-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-shape-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-shape-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-shape-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-shape-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-shape-series/.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/data-chart/type-shape-series/.stackblitzrc b/samples/charts/data-chart/type-shape-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-shape-series/.stackblitzrc +++ b/samples/charts/data-chart/type-shape-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-shape-series/angular.json b/samples/charts/data-chart/type-shape-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-shape-series/angular.json +++ b/samples/charts/data-chart/type-shape-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-shape-series/package.json b/samples/charts/data-chart/type-shape-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-shape-series/package.json +++ b/samples/charts/data-chart/type-shape-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-shape-series/sandbox.config.json b/samples/charts/data-chart/type-shape-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-shape-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-shape-series/src/app/SampleShapeData.ts b/samples/charts/data-chart/type-shape-series/src/SampleShapeData.ts similarity index 100% rename from samples/charts/data-chart/type-shape-series/src/app/SampleShapeData.ts rename to samples/charts/data-chart/type-shape-series/src/SampleShapeData.ts diff --git a/samples/charts/data-chart/type-shape-series/src/app/app.component.html b/samples/charts/data-chart/type-shape-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-shape-series/src/app/app.component.html rename to samples/charts/data-chart/type-shape-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/src/app/app.component.scss b/samples/charts/data-chart/type-shape-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-100-spline-series/src/app/app.component.scss rename to samples/charts/data-chart/type-shape-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-shape-series/src/app/app.component.ts b/samples/charts/data-chart/type-shape-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-shape-series/src/app/app.component.ts rename to samples/charts/data-chart/type-shape-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-shape-series/src/app/app.module.ts b/samples/charts/data-chart/type-shape-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-shape-series/src/app/app.module.ts rename to samples/charts/data-chart/type-shape-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-shape-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-shape-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-shape-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-shape-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-shape-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-shape-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-shape-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-shape-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-shape-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-shape-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-shape-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-shape-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-shape-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-shape-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-shape-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-shape-series/src/main.ts b/samples/charts/data-chart/type-shape-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-shape-series/src/main.ts +++ b/samples/charts/data-chart/type-shape-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-shape-series/tsconfig.app.json b/samples/charts/data-chart/type-shape-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-shape-series/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/data-chart/type-shape-series/tsconfig.json b/samples/charts/data-chart/type-shape-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-shape-series/tsconfig.json +++ b/samples/charts/data-chart/type-shape-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-100-area-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-100-area-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-area-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-area-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-100-area-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-area-series/.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/data-chart/type-stacked-100-area-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-100-area-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-100-area-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-100-area-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-area-series/angular.json b/samples/charts/data-chart/type-stacked-100-area-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-100-area-series/angular.json +++ b/samples/charts/data-chart/type-stacked-100-area-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-100-area-series/package.json b/samples/charts/data-chart/type-stacked-100-area-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-100-area-series/package.json +++ b/samples/charts/data-chart/type-stacked-100-area-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-100-area-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-100-area-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-100-area-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-area-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-100-area-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-area-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-100-area-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-100-area-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-100-area-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-100-area-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-100-area-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-area-series/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-100-area-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-area-series/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-100-area-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-100-area-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-100-area-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-area-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-100-area-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-100-area-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-100-area-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-area-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-100-area-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-100-area-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-area-series/src/main.ts b/samples/charts/data-chart/type-stacked-100-area-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-100-area-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-100-area-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-100-area-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-area-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-area-series/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/data-chart/type-stacked-100-area-series/tsconfig.json b/samples/charts/data-chart/type-stacked-100-area-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-100-area-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-100-area-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-100-bar-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-100-bar-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-bar-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-100-bar-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-bar-series/.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/data-chart/type-stacked-100-bar-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-100-bar-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-100-bar-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-100-bar-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/angular.json b/samples/charts/data-chart/type-stacked-100-bar-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-100-bar-series/angular.json +++ b/samples/charts/data-chart/type-stacked-100-bar-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/package.json b/samples/charts/data-chart/type-stacked-100-bar-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-100-bar-series/package.json +++ b/samples/charts/data-chart/type-stacked-100-bar-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-100-bar-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-100-bar-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-100-bar-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-bar-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-100-bar-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-100-bar-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-100-bar-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-100-bar-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-bar-series/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-100-bar-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-bar-series/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-100-bar-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-100-bar-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-bar-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-100-bar-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-100-bar-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-bar-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-100-bar-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-100-bar-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/src/main.ts b/samples/charts/data-chart/type-stacked-100-bar-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-100-bar-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-100-bar-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-100-bar-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-bar-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-bar-series/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/data-chart/type-stacked-100-bar-series/tsconfig.json b/samples/charts/data-chart/type-stacked-100-bar-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-100-bar-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-100-bar-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-100-column-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-100-column-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-column-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-column-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-100-column-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-column-series/.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/data-chart/type-stacked-100-column-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-100-column-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-100-column-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-100-column-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-column-series/angular.json b/samples/charts/data-chart/type-stacked-100-column-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-100-column-series/angular.json +++ b/samples/charts/data-chart/type-stacked-100-column-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-100-column-series/package.json b/samples/charts/data-chart/type-stacked-100-column-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-100-column-series/package.json +++ b/samples/charts/data-chart/type-stacked-100-column-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-100-column-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-100-column-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-100-column-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-column-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-100-column-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-column-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-100-column-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-100-column-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-100-column-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-100-column-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-100-column-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-column-series/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-100-column-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-column-series/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-100-column-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-100-column-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-100-column-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-column-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-100-column-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-100-column-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-100-column-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-column-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-100-column-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-100-column-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-column-series/src/main.ts b/samples/charts/data-chart/type-stacked-100-column-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-100-column-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-100-column-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-100-column-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-column-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-column-series/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/data-chart/type-stacked-100-column-series/tsconfig.json b/samples/charts/data-chart/type-stacked-100-column-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-100-column-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-100-column-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-100-line-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-100-line-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-line-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-line-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-100-line-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-line-series/.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/data-chart/type-stacked-100-line-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-100-line-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-100-line-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-100-line-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-line-series/angular.json b/samples/charts/data-chart/type-stacked-100-line-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-100-line-series/angular.json +++ b/samples/charts/data-chart/type-stacked-100-line-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-100-line-series/package.json b/samples/charts/data-chart/type-stacked-100-line-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-100-line-series/package.json +++ b/samples/charts/data-chart/type-stacked-100-line-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-100-line-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-100-line-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-100-line-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-line-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-100-line-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-line-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-100-line-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-100-line-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-100-line-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-100-line-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-100-line-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-line-series/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-100-line-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-line-series/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-100-line-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-100-line-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-100-line-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-line-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-100-line-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-100-line-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-100-line-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-line-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-100-line-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-100-line-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-line-series/src/main.ts b/samples/charts/data-chart/type-stacked-100-line-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-100-line-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-100-line-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-100-line-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-line-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-line-series/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/data-chart/type-stacked-100-line-series/tsconfig.json b/samples/charts/data-chart/type-stacked-100-line-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-100-line-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-100-line-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-100-spline-area-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-100-spline-area-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-spline-area-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-100-spline-area-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-spline-area-series/.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/data-chart/type-stacked-100-spline-area-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-100-spline-area-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-100-spline-area-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-100-spline-area-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/angular.json b/samples/charts/data-chart/type-stacked-100-spline-area-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-100-spline-area-series/angular.json +++ b/samples/charts/data-chart/type-stacked-100-spline-area-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/package.json b/samples/charts/data-chart/type-stacked-100-spline-area-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-100-spline-area-series/package.json +++ b/samples/charts/data-chart/type-stacked-100-spline-area-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-100-spline-area-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-area-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-spline-area-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-100-spline-area-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-100-spline-area-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-100-spline-area-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-spline-area-series/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-100-spline-area-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-spline-area-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-100-spline-area-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-spline-area-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-100-spline-area-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/main.ts b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-100-spline-area-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-100-spline-area-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-100-spline-area-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-spline-area-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-spline-area-series/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/data-chart/type-stacked-100-spline-area-series/tsconfig.json b/samples/charts/data-chart/type-stacked-100-spline-area-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-100-spline-area-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-100-spline-area-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-100-spline-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-100-spline-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-spline-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-100-spline-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-spline-series/.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/data-chart/type-stacked-100-spline-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-100-spline-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-100-spline-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-100-spline-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/angular.json b/samples/charts/data-chart/type-stacked-100-spline-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-100-spline-series/angular.json +++ b/samples/charts/data-chart/type-stacked-100-spline-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/package.json b/samples/charts/data-chart/type-stacked-100-spline-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-100-spline-series/package.json +++ b/samples/charts/data-chart/type-stacked-100-spline-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-100-spline-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-100-spline-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-spline-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-100-spline-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-100-spline-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-100-spline-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-100-spline-series/src/app.component.html diff --git a/samples/charts/data-chart/type-stacked-spline-series/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-100-spline-series/src/app.component.scss similarity index 100% rename from samples/charts/data-chart/type-stacked-spline-series/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-100-spline-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-100-spline-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-spline-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-100-spline-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-100-spline-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-100-spline-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-100-spline-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-100-spline-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/src/main.ts b/samples/charts/data-chart/type-stacked-100-spline-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-100-spline-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-100-spline-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-100-spline-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-100-spline-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-100-spline-series/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/data-chart/type-stacked-100-spline-series/tsconfig.json b/samples/charts/data-chart/type-stacked-100-spline-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-100-spline-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-100-spline-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-area-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-area-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-area-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-area-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-area-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-area-series/.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/data-chart/type-stacked-area-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-area-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-area-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-area-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-area-series/angular.json b/samples/charts/data-chart/type-stacked-area-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-area-series/angular.json +++ b/samples/charts/data-chart/type-stacked-area-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-area-series/package.json b/samples/charts/data-chart/type-stacked-area-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-area-series/package.json +++ b/samples/charts/data-chart/type-stacked-area-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-area-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-area-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-area-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-area-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-area-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-area-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-area-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-area-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-area-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-area-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-area-series/src/app.component.html diff --git a/samples/charts/doughnut-chart/animation/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-area-series/src/app.component.scss similarity index 100% rename from samples/charts/doughnut-chart/animation/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-area-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-area-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-area-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-area-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-area-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-area-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-area-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-area-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-area-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-area-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-area-series/src/main.ts b/samples/charts/data-chart/type-stacked-area-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-area-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-area-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-area-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-area-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-area-series/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/data-chart/type-stacked-area-series/tsconfig.json b/samples/charts/data-chart/type-stacked-area-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-area-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-area-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-bar-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-bar-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-bar-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-bar-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-bar-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-bar-series/.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/data-chart/type-stacked-bar-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-bar-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-bar-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-bar-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-bar-series/angular.json b/samples/charts/data-chart/type-stacked-bar-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-bar-series/angular.json +++ b/samples/charts/data-chart/type-stacked-bar-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-bar-series/package.json b/samples/charts/data-chart/type-stacked-bar-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-bar-series/package.json +++ b/samples/charts/data-chart/type-stacked-bar-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-bar-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-bar-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-bar-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-bar-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-bar-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-bar-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-bar-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-bar-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-bar-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-bar-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-bar-series/src/app.component.html diff --git a/samples/charts/doughnut-chart/explosion/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-bar-series/src/app.component.scss similarity index 100% rename from samples/charts/doughnut-chart/explosion/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-bar-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-bar-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-bar-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-bar-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-bar-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-bar-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-bar-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-bar-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-bar-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-bar-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-bar-series/src/main.ts b/samples/charts/data-chart/type-stacked-bar-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-bar-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-bar-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-bar-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-bar-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-bar-series/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/data-chart/type-stacked-bar-series/tsconfig.json b/samples/charts/data-chart/type-stacked-bar-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-bar-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-bar-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-column-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-column-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-column-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-column-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-column-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-column-series/.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/data-chart/type-stacked-column-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-column-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-column-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-column-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-column-series/angular.json b/samples/charts/data-chart/type-stacked-column-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-column-series/angular.json +++ b/samples/charts/data-chart/type-stacked-column-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-column-series/package.json b/samples/charts/data-chart/type-stacked-column-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-column-series/package.json +++ b/samples/charts/data-chart/type-stacked-column-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-column-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-column-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-column-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-column-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-column-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-column-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-column-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-column-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-column-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-column-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-column-series/src/app.component.html diff --git a/samples/charts/doughnut-chart/selection/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-column-series/src/app.component.scss similarity index 100% rename from samples/charts/doughnut-chart/selection/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-column-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-column-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-column-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-column-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-column-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-column-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-column-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-column-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-column-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-column-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-column-series/src/main.ts b/samples/charts/data-chart/type-stacked-column-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-column-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-column-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-column-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-column-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-column-series/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/data-chart/type-stacked-column-series/tsconfig.json b/samples/charts/data-chart/type-stacked-column-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-column-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-column-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-line-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-line-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-line-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-line-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-line-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-line-series/.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/data-chart/type-stacked-line-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-line-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-line-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-line-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-line-series/angular.json b/samples/charts/data-chart/type-stacked-line-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-line-series/angular.json +++ b/samples/charts/data-chart/type-stacked-line-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-line-series/package.json b/samples/charts/data-chart/type-stacked-line-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-line-series/package.json +++ b/samples/charts/data-chart/type-stacked-line-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-line-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-line-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-line-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-line-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-line-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-line-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-line-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-line-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-line-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-line-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-line-series/src/app.component.html diff --git a/samples/charts/financial-chart/annotations/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-line-series/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/annotations/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-line-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-line-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-line-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-line-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-line-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-line-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-line-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-line-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-line-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-line-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-line-series/src/main.ts b/samples/charts/data-chart/type-stacked-line-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-line-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-line-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-line-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-line-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-line-series/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/data-chart/type-stacked-line-series/tsconfig.json b/samples/charts/data-chart/type-stacked-line-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-line-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-line-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-spline-area-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-spline-area-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-spline-area-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-spline-area-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-spline-area-series/.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/data-chart/type-stacked-spline-area-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-spline-area-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-spline-area-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-spline-area-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/angular.json b/samples/charts/data-chart/type-stacked-spline-area-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-spline-area-series/angular.json +++ b/samples/charts/data-chart/type-stacked-spline-area-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/package.json b/samples/charts/data-chart/type-stacked-spline-area-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-spline-area-series/package.json +++ b/samples/charts/data-chart/type-stacked-spline-area-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-spline-area-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-spline-area-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-spline-area-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-spline-area-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-spline-area-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-spline-area-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-spline-area-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-spline-area-series/src/app.component.html diff --git a/samples/charts/financial-chart/axis-types/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-spline-area-series/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/axis-types/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-spline-area-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-spline-area-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-spline-area-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-spline-area-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-spline-area-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-spline-area-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-spline-area-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-spline-area-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/src/main.ts b/samples/charts/data-chart/type-stacked-spline-area-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-spline-area-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-spline-area-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-spline-area-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-spline-area-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-spline-area-series/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/data-chart/type-stacked-spline-area-series/tsconfig.json b/samples/charts/data-chart/type-stacked-spline-area-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-spline-area-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-spline-area-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/type-stacked-spline-series/.codesandbox/Dockerfile b/samples/charts/data-chart/type-stacked-spline-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/type-stacked-spline-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-spline-series/.codesandbox/tasks.json b/samples/charts/data-chart/type-stacked-spline-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/type-stacked-spline-series/.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/data-chart/type-stacked-spline-series/.stackblitzrc b/samples/charts/data-chart/type-stacked-spline-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/type-stacked-spline-series/.stackblitzrc +++ b/samples/charts/data-chart/type-stacked-spline-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-spline-series/angular.json b/samples/charts/data-chart/type-stacked-spline-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/data-chart/type-stacked-spline-series/angular.json +++ b/samples/charts/data-chart/type-stacked-spline-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/type-stacked-spline-series/package.json b/samples/charts/data-chart/type-stacked-spline-series/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/data-chart/type-stacked-spline-series/package.json +++ b/samples/charts/data-chart/type-stacked-spline-series/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/type-stacked-spline-series/sandbox.config.json b/samples/charts/data-chart/type-stacked-spline-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/data-chart/type-stacked-spline-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/type-stacked-spline-series/src/app/SharedData.ts b/samples/charts/data-chart/type-stacked-spline-series/src/SharedData.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-spline-series/src/app/SharedData.ts rename to samples/charts/data-chart/type-stacked-spline-series/src/SharedData.ts diff --git a/samples/charts/data-chart/type-stacked-spline-series/src/app/app.component.html b/samples/charts/data-chart/type-stacked-spline-series/src/app.component.html similarity index 100% rename from samples/charts/data-chart/type-stacked-spline-series/src/app/app.component.html rename to samples/charts/data-chart/type-stacked-spline-series/src/app.component.html diff --git a/samples/charts/financial-chart/high-frequency/src/app/app.component.scss b/samples/charts/data-chart/type-stacked-spline-series/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/high-frequency/src/app/app.component.scss rename to samples/charts/data-chart/type-stacked-spline-series/src/app.component.scss diff --git a/samples/charts/data-chart/type-stacked-spline-series/src/app/app.component.ts b/samples/charts/data-chart/type-stacked-spline-series/src/app.component.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-spline-series/src/app/app.component.ts rename to samples/charts/data-chart/type-stacked-spline-series/src/app.component.ts diff --git a/samples/charts/data-chart/type-stacked-spline-series/src/app/app.module.ts b/samples/charts/data-chart/type-stacked-spline-series/src/app.module.ts similarity index 100% rename from samples/charts/data-chart/type-stacked-spline-series/src/app/app.module.ts rename to samples/charts/data-chart/type-stacked-spline-series/src/app.module.ts diff --git a/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.app.json b/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.base.json b/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.spec.json b/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.worker.json b/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/type-stacked-spline-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/type-stacked-spline-series/src/main.ts b/samples/charts/data-chart/type-stacked-spline-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/data-chart/type-stacked-spline-series/src/main.ts +++ b/samples/charts/data-chart/type-stacked-spline-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/data-chart/type-stacked-spline-series/tsconfig.app.json b/samples/charts/data-chart/type-stacked-spline-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/type-stacked-spline-series/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/data-chart/type-stacked-spline-series/tsconfig.json b/samples/charts/data-chart/type-stacked-spline-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/type-stacked-spline-series/tsconfig.json +++ b/samples/charts/data-chart/type-stacked-spline-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/data-chart/waterfall-chart/.codesandbox/Dockerfile b/samples/charts/data-chart/waterfall-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-chart/waterfall-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-chart/waterfall-chart/.codesandbox/tasks.json b/samples/charts/data-chart/waterfall-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-chart/waterfall-chart/.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/data-chart/waterfall-chart/.stackblitzrc b/samples/charts/data-chart/waterfall-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/data-chart/waterfall-chart/.stackblitzrc +++ b/samples/charts/data-chart/waterfall-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-chart/waterfall-chart/angular.json b/samples/charts/data-chart/waterfall-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/data-chart/waterfall-chart/angular.json +++ b/samples/charts/data-chart/waterfall-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/data-chart/waterfall-chart/package.json b/samples/charts/data-chart/waterfall-chart/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/data-chart/waterfall-chart/package.json +++ b/samples/charts/data-chart/waterfall-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/data-chart/waterfall-chart/sandbox.config.json b/samples/charts/data-chart/waterfall-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/data-chart/waterfall-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/data-chart/waterfall-chart/src/config/tsconfig-es5.app.json b/samples/charts/data-chart/waterfall-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/data-chart/waterfall-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.app.json b/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.base.json b/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.spec.json b/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.worker.json b/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/data-chart/waterfall-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/data-chart/waterfall-chart/tsconfig.app.json b/samples/charts/data-chart/waterfall-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/waterfall-chart/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/data-chart/waterfall-chart/tsconfig.json b/samples/charts/data-chart/waterfall-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/data-chart/waterfall-chart/tsconfig.json +++ b/samples/charts/data-chart/waterfall-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/doughnut-chart/animation/.codesandbox/Dockerfile b/samples/charts/doughnut-chart/animation/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/doughnut-chart/animation/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/doughnut-chart/animation/.codesandbox/tasks.json b/samples/charts/doughnut-chart/animation/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/doughnut-chart/animation/.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/doughnut-chart/animation/.stackblitzrc b/samples/charts/doughnut-chart/animation/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/doughnut-chart/animation/.stackblitzrc +++ b/samples/charts/doughnut-chart/animation/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/animation/angular.json b/samples/charts/doughnut-chart/animation/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/doughnut-chart/animation/angular.json +++ b/samples/charts/doughnut-chart/animation/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/doughnut-chart/animation/package.json b/samples/charts/doughnut-chart/animation/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/doughnut-chart/animation/package.json +++ b/samples/charts/doughnut-chart/animation/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/doughnut-chart/animation/sandbox.config.json b/samples/charts/doughnut-chart/animation/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/doughnut-chart/animation/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/animation/src/app/app.component.html b/samples/charts/doughnut-chart/animation/src/app.component.html similarity index 100% rename from samples/charts/doughnut-chart/animation/src/app/app.component.html rename to samples/charts/doughnut-chart/animation/src/app.component.html diff --git a/samples/charts/financial-chart/high-volume/src/app/app.component.scss b/samples/charts/doughnut-chart/animation/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/high-volume/src/app/app.component.scss rename to samples/charts/doughnut-chart/animation/src/app.component.scss diff --git a/samples/charts/doughnut-chart/animation/src/app/app.component.ts b/samples/charts/doughnut-chart/animation/src/app.component.ts similarity index 100% rename from samples/charts/doughnut-chart/animation/src/app/app.component.ts rename to samples/charts/doughnut-chart/animation/src/app.component.ts diff --git a/samples/charts/doughnut-chart/animation/src/app/app.module.ts b/samples/charts/doughnut-chart/animation/src/app.module.ts similarity index 100% rename from samples/charts/doughnut-chart/animation/src/app/app.module.ts rename to samples/charts/doughnut-chart/animation/src/app.module.ts diff --git a/samples/charts/doughnut-chart/animation/src/config/tsconfig-es5.app.json b/samples/charts/doughnut-chart/animation/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/doughnut-chart/animation/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/doughnut-chart/animation/src/config/tsconfig.app.json b/samples/charts/doughnut-chart/animation/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/doughnut-chart/animation/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/doughnut-chart/animation/src/config/tsconfig.base.json b/samples/charts/doughnut-chart/animation/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/doughnut-chart/animation/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/doughnut-chart/animation/src/config/tsconfig.spec.json b/samples/charts/doughnut-chart/animation/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/doughnut-chart/animation/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/doughnut-chart/animation/src/config/tsconfig.worker.json b/samples/charts/doughnut-chart/animation/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/doughnut-chart/animation/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/doughnut-chart/animation/src/main.ts b/samples/charts/doughnut-chart/animation/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/doughnut-chart/animation/src/main.ts +++ b/samples/charts/doughnut-chart/animation/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/doughnut-chart/animation/tsconfig.app.json b/samples/charts/doughnut-chart/animation/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/doughnut-chart/animation/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/doughnut-chart/animation/tsconfig.json b/samples/charts/doughnut-chart/animation/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/doughnut-chart/animation/tsconfig.json +++ b/samples/charts/doughnut-chart/animation/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/doughnut-chart/explosion/.codesandbox/Dockerfile b/samples/charts/doughnut-chart/explosion/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/doughnut-chart/explosion/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/doughnut-chart/explosion/.codesandbox/tasks.json b/samples/charts/doughnut-chart/explosion/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/doughnut-chart/explosion/.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/doughnut-chart/explosion/.stackblitzrc b/samples/charts/doughnut-chart/explosion/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/doughnut-chart/explosion/.stackblitzrc +++ b/samples/charts/doughnut-chart/explosion/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/explosion/angular.json b/samples/charts/doughnut-chart/explosion/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/doughnut-chart/explosion/angular.json +++ b/samples/charts/doughnut-chart/explosion/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/doughnut-chart/explosion/package.json b/samples/charts/doughnut-chart/explosion/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/doughnut-chart/explosion/package.json +++ b/samples/charts/doughnut-chart/explosion/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/doughnut-chart/explosion/sandbox.config.json b/samples/charts/doughnut-chart/explosion/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/doughnut-chart/explosion/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/explosion/src/app/app.component.html b/samples/charts/doughnut-chart/explosion/src/app.component.html similarity index 100% rename from samples/charts/doughnut-chart/explosion/src/app/app.component.html rename to samples/charts/doughnut-chart/explosion/src/app.component.html diff --git a/samples/charts/financial-chart/indicator-customization/src/app/app.component.scss b/samples/charts/doughnut-chart/explosion/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/indicator-customization/src/app/app.component.scss rename to samples/charts/doughnut-chart/explosion/src/app.component.scss diff --git a/samples/charts/doughnut-chart/explosion/src/app/app.component.ts b/samples/charts/doughnut-chart/explosion/src/app.component.ts similarity index 100% rename from samples/charts/doughnut-chart/explosion/src/app/app.component.ts rename to samples/charts/doughnut-chart/explosion/src/app.component.ts diff --git a/samples/charts/doughnut-chart/explosion/src/app/app.module.ts b/samples/charts/doughnut-chart/explosion/src/app.module.ts similarity index 100% rename from samples/charts/doughnut-chart/explosion/src/app/app.module.ts rename to samples/charts/doughnut-chart/explosion/src/app.module.ts diff --git a/samples/charts/doughnut-chart/explosion/src/config/tsconfig-es5.app.json b/samples/charts/doughnut-chart/explosion/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/doughnut-chart/explosion/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/doughnut-chart/explosion/src/config/tsconfig.app.json b/samples/charts/doughnut-chart/explosion/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/doughnut-chart/explosion/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/doughnut-chart/explosion/src/config/tsconfig.base.json b/samples/charts/doughnut-chart/explosion/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/doughnut-chart/explosion/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/doughnut-chart/explosion/src/config/tsconfig.spec.json b/samples/charts/doughnut-chart/explosion/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/doughnut-chart/explosion/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/doughnut-chart/explosion/src/config/tsconfig.worker.json b/samples/charts/doughnut-chart/explosion/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/doughnut-chart/explosion/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/doughnut-chart/explosion/src/main.ts b/samples/charts/doughnut-chart/explosion/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/doughnut-chart/explosion/src/main.ts +++ b/samples/charts/doughnut-chart/explosion/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/doughnut-chart/explosion/tsconfig.app.json b/samples/charts/doughnut-chart/explosion/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/doughnut-chart/explosion/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/doughnut-chart/explosion/tsconfig.json b/samples/charts/doughnut-chart/explosion/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/doughnut-chart/explosion/tsconfig.json +++ b/samples/charts/doughnut-chart/explosion/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/doughnut-chart/legend/.codesandbox/Dockerfile b/samples/charts/doughnut-chart/legend/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/doughnut-chart/legend/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/doughnut-chart/legend/.codesandbox/tasks.json b/samples/charts/doughnut-chart/legend/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/doughnut-chart/legend/.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/doughnut-chart/legend/.stackblitzrc b/samples/charts/doughnut-chart/legend/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/doughnut-chart/legend/.stackblitzrc +++ b/samples/charts/doughnut-chart/legend/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/legend/angular.json b/samples/charts/doughnut-chart/legend/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/doughnut-chart/legend/angular.json +++ b/samples/charts/doughnut-chart/legend/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/doughnut-chart/legend/package.json b/samples/charts/doughnut-chart/legend/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/doughnut-chart/legend/package.json +++ b/samples/charts/doughnut-chart/legend/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/doughnut-chart/legend/sandbox.config.json b/samples/charts/doughnut-chart/legend/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/doughnut-chart/legend/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/legend/src/config/tsconfig-es5.app.json b/samples/charts/doughnut-chart/legend/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/doughnut-chart/legend/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/doughnut-chart/legend/src/config/tsconfig.app.json b/samples/charts/doughnut-chart/legend/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/doughnut-chart/legend/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/doughnut-chart/legend/src/config/tsconfig.base.json b/samples/charts/doughnut-chart/legend/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/doughnut-chart/legend/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/doughnut-chart/legend/src/config/tsconfig.spec.json b/samples/charts/doughnut-chart/legend/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/doughnut-chart/legend/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/doughnut-chart/legend/src/config/tsconfig.worker.json b/samples/charts/doughnut-chart/legend/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/doughnut-chart/legend/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/doughnut-chart/legend/tsconfig.app.json b/samples/charts/doughnut-chart/legend/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/doughnut-chart/legend/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/doughnut-chart/legend/tsconfig.json b/samples/charts/doughnut-chart/legend/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/doughnut-chart/legend/tsconfig.json +++ b/samples/charts/doughnut-chart/legend/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/doughnut-chart/overview/.codesandbox/Dockerfile b/samples/charts/doughnut-chart/overview/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/doughnut-chart/overview/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/doughnut-chart/overview/.codesandbox/tasks.json b/samples/charts/doughnut-chart/overview/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/doughnut-chart/overview/.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/doughnut-chart/overview/.stackblitzrc b/samples/charts/doughnut-chart/overview/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/doughnut-chart/overview/.stackblitzrc +++ b/samples/charts/doughnut-chart/overview/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/overview/angular.json b/samples/charts/doughnut-chart/overview/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/doughnut-chart/overview/angular.json +++ b/samples/charts/doughnut-chart/overview/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/doughnut-chart/overview/package.json b/samples/charts/doughnut-chart/overview/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/doughnut-chart/overview/package.json +++ b/samples/charts/doughnut-chart/overview/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/doughnut-chart/overview/sandbox.config.json b/samples/charts/doughnut-chart/overview/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/doughnut-chart/overview/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/overview/src/config/tsconfig-es5.app.json b/samples/charts/doughnut-chart/overview/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/doughnut-chart/overview/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/doughnut-chart/overview/src/config/tsconfig.app.json b/samples/charts/doughnut-chart/overview/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/doughnut-chart/overview/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/doughnut-chart/overview/src/config/tsconfig.base.json b/samples/charts/doughnut-chart/overview/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/doughnut-chart/overview/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/doughnut-chart/overview/src/config/tsconfig.spec.json b/samples/charts/doughnut-chart/overview/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/doughnut-chart/overview/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/doughnut-chart/overview/src/config/tsconfig.worker.json b/samples/charts/doughnut-chart/overview/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/doughnut-chart/overview/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/doughnut-chart/overview/tsconfig.app.json b/samples/charts/doughnut-chart/overview/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/doughnut-chart/overview/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/doughnut-chart/overview/tsconfig.json b/samples/charts/doughnut-chart/overview/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/doughnut-chart/overview/tsconfig.json +++ b/samples/charts/doughnut-chart/overview/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/doughnut-chart/rings/.codesandbox/Dockerfile b/samples/charts/doughnut-chart/rings/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/doughnut-chart/rings/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/doughnut-chart/rings/.codesandbox/tasks.json b/samples/charts/doughnut-chart/rings/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/doughnut-chart/rings/.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/doughnut-chart/rings/.stackblitzrc b/samples/charts/doughnut-chart/rings/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/doughnut-chart/rings/.stackblitzrc +++ b/samples/charts/doughnut-chart/rings/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/rings/angular.json b/samples/charts/doughnut-chart/rings/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/doughnut-chart/rings/angular.json +++ b/samples/charts/doughnut-chart/rings/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/doughnut-chart/rings/package.json b/samples/charts/doughnut-chart/rings/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/doughnut-chart/rings/package.json +++ b/samples/charts/doughnut-chart/rings/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/doughnut-chart/rings/sandbox.config.json b/samples/charts/doughnut-chart/rings/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/doughnut-chart/rings/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/rings/src/config/tsconfig-es5.app.json b/samples/charts/doughnut-chart/rings/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/doughnut-chart/rings/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/doughnut-chart/rings/src/config/tsconfig.app.json b/samples/charts/doughnut-chart/rings/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/doughnut-chart/rings/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/doughnut-chart/rings/src/config/tsconfig.base.json b/samples/charts/doughnut-chart/rings/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/doughnut-chart/rings/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/doughnut-chart/rings/src/config/tsconfig.spec.json b/samples/charts/doughnut-chart/rings/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/doughnut-chart/rings/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/doughnut-chart/rings/src/config/tsconfig.worker.json b/samples/charts/doughnut-chart/rings/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/doughnut-chart/rings/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/doughnut-chart/rings/tsconfig.app.json b/samples/charts/doughnut-chart/rings/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/doughnut-chart/rings/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/doughnut-chart/rings/tsconfig.json b/samples/charts/doughnut-chart/rings/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/doughnut-chart/rings/tsconfig.json +++ b/samples/charts/doughnut-chart/rings/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/doughnut-chart/selection/.codesandbox/Dockerfile b/samples/charts/doughnut-chart/selection/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/doughnut-chart/selection/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/doughnut-chart/selection/.codesandbox/tasks.json b/samples/charts/doughnut-chart/selection/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/doughnut-chart/selection/.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/doughnut-chart/selection/.stackblitzrc b/samples/charts/doughnut-chart/selection/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/doughnut-chart/selection/.stackblitzrc +++ b/samples/charts/doughnut-chart/selection/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/selection/angular.json b/samples/charts/doughnut-chart/selection/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/doughnut-chart/selection/angular.json +++ b/samples/charts/doughnut-chart/selection/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/doughnut-chart/selection/package.json b/samples/charts/doughnut-chart/selection/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/doughnut-chart/selection/package.json +++ b/samples/charts/doughnut-chart/selection/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/doughnut-chart/selection/sandbox.config.json b/samples/charts/doughnut-chart/selection/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/doughnut-chart/selection/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/doughnut-chart/selection/src/app/app.component.html b/samples/charts/doughnut-chart/selection/src/app.component.html similarity index 100% rename from samples/charts/doughnut-chart/selection/src/app/app.component.html rename to samples/charts/doughnut-chart/selection/src/app.component.html diff --git a/samples/charts/financial-chart/indicator-types/src/app/app.component.scss b/samples/charts/doughnut-chart/selection/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/indicator-types/src/app/app.component.scss rename to samples/charts/doughnut-chart/selection/src/app.component.scss diff --git a/samples/charts/doughnut-chart/selection/src/app/app.component.ts b/samples/charts/doughnut-chart/selection/src/app.component.ts similarity index 100% rename from samples/charts/doughnut-chart/selection/src/app/app.component.ts rename to samples/charts/doughnut-chart/selection/src/app.component.ts diff --git a/samples/charts/doughnut-chart/selection/src/app/app.module.ts b/samples/charts/doughnut-chart/selection/src/app.module.ts similarity index 100% rename from samples/charts/doughnut-chart/selection/src/app/app.module.ts rename to samples/charts/doughnut-chart/selection/src/app.module.ts diff --git a/samples/charts/doughnut-chart/selection/src/config/tsconfig-es5.app.json b/samples/charts/doughnut-chart/selection/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/doughnut-chart/selection/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/doughnut-chart/selection/src/config/tsconfig.app.json b/samples/charts/doughnut-chart/selection/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/doughnut-chart/selection/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/doughnut-chart/selection/src/config/tsconfig.base.json b/samples/charts/doughnut-chart/selection/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/doughnut-chart/selection/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/doughnut-chart/selection/src/config/tsconfig.spec.json b/samples/charts/doughnut-chart/selection/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/doughnut-chart/selection/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/doughnut-chart/selection/src/config/tsconfig.worker.json b/samples/charts/doughnut-chart/selection/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/doughnut-chart/selection/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/doughnut-chart/selection/src/main.ts b/samples/charts/doughnut-chart/selection/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/doughnut-chart/selection/src/main.ts +++ b/samples/charts/doughnut-chart/selection/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/doughnut-chart/selection/tsconfig.app.json b/samples/charts/doughnut-chart/selection/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/doughnut-chart/selection/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/doughnut-chart/selection/tsconfig.json b/samples/charts/doughnut-chart/selection/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/doughnut-chart/selection/tsconfig.json +++ b/samples/charts/doughnut-chart/selection/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/annotations/.codesandbox/Dockerfile b/samples/charts/financial-chart/annotations/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/annotations/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/annotations/.codesandbox/tasks.json b/samples/charts/financial-chart/annotations/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/annotations/.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/financial-chart/annotations/.stackblitzrc b/samples/charts/financial-chart/annotations/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/annotations/.stackblitzrc +++ b/samples/charts/financial-chart/annotations/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/annotations/angular.json b/samples/charts/financial-chart/annotations/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/annotations/angular.json +++ b/samples/charts/financial-chart/annotations/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/annotations/package.json b/samples/charts/financial-chart/annotations/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/annotations/package.json +++ b/samples/charts/financial-chart/annotations/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/annotations/sandbox.config.json b/samples/charts/financial-chart/annotations/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/annotations/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/annotations/src/app/StocksUtility.ts b/samples/charts/financial-chart/annotations/src/StocksUtility.ts similarity index 100% rename from samples/charts/financial-chart/annotations/src/app/StocksUtility.ts rename to samples/charts/financial-chart/annotations/src/StocksUtility.ts diff --git a/samples/charts/financial-chart/annotations/src/app/app.component.html b/samples/charts/financial-chart/annotations/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/annotations/src/app/app.component.html rename to samples/charts/financial-chart/annotations/src/app.component.html diff --git a/samples/charts/financial-chart/multiple-data/src/app/app.component.scss b/samples/charts/financial-chart/annotations/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/multiple-data/src/app/app.component.scss rename to samples/charts/financial-chart/annotations/src/app.component.scss diff --git a/samples/charts/financial-chart/annotations/src/app/app.component.ts b/samples/charts/financial-chart/annotations/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/annotations/src/app/app.component.ts rename to samples/charts/financial-chart/annotations/src/app.component.ts diff --git a/samples/charts/financial-chart/annotations/src/app/app.module.ts b/samples/charts/financial-chart/annotations/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/annotations/src/app/app.module.ts rename to samples/charts/financial-chart/annotations/src/app.module.ts diff --git a/samples/charts/financial-chart/annotations/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/annotations/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/annotations/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/annotations/src/config/tsconfig.app.json b/samples/charts/financial-chart/annotations/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/annotations/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/annotations/src/config/tsconfig.base.json b/samples/charts/financial-chart/annotations/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/annotations/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/annotations/src/config/tsconfig.spec.json b/samples/charts/financial-chart/annotations/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/annotations/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/annotations/src/config/tsconfig.worker.json b/samples/charts/financial-chart/annotations/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/annotations/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/annotations/src/main.ts b/samples/charts/financial-chart/annotations/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/annotations/src/main.ts +++ b/samples/charts/financial-chart/annotations/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/annotations/tsconfig.app.json b/samples/charts/financial-chart/annotations/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/annotations/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/financial-chart/annotations/tsconfig.json b/samples/charts/financial-chart/annotations/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/annotations/tsconfig.json +++ b/samples/charts/financial-chart/annotations/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/axis-types/.codesandbox/Dockerfile b/samples/charts/financial-chart/axis-types/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/axis-types/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/axis-types/.codesandbox/tasks.json b/samples/charts/financial-chart/axis-types/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/axis-types/.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/financial-chart/axis-types/.stackblitzrc b/samples/charts/financial-chart/axis-types/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/axis-types/.stackblitzrc +++ b/samples/charts/financial-chart/axis-types/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/axis-types/angular.json b/samples/charts/financial-chart/axis-types/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/axis-types/angular.json +++ b/samples/charts/financial-chart/axis-types/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/axis-types/package.json b/samples/charts/financial-chart/axis-types/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/axis-types/package.json +++ b/samples/charts/financial-chart/axis-types/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/axis-types/sandbox.config.json b/samples/charts/financial-chart/axis-types/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/axis-types/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/axis-types/src/app/FinancialDataService.ts b/samples/charts/financial-chart/axis-types/src/FinancialDataService.ts similarity index 100% rename from samples/charts/financial-chart/axis-types/src/app/FinancialDataService.ts rename to samples/charts/financial-chart/axis-types/src/FinancialDataService.ts diff --git a/samples/charts/financial-chart/axis-types/src/app/app.component.html b/samples/charts/financial-chart/axis-types/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/axis-types/src/app/app.component.html rename to samples/charts/financial-chart/axis-types/src/app.component.html diff --git a/samples/charts/financial-chart/multiple-feeds/src/app/app.component.scss b/samples/charts/financial-chart/axis-types/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/multiple-feeds/src/app/app.component.scss rename to samples/charts/financial-chart/axis-types/src/app.component.scss diff --git a/samples/charts/financial-chart/axis-types/src/app/app.component.ts b/samples/charts/financial-chart/axis-types/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/axis-types/src/app/app.component.ts rename to samples/charts/financial-chart/axis-types/src/app.component.ts diff --git a/samples/charts/financial-chart/axis-types/src/app/app.module.ts b/samples/charts/financial-chart/axis-types/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/axis-types/src/app/app.module.ts rename to samples/charts/financial-chart/axis-types/src/app.module.ts diff --git a/samples/charts/financial-chart/axis-types/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/axis-types/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/axis-types/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/axis-types/src/config/tsconfig.app.json b/samples/charts/financial-chart/axis-types/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/axis-types/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/axis-types/src/config/tsconfig.base.json b/samples/charts/financial-chart/axis-types/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/axis-types/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/axis-types/src/config/tsconfig.spec.json b/samples/charts/financial-chart/axis-types/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/axis-types/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/axis-types/src/config/tsconfig.worker.json b/samples/charts/financial-chart/axis-types/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/axis-types/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/axis-types/src/main.ts b/samples/charts/financial-chart/axis-types/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/axis-types/src/main.ts +++ b/samples/charts/financial-chart/axis-types/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/axis-types/tsconfig.app.json b/samples/charts/financial-chart/axis-types/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/axis-types/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/financial-chart/axis-types/tsconfig.json b/samples/charts/financial-chart/axis-types/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/axis-types/tsconfig.json +++ b/samples/charts/financial-chart/axis-types/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/data-legend-formatting-currency/.codesandbox/Dockerfile b/samples/charts/financial-chart/data-legend-formatting-currency/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/data-legend-formatting-currency/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/data-legend-formatting-currency/.codesandbox/tasks.json b/samples/charts/financial-chart/data-legend-formatting-currency/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/data-legend-formatting-currency/.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/financial-chart/data-legend-formatting-currency/.stackblitzrc b/samples/charts/financial-chart/data-legend-formatting-currency/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/data-legend-formatting-currency/.stackblitzrc +++ b/samples/charts/financial-chart/data-legend-formatting-currency/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-legend-formatting-currency/angular.json b/samples/charts/financial-chart/data-legend-formatting-currency/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/financial-chart/data-legend-formatting-currency/angular.json +++ b/samples/charts/financial-chart/data-legend-formatting-currency/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/data-legend-formatting-currency/package.json b/samples/charts/financial-chart/data-legend-formatting-currency/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/financial-chart/data-legend-formatting-currency/package.json +++ b/samples/charts/financial-chart/data-legend-formatting-currency/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/data-legend-formatting-currency/sandbox.config.json b/samples/charts/financial-chart/data-legend-formatting-currency/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/financial-chart/data-legend-formatting-currency/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-legend-formatting-currency/src/app.component.ts b/samples/charts/financial-chart/data-legend-formatting-currency/src/app.component.ts index b97b8e7df..6fcf7c128 100644 --- a/samples/charts/financial-chart/data-legend-formatting-currency/src/app.component.ts +++ b/samples/charts/financial-chart/data-legend-formatting-currency/src/app.component.ts @@ -17,11 +17,11 @@ export class AppComponent implements AfterViewInit @ViewChild("chart", { static: true } ) private chart: IgxFinancialChartComponent private _multipleStocks: MultipleStocks = null; - private _multipleStocksFetching: boolean = false; + private _isFetching: boolean = false; public get multipleStocks(): MultipleStocks { - if (this._multipleStocks == null && !this._multipleStocksFetching) + if (this._multipleStocks == null && !this._isFetching) { - this._multipleStocksFetching = true; + this._isFetching = true; ( async () => { this._multipleStocks = await (await MultipleStocks.fetch()); this._detector.markForCheck(); })(); } return this._multipleStocks; diff --git a/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.app.json b/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.base.json b/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.spec.json b/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.worker.json b/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/data-legend-formatting-currency/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/data-legend-formatting-currency/tsconfig.app.json b/samples/charts/financial-chart/data-legend-formatting-currency/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/data-legend-formatting-currency/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/financial-chart/data-legend-formatting-currency/tsconfig.json b/samples/charts/financial-chart/data-legend-formatting-currency/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/data-legend-formatting-currency/tsconfig.json +++ b/samples/charts/financial-chart/data-legend-formatting-currency/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/data-legend-styling-props/.codesandbox/Dockerfile b/samples/charts/financial-chart/data-legend-styling-props/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/data-legend-styling-props/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/data-legend-styling-props/.codesandbox/tasks.json b/samples/charts/financial-chart/data-legend-styling-props/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/data-legend-styling-props/.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/financial-chart/data-legend-styling-props/.stackblitzrc b/samples/charts/financial-chart/data-legend-styling-props/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/data-legend-styling-props/.stackblitzrc +++ b/samples/charts/financial-chart/data-legend-styling-props/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-legend-styling-props/angular.json b/samples/charts/financial-chart/data-legend-styling-props/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/financial-chart/data-legend-styling-props/angular.json +++ b/samples/charts/financial-chart/data-legend-styling-props/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/data-legend-styling-props/package.json b/samples/charts/financial-chart/data-legend-styling-props/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/financial-chart/data-legend-styling-props/package.json +++ b/samples/charts/financial-chart/data-legend-styling-props/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/data-legend-styling-props/sandbox.config.json b/samples/charts/financial-chart/data-legend-styling-props/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/financial-chart/data-legend-styling-props/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.app.json b/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.base.json b/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.spec.json b/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.worker.json b/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/data-legend-styling-props/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/data-legend-styling-props/tsconfig.app.json b/samples/charts/financial-chart/data-legend-styling-props/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/data-legend-styling-props/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/financial-chart/data-legend-styling-props/tsconfig.json b/samples/charts/financial-chart/data-legend-styling-props/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/data-legend-styling-props/tsconfig.json +++ b/samples/charts/financial-chart/data-legend-styling-props/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/data-legend/.codesandbox/Dockerfile b/samples/charts/financial-chart/data-legend/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/data-legend/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/data-legend/.codesandbox/tasks.json b/samples/charts/financial-chart/data-legend/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/data-legend/.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/financial-chart/data-legend/.stackblitzrc b/samples/charts/financial-chart/data-legend/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/data-legend/.stackblitzrc +++ b/samples/charts/financial-chart/data-legend/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-legend/angular.json b/samples/charts/financial-chart/data-legend/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/financial-chart/data-legend/angular.json +++ b/samples/charts/financial-chart/data-legend/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/data-legend/package.json b/samples/charts/financial-chart/data-legend/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/financial-chart/data-legend/package.json +++ b/samples/charts/financial-chart/data-legend/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/data-legend/sandbox.config.json b/samples/charts/financial-chart/data-legend/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/financial-chart/data-legend/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-legend/src/app.component.ts b/samples/charts/financial-chart/data-legend/src/app.component.ts index b97b8e7df..6fcf7c128 100644 --- a/samples/charts/financial-chart/data-legend/src/app.component.ts +++ b/samples/charts/financial-chart/data-legend/src/app.component.ts @@ -17,11 +17,11 @@ export class AppComponent implements AfterViewInit @ViewChild("chart", { static: true } ) private chart: IgxFinancialChartComponent private _multipleStocks: MultipleStocks = null; - private _multipleStocksFetching: boolean = false; + private _isFetching: boolean = false; public get multipleStocks(): MultipleStocks { - if (this._multipleStocks == null && !this._multipleStocksFetching) + if (this._multipleStocks == null && !this._isFetching) { - this._multipleStocksFetching = true; + this._isFetching = true; ( async () => { this._multipleStocks = await (await MultipleStocks.fetch()); this._detector.markForCheck(); })(); } return this._multipleStocks; diff --git a/samples/charts/financial-chart/data-legend/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/data-legend/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/data-legend/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/data-legend/src/config/tsconfig.app.json b/samples/charts/financial-chart/data-legend/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/data-legend/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/data-legend/src/config/tsconfig.base.json b/samples/charts/financial-chart/data-legend/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/data-legend/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/data-legend/src/config/tsconfig.spec.json b/samples/charts/financial-chart/data-legend/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/data-legend/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/data-legend/src/config/tsconfig.worker.json b/samples/charts/financial-chart/data-legend/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/data-legend/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/data-legend/tsconfig.app.json b/samples/charts/financial-chart/data-legend/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/data-legend/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/financial-chart/data-legend/tsconfig.json b/samples/charts/financial-chart/data-legend/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/data-legend/tsconfig.json +++ b/samples/charts/financial-chart/data-legend/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/data-tooltip-formatting-currency/.codesandbox/Dockerfile b/samples/charts/financial-chart/data-tooltip-formatting-currency/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/data-tooltip-formatting-currency/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/data-tooltip-formatting-currency/.codesandbox/tasks.json b/samples/charts/financial-chart/data-tooltip-formatting-currency/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/data-tooltip-formatting-currency/.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/financial-chart/data-tooltip-formatting-currency/.stackblitzrc b/samples/charts/financial-chart/data-tooltip-formatting-currency/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/data-tooltip-formatting-currency/.stackblitzrc +++ b/samples/charts/financial-chart/data-tooltip-formatting-currency/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-tooltip-formatting-currency/angular.json b/samples/charts/financial-chart/data-tooltip-formatting-currency/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/financial-chart/data-tooltip-formatting-currency/angular.json +++ b/samples/charts/financial-chart/data-tooltip-formatting-currency/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/data-tooltip-formatting-currency/package.json b/samples/charts/financial-chart/data-tooltip-formatting-currency/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/financial-chart/data-tooltip-formatting-currency/package.json +++ b/samples/charts/financial-chart/data-tooltip-formatting-currency/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/data-tooltip-formatting-currency/sandbox.config.json b/samples/charts/financial-chart/data-tooltip-formatting-currency/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/financial-chart/data-tooltip-formatting-currency/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/app.component.ts b/samples/charts/financial-chart/data-tooltip-formatting-currency/src/app.component.ts index 8b78b3fad..b9221ae86 100644 --- a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/app.component.ts +++ b/samples/charts/financial-chart/data-tooltip-formatting-currency/src/app.component.ts @@ -15,11 +15,11 @@ export class AppComponent implements AfterViewInit @ViewChild("chart", { static: true } ) private chart: IgxFinancialChartComponent private _multipleStocks: MultipleStocks = null; - private _multipleStocksFetching: boolean = false; + private _isFetching: boolean = false; public get multipleStocks(): MultipleStocks { - if (this._multipleStocks == null && !this._multipleStocksFetching) + if (this._multipleStocks == null && !this._isFetching) { - this._multipleStocksFetching = true; + this._isFetching = true; ( async () => { this._multipleStocks = await (await MultipleStocks.fetch()); this._detector.markForCheck(); })(); } return this._multipleStocks; diff --git a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.app.json b/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.base.json b/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.spec.json b/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.worker.json b/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/data-tooltip-formatting-currency/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/data-tooltip-formatting-currency/tsconfig.app.json b/samples/charts/financial-chart/data-tooltip-formatting-currency/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/data-tooltip-formatting-currency/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/financial-chart/data-tooltip-formatting-currency/tsconfig.json b/samples/charts/financial-chart/data-tooltip-formatting-currency/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/data-tooltip-formatting-currency/tsconfig.json +++ b/samples/charts/financial-chart/data-tooltip-formatting-currency/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/data-tooltip-styling-props/.codesandbox/Dockerfile b/samples/charts/financial-chart/data-tooltip-styling-props/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/data-tooltip-styling-props/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/data-tooltip-styling-props/.codesandbox/tasks.json b/samples/charts/financial-chart/data-tooltip-styling-props/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/data-tooltip-styling-props/.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/financial-chart/data-tooltip-styling-props/.stackblitzrc b/samples/charts/financial-chart/data-tooltip-styling-props/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/data-tooltip-styling-props/.stackblitzrc +++ b/samples/charts/financial-chart/data-tooltip-styling-props/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-tooltip-styling-props/angular.json b/samples/charts/financial-chart/data-tooltip-styling-props/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/financial-chart/data-tooltip-styling-props/angular.json +++ b/samples/charts/financial-chart/data-tooltip-styling-props/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/data-tooltip-styling-props/package.json b/samples/charts/financial-chart/data-tooltip-styling-props/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/financial-chart/data-tooltip-styling-props/package.json +++ b/samples/charts/financial-chart/data-tooltip-styling-props/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/data-tooltip-styling-props/sandbox.config.json b/samples/charts/financial-chart/data-tooltip-styling-props/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/financial-chart/data-tooltip-styling-props/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.app.json b/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.base.json b/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.spec.json b/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.worker.json b/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/data-tooltip-styling-props/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/data-tooltip-styling-props/tsconfig.app.json b/samples/charts/financial-chart/data-tooltip-styling-props/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/data-tooltip-styling-props/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/financial-chart/data-tooltip-styling-props/tsconfig.json b/samples/charts/financial-chart/data-tooltip-styling-props/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/data-tooltip-styling-props/tsconfig.json +++ b/samples/charts/financial-chart/data-tooltip-styling-props/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/data-tooltip/.codesandbox/Dockerfile b/samples/charts/financial-chart/data-tooltip/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/data-tooltip/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/data-tooltip/.codesandbox/tasks.json b/samples/charts/financial-chart/data-tooltip/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/data-tooltip/.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/financial-chart/data-tooltip/.stackblitzrc b/samples/charts/financial-chart/data-tooltip/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/data-tooltip/.stackblitzrc +++ b/samples/charts/financial-chart/data-tooltip/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-tooltip/angular.json b/samples/charts/financial-chart/data-tooltip/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/financial-chart/data-tooltip/angular.json +++ b/samples/charts/financial-chart/data-tooltip/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/data-tooltip/package.json b/samples/charts/financial-chart/data-tooltip/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/financial-chart/data-tooltip/package.json +++ b/samples/charts/financial-chart/data-tooltip/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/data-tooltip/sandbox.config.json b/samples/charts/financial-chart/data-tooltip/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/financial-chart/data-tooltip/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/data-tooltip/src/app.component.ts b/samples/charts/financial-chart/data-tooltip/src/app.component.ts index 8b78b3fad..b9221ae86 100644 --- a/samples/charts/financial-chart/data-tooltip/src/app.component.ts +++ b/samples/charts/financial-chart/data-tooltip/src/app.component.ts @@ -15,11 +15,11 @@ export class AppComponent implements AfterViewInit @ViewChild("chart", { static: true } ) private chart: IgxFinancialChartComponent private _multipleStocks: MultipleStocks = null; - private _multipleStocksFetching: boolean = false; + private _isFetching: boolean = false; public get multipleStocks(): MultipleStocks { - if (this._multipleStocks == null && !this._multipleStocksFetching) + if (this._multipleStocks == null && !this._isFetching) { - this._multipleStocksFetching = true; + this._isFetching = true; ( async () => { this._multipleStocks = await (await MultipleStocks.fetch()); this._detector.markForCheck(); })(); } return this._multipleStocks; diff --git a/samples/charts/financial-chart/data-tooltip/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/data-tooltip/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/data-tooltip/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.app.json b/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.base.json b/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.spec.json b/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.worker.json b/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/data-tooltip/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/data-tooltip/tsconfig.app.json b/samples/charts/financial-chart/data-tooltip/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/data-tooltip/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/financial-chart/data-tooltip/tsconfig.json b/samples/charts/financial-chart/data-tooltip/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/data-tooltip/tsconfig.json +++ b/samples/charts/financial-chart/data-tooltip/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/format-specifiers/.codesandbox/Dockerfile b/samples/charts/financial-chart/format-specifiers/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/format-specifiers/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/format-specifiers/.codesandbox/tasks.json b/samples/charts/financial-chart/format-specifiers/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/format-specifiers/.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/financial-chart/format-specifiers/.stackblitzrc b/samples/charts/financial-chart/format-specifiers/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/format-specifiers/.stackblitzrc +++ b/samples/charts/financial-chart/format-specifiers/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/format-specifiers/angular.json b/samples/charts/financial-chart/format-specifiers/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/financial-chart/format-specifiers/angular.json +++ b/samples/charts/financial-chart/format-specifiers/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/format-specifiers/package.json b/samples/charts/financial-chart/format-specifiers/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/financial-chart/format-specifiers/package.json +++ b/samples/charts/financial-chart/format-specifiers/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/format-specifiers/sandbox.config.json b/samples/charts/financial-chart/format-specifiers/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/financial-chart/format-specifiers/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/format-specifiers/src/app.component.ts b/samples/charts/financial-chart/format-specifiers/src/app.component.ts index 7dda26119..37c4fabf2 100644 --- a/samples/charts/financial-chart/format-specifiers/src/app.component.ts +++ b/samples/charts/financial-chart/format-specifiers/src/app.component.ts @@ -82,11 +82,11 @@ export class AppComponent implements AfterViewInit return this._dateTimeFormatSpecifier1; } private _multipleStocks: MultipleStocks = null; - private _multipleStocksFetching: boolean = false; + private _isFetching: boolean = false; public get multipleStocks(): MultipleStocks { - if (this._multipleStocks == null && !this._multipleStocksFetching) + if (this._multipleStocks == null && !this._isFetching) { - this._multipleStocksFetching = true; + this._isFetching = true; ( async () => { this._multipleStocks = await (await MultipleStocks.fetch()); this._detector.markForCheck(); })(); } return this._multipleStocks; diff --git a/samples/charts/financial-chart/format-specifiers/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/format-specifiers/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/format-specifiers/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.app.json b/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.base.json b/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.spec.json b/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.worker.json b/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/format-specifiers/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/format-specifiers/tsconfig.app.json b/samples/charts/financial-chart/format-specifiers/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/format-specifiers/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/financial-chart/format-specifiers/tsconfig.json b/samples/charts/financial-chart/format-specifiers/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/format-specifiers/tsconfig.json +++ b/samples/charts/financial-chart/format-specifiers/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/high-frequency/.codesandbox/Dockerfile b/samples/charts/financial-chart/high-frequency/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/high-frequency/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/high-frequency/.codesandbox/tasks.json b/samples/charts/financial-chart/high-frequency/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/high-frequency/.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/financial-chart/high-frequency/.stackblitzrc b/samples/charts/financial-chart/high-frequency/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/high-frequency/.stackblitzrc +++ b/samples/charts/financial-chart/high-frequency/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/high-frequency/angular.json b/samples/charts/financial-chart/high-frequency/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/high-frequency/angular.json +++ b/samples/charts/financial-chart/high-frequency/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/high-frequency/package.json b/samples/charts/financial-chart/high-frequency/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/high-frequency/package.json +++ b/samples/charts/financial-chart/high-frequency/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/high-frequency/sandbox.config.json b/samples/charts/financial-chart/high-frequency/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/high-frequency/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/high-frequency/src/app/app.component.html b/samples/charts/financial-chart/high-frequency/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/high-frequency/src/app/app.component.html rename to samples/charts/financial-chart/high-frequency/src/app.component.html diff --git a/samples/charts/financial-chart/overview/src/app/app.component.scss b/samples/charts/financial-chart/high-frequency/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/overview/src/app/app.component.scss rename to samples/charts/financial-chart/high-frequency/src/app.component.scss diff --git a/samples/charts/financial-chart/high-frequency/src/app/app.component.ts b/samples/charts/financial-chart/high-frequency/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/high-frequency/src/app/app.component.ts rename to samples/charts/financial-chart/high-frequency/src/app.component.ts diff --git a/samples/charts/financial-chart/high-frequency/src/app/app.module.ts b/samples/charts/financial-chart/high-frequency/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/high-frequency/src/app/app.module.ts rename to samples/charts/financial-chart/high-frequency/src/app.module.ts diff --git a/samples/charts/financial-chart/high-frequency/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/high-frequency/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/high-frequency/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/high-frequency/src/config/tsconfig.app.json b/samples/charts/financial-chart/high-frequency/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/high-frequency/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/high-frequency/src/config/tsconfig.base.json b/samples/charts/financial-chart/high-frequency/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/high-frequency/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/high-frequency/src/config/tsconfig.spec.json b/samples/charts/financial-chart/high-frequency/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/high-frequency/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/high-frequency/src/config/tsconfig.worker.json b/samples/charts/financial-chart/high-frequency/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/high-frequency/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/high-frequency/src/main.ts b/samples/charts/financial-chart/high-frequency/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/high-frequency/src/main.ts +++ b/samples/charts/financial-chart/high-frequency/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/high-frequency/tsconfig.app.json b/samples/charts/financial-chart/high-frequency/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/high-frequency/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/financial-chart/high-frequency/tsconfig.json b/samples/charts/financial-chart/high-frequency/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/high-frequency/tsconfig.json +++ b/samples/charts/financial-chart/high-frequency/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/high-volume/.codesandbox/Dockerfile b/samples/charts/financial-chart/high-volume/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/high-volume/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/high-volume/.codesandbox/tasks.json b/samples/charts/financial-chart/high-volume/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/high-volume/.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/financial-chart/high-volume/.stackblitzrc b/samples/charts/financial-chart/high-volume/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/high-volume/.stackblitzrc +++ b/samples/charts/financial-chart/high-volume/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/high-volume/angular.json b/samples/charts/financial-chart/high-volume/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/high-volume/angular.json +++ b/samples/charts/financial-chart/high-volume/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/high-volume/package.json b/samples/charts/financial-chart/high-volume/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/high-volume/package.json +++ b/samples/charts/financial-chart/high-volume/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/high-volume/sandbox.config.json b/samples/charts/financial-chart/high-volume/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/high-volume/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/high-volume/src/app/GenerateHourlyPricesService.ts b/samples/charts/financial-chart/high-volume/src/GenerateHourlyPricesService.ts similarity index 100% rename from samples/charts/financial-chart/high-volume/src/app/GenerateHourlyPricesService.ts rename to samples/charts/financial-chart/high-volume/src/GenerateHourlyPricesService.ts diff --git a/samples/charts/financial-chart/high-volume/src/app/app.component.html b/samples/charts/financial-chart/high-volume/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/high-volume/src/app/app.component.html rename to samples/charts/financial-chart/high-volume/src/app.component.html diff --git a/samples/charts/financial-chart/panes/src/app/app.component.scss b/samples/charts/financial-chart/high-volume/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/panes/src/app/app.component.scss rename to samples/charts/financial-chart/high-volume/src/app.component.scss diff --git a/samples/charts/financial-chart/high-volume/src/app/app.component.ts b/samples/charts/financial-chart/high-volume/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/high-volume/src/app/app.component.ts rename to samples/charts/financial-chart/high-volume/src/app.component.ts diff --git a/samples/charts/financial-chart/high-volume/src/app/app.module.ts b/samples/charts/financial-chart/high-volume/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/high-volume/src/app/app.module.ts rename to samples/charts/financial-chart/high-volume/src/app.module.ts diff --git a/samples/charts/financial-chart/high-volume/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/high-volume/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/high-volume/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/high-volume/src/config/tsconfig.app.json b/samples/charts/financial-chart/high-volume/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/high-volume/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/high-volume/src/config/tsconfig.base.json b/samples/charts/financial-chart/high-volume/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/high-volume/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/high-volume/src/config/tsconfig.spec.json b/samples/charts/financial-chart/high-volume/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/high-volume/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/high-volume/src/config/tsconfig.worker.json b/samples/charts/financial-chart/high-volume/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/high-volume/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/high-volume/src/main.ts b/samples/charts/financial-chart/high-volume/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/high-volume/src/main.ts +++ b/samples/charts/financial-chart/high-volume/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/high-volume/tsconfig.app.json b/samples/charts/financial-chart/high-volume/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/high-volume/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/financial-chart/high-volume/tsconfig.json b/samples/charts/financial-chart/high-volume/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/high-volume/tsconfig.json +++ b/samples/charts/financial-chart/high-volume/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/indicator-customization/.codesandbox/Dockerfile b/samples/charts/financial-chart/indicator-customization/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/indicator-customization/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/indicator-customization/.codesandbox/tasks.json b/samples/charts/financial-chart/indicator-customization/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/indicator-customization/.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/financial-chart/indicator-customization/.stackblitzrc b/samples/charts/financial-chart/indicator-customization/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/indicator-customization/.stackblitzrc +++ b/samples/charts/financial-chart/indicator-customization/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/indicator-customization/angular.json b/samples/charts/financial-chart/indicator-customization/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/indicator-customization/angular.json +++ b/samples/charts/financial-chart/indicator-customization/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/indicator-customization/package.json b/samples/charts/financial-chart/indicator-customization/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/indicator-customization/package.json +++ b/samples/charts/financial-chart/indicator-customization/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/indicator-customization/sandbox.config.json b/samples/charts/financial-chart/indicator-customization/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/indicator-customization/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/indicator-customization/src/app/FinancialDataService.ts b/samples/charts/financial-chart/indicator-customization/src/FinancialDataService.ts similarity index 100% rename from samples/charts/financial-chart/indicator-customization/src/app/FinancialDataService.ts rename to samples/charts/financial-chart/indicator-customization/src/FinancialDataService.ts diff --git a/samples/charts/financial-chart/indicator-customization/src/app/app.component.html b/samples/charts/financial-chart/indicator-customization/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/indicator-customization/src/app/app.component.html rename to samples/charts/financial-chart/indicator-customization/src/app.component.html diff --git a/samples/charts/financial-chart/performance/src/app/app.component.scss b/samples/charts/financial-chart/indicator-customization/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/performance/src/app/app.component.scss rename to samples/charts/financial-chart/indicator-customization/src/app.component.scss diff --git a/samples/charts/financial-chart/indicator-customization/src/app/app.component.ts b/samples/charts/financial-chart/indicator-customization/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/indicator-customization/src/app/app.component.ts rename to samples/charts/financial-chart/indicator-customization/src/app.component.ts diff --git a/samples/charts/financial-chart/indicator-customization/src/app/app.module.ts b/samples/charts/financial-chart/indicator-customization/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/indicator-customization/src/app/app.module.ts rename to samples/charts/financial-chart/indicator-customization/src/app.module.ts diff --git a/samples/charts/financial-chart/indicator-customization/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/indicator-customization/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/indicator-customization/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.app.json b/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.base.json b/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.spec.json b/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.worker.json b/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/indicator-customization/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/indicator-customization/src/main.ts b/samples/charts/financial-chart/indicator-customization/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/indicator-customization/src/main.ts +++ b/samples/charts/financial-chart/indicator-customization/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/indicator-customization/tsconfig.app.json b/samples/charts/financial-chart/indicator-customization/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/indicator-customization/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/financial-chart/indicator-customization/tsconfig.json b/samples/charts/financial-chart/indicator-customization/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/indicator-customization/tsconfig.json +++ b/samples/charts/financial-chart/indicator-customization/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/indicator-types/.codesandbox/Dockerfile b/samples/charts/financial-chart/indicator-types/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/indicator-types/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/indicator-types/.codesandbox/tasks.json b/samples/charts/financial-chart/indicator-types/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/indicator-types/.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/financial-chart/indicator-types/.stackblitzrc b/samples/charts/financial-chart/indicator-types/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/indicator-types/.stackblitzrc +++ b/samples/charts/financial-chart/indicator-types/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/indicator-types/angular.json b/samples/charts/financial-chart/indicator-types/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/indicator-types/angular.json +++ b/samples/charts/financial-chart/indicator-types/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/indicator-types/package.json b/samples/charts/financial-chart/indicator-types/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/indicator-types/package.json +++ b/samples/charts/financial-chart/indicator-types/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/indicator-types/sandbox.config.json b/samples/charts/financial-chart/indicator-types/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/indicator-types/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/indicator-types/src/app/FinancialDataService.ts b/samples/charts/financial-chart/indicator-types/src/FinancialDataService.ts similarity index 100% rename from samples/charts/financial-chart/indicator-types/src/app/FinancialDataService.ts rename to samples/charts/financial-chart/indicator-types/src/FinancialDataService.ts diff --git a/samples/charts/financial-chart/indicator-types/src/app/app.component.html b/samples/charts/financial-chart/indicator-types/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/indicator-types/src/app/app.component.html rename to samples/charts/financial-chart/indicator-types/src/app.component.html diff --git a/samples/charts/financial-chart/stock-index-chart/src/app/app.component.scss b/samples/charts/financial-chart/indicator-types/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/stock-index-chart/src/app/app.component.scss rename to samples/charts/financial-chart/indicator-types/src/app.component.scss diff --git a/samples/charts/financial-chart/indicator-types/src/app/app.component.ts b/samples/charts/financial-chart/indicator-types/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/indicator-types/src/app/app.component.ts rename to samples/charts/financial-chart/indicator-types/src/app.component.ts diff --git a/samples/charts/financial-chart/indicator-types/src/app/app.module.ts b/samples/charts/financial-chart/indicator-types/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/indicator-types/src/app/app.module.ts rename to samples/charts/financial-chart/indicator-types/src/app.module.ts diff --git a/samples/charts/financial-chart/indicator-types/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/indicator-types/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/indicator-types/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/indicator-types/src/config/tsconfig.app.json b/samples/charts/financial-chart/indicator-types/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/indicator-types/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/indicator-types/src/config/tsconfig.base.json b/samples/charts/financial-chart/indicator-types/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/indicator-types/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/indicator-types/src/config/tsconfig.spec.json b/samples/charts/financial-chart/indicator-types/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/indicator-types/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/indicator-types/src/config/tsconfig.worker.json b/samples/charts/financial-chart/indicator-types/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/indicator-types/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/indicator-types/src/main.ts b/samples/charts/financial-chart/indicator-types/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/indicator-types/src/main.ts +++ b/samples/charts/financial-chart/indicator-types/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/indicator-types/tsconfig.app.json b/samples/charts/financial-chart/indicator-types/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/indicator-types/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/financial-chart/indicator-types/tsconfig.json b/samples/charts/financial-chart/indicator-types/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/indicator-types/tsconfig.json +++ b/samples/charts/financial-chart/indicator-types/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/multiple-data/.codesandbox/Dockerfile b/samples/charts/financial-chart/multiple-data/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/multiple-data/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/multiple-data/.codesandbox/tasks.json b/samples/charts/financial-chart/multiple-data/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/multiple-data/.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/financial-chart/multiple-data/.stackblitzrc b/samples/charts/financial-chart/multiple-data/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/multiple-data/.stackblitzrc +++ b/samples/charts/financial-chart/multiple-data/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/multiple-data/angular.json b/samples/charts/financial-chart/multiple-data/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/multiple-data/angular.json +++ b/samples/charts/financial-chart/multiple-data/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/multiple-data/package.json b/samples/charts/financial-chart/multiple-data/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/multiple-data/package.json +++ b/samples/charts/financial-chart/multiple-data/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/multiple-data/sandbox.config.json b/samples/charts/financial-chart/multiple-data/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/multiple-data/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/multiple-data/src/app/FinancialDataService.ts b/samples/charts/financial-chart/multiple-data/src/FinancialDataService.ts similarity index 100% rename from samples/charts/financial-chart/multiple-data/src/app/FinancialDataService.ts rename to samples/charts/financial-chart/multiple-data/src/FinancialDataService.ts diff --git a/samples/charts/financial-chart/multiple-data/src/app/app.component.html b/samples/charts/financial-chart/multiple-data/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/multiple-data/src/app/app.component.html rename to samples/charts/financial-chart/multiple-data/src/app.component.html diff --git a/samples/charts/financial-chart/styling/src/app/app.component.scss b/samples/charts/financial-chart/multiple-data/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/styling/src/app/app.component.scss rename to samples/charts/financial-chart/multiple-data/src/app.component.scss diff --git a/samples/charts/financial-chart/multiple-data/src/app/app.component.ts b/samples/charts/financial-chart/multiple-data/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/multiple-data/src/app/app.component.ts rename to samples/charts/financial-chart/multiple-data/src/app.component.ts diff --git a/samples/charts/financial-chart/multiple-data/src/app/app.module.ts b/samples/charts/financial-chart/multiple-data/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/multiple-data/src/app/app.module.ts rename to samples/charts/financial-chart/multiple-data/src/app.module.ts diff --git a/samples/charts/financial-chart/multiple-data/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/multiple-data/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/multiple-data/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/multiple-data/src/config/tsconfig.app.json b/samples/charts/financial-chart/multiple-data/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/multiple-data/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/multiple-data/src/config/tsconfig.base.json b/samples/charts/financial-chart/multiple-data/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/multiple-data/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/multiple-data/src/config/tsconfig.spec.json b/samples/charts/financial-chart/multiple-data/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/multiple-data/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/multiple-data/src/config/tsconfig.worker.json b/samples/charts/financial-chart/multiple-data/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/multiple-data/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/multiple-data/src/main.ts b/samples/charts/financial-chart/multiple-data/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/multiple-data/src/main.ts +++ b/samples/charts/financial-chart/multiple-data/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/multiple-data/tsconfig.app.json b/samples/charts/financial-chart/multiple-data/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/multiple-data/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/financial-chart/multiple-data/tsconfig.json b/samples/charts/financial-chart/multiple-data/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/multiple-data/tsconfig.json +++ b/samples/charts/financial-chart/multiple-data/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/multiple-feeds/.codesandbox/Dockerfile b/samples/charts/financial-chart/multiple-feeds/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/multiple-feeds/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/multiple-feeds/.codesandbox/tasks.json b/samples/charts/financial-chart/multiple-feeds/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/multiple-feeds/.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/financial-chart/multiple-feeds/.stackblitzrc b/samples/charts/financial-chart/multiple-feeds/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/multiple-feeds/.stackblitzrc +++ b/samples/charts/financial-chart/multiple-feeds/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/multiple-feeds/angular.json b/samples/charts/financial-chart/multiple-feeds/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/multiple-feeds/angular.json +++ b/samples/charts/financial-chart/multiple-feeds/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/multiple-feeds/package.json b/samples/charts/financial-chart/multiple-feeds/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/multiple-feeds/package.json +++ b/samples/charts/financial-chart/multiple-feeds/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/multiple-feeds/sandbox.config.json b/samples/charts/financial-chart/multiple-feeds/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/multiple-feeds/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/multiple-feeds/src/app/app.component.html b/samples/charts/financial-chart/multiple-feeds/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/multiple-feeds/src/app/app.component.html rename to samples/charts/financial-chart/multiple-feeds/src/app.component.html diff --git a/samples/charts/financial-chart/theming/src/app/app.component.scss b/samples/charts/financial-chart/multiple-feeds/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/theming/src/app/app.component.scss rename to samples/charts/financial-chart/multiple-feeds/src/app.component.scss diff --git a/samples/charts/financial-chart/multiple-feeds/src/app/app.component.ts b/samples/charts/financial-chart/multiple-feeds/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/multiple-feeds/src/app/app.component.ts rename to samples/charts/financial-chart/multiple-feeds/src/app.component.ts diff --git a/samples/charts/financial-chart/multiple-feeds/src/app/app.module.ts b/samples/charts/financial-chart/multiple-feeds/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/multiple-feeds/src/app/app.module.ts rename to samples/charts/financial-chart/multiple-feeds/src/app.module.ts diff --git a/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.app.json b/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.base.json b/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.spec.json b/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.worker.json b/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/multiple-feeds/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/multiple-feeds/src/main.ts b/samples/charts/financial-chart/multiple-feeds/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/multiple-feeds/src/main.ts +++ b/samples/charts/financial-chart/multiple-feeds/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/multiple-feeds/tsconfig.app.json b/samples/charts/financial-chart/multiple-feeds/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/multiple-feeds/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/financial-chart/multiple-feeds/tsconfig.json b/samples/charts/financial-chart/multiple-feeds/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/multiple-feeds/tsconfig.json +++ b/samples/charts/financial-chart/multiple-feeds/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/overview/.codesandbox/Dockerfile b/samples/charts/financial-chart/overview/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/overview/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/overview/.codesandbox/tasks.json b/samples/charts/financial-chart/overview/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/overview/.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/financial-chart/overview/.stackblitzrc b/samples/charts/financial-chart/overview/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/overview/.stackblitzrc +++ b/samples/charts/financial-chart/overview/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/overview/angular.json b/samples/charts/financial-chart/overview/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/overview/angular.json +++ b/samples/charts/financial-chart/overview/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/overview/package.json b/samples/charts/financial-chart/overview/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/overview/package.json +++ b/samples/charts/financial-chart/overview/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/overview/sandbox.config.json b/samples/charts/financial-chart/overview/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/overview/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/overview/src/app/FinancialDataService.ts b/samples/charts/financial-chart/overview/src/FinancialDataService.ts similarity index 100% rename from samples/charts/financial-chart/overview/src/app/FinancialDataService.ts rename to samples/charts/financial-chart/overview/src/FinancialDataService.ts diff --git a/samples/charts/financial-chart/overview/src/app/app.component.html b/samples/charts/financial-chart/overview/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/overview/src/app/app.component.html rename to samples/charts/financial-chart/overview/src/app.component.html diff --git a/samples/charts/financial-chart/time-based-data/src/app/app.component.scss b/samples/charts/financial-chart/overview/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/time-based-data/src/app/app.component.scss rename to samples/charts/financial-chart/overview/src/app.component.scss diff --git a/samples/charts/financial-chart/overview/src/app/app.component.ts b/samples/charts/financial-chart/overview/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/overview/src/app/app.component.ts rename to samples/charts/financial-chart/overview/src/app.component.ts diff --git a/samples/charts/financial-chart/overview/src/app/app.module.ts b/samples/charts/financial-chart/overview/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/overview/src/app/app.module.ts rename to samples/charts/financial-chart/overview/src/app.module.ts diff --git a/samples/charts/financial-chart/overview/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/overview/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/overview/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/overview/src/config/tsconfig.app.json b/samples/charts/financial-chart/overview/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/overview/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/overview/src/config/tsconfig.base.json b/samples/charts/financial-chart/overview/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/overview/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/overview/src/config/tsconfig.spec.json b/samples/charts/financial-chart/overview/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/overview/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/overview/src/config/tsconfig.worker.json b/samples/charts/financial-chart/overview/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/overview/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/overview/src/main.ts b/samples/charts/financial-chart/overview/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/overview/src/main.ts +++ b/samples/charts/financial-chart/overview/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/overview/tsconfig.app.json b/samples/charts/financial-chart/overview/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/overview/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/financial-chart/overview/tsconfig.json b/samples/charts/financial-chart/overview/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/overview/tsconfig.json +++ b/samples/charts/financial-chart/overview/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/panes/.codesandbox/Dockerfile b/samples/charts/financial-chart/panes/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/panes/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/panes/.codesandbox/tasks.json b/samples/charts/financial-chart/panes/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/panes/.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/financial-chart/panes/.stackblitzrc b/samples/charts/financial-chart/panes/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/panes/.stackblitzrc +++ b/samples/charts/financial-chart/panes/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/panes/angular.json b/samples/charts/financial-chart/panes/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/panes/angular.json +++ b/samples/charts/financial-chart/panes/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/panes/package.json b/samples/charts/financial-chart/panes/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/panes/package.json +++ b/samples/charts/financial-chart/panes/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/panes/sandbox.config.json b/samples/charts/financial-chart/panes/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/panes/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/panes/src/app/StockDataService.ts b/samples/charts/financial-chart/panes/src/StockDataService.ts similarity index 100% rename from samples/charts/financial-chart/panes/src/app/StockDataService.ts rename to samples/charts/financial-chart/panes/src/StockDataService.ts diff --git a/samples/charts/financial-chart/panes/src/app/app.component.html b/samples/charts/financial-chart/panes/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/panes/src/app/app.component.html rename to samples/charts/financial-chart/panes/src/app.component.html diff --git a/samples/charts/financial-chart/titles/src/app/app.component.scss b/samples/charts/financial-chart/panes/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/titles/src/app/app.component.scss rename to samples/charts/financial-chart/panes/src/app.component.scss diff --git a/samples/charts/financial-chart/panes/src/app/app.component.ts b/samples/charts/financial-chart/panes/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/panes/src/app/app.component.ts rename to samples/charts/financial-chart/panes/src/app.component.ts diff --git a/samples/charts/financial-chart/panes/src/app/app.module.ts b/samples/charts/financial-chart/panes/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/panes/src/app/app.module.ts rename to samples/charts/financial-chart/panes/src/app.module.ts diff --git a/samples/charts/financial-chart/panes/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/panes/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/panes/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/panes/src/config/tsconfig.app.json b/samples/charts/financial-chart/panes/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/panes/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/panes/src/config/tsconfig.base.json b/samples/charts/financial-chart/panes/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/panes/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/panes/src/config/tsconfig.spec.json b/samples/charts/financial-chart/panes/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/panes/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/panes/src/config/tsconfig.worker.json b/samples/charts/financial-chart/panes/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/panes/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/panes/src/main.ts b/samples/charts/financial-chart/panes/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/panes/src/main.ts +++ b/samples/charts/financial-chart/panes/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/panes/tsconfig.app.json b/samples/charts/financial-chart/panes/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/panes/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/financial-chart/panes/tsconfig.json b/samples/charts/financial-chart/panes/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/panes/tsconfig.json +++ b/samples/charts/financial-chart/panes/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/performance/.codesandbox/Dockerfile b/samples/charts/financial-chart/performance/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/performance/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/performance/.codesandbox/tasks.json b/samples/charts/financial-chart/performance/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/performance/.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/financial-chart/performance/.stackblitzrc b/samples/charts/financial-chart/performance/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/performance/.stackblitzrc +++ b/samples/charts/financial-chart/performance/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/performance/angular.json b/samples/charts/financial-chart/performance/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/performance/angular.json +++ b/samples/charts/financial-chart/performance/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/performance/package.json b/samples/charts/financial-chart/performance/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/performance/package.json +++ b/samples/charts/financial-chart/performance/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/performance/sandbox.config.json b/samples/charts/financial-chart/performance/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/performance/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/performance/src/app/GenerateOhlcPricesService.ts b/samples/charts/financial-chart/performance/src/GenerateOhlcPricesService.ts similarity index 100% rename from samples/charts/financial-chart/performance/src/app/GenerateOhlcPricesService.ts rename to samples/charts/financial-chart/performance/src/GenerateOhlcPricesService.ts diff --git a/samples/charts/financial-chart/performance/src/app/app.component.html b/samples/charts/financial-chart/performance/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/performance/src/app/app.component.html rename to samples/charts/financial-chart/performance/src/app.component.html diff --git a/samples/charts/financial-chart/tooltip-template/src/app/app.component.scss b/samples/charts/financial-chart/performance/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/tooltip-template/src/app/app.component.scss rename to samples/charts/financial-chart/performance/src/app.component.scss diff --git a/samples/charts/financial-chart/performance/src/app/app.component.ts b/samples/charts/financial-chart/performance/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/performance/src/app/app.component.ts rename to samples/charts/financial-chart/performance/src/app.component.ts diff --git a/samples/charts/financial-chart/performance/src/app/app.module.ts b/samples/charts/financial-chart/performance/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/performance/src/app/app.module.ts rename to samples/charts/financial-chart/performance/src/app.module.ts diff --git a/samples/charts/financial-chart/performance/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/performance/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/performance/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/performance/src/config/tsconfig.app.json b/samples/charts/financial-chart/performance/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/performance/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/performance/src/config/tsconfig.base.json b/samples/charts/financial-chart/performance/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/performance/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/performance/src/config/tsconfig.spec.json b/samples/charts/financial-chart/performance/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/performance/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/performance/src/config/tsconfig.worker.json b/samples/charts/financial-chart/performance/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/performance/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/performance/src/main.ts b/samples/charts/financial-chart/performance/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/performance/src/main.ts +++ b/samples/charts/financial-chart/performance/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/performance/tsconfig.app.json b/samples/charts/financial-chart/performance/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/performance/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/financial-chart/performance/tsconfig.json b/samples/charts/financial-chart/performance/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/performance/tsconfig.json +++ b/samples/charts/financial-chart/performance/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/scrollbars/.codesandbox/Dockerfile b/samples/charts/financial-chart/scrollbars/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/scrollbars/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/scrollbars/.codesandbox/tasks.json b/samples/charts/financial-chart/scrollbars/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/scrollbars/.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/financial-chart/scrollbars/.stackblitzrc b/samples/charts/financial-chart/scrollbars/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/scrollbars/.stackblitzrc +++ b/samples/charts/financial-chart/scrollbars/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/scrollbars/angular.json b/samples/charts/financial-chart/scrollbars/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/financial-chart/scrollbars/angular.json +++ b/samples/charts/financial-chart/scrollbars/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/scrollbars/package.json b/samples/charts/financial-chart/scrollbars/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/financial-chart/scrollbars/package.json +++ b/samples/charts/financial-chart/scrollbars/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/scrollbars/sandbox.config.json b/samples/charts/financial-chart/scrollbars/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/financial-chart/scrollbars/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/scrollbars/src/app.component.ts b/samples/charts/financial-chart/scrollbars/src/app.component.ts index 8b78b3fad..b9221ae86 100644 --- a/samples/charts/financial-chart/scrollbars/src/app.component.ts +++ b/samples/charts/financial-chart/scrollbars/src/app.component.ts @@ -15,11 +15,11 @@ export class AppComponent implements AfterViewInit @ViewChild("chart", { static: true } ) private chart: IgxFinancialChartComponent private _multipleStocks: MultipleStocks = null; - private _multipleStocksFetching: boolean = false; + private _isFetching: boolean = false; public get multipleStocks(): MultipleStocks { - if (this._multipleStocks == null && !this._multipleStocksFetching) + if (this._multipleStocks == null && !this._isFetching) { - this._multipleStocksFetching = true; + this._isFetching = true; ( async () => { this._multipleStocks = await (await MultipleStocks.fetch()); this._detector.markForCheck(); })(); } return this._multipleStocks; diff --git a/samples/charts/financial-chart/scrollbars/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/scrollbars/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/scrollbars/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/scrollbars/src/config/tsconfig.app.json b/samples/charts/financial-chart/scrollbars/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/scrollbars/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/scrollbars/src/config/tsconfig.base.json b/samples/charts/financial-chart/scrollbars/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/scrollbars/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/scrollbars/src/config/tsconfig.spec.json b/samples/charts/financial-chart/scrollbars/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/scrollbars/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/scrollbars/src/config/tsconfig.worker.json b/samples/charts/financial-chart/scrollbars/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/scrollbars/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/scrollbars/tsconfig.app.json b/samples/charts/financial-chart/scrollbars/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/scrollbars/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/financial-chart/scrollbars/tsconfig.json b/samples/charts/financial-chart/scrollbars/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/scrollbars/tsconfig.json +++ b/samples/charts/financial-chart/scrollbars/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/stock-index-chart/.codesandbox/Dockerfile b/samples/charts/financial-chart/stock-index-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/stock-index-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/stock-index-chart/.codesandbox/tasks.json b/samples/charts/financial-chart/stock-index-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/stock-index-chart/.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/financial-chart/stock-index-chart/.stackblitzrc b/samples/charts/financial-chart/stock-index-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/stock-index-chart/.stackblitzrc +++ b/samples/charts/financial-chart/stock-index-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/stock-index-chart/angular.json b/samples/charts/financial-chart/stock-index-chart/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/stock-index-chart/angular.json +++ b/samples/charts/financial-chart/stock-index-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/stock-index-chart/package.json b/samples/charts/financial-chart/stock-index-chart/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/stock-index-chart/package.json +++ b/samples/charts/financial-chart/stock-index-chart/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/stock-index-chart/sandbox.config.json b/samples/charts/financial-chart/stock-index-chart/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/stock-index-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/stock-index-chart/src/app/StockIndexDataService.ts b/samples/charts/financial-chart/stock-index-chart/src/StockIndexDataService.ts similarity index 100% rename from samples/charts/financial-chart/stock-index-chart/src/app/StockIndexDataService.ts rename to samples/charts/financial-chart/stock-index-chart/src/StockIndexDataService.ts diff --git a/samples/charts/financial-chart/stock-index-chart/src/app/app.component.html b/samples/charts/financial-chart/stock-index-chart/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/stock-index-chart/src/app/app.component.html rename to samples/charts/financial-chart/stock-index-chart/src/app.component.html diff --git a/samples/charts/financial-chart/tooltip-types/src/app/app.component.scss b/samples/charts/financial-chart/stock-index-chart/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/tooltip-types/src/app/app.component.scss rename to samples/charts/financial-chart/stock-index-chart/src/app.component.scss diff --git a/samples/charts/financial-chart/stock-index-chart/src/app/app.component.ts b/samples/charts/financial-chart/stock-index-chart/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/stock-index-chart/src/app/app.component.ts rename to samples/charts/financial-chart/stock-index-chart/src/app.component.ts diff --git a/samples/charts/financial-chart/stock-index-chart/src/app/app.module.ts b/samples/charts/financial-chart/stock-index-chart/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/stock-index-chart/src/app/app.module.ts rename to samples/charts/financial-chart/stock-index-chart/src/app.module.ts diff --git a/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.app.json b/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.base.json b/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.spec.json b/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.worker.json b/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/stock-index-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/stock-index-chart/src/main.ts b/samples/charts/financial-chart/stock-index-chart/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/stock-index-chart/src/main.ts +++ b/samples/charts/financial-chart/stock-index-chart/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/stock-index-chart/tsconfig.app.json b/samples/charts/financial-chart/stock-index-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/stock-index-chart/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/financial-chart/stock-index-chart/tsconfig.json b/samples/charts/financial-chart/stock-index-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/stock-index-chart/tsconfig.json +++ b/samples/charts/financial-chart/stock-index-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/styling/.codesandbox/Dockerfile b/samples/charts/financial-chart/styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/styling/.codesandbox/tasks.json b/samples/charts/financial-chart/styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/styling/.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/financial-chart/styling/.stackblitzrc b/samples/charts/financial-chart/styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/styling/.stackblitzrc +++ b/samples/charts/financial-chart/styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/styling/angular.json b/samples/charts/financial-chart/styling/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/styling/angular.json +++ b/samples/charts/financial-chart/styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/styling/package.json b/samples/charts/financial-chart/styling/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/styling/package.json +++ b/samples/charts/financial-chart/styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/styling/sandbox.config.json b/samples/charts/financial-chart/styling/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/styling/src/app/FinancialDataService.ts b/samples/charts/financial-chart/styling/src/FinancialDataService.ts similarity index 100% rename from samples/charts/financial-chart/styling/src/app/FinancialDataService.ts rename to samples/charts/financial-chart/styling/src/FinancialDataService.ts diff --git a/samples/charts/financial-chart/styling/src/app/app.component.html b/samples/charts/financial-chart/styling/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/styling/src/app/app.component.html rename to samples/charts/financial-chart/styling/src/app.component.html diff --git a/samples/charts/financial-chart/trendlines/src/app/app.component.scss b/samples/charts/financial-chart/styling/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/trendlines/src/app/app.component.scss rename to samples/charts/financial-chart/styling/src/app.component.scss diff --git a/samples/charts/financial-chart/styling/src/app/app.component.ts b/samples/charts/financial-chart/styling/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/styling/src/app/app.component.ts rename to samples/charts/financial-chart/styling/src/app.component.ts diff --git a/samples/charts/financial-chart/styling/src/app/app.module.ts b/samples/charts/financial-chart/styling/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/styling/src/app/app.module.ts rename to samples/charts/financial-chart/styling/src/app.module.ts diff --git a/samples/charts/financial-chart/styling/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/styling/src/config/tsconfig.app.json b/samples/charts/financial-chart/styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/styling/src/config/tsconfig.base.json b/samples/charts/financial-chart/styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/styling/src/config/tsconfig.spec.json b/samples/charts/financial-chart/styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/styling/src/config/tsconfig.worker.json b/samples/charts/financial-chart/styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/styling/src/main.ts b/samples/charts/financial-chart/styling/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/styling/src/main.ts +++ b/samples/charts/financial-chart/styling/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/styling/tsconfig.app.json b/samples/charts/financial-chart/styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/styling/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/financial-chart/styling/tsconfig.json b/samples/charts/financial-chart/styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/styling/tsconfig.json +++ b/samples/charts/financial-chart/styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/theming/.codesandbox/Dockerfile b/samples/charts/financial-chart/theming/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/theming/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/theming/.codesandbox/tasks.json b/samples/charts/financial-chart/theming/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/theming/.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/financial-chart/theming/.stackblitzrc b/samples/charts/financial-chart/theming/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/theming/.stackblitzrc +++ b/samples/charts/financial-chart/theming/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/theming/angular.json b/samples/charts/financial-chart/theming/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/theming/angular.json +++ b/samples/charts/financial-chart/theming/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/theming/package.json b/samples/charts/financial-chart/theming/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/theming/package.json +++ b/samples/charts/financial-chart/theming/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/theming/sandbox.config.json b/samples/charts/financial-chart/theming/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/theming/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/theming/src/app/StockDataService.ts b/samples/charts/financial-chart/theming/src/StockDataService.ts similarity index 100% rename from samples/charts/financial-chart/theming/src/app/StockDataService.ts rename to samples/charts/financial-chart/theming/src/StockDataService.ts diff --git a/samples/charts/financial-chart/theming/src/app/app.component.html b/samples/charts/financial-chart/theming/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/theming/src/app/app.component.html rename to samples/charts/financial-chart/theming/src/app.component.html diff --git a/samples/charts/financial-chart/volume-types/src/app/app.component.scss b/samples/charts/financial-chart/theming/src/app.component.scss similarity index 100% rename from samples/charts/financial-chart/volume-types/src/app/app.component.scss rename to samples/charts/financial-chart/theming/src/app.component.scss diff --git a/samples/charts/financial-chart/theming/src/app/app.component.ts b/samples/charts/financial-chart/theming/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/theming/src/app/app.component.ts rename to samples/charts/financial-chart/theming/src/app.component.ts diff --git a/samples/charts/financial-chart/theming/src/app/app.module.ts b/samples/charts/financial-chart/theming/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/theming/src/app/app.module.ts rename to samples/charts/financial-chart/theming/src/app.module.ts diff --git a/samples/charts/financial-chart/theming/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/theming/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/theming/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/theming/src/config/tsconfig.app.json b/samples/charts/financial-chart/theming/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/theming/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/theming/src/config/tsconfig.base.json b/samples/charts/financial-chart/theming/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/theming/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/theming/src/config/tsconfig.spec.json b/samples/charts/financial-chart/theming/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/theming/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/theming/src/config/tsconfig.worker.json b/samples/charts/financial-chart/theming/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/theming/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/theming/src/app/dark-theme-financial-chart.css b/samples/charts/financial-chart/theming/src/dark-theme-financial-chart.css similarity index 100% rename from samples/charts/financial-chart/theming/src/app/dark-theme-financial-chart.css rename to samples/charts/financial-chart/theming/src/dark-theme-financial-chart.css diff --git a/samples/charts/financial-chart/theming/src/app/dark-theme-legend.css b/samples/charts/financial-chart/theming/src/dark-theme-legend.css similarity index 100% rename from samples/charts/financial-chart/theming/src/app/dark-theme-legend.css rename to samples/charts/financial-chart/theming/src/dark-theme-legend.css diff --git a/samples/charts/financial-chart/theming/src/app/dark-theme-tooltips.css b/samples/charts/financial-chart/theming/src/dark-theme-tooltips.css similarity index 100% rename from samples/charts/financial-chart/theming/src/app/dark-theme-tooltips.css rename to samples/charts/financial-chart/theming/src/dark-theme-tooltips.css diff --git a/samples/charts/financial-chart/theming/src/app/dark-theme-zoom-slider.css b/samples/charts/financial-chart/theming/src/dark-theme-zoom-slider.css similarity index 100% rename from samples/charts/financial-chart/theming/src/app/dark-theme-zoom-slider.css rename to samples/charts/financial-chart/theming/src/dark-theme-zoom-slider.css diff --git a/samples/charts/financial-chart/theming/src/main.ts b/samples/charts/financial-chart/theming/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/theming/src/main.ts +++ b/samples/charts/financial-chart/theming/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/theming/tsconfig.app.json b/samples/charts/financial-chart/theming/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/theming/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/financial-chart/theming/tsconfig.json b/samples/charts/financial-chart/theming/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/theming/tsconfig.json +++ b/samples/charts/financial-chart/theming/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/time-based-data/.codesandbox/Dockerfile b/samples/charts/financial-chart/time-based-data/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/time-based-data/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/time-based-data/.codesandbox/tasks.json b/samples/charts/financial-chart/time-based-data/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/time-based-data/.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/financial-chart/time-based-data/.stackblitzrc b/samples/charts/financial-chart/time-based-data/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/time-based-data/.stackblitzrc +++ b/samples/charts/financial-chart/time-based-data/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/time-based-data/angular.json b/samples/charts/financial-chart/time-based-data/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/time-based-data/angular.json +++ b/samples/charts/financial-chart/time-based-data/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/time-based-data/package.json b/samples/charts/financial-chart/time-based-data/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/time-based-data/package.json +++ b/samples/charts/financial-chart/time-based-data/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/time-based-data/sandbox.config.json b/samples/charts/financial-chart/time-based-data/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/time-based-data/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/time-based-data/src/app/FinancialDataService.ts b/samples/charts/financial-chart/time-based-data/src/FinancialDataService.ts similarity index 100% rename from samples/charts/financial-chart/time-based-data/src/app/FinancialDataService.ts rename to samples/charts/financial-chart/time-based-data/src/FinancialDataService.ts diff --git a/samples/charts/financial-chart/time-based-data/src/app/app.component.html b/samples/charts/financial-chart/time-based-data/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/time-based-data/src/app/app.component.html rename to samples/charts/financial-chart/time-based-data/src/app.component.html diff --git a/samples/charts/pie-chart/animation/src/app/app.component.scss b/samples/charts/financial-chart/time-based-data/src/app.component.scss similarity index 100% rename from samples/charts/pie-chart/animation/src/app/app.component.scss rename to samples/charts/financial-chart/time-based-data/src/app.component.scss diff --git a/samples/charts/financial-chart/time-based-data/src/app/app.component.ts b/samples/charts/financial-chart/time-based-data/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/time-based-data/src/app/app.component.ts rename to samples/charts/financial-chart/time-based-data/src/app.component.ts diff --git a/samples/charts/financial-chart/time-based-data/src/app/app.module.ts b/samples/charts/financial-chart/time-based-data/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/time-based-data/src/app/app.module.ts rename to samples/charts/financial-chart/time-based-data/src/app.module.ts diff --git a/samples/charts/financial-chart/time-based-data/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/time-based-data/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/time-based-data/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/time-based-data/src/config/tsconfig.app.json b/samples/charts/financial-chart/time-based-data/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/time-based-data/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/time-based-data/src/config/tsconfig.base.json b/samples/charts/financial-chart/time-based-data/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/time-based-data/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/time-based-data/src/config/tsconfig.spec.json b/samples/charts/financial-chart/time-based-data/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/time-based-data/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/time-based-data/src/config/tsconfig.worker.json b/samples/charts/financial-chart/time-based-data/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/time-based-data/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/time-based-data/src/main.ts b/samples/charts/financial-chart/time-based-data/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/time-based-data/src/main.ts +++ b/samples/charts/financial-chart/time-based-data/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/time-based-data/tsconfig.app.json b/samples/charts/financial-chart/time-based-data/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/time-based-data/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/financial-chart/time-based-data/tsconfig.json b/samples/charts/financial-chart/time-based-data/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/time-based-data/tsconfig.json +++ b/samples/charts/financial-chart/time-based-data/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/titles/.codesandbox/Dockerfile b/samples/charts/financial-chart/titles/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/titles/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/titles/.codesandbox/tasks.json b/samples/charts/financial-chart/titles/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/titles/.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/financial-chart/titles/.stackblitzrc b/samples/charts/financial-chart/titles/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/titles/.stackblitzrc +++ b/samples/charts/financial-chart/titles/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/titles/angular.json b/samples/charts/financial-chart/titles/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/titles/angular.json +++ b/samples/charts/financial-chart/titles/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/titles/package.json b/samples/charts/financial-chart/titles/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/titles/package.json +++ b/samples/charts/financial-chart/titles/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/titles/sandbox.config.json b/samples/charts/financial-chart/titles/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/titles/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/titles/src/app/StockDataService.ts b/samples/charts/financial-chart/titles/src/StockDataService.ts similarity index 100% rename from samples/charts/financial-chart/titles/src/app/StockDataService.ts rename to samples/charts/financial-chart/titles/src/StockDataService.ts diff --git a/samples/charts/financial-chart/titles/src/app/app.component.html b/samples/charts/financial-chart/titles/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/titles/src/app/app.component.html rename to samples/charts/financial-chart/titles/src/app.component.html diff --git a/samples/charts/pie-chart/explosion/src/app/app.component.scss b/samples/charts/financial-chart/titles/src/app.component.scss similarity index 100% rename from samples/charts/pie-chart/explosion/src/app/app.component.scss rename to samples/charts/financial-chart/titles/src/app.component.scss diff --git a/samples/charts/financial-chart/titles/src/app/app.component.ts b/samples/charts/financial-chart/titles/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/titles/src/app/app.component.ts rename to samples/charts/financial-chart/titles/src/app.component.ts diff --git a/samples/charts/financial-chart/titles/src/app/app.module.ts b/samples/charts/financial-chart/titles/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/titles/src/app/app.module.ts rename to samples/charts/financial-chart/titles/src/app.module.ts diff --git a/samples/charts/financial-chart/titles/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/titles/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/titles/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/titles/src/config/tsconfig.app.json b/samples/charts/financial-chart/titles/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/titles/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/titles/src/config/tsconfig.base.json b/samples/charts/financial-chart/titles/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/titles/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/titles/src/config/tsconfig.spec.json b/samples/charts/financial-chart/titles/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/titles/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/titles/src/config/tsconfig.worker.json b/samples/charts/financial-chart/titles/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/titles/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/titles/src/main.ts b/samples/charts/financial-chart/titles/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/titles/src/main.ts +++ b/samples/charts/financial-chart/titles/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/titles/tsconfig.app.json b/samples/charts/financial-chart/titles/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/titles/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/financial-chart/titles/tsconfig.json b/samples/charts/financial-chart/titles/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/titles/tsconfig.json +++ b/samples/charts/financial-chart/titles/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/tooltip-template/.codesandbox/Dockerfile b/samples/charts/financial-chart/tooltip-template/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/tooltip-template/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/tooltip-template/.codesandbox/tasks.json b/samples/charts/financial-chart/tooltip-template/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/tooltip-template/.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/financial-chart/tooltip-template/.stackblitzrc b/samples/charts/financial-chart/tooltip-template/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/tooltip-template/.stackblitzrc +++ b/samples/charts/financial-chart/tooltip-template/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/tooltip-template/angular.json b/samples/charts/financial-chart/tooltip-template/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/tooltip-template/angular.json +++ b/samples/charts/financial-chart/tooltip-template/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/tooltip-template/package.json b/samples/charts/financial-chart/tooltip-template/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/tooltip-template/package.json +++ b/samples/charts/financial-chart/tooltip-template/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/tooltip-template/sandbox.config.json b/samples/charts/financial-chart/tooltip-template/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/tooltip-template/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/tooltip-template/src/app/FinancialDataService.ts b/samples/charts/financial-chart/tooltip-template/src/FinancialDataService.ts similarity index 100% rename from samples/charts/financial-chart/tooltip-template/src/app/FinancialDataService.ts rename to samples/charts/financial-chart/tooltip-template/src/FinancialDataService.ts diff --git a/samples/charts/financial-chart/tooltip-template/src/app/app.component.html b/samples/charts/financial-chart/tooltip-template/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/tooltip-template/src/app/app.component.html rename to samples/charts/financial-chart/tooltip-template/src/app.component.html diff --git a/samples/charts/pie-chart/selection/src/app/app.component.scss b/samples/charts/financial-chart/tooltip-template/src/app.component.scss similarity index 100% rename from samples/charts/pie-chart/selection/src/app/app.component.scss rename to samples/charts/financial-chart/tooltip-template/src/app.component.scss diff --git a/samples/charts/financial-chart/tooltip-template/src/app/app.component.ts b/samples/charts/financial-chart/tooltip-template/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/tooltip-template/src/app/app.component.ts rename to samples/charts/financial-chart/tooltip-template/src/app.component.ts diff --git a/samples/charts/financial-chart/tooltip-template/src/app/app.module.ts b/samples/charts/financial-chart/tooltip-template/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/tooltip-template/src/app/app.module.ts rename to samples/charts/financial-chart/tooltip-template/src/app.module.ts diff --git a/samples/charts/financial-chart/tooltip-template/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/tooltip-template/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/tooltip-template/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.app.json b/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.base.json b/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.spec.json b/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.worker.json b/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/tooltip-template/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/tooltip-template/src/main.ts b/samples/charts/financial-chart/tooltip-template/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/tooltip-template/src/main.ts +++ b/samples/charts/financial-chart/tooltip-template/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/tooltip-template/tsconfig.app.json b/samples/charts/financial-chart/tooltip-template/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/tooltip-template/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/financial-chart/tooltip-template/tsconfig.json b/samples/charts/financial-chart/tooltip-template/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/tooltip-template/tsconfig.json +++ b/samples/charts/financial-chart/tooltip-template/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/tooltip-types/.codesandbox/Dockerfile b/samples/charts/financial-chart/tooltip-types/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/tooltip-types/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/tooltip-types/.codesandbox/tasks.json b/samples/charts/financial-chart/tooltip-types/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/tooltip-types/.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/financial-chart/tooltip-types/.stackblitzrc b/samples/charts/financial-chart/tooltip-types/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/tooltip-types/.stackblitzrc +++ b/samples/charts/financial-chart/tooltip-types/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/tooltip-types/angular.json b/samples/charts/financial-chart/tooltip-types/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/tooltip-types/angular.json +++ b/samples/charts/financial-chart/tooltip-types/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/tooltip-types/package.json b/samples/charts/financial-chart/tooltip-types/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/tooltip-types/package.json +++ b/samples/charts/financial-chart/tooltip-types/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/tooltip-types/sandbox.config.json b/samples/charts/financial-chart/tooltip-types/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/tooltip-types/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/tooltip-types/src/app/FinancialDataService.ts b/samples/charts/financial-chart/tooltip-types/src/FinancialDataService.ts similarity index 100% rename from samples/charts/financial-chart/tooltip-types/src/app/FinancialDataService.ts rename to samples/charts/financial-chart/tooltip-types/src/FinancialDataService.ts diff --git a/samples/charts/financial-chart/tooltip-types/src/app/app.component.html b/samples/charts/financial-chart/tooltip-types/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/tooltip-types/src/app/app.component.html rename to samples/charts/financial-chart/tooltip-types/src/app.component.html diff --git a/samples/charts/sparkline/display-types/src/app/app.component.scss b/samples/charts/financial-chart/tooltip-types/src/app.component.scss similarity index 100% rename from samples/charts/sparkline/display-types/src/app/app.component.scss rename to samples/charts/financial-chart/tooltip-types/src/app.component.scss diff --git a/samples/charts/financial-chart/tooltip-types/src/app/app.component.ts b/samples/charts/financial-chart/tooltip-types/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/tooltip-types/src/app/app.component.ts rename to samples/charts/financial-chart/tooltip-types/src/app.component.ts diff --git a/samples/charts/financial-chart/tooltip-types/src/app/app.module.ts b/samples/charts/financial-chart/tooltip-types/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/tooltip-types/src/app/app.module.ts rename to samples/charts/financial-chart/tooltip-types/src/app.module.ts diff --git a/samples/charts/financial-chart/tooltip-types/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/tooltip-types/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/tooltip-types/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.app.json b/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.base.json b/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.spec.json b/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.worker.json b/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/tooltip-types/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/tooltip-types/src/main.ts b/samples/charts/financial-chart/tooltip-types/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/tooltip-types/src/main.ts +++ b/samples/charts/financial-chart/tooltip-types/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/tooltip-types/tsconfig.app.json b/samples/charts/financial-chart/tooltip-types/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/tooltip-types/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/financial-chart/tooltip-types/tsconfig.json b/samples/charts/financial-chart/tooltip-types/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/tooltip-types/tsconfig.json +++ b/samples/charts/financial-chart/tooltip-types/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/trendlines/.codesandbox/Dockerfile b/samples/charts/financial-chart/trendlines/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/trendlines/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/trendlines/.codesandbox/tasks.json b/samples/charts/financial-chart/trendlines/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/trendlines/.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/financial-chart/trendlines/.stackblitzrc b/samples/charts/financial-chart/trendlines/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/trendlines/.stackblitzrc +++ b/samples/charts/financial-chart/trendlines/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/trendlines/angular.json b/samples/charts/financial-chart/trendlines/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/trendlines/angular.json +++ b/samples/charts/financial-chart/trendlines/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/trendlines/package.json b/samples/charts/financial-chart/trendlines/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/trendlines/package.json +++ b/samples/charts/financial-chart/trendlines/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/trendlines/sandbox.config.json b/samples/charts/financial-chart/trendlines/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/trendlines/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/trendlines/src/app/FinancialDataService.ts b/samples/charts/financial-chart/trendlines/src/FinancialDataService.ts similarity index 100% rename from samples/charts/financial-chart/trendlines/src/app/FinancialDataService.ts rename to samples/charts/financial-chart/trendlines/src/FinancialDataService.ts diff --git a/samples/charts/financial-chart/trendlines/src/app/app.component.html b/samples/charts/financial-chart/trendlines/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/trendlines/src/app/app.component.html rename to samples/charts/financial-chart/trendlines/src/app.component.html diff --git a/samples/charts/tree-map/events/src/app/app.component.scss b/samples/charts/financial-chart/trendlines/src/app.component.scss similarity index 100% rename from samples/charts/tree-map/events/src/app/app.component.scss rename to samples/charts/financial-chart/trendlines/src/app.component.scss diff --git a/samples/charts/financial-chart/trendlines/src/app/app.component.ts b/samples/charts/financial-chart/trendlines/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/trendlines/src/app/app.component.ts rename to samples/charts/financial-chart/trendlines/src/app.component.ts diff --git a/samples/charts/financial-chart/trendlines/src/app/app.module.ts b/samples/charts/financial-chart/trendlines/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/trendlines/src/app/app.module.ts rename to samples/charts/financial-chart/trendlines/src/app.module.ts diff --git a/samples/charts/financial-chart/trendlines/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/trendlines/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/trendlines/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/trendlines/src/config/tsconfig.app.json b/samples/charts/financial-chart/trendlines/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/trendlines/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/trendlines/src/config/tsconfig.base.json b/samples/charts/financial-chart/trendlines/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/trendlines/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/trendlines/src/config/tsconfig.spec.json b/samples/charts/financial-chart/trendlines/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/trendlines/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/trendlines/src/config/tsconfig.worker.json b/samples/charts/financial-chart/trendlines/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/trendlines/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/trendlines/src/main.ts b/samples/charts/financial-chart/trendlines/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/trendlines/src/main.ts +++ b/samples/charts/financial-chart/trendlines/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/trendlines/tsconfig.app.json b/samples/charts/financial-chart/trendlines/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/trendlines/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/financial-chart/trendlines/tsconfig.json b/samples/charts/financial-chart/trendlines/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/trendlines/tsconfig.json +++ b/samples/charts/financial-chart/trendlines/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/financial-chart/volume-types/.codesandbox/Dockerfile b/samples/charts/financial-chart/volume-types/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/financial-chart/volume-types/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/financial-chart/volume-types/.codesandbox/tasks.json b/samples/charts/financial-chart/volume-types/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/financial-chart/volume-types/.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/financial-chart/volume-types/.stackblitzrc b/samples/charts/financial-chart/volume-types/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/financial-chart/volume-types/.stackblitzrc +++ b/samples/charts/financial-chart/volume-types/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/financial-chart/volume-types/angular.json b/samples/charts/financial-chart/volume-types/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/financial-chart/volume-types/angular.json +++ b/samples/charts/financial-chart/volume-types/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/financial-chart/volume-types/package.json b/samples/charts/financial-chart/volume-types/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/financial-chart/volume-types/package.json +++ b/samples/charts/financial-chart/volume-types/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/financial-chart/volume-types/sandbox.config.json b/samples/charts/financial-chart/volume-types/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/financial-chart/volume-types/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/financial-chart/volume-types/src/app/FinancialDataService.ts b/samples/charts/financial-chart/volume-types/src/FinancialDataService.ts similarity index 100% rename from samples/charts/financial-chart/volume-types/src/app/FinancialDataService.ts rename to samples/charts/financial-chart/volume-types/src/FinancialDataService.ts diff --git a/samples/charts/financial-chart/volume-types/src/app/app.component.html b/samples/charts/financial-chart/volume-types/src/app.component.html similarity index 100% rename from samples/charts/financial-chart/volume-types/src/app/app.component.html rename to samples/charts/financial-chart/volume-types/src/app.component.html diff --git a/samples/excel/spreadsheet/activation/src/app/app.component.scss b/samples/charts/financial-chart/volume-types/src/app.component.scss similarity index 100% rename from samples/excel/spreadsheet/activation/src/app/app.component.scss rename to samples/charts/financial-chart/volume-types/src/app.component.scss diff --git a/samples/charts/financial-chart/volume-types/src/app/app.component.ts b/samples/charts/financial-chart/volume-types/src/app.component.ts similarity index 100% rename from samples/charts/financial-chart/volume-types/src/app/app.component.ts rename to samples/charts/financial-chart/volume-types/src/app.component.ts diff --git a/samples/charts/financial-chart/volume-types/src/app/app.module.ts b/samples/charts/financial-chart/volume-types/src/app.module.ts similarity index 100% rename from samples/charts/financial-chart/volume-types/src/app/app.module.ts rename to samples/charts/financial-chart/volume-types/src/app.module.ts diff --git a/samples/charts/financial-chart/volume-types/src/config/tsconfig-es5.app.json b/samples/charts/financial-chart/volume-types/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/financial-chart/volume-types/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/financial-chart/volume-types/src/config/tsconfig.app.json b/samples/charts/financial-chart/volume-types/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/financial-chart/volume-types/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/financial-chart/volume-types/src/config/tsconfig.base.json b/samples/charts/financial-chart/volume-types/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/financial-chart/volume-types/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/financial-chart/volume-types/src/config/tsconfig.spec.json b/samples/charts/financial-chart/volume-types/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/financial-chart/volume-types/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/financial-chart/volume-types/src/config/tsconfig.worker.json b/samples/charts/financial-chart/volume-types/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/financial-chart/volume-types/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/financial-chart/volume-types/src/main.ts b/samples/charts/financial-chart/volume-types/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/financial-chart/volume-types/src/main.ts +++ b/samples/charts/financial-chart/volume-types/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/financial-chart/volume-types/tsconfig.app.json b/samples/charts/financial-chart/volume-types/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/financial-chart/volume-types/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/financial-chart/volume-types/tsconfig.json b/samples/charts/financial-chart/volume-types/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/financial-chart/volume-types/tsconfig.json +++ b/samples/charts/financial-chart/volume-types/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/pie-chart/animation/.codesandbox/Dockerfile b/samples/charts/pie-chart/animation/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/pie-chart/animation/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/pie-chart/animation/.codesandbox/tasks.json b/samples/charts/pie-chart/animation/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/pie-chart/animation/.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/pie-chart/animation/.stackblitzrc b/samples/charts/pie-chart/animation/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/pie-chart/animation/.stackblitzrc +++ b/samples/charts/pie-chart/animation/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/pie-chart/animation/angular.json b/samples/charts/pie-chart/animation/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/pie-chart/animation/angular.json +++ b/samples/charts/pie-chart/animation/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/pie-chart/animation/package.json b/samples/charts/pie-chart/animation/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/pie-chart/animation/package.json +++ b/samples/charts/pie-chart/animation/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/pie-chart/animation/sandbox.config.json b/samples/charts/pie-chart/animation/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/pie-chart/animation/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/pie-chart/animation/src/app/app.component.html b/samples/charts/pie-chart/animation/src/app.component.html similarity index 100% rename from samples/charts/pie-chart/animation/src/app/app.component.html rename to samples/charts/pie-chart/animation/src/app.component.html diff --git a/samples/excel/spreadsheet/adapter-chart/src/app/app.component.scss b/samples/charts/pie-chart/animation/src/app.component.scss similarity index 100% rename from samples/excel/spreadsheet/adapter-chart/src/app/app.component.scss rename to samples/charts/pie-chart/animation/src/app.component.scss diff --git a/samples/charts/pie-chart/animation/src/app/app.component.ts b/samples/charts/pie-chart/animation/src/app.component.ts similarity index 100% rename from samples/charts/pie-chart/animation/src/app/app.component.ts rename to samples/charts/pie-chart/animation/src/app.component.ts diff --git a/samples/charts/pie-chart/animation/src/app/app.module.ts b/samples/charts/pie-chart/animation/src/app.module.ts similarity index 100% rename from samples/charts/pie-chart/animation/src/app/app.module.ts rename to samples/charts/pie-chart/animation/src/app.module.ts diff --git a/samples/charts/pie-chart/animation/src/config/tsconfig-es5.app.json b/samples/charts/pie-chart/animation/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/pie-chart/animation/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/pie-chart/animation/src/config/tsconfig.app.json b/samples/charts/pie-chart/animation/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/pie-chart/animation/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/pie-chart/animation/src/config/tsconfig.base.json b/samples/charts/pie-chart/animation/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/pie-chart/animation/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/pie-chart/animation/src/config/tsconfig.spec.json b/samples/charts/pie-chart/animation/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/pie-chart/animation/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/pie-chart/animation/src/config/tsconfig.worker.json b/samples/charts/pie-chart/animation/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/pie-chart/animation/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/pie-chart/animation/src/main.ts b/samples/charts/pie-chart/animation/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/pie-chart/animation/src/main.ts +++ b/samples/charts/pie-chart/animation/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/pie-chart/animation/tsconfig.app.json b/samples/charts/pie-chart/animation/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/pie-chart/animation/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/pie-chart/animation/tsconfig.json b/samples/charts/pie-chart/animation/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/pie-chart/animation/tsconfig.json +++ b/samples/charts/pie-chart/animation/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/pie-chart/explosion/.codesandbox/Dockerfile b/samples/charts/pie-chart/explosion/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/pie-chart/explosion/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/pie-chart/explosion/.codesandbox/tasks.json b/samples/charts/pie-chart/explosion/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/pie-chart/explosion/.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/pie-chart/explosion/.stackblitzrc b/samples/charts/pie-chart/explosion/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/pie-chart/explosion/.stackblitzrc +++ b/samples/charts/pie-chart/explosion/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/pie-chart/explosion/angular.json b/samples/charts/pie-chart/explosion/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/pie-chart/explosion/angular.json +++ b/samples/charts/pie-chart/explosion/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/pie-chart/explosion/package.json b/samples/charts/pie-chart/explosion/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/pie-chart/explosion/package.json +++ b/samples/charts/pie-chart/explosion/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/pie-chart/explosion/sandbox.config.json b/samples/charts/pie-chart/explosion/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/pie-chart/explosion/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/pie-chart/explosion/src/app/app.component.html b/samples/charts/pie-chart/explosion/src/app.component.html similarity index 100% rename from samples/charts/pie-chart/explosion/src/app/app.component.html rename to samples/charts/pie-chart/explosion/src/app.component.html diff --git a/samples/excel/spreadsheet/adapter-combo/src/app/app.component.scss b/samples/charts/pie-chart/explosion/src/app.component.scss similarity index 100% rename from samples/excel/spreadsheet/adapter-combo/src/app/app.component.scss rename to samples/charts/pie-chart/explosion/src/app.component.scss diff --git a/samples/charts/pie-chart/explosion/src/app/app.component.ts b/samples/charts/pie-chart/explosion/src/app.component.ts similarity index 100% rename from samples/charts/pie-chart/explosion/src/app/app.component.ts rename to samples/charts/pie-chart/explosion/src/app.component.ts diff --git a/samples/charts/pie-chart/explosion/src/app/app.module.ts b/samples/charts/pie-chart/explosion/src/app.module.ts similarity index 100% rename from samples/charts/pie-chart/explosion/src/app/app.module.ts rename to samples/charts/pie-chart/explosion/src/app.module.ts diff --git a/samples/charts/pie-chart/explosion/src/config/tsconfig-es5.app.json b/samples/charts/pie-chart/explosion/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/pie-chart/explosion/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/pie-chart/explosion/src/config/tsconfig.app.json b/samples/charts/pie-chart/explosion/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/pie-chart/explosion/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/pie-chart/explosion/src/config/tsconfig.base.json b/samples/charts/pie-chart/explosion/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/pie-chart/explosion/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/pie-chart/explosion/src/config/tsconfig.spec.json b/samples/charts/pie-chart/explosion/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/pie-chart/explosion/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/pie-chart/explosion/src/config/tsconfig.worker.json b/samples/charts/pie-chart/explosion/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/pie-chart/explosion/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/pie-chart/explosion/src/main.ts b/samples/charts/pie-chart/explosion/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/pie-chart/explosion/src/main.ts +++ b/samples/charts/pie-chart/explosion/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/pie-chart/explosion/tsconfig.app.json b/samples/charts/pie-chart/explosion/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/pie-chart/explosion/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/pie-chart/explosion/tsconfig.json b/samples/charts/pie-chart/explosion/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/pie-chart/explosion/tsconfig.json +++ b/samples/charts/pie-chart/explosion/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/pie-chart/legend/.codesandbox/Dockerfile b/samples/charts/pie-chart/legend/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/pie-chart/legend/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/pie-chart/legend/.codesandbox/tasks.json b/samples/charts/pie-chart/legend/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/pie-chart/legend/.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/pie-chart/legend/.stackblitzrc b/samples/charts/pie-chart/legend/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/pie-chart/legend/.stackblitzrc +++ b/samples/charts/pie-chart/legend/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/pie-chart/legend/angular.json b/samples/charts/pie-chart/legend/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/pie-chart/legend/angular.json +++ b/samples/charts/pie-chart/legend/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/pie-chart/legend/package.json b/samples/charts/pie-chart/legend/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/pie-chart/legend/package.json +++ b/samples/charts/pie-chart/legend/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/pie-chart/legend/sandbox.config.json b/samples/charts/pie-chart/legend/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/pie-chart/legend/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/pie-chart/legend/src/config/tsconfig-es5.app.json b/samples/charts/pie-chart/legend/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/pie-chart/legend/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/pie-chart/legend/src/config/tsconfig.app.json b/samples/charts/pie-chart/legend/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/pie-chart/legend/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/pie-chart/legend/src/config/tsconfig.base.json b/samples/charts/pie-chart/legend/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/pie-chart/legend/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/pie-chart/legend/src/config/tsconfig.spec.json b/samples/charts/pie-chart/legend/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/pie-chart/legend/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/pie-chart/legend/src/config/tsconfig.worker.json b/samples/charts/pie-chart/legend/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/pie-chart/legend/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/pie-chart/legend/tsconfig.app.json b/samples/charts/pie-chart/legend/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/pie-chart/legend/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/pie-chart/legend/tsconfig.json b/samples/charts/pie-chart/legend/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/pie-chart/legend/tsconfig.json +++ b/samples/charts/pie-chart/legend/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/pie-chart/others/.codesandbox/Dockerfile b/samples/charts/pie-chart/others/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/pie-chart/others/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/pie-chart/others/.codesandbox/tasks.json b/samples/charts/pie-chart/others/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/pie-chart/others/.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/pie-chart/others/.stackblitzrc b/samples/charts/pie-chart/others/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/pie-chart/others/.stackblitzrc +++ b/samples/charts/pie-chart/others/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/pie-chart/others/angular.json b/samples/charts/pie-chart/others/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/pie-chart/others/angular.json +++ b/samples/charts/pie-chart/others/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/pie-chart/others/package.json b/samples/charts/pie-chart/others/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/pie-chart/others/package.json +++ b/samples/charts/pie-chart/others/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/pie-chart/others/sandbox.config.json b/samples/charts/pie-chart/others/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/pie-chart/others/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/pie-chart/others/src/config/tsconfig-es5.app.json b/samples/charts/pie-chart/others/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/pie-chart/others/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/pie-chart/others/src/config/tsconfig.app.json b/samples/charts/pie-chart/others/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/pie-chart/others/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/pie-chart/others/src/config/tsconfig.base.json b/samples/charts/pie-chart/others/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/pie-chart/others/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/pie-chart/others/src/config/tsconfig.spec.json b/samples/charts/pie-chart/others/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/pie-chart/others/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/pie-chart/others/src/config/tsconfig.worker.json b/samples/charts/pie-chart/others/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/pie-chart/others/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/pie-chart/others/tsconfig.app.json b/samples/charts/pie-chart/others/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/pie-chart/others/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/pie-chart/others/tsconfig.json b/samples/charts/pie-chart/others/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/pie-chart/others/tsconfig.json +++ b/samples/charts/pie-chart/others/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/pie-chart/overview/.codesandbox/Dockerfile b/samples/charts/pie-chart/overview/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/pie-chart/overview/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/pie-chart/overview/.codesandbox/tasks.json b/samples/charts/pie-chart/overview/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/pie-chart/overview/.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/pie-chart/overview/.stackblitzrc b/samples/charts/pie-chart/overview/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/pie-chart/overview/.stackblitzrc +++ b/samples/charts/pie-chart/overview/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/pie-chart/overview/angular.json b/samples/charts/pie-chart/overview/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/pie-chart/overview/angular.json +++ b/samples/charts/pie-chart/overview/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/pie-chart/overview/package.json b/samples/charts/pie-chart/overview/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/pie-chart/overview/package.json +++ b/samples/charts/pie-chart/overview/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/pie-chart/overview/sandbox.config.json b/samples/charts/pie-chart/overview/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/pie-chart/overview/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/pie-chart/overview/src/config/tsconfig-es5.app.json b/samples/charts/pie-chart/overview/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/pie-chart/overview/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/pie-chart/overview/src/config/tsconfig.app.json b/samples/charts/pie-chart/overview/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/pie-chart/overview/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/pie-chart/overview/src/config/tsconfig.base.json b/samples/charts/pie-chart/overview/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/pie-chart/overview/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/pie-chart/overview/src/config/tsconfig.spec.json b/samples/charts/pie-chart/overview/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/pie-chart/overview/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/pie-chart/overview/src/config/tsconfig.worker.json b/samples/charts/pie-chart/overview/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/pie-chart/overview/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/pie-chart/overview/tsconfig.app.json b/samples/charts/pie-chart/overview/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/pie-chart/overview/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/pie-chart/overview/tsconfig.json b/samples/charts/pie-chart/overview/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/pie-chart/overview/tsconfig.json +++ b/samples/charts/pie-chart/overview/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/pie-chart/selection/.codesandbox/Dockerfile b/samples/charts/pie-chart/selection/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/pie-chart/selection/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/pie-chart/selection/.codesandbox/tasks.json b/samples/charts/pie-chart/selection/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/pie-chart/selection/.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/pie-chart/selection/.stackblitzrc b/samples/charts/pie-chart/selection/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/pie-chart/selection/.stackblitzrc +++ b/samples/charts/pie-chart/selection/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/pie-chart/selection/angular.json b/samples/charts/pie-chart/selection/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/pie-chart/selection/angular.json +++ b/samples/charts/pie-chart/selection/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/pie-chart/selection/package.json b/samples/charts/pie-chart/selection/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/pie-chart/selection/package.json +++ b/samples/charts/pie-chart/selection/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/pie-chart/selection/sandbox.config.json b/samples/charts/pie-chart/selection/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/pie-chart/selection/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/pie-chart/selection/src/app/app.component.html b/samples/charts/pie-chart/selection/src/app.component.html similarity index 100% rename from samples/charts/pie-chart/selection/src/app/app.component.html rename to samples/charts/pie-chart/selection/src/app.component.html diff --git a/samples/excel/spreadsheet/clipboard/src/app/app.component.scss b/samples/charts/pie-chart/selection/src/app.component.scss similarity index 100% rename from samples/excel/spreadsheet/clipboard/src/app/app.component.scss rename to samples/charts/pie-chart/selection/src/app.component.scss diff --git a/samples/charts/pie-chart/selection/src/app/app.component.ts b/samples/charts/pie-chart/selection/src/app.component.ts similarity index 100% rename from samples/charts/pie-chart/selection/src/app/app.component.ts rename to samples/charts/pie-chart/selection/src/app.component.ts diff --git a/samples/charts/pie-chart/selection/src/app/app.module.ts b/samples/charts/pie-chart/selection/src/app.module.ts similarity index 100% rename from samples/charts/pie-chart/selection/src/app/app.module.ts rename to samples/charts/pie-chart/selection/src/app.module.ts diff --git a/samples/charts/pie-chart/selection/src/config/tsconfig-es5.app.json b/samples/charts/pie-chart/selection/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/pie-chart/selection/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/pie-chart/selection/src/config/tsconfig.app.json b/samples/charts/pie-chart/selection/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/pie-chart/selection/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/pie-chart/selection/src/config/tsconfig.base.json b/samples/charts/pie-chart/selection/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/pie-chart/selection/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/pie-chart/selection/src/config/tsconfig.spec.json b/samples/charts/pie-chart/selection/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/pie-chart/selection/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/pie-chart/selection/src/config/tsconfig.worker.json b/samples/charts/pie-chart/selection/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/pie-chart/selection/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/pie-chart/selection/src/main.ts b/samples/charts/pie-chart/selection/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/pie-chart/selection/src/main.ts +++ b/samples/charts/pie-chart/selection/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/pie-chart/selection/tsconfig.app.json b/samples/charts/pie-chart/selection/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/pie-chart/selection/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/pie-chart/selection/tsconfig.json b/samples/charts/pie-chart/selection/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/pie-chart/selection/tsconfig.json +++ b/samples/charts/pie-chart/selection/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/pie-chart/styling/.codesandbox/Dockerfile b/samples/charts/pie-chart/styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/pie-chart/styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/pie-chart/styling/.codesandbox/tasks.json b/samples/charts/pie-chart/styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/pie-chart/styling/.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/pie-chart/styling/.stackblitzrc b/samples/charts/pie-chart/styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/pie-chart/styling/.stackblitzrc +++ b/samples/charts/pie-chart/styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/pie-chart/styling/angular.json b/samples/charts/pie-chart/styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/pie-chart/styling/angular.json +++ b/samples/charts/pie-chart/styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/pie-chart/styling/package.json b/samples/charts/pie-chart/styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/pie-chart/styling/package.json +++ b/samples/charts/pie-chart/styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/pie-chart/styling/sandbox.config.json b/samples/charts/pie-chart/styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/pie-chart/styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/pie-chart/styling/src/config/tsconfig-es5.app.json b/samples/charts/pie-chart/styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/pie-chart/styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/pie-chart/styling/src/config/tsconfig.app.json b/samples/charts/pie-chart/styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/pie-chart/styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/pie-chart/styling/src/config/tsconfig.base.json b/samples/charts/pie-chart/styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/pie-chart/styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/pie-chart/styling/src/config/tsconfig.spec.json b/samples/charts/pie-chart/styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/pie-chart/styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/pie-chart/styling/src/config/tsconfig.worker.json b/samples/charts/pie-chart/styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/pie-chart/styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/pie-chart/styling/tsconfig.app.json b/samples/charts/pie-chart/styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/pie-chart/styling/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/pie-chart/styling/tsconfig.json b/samples/charts/pie-chart/styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/pie-chart/styling/tsconfig.json +++ b/samples/charts/pie-chart/styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/sparkline/display-area/.codesandbox/Dockerfile b/samples/charts/sparkline/display-area/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/sparkline/display-area/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/sparkline/display-area/.codesandbox/tasks.json b/samples/charts/sparkline/display-area/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/sparkline/display-area/.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/sparkline/display-area/.stackblitzrc b/samples/charts/sparkline/display-area/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/sparkline/display-area/.stackblitzrc +++ b/samples/charts/sparkline/display-area/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/sparkline/display-area/angular.json b/samples/charts/sparkline/display-area/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/sparkline/display-area/angular.json +++ b/samples/charts/sparkline/display-area/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/sparkline/display-area/package.json b/samples/charts/sparkline/display-area/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/sparkline/display-area/package.json +++ b/samples/charts/sparkline/display-area/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/sparkline/display-area/sandbox.config.json b/samples/charts/sparkline/display-area/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/sparkline/display-area/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/sparkline/display-area/src/config/tsconfig-es5.app.json b/samples/charts/sparkline/display-area/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/sparkline/display-area/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/sparkline/display-area/src/config/tsconfig.app.json b/samples/charts/sparkline/display-area/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/sparkline/display-area/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/sparkline/display-area/src/config/tsconfig.base.json b/samples/charts/sparkline/display-area/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/sparkline/display-area/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/sparkline/display-area/src/config/tsconfig.spec.json b/samples/charts/sparkline/display-area/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/sparkline/display-area/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/sparkline/display-area/src/config/tsconfig.worker.json b/samples/charts/sparkline/display-area/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/sparkline/display-area/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/sparkline/display-area/tsconfig.app.json b/samples/charts/sparkline/display-area/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/sparkline/display-area/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/sparkline/display-area/tsconfig.json b/samples/charts/sparkline/display-area/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/sparkline/display-area/tsconfig.json +++ b/samples/charts/sparkline/display-area/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/sparkline/display-column/.codesandbox/Dockerfile b/samples/charts/sparkline/display-column/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/sparkline/display-column/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/sparkline/display-column/.codesandbox/tasks.json b/samples/charts/sparkline/display-column/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/sparkline/display-column/.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/sparkline/display-column/.stackblitzrc b/samples/charts/sparkline/display-column/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/sparkline/display-column/.stackblitzrc +++ b/samples/charts/sparkline/display-column/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/sparkline/display-column/angular.json b/samples/charts/sparkline/display-column/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/sparkline/display-column/angular.json +++ b/samples/charts/sparkline/display-column/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/sparkline/display-column/package.json b/samples/charts/sparkline/display-column/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/sparkline/display-column/package.json +++ b/samples/charts/sparkline/display-column/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/sparkline/display-column/sandbox.config.json b/samples/charts/sparkline/display-column/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/sparkline/display-column/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/sparkline/display-column/src/config/tsconfig-es5.app.json b/samples/charts/sparkline/display-column/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/sparkline/display-column/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/sparkline/display-column/src/config/tsconfig.app.json b/samples/charts/sparkline/display-column/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/sparkline/display-column/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/sparkline/display-column/src/config/tsconfig.base.json b/samples/charts/sparkline/display-column/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/sparkline/display-column/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/sparkline/display-column/src/config/tsconfig.spec.json b/samples/charts/sparkline/display-column/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/sparkline/display-column/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/sparkline/display-column/src/config/tsconfig.worker.json b/samples/charts/sparkline/display-column/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/sparkline/display-column/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/sparkline/display-column/tsconfig.app.json b/samples/charts/sparkline/display-column/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/sparkline/display-column/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/sparkline/display-column/tsconfig.json b/samples/charts/sparkline/display-column/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/sparkline/display-column/tsconfig.json +++ b/samples/charts/sparkline/display-column/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/sparkline/display-lines/.codesandbox/Dockerfile b/samples/charts/sparkline/display-lines/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/sparkline/display-lines/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/sparkline/display-lines/.codesandbox/tasks.json b/samples/charts/sparkline/display-lines/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/sparkline/display-lines/.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/sparkline/display-lines/.stackblitzrc b/samples/charts/sparkline/display-lines/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/sparkline/display-lines/.stackblitzrc +++ b/samples/charts/sparkline/display-lines/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/sparkline/display-lines/angular.json b/samples/charts/sparkline/display-lines/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/sparkline/display-lines/angular.json +++ b/samples/charts/sparkline/display-lines/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/sparkline/display-lines/package.json b/samples/charts/sparkline/display-lines/package.json index 632873a59..b18743c2c 100644 --- a/samples/charts/sparkline/display-lines/package.json +++ b/samples/charts/sparkline/display-lines/package.json @@ -7,40 +7,40 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/sparkline/display-lines/sandbox.config.json b/samples/charts/sparkline/display-lines/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/sparkline/display-lines/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/sparkline/display-lines/src/config/tsconfig-es5.app.json b/samples/charts/sparkline/display-lines/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/sparkline/display-lines/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/sparkline/display-lines/src/config/tsconfig.app.json b/samples/charts/sparkline/display-lines/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/sparkline/display-lines/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/sparkline/display-lines/src/config/tsconfig.base.json b/samples/charts/sparkline/display-lines/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/sparkline/display-lines/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/sparkline/display-lines/src/config/tsconfig.spec.json b/samples/charts/sparkline/display-lines/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/sparkline/display-lines/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/sparkline/display-lines/src/config/tsconfig.worker.json b/samples/charts/sparkline/display-lines/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/sparkline/display-lines/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/sparkline/display-lines/tsconfig.app.json b/samples/charts/sparkline/display-lines/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/sparkline/display-lines/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/sparkline/display-lines/tsconfig.json b/samples/charts/sparkline/display-lines/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/sparkline/display-lines/tsconfig.json +++ b/samples/charts/sparkline/display-lines/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/sparkline/display-types/.codesandbox/Dockerfile b/samples/charts/sparkline/display-types/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/sparkline/display-types/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/sparkline/display-types/.codesandbox/tasks.json b/samples/charts/sparkline/display-types/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/sparkline/display-types/.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/sparkline/display-types/.stackblitzrc b/samples/charts/sparkline/display-types/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/sparkline/display-types/.stackblitzrc +++ b/samples/charts/sparkline/display-types/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/sparkline/display-types/angular.json b/samples/charts/sparkline/display-types/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/sparkline/display-types/angular.json +++ b/samples/charts/sparkline/display-types/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/sparkline/display-types/package.json b/samples/charts/sparkline/display-types/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/sparkline/display-types/package.json +++ b/samples/charts/sparkline/display-types/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/sparkline/display-types/sandbox.config.json b/samples/charts/sparkline/display-types/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/sparkline/display-types/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/sparkline/display-types/src/app/SharedData.ts b/samples/charts/sparkline/display-types/src/SharedData.ts similarity index 100% rename from samples/charts/sparkline/display-types/src/app/SharedData.ts rename to samples/charts/sparkline/display-types/src/SharedData.ts diff --git a/samples/charts/sparkline/display-types/src/app/app.component.html b/samples/charts/sparkline/display-types/src/app.component.html similarity index 100% rename from samples/charts/sparkline/display-types/src/app/app.component.html rename to samples/charts/sparkline/display-types/src/app.component.html diff --git a/samples/excel/spreadsheet/commands/src/app/app.component.scss b/samples/charts/sparkline/display-types/src/app.component.scss similarity index 100% rename from samples/excel/spreadsheet/commands/src/app/app.component.scss rename to samples/charts/sparkline/display-types/src/app.component.scss diff --git a/samples/charts/sparkline/display-types/src/app/app.component.ts b/samples/charts/sparkline/display-types/src/app.component.ts similarity index 100% rename from samples/charts/sparkline/display-types/src/app/app.component.ts rename to samples/charts/sparkline/display-types/src/app.component.ts diff --git a/samples/charts/sparkline/display-types/src/app/app.module.ts b/samples/charts/sparkline/display-types/src/app.module.ts similarity index 100% rename from samples/charts/sparkline/display-types/src/app/app.module.ts rename to samples/charts/sparkline/display-types/src/app.module.ts diff --git a/samples/charts/sparkline/display-types/src/config/tsconfig-es5.app.json b/samples/charts/sparkline/display-types/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/sparkline/display-types/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/sparkline/display-types/src/config/tsconfig.app.json b/samples/charts/sparkline/display-types/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/sparkline/display-types/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/sparkline/display-types/src/config/tsconfig.base.json b/samples/charts/sparkline/display-types/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/sparkline/display-types/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/sparkline/display-types/src/config/tsconfig.spec.json b/samples/charts/sparkline/display-types/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/sparkline/display-types/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/sparkline/display-types/src/config/tsconfig.worker.json b/samples/charts/sparkline/display-types/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/sparkline/display-types/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/sparkline/display-types/src/main.ts b/samples/charts/sparkline/display-types/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/sparkline/display-types/src/main.ts +++ b/samples/charts/sparkline/display-types/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/sparkline/display-types/tsconfig.app.json b/samples/charts/sparkline/display-types/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/sparkline/display-types/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/sparkline/display-types/tsconfig.json b/samples/charts/sparkline/display-types/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/sparkline/display-types/tsconfig.json +++ b/samples/charts/sparkline/display-types/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/sparkline/display-winloss/.codesandbox/Dockerfile b/samples/charts/sparkline/display-winloss/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/sparkline/display-winloss/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/sparkline/display-winloss/.codesandbox/tasks.json b/samples/charts/sparkline/display-winloss/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/sparkline/display-winloss/.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/sparkline/display-winloss/.stackblitzrc b/samples/charts/sparkline/display-winloss/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/sparkline/display-winloss/.stackblitzrc +++ b/samples/charts/sparkline/display-winloss/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/sparkline/display-winloss/angular.json b/samples/charts/sparkline/display-winloss/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/sparkline/display-winloss/angular.json +++ b/samples/charts/sparkline/display-winloss/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/sparkline/display-winloss/package.json b/samples/charts/sparkline/display-winloss/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/sparkline/display-winloss/package.json +++ b/samples/charts/sparkline/display-winloss/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/sparkline/display-winloss/sandbox.config.json b/samples/charts/sparkline/display-winloss/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/sparkline/display-winloss/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/sparkline/display-winloss/src/config/tsconfig-es5.app.json b/samples/charts/sparkline/display-winloss/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/sparkline/display-winloss/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/sparkline/display-winloss/src/config/tsconfig.app.json b/samples/charts/sparkline/display-winloss/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/sparkline/display-winloss/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/sparkline/display-winloss/src/config/tsconfig.base.json b/samples/charts/sparkline/display-winloss/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/sparkline/display-winloss/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/sparkline/display-winloss/src/config/tsconfig.spec.json b/samples/charts/sparkline/display-winloss/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/sparkline/display-winloss/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/sparkline/display-winloss/src/config/tsconfig.worker.json b/samples/charts/sparkline/display-winloss/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/sparkline/display-winloss/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/sparkline/display-winloss/tsconfig.app.json b/samples/charts/sparkline/display-winloss/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/sparkline/display-winloss/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/sparkline/display-winloss/tsconfig.json b/samples/charts/sparkline/display-winloss/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/sparkline/display-winloss/tsconfig.json +++ b/samples/charts/sparkline/display-winloss/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/sparkline/grid/.codesandbox/Dockerfile b/samples/charts/sparkline/grid/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/sparkline/grid/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/sparkline/grid/.codesandbox/tasks.json b/samples/charts/sparkline/grid/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/sparkline/grid/.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/sparkline/grid/.stackblitzrc b/samples/charts/sparkline/grid/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/sparkline/grid/.stackblitzrc +++ b/samples/charts/sparkline/grid/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/sparkline/grid/angular.json b/samples/charts/sparkline/grid/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/sparkline/grid/angular.json +++ b/samples/charts/sparkline/grid/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/sparkline/grid/package.json b/samples/charts/sparkline/grid/package.json index 54b796790..07a06398c 100644 --- a/samples/charts/sparkline/grid/package.json +++ b/samples/charts/sparkline/grid/package.json @@ -7,40 +7,40 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular": "17.0.0", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-theming": "3.3.1", + "hammerjs": "^2.0.8", + "igniteui-angular": "17.2.3", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-theming": "6.4.0-beta.2", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/sparkline/grid/sandbox.config.json b/samples/charts/sparkline/grid/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/sparkline/grid/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/sparkline/grid/src/app/Products.ts b/samples/charts/sparkline/grid/src/Products.ts similarity index 100% rename from samples/charts/sparkline/grid/src/app/Products.ts rename to samples/charts/sparkline/grid/src/Products.ts diff --git a/samples/charts/sparkline/grid/src/app/app.component.html b/samples/charts/sparkline/grid/src/app.component.html similarity index 100% rename from samples/charts/sparkline/grid/src/app/app.component.html rename to samples/charts/sparkline/grid/src/app.component.html diff --git a/samples/charts/sparkline/grid/src/app/app.component.scss b/samples/charts/sparkline/grid/src/app.component.scss similarity index 100% rename from samples/charts/sparkline/grid/src/app/app.component.scss rename to samples/charts/sparkline/grid/src/app.component.scss diff --git a/samples/charts/sparkline/grid/src/app/app.component.ts b/samples/charts/sparkline/grid/src/app.component.ts similarity index 100% rename from samples/charts/sparkline/grid/src/app/app.component.ts rename to samples/charts/sparkline/grid/src/app.component.ts diff --git a/samples/charts/sparkline/grid/src/app/app.module.ts b/samples/charts/sparkline/grid/src/app.module.ts similarity index 100% rename from samples/charts/sparkline/grid/src/app/app.module.ts rename to samples/charts/sparkline/grid/src/app.module.ts diff --git a/samples/charts/sparkline/grid/src/config/tsconfig-es5.app.json b/samples/charts/sparkline/grid/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/sparkline/grid/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/sparkline/grid/src/config/tsconfig.app.json b/samples/charts/sparkline/grid/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/sparkline/grid/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/sparkline/grid/src/config/tsconfig.base.json b/samples/charts/sparkline/grid/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/sparkline/grid/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/sparkline/grid/src/config/tsconfig.spec.json b/samples/charts/sparkline/grid/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/sparkline/grid/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/sparkline/grid/src/config/tsconfig.worker.json b/samples/charts/sparkline/grid/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/sparkline/grid/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/sparkline/grid/src/main.ts b/samples/charts/sparkline/grid/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/sparkline/grid/src/main.ts +++ b/samples/charts/sparkline/grid/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/sparkline/grid/tsconfig.app.json b/samples/charts/sparkline/grid/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/sparkline/grid/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/sparkline/grid/tsconfig.json b/samples/charts/sparkline/grid/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/sparkline/grid/tsconfig.json +++ b/samples/charts/sparkline/grid/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/sparkline/markers/.codesandbox/Dockerfile b/samples/charts/sparkline/markers/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/sparkline/markers/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/sparkline/markers/.codesandbox/tasks.json b/samples/charts/sparkline/markers/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/sparkline/markers/.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/sparkline/markers/.stackblitzrc b/samples/charts/sparkline/markers/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/sparkline/markers/.stackblitzrc +++ b/samples/charts/sparkline/markers/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/sparkline/markers/angular.json b/samples/charts/sparkline/markers/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/sparkline/markers/angular.json +++ b/samples/charts/sparkline/markers/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/sparkline/markers/package.json b/samples/charts/sparkline/markers/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/sparkline/markers/package.json +++ b/samples/charts/sparkline/markers/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/sparkline/markers/sandbox.config.json b/samples/charts/sparkline/markers/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/sparkline/markers/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/sparkline/markers/src/config/tsconfig-es5.app.json b/samples/charts/sparkline/markers/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/sparkline/markers/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/sparkline/markers/src/config/tsconfig.app.json b/samples/charts/sparkline/markers/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/sparkline/markers/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/sparkline/markers/src/config/tsconfig.base.json b/samples/charts/sparkline/markers/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/sparkline/markers/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/sparkline/markers/src/config/tsconfig.spec.json b/samples/charts/sparkline/markers/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/sparkline/markers/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/sparkline/markers/src/config/tsconfig.worker.json b/samples/charts/sparkline/markers/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/sparkline/markers/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/sparkline/markers/tsconfig.app.json b/samples/charts/sparkline/markers/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/sparkline/markers/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/sparkline/markers/tsconfig.json b/samples/charts/sparkline/markers/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/sparkline/markers/tsconfig.json +++ b/samples/charts/sparkline/markers/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/sparkline/normal-range/.codesandbox/Dockerfile b/samples/charts/sparkline/normal-range/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/sparkline/normal-range/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/sparkline/normal-range/.codesandbox/tasks.json b/samples/charts/sparkline/normal-range/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/sparkline/normal-range/.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/sparkline/normal-range/.stackblitzrc b/samples/charts/sparkline/normal-range/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/sparkline/normal-range/.stackblitzrc +++ b/samples/charts/sparkline/normal-range/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/sparkline/normal-range/angular.json b/samples/charts/sparkline/normal-range/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/sparkline/normal-range/angular.json +++ b/samples/charts/sparkline/normal-range/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/sparkline/normal-range/package.json b/samples/charts/sparkline/normal-range/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/sparkline/normal-range/package.json +++ b/samples/charts/sparkline/normal-range/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/sparkline/normal-range/sandbox.config.json b/samples/charts/sparkline/normal-range/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/sparkline/normal-range/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/sparkline/normal-range/src/config/tsconfig-es5.app.json b/samples/charts/sparkline/normal-range/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/sparkline/normal-range/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/sparkline/normal-range/src/config/tsconfig.app.json b/samples/charts/sparkline/normal-range/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/sparkline/normal-range/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/sparkline/normal-range/src/config/tsconfig.base.json b/samples/charts/sparkline/normal-range/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/sparkline/normal-range/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/sparkline/normal-range/src/config/tsconfig.spec.json b/samples/charts/sparkline/normal-range/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/sparkline/normal-range/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/sparkline/normal-range/src/config/tsconfig.worker.json b/samples/charts/sparkline/normal-range/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/sparkline/normal-range/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/sparkline/normal-range/tsconfig.app.json b/samples/charts/sparkline/normal-range/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/sparkline/normal-range/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/sparkline/normal-range/tsconfig.json b/samples/charts/sparkline/normal-range/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/sparkline/normal-range/tsconfig.json +++ b/samples/charts/sparkline/normal-range/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/sparkline/trendlines/.codesandbox/Dockerfile b/samples/charts/sparkline/trendlines/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/sparkline/trendlines/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/sparkline/trendlines/.codesandbox/tasks.json b/samples/charts/sparkline/trendlines/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/sparkline/trendlines/.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/sparkline/trendlines/.stackblitzrc b/samples/charts/sparkline/trendlines/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/sparkline/trendlines/.stackblitzrc +++ b/samples/charts/sparkline/trendlines/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/sparkline/trendlines/angular.json b/samples/charts/sparkline/trendlines/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/sparkline/trendlines/angular.json +++ b/samples/charts/sparkline/trendlines/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/sparkline/trendlines/package.json b/samples/charts/sparkline/trendlines/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/sparkline/trendlines/package.json +++ b/samples/charts/sparkline/trendlines/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/sparkline/trendlines/sandbox.config.json b/samples/charts/sparkline/trendlines/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/sparkline/trendlines/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/sparkline/trendlines/src/config/tsconfig-es5.app.json b/samples/charts/sparkline/trendlines/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/sparkline/trendlines/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/sparkline/trendlines/src/config/tsconfig.app.json b/samples/charts/sparkline/trendlines/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/sparkline/trendlines/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/sparkline/trendlines/src/config/tsconfig.base.json b/samples/charts/sparkline/trendlines/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/sparkline/trendlines/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/sparkline/trendlines/src/config/tsconfig.spec.json b/samples/charts/sparkline/trendlines/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/sparkline/trendlines/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/sparkline/trendlines/src/config/tsconfig.worker.json b/samples/charts/sparkline/trendlines/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/sparkline/trendlines/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/sparkline/trendlines/tsconfig.app.json b/samples/charts/sparkline/trendlines/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/sparkline/trendlines/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/sparkline/trendlines/tsconfig.json b/samples/charts/sparkline/trendlines/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/sparkline/trendlines/tsconfig.json +++ b/samples/charts/sparkline/trendlines/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/sparkline/unknown-values/.codesandbox/Dockerfile b/samples/charts/sparkline/unknown-values/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/sparkline/unknown-values/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/sparkline/unknown-values/.codesandbox/tasks.json b/samples/charts/sparkline/unknown-values/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/sparkline/unknown-values/.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/sparkline/unknown-values/.stackblitzrc b/samples/charts/sparkline/unknown-values/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/sparkline/unknown-values/.stackblitzrc +++ b/samples/charts/sparkline/unknown-values/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/sparkline/unknown-values/angular.json b/samples/charts/sparkline/unknown-values/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/sparkline/unknown-values/angular.json +++ b/samples/charts/sparkline/unknown-values/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/sparkline/unknown-values/package.json b/samples/charts/sparkline/unknown-values/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/sparkline/unknown-values/package.json +++ b/samples/charts/sparkline/unknown-values/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/sparkline/unknown-values/sandbox.config.json b/samples/charts/sparkline/unknown-values/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/sparkline/unknown-values/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/sparkline/unknown-values/src/config/tsconfig-es5.app.json b/samples/charts/sparkline/unknown-values/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/sparkline/unknown-values/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/sparkline/unknown-values/src/config/tsconfig.app.json b/samples/charts/sparkline/unknown-values/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/sparkline/unknown-values/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/sparkline/unknown-values/src/config/tsconfig.base.json b/samples/charts/sparkline/unknown-values/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/sparkline/unknown-values/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/sparkline/unknown-values/src/config/tsconfig.spec.json b/samples/charts/sparkline/unknown-values/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/sparkline/unknown-values/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/sparkline/unknown-values/src/config/tsconfig.worker.json b/samples/charts/sparkline/unknown-values/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/sparkline/unknown-values/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/sparkline/unknown-values/tsconfig.app.json b/samples/charts/sparkline/unknown-values/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/sparkline/unknown-values/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/sparkline/unknown-values/tsconfig.json b/samples/charts/sparkline/unknown-values/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/sparkline/unknown-values/tsconfig.json +++ b/samples/charts/sparkline/unknown-values/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/toolbar/actions-built-in-category-chart/.codesandbox/Dockerfile b/samples/charts/toolbar/actions-built-in-category-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/toolbar/actions-built-in-category-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/toolbar/actions-built-in-category-chart/.codesandbox/tasks.json b/samples/charts/toolbar/actions-built-in-category-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/toolbar/actions-built-in-category-chart/.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/toolbar/actions-built-in-category-chart/.stackblitzrc b/samples/charts/toolbar/actions-built-in-category-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/toolbar/actions-built-in-category-chart/.stackblitzrc +++ b/samples/charts/toolbar/actions-built-in-category-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/toolbar/actions-built-in-category-chart/angular.json b/samples/charts/toolbar/actions-built-in-category-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/toolbar/actions-built-in-category-chart/angular.json +++ b/samples/charts/toolbar/actions-built-in-category-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/toolbar/actions-built-in-category-chart/package.json b/samples/charts/toolbar/actions-built-in-category-chart/package.json index 632873a59..b18743c2c 100644 --- a/samples/charts/toolbar/actions-built-in-category-chart/package.json +++ b/samples/charts/toolbar/actions-built-in-category-chart/package.json @@ -7,40 +7,40 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/toolbar/actions-built-in-category-chart/sandbox.config.json b/samples/charts/toolbar/actions-built-in-category-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/toolbar/actions-built-in-category-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig-es5.app.json b/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.app.json b/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.base.json b/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.spec.json b/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.worker.json b/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/toolbar/actions-built-in-category-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/toolbar/actions-built-in-category-chart/tsconfig.app.json b/samples/charts/toolbar/actions-built-in-category-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/toolbar/actions-built-in-category-chart/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/toolbar/actions-built-in-category-chart/tsconfig.json b/samples/charts/toolbar/actions-built-in-category-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/toolbar/actions-built-in-category-chart/tsconfig.json +++ b/samples/charts/toolbar/actions-built-in-category-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/toolbar/actions-built-in-data-chart/.codesandbox/Dockerfile b/samples/charts/toolbar/actions-built-in-data-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/toolbar/actions-built-in-data-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/toolbar/actions-built-in-data-chart/.codesandbox/tasks.json b/samples/charts/toolbar/actions-built-in-data-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/toolbar/actions-built-in-data-chart/.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/toolbar/actions-built-in-data-chart/.stackblitzrc b/samples/charts/toolbar/actions-built-in-data-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/toolbar/actions-built-in-data-chart/.stackblitzrc +++ b/samples/charts/toolbar/actions-built-in-data-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/toolbar/actions-built-in-data-chart/angular.json b/samples/charts/toolbar/actions-built-in-data-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/toolbar/actions-built-in-data-chart/angular.json +++ b/samples/charts/toolbar/actions-built-in-data-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/toolbar/actions-built-in-data-chart/package.json b/samples/charts/toolbar/actions-built-in-data-chart/package.json index 632873a59..b18743c2c 100644 --- a/samples/charts/toolbar/actions-built-in-data-chart/package.json +++ b/samples/charts/toolbar/actions-built-in-data-chart/package.json @@ -7,40 +7,40 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/toolbar/actions-built-in-data-chart/sandbox.config.json b/samples/charts/toolbar/actions-built-in-data-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/toolbar/actions-built-in-data-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig-es5.app.json b/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.app.json b/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.base.json b/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.spec.json b/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.worker.json b/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/toolbar/actions-built-in-data-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/toolbar/actions-built-in-data-chart/tsconfig.app.json b/samples/charts/toolbar/actions-built-in-data-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/toolbar/actions-built-in-data-chart/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/toolbar/actions-built-in-data-chart/tsconfig.json b/samples/charts/toolbar/actions-built-in-data-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/toolbar/actions-built-in-data-chart/tsconfig.json +++ b/samples/charts/toolbar/actions-built-in-data-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/toolbar/custom-tool/.codesandbox/Dockerfile b/samples/charts/toolbar/custom-tool/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/toolbar/custom-tool/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/toolbar/custom-tool/.codesandbox/tasks.json b/samples/charts/toolbar/custom-tool/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/toolbar/custom-tool/.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/toolbar/custom-tool/.stackblitzrc b/samples/charts/toolbar/custom-tool/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/toolbar/custom-tool/.stackblitzrc +++ b/samples/charts/toolbar/custom-tool/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/toolbar/custom-tool/angular.json b/samples/charts/toolbar/custom-tool/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/toolbar/custom-tool/angular.json +++ b/samples/charts/toolbar/custom-tool/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/toolbar/custom-tool/package.json b/samples/charts/toolbar/custom-tool/package.json index c16540840..ac0c7e9cd 100644 --- a/samples/charts/toolbar/custom-tool/package.json +++ b/samples/charts/toolbar/custom-tool/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/toolbar/custom-tool/sandbox.config.json b/samples/charts/toolbar/custom-tool/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/toolbar/custom-tool/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/toolbar/custom-tool/src/config/tsconfig-es5.app.json b/samples/charts/toolbar/custom-tool/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/toolbar/custom-tool/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/toolbar/custom-tool/src/config/tsconfig.app.json b/samples/charts/toolbar/custom-tool/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/toolbar/custom-tool/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/toolbar/custom-tool/src/config/tsconfig.base.json b/samples/charts/toolbar/custom-tool/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/toolbar/custom-tool/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/toolbar/custom-tool/src/config/tsconfig.spec.json b/samples/charts/toolbar/custom-tool/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/toolbar/custom-tool/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/toolbar/custom-tool/src/config/tsconfig.worker.json b/samples/charts/toolbar/custom-tool/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/toolbar/custom-tool/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/toolbar/custom-tool/tsconfig.app.json b/samples/charts/toolbar/custom-tool/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/toolbar/custom-tool/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/toolbar/custom-tool/tsconfig.json b/samples/charts/toolbar/custom-tool/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/toolbar/custom-tool/tsconfig.json +++ b/samples/charts/toolbar/custom-tool/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/toolbar/layout-actions-for-data-chart/.codesandbox/Dockerfile b/samples/charts/toolbar/layout-actions-for-data-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/toolbar/layout-actions-for-data-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/toolbar/layout-actions-for-data-chart/.codesandbox/tasks.json b/samples/charts/toolbar/layout-actions-for-data-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/toolbar/layout-actions-for-data-chart/.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/toolbar/layout-actions-for-data-chart/.stackblitzrc b/samples/charts/toolbar/layout-actions-for-data-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/toolbar/layout-actions-for-data-chart/.stackblitzrc +++ b/samples/charts/toolbar/layout-actions-for-data-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/toolbar/layout-actions-for-data-chart/angular.json b/samples/charts/toolbar/layout-actions-for-data-chart/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/toolbar/layout-actions-for-data-chart/angular.json +++ b/samples/charts/toolbar/layout-actions-for-data-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/toolbar/layout-actions-for-data-chart/package.json b/samples/charts/toolbar/layout-actions-for-data-chart/package.json index 632873a59..b18743c2c 100644 --- a/samples/charts/toolbar/layout-actions-for-data-chart/package.json +++ b/samples/charts/toolbar/layout-actions-for-data-chart/package.json @@ -7,40 +7,40 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/toolbar/layout-actions-for-data-chart/sandbox.config.json b/samples/charts/toolbar/layout-actions-for-data-chart/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/toolbar/layout-actions-for-data-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig-es5.app.json b/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.app.json b/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.base.json b/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.spec.json b/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.worker.json b/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/toolbar/layout-actions-for-data-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/toolbar/layout-actions-for-data-chart/tsconfig.app.json b/samples/charts/toolbar/layout-actions-for-data-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/toolbar/layout-actions-for-data-chart/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/toolbar/layout-actions-for-data-chart/tsconfig.json b/samples/charts/toolbar/layout-actions-for-data-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/toolbar/layout-actions-for-data-chart/tsconfig.json +++ b/samples/charts/toolbar/layout-actions-for-data-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/toolbar/layout-in-vertical-orientation/.codesandbox/Dockerfile b/samples/charts/toolbar/layout-in-vertical-orientation/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/toolbar/layout-in-vertical-orientation/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/toolbar/layout-in-vertical-orientation/.codesandbox/tasks.json b/samples/charts/toolbar/layout-in-vertical-orientation/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/toolbar/layout-in-vertical-orientation/.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/toolbar/layout-in-vertical-orientation/.stackblitzrc b/samples/charts/toolbar/layout-in-vertical-orientation/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/toolbar/layout-in-vertical-orientation/.stackblitzrc +++ b/samples/charts/toolbar/layout-in-vertical-orientation/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/toolbar/layout-in-vertical-orientation/angular.json b/samples/charts/toolbar/layout-in-vertical-orientation/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/toolbar/layout-in-vertical-orientation/angular.json +++ b/samples/charts/toolbar/layout-in-vertical-orientation/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/toolbar/layout-in-vertical-orientation/package.json b/samples/charts/toolbar/layout-in-vertical-orientation/package.json index 632873a59..b18743c2c 100644 --- a/samples/charts/toolbar/layout-in-vertical-orientation/package.json +++ b/samples/charts/toolbar/layout-in-vertical-orientation/package.json @@ -7,40 +7,40 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/toolbar/layout-in-vertical-orientation/sandbox.config.json b/samples/charts/toolbar/layout-in-vertical-orientation/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/toolbar/layout-in-vertical-orientation/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig-es5.app.json b/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.app.json b/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.base.json b/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.spec.json b/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.worker.json b/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/toolbar/layout-in-vertical-orientation/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/toolbar/layout-in-vertical-orientation/tsconfig.app.json b/samples/charts/toolbar/layout-in-vertical-orientation/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/toolbar/layout-in-vertical-orientation/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/toolbar/layout-in-vertical-orientation/tsconfig.json b/samples/charts/toolbar/layout-in-vertical-orientation/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/toolbar/layout-in-vertical-orientation/tsconfig.json +++ b/samples/charts/toolbar/layout-in-vertical-orientation/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/toolbar/theming/.codesandbox/Dockerfile b/samples/charts/toolbar/theming/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/toolbar/theming/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/toolbar/theming/.codesandbox/tasks.json b/samples/charts/toolbar/theming/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/toolbar/theming/.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/toolbar/theming/.stackblitzrc b/samples/charts/toolbar/theming/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/toolbar/theming/.stackblitzrc +++ b/samples/charts/toolbar/theming/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/toolbar/theming/angular.json b/samples/charts/toolbar/theming/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/toolbar/theming/angular.json +++ b/samples/charts/toolbar/theming/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/toolbar/theming/package.json b/samples/charts/toolbar/theming/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/toolbar/theming/package.json +++ b/samples/charts/toolbar/theming/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/toolbar/theming/sandbox.config.json b/samples/charts/toolbar/theming/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/toolbar/theming/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/toolbar/theming/src/config/tsconfig-es5.app.json b/samples/charts/toolbar/theming/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/toolbar/theming/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/toolbar/theming/src/config/tsconfig.app.json b/samples/charts/toolbar/theming/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/toolbar/theming/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/toolbar/theming/src/config/tsconfig.base.json b/samples/charts/toolbar/theming/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/toolbar/theming/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/toolbar/theming/src/config/tsconfig.spec.json b/samples/charts/toolbar/theming/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/toolbar/theming/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/toolbar/theming/src/config/tsconfig.worker.json b/samples/charts/toolbar/theming/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/toolbar/theming/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/toolbar/theming/tsconfig.app.json b/samples/charts/toolbar/theming/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/toolbar/theming/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/toolbar/theming/tsconfig.json b/samples/charts/toolbar/theming/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/toolbar/theming/tsconfig.json +++ b/samples/charts/toolbar/theming/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/tree-map/events/.codesandbox/Dockerfile b/samples/charts/tree-map/events/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/tree-map/events/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/tree-map/events/.codesandbox/tasks.json b/samples/charts/tree-map/events/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/tree-map/events/.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/tree-map/events/.stackblitzrc b/samples/charts/tree-map/events/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/tree-map/events/.stackblitzrc +++ b/samples/charts/tree-map/events/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/tree-map/events/angular.json b/samples/charts/tree-map/events/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/tree-map/events/angular.json +++ b/samples/charts/tree-map/events/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/tree-map/events/package.json b/samples/charts/tree-map/events/package.json index 3f89920d8..455da6795 100644 --- a/samples/charts/tree-map/events/package.json +++ b/samples/charts/tree-map/events/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular": "17.0.0", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular": "17.2.3", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/tree-map/events/sandbox.config.json b/samples/charts/tree-map/events/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/tree-map/events/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/tree-map/events/src/app/app.component.html b/samples/charts/tree-map/events/src/app.component.html similarity index 100% rename from samples/charts/tree-map/events/src/app/app.component.html rename to samples/charts/tree-map/events/src/app.component.html diff --git a/samples/excel/spreadsheet/conditional-formatting/src/app/app.component.scss b/samples/charts/tree-map/events/src/app.component.scss similarity index 100% rename from samples/excel/spreadsheet/conditional-formatting/src/app/app.component.scss rename to samples/charts/tree-map/events/src/app.component.scss diff --git a/samples/charts/tree-map/events/src/app/app.component.ts b/samples/charts/tree-map/events/src/app.component.ts similarity index 100% rename from samples/charts/tree-map/events/src/app/app.component.ts rename to samples/charts/tree-map/events/src/app.component.ts diff --git a/samples/charts/tree-map/events/src/app/app.module.ts b/samples/charts/tree-map/events/src/app.module.ts similarity index 100% rename from samples/charts/tree-map/events/src/app/app.module.ts rename to samples/charts/tree-map/events/src/app.module.ts diff --git a/samples/charts/tree-map/events/src/config/tsconfig-es5.app.json b/samples/charts/tree-map/events/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/tree-map/events/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/tree-map/events/src/config/tsconfig.app.json b/samples/charts/tree-map/events/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/tree-map/events/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/tree-map/events/src/config/tsconfig.base.json b/samples/charts/tree-map/events/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/tree-map/events/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/tree-map/events/src/config/tsconfig.spec.json b/samples/charts/tree-map/events/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/tree-map/events/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/tree-map/events/src/config/tsconfig.worker.json b/samples/charts/tree-map/events/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/tree-map/events/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/tree-map/events/src/main.ts b/samples/charts/tree-map/events/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/tree-map/events/src/main.ts +++ b/samples/charts/tree-map/events/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/tree-map/events/tsconfig.app.json b/samples/charts/tree-map/events/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/tree-map/events/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/tree-map/events/tsconfig.json b/samples/charts/tree-map/events/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/tree-map/events/tsconfig.json +++ b/samples/charts/tree-map/events/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/tree-map/highlighting-percent-based/.codesandbox/Dockerfile b/samples/charts/tree-map/highlighting-percent-based/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/tree-map/highlighting-percent-based/.codesandbox/tasks.json b/samples/charts/tree-map/highlighting-percent-based/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/.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/tree-map/highlighting-percent-based/.stackblitzrc b/samples/charts/tree-map/highlighting-percent-based/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/tree-map/highlighting-percent-based/ReadMe.md b/samples/charts/tree-map/highlighting-percent-based/ReadMe.md new file mode 100644 index 000000000..3d8dc96f9 --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/ReadMe.md @@ -0,0 +1,58 @@ + + + +This folder contains Angular application with example of Highlighting Percent Based feature using [TreeMap](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/tree-map/highlighting-percent-based +``` + + +- 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/tree-map/highlighting-percent-based/angular.json b/samples/charts/tree-map/highlighting-percent-based/angular.json new file mode 100644 index 000000000..ff6803cf7 --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/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/tree-map/highlighting-percent-based/package.json b/samples/charts/tree-map/highlighting-percent-based/package.json new file mode 100644 index 000000000..35620b319 --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/package.json @@ -0,0 +1,44 @@ +{ + "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": "^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", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.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.14.4" + }, + "devDependencies": { + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@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.3.3" + } +} diff --git a/samples/charts/tree-map/highlighting-percent-based/src/CountryTopUrbanPopData.ts b/samples/charts/tree-map/highlighting-percent-based/src/CountryTopUrbanPopData.ts new file mode 100644 index 000000000..667fb3636 --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/src/CountryTopUrbanPopData.ts @@ -0,0 +1,78 @@ +export class CountryTopUrbanPopDataItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public code: string; + public parent: string; + public name: string; + public population: number; + public urbanPopulation: number; + public urbanPopPercent: string; + +} +export class CountryTopUrbanPopData extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new CountryTopUrbanPopDataItem( + { + code: `ASA`, + parent: null, + name: `Asia`, + population: null, + urbanPopulation: null, + urbanPopPercent: null + }), + new CountryTopUrbanPopDataItem( + { + code: `NAM`, + parent: null, + name: `North America`, + population: null, + urbanPopulation: null, + urbanPopPercent: null + }), + new CountryTopUrbanPopDataItem( + { + code: `CHI`, + parent: `Asia`, + name: `China`, + population: 1425178792, + urbanPopulation: 941865672, + urbanPopPercent: `65%` + }), + new CountryTopUrbanPopDataItem( + { + code: `IND`, + parent: `Asia`, + name: `India`, + population: 1428627663, + urbanPopulation: 530387142, + urbanPopPercent: `36%` + }), + new CountryTopUrbanPopDataItem( + { + code: `USA`, + parent: `North America`, + name: `United States`, + population: 341814420, + urbanPopulation: 284698234, + urbanPopPercent: `83%` + }), + new CountryTopUrbanPopDataItem( + { + code: `MEX`, + parent: `North America`, + name: `Mexico`, + population: 129388467, + urbanPopulation: 114397383, + urbanPopPercent: `88%` + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/tree-map/highlighting-percent-based/src/app.component.html b/samples/charts/tree-map/highlighting-percent-based/src/app.component.html new file mode 100644 index 000000000..bbd744618 --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/src/app.component.html @@ -0,0 +1,27 @@ +
+
+ Comparing Top Urban Population Percentages between North America & Asia +
+
+ + +
+
diff --git a/samples/excel/spreadsheet/config-options/src/app/app.component.scss b/samples/charts/tree-map/highlighting-percent-based/src/app.component.scss similarity index 100% rename from samples/excel/spreadsheet/config-options/src/app/app.component.scss rename to samples/charts/tree-map/highlighting-percent-based/src/app.component.scss diff --git a/samples/charts/tree-map/highlighting-percent-based/src/app.component.ts b/samples/charts/tree-map/highlighting-percent-based/src/app.component.ts new file mode 100644 index 000000000..07c695377 --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/src/app.component.ts @@ -0,0 +1,46 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { ComponentRenderer, TreemapDescriptionModule } from 'igniteui-angular-core'; +import { CountryTopUrbanPopDataItem, CountryTopUrbanPopData } from './CountryTopUrbanPopData'; +import { IgxTreemapComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("treemap", { static: true } ) + private treemap: IgxTreemapComponent + private _countryTopUrbanPopData: CountryTopUrbanPopData = null; + public get countryTopUrbanPopData(): CountryTopUrbanPopData { + if (this._countryTopUrbanPopData == null) + { + this._countryTopUrbanPopData = new CountryTopUrbanPopData(); + } + return this._countryTopUrbanPopData; + } + + private _componentRenderer: ComponentRenderer = null; + public get renderer(): ComponentRenderer { + if (this._componentRenderer == null) { + this._componentRenderer = new ComponentRenderer(); + var context = this._componentRenderer.context; + TreemapDescriptionModule.register(context); + } + return this._componentRenderer; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/samples/charts/tree-map/highlighting-percent-based/src/app.module.ts b/samples/charts/tree-map/highlighting-percent-based/src/app.module.ts new file mode 100644 index 000000000..cd5876a1b --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/src/app.module.ts @@ -0,0 +1,25 @@ +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 { IgxTreemapModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxTreemapModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/tree-map/highlighting-percent-based/src/environments/environment.prod.ts b/samples/charts/tree-map/highlighting-percent-based/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/tree-map/highlighting-percent-based/src/environments/environment.ts b/samples/charts/tree-map/highlighting-percent-based/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/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/tree-map/highlighting-percent-based/src/index.html b/samples/charts/tree-map/highlighting-percent-based/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/tree-map/highlighting-percent-based/src/main.ts b/samples/charts/tree-map/highlighting-percent-based/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/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/tree-map/highlighting-percent-based/src/polyfills.ts b/samples/charts/tree-map/highlighting-percent-based/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/tree-map/highlighting-percent-based/src/styles.scss b/samples/charts/tree-map/highlighting-percent-based/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/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/tree-map/highlighting-percent-based/src/typings.d.ts b/samples/charts/tree-map/highlighting-percent-based/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/tree-map/highlighting-percent-based/tsconfig.app.json b/samples/charts/tree-map/highlighting-percent-based/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/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/tree-map/highlighting-percent-based/tsconfig.json b/samples/charts/tree-map/highlighting-percent-based/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/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/tree-map/highlighting-percent-based/tslint.json b/samples/charts/tree-map/highlighting-percent-based/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/tree-map/highlighting-percent-based/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"] + } +} diff --git a/samples/charts/tree-map/highlighting/.codesandbox/Dockerfile b/samples/charts/tree-map/highlighting/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/tree-map/highlighting/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/tree-map/highlighting/.codesandbox/tasks.json b/samples/charts/tree-map/highlighting/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/tree-map/highlighting/.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/tree-map/highlighting/.stackblitzrc b/samples/charts/tree-map/highlighting/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/charts/tree-map/highlighting/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/tree-map/highlighting/ReadMe.md b/samples/charts/tree-map/highlighting/ReadMe.md new file mode 100644 index 000000000..740edde7e --- /dev/null +++ b/samples/charts/tree-map/highlighting/ReadMe.md @@ -0,0 +1,58 @@ + + + +This folder contains Angular application with example of Highlighting feature using [TreeMap](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/tree-map/highlighting +``` + + +- 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/tree-map/highlighting/angular.json b/samples/charts/tree-map/highlighting/angular.json new file mode 100644 index 000000000..0c2c173c9 --- /dev/null +++ b/samples/charts/tree-map/highlighting/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/tree-map/highlighting/package.json b/samples/charts/tree-map/highlighting/package.json new file mode 100644 index 000000000..e03218915 --- /dev/null +++ b/samples/charts/tree-map/highlighting/package.json @@ -0,0 +1,47 @@ +{ + "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": "^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", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.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.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", + "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.3.3" + } +} diff --git a/samples/charts/tree-map/highlighting/src/CountyHierarchicalData.ts b/samples/charts/tree-map/highlighting/src/CountyHierarchicalData.ts new file mode 100644 index 000000000..e475830fc --- /dev/null +++ b/samples/charts/tree-map/highlighting/src/CountyHierarchicalData.ts @@ -0,0 +1,1576 @@ +export class CountyHierarchicalDataItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public code: string; + public parent: string; + public name: string; + public population: number; + +} +export class CountyHierarchicalData extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new CountyHierarchicalDataItem( + { + code: `AFC`, + parent: null, + name: `Africa`, + population: null + }), + new CountyHierarchicalDataItem( + { + code: `ASA`, + parent: null, + name: `Asia`, + population: null + }), + new CountyHierarchicalDataItem( + { + code: `EUR`, + parent: null, + name: `Europe`, + population: null + }), + new CountyHierarchicalDataItem( + { + code: `MDE`, + parent: null, + name: `Middle East`, + population: null + }), + new CountyHierarchicalDataItem( + { + code: `NAM`, + parent: null, + name: `North America`, + population: null + }), + new CountyHierarchicalDataItem( + { + code: `CAM`, + parent: null, + name: `Central America`, + population: null + }), + new CountyHierarchicalDataItem( + { + code: `SAM`, + parent: null, + name: `South America`, + population: null + }), + new CountyHierarchicalDataItem( + { + code: `OCE`, + parent: null, + name: `Oceania`, + population: null + }), + new CountyHierarchicalDataItem( + { + code: `ANG`, + parent: `Africa`, + name: `Angola`, + population: 19618432 + }), + new CountyHierarchicalDataItem( + { + code: `BEN`, + parent: `Africa`, + name: `Benin`, + population: 9099922 + }), + new CountyHierarchicalDataItem( + { + code: `BOT`, + parent: `Africa`, + name: `Botswana`, + population: 2030738 + }), + new CountyHierarchicalDataItem( + { + code: `BUR`, + parent: `Africa`, + name: `Burkina Faso`, + population: 16967845 + }), + new CountyHierarchicalDataItem( + { + code: `BUR`, + parent: `Africa`, + name: `Burundi`, + population: 8575172 + }), + new CountyHierarchicalDataItem( + { + code: `CAM`, + parent: `Africa`, + name: `Cameroon`, + population: 20030362 + }), + new CountyHierarchicalDataItem( + { + code: `CPV`, + parent: `Africa`, + name: `Cape Verde`, + population: 500585 + }), + new CountyHierarchicalDataItem( + { + code: `CAR`, + parent: `Africa`, + name: `Central African Republic`, + population: 4486837 + }), + new CountyHierarchicalDataItem( + { + code: `CHD`, + parent: `Africa`, + name: `Chad`, + population: 11525496 + }), + new CountyHierarchicalDataItem( + { + code: `COM`, + parent: `Africa`, + name: `Comoros`, + population: 753943 + }), + new CountyHierarchicalDataItem( + { + code: `DRC`, + parent: `Africa`, + name: `Congo DRC`, + population: 67757577 + }), + new CountyHierarchicalDataItem( + { + code: `CRP`, + parent: `Africa`, + name: `Congo Republic`, + population: 4139748 + }), + new CountyHierarchicalDataItem( + { + code: `CIR`, + parent: `Africa`, + name: `Cote Ivoire`, + population: 20152894 + }), + new CountyHierarchicalDataItem( + { + code: `DBT`, + parent: `Africa`, + name: `Djibouti`, + population: 905564 + }), + new CountyHierarchicalDataItem( + { + code: `ETG`, + parent: `Africa`, + name: `Equatorial Guinea`, + population: 720213 + }), + new CountyHierarchicalDataItem( + { + code: `ERT`, + parent: `Africa`, + name: `Eritrea`, + population: 5415280 + }), + new CountyHierarchicalDataItem( + { + code: `ETH`, + parent: `Africa`, + name: `Ethiopia`, + population: 84734262 + }), + new CountyHierarchicalDataItem( + { + code: `GBN`, + parent: `Africa`, + name: `Gabon`, + population: 1534262 + }), + new CountyHierarchicalDataItem( + { + code: `GMB`, + parent: `Africa`, + name: `Gambia`, + population: 1776103 + }), + new CountyHierarchicalDataItem( + { + code: `GHN`, + parent: `Africa`, + name: `Ghana`, + population: 24965816 + }), + new CountyHierarchicalDataItem( + { + code: `GUN`, + parent: `Africa`, + name: `Guinea`, + population: 10221808 + }), + new CountyHierarchicalDataItem( + { + code: `GNB`, + parent: `Africa`, + name: `Guinea-Bissau`, + population: 1547061 + }), + new CountyHierarchicalDataItem( + { + code: `KEN`, + parent: `Africa`, + name: `Kenya`, + population: 41609728 + }), + new CountyHierarchicalDataItem( + { + code: `LES`, + parent: `Africa`, + name: `Lesotho`, + population: 2193843 + }), + new CountyHierarchicalDataItem( + { + code: `LBR`, + parent: `Africa`, + name: `Liberia`, + population: 4128572 + }), + new CountyHierarchicalDataItem( + { + code: `MDG`, + parent: `Africa`, + name: `Madagascar`, + population: 21315135 + }), + new CountyHierarchicalDataItem( + { + code: `MLW`, + parent: `Africa`, + name: `Malawi`, + population: 15380888 + }), + new CountyHierarchicalDataItem( + { + code: `MAL`, + parent: `Africa`, + name: `Mali`, + population: 15839538 + }), + new CountyHierarchicalDataItem( + { + code: `MRT`, + parent: `Africa`, + name: `Mauritania`, + population: 3541540 + }), + new CountyHierarchicalDataItem( + { + code: `MUS`, + parent: `Africa`, + name: `Mauritius`, + population: 1286051 + }), + new CountyHierarchicalDataItem( + { + code: `MOZ`, + parent: `Africa`, + name: `Mozambique`, + population: 23929708 + }), + new CountyHierarchicalDataItem( + { + code: `NMB`, + parent: `Africa`, + name: `Namibia`, + population: 2324004 + }), + new CountyHierarchicalDataItem( + { + code: `NER`, + parent: `Africa`, + name: `Niger`, + population: 16068994 + }), + new CountyHierarchicalDataItem( + { + code: `NGA`, + parent: `Africa`, + name: `Nigeria`, + population: 162470737 + }), + new CountyHierarchicalDataItem( + { + code: `RWD`, + parent: `Africa`, + name: `Rwanda`, + population: 10942950 + }), + new CountyHierarchicalDataItem( + { + code: `STM`, + parent: `Africa`, + name: `Sao Tome`, + population: 168526 + }), + new CountyHierarchicalDataItem( + { + code: `SEN`, + parent: `Africa`, + name: `Senegal`, + population: 12767556 + }), + new CountyHierarchicalDataItem( + { + code: `SYC`, + parent: `Africa`, + name: `Seychelles`, + population: 86000 + }), + new CountyHierarchicalDataItem( + { + code: `SRL`, + parent: `Africa`, + name: `Sierra Leone`, + population: 5997486 + }), + new CountyHierarchicalDataItem( + { + code: `ZAF`, + parent: `Africa`, + name: `South Africa`, + population: 50586757 + }), + new CountyHierarchicalDataItem( + { + code: `SSD`, + parent: `Africa`, + name: `South Sudan`, + population: 10314021 + }), + new CountyHierarchicalDataItem( + { + code: `SDN`, + parent: `Africa`, + name: `Sudan`, + population: 34318385 + }), + new CountyHierarchicalDataItem( + { + code: `SWZ`, + parent: `Africa`, + name: `Swaziland`, + population: 1067773 + }), + new CountyHierarchicalDataItem( + { + code: `TNZ`, + parent: `Africa`, + name: `Tanzania`, + population: 46218486 + }), + new CountyHierarchicalDataItem( + { + code: `TOG`, + parent: `Africa`, + name: `Togo`, + population: 6154813 + }), + new CountyHierarchicalDataItem( + { + code: `UGN`, + parent: `Africa`, + name: `Uganda`, + population: 34509205 + }), + new CountyHierarchicalDataItem( + { + code: `ZMB`, + parent: `Africa`, + name: `Zambia`, + population: 13474959 + }), + new CountyHierarchicalDataItem( + { + code: `ZWE`, + parent: `Africa`, + name: `Zimbabwe`, + population: 12754378 + }), + new CountyHierarchicalDataItem( + { + code: `AFG`, + parent: `Asia`, + name: `Afghanistan`, + population: 35320445 + }), + new CountyHierarchicalDataItem( + { + code: `BAN`, + parent: `Asia`, + name: `Bangladesh`, + population: 150493658 + }), + new CountyHierarchicalDataItem( + { + code: `BHT`, + parent: `Asia`, + name: `Bhutan`, + population: 738267 + }), + new CountyHierarchicalDataItem( + { + code: `BRN`, + parent: `Asia`, + name: `Brunei`, + population: 405938 + }), + new CountyHierarchicalDataItem( + { + code: `CAM`, + parent: `Asia`, + name: `Cambodia`, + population: 14305183 + }), + new CountyHierarchicalDataItem( + { + code: `CHI`, + parent: `Asia`, + name: `China`, + population: 1344130000 + }), + new CountyHierarchicalDataItem( + { + code: `HNK`, + parent: `Asia`, + name: `Hong Kong`, + population: 7071600 + }), + new CountyHierarchicalDataItem( + { + code: `IND`, + parent: `Asia`, + name: `India`, + population: 1241491960 + }), + new CountyHierarchicalDataItem( + { + code: `IDN`, + parent: `Asia`, + name: `Indonesia`, + population: 242325638 + }), + new CountyHierarchicalDataItem( + { + code: `JPN`, + parent: `Asia`, + name: `Japan`, + population: 127817277 + }), + new CountyHierarchicalDataItem( + { + code: `KZH`, + parent: `Asia`, + name: `Kazakhstan`, + population: 16558676 + }), + new CountyHierarchicalDataItem( + { + code: `NKO`, + parent: `Asia`, + name: `North Korea`, + population: 24451285 + }), + new CountyHierarchicalDataItem( + { + code: `SKO`, + parent: `Asia`, + name: `South Korea`, + population: 49779000 + }), + new CountyHierarchicalDataItem( + { + code: `KGZ`, + parent: `Asia`, + name: `Kyrgyzstan`, + population: 5514600 + }), + new CountyHierarchicalDataItem( + { + code: `LAO`, + parent: `Asia`, + name: `Lao PDR`, + population: 6288037 + }), + new CountyHierarchicalDataItem( + { + code: `MAC`, + parent: `Asia`, + name: `Macao`, + population: 555731 + }), + new CountyHierarchicalDataItem( + { + code: `MYS`, + parent: `Asia`, + name: `Malaysia`, + population: 28859154 + }), + new CountyHierarchicalDataItem( + { + code: `MDV`, + parent: `Asia`, + name: `Maldives`, + population: 320081 + }), + new CountyHierarchicalDataItem( + { + code: `MNG`, + parent: `Asia`, + name: `Mongolia`, + population: 2800114 + }), + new CountyHierarchicalDataItem( + { + code: `MYM`, + parent: `Asia`, + name: `Myanmar`, + population: 48336763 + }), + new CountyHierarchicalDataItem( + { + code: `NPL`, + parent: `Asia`, + name: `Nepal`, + population: 30485798 + }), + new CountyHierarchicalDataItem( + { + code: `PHP`, + parent: `Asia`, + name: `Philippines`, + population: 94852030 + }), + new CountyHierarchicalDataItem( + { + code: `SNG`, + parent: `Asia`, + name: `Singapore`, + population: 5183700 + }), + new CountyHierarchicalDataItem( + { + code: `SRL`, + parent: `Asia`, + name: `Sri Lanka`, + population: 20869000 + }), + new CountyHierarchicalDataItem( + { + code: `TKS`, + parent: `Asia`, + name: `Tajikistan`, + population: 6976958 + }), + new CountyHierarchicalDataItem( + { + code: `THL`, + parent: `Asia`, + name: `Thailand`, + population: 69518555 + }), + new CountyHierarchicalDataItem( + { + code: `TRK`, + parent: `Asia`, + name: `Turkmenistan`, + population: 5105301 + }), + new CountyHierarchicalDataItem( + { + code: `UZB`, + parent: `Asia`, + name: `Uzbekistan`, + population: 29341200 + }), + new CountyHierarchicalDataItem( + { + code: `VTN`, + parent: `Asia`, + name: `Vietnam`, + population: 87840000 + }), + new CountyHierarchicalDataItem( + { + code: `ANT`, + parent: `Central America`, + name: `Antigua`, + population: 89612 + }), + new CountyHierarchicalDataItem( + { + code: `ARB`, + parent: `Central America`, + name: `Aruba`, + population: 108141 + }), + new CountyHierarchicalDataItem( + { + code: `BHM`, + parent: `Central America`, + name: `Bahamas`, + population: 347176 + }), + new CountyHierarchicalDataItem( + { + code: `BRB`, + parent: `Central America`, + name: `Barbados`, + population: 273925 + }), + new CountyHierarchicalDataItem( + { + code: `BLZ`, + parent: `Central America`, + name: `Belize`, + population: 356600 + }), + new CountyHierarchicalDataItem( + { + code: `BRM`, + parent: `Central America`, + name: `Bermuda`, + population: 64700 + }), + new CountyHierarchicalDataItem( + { + code: `CYI`, + parent: `Central America`, + name: `Cayman Islands`, + population: 56729 + }), + new CountyHierarchicalDataItem( + { + code: `CSR`, + parent: `Central America`, + name: `Costa Rica`, + population: 4726575 + }), + new CountyHierarchicalDataItem( + { + code: `CUB`, + parent: `Central America`, + name: `Cuba`, + population: 11253665 + }), + new CountyHierarchicalDataItem( + { + code: `CUR`, + parent: `Central America`, + name: `Curacao`, + population: 145619 + }), + new CountyHierarchicalDataItem( + { + code: `DMA`, + parent: `Central America`, + name: `Dominica`, + population: 67675 + }), + new CountyHierarchicalDataItem( + { + code: `DOM`, + parent: `Central America`, + name: `Dominican Republic`, + population: 10056181 + }), + new CountyHierarchicalDataItem( + { + code: `SLV`, + parent: `Central America`, + name: `El Salvador`, + population: 6227491 + }), + new CountyHierarchicalDataItem( + { + code: `FIS`, + parent: `Central America`, + name: `Faeroe Islands`, + population: 48863 + }), + new CountyHierarchicalDataItem( + { + code: `GND`, + parent: `Central America`, + name: `Grenada`, + population: 104890 + }), + new CountyHierarchicalDataItem( + { + code: `GUA`, + parent: `Central America`, + name: `Guam`, + population: 182111 + }), + new CountyHierarchicalDataItem( + { + code: `GTM`, + parent: `Central America`, + name: `Guatemala`, + population: 14757316 + }), + new CountyHierarchicalDataItem( + { + code: `HAT`, + parent: `Central America`, + name: `Haiti`, + population: 10123787 + }), + new CountyHierarchicalDataItem( + { + code: `HON`, + parent: `Central America`, + name: `Honduras`, + population: 7754687 + }), + new CountyHierarchicalDataItem( + { + code: `JAM`, + parent: `Central America`, + name: `Jamaica`, + population: 2706500 + }), + new CountyHierarchicalDataItem( + { + code: `NCR`, + parent: `Central America`, + name: `Nicaragua`, + population: 5869859 + }), + new CountyHierarchicalDataItem( + { + code: `NMI`, + parent: `Central America`, + name: `Northern Mariana Islands`, + population: 61174 + }), + new CountyHierarchicalDataItem( + { + code: `PAN`, + parent: `Central America`, + name: `Panama`, + population: 3571185 + }), + new CountyHierarchicalDataItem( + { + code: `PRT`, + parent: `Central America`, + name: `Puerto Rico`, + population: 3706690 + }), + new CountyHierarchicalDataItem( + { + code: `STK`, + parent: `Central America`, + name: `St. Kitts`, + population: 53051 + }), + new CountyHierarchicalDataItem( + { + code: `STL`, + parent: `Central America`, + name: `St. Lucia`, + population: 176000 + }), + new CountyHierarchicalDataItem( + { + code: `STV`, + parent: `Central America`, + name: `St. Vincent`, + population: 109365 + }), + new CountyHierarchicalDataItem( + { + code: `TAB`, + parent: `Central America`, + name: `Trinidad and Tobago`, + population: 1346350 + }), + new CountyHierarchicalDataItem( + { + code: `RCI`, + parent: `Central America`, + name: `Turks and Caicos Islands`, + population: 39184 + }), + new CountyHierarchicalDataItem( + { + code: `ISV`, + parent: `Central America`, + name: `US Virgin Islands`, + population: 109666 + }), + new CountyHierarchicalDataItem( + { + code: `ALB`, + parent: `Europe`, + name: `Albania`, + population: 3215988 + }), + new CountyHierarchicalDataItem( + { + code: `AND`, + parent: `Europe`, + name: `Andorra`, + population: 86165 + }), + new CountyHierarchicalDataItem( + { + code: `ARM`, + parent: `Europe`, + name: `Armenia`, + population: 3100236 + }), + new CountyHierarchicalDataItem( + { + code: `AUT`, + parent: `Europe`, + name: `Austria`, + population: 8423635 + }), + new CountyHierarchicalDataItem( + { + code: `BER`, + parent: `Europe`, + name: `Belarus`, + population: 9473000 + }), + new CountyHierarchicalDataItem( + { + code: `BEL`, + parent: `Europe`, + name: `Belgium`, + population: 11020952 + }), + new CountyHierarchicalDataItem( + { + code: `BIH`, + parent: `Europe`, + name: `Bosnia`, + population: 3752228 + }), + new CountyHierarchicalDataItem( + { + code: `BUL`, + parent: `Europe`, + name: `Bulgaria`, + population: 7348328 + }), + new CountyHierarchicalDataItem( + { + code: `CHI`, + parent: `Europe`, + name: `Channel Islands`, + population: 153876 + }), + new CountyHierarchicalDataItem( + { + code: `CRO`, + parent: `Europe`, + name: `Croatia`, + population: 4403000 + }), + new CountyHierarchicalDataItem( + { + code: `CYP`, + parent: `Europe`, + name: `Cyprus`, + population: 1116564 + }), + new CountyHierarchicalDataItem( + { + code: `CZE`, + parent: `Europe`, + name: `Czechia`, + population: 10496088 + }), + new CountyHierarchicalDataItem( + { + code: `DEN`, + parent: `Europe`, + name: `Denmark`, + population: 5570572 + }), + new CountyHierarchicalDataItem( + { + code: `EST`, + parent: `Europe`, + name: `Estonia`, + population: 1339928 + }), + new CountyHierarchicalDataItem( + { + code: `FIN`, + parent: `Europe`, + name: `Finland`, + population: 5388272 + }), + new CountyHierarchicalDataItem( + { + code: `FRA`, + parent: `Europe`, + name: `France`, + population: 65433714 + }), + new CountyHierarchicalDataItem( + { + code: `GEO`, + parent: `Europe`, + name: `Georgia`, + population: 4486000 + }), + new CountyHierarchicalDataItem( + { + code: `DEU`, + parent: `Europe`, + name: `Germany`, + population: 81797673 + }), + new CountyHierarchicalDataItem( + { + code: `GRC`, + parent: `Europe`, + name: `Greece`, + population: 11300410 + }), + new CountyHierarchicalDataItem( + { + code: `HUN`, + parent: `Europe`, + name: `Hungary`, + population: 9971727 + }), + new CountyHierarchicalDataItem( + { + code: `ICE`, + parent: `Europe`, + name: `Iceland`, + population: 319014 + }), + new CountyHierarchicalDataItem( + { + code: `IRE`, + parent: `Europe`, + name: `Ireland`, + population: 4576317 + }), + new CountyHierarchicalDataItem( + { + code: `IOM`, + parent: `Europe`, + name: `Isle of Man`, + population: 83327 + }), + new CountyHierarchicalDataItem( + { + code: `ITA`, + parent: `Europe`, + name: `Italy`, + population: 60723603 + }), + new CountyHierarchicalDataItem( + { + code: `KOS`, + parent: `Europe`, + name: `Kosovo`, + population: 1802765 + }), + new CountyHierarchicalDataItem( + { + code: `LAT`, + parent: `Europe`, + name: `Latvia`, + population: 2058184 + }), + new CountyHierarchicalDataItem( + { + code: `LVA`, + parent: `Europe`, + name: `Liechtenstein`, + population: 36304 + }), + new CountyHierarchicalDataItem( + { + code: `LTU`, + parent: `Europe`, + name: `Lithuania`, + population: 3030173 + }), + new CountyHierarchicalDataItem( + { + code: `LUX`, + parent: `Europe`, + name: `Luxembourg`, + population: 518252 + }), + new CountyHierarchicalDataItem( + { + code: `MKD`, + parent: `Europe`, + name: `North Macedonia`, + population: 2063893 + }), + new CountyHierarchicalDataItem( + { + code: `MLT`, + parent: `Europe`, + name: `Malta`, + population: 415654 + }), + new CountyHierarchicalDataItem( + { + code: `MDA`, + parent: `Europe`, + name: `Moldova`, + population: 3559000 + }), + new CountyHierarchicalDataItem( + { + code: `MON`, + parent: `Europe`, + name: `Monaco`, + population: 35427 + }), + new CountyHierarchicalDataItem( + { + code: `MNE`, + parent: `Europe`, + name: `Montenegro`, + population: 632261 + }), + new CountyHierarchicalDataItem( + { + code: `MLD`, + parent: `Europe`, + name: `Netherlands`, + population: 16693074 + }), + new CountyHierarchicalDataItem( + { + code: `NOR`, + parent: `Europe`, + name: `Norway`, + population: 4953088 + }), + new CountyHierarchicalDataItem( + { + code: `POL`, + parent: `Europe`, + name: `Poland`, + population: 38534157 + }), + new CountyHierarchicalDataItem( + { + code: `POR`, + parent: `Europe`, + name: `Portugal`, + population: 10556999 + }), + new CountyHierarchicalDataItem( + { + code: `ROM`, + parent: `Europe`, + name: `Romania`, + population: 21384832 + }), + new CountyHierarchicalDataItem( + { + code: `RUS`, + parent: `Europe`, + name: `Russia`, + population: 142960000 + }), + new CountyHierarchicalDataItem( + { + code: `SMR`, + parent: `Europe`, + name: `San Marino`, + population: 31735 + }), + new CountyHierarchicalDataItem( + { + code: `SBR`, + parent: `Europe`, + name: `Serbia`, + population: 7258745 + }), + new CountyHierarchicalDataItem( + { + code: `STM`, + parent: `Europe`, + name: `Sint Maarten`, + population: 36609 + }), + new CountyHierarchicalDataItem( + { + code: `SVK`, + parent: `Europe`, + name: `Slovakia`, + population: 5398384 + }), + new CountyHierarchicalDataItem( + { + code: `SLO`, + parent: `Europe`, + name: `Slovenia`, + population: 2052843 + }), + new CountyHierarchicalDataItem( + { + code: `ESP`, + parent: `Europe`, + name: `Spain`, + population: 46174601 + }), + new CountyHierarchicalDataItem( + { + code: `STM`, + parent: `Europe`, + name: `St. Martin`, + population: 30615 + }), + new CountyHierarchicalDataItem( + { + code: `SWE`, + parent: `Europe`, + name: `Sweden`, + population: 9449213 + }), + new CountyHierarchicalDataItem( + { + code: `CHE`, + parent: `Europe`, + name: `Switzerland`, + population: 7912398 + }), + new CountyHierarchicalDataItem( + { + code: `UKR`, + parent: `Europe`, + name: `Ukraine`, + population: 45706100 + }), + new CountyHierarchicalDataItem( + { + code: `GBR`, + parent: `Europe`, + name: `United Kingdom`, + population: 62744081 + }), + new CountyHierarchicalDataItem( + { + code: `DZA`, + parent: `Middle East`, + name: `Algeria`, + population: 35980193 + }), + new CountyHierarchicalDataItem( + { + code: `AZE`, + parent: `Middle East`, + name: `Azerbaijan`, + population: 9173082 + }), + new CountyHierarchicalDataItem( + { + code: `BHR`, + parent: `Middle East`, + name: `Bahrain`, + population: 1323535 + }), + new CountyHierarchicalDataItem( + { + code: `EGY`, + parent: `Middle East`, + name: `Egypt`, + population: 82536770 + }), + new CountyHierarchicalDataItem( + { + code: `IRN`, + parent: `Middle East`, + name: `Iran`, + population: 74798599 + }), + new CountyHierarchicalDataItem( + { + code: `IRQ`, + parent: `Middle East`, + name: `Iraq`, + population: 32961959 + }), + new CountyHierarchicalDataItem( + { + code: `ISR`, + parent: `Middle East`, + name: `Israel`, + population: 7765900 + }), + new CountyHierarchicalDataItem( + { + code: `JOR`, + parent: `Middle East`, + name: `Jordan`, + population: 6181000 + }), + new CountyHierarchicalDataItem( + { + code: `KWT`, + parent: `Middle East`, + name: `Kuwait`, + population: 2818042 + }), + new CountyHierarchicalDataItem( + { + code: `LBN`, + parent: `Middle East`, + name: `Lebanon`, + population: 4259405 + }), + new CountyHierarchicalDataItem( + { + code: `LBY`, + parent: `Middle East`, + name: `Libya`, + population: 6422772 + }), + new CountyHierarchicalDataItem( + { + code: `MAR`, + parent: `Middle East`, + name: `Morocco`, + population: 32272974 + }), + new CountyHierarchicalDataItem( + { + code: `OMN`, + parent: `Middle East`, + name: `Oman`, + population: 2846145 + }), + new CountyHierarchicalDataItem( + { + code: `PKS`, + parent: `Middle East`, + name: `Pakistan`, + population: 176745364 + }), + new CountyHierarchicalDataItem( + { + code: `QTR`, + parent: `Middle East`, + name: `Qatar`, + population: 1870041 + }), + new CountyHierarchicalDataItem( + { + code: `SAR`, + parent: `Middle East`, + name: `Saudi Arabia`, + population: 28082541 + }), + new CountyHierarchicalDataItem( + { + code: `SOM`, + parent: `Middle East`, + name: `Somalia`, + population: 9556873 + }), + new CountyHierarchicalDataItem( + { + code: `SYR`, + parent: `Middle East`, + name: `Syria`, + population: 20820311 + }), + new CountyHierarchicalDataItem( + { + code: `TUN`, + parent: `Middle East`, + name: `Tunisia`, + population: 10673800 + }), + new CountyHierarchicalDataItem( + { + code: `TUR`, + parent: `Middle East`, + name: `Turkey`, + population: 73639596 + }), + new CountyHierarchicalDataItem( + { + code: `UAE`, + parent: `Middle East`, + name: `United Arab Emirates`, + population: 7890924 + }), + new CountyHierarchicalDataItem( + { + code: `WTB`, + parent: `Middle East`, + name: `West Bank`, + population: 3927051 + }), + new CountyHierarchicalDataItem( + { + code: `YEM`, + parent: `Middle East`, + name: `Yemen`, + population: 24799880 + }), + new CountyHierarchicalDataItem( + { + code: `CAN`, + parent: `North America`, + name: `Canada`, + population: 34483975 + }), + new CountyHierarchicalDataItem( + { + code: `GRL`, + parent: `North America`, + name: `Greenland`, + population: 56840 + }), + new CountyHierarchicalDataItem( + { + code: `MEX`, + parent: `North America`, + name: `Mexico`, + population: 114793341 + }), + new CountyHierarchicalDataItem( + { + code: `USA`, + parent: `North America`, + name: `United States`, + population: 311591917 + }), + new CountyHierarchicalDataItem( + { + code: `AMS`, + parent: `Oceania`, + name: `American Samoa`, + population: 69543 + }), + new CountyHierarchicalDataItem( + { + code: `AUS`, + parent: `Oceania`, + name: `Australia`, + population: 22323900 + }), + new CountyHierarchicalDataItem( + { + code: `FIJ`, + parent: `Oceania`, + name: `Fiji`, + population: 868406 + }), + new CountyHierarchicalDataItem( + { + code: `FRP`, + parent: `Oceania`, + name: `French Polynesia`, + population: 273777 + }), + new CountyHierarchicalDataItem( + { + code: `KIR`, + parent: `Oceania`, + name: `Kiribati`, + population: 101093 + }), + new CountyHierarchicalDataItem( + { + code: `MIS`, + parent: `Oceania`, + name: `Marshall Islands`, + population: 54816 + }), + new CountyHierarchicalDataItem( + { + code: `MCR`, + parent: `Oceania`, + name: `Micronesia`, + population: 111542 + }), + new CountyHierarchicalDataItem( + { + code: `NCD`, + parent: `Oceania`, + name: `New Caledonia`, + population: 254024 + }), + new CountyHierarchicalDataItem( + { + code: `NZL`, + parent: `Oceania`, + name: `New Zealand`, + population: 4405200 + }), + new CountyHierarchicalDataItem( + { + code: `PAL`, + parent: `Oceania`, + name: `Palau`, + population: 20609 + }), + new CountyHierarchicalDataItem( + { + code: `PNG`, + parent: `Oceania`, + name: `Papua New Guinea`, + population: 7013829 + }), + new CountyHierarchicalDataItem( + { + code: `SAM`, + parent: `Oceania`, + name: `Samoa`, + population: 183874 + }), + new CountyHierarchicalDataItem( + { + code: `SIS`, + parent: `Oceania`, + name: `Solomon Islands`, + population: 552267 + }), + new CountyHierarchicalDataItem( + { + code: `TML`, + parent: `Oceania`, + name: `Timor-Leste`, + population: 1175880 + }), + new CountyHierarchicalDataItem( + { + code: `TON`, + parent: `Oceania`, + name: `Tonga`, + population: 104509 + }), + new CountyHierarchicalDataItem( + { + code: `TUV`, + parent: `Oceania`, + name: `Tuvalu`, + population: 9847 + }), + new CountyHierarchicalDataItem( + { + code: `VNT`, + parent: `Oceania`, + name: `Vanuatu`, + population: 245619 + }), + new CountyHierarchicalDataItem( + { + code: `ARG`, + parent: `South America`, + name: `Argentina`, + population: 40764561 + }), + new CountyHierarchicalDataItem( + { + code: `BOL`, + parent: `South America`, + name: `Bolivia`, + population: 10088108 + }), + new CountyHierarchicalDataItem( + { + code: `BRA`, + parent: `South America`, + name: `Brazil`, + population: 196655014 + }), + new CountyHierarchicalDataItem( + { + code: `CHI`, + parent: `South America`, + name: `Chile`, + population: 17269525 + }), + new CountyHierarchicalDataItem( + { + code: `COL`, + parent: `South America`, + name: `Colombia`, + population: 46927125 + }), + new CountyHierarchicalDataItem( + { + code: `ECU`, + parent: `South America`, + name: `Ecuador`, + population: 14666055 + }), + new CountyHierarchicalDataItem( + { + code: `GUY`, + parent: `South America`, + name: `Guyana`, + population: 756040 + }), + new CountyHierarchicalDataItem( + { + code: `PAR`, + parent: `South America`, + name: `Paraguay`, + population: 6568290 + }), + new CountyHierarchicalDataItem( + { + code: `PER`, + parent: `South America`, + name: `Peru`, + population: 29399817 + }), + new CountyHierarchicalDataItem( + { + code: `SUR`, + parent: `South America`, + name: `Suriname`, + population: 529419 + }), + new CountyHierarchicalDataItem( + { + code: `URG`, + parent: `South America`, + name: `Uruguay`, + population: 3368595 + }), + new CountyHierarchicalDataItem( + { + code: `VEN`, + parent: `South America`, + name: `Venezuela`, + population: 29278000 + }), + ]; + super(...(newItems.slice(0, items))); + } + } +} diff --git a/samples/charts/tree-map/highlighting/src/app.component.html b/samples/charts/tree-map/highlighting/src/app.component.html new file mode 100644 index 000000000..f9b4360f3 --- /dev/null +++ b/samples/charts/tree-map/highlighting/src/app.component.html @@ -0,0 +1,36 @@ +
+
+ +
+
+ Comparing Population of Countries +
+
+ + +
+
diff --git a/samples/excel/spreadsheet/data-validation/src/app/app.component.scss b/samples/charts/tree-map/highlighting/src/app.component.scss similarity index 100% rename from samples/excel/spreadsheet/data-validation/src/app/app.component.scss rename to samples/charts/tree-map/highlighting/src/app.component.scss diff --git a/samples/charts/tree-map/highlighting/src/app.component.ts b/samples/charts/tree-map/highlighting/src/app.component.ts new file mode 100644 index 000000000..9f1828f32 --- /dev/null +++ b/samples/charts/tree-map/highlighting/src/app.component.ts @@ -0,0 +1,53 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { ComponentRenderer, PropertyEditorPanelDescriptionModule, TreemapDescriptionModule } from 'igniteui-angular-core'; +import { CountyHierarchicalDataItem, CountyHierarchicalData } from './CountyHierarchicalData'; +import { IgxPropertyEditorPanelComponent, IgxPropertyEditorPropertyDescriptionComponent } from 'igniteui-angular-layouts'; +import { IgxTreemapComponent, TreemapHighlightingMode } from 'igniteui-angular-charts'; + +import { defineAllComponents } from 'igniteui-webcomponents'; + +defineAllComponents(); + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + + +export class AppComponent implements AfterViewInit +{ + @ViewChild("treemap", { static: true } ) + private treemap: IgxTreemapComponent + private _countyHierarchicalData: CountyHierarchicalData = null; + public get countyHierarchicalData(): CountyHierarchicalData { + if (this._countyHierarchicalData == null) + { + this._countyHierarchicalData = new CountyHierarchicalData(); + } + return this._countyHierarchicalData; + } + + public onHighlightingModeChange(args: any){ + let value = args.target.value; + + if(value === "Brighten"){ + this.treemap.highlightingMode = TreemapHighlightingMode.Brighten; + } + else{ + this.treemap.highlightingMode = TreemapHighlightingMode.FadeOthers; + } + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + + +} + diff --git a/samples/charts/tree-map/highlighting/src/app.module.ts b/samples/charts/tree-map/highlighting/src/app.module.ts new file mode 100644 index 000000000..92e86c22f --- /dev/null +++ b/samples/charts/tree-map/highlighting/src/app.module.ts @@ -0,0 +1,27 @@ +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 { IgxPropertyEditorPanelModule } from 'igniteui-angular-layouts'; +import { IgxTreemapModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxPropertyEditorPanelModule, + IgxTreemapModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/tree-map/highlighting/src/environments/environment.prod.ts b/samples/charts/tree-map/highlighting/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/tree-map/highlighting/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/tree-map/highlighting/src/environments/environment.ts b/samples/charts/tree-map/highlighting/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/tree-map/highlighting/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/tree-map/highlighting/src/index.html b/samples/charts/tree-map/highlighting/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/tree-map/highlighting/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/tree-map/highlighting/src/main.ts b/samples/charts/tree-map/highlighting/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/tree-map/highlighting/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/tree-map/highlighting/src/polyfills.ts b/samples/charts/tree-map/highlighting/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/samples/charts/tree-map/highlighting/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/tree-map/highlighting/src/styles.scss b/samples/charts/tree-map/highlighting/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/tree-map/highlighting/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/tree-map/highlighting/src/typings.d.ts b/samples/charts/tree-map/highlighting/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/tree-map/highlighting/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/tree-map/highlighting/tsconfig.app.json b/samples/charts/tree-map/highlighting/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/tree-map/highlighting/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/tree-map/highlighting/tsconfig.json b/samples/charts/tree-map/highlighting/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/tree-map/highlighting/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/tree-map/highlighting/tslint.json b/samples/charts/tree-map/highlighting/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/tree-map/highlighting/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"] + } +} diff --git a/samples/charts/tree-map/layout/.codesandbox/Dockerfile b/samples/charts/tree-map/layout/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/tree-map/layout/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/tree-map/layout/.codesandbox/tasks.json b/samples/charts/tree-map/layout/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/tree-map/layout/.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/tree-map/layout/.stackblitzrc b/samples/charts/tree-map/layout/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/tree-map/layout/.stackblitzrc +++ b/samples/charts/tree-map/layout/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/tree-map/layout/angular.json b/samples/charts/tree-map/layout/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/tree-map/layout/angular.json +++ b/samples/charts/tree-map/layout/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/tree-map/layout/package.json b/samples/charts/tree-map/layout/package.json index 45bc6e299..ae1e51e80 100644 --- a/samples/charts/tree-map/layout/package.json +++ b/samples/charts/tree-map/layout/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-inputs": "17.3.0-beta.0", - "igniteui-angular-layouts": "17.3.0-beta.0", - "igniteui-webcomponents": "4.7.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-inputs": "17.3.1-alpha.0", + "igniteui-angular-layouts": "17.3.1-alpha.0", + "igniteui-webcomponents": "4.9.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/tree-map/layout/sandbox.config.json b/samples/charts/tree-map/layout/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/tree-map/layout/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/tree-map/layout/src/config/tsconfig-es5.app.json b/samples/charts/tree-map/layout/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/tree-map/layout/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/tree-map/layout/src/config/tsconfig.app.json b/samples/charts/tree-map/layout/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/tree-map/layout/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/tree-map/layout/src/config/tsconfig.base.json b/samples/charts/tree-map/layout/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/tree-map/layout/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/tree-map/layout/src/config/tsconfig.spec.json b/samples/charts/tree-map/layout/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/tree-map/layout/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/tree-map/layout/src/config/tsconfig.worker.json b/samples/charts/tree-map/layout/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/tree-map/layout/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/tree-map/layout/tsconfig.app.json b/samples/charts/tree-map/layout/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/tree-map/layout/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/tree-map/layout/tsconfig.json b/samples/charts/tree-map/layout/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/tree-map/layout/tsconfig.json +++ b/samples/charts/tree-map/layout/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/tree-map/overview/.codesandbox/Dockerfile b/samples/charts/tree-map/overview/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/tree-map/overview/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/tree-map/overview/.codesandbox/tasks.json b/samples/charts/tree-map/overview/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/tree-map/overview/.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/tree-map/overview/.stackblitzrc b/samples/charts/tree-map/overview/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/tree-map/overview/.stackblitzrc +++ b/samples/charts/tree-map/overview/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/tree-map/overview/angular.json b/samples/charts/tree-map/overview/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/tree-map/overview/angular.json +++ b/samples/charts/tree-map/overview/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/tree-map/overview/package.json b/samples/charts/tree-map/overview/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/tree-map/overview/package.json +++ b/samples/charts/tree-map/overview/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/tree-map/overview/sandbox.config.json b/samples/charts/tree-map/overview/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/tree-map/overview/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/tree-map/overview/src/config/tsconfig-es5.app.json b/samples/charts/tree-map/overview/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/tree-map/overview/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/tree-map/overview/src/config/tsconfig.app.json b/samples/charts/tree-map/overview/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/tree-map/overview/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/tree-map/overview/src/config/tsconfig.base.json b/samples/charts/tree-map/overview/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/tree-map/overview/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/tree-map/overview/src/config/tsconfig.spec.json b/samples/charts/tree-map/overview/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/tree-map/overview/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/tree-map/overview/src/config/tsconfig.worker.json b/samples/charts/tree-map/overview/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/tree-map/overview/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/tree-map/overview/tsconfig.app.json b/samples/charts/tree-map/overview/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/tree-map/overview/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/tree-map/overview/tsconfig.json b/samples/charts/tree-map/overview/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/tree-map/overview/tsconfig.json +++ b/samples/charts/tree-map/overview/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/tree-map/styling/.codesandbox/Dockerfile b/samples/charts/tree-map/styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/tree-map/styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/tree-map/styling/.codesandbox/tasks.json b/samples/charts/tree-map/styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/tree-map/styling/.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/tree-map/styling/.stackblitzrc b/samples/charts/tree-map/styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/tree-map/styling/.stackblitzrc +++ b/samples/charts/tree-map/styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/tree-map/styling/angular.json b/samples/charts/tree-map/styling/angular.json index 11ffb8c9c..ff6803cf7 100644 --- a/samples/charts/tree-map/styling/angular.json +++ b/samples/charts/tree-map/styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/tree-map/styling/package.json b/samples/charts/tree-map/styling/package.json index 1be6b88e2..35620b319 100644 --- a/samples/charts/tree-map/styling/package.json +++ b/samples/charts/tree-map/styling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@angular-devkit/build-angular": "17.0.0", - "@types/node": "14.14.28", + "@angular/cli": "17.2.0", + "@angular/compiler-cli": "17.2.1", + "@angular/language-service": "17.2.1", + "@angular-devkit/build-angular": "17.2.0", + "@types/node": "18.17.0", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", "tslint": "~6.1.3", - "ts-node": "9.1.1", - "typescript": "5.2.2" + "ts-node": "10.9.1", + "typescript": "5.3.3" } } diff --git a/samples/charts/tree-map/styling/sandbox.config.json b/samples/charts/tree-map/styling/sandbox.config.json deleted file mode 100644 index 07f53508e..000000000 --- a/samples/charts/tree-map/styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/tree-map/styling/src/config/tsconfig-es5.app.json b/samples/charts/tree-map/styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/tree-map/styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/tree-map/styling/src/config/tsconfig.app.json b/samples/charts/tree-map/styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/tree-map/styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/tree-map/styling/src/config/tsconfig.base.json b/samples/charts/tree-map/styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/tree-map/styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/tree-map/styling/src/config/tsconfig.spec.json b/samples/charts/tree-map/styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/tree-map/styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/tree-map/styling/src/config/tsconfig.worker.json b/samples/charts/tree-map/styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/tree-map/styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/tree-map/styling/tsconfig.app.json b/samples/charts/tree-map/styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/tree-map/styling/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/tree-map/styling/tsconfig.json b/samples/charts/tree-map/styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/tree-map/styling/tsconfig.json +++ b/samples/charts/tree-map/styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/zoomslider/overview/.codesandbox/Dockerfile b/samples/charts/zoomslider/overview/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/zoomslider/overview/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/zoomslider/overview/.codesandbox/tasks.json b/samples/charts/zoomslider/overview/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/zoomslider/overview/.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/zoomslider/overview/.stackblitzrc b/samples/charts/zoomslider/overview/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/charts/zoomslider/overview/.stackblitzrc +++ b/samples/charts/zoomslider/overview/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/zoomslider/overview/angular.json b/samples/charts/zoomslider/overview/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/charts/zoomslider/overview/angular.json +++ b/samples/charts/zoomslider/overview/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/charts/zoomslider/overview/package.json b/samples/charts/zoomslider/overview/package.json index 42a1a28ff..2b3760a42 100644 --- a/samples/charts/zoomslider/overview/package.json +++ b/samples/charts/zoomslider/overview/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/charts/zoomslider/overview/sandbox.config.json b/samples/charts/zoomslider/overview/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/charts/zoomslider/overview/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/charts/zoomslider/overview/src/app/SampleScatterStats.ts b/samples/charts/zoomslider/overview/src/SampleScatterStats.ts similarity index 100% rename from samples/charts/zoomslider/overview/src/app/SampleScatterStats.ts rename to samples/charts/zoomslider/overview/src/SampleScatterStats.ts diff --git a/samples/charts/zoomslider/overview/src/app/app.component.html b/samples/charts/zoomslider/overview/src/app.component.html similarity index 100% rename from samples/charts/zoomslider/overview/src/app/app.component.html rename to samples/charts/zoomslider/overview/src/app.component.html diff --git a/samples/charts/zoomslider/overview/src/app/app.component.scss b/samples/charts/zoomslider/overview/src/app.component.scss similarity index 100% rename from samples/charts/zoomslider/overview/src/app/app.component.scss rename to samples/charts/zoomslider/overview/src/app.component.scss diff --git a/samples/charts/zoomslider/overview/src/app/app.component.ts b/samples/charts/zoomslider/overview/src/app.component.ts similarity index 100% rename from samples/charts/zoomslider/overview/src/app/app.component.ts rename to samples/charts/zoomslider/overview/src/app.component.ts diff --git a/samples/charts/zoomslider/overview/src/app/app.module.ts b/samples/charts/zoomslider/overview/src/app.module.ts similarity index 100% rename from samples/charts/zoomslider/overview/src/app/app.module.ts rename to samples/charts/zoomslider/overview/src/app.module.ts diff --git a/samples/charts/zoomslider/overview/src/config/tsconfig-es5.app.json b/samples/charts/zoomslider/overview/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/charts/zoomslider/overview/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/charts/zoomslider/overview/src/config/tsconfig.app.json b/samples/charts/zoomslider/overview/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/charts/zoomslider/overview/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/charts/zoomslider/overview/src/config/tsconfig.base.json b/samples/charts/zoomslider/overview/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/charts/zoomslider/overview/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/charts/zoomslider/overview/src/config/tsconfig.spec.json b/samples/charts/zoomslider/overview/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/charts/zoomslider/overview/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/charts/zoomslider/overview/src/config/tsconfig.worker.json b/samples/charts/zoomslider/overview/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/charts/zoomslider/overview/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/charts/zoomslider/overview/src/main.ts b/samples/charts/zoomslider/overview/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/charts/zoomslider/overview/src/main.ts +++ b/samples/charts/zoomslider/overview/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/charts/zoomslider/overview/tsconfig.app.json b/samples/charts/zoomslider/overview/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/zoomslider/overview/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/zoomslider/overview/tsconfig.json b/samples/charts/zoomslider/overview/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/charts/zoomslider/overview/tsconfig.json +++ b/samples/charts/zoomslider/overview/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/excel-library/operations-on-workbooks/.codesandbox/Dockerfile b/samples/excel/excel-library/operations-on-workbooks/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/excel-library/operations-on-workbooks/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/excel-library/operations-on-workbooks/.codesandbox/tasks.json b/samples/excel/excel-library/operations-on-workbooks/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/excel-library/operations-on-workbooks/.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/excel/excel-library/operations-on-workbooks/.stackblitzrc b/samples/excel/excel-library/operations-on-workbooks/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/excel-library/operations-on-workbooks/.stackblitzrc +++ b/samples/excel/excel-library/operations-on-workbooks/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/excel-library/operations-on-workbooks/angular.json b/samples/excel/excel-library/operations-on-workbooks/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/excel-library/operations-on-workbooks/angular.json +++ b/samples/excel/excel-library/operations-on-workbooks/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/excel-library/operations-on-workbooks/package.json b/samples/excel/excel-library/operations-on-workbooks/package.json index 1aa5594db..543b4d932 100644 --- a/samples/excel/excel-library/operations-on-workbooks/package.json +++ b/samples/excel/excel-library/operations-on-workbooks/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular": "17.0.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular": "17.2.3", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/excel-library/operations-on-workbooks/src/app/ExcelUtility.ts b/samples/excel/excel-library/operations-on-workbooks/src/ExcelUtility.ts similarity index 100% rename from samples/excel/excel-library/operations-on-workbooks/src/app/ExcelUtility.ts rename to samples/excel/excel-library/operations-on-workbooks/src/ExcelUtility.ts diff --git a/samples/excel/excel-library/operations-on-workbooks/src/app/app.component.html b/samples/excel/excel-library/operations-on-workbooks/src/app.component.html similarity index 100% rename from samples/excel/excel-library/operations-on-workbooks/src/app/app.component.html rename to samples/excel/excel-library/operations-on-workbooks/src/app.component.html diff --git a/samples/excel/excel-library/operations-on-workbooks/src/app/app.component.scss b/samples/excel/excel-library/operations-on-workbooks/src/app.component.scss similarity index 100% rename from samples/excel/excel-library/operations-on-workbooks/src/app/app.component.scss rename to samples/excel/excel-library/operations-on-workbooks/src/app.component.scss diff --git a/samples/excel/excel-library/operations-on-workbooks/src/app/app.component.ts b/samples/excel/excel-library/operations-on-workbooks/src/app.component.ts similarity index 100% rename from samples/excel/excel-library/operations-on-workbooks/src/app/app.component.ts rename to samples/excel/excel-library/operations-on-workbooks/src/app.component.ts diff --git a/samples/excel/excel-library/operations-on-workbooks/src/app/app.module.ts b/samples/excel/excel-library/operations-on-workbooks/src/app.module.ts similarity index 100% rename from samples/excel/excel-library/operations-on-workbooks/src/app/app.module.ts rename to samples/excel/excel-library/operations-on-workbooks/src/app.module.ts diff --git a/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig-es5.app.json b/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.app.json b/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.base.json b/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.spec.json b/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.worker.json b/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/excel-library/operations-on-workbooks/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/excel-library/operations-on-workbooks/src/main.ts b/samples/excel/excel-library/operations-on-workbooks/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/excel-library/operations-on-workbooks/src/main.ts +++ b/samples/excel/excel-library/operations-on-workbooks/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/excel-library/operations-on-workbooks/tsconfig.app.json b/samples/excel/excel-library/operations-on-workbooks/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/excel-library/operations-on-workbooks/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/excel/excel-library/operations-on-workbooks/tsconfig.json b/samples/excel/excel-library/operations-on-workbooks/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/excel-library/operations-on-workbooks/tsconfig.json +++ b/samples/excel/excel-library/operations-on-workbooks/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/excel-library/operations-on-worksheets/.codesandbox/Dockerfile b/samples/excel/excel-library/operations-on-worksheets/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/excel-library/operations-on-worksheets/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/excel-library/operations-on-worksheets/.codesandbox/tasks.json b/samples/excel/excel-library/operations-on-worksheets/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/excel-library/operations-on-worksheets/.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/excel/excel-library/operations-on-worksheets/.stackblitzrc b/samples/excel/excel-library/operations-on-worksheets/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/excel-library/operations-on-worksheets/.stackblitzrc +++ b/samples/excel/excel-library/operations-on-worksheets/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/excel-library/operations-on-worksheets/angular.json b/samples/excel/excel-library/operations-on-worksheets/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/excel-library/operations-on-worksheets/angular.json +++ b/samples/excel/excel-library/operations-on-worksheets/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/excel-library/operations-on-worksheets/package.json b/samples/excel/excel-library/operations-on-worksheets/package.json index 647137bb8..ac56cbd59 100644 --- a/samples/excel/excel-library/operations-on-worksheets/package.json +++ b/samples/excel/excel-library/operations-on-worksheets/package.json @@ -7,40 +7,40 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/excel-library/operations-on-worksheets/src/app/ExcelUtility.ts b/samples/excel/excel-library/operations-on-worksheets/src/ExcelUtility.ts similarity index 100% rename from samples/excel/excel-library/operations-on-worksheets/src/app/ExcelUtility.ts rename to samples/excel/excel-library/operations-on-worksheets/src/ExcelUtility.ts diff --git a/samples/excel/excel-library/operations-on-worksheets/src/app/app.component.html b/samples/excel/excel-library/operations-on-worksheets/src/app.component.html similarity index 100% rename from samples/excel/excel-library/operations-on-worksheets/src/app/app.component.html rename to samples/excel/excel-library/operations-on-worksheets/src/app.component.html diff --git a/samples/excel/excel-library/operations-on-worksheets/src/app/app.component.scss b/samples/excel/excel-library/operations-on-worksheets/src/app.component.scss similarity index 100% rename from samples/excel/excel-library/operations-on-worksheets/src/app/app.component.scss rename to samples/excel/excel-library/operations-on-worksheets/src/app.component.scss diff --git a/samples/excel/excel-library/operations-on-worksheets/src/app/app.component.ts b/samples/excel/excel-library/operations-on-worksheets/src/app.component.ts similarity index 100% rename from samples/excel/excel-library/operations-on-worksheets/src/app/app.component.ts rename to samples/excel/excel-library/operations-on-worksheets/src/app.component.ts diff --git a/samples/excel/excel-library/operations-on-worksheets/src/app/app.module.ts b/samples/excel/excel-library/operations-on-worksheets/src/app.module.ts similarity index 100% rename from samples/excel/excel-library/operations-on-worksheets/src/app/app.module.ts rename to samples/excel/excel-library/operations-on-worksheets/src/app.module.ts diff --git a/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig-es5.app.json b/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.app.json b/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.base.json b/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.spec.json b/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.worker.json b/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/excel-library/operations-on-worksheets/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/excel-library/operations-on-worksheets/src/main.ts b/samples/excel/excel-library/operations-on-worksheets/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/excel-library/operations-on-worksheets/src/main.ts +++ b/samples/excel/excel-library/operations-on-worksheets/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/excel-library/operations-on-worksheets/tsconfig.app.json b/samples/excel/excel-library/operations-on-worksheets/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/excel-library/operations-on-worksheets/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/excel/excel-library/operations-on-worksheets/tsconfig.json b/samples/excel/excel-library/operations-on-worksheets/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/excel-library/operations-on-worksheets/tsconfig.json +++ b/samples/excel/excel-library/operations-on-worksheets/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/excel-library/overview/.codesandbox/Dockerfile b/samples/excel/excel-library/overview/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/excel-library/overview/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/excel-library/overview/.codesandbox/tasks.json b/samples/excel/excel-library/overview/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/excel-library/overview/.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/excel/excel-library/overview/.stackblitzrc b/samples/excel/excel-library/overview/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/excel-library/overview/.stackblitzrc +++ b/samples/excel/excel-library/overview/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/excel-library/overview/angular.json b/samples/excel/excel-library/overview/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/excel-library/overview/angular.json +++ b/samples/excel/excel-library/overview/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/excel-library/overview/package.json b/samples/excel/excel-library/overview/package.json index 647137bb8..ac56cbd59 100644 --- a/samples/excel/excel-library/overview/package.json +++ b/samples/excel/excel-library/overview/package.json @@ -7,40 +7,40 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/excel-library/overview/src/app/ExcelUtility.ts b/samples/excel/excel-library/overview/src/ExcelUtility.ts similarity index 100% rename from samples/excel/excel-library/overview/src/app/ExcelUtility.ts rename to samples/excel/excel-library/overview/src/ExcelUtility.ts diff --git a/samples/excel/excel-library/overview/src/app/app.component.html b/samples/excel/excel-library/overview/src/app.component.html similarity index 100% rename from samples/excel/excel-library/overview/src/app/app.component.html rename to samples/excel/excel-library/overview/src/app.component.html diff --git a/samples/excel/excel-library/overview/src/app/app.component.scss b/samples/excel/excel-library/overview/src/app.component.scss similarity index 100% rename from samples/excel/excel-library/overview/src/app/app.component.scss rename to samples/excel/excel-library/overview/src/app.component.scss diff --git a/samples/excel/excel-library/overview/src/app/app.component.ts b/samples/excel/excel-library/overview/src/app.component.ts similarity index 100% rename from samples/excel/excel-library/overview/src/app/app.component.ts rename to samples/excel/excel-library/overview/src/app.component.ts diff --git a/samples/excel/excel-library/overview/src/app/app.module.ts b/samples/excel/excel-library/overview/src/app.module.ts similarity index 100% rename from samples/excel/excel-library/overview/src/app/app.module.ts rename to samples/excel/excel-library/overview/src/app.module.ts diff --git a/samples/excel/excel-library/overview/src/config/tsconfig-es5.app.json b/samples/excel/excel-library/overview/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/excel-library/overview/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/excel-library/overview/src/config/tsconfig.app.json b/samples/excel/excel-library/overview/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/excel-library/overview/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/excel-library/overview/src/config/tsconfig.base.json b/samples/excel/excel-library/overview/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/excel-library/overview/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/excel-library/overview/src/config/tsconfig.spec.json b/samples/excel/excel-library/overview/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/excel-library/overview/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/excel-library/overview/src/config/tsconfig.worker.json b/samples/excel/excel-library/overview/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/excel-library/overview/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/excel-library/overview/src/main.ts b/samples/excel/excel-library/overview/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/excel-library/overview/src/main.ts +++ b/samples/excel/excel-library/overview/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/excel-library/overview/tsconfig.app.json b/samples/excel/excel-library/overview/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/excel-library/overview/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/excel/excel-library/overview/tsconfig.json b/samples/excel/excel-library/overview/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/excel-library/overview/tsconfig.json +++ b/samples/excel/excel-library/overview/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/excel-library/working-with-cells/.codesandbox/Dockerfile b/samples/excel/excel-library/working-with-cells/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/excel-library/working-with-cells/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/excel-library/working-with-cells/.codesandbox/tasks.json b/samples/excel/excel-library/working-with-cells/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/excel-library/working-with-cells/.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/excel/excel-library/working-with-cells/.stackblitzrc b/samples/excel/excel-library/working-with-cells/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/excel-library/working-with-cells/.stackblitzrc +++ b/samples/excel/excel-library/working-with-cells/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/excel-library/working-with-cells/angular.json b/samples/excel/excel-library/working-with-cells/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/excel-library/working-with-cells/angular.json +++ b/samples/excel/excel-library/working-with-cells/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/excel-library/working-with-cells/package.json b/samples/excel/excel-library/working-with-cells/package.json index 647137bb8..ac56cbd59 100644 --- a/samples/excel/excel-library/working-with-cells/package.json +++ b/samples/excel/excel-library/working-with-cells/package.json @@ -7,40 +7,40 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/excel-library/working-with-cells/src/app/ExcelUtility.ts b/samples/excel/excel-library/working-with-cells/src/ExcelUtility.ts similarity index 100% rename from samples/excel/excel-library/working-with-cells/src/app/ExcelUtility.ts rename to samples/excel/excel-library/working-with-cells/src/ExcelUtility.ts diff --git a/samples/excel/excel-library/working-with-cells/src/app/app.component.html b/samples/excel/excel-library/working-with-cells/src/app.component.html similarity index 100% rename from samples/excel/excel-library/working-with-cells/src/app/app.component.html rename to samples/excel/excel-library/working-with-cells/src/app.component.html diff --git a/samples/excel/excel-library/working-with-cells/src/app/app.component.scss b/samples/excel/excel-library/working-with-cells/src/app.component.scss similarity index 100% rename from samples/excel/excel-library/working-with-cells/src/app/app.component.scss rename to samples/excel/excel-library/working-with-cells/src/app.component.scss diff --git a/samples/excel/excel-library/working-with-cells/src/app/app.component.ts b/samples/excel/excel-library/working-with-cells/src/app.component.ts similarity index 100% rename from samples/excel/excel-library/working-with-cells/src/app/app.component.ts rename to samples/excel/excel-library/working-with-cells/src/app.component.ts diff --git a/samples/excel/excel-library/working-with-cells/src/app/app.module.ts b/samples/excel/excel-library/working-with-cells/src/app.module.ts similarity index 100% rename from samples/excel/excel-library/working-with-cells/src/app/app.module.ts rename to samples/excel/excel-library/working-with-cells/src/app.module.ts diff --git a/samples/excel/excel-library/working-with-cells/src/config/tsconfig-es5.app.json b/samples/excel/excel-library/working-with-cells/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/excel-library/working-with-cells/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/excel-library/working-with-cells/src/config/tsconfig.app.json b/samples/excel/excel-library/working-with-cells/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/excel-library/working-with-cells/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-cells/src/config/tsconfig.base.json b/samples/excel/excel-library/working-with-cells/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/excel-library/working-with-cells/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/excel-library/working-with-cells/src/config/tsconfig.spec.json b/samples/excel/excel-library/working-with-cells/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/excel-library/working-with-cells/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-cells/src/config/tsconfig.worker.json b/samples/excel/excel-library/working-with-cells/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/excel-library/working-with-cells/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-cells/src/main.ts b/samples/excel/excel-library/working-with-cells/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/excel-library/working-with-cells/src/main.ts +++ b/samples/excel/excel-library/working-with-cells/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/excel-library/working-with-cells/tsconfig.app.json b/samples/excel/excel-library/working-with-cells/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/excel-library/working-with-cells/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/excel/excel-library/working-with-cells/tsconfig.json b/samples/excel/excel-library/working-with-cells/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/excel-library/working-with-cells/tsconfig.json +++ b/samples/excel/excel-library/working-with-cells/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/excel-library/working-with-charts/.codesandbox/Dockerfile b/samples/excel/excel-library/working-with-charts/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/excel-library/working-with-charts/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/excel-library/working-with-charts/.codesandbox/tasks.json b/samples/excel/excel-library/working-with-charts/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/excel-library/working-with-charts/.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/excel/excel-library/working-with-charts/.stackblitzrc b/samples/excel/excel-library/working-with-charts/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/excel-library/working-with-charts/.stackblitzrc +++ b/samples/excel/excel-library/working-with-charts/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/excel-library/working-with-charts/angular.json b/samples/excel/excel-library/working-with-charts/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/excel-library/working-with-charts/angular.json +++ b/samples/excel/excel-library/working-with-charts/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/excel-library/working-with-charts/package.json b/samples/excel/excel-library/working-with-charts/package.json index 346e42c13..0c18fe415 100644 --- a/samples/excel/excel-library/working-with-charts/package.json +++ b/samples/excel/excel-library/working-with-charts/package.json @@ -7,42 +7,42 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular": "17.0.0", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular": "17.2.3", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/excel-library/working-with-charts/src/app/ExcelUtility.ts b/samples/excel/excel-library/working-with-charts/src/ExcelUtility.ts similarity index 100% rename from samples/excel/excel-library/working-with-charts/src/app/ExcelUtility.ts rename to samples/excel/excel-library/working-with-charts/src/ExcelUtility.ts diff --git a/samples/excel/excel-library/working-with-charts/src/app/app.component.html b/samples/excel/excel-library/working-with-charts/src/app.component.html similarity index 100% rename from samples/excel/excel-library/working-with-charts/src/app/app.component.html rename to samples/excel/excel-library/working-with-charts/src/app.component.html diff --git a/samples/excel/excel-library/working-with-charts/src/app/app.component.scss b/samples/excel/excel-library/working-with-charts/src/app.component.scss similarity index 100% rename from samples/excel/excel-library/working-with-charts/src/app/app.component.scss rename to samples/excel/excel-library/working-with-charts/src/app.component.scss diff --git a/samples/excel/excel-library/working-with-charts/src/app/app.component.ts b/samples/excel/excel-library/working-with-charts/src/app.component.ts similarity index 100% rename from samples/excel/excel-library/working-with-charts/src/app/app.component.ts rename to samples/excel/excel-library/working-with-charts/src/app.component.ts diff --git a/samples/excel/excel-library/working-with-charts/src/app/app.module.ts b/samples/excel/excel-library/working-with-charts/src/app.module.ts similarity index 100% rename from samples/excel/excel-library/working-with-charts/src/app/app.module.ts rename to samples/excel/excel-library/working-with-charts/src/app.module.ts diff --git a/samples/excel/excel-library/working-with-charts/src/config/tsconfig-es5.app.json b/samples/excel/excel-library/working-with-charts/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/excel-library/working-with-charts/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/excel-library/working-with-charts/src/config/tsconfig.app.json b/samples/excel/excel-library/working-with-charts/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/excel-library/working-with-charts/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-charts/src/config/tsconfig.base.json b/samples/excel/excel-library/working-with-charts/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/excel-library/working-with-charts/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/excel-library/working-with-charts/src/config/tsconfig.spec.json b/samples/excel/excel-library/working-with-charts/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/excel-library/working-with-charts/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-charts/src/config/tsconfig.worker.json b/samples/excel/excel-library/working-with-charts/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/excel-library/working-with-charts/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-charts/src/main.ts b/samples/excel/excel-library/working-with-charts/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/excel-library/working-with-charts/src/main.ts +++ b/samples/excel/excel-library/working-with-charts/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/excel-library/working-with-charts/tsconfig.app.json b/samples/excel/excel-library/working-with-charts/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/excel-library/working-with-charts/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/excel/excel-library/working-with-charts/tsconfig.json b/samples/excel/excel-library/working-with-charts/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/excel-library/working-with-charts/tsconfig.json +++ b/samples/excel/excel-library/working-with-charts/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/excel-library/working-with-sparklines/.codesandbox/Dockerfile b/samples/excel/excel-library/working-with-sparklines/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/excel-library/working-with-sparklines/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/excel-library/working-with-sparklines/.codesandbox/tasks.json b/samples/excel/excel-library/working-with-sparklines/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/excel-library/working-with-sparklines/.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/excel/excel-library/working-with-sparklines/.stackblitzrc b/samples/excel/excel-library/working-with-sparklines/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/excel-library/working-with-sparklines/.stackblitzrc +++ b/samples/excel/excel-library/working-with-sparklines/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/excel-library/working-with-sparklines/angular.json b/samples/excel/excel-library/working-with-sparklines/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/excel-library/working-with-sparklines/angular.json +++ b/samples/excel/excel-library/working-with-sparklines/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/excel-library/working-with-sparklines/package.json b/samples/excel/excel-library/working-with-sparklines/package.json index 346e42c13..0c18fe415 100644 --- a/samples/excel/excel-library/working-with-sparklines/package.json +++ b/samples/excel/excel-library/working-with-sparklines/package.json @@ -7,42 +7,42 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular": "17.0.0", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular": "17.2.3", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/excel-library/working-with-sparklines/src/app/ExcelUtility.ts b/samples/excel/excel-library/working-with-sparklines/src/ExcelUtility.ts similarity index 100% rename from samples/excel/excel-library/working-with-sparklines/src/app/ExcelUtility.ts rename to samples/excel/excel-library/working-with-sparklines/src/ExcelUtility.ts diff --git a/samples/excel/excel-library/working-with-sparklines/src/app/app.component.html b/samples/excel/excel-library/working-with-sparklines/src/app.component.html similarity index 100% rename from samples/excel/excel-library/working-with-sparklines/src/app/app.component.html rename to samples/excel/excel-library/working-with-sparklines/src/app.component.html diff --git a/samples/excel/excel-library/working-with-sparklines/src/app/app.component.scss b/samples/excel/excel-library/working-with-sparklines/src/app.component.scss similarity index 100% rename from samples/excel/excel-library/working-with-sparklines/src/app/app.component.scss rename to samples/excel/excel-library/working-with-sparklines/src/app.component.scss diff --git a/samples/excel/excel-library/working-with-sparklines/src/app/app.component.ts b/samples/excel/excel-library/working-with-sparklines/src/app.component.ts similarity index 100% rename from samples/excel/excel-library/working-with-sparklines/src/app/app.component.ts rename to samples/excel/excel-library/working-with-sparklines/src/app.component.ts diff --git a/samples/excel/excel-library/working-with-sparklines/src/app/app.module.ts b/samples/excel/excel-library/working-with-sparklines/src/app.module.ts similarity index 100% rename from samples/excel/excel-library/working-with-sparklines/src/app/app.module.ts rename to samples/excel/excel-library/working-with-sparklines/src/app.module.ts diff --git a/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig-es5.app.json b/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.app.json b/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.base.json b/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.spec.json b/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.worker.json b/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/excel-library/working-with-sparklines/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-sparklines/src/main.ts b/samples/excel/excel-library/working-with-sparklines/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/excel-library/working-with-sparklines/src/main.ts +++ b/samples/excel/excel-library/working-with-sparklines/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/excel-library/working-with-sparklines/tsconfig.app.json b/samples/excel/excel-library/working-with-sparklines/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/excel-library/working-with-sparklines/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/excel/excel-library/working-with-sparklines/tsconfig.json b/samples/excel/excel-library/working-with-sparklines/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/excel-library/working-with-sparklines/tsconfig.json +++ b/samples/excel/excel-library/working-with-sparklines/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/excel-library/working-with-tables/.codesandbox/Dockerfile b/samples/excel/excel-library/working-with-tables/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/excel-library/working-with-tables/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/excel-library/working-with-tables/.codesandbox/tasks.json b/samples/excel/excel-library/working-with-tables/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/excel-library/working-with-tables/.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/excel/excel-library/working-with-tables/.stackblitzrc b/samples/excel/excel-library/working-with-tables/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/excel-library/working-with-tables/.stackblitzrc +++ b/samples/excel/excel-library/working-with-tables/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/excel-library/working-with-tables/angular.json b/samples/excel/excel-library/working-with-tables/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/excel-library/working-with-tables/angular.json +++ b/samples/excel/excel-library/working-with-tables/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/excel-library/working-with-tables/package.json b/samples/excel/excel-library/working-with-tables/package.json index 40664e302..d3ae2a586 100644 --- a/samples/excel/excel-library/working-with-tables/package.json +++ b/samples/excel/excel-library/working-with-tables/package.json @@ -7,42 +7,42 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", - "igniteui-angular-spreadsheet-chart-adapter": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet-chart-adapter": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/excel-library/working-with-tables/src/app/ExcelUtility.ts b/samples/excel/excel-library/working-with-tables/src/ExcelUtility.ts similarity index 100% rename from samples/excel/excel-library/working-with-tables/src/app/ExcelUtility.ts rename to samples/excel/excel-library/working-with-tables/src/ExcelUtility.ts diff --git a/samples/excel/excel-library/working-with-tables/src/app/app.component.html b/samples/excel/excel-library/working-with-tables/src/app.component.html similarity index 100% rename from samples/excel/excel-library/working-with-tables/src/app/app.component.html rename to samples/excel/excel-library/working-with-tables/src/app.component.html diff --git a/samples/excel/excel-library/working-with-tables/src/app/app.component.scss b/samples/excel/excel-library/working-with-tables/src/app.component.scss similarity index 100% rename from samples/excel/excel-library/working-with-tables/src/app/app.component.scss rename to samples/excel/excel-library/working-with-tables/src/app.component.scss diff --git a/samples/excel/excel-library/working-with-tables/src/app/app.component.ts b/samples/excel/excel-library/working-with-tables/src/app.component.ts similarity index 100% rename from samples/excel/excel-library/working-with-tables/src/app/app.component.ts rename to samples/excel/excel-library/working-with-tables/src/app.component.ts diff --git a/samples/excel/excel-library/working-with-tables/src/app/app.module.ts b/samples/excel/excel-library/working-with-tables/src/app.module.ts similarity index 100% rename from samples/excel/excel-library/working-with-tables/src/app/app.module.ts rename to samples/excel/excel-library/working-with-tables/src/app.module.ts diff --git a/samples/excel/excel-library/working-with-tables/src/config/tsconfig-es5.app.json b/samples/excel/excel-library/working-with-tables/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/excel-library/working-with-tables/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/excel-library/working-with-tables/src/config/tsconfig.app.json b/samples/excel/excel-library/working-with-tables/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/excel-library/working-with-tables/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-tables/src/config/tsconfig.base.json b/samples/excel/excel-library/working-with-tables/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/excel-library/working-with-tables/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/excel-library/working-with-tables/src/config/tsconfig.spec.json b/samples/excel/excel-library/working-with-tables/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/excel-library/working-with-tables/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-tables/src/config/tsconfig.worker.json b/samples/excel/excel-library/working-with-tables/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/excel-library/working-with-tables/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/excel-library/working-with-tables/src/main.ts b/samples/excel/excel-library/working-with-tables/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/excel-library/working-with-tables/src/main.ts +++ b/samples/excel/excel-library/working-with-tables/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/excel-library/working-with-tables/tsconfig.app.json b/samples/excel/excel-library/working-with-tables/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/excel-library/working-with-tables/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/excel/excel-library/working-with-tables/tsconfig.json b/samples/excel/excel-library/working-with-tables/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/excel-library/working-with-tables/tsconfig.json +++ b/samples/excel/excel-library/working-with-tables/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/spreadsheet/activation/.codesandbox/Dockerfile b/samples/excel/spreadsheet/activation/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/spreadsheet/activation/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/spreadsheet/activation/.codesandbox/tasks.json b/samples/excel/spreadsheet/activation/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/spreadsheet/activation/.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/excel/spreadsheet/activation/.stackblitzrc b/samples/excel/spreadsheet/activation/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/spreadsheet/activation/.stackblitzrc +++ b/samples/excel/spreadsheet/activation/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/spreadsheet/activation/angular.json b/samples/excel/spreadsheet/activation/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/spreadsheet/activation/angular.json +++ b/samples/excel/spreadsheet/activation/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/spreadsheet/activation/package.json b/samples/excel/spreadsheet/activation/package.json index a82121c16..f5afec064 100644 --- a/samples/excel/spreadsheet/activation/package.json +++ b/samples/excel/spreadsheet/activation/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/spreadsheet/activation/sandbox.config.json b/samples/excel/spreadsheet/activation/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/excel/spreadsheet/activation/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/excel/spreadsheet/activation/src/app/ExcelUtility.ts b/samples/excel/spreadsheet/activation/src/ExcelUtility.ts similarity index 100% rename from samples/excel/spreadsheet/activation/src/app/ExcelUtility.ts rename to samples/excel/spreadsheet/activation/src/ExcelUtility.ts diff --git a/samples/excel/spreadsheet/activation/src/app/app.component.html b/samples/excel/spreadsheet/activation/src/app.component.html similarity index 100% rename from samples/excel/spreadsheet/activation/src/app/app.component.html rename to samples/excel/spreadsheet/activation/src/app.component.html diff --git a/samples/excel/spreadsheet/hyperlinks/src/app/app.component.scss b/samples/excel/spreadsheet/activation/src/app.component.scss similarity index 100% rename from samples/excel/spreadsheet/hyperlinks/src/app/app.component.scss rename to samples/excel/spreadsheet/activation/src/app.component.scss diff --git a/samples/excel/spreadsheet/activation/src/app/app.component.ts b/samples/excel/spreadsheet/activation/src/app.component.ts similarity index 100% rename from samples/excel/spreadsheet/activation/src/app/app.component.ts rename to samples/excel/spreadsheet/activation/src/app.component.ts diff --git a/samples/excel/spreadsheet/activation/src/app/app.module.ts b/samples/excel/spreadsheet/activation/src/app.module.ts similarity index 100% rename from samples/excel/spreadsheet/activation/src/app/app.module.ts rename to samples/excel/spreadsheet/activation/src/app.module.ts diff --git a/samples/excel/spreadsheet/activation/src/config/tsconfig-es5.app.json b/samples/excel/spreadsheet/activation/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/spreadsheet/activation/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/spreadsheet/activation/src/config/tsconfig.app.json b/samples/excel/spreadsheet/activation/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/spreadsheet/activation/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/spreadsheet/activation/src/config/tsconfig.base.json b/samples/excel/spreadsheet/activation/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/spreadsheet/activation/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/spreadsheet/activation/src/config/tsconfig.spec.json b/samples/excel/spreadsheet/activation/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/spreadsheet/activation/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/spreadsheet/activation/src/config/tsconfig.worker.json b/samples/excel/spreadsheet/activation/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/spreadsheet/activation/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/spreadsheet/activation/src/main.ts b/samples/excel/spreadsheet/activation/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/spreadsheet/activation/src/main.ts +++ b/samples/excel/spreadsheet/activation/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/spreadsheet/activation/tsconfig.app.json b/samples/excel/spreadsheet/activation/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/spreadsheet/activation/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/excel/spreadsheet/activation/tsconfig.json b/samples/excel/spreadsheet/activation/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/spreadsheet/activation/tsconfig.json +++ b/samples/excel/spreadsheet/activation/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/spreadsheet/adapter-chart/.codesandbox/Dockerfile b/samples/excel/spreadsheet/adapter-chart/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/spreadsheet/adapter-chart/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/spreadsheet/adapter-chart/.codesandbox/tasks.json b/samples/excel/spreadsheet/adapter-chart/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/spreadsheet/adapter-chart/.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/excel/spreadsheet/adapter-chart/.stackblitzrc b/samples/excel/spreadsheet/adapter-chart/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/spreadsheet/adapter-chart/.stackblitzrc +++ b/samples/excel/spreadsheet/adapter-chart/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/spreadsheet/adapter-chart/angular.json b/samples/excel/spreadsheet/adapter-chart/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/spreadsheet/adapter-chart/angular.json +++ b/samples/excel/spreadsheet/adapter-chart/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/spreadsheet/adapter-chart/package.json b/samples/excel/spreadsheet/adapter-chart/package.json index 4c6689a18..ea7cf664f 100644 --- a/samples/excel/spreadsheet/adapter-chart/package.json +++ b/samples/excel/spreadsheet/adapter-chart/package.json @@ -7,43 +7,43 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", - "igniteui-angular-spreadsheet-chart-adapter": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet-chart-adapter": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/spreadsheet/adapter-chart/sandbox.config.json b/samples/excel/spreadsheet/adapter-chart/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/excel/spreadsheet/adapter-chart/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/excel/spreadsheet/adapter-chart/src/app/ExcelUtility.ts b/samples/excel/spreadsheet/adapter-chart/src/ExcelUtility.ts similarity index 100% rename from samples/excel/spreadsheet/adapter-chart/src/app/ExcelUtility.ts rename to samples/excel/spreadsheet/adapter-chart/src/ExcelUtility.ts diff --git a/samples/excel/spreadsheet/adapter-chart/src/app/app.component.html b/samples/excel/spreadsheet/adapter-chart/src/app.component.html similarity index 100% rename from samples/excel/spreadsheet/adapter-chart/src/app/app.component.html rename to samples/excel/spreadsheet/adapter-chart/src/app.component.html diff --git a/samples/excel/spreadsheet/overview/src/app/app.component.scss b/samples/excel/spreadsheet/adapter-chart/src/app.component.scss similarity index 100% rename from samples/excel/spreadsheet/overview/src/app/app.component.scss rename to samples/excel/spreadsheet/adapter-chart/src/app.component.scss diff --git a/samples/excel/spreadsheet/adapter-chart/src/app/app.component.ts b/samples/excel/spreadsheet/adapter-chart/src/app.component.ts similarity index 100% rename from samples/excel/spreadsheet/adapter-chart/src/app/app.component.ts rename to samples/excel/spreadsheet/adapter-chart/src/app.component.ts diff --git a/samples/excel/spreadsheet/adapter-chart/src/app/app.module.ts b/samples/excel/spreadsheet/adapter-chart/src/app.module.ts similarity index 100% rename from samples/excel/spreadsheet/adapter-chart/src/app/app.module.ts rename to samples/excel/spreadsheet/adapter-chart/src/app.module.ts diff --git a/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig-es5.app.json b/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.app.json b/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.base.json b/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.spec.json b/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.worker.json b/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/spreadsheet/adapter-chart/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/spreadsheet/adapter-chart/src/main.ts b/samples/excel/spreadsheet/adapter-chart/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/spreadsheet/adapter-chart/src/main.ts +++ b/samples/excel/spreadsheet/adapter-chart/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/spreadsheet/adapter-chart/tsconfig.app.json b/samples/excel/spreadsheet/adapter-chart/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/spreadsheet/adapter-chart/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/excel/spreadsheet/adapter-chart/tsconfig.json b/samples/excel/spreadsheet/adapter-chart/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/spreadsheet/adapter-chart/tsconfig.json +++ b/samples/excel/spreadsheet/adapter-chart/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/spreadsheet/adapter-combo/.codesandbox/Dockerfile b/samples/excel/spreadsheet/adapter-combo/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/spreadsheet/adapter-combo/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/spreadsheet/adapter-combo/.codesandbox/tasks.json b/samples/excel/spreadsheet/adapter-combo/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/spreadsheet/adapter-combo/.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/excel/spreadsheet/adapter-combo/.stackblitzrc b/samples/excel/spreadsheet/adapter-combo/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/spreadsheet/adapter-combo/.stackblitzrc +++ b/samples/excel/spreadsheet/adapter-combo/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/spreadsheet/adapter-combo/angular.json b/samples/excel/spreadsheet/adapter-combo/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/spreadsheet/adapter-combo/angular.json +++ b/samples/excel/spreadsheet/adapter-combo/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/spreadsheet/adapter-combo/package.json b/samples/excel/spreadsheet/adapter-combo/package.json index 4c6689a18..ea7cf664f 100644 --- a/samples/excel/spreadsheet/adapter-combo/package.json +++ b/samples/excel/spreadsheet/adapter-combo/package.json @@ -7,43 +7,43 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", - "igniteui-angular-spreadsheet-chart-adapter": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet-chart-adapter": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/spreadsheet/adapter-combo/sandbox.config.json b/samples/excel/spreadsheet/adapter-combo/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/excel/spreadsheet/adapter-combo/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/excel/spreadsheet/adapter-combo/src/app/ExcelUtility.ts b/samples/excel/spreadsheet/adapter-combo/src/ExcelUtility.ts similarity index 100% rename from samples/excel/spreadsheet/adapter-combo/src/app/ExcelUtility.ts rename to samples/excel/spreadsheet/adapter-combo/src/ExcelUtility.ts diff --git a/samples/excel/spreadsheet/adapter-combo/src/app/app.component.html b/samples/excel/spreadsheet/adapter-combo/src/app.component.html similarity index 100% rename from samples/excel/spreadsheet/adapter-combo/src/app/app.component.html rename to samples/excel/spreadsheet/adapter-combo/src/app.component.html diff --git a/samples/gauges/bullet-graph/animation/src/app/app.component.scss b/samples/excel/spreadsheet/adapter-combo/src/app.component.scss similarity index 100% rename from samples/gauges/bullet-graph/animation/src/app/app.component.scss rename to samples/excel/spreadsheet/adapter-combo/src/app.component.scss diff --git a/samples/excel/spreadsheet/adapter-combo/src/app/app.component.ts b/samples/excel/spreadsheet/adapter-combo/src/app.component.ts similarity index 100% rename from samples/excel/spreadsheet/adapter-combo/src/app/app.component.ts rename to samples/excel/spreadsheet/adapter-combo/src/app.component.ts diff --git a/samples/excel/spreadsheet/adapter-combo/src/app/app.module.ts b/samples/excel/spreadsheet/adapter-combo/src/app.module.ts similarity index 100% rename from samples/excel/spreadsheet/adapter-combo/src/app/app.module.ts rename to samples/excel/spreadsheet/adapter-combo/src/app.module.ts diff --git a/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig-es5.app.json b/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.app.json b/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.base.json b/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.spec.json b/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.worker.json b/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/spreadsheet/adapter-combo/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/spreadsheet/adapter-combo/src/main.ts b/samples/excel/spreadsheet/adapter-combo/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/spreadsheet/adapter-combo/src/main.ts +++ b/samples/excel/spreadsheet/adapter-combo/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/spreadsheet/adapter-combo/tsconfig.app.json b/samples/excel/spreadsheet/adapter-combo/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/spreadsheet/adapter-combo/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/excel/spreadsheet/adapter-combo/tsconfig.json b/samples/excel/spreadsheet/adapter-combo/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/spreadsheet/adapter-combo/tsconfig.json +++ b/samples/excel/spreadsheet/adapter-combo/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/spreadsheet/clipboard/.codesandbox/Dockerfile b/samples/excel/spreadsheet/clipboard/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/spreadsheet/clipboard/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/spreadsheet/clipboard/.codesandbox/tasks.json b/samples/excel/spreadsheet/clipboard/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/spreadsheet/clipboard/.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/excel/spreadsheet/clipboard/.stackblitzrc b/samples/excel/spreadsheet/clipboard/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/spreadsheet/clipboard/.stackblitzrc +++ b/samples/excel/spreadsheet/clipboard/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/spreadsheet/clipboard/angular.json b/samples/excel/spreadsheet/clipboard/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/spreadsheet/clipboard/angular.json +++ b/samples/excel/spreadsheet/clipboard/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/spreadsheet/clipboard/package.json b/samples/excel/spreadsheet/clipboard/package.json index a82121c16..f5afec064 100644 --- a/samples/excel/spreadsheet/clipboard/package.json +++ b/samples/excel/spreadsheet/clipboard/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/spreadsheet/clipboard/sandbox.config.json b/samples/excel/spreadsheet/clipboard/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/excel/spreadsheet/clipboard/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/excel/spreadsheet/clipboard/src/app/ExcelUtility.ts b/samples/excel/spreadsheet/clipboard/src/ExcelUtility.ts similarity index 100% rename from samples/excel/spreadsheet/clipboard/src/app/ExcelUtility.ts rename to samples/excel/spreadsheet/clipboard/src/ExcelUtility.ts diff --git a/samples/excel/spreadsheet/clipboard/src/app/app.component.html b/samples/excel/spreadsheet/clipboard/src/app.component.html similarity index 100% rename from samples/excel/spreadsheet/clipboard/src/app/app.component.html rename to samples/excel/spreadsheet/clipboard/src/app.component.html diff --git a/samples/gauges/bullet-graph/background/src/app/app.component.scss b/samples/excel/spreadsheet/clipboard/src/app.component.scss similarity index 100% rename from samples/gauges/bullet-graph/background/src/app/app.component.scss rename to samples/excel/spreadsheet/clipboard/src/app.component.scss diff --git a/samples/excel/spreadsheet/clipboard/src/app/app.component.ts b/samples/excel/spreadsheet/clipboard/src/app.component.ts similarity index 100% rename from samples/excel/spreadsheet/clipboard/src/app/app.component.ts rename to samples/excel/spreadsheet/clipboard/src/app.component.ts diff --git a/samples/excel/spreadsheet/clipboard/src/app/app.module.ts b/samples/excel/spreadsheet/clipboard/src/app.module.ts similarity index 100% rename from samples/excel/spreadsheet/clipboard/src/app/app.module.ts rename to samples/excel/spreadsheet/clipboard/src/app.module.ts diff --git a/samples/excel/spreadsheet/clipboard/src/config/tsconfig-es5.app.json b/samples/excel/spreadsheet/clipboard/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/spreadsheet/clipboard/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/spreadsheet/clipboard/src/config/tsconfig.app.json b/samples/excel/spreadsheet/clipboard/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/spreadsheet/clipboard/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/spreadsheet/clipboard/src/config/tsconfig.base.json b/samples/excel/spreadsheet/clipboard/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/spreadsheet/clipboard/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/spreadsheet/clipboard/src/config/tsconfig.spec.json b/samples/excel/spreadsheet/clipboard/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/spreadsheet/clipboard/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/spreadsheet/clipboard/src/config/tsconfig.worker.json b/samples/excel/spreadsheet/clipboard/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/spreadsheet/clipboard/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/spreadsheet/clipboard/src/main.ts b/samples/excel/spreadsheet/clipboard/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/spreadsheet/clipboard/src/main.ts +++ b/samples/excel/spreadsheet/clipboard/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/spreadsheet/clipboard/tsconfig.app.json b/samples/excel/spreadsheet/clipboard/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/spreadsheet/clipboard/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/excel/spreadsheet/clipboard/tsconfig.json b/samples/excel/spreadsheet/clipboard/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/spreadsheet/clipboard/tsconfig.json +++ b/samples/excel/spreadsheet/clipboard/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/spreadsheet/commands/.codesandbox/Dockerfile b/samples/excel/spreadsheet/commands/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/spreadsheet/commands/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/spreadsheet/commands/.codesandbox/tasks.json b/samples/excel/spreadsheet/commands/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/spreadsheet/commands/.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/excel/spreadsheet/commands/.stackblitzrc b/samples/excel/spreadsheet/commands/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/spreadsheet/commands/.stackblitzrc +++ b/samples/excel/spreadsheet/commands/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/spreadsheet/commands/angular.json b/samples/excel/spreadsheet/commands/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/spreadsheet/commands/angular.json +++ b/samples/excel/spreadsheet/commands/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/spreadsheet/commands/package.json b/samples/excel/spreadsheet/commands/package.json index a82121c16..f5afec064 100644 --- a/samples/excel/spreadsheet/commands/package.json +++ b/samples/excel/spreadsheet/commands/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/spreadsheet/commands/sandbox.config.json b/samples/excel/spreadsheet/commands/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/excel/spreadsheet/commands/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/excel/spreadsheet/commands/src/app/ExcelUtility.ts b/samples/excel/spreadsheet/commands/src/ExcelUtility.ts similarity index 100% rename from samples/excel/spreadsheet/commands/src/app/ExcelUtility.ts rename to samples/excel/spreadsheet/commands/src/ExcelUtility.ts diff --git a/samples/excel/spreadsheet/commands/src/app/app.component.html b/samples/excel/spreadsheet/commands/src/app.component.html similarity index 100% rename from samples/excel/spreadsheet/commands/src/app/app.component.html rename to samples/excel/spreadsheet/commands/src/app.component.html diff --git a/samples/gauges/bullet-graph/labels/src/app/app.component.scss b/samples/excel/spreadsheet/commands/src/app.component.scss similarity index 100% rename from samples/gauges/bullet-graph/labels/src/app/app.component.scss rename to samples/excel/spreadsheet/commands/src/app.component.scss diff --git a/samples/excel/spreadsheet/commands/src/app/app.component.ts b/samples/excel/spreadsheet/commands/src/app.component.ts similarity index 100% rename from samples/excel/spreadsheet/commands/src/app/app.component.ts rename to samples/excel/spreadsheet/commands/src/app.component.ts diff --git a/samples/excel/spreadsheet/commands/src/app/app.module.ts b/samples/excel/spreadsheet/commands/src/app.module.ts similarity index 100% rename from samples/excel/spreadsheet/commands/src/app/app.module.ts rename to samples/excel/spreadsheet/commands/src/app.module.ts diff --git a/samples/excel/spreadsheet/commands/src/config/tsconfig-es5.app.json b/samples/excel/spreadsheet/commands/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/spreadsheet/commands/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/spreadsheet/commands/src/config/tsconfig.app.json b/samples/excel/spreadsheet/commands/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/spreadsheet/commands/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/spreadsheet/commands/src/config/tsconfig.base.json b/samples/excel/spreadsheet/commands/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/spreadsheet/commands/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/spreadsheet/commands/src/config/tsconfig.spec.json b/samples/excel/spreadsheet/commands/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/spreadsheet/commands/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/spreadsheet/commands/src/config/tsconfig.worker.json b/samples/excel/spreadsheet/commands/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/spreadsheet/commands/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/spreadsheet/commands/src/main.ts b/samples/excel/spreadsheet/commands/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/spreadsheet/commands/src/main.ts +++ b/samples/excel/spreadsheet/commands/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/spreadsheet/commands/tsconfig.app.json b/samples/excel/spreadsheet/commands/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/spreadsheet/commands/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/excel/spreadsheet/commands/tsconfig.json b/samples/excel/spreadsheet/commands/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/spreadsheet/commands/tsconfig.json +++ b/samples/excel/spreadsheet/commands/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/spreadsheet/conditional-formatting/.codesandbox/Dockerfile b/samples/excel/spreadsheet/conditional-formatting/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/spreadsheet/conditional-formatting/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/spreadsheet/conditional-formatting/.codesandbox/tasks.json b/samples/excel/spreadsheet/conditional-formatting/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/spreadsheet/conditional-formatting/.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/excel/spreadsheet/conditional-formatting/.stackblitzrc b/samples/excel/spreadsheet/conditional-formatting/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/spreadsheet/conditional-formatting/.stackblitzrc +++ b/samples/excel/spreadsheet/conditional-formatting/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/spreadsheet/conditional-formatting/angular.json b/samples/excel/spreadsheet/conditional-formatting/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/spreadsheet/conditional-formatting/angular.json +++ b/samples/excel/spreadsheet/conditional-formatting/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/spreadsheet/conditional-formatting/package.json b/samples/excel/spreadsheet/conditional-formatting/package.json index a82121c16..f5afec064 100644 --- a/samples/excel/spreadsheet/conditional-formatting/package.json +++ b/samples/excel/spreadsheet/conditional-formatting/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/spreadsheet/conditional-formatting/sandbox.config.json b/samples/excel/spreadsheet/conditional-formatting/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/excel/spreadsheet/conditional-formatting/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/excel/spreadsheet/conditional-formatting/src/app/ExcelUtility.ts b/samples/excel/spreadsheet/conditional-formatting/src/ExcelUtility.ts similarity index 100% rename from samples/excel/spreadsheet/conditional-formatting/src/app/ExcelUtility.ts rename to samples/excel/spreadsheet/conditional-formatting/src/ExcelUtility.ts diff --git a/samples/excel/spreadsheet/conditional-formatting/src/app/app.component.html b/samples/excel/spreadsheet/conditional-formatting/src/app.component.html similarity index 100% rename from samples/excel/spreadsheet/conditional-formatting/src/app/app.component.html rename to samples/excel/spreadsheet/conditional-formatting/src/app.component.html diff --git a/samples/gauges/bullet-graph/measures/src/app/app.component.scss b/samples/excel/spreadsheet/conditional-formatting/src/app.component.scss similarity index 100% rename from samples/gauges/bullet-graph/measures/src/app/app.component.scss rename to samples/excel/spreadsheet/conditional-formatting/src/app.component.scss diff --git a/samples/excel/spreadsheet/conditional-formatting/src/app/app.component.ts b/samples/excel/spreadsheet/conditional-formatting/src/app.component.ts similarity index 100% rename from samples/excel/spreadsheet/conditional-formatting/src/app/app.component.ts rename to samples/excel/spreadsheet/conditional-formatting/src/app.component.ts diff --git a/samples/excel/spreadsheet/conditional-formatting/src/app/app.module.ts b/samples/excel/spreadsheet/conditional-formatting/src/app.module.ts similarity index 100% rename from samples/excel/spreadsheet/conditional-formatting/src/app/app.module.ts rename to samples/excel/spreadsheet/conditional-formatting/src/app.module.ts diff --git a/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig-es5.app.json b/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.app.json b/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.base.json b/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.spec.json b/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.worker.json b/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/spreadsheet/conditional-formatting/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/spreadsheet/conditional-formatting/src/main.ts b/samples/excel/spreadsheet/conditional-formatting/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/spreadsheet/conditional-formatting/src/main.ts +++ b/samples/excel/spreadsheet/conditional-formatting/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/spreadsheet/conditional-formatting/tsconfig.app.json b/samples/excel/spreadsheet/conditional-formatting/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/spreadsheet/conditional-formatting/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/excel/spreadsheet/conditional-formatting/tsconfig.json b/samples/excel/spreadsheet/conditional-formatting/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/spreadsheet/conditional-formatting/tsconfig.json +++ b/samples/excel/spreadsheet/conditional-formatting/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/spreadsheet/config-options/.codesandbox/Dockerfile b/samples/excel/spreadsheet/config-options/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/spreadsheet/config-options/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/spreadsheet/config-options/.codesandbox/tasks.json b/samples/excel/spreadsheet/config-options/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/spreadsheet/config-options/.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/excel/spreadsheet/config-options/.stackblitzrc b/samples/excel/spreadsheet/config-options/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/spreadsheet/config-options/.stackblitzrc +++ b/samples/excel/spreadsheet/config-options/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/spreadsheet/config-options/angular.json b/samples/excel/spreadsheet/config-options/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/spreadsheet/config-options/angular.json +++ b/samples/excel/spreadsheet/config-options/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/spreadsheet/config-options/package.json b/samples/excel/spreadsheet/config-options/package.json index a82121c16..f5afec064 100644 --- a/samples/excel/spreadsheet/config-options/package.json +++ b/samples/excel/spreadsheet/config-options/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/spreadsheet/config-options/sandbox.config.json b/samples/excel/spreadsheet/config-options/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/excel/spreadsheet/config-options/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/excel/spreadsheet/config-options/src/app/ExcelUtility.ts b/samples/excel/spreadsheet/config-options/src/ExcelUtility.ts similarity index 100% rename from samples/excel/spreadsheet/config-options/src/app/ExcelUtility.ts rename to samples/excel/spreadsheet/config-options/src/ExcelUtility.ts diff --git a/samples/excel/spreadsheet/config-options/src/app/app.component.html b/samples/excel/spreadsheet/config-options/src/app.component.html similarity index 100% rename from samples/excel/spreadsheet/config-options/src/app/app.component.html rename to samples/excel/spreadsheet/config-options/src/app.component.html diff --git a/samples/gauges/bullet-graph/ranges/src/app/app.component.scss b/samples/excel/spreadsheet/config-options/src/app.component.scss similarity index 100% rename from samples/gauges/bullet-graph/ranges/src/app/app.component.scss rename to samples/excel/spreadsheet/config-options/src/app.component.scss diff --git a/samples/excel/spreadsheet/config-options/src/app/app.component.ts b/samples/excel/spreadsheet/config-options/src/app.component.ts similarity index 100% rename from samples/excel/spreadsheet/config-options/src/app/app.component.ts rename to samples/excel/spreadsheet/config-options/src/app.component.ts diff --git a/samples/excel/spreadsheet/config-options/src/app/app.module.ts b/samples/excel/spreadsheet/config-options/src/app.module.ts similarity index 100% rename from samples/excel/spreadsheet/config-options/src/app/app.module.ts rename to samples/excel/spreadsheet/config-options/src/app.module.ts diff --git a/samples/excel/spreadsheet/config-options/src/config/tsconfig-es5.app.json b/samples/excel/spreadsheet/config-options/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/spreadsheet/config-options/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/spreadsheet/config-options/src/config/tsconfig.app.json b/samples/excel/spreadsheet/config-options/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/spreadsheet/config-options/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/spreadsheet/config-options/src/config/tsconfig.base.json b/samples/excel/spreadsheet/config-options/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/spreadsheet/config-options/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/spreadsheet/config-options/src/config/tsconfig.spec.json b/samples/excel/spreadsheet/config-options/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/spreadsheet/config-options/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/spreadsheet/config-options/src/config/tsconfig.worker.json b/samples/excel/spreadsheet/config-options/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/spreadsheet/config-options/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/spreadsheet/config-options/src/main.ts b/samples/excel/spreadsheet/config-options/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/spreadsheet/config-options/src/main.ts +++ b/samples/excel/spreadsheet/config-options/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/spreadsheet/config-options/tsconfig.app.json b/samples/excel/spreadsheet/config-options/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/spreadsheet/config-options/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/excel/spreadsheet/config-options/tsconfig.json b/samples/excel/spreadsheet/config-options/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/spreadsheet/config-options/tsconfig.json +++ b/samples/excel/spreadsheet/config-options/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/spreadsheet/data-validation/.codesandbox/Dockerfile b/samples/excel/spreadsheet/data-validation/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/spreadsheet/data-validation/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/spreadsheet/data-validation/.codesandbox/tasks.json b/samples/excel/spreadsheet/data-validation/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/spreadsheet/data-validation/.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/excel/spreadsheet/data-validation/.stackblitzrc b/samples/excel/spreadsheet/data-validation/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/spreadsheet/data-validation/.stackblitzrc +++ b/samples/excel/spreadsheet/data-validation/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/spreadsheet/data-validation/angular.json b/samples/excel/spreadsheet/data-validation/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/spreadsheet/data-validation/angular.json +++ b/samples/excel/spreadsheet/data-validation/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/spreadsheet/data-validation/package.json b/samples/excel/spreadsheet/data-validation/package.json index a82121c16..f5afec064 100644 --- a/samples/excel/spreadsheet/data-validation/package.json +++ b/samples/excel/spreadsheet/data-validation/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/spreadsheet/data-validation/sandbox.config.json b/samples/excel/spreadsheet/data-validation/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/excel/spreadsheet/data-validation/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/excel/spreadsheet/data-validation/src/app/app.component.html b/samples/excel/spreadsheet/data-validation/src/app.component.html similarity index 100% rename from samples/excel/spreadsheet/data-validation/src/app/app.component.html rename to samples/excel/spreadsheet/data-validation/src/app.component.html diff --git a/samples/gauges/bullet-graph/scale/src/app/app.component.scss b/samples/excel/spreadsheet/data-validation/src/app.component.scss similarity index 100% rename from samples/gauges/bullet-graph/scale/src/app/app.component.scss rename to samples/excel/spreadsheet/data-validation/src/app.component.scss diff --git a/samples/excel/spreadsheet/data-validation/src/app/app.component.ts b/samples/excel/spreadsheet/data-validation/src/app.component.ts similarity index 100% rename from samples/excel/spreadsheet/data-validation/src/app/app.component.ts rename to samples/excel/spreadsheet/data-validation/src/app.component.ts diff --git a/samples/excel/spreadsheet/data-validation/src/app/app.module.ts b/samples/excel/spreadsheet/data-validation/src/app.module.ts similarity index 100% rename from samples/excel/spreadsheet/data-validation/src/app/app.module.ts rename to samples/excel/spreadsheet/data-validation/src/app.module.ts diff --git a/samples/excel/spreadsheet/data-validation/src/config/tsconfig-es5.app.json b/samples/excel/spreadsheet/data-validation/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/spreadsheet/data-validation/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/spreadsheet/data-validation/src/config/tsconfig.app.json b/samples/excel/spreadsheet/data-validation/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/spreadsheet/data-validation/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/spreadsheet/data-validation/src/config/tsconfig.base.json b/samples/excel/spreadsheet/data-validation/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/spreadsheet/data-validation/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/spreadsheet/data-validation/src/config/tsconfig.spec.json b/samples/excel/spreadsheet/data-validation/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/spreadsheet/data-validation/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/spreadsheet/data-validation/src/config/tsconfig.worker.json b/samples/excel/spreadsheet/data-validation/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/spreadsheet/data-validation/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/spreadsheet/data-validation/src/main.ts b/samples/excel/spreadsheet/data-validation/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/spreadsheet/data-validation/src/main.ts +++ b/samples/excel/spreadsheet/data-validation/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/spreadsheet/data-validation/tsconfig.app.json b/samples/excel/spreadsheet/data-validation/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/spreadsheet/data-validation/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/excel/spreadsheet/data-validation/tsconfig.json b/samples/excel/spreadsheet/data-validation/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/spreadsheet/data-validation/tsconfig.json +++ b/samples/excel/spreadsheet/data-validation/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/spreadsheet/hyperlinks/.codesandbox/Dockerfile b/samples/excel/spreadsheet/hyperlinks/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/spreadsheet/hyperlinks/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/spreadsheet/hyperlinks/.codesandbox/tasks.json b/samples/excel/spreadsheet/hyperlinks/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/spreadsheet/hyperlinks/.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/excel/spreadsheet/hyperlinks/.stackblitzrc b/samples/excel/spreadsheet/hyperlinks/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/spreadsheet/hyperlinks/.stackblitzrc +++ b/samples/excel/spreadsheet/hyperlinks/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/spreadsheet/hyperlinks/angular.json b/samples/excel/spreadsheet/hyperlinks/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/spreadsheet/hyperlinks/angular.json +++ b/samples/excel/spreadsheet/hyperlinks/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/spreadsheet/hyperlinks/package.json b/samples/excel/spreadsheet/hyperlinks/package.json index a82121c16..f5afec064 100644 --- a/samples/excel/spreadsheet/hyperlinks/package.json +++ b/samples/excel/spreadsheet/hyperlinks/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/spreadsheet/hyperlinks/sandbox.config.json b/samples/excel/spreadsheet/hyperlinks/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/excel/spreadsheet/hyperlinks/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/excel/spreadsheet/hyperlinks/src/app/ExcelUtility.ts b/samples/excel/spreadsheet/hyperlinks/src/ExcelUtility.ts similarity index 100% rename from samples/excel/spreadsheet/hyperlinks/src/app/ExcelUtility.ts rename to samples/excel/spreadsheet/hyperlinks/src/ExcelUtility.ts diff --git a/samples/excel/spreadsheet/hyperlinks/src/app/app.component.html b/samples/excel/spreadsheet/hyperlinks/src/app.component.html similarity index 100% rename from samples/excel/spreadsheet/hyperlinks/src/app/app.component.html rename to samples/excel/spreadsheet/hyperlinks/src/app.component.html diff --git a/samples/gauges/bullet-graph/tickmarks/src/app/app.component.scss b/samples/excel/spreadsheet/hyperlinks/src/app.component.scss similarity index 100% rename from samples/gauges/bullet-graph/tickmarks/src/app/app.component.scss rename to samples/excel/spreadsheet/hyperlinks/src/app.component.scss diff --git a/samples/excel/spreadsheet/hyperlinks/src/app/app.component.ts b/samples/excel/spreadsheet/hyperlinks/src/app.component.ts similarity index 100% rename from samples/excel/spreadsheet/hyperlinks/src/app/app.component.ts rename to samples/excel/spreadsheet/hyperlinks/src/app.component.ts diff --git a/samples/excel/spreadsheet/hyperlinks/src/app/app.module.ts b/samples/excel/spreadsheet/hyperlinks/src/app.module.ts similarity index 100% rename from samples/excel/spreadsheet/hyperlinks/src/app/app.module.ts rename to samples/excel/spreadsheet/hyperlinks/src/app.module.ts diff --git a/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig-es5.app.json b/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.app.json b/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.base.json b/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.spec.json b/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.worker.json b/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/spreadsheet/hyperlinks/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/spreadsheet/hyperlinks/src/main.ts b/samples/excel/spreadsheet/hyperlinks/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/spreadsheet/hyperlinks/src/main.ts +++ b/samples/excel/spreadsheet/hyperlinks/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/spreadsheet/hyperlinks/tsconfig.app.json b/samples/excel/spreadsheet/hyperlinks/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/spreadsheet/hyperlinks/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/excel/spreadsheet/hyperlinks/tsconfig.json b/samples/excel/spreadsheet/hyperlinks/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/spreadsheet/hyperlinks/tsconfig.json +++ b/samples/excel/spreadsheet/hyperlinks/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/excel/spreadsheet/overview/.codesandbox/Dockerfile b/samples/excel/spreadsheet/overview/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/excel/spreadsheet/overview/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/excel/spreadsheet/overview/.codesandbox/tasks.json b/samples/excel/spreadsheet/overview/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/excel/spreadsheet/overview/.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/excel/spreadsheet/overview/.stackblitzrc b/samples/excel/spreadsheet/overview/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/excel/spreadsheet/overview/.stackblitzrc +++ b/samples/excel/spreadsheet/overview/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/excel/spreadsheet/overview/angular.json b/samples/excel/spreadsheet/overview/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/excel/spreadsheet/overview/angular.json +++ b/samples/excel/spreadsheet/overview/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/excel/spreadsheet/overview/package.json b/samples/excel/spreadsheet/overview/package.json index a82121c16..f5afec064 100644 --- a/samples/excel/spreadsheet/overview/package.json +++ b/samples/excel/spreadsheet/overview/package.json @@ -7,41 +7,41 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/file-saver": "2.0.5", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", "file-saver": "2.0.5", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-excel": "17.3.0-beta.0", - "igniteui-angular-spreadsheet": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-excel": "17.3.1-alpha.0", + "igniteui-angular-spreadsheet": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/excel/spreadsheet/overview/sandbox.config.json b/samples/excel/spreadsheet/overview/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/excel/spreadsheet/overview/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/excel/spreadsheet/overview/src/app/ExcelUtility.ts b/samples/excel/spreadsheet/overview/src/ExcelUtility.ts similarity index 100% rename from samples/excel/spreadsheet/overview/src/app/ExcelUtility.ts rename to samples/excel/spreadsheet/overview/src/ExcelUtility.ts diff --git a/samples/excel/spreadsheet/overview/src/app/app.component.html b/samples/excel/spreadsheet/overview/src/app.component.html similarity index 100% rename from samples/excel/spreadsheet/overview/src/app/app.component.html rename to samples/excel/spreadsheet/overview/src/app.component.html diff --git a/samples/gauges/linear-gauge/animation/src/app/app.component.scss b/samples/excel/spreadsheet/overview/src/app.component.scss similarity index 100% rename from samples/gauges/linear-gauge/animation/src/app/app.component.scss rename to samples/excel/spreadsheet/overview/src/app.component.scss diff --git a/samples/excel/spreadsheet/overview/src/app/app.component.ts b/samples/excel/spreadsheet/overview/src/app.component.ts similarity index 100% rename from samples/excel/spreadsheet/overview/src/app/app.component.ts rename to samples/excel/spreadsheet/overview/src/app.component.ts diff --git a/samples/excel/spreadsheet/overview/src/app/app.module.ts b/samples/excel/spreadsheet/overview/src/app.module.ts similarity index 100% rename from samples/excel/spreadsheet/overview/src/app/app.module.ts rename to samples/excel/spreadsheet/overview/src/app.module.ts diff --git a/samples/excel/spreadsheet/overview/src/config/tsconfig-es5.app.json b/samples/excel/spreadsheet/overview/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/excel/spreadsheet/overview/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/excel/spreadsheet/overview/src/config/tsconfig.app.json b/samples/excel/spreadsheet/overview/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/excel/spreadsheet/overview/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/excel/spreadsheet/overview/src/config/tsconfig.base.json b/samples/excel/spreadsheet/overview/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/excel/spreadsheet/overview/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/excel/spreadsheet/overview/src/config/tsconfig.spec.json b/samples/excel/spreadsheet/overview/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/excel/spreadsheet/overview/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/excel/spreadsheet/overview/src/config/tsconfig.worker.json b/samples/excel/spreadsheet/overview/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/excel/spreadsheet/overview/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/excel/spreadsheet/overview/src/main.ts b/samples/excel/spreadsheet/overview/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/excel/spreadsheet/overview/src/main.ts +++ b/samples/excel/spreadsheet/overview/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/excel/spreadsheet/overview/tsconfig.app.json b/samples/excel/spreadsheet/overview/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/excel/spreadsheet/overview/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/excel/spreadsheet/overview/tsconfig.json b/samples/excel/spreadsheet/overview/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/excel/spreadsheet/overview/tsconfig.json +++ b/samples/excel/spreadsheet/overview/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/bullet-graph/animation/.codesandbox/Dockerfile b/samples/gauges/bullet-graph/animation/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/bullet-graph/animation/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/bullet-graph/animation/.codesandbox/tasks.json b/samples/gauges/bullet-graph/animation/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/bullet-graph/animation/.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/gauges/bullet-graph/animation/.stackblitzrc b/samples/gauges/bullet-graph/animation/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/bullet-graph/animation/.stackblitzrc +++ b/samples/gauges/bullet-graph/animation/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/animation/angular.json b/samples/gauges/bullet-graph/animation/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/bullet-graph/animation/angular.json +++ b/samples/gauges/bullet-graph/animation/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/bullet-graph/animation/package.json b/samples/gauges/bullet-graph/animation/package.json index f5dbdbcf1..be320fa81 100644 --- a/samples/gauges/bullet-graph/animation/package.json +++ b/samples/gauges/bullet-graph/animation/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular": "17.0.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular": "17.2.3", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/bullet-graph/animation/sandbox.config.json b/samples/gauges/bullet-graph/animation/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/bullet-graph/animation/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/animation/src/app/app.component.html b/samples/gauges/bullet-graph/animation/src/app.component.html similarity index 100% rename from samples/gauges/bullet-graph/animation/src/app/app.component.html rename to samples/gauges/bullet-graph/animation/src/app.component.html diff --git a/samples/gauges/linear-gauge/backing/src/app/app.component.scss b/samples/gauges/bullet-graph/animation/src/app.component.scss similarity index 100% rename from samples/gauges/linear-gauge/backing/src/app/app.component.scss rename to samples/gauges/bullet-graph/animation/src/app.component.scss diff --git a/samples/gauges/bullet-graph/animation/src/app/app.component.ts b/samples/gauges/bullet-graph/animation/src/app.component.ts similarity index 100% rename from samples/gauges/bullet-graph/animation/src/app/app.component.ts rename to samples/gauges/bullet-graph/animation/src/app.component.ts diff --git a/samples/gauges/bullet-graph/animation/src/app/app.module.ts b/samples/gauges/bullet-graph/animation/src/app.module.ts similarity index 100% rename from samples/gauges/bullet-graph/animation/src/app/app.module.ts rename to samples/gauges/bullet-graph/animation/src/app.module.ts diff --git a/samples/gauges/bullet-graph/animation/src/config/tsconfig-es5.app.json b/samples/gauges/bullet-graph/animation/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/bullet-graph/animation/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/bullet-graph/animation/src/config/tsconfig.app.json b/samples/gauges/bullet-graph/animation/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/bullet-graph/animation/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/bullet-graph/animation/src/config/tsconfig.base.json b/samples/gauges/bullet-graph/animation/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/bullet-graph/animation/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/bullet-graph/animation/src/config/tsconfig.spec.json b/samples/gauges/bullet-graph/animation/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/bullet-graph/animation/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/bullet-graph/animation/src/config/tsconfig.worker.json b/samples/gauges/bullet-graph/animation/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/bullet-graph/animation/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/bullet-graph/animation/src/main.ts b/samples/gauges/bullet-graph/animation/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/bullet-graph/animation/src/main.ts +++ b/samples/gauges/bullet-graph/animation/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/bullet-graph/animation/tsconfig.app.json b/samples/gauges/bullet-graph/animation/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/bullet-graph/animation/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/gauges/bullet-graph/animation/tsconfig.json b/samples/gauges/bullet-graph/animation/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/bullet-graph/animation/tsconfig.json +++ b/samples/gauges/bullet-graph/animation/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/bullet-graph/background/.codesandbox/Dockerfile b/samples/gauges/bullet-graph/background/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/bullet-graph/background/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/bullet-graph/background/.codesandbox/tasks.json b/samples/gauges/bullet-graph/background/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/bullet-graph/background/.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/gauges/bullet-graph/background/.stackblitzrc b/samples/gauges/bullet-graph/background/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/bullet-graph/background/.stackblitzrc +++ b/samples/gauges/bullet-graph/background/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/background/angular.json b/samples/gauges/bullet-graph/background/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/bullet-graph/background/angular.json +++ b/samples/gauges/bullet-graph/background/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/bullet-graph/background/package.json b/samples/gauges/bullet-graph/background/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/bullet-graph/background/package.json +++ b/samples/gauges/bullet-graph/background/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/bullet-graph/background/sandbox.config.json b/samples/gauges/bullet-graph/background/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/bullet-graph/background/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/background/src/app/app.component.html b/samples/gauges/bullet-graph/background/src/app.component.html similarity index 100% rename from samples/gauges/bullet-graph/background/src/app/app.component.html rename to samples/gauges/bullet-graph/background/src/app.component.html diff --git a/samples/gauges/linear-gauge/labels/src/app/app.component.scss b/samples/gauges/bullet-graph/background/src/app.component.scss similarity index 100% rename from samples/gauges/linear-gauge/labels/src/app/app.component.scss rename to samples/gauges/bullet-graph/background/src/app.component.scss diff --git a/samples/gauges/bullet-graph/background/src/app/app.component.ts b/samples/gauges/bullet-graph/background/src/app.component.ts similarity index 100% rename from samples/gauges/bullet-graph/background/src/app/app.component.ts rename to samples/gauges/bullet-graph/background/src/app.component.ts diff --git a/samples/gauges/bullet-graph/background/src/app/app.module.ts b/samples/gauges/bullet-graph/background/src/app.module.ts similarity index 100% rename from samples/gauges/bullet-graph/background/src/app/app.module.ts rename to samples/gauges/bullet-graph/background/src/app.module.ts diff --git a/samples/gauges/bullet-graph/background/src/config/tsconfig-es5.app.json b/samples/gauges/bullet-graph/background/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/bullet-graph/background/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/bullet-graph/background/src/config/tsconfig.app.json b/samples/gauges/bullet-graph/background/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/bullet-graph/background/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/bullet-graph/background/src/config/tsconfig.base.json b/samples/gauges/bullet-graph/background/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/bullet-graph/background/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/bullet-graph/background/src/config/tsconfig.spec.json b/samples/gauges/bullet-graph/background/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/bullet-graph/background/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/bullet-graph/background/src/config/tsconfig.worker.json b/samples/gauges/bullet-graph/background/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/bullet-graph/background/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/bullet-graph/background/src/main.ts b/samples/gauges/bullet-graph/background/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/bullet-graph/background/src/main.ts +++ b/samples/gauges/bullet-graph/background/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/bullet-graph/background/tsconfig.app.json b/samples/gauges/bullet-graph/background/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/bullet-graph/background/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/gauges/bullet-graph/background/tsconfig.json b/samples/gauges/bullet-graph/background/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/bullet-graph/background/tsconfig.json +++ b/samples/gauges/bullet-graph/background/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/bullet-graph/highlight-needle/.codesandbox/Dockerfile b/samples/gauges/bullet-graph/highlight-needle/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/bullet-graph/highlight-needle/.codesandbox/tasks.json b/samples/gauges/bullet-graph/highlight-needle/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/.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/gauges/bullet-graph/highlight-needle/.stackblitzrc b/samples/gauges/bullet-graph/highlight-needle/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/highlight-needle/ReadMe.md b/samples/gauges/bullet-graph/highlight-needle/ReadMe.md new file mode 100644 index 000000000..7a68d019f --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/ReadMe.md @@ -0,0 +1,58 @@ + + + +This folder contains Angular application with example of Highlight Needle feature using [BulletGraph](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/gauges/bullet-graph/highlight-needle +``` + + +- 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/gauges/bullet-graph/highlight-needle/angular.json b/samples/gauges/bullet-graph/highlight-needle/angular.json new file mode 100644 index 000000000..0c2c173c9 --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/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/gauges/bullet-graph/highlight-needle/package.json b/samples/gauges/bullet-graph/highlight-needle/package.json new file mode 100644 index 000000000..1d5da46d8 --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/package.json @@ -0,0 +1,44 @@ +{ + "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": "^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", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.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.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", + "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.3.3" + } +} diff --git a/samples/gauges/bullet-graph/highlight-needle/src/app.component.html b/samples/gauges/bullet-graph/highlight-needle/src/app.component.html new file mode 100644 index 000000000..d755edb80 --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/src/app.component.html @@ -0,0 +1,22 @@ +
+ + + + + +
diff --git a/samples/gauges/linear-gauge/needle/src/app/app.component.scss b/samples/gauges/bullet-graph/highlight-needle/src/app.component.scss similarity index 100% rename from samples/gauges/linear-gauge/needle/src/app/app.component.scss rename to samples/gauges/bullet-graph/highlight-needle/src/app.component.scss diff --git a/samples/gauges/bullet-graph/highlight-needle/src/app.component.ts b/samples/gauges/bullet-graph/highlight-needle/src/app.component.ts new file mode 100644 index 000000000..b96c4429b --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/src/app.component.ts @@ -0,0 +1,16 @@ +import { Component, OnInit, ViewChild } from "@angular/core"; +import { IgxBulletGraphComponent } from "igniteui-angular-gauges"; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html" +}) + +export class AppComponent implements OnInit { + + @ViewChild("bulletGraph", { static: true }) + public bulletGraph: IgxBulletGraphComponent; + public ngOnInit(): void { + } +} diff --git a/samples/gauges/bullet-graph/labels/src/app/app.module.ts b/samples/gauges/bullet-graph/highlight-needle/src/app.module.ts similarity index 100% rename from samples/gauges/bullet-graph/labels/src/app/app.module.ts rename to samples/gauges/bullet-graph/highlight-needle/src/app.module.ts diff --git a/samples/gauges/bullet-graph/highlight-needle/src/environments/environment.prod.ts b/samples/gauges/bullet-graph/highlight-needle/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/gauges/bullet-graph/highlight-needle/src/environments/environment.ts b/samples/gauges/bullet-graph/highlight-needle/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/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/gauges/bullet-graph/highlight-needle/src/index.html b/samples/gauges/bullet-graph/highlight-needle/src/index.html new file mode 100644 index 000000000..67a35017e --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/src/index.html @@ -0,0 +1,22 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + diff --git a/samples/gauges/bullet-graph/highlight-needle/src/main.ts b/samples/gauges/bullet-graph/highlight-needle/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/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/gauges/bullet-graph/highlight-needle/src/polyfills.ts b/samples/gauges/bullet-graph/highlight-needle/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/gauges/bullet-graph/highlight-needle/src/styles.scss b/samples/gauges/bullet-graph/highlight-needle/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/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/gauges/bullet-graph/highlight-needle/src/typings.d.ts b/samples/gauges/bullet-graph/highlight-needle/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/gauges/bullet-graph/highlight-needle/tsconfig.app.json b/samples/gauges/bullet-graph/highlight-needle/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/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/gauges/bullet-graph/highlight-needle/tsconfig.json b/samples/gauges/bullet-graph/highlight-needle/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/gauges/bullet-graph/highlight-needle/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/gauges/bullet-graph/labels/.codesandbox/Dockerfile b/samples/gauges/bullet-graph/labels/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/bullet-graph/labels/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/bullet-graph/labels/.codesandbox/tasks.json b/samples/gauges/bullet-graph/labels/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/bullet-graph/labels/.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/gauges/bullet-graph/labels/.stackblitzrc b/samples/gauges/bullet-graph/labels/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/bullet-graph/labels/.stackblitzrc +++ b/samples/gauges/bullet-graph/labels/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/labels/angular.json b/samples/gauges/bullet-graph/labels/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/bullet-graph/labels/angular.json +++ b/samples/gauges/bullet-graph/labels/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/bullet-graph/labels/package.json b/samples/gauges/bullet-graph/labels/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/bullet-graph/labels/package.json +++ b/samples/gauges/bullet-graph/labels/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/bullet-graph/labels/sandbox.config.json b/samples/gauges/bullet-graph/labels/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/bullet-graph/labels/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/labels/src/app/app.component.html b/samples/gauges/bullet-graph/labels/src/app.component.html similarity index 100% rename from samples/gauges/bullet-graph/labels/src/app/app.component.html rename to samples/gauges/bullet-graph/labels/src/app.component.html diff --git a/samples/gauges/linear-gauge/ranges/src/app/app.component.scss b/samples/gauges/bullet-graph/labels/src/app.component.scss similarity index 100% rename from samples/gauges/linear-gauge/ranges/src/app/app.component.scss rename to samples/gauges/bullet-graph/labels/src/app.component.scss diff --git a/samples/gauges/bullet-graph/labels/src/app/app.component.ts b/samples/gauges/bullet-graph/labels/src/app.component.ts similarity index 100% rename from samples/gauges/bullet-graph/labels/src/app/app.component.ts rename to samples/gauges/bullet-graph/labels/src/app.component.ts diff --git a/samples/gauges/bullet-graph/measures/src/app/app.module.ts b/samples/gauges/bullet-graph/labels/src/app.module.ts similarity index 100% rename from samples/gauges/bullet-graph/measures/src/app/app.module.ts rename to samples/gauges/bullet-graph/labels/src/app.module.ts diff --git a/samples/gauges/bullet-graph/labels/src/config/tsconfig-es5.app.json b/samples/gauges/bullet-graph/labels/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/bullet-graph/labels/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/bullet-graph/labels/src/config/tsconfig.app.json b/samples/gauges/bullet-graph/labels/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/bullet-graph/labels/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/bullet-graph/labels/src/config/tsconfig.base.json b/samples/gauges/bullet-graph/labels/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/bullet-graph/labels/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/bullet-graph/labels/src/config/tsconfig.spec.json b/samples/gauges/bullet-graph/labels/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/bullet-graph/labels/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/bullet-graph/labels/src/config/tsconfig.worker.json b/samples/gauges/bullet-graph/labels/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/bullet-graph/labels/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/bullet-graph/labels/src/main.ts b/samples/gauges/bullet-graph/labels/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/bullet-graph/labels/src/main.ts +++ b/samples/gauges/bullet-graph/labels/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/bullet-graph/labels/tsconfig.app.json b/samples/gauges/bullet-graph/labels/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/bullet-graph/labels/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/gauges/bullet-graph/labels/tsconfig.json b/samples/gauges/bullet-graph/labels/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/bullet-graph/labels/tsconfig.json +++ b/samples/gauges/bullet-graph/labels/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/bullet-graph/measures/.codesandbox/Dockerfile b/samples/gauges/bullet-graph/measures/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/bullet-graph/measures/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/bullet-graph/measures/.codesandbox/tasks.json b/samples/gauges/bullet-graph/measures/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/bullet-graph/measures/.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/gauges/bullet-graph/measures/.stackblitzrc b/samples/gauges/bullet-graph/measures/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/bullet-graph/measures/.stackblitzrc +++ b/samples/gauges/bullet-graph/measures/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/measures/angular.json b/samples/gauges/bullet-graph/measures/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/bullet-graph/measures/angular.json +++ b/samples/gauges/bullet-graph/measures/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/bullet-graph/measures/package.json b/samples/gauges/bullet-graph/measures/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/bullet-graph/measures/package.json +++ b/samples/gauges/bullet-graph/measures/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/bullet-graph/measures/sandbox.config.json b/samples/gauges/bullet-graph/measures/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/bullet-graph/measures/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/measures/src/app/app.component.html b/samples/gauges/bullet-graph/measures/src/app.component.html similarity index 100% rename from samples/gauges/bullet-graph/measures/src/app/app.component.html rename to samples/gauges/bullet-graph/measures/src/app.component.html diff --git a/samples/gauges/linear-gauge/scale/src/app/app.component.scss b/samples/gauges/bullet-graph/measures/src/app.component.scss similarity index 100% rename from samples/gauges/linear-gauge/scale/src/app/app.component.scss rename to samples/gauges/bullet-graph/measures/src/app.component.scss diff --git a/samples/gauges/bullet-graph/measures/src/app/app.component.ts b/samples/gauges/bullet-graph/measures/src/app.component.ts similarity index 100% rename from samples/gauges/bullet-graph/measures/src/app/app.component.ts rename to samples/gauges/bullet-graph/measures/src/app.component.ts diff --git a/samples/gauges/bullet-graph/ranges/src/app/app.module.ts b/samples/gauges/bullet-graph/measures/src/app.module.ts similarity index 100% rename from samples/gauges/bullet-graph/ranges/src/app/app.module.ts rename to samples/gauges/bullet-graph/measures/src/app.module.ts diff --git a/samples/gauges/bullet-graph/measures/src/config/tsconfig-es5.app.json b/samples/gauges/bullet-graph/measures/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/bullet-graph/measures/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/bullet-graph/measures/src/config/tsconfig.app.json b/samples/gauges/bullet-graph/measures/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/bullet-graph/measures/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/bullet-graph/measures/src/config/tsconfig.base.json b/samples/gauges/bullet-graph/measures/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/bullet-graph/measures/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/bullet-graph/measures/src/config/tsconfig.spec.json b/samples/gauges/bullet-graph/measures/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/bullet-graph/measures/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/bullet-graph/measures/src/config/tsconfig.worker.json b/samples/gauges/bullet-graph/measures/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/bullet-graph/measures/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/bullet-graph/measures/src/main.ts b/samples/gauges/bullet-graph/measures/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/bullet-graph/measures/src/main.ts +++ b/samples/gauges/bullet-graph/measures/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/bullet-graph/measures/tsconfig.app.json b/samples/gauges/bullet-graph/measures/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/bullet-graph/measures/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/gauges/bullet-graph/measures/tsconfig.json b/samples/gauges/bullet-graph/measures/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/bullet-graph/measures/tsconfig.json +++ b/samples/gauges/bullet-graph/measures/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/bullet-graph/ranges/.codesandbox/Dockerfile b/samples/gauges/bullet-graph/ranges/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/bullet-graph/ranges/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/bullet-graph/ranges/.codesandbox/tasks.json b/samples/gauges/bullet-graph/ranges/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/bullet-graph/ranges/.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/gauges/bullet-graph/ranges/.stackblitzrc b/samples/gauges/bullet-graph/ranges/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/bullet-graph/ranges/.stackblitzrc +++ b/samples/gauges/bullet-graph/ranges/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/ranges/angular.json b/samples/gauges/bullet-graph/ranges/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/bullet-graph/ranges/angular.json +++ b/samples/gauges/bullet-graph/ranges/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/bullet-graph/ranges/package.json b/samples/gauges/bullet-graph/ranges/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/bullet-graph/ranges/package.json +++ b/samples/gauges/bullet-graph/ranges/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/bullet-graph/ranges/sandbox.config.json b/samples/gauges/bullet-graph/ranges/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/bullet-graph/ranges/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/ranges/src/app/app.component.html b/samples/gauges/bullet-graph/ranges/src/app.component.html similarity index 100% rename from samples/gauges/bullet-graph/ranges/src/app/app.component.html rename to samples/gauges/bullet-graph/ranges/src/app.component.html diff --git a/samples/gauges/linear-gauge/tickmarks/src/app/app.component.scss b/samples/gauges/bullet-graph/ranges/src/app.component.scss similarity index 100% rename from samples/gauges/linear-gauge/tickmarks/src/app/app.component.scss rename to samples/gauges/bullet-graph/ranges/src/app.component.scss diff --git a/samples/gauges/bullet-graph/ranges/src/app/app.component.ts b/samples/gauges/bullet-graph/ranges/src/app.component.ts similarity index 100% rename from samples/gauges/bullet-graph/ranges/src/app/app.component.ts rename to samples/gauges/bullet-graph/ranges/src/app.component.ts diff --git a/samples/gauges/bullet-graph/scale/src/app/app.module.ts b/samples/gauges/bullet-graph/ranges/src/app.module.ts similarity index 100% rename from samples/gauges/bullet-graph/scale/src/app/app.module.ts rename to samples/gauges/bullet-graph/ranges/src/app.module.ts diff --git a/samples/gauges/bullet-graph/ranges/src/config/tsconfig-es5.app.json b/samples/gauges/bullet-graph/ranges/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/bullet-graph/ranges/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/bullet-graph/ranges/src/config/tsconfig.app.json b/samples/gauges/bullet-graph/ranges/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/bullet-graph/ranges/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/bullet-graph/ranges/src/config/tsconfig.base.json b/samples/gauges/bullet-graph/ranges/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/bullet-graph/ranges/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/bullet-graph/ranges/src/config/tsconfig.spec.json b/samples/gauges/bullet-graph/ranges/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/bullet-graph/ranges/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/bullet-graph/ranges/src/config/tsconfig.worker.json b/samples/gauges/bullet-graph/ranges/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/bullet-graph/ranges/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/bullet-graph/ranges/src/main.ts b/samples/gauges/bullet-graph/ranges/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/bullet-graph/ranges/src/main.ts +++ b/samples/gauges/bullet-graph/ranges/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/bullet-graph/ranges/tsconfig.app.json b/samples/gauges/bullet-graph/ranges/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/bullet-graph/ranges/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/gauges/bullet-graph/ranges/tsconfig.json b/samples/gauges/bullet-graph/ranges/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/bullet-graph/ranges/tsconfig.json +++ b/samples/gauges/bullet-graph/ranges/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/bullet-graph/scale/.codesandbox/Dockerfile b/samples/gauges/bullet-graph/scale/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/bullet-graph/scale/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/bullet-graph/scale/.codesandbox/tasks.json b/samples/gauges/bullet-graph/scale/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/bullet-graph/scale/.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/gauges/bullet-graph/scale/.stackblitzrc b/samples/gauges/bullet-graph/scale/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/bullet-graph/scale/.stackblitzrc +++ b/samples/gauges/bullet-graph/scale/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/scale/angular.json b/samples/gauges/bullet-graph/scale/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/bullet-graph/scale/angular.json +++ b/samples/gauges/bullet-graph/scale/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/bullet-graph/scale/package.json b/samples/gauges/bullet-graph/scale/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/bullet-graph/scale/package.json +++ b/samples/gauges/bullet-graph/scale/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/bullet-graph/scale/sandbox.config.json b/samples/gauges/bullet-graph/scale/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/bullet-graph/scale/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/scale/src/app/app.component.html b/samples/gauges/bullet-graph/scale/src/app.component.html similarity index 100% rename from samples/gauges/bullet-graph/scale/src/app/app.component.html rename to samples/gauges/bullet-graph/scale/src/app.component.html diff --git a/samples/gauges/radial-gauge/animation/src/app/app.component.scss b/samples/gauges/bullet-graph/scale/src/app.component.scss similarity index 100% rename from samples/gauges/radial-gauge/animation/src/app/app.component.scss rename to samples/gauges/bullet-graph/scale/src/app.component.scss diff --git a/samples/gauges/bullet-graph/scale/src/app/app.component.ts b/samples/gauges/bullet-graph/scale/src/app.component.ts similarity index 100% rename from samples/gauges/bullet-graph/scale/src/app/app.component.ts rename to samples/gauges/bullet-graph/scale/src/app.component.ts diff --git a/samples/gauges/bullet-graph/tickmarks/src/app/app.module.ts b/samples/gauges/bullet-graph/scale/src/app.module.ts similarity index 100% rename from samples/gauges/bullet-graph/tickmarks/src/app/app.module.ts rename to samples/gauges/bullet-graph/scale/src/app.module.ts diff --git a/samples/gauges/bullet-graph/scale/src/config/tsconfig-es5.app.json b/samples/gauges/bullet-graph/scale/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/bullet-graph/scale/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/bullet-graph/scale/src/config/tsconfig.app.json b/samples/gauges/bullet-graph/scale/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/bullet-graph/scale/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/bullet-graph/scale/src/config/tsconfig.base.json b/samples/gauges/bullet-graph/scale/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/bullet-graph/scale/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/bullet-graph/scale/src/config/tsconfig.spec.json b/samples/gauges/bullet-graph/scale/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/bullet-graph/scale/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/bullet-graph/scale/src/config/tsconfig.worker.json b/samples/gauges/bullet-graph/scale/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/bullet-graph/scale/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/bullet-graph/scale/src/main.ts b/samples/gauges/bullet-graph/scale/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/bullet-graph/scale/src/main.ts +++ b/samples/gauges/bullet-graph/scale/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/bullet-graph/scale/tsconfig.app.json b/samples/gauges/bullet-graph/scale/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/bullet-graph/scale/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/gauges/bullet-graph/scale/tsconfig.json b/samples/gauges/bullet-graph/scale/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/bullet-graph/scale/tsconfig.json +++ b/samples/gauges/bullet-graph/scale/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/bullet-graph/tickmarks/.codesandbox/Dockerfile b/samples/gauges/bullet-graph/tickmarks/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/bullet-graph/tickmarks/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/bullet-graph/tickmarks/.codesandbox/tasks.json b/samples/gauges/bullet-graph/tickmarks/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/bullet-graph/tickmarks/.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/gauges/bullet-graph/tickmarks/.stackblitzrc b/samples/gauges/bullet-graph/tickmarks/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/bullet-graph/tickmarks/.stackblitzrc +++ b/samples/gauges/bullet-graph/tickmarks/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/tickmarks/angular.json b/samples/gauges/bullet-graph/tickmarks/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/bullet-graph/tickmarks/angular.json +++ b/samples/gauges/bullet-graph/tickmarks/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/bullet-graph/tickmarks/package.json b/samples/gauges/bullet-graph/tickmarks/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/bullet-graph/tickmarks/package.json +++ b/samples/gauges/bullet-graph/tickmarks/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/bullet-graph/tickmarks/sandbox.config.json b/samples/gauges/bullet-graph/tickmarks/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/bullet-graph/tickmarks/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/bullet-graph/tickmarks/src/app/app.component.html b/samples/gauges/bullet-graph/tickmarks/src/app.component.html similarity index 100% rename from samples/gauges/bullet-graph/tickmarks/src/app/app.component.html rename to samples/gauges/bullet-graph/tickmarks/src/app.component.html diff --git a/samples/gauges/radial-gauge/backing/src/app/app.component.scss b/samples/gauges/bullet-graph/tickmarks/src/app.component.scss similarity index 100% rename from samples/gauges/radial-gauge/backing/src/app/app.component.scss rename to samples/gauges/bullet-graph/tickmarks/src/app.component.scss diff --git a/samples/gauges/bullet-graph/tickmarks/src/app/app.component.ts b/samples/gauges/bullet-graph/tickmarks/src/app.component.ts similarity index 100% rename from samples/gauges/bullet-graph/tickmarks/src/app/app.component.ts rename to samples/gauges/bullet-graph/tickmarks/src/app.component.ts diff --git a/samples/gauges/bullet-graph/tickmarks/src/app.module.ts b/samples/gauges/bullet-graph/tickmarks/src/app.module.ts new file mode 100644 index 000000000..5a475ba9e --- /dev/null +++ b/samples/gauges/bullet-graph/tickmarks/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxBulletGraphModule } from "igniteui-angular-gauges"; + + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent, + +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxBulletGraphModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig-es5.app.json b/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.app.json b/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.base.json b/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.spec.json b/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.worker.json b/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/bullet-graph/tickmarks/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/bullet-graph/tickmarks/src/main.ts b/samples/gauges/bullet-graph/tickmarks/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/bullet-graph/tickmarks/src/main.ts +++ b/samples/gauges/bullet-graph/tickmarks/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/bullet-graph/tickmarks/tsconfig.app.json b/samples/gauges/bullet-graph/tickmarks/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/bullet-graph/tickmarks/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/gauges/bullet-graph/tickmarks/tsconfig.json b/samples/gauges/bullet-graph/tickmarks/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/bullet-graph/tickmarks/tsconfig.json +++ b/samples/gauges/bullet-graph/tickmarks/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/linear-gauge/animation/.codesandbox/Dockerfile b/samples/gauges/linear-gauge/animation/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/linear-gauge/animation/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/linear-gauge/animation/.codesandbox/tasks.json b/samples/gauges/linear-gauge/animation/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/linear-gauge/animation/.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/gauges/linear-gauge/animation/.stackblitzrc b/samples/gauges/linear-gauge/animation/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/linear-gauge/animation/.stackblitzrc +++ b/samples/gauges/linear-gauge/animation/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/animation/angular.json b/samples/gauges/linear-gauge/animation/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/linear-gauge/animation/angular.json +++ b/samples/gauges/linear-gauge/animation/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/linear-gauge/animation/package.json b/samples/gauges/linear-gauge/animation/package.json index f5dbdbcf1..be320fa81 100644 --- a/samples/gauges/linear-gauge/animation/package.json +++ b/samples/gauges/linear-gauge/animation/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular": "17.0.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular": "17.2.3", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/linear-gauge/animation/sandbox.config.json b/samples/gauges/linear-gauge/animation/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/linear-gauge/animation/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/animation/src/app/app.component.html b/samples/gauges/linear-gauge/animation/src/app.component.html similarity index 100% rename from samples/gauges/linear-gauge/animation/src/app/app.component.html rename to samples/gauges/linear-gauge/animation/src/app.component.html diff --git a/samples/gauges/radial-gauge/labels/src/app/app.component.scss b/samples/gauges/linear-gauge/animation/src/app.component.scss similarity index 100% rename from samples/gauges/radial-gauge/labels/src/app/app.component.scss rename to samples/gauges/linear-gauge/animation/src/app.component.scss diff --git a/samples/gauges/linear-gauge/animation/src/app/app.component.ts b/samples/gauges/linear-gauge/animation/src/app.component.ts similarity index 100% rename from samples/gauges/linear-gauge/animation/src/app/app.component.ts rename to samples/gauges/linear-gauge/animation/src/app.component.ts diff --git a/samples/gauges/linear-gauge/animation/src/app/app.module.ts b/samples/gauges/linear-gauge/animation/src/app.module.ts similarity index 100% rename from samples/gauges/linear-gauge/animation/src/app/app.module.ts rename to samples/gauges/linear-gauge/animation/src/app.module.ts diff --git a/samples/gauges/linear-gauge/animation/src/config/tsconfig-es5.app.json b/samples/gauges/linear-gauge/animation/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/linear-gauge/animation/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/linear-gauge/animation/src/config/tsconfig.app.json b/samples/gauges/linear-gauge/animation/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/linear-gauge/animation/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/linear-gauge/animation/src/config/tsconfig.base.json b/samples/gauges/linear-gauge/animation/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/linear-gauge/animation/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/linear-gauge/animation/src/config/tsconfig.spec.json b/samples/gauges/linear-gauge/animation/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/linear-gauge/animation/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/linear-gauge/animation/src/config/tsconfig.worker.json b/samples/gauges/linear-gauge/animation/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/linear-gauge/animation/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/linear-gauge/animation/src/main.ts b/samples/gauges/linear-gauge/animation/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/linear-gauge/animation/src/main.ts +++ b/samples/gauges/linear-gauge/animation/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/linear-gauge/animation/tsconfig.app.json b/samples/gauges/linear-gauge/animation/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/linear-gauge/animation/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/gauges/linear-gauge/animation/tsconfig.json b/samples/gauges/linear-gauge/animation/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/linear-gauge/animation/tsconfig.json +++ b/samples/gauges/linear-gauge/animation/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/linear-gauge/backing/.codesandbox/Dockerfile b/samples/gauges/linear-gauge/backing/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/linear-gauge/backing/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/linear-gauge/backing/.codesandbox/tasks.json b/samples/gauges/linear-gauge/backing/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/linear-gauge/backing/.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/gauges/linear-gauge/backing/.stackblitzrc b/samples/gauges/linear-gauge/backing/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/linear-gauge/backing/.stackblitzrc +++ b/samples/gauges/linear-gauge/backing/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/backing/angular.json b/samples/gauges/linear-gauge/backing/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/linear-gauge/backing/angular.json +++ b/samples/gauges/linear-gauge/backing/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/linear-gauge/backing/package.json b/samples/gauges/linear-gauge/backing/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/linear-gauge/backing/package.json +++ b/samples/gauges/linear-gauge/backing/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/linear-gauge/backing/sandbox.config.json b/samples/gauges/linear-gauge/backing/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/linear-gauge/backing/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/backing/src/app/app.component.html b/samples/gauges/linear-gauge/backing/src/app.component.html similarity index 100% rename from samples/gauges/linear-gauge/backing/src/app/app.component.html rename to samples/gauges/linear-gauge/backing/src/app.component.html diff --git a/samples/gauges/radial-gauge/needle/src/app/app.component.scss b/samples/gauges/linear-gauge/backing/src/app.component.scss similarity index 100% rename from samples/gauges/radial-gauge/needle/src/app/app.component.scss rename to samples/gauges/linear-gauge/backing/src/app.component.scss diff --git a/samples/gauges/linear-gauge/backing/src/app/app.component.ts b/samples/gauges/linear-gauge/backing/src/app.component.ts similarity index 100% rename from samples/gauges/linear-gauge/backing/src/app/app.component.ts rename to samples/gauges/linear-gauge/backing/src/app.component.ts diff --git a/samples/gauges/linear-gauge/backing/src/app/app.module.ts b/samples/gauges/linear-gauge/backing/src/app.module.ts similarity index 100% rename from samples/gauges/linear-gauge/backing/src/app/app.module.ts rename to samples/gauges/linear-gauge/backing/src/app.module.ts diff --git a/samples/gauges/linear-gauge/backing/src/config/tsconfig-es5.app.json b/samples/gauges/linear-gauge/backing/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/linear-gauge/backing/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/linear-gauge/backing/src/config/tsconfig.app.json b/samples/gauges/linear-gauge/backing/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/linear-gauge/backing/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/linear-gauge/backing/src/config/tsconfig.base.json b/samples/gauges/linear-gauge/backing/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/linear-gauge/backing/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/linear-gauge/backing/src/config/tsconfig.spec.json b/samples/gauges/linear-gauge/backing/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/linear-gauge/backing/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/linear-gauge/backing/src/config/tsconfig.worker.json b/samples/gauges/linear-gauge/backing/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/linear-gauge/backing/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/linear-gauge/backing/src/main.ts b/samples/gauges/linear-gauge/backing/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/linear-gauge/backing/src/main.ts +++ b/samples/gauges/linear-gauge/backing/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/linear-gauge/backing/tsconfig.app.json b/samples/gauges/linear-gauge/backing/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/linear-gauge/backing/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/gauges/linear-gauge/backing/tsconfig.json b/samples/gauges/linear-gauge/backing/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/linear-gauge/backing/tsconfig.json +++ b/samples/gauges/linear-gauge/backing/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/linear-gauge/highlight-needle/.codesandbox/Dockerfile b/samples/gauges/linear-gauge/highlight-needle/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/linear-gauge/highlight-needle/.codesandbox/tasks.json b/samples/gauges/linear-gauge/highlight-needle/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/.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/gauges/linear-gauge/highlight-needle/.stackblitzrc b/samples/gauges/linear-gauge/highlight-needle/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/highlight-needle/ReadMe.md b/samples/gauges/linear-gauge/highlight-needle/ReadMe.md new file mode 100644 index 000000000..c4c1362b9 --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/ReadMe.md @@ -0,0 +1,58 @@ + + + +This folder contains Angular application with example of Highlight Needle feature using [LinearGauge](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/gauges/linear-gauge/highlight-needle +``` + + +- 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/gauges/linear-gauge/highlight-needle/angular.json b/samples/gauges/linear-gauge/highlight-needle/angular.json new file mode 100644 index 000000000..0c2c173c9 --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/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/gauges/linear-gauge/highlight-needle/package.json b/samples/gauges/linear-gauge/highlight-needle/package.json new file mode 100644 index 000000000..1d5da46d8 --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/package.json @@ -0,0 +1,44 @@ +{ + "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": "^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", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.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.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", + "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.3.3" + } +} diff --git a/samples/gauges/linear-gauge/highlight-needle/src/app.component.html b/samples/gauges/linear-gauge/highlight-needle/src/app.component.html new file mode 100644 index 000000000..1305268ef --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/src/app.component.html @@ -0,0 +1,20 @@ +
+ + + +
diff --git a/samples/gauges/radial-gauge/ranges/src/app/app.component.scss b/samples/gauges/linear-gauge/highlight-needle/src/app.component.scss similarity index 100% rename from samples/gauges/radial-gauge/ranges/src/app/app.component.scss rename to samples/gauges/linear-gauge/highlight-needle/src/app.component.scss diff --git a/samples/gauges/linear-gauge/labels/src/app/app.component.ts b/samples/gauges/linear-gauge/highlight-needle/src/app.component.ts similarity index 100% rename from samples/gauges/linear-gauge/labels/src/app/app.component.ts rename to samples/gauges/linear-gauge/highlight-needle/src/app.component.ts diff --git a/samples/gauges/linear-gauge/labels/src/app/app.module.ts b/samples/gauges/linear-gauge/highlight-needle/src/app.module.ts similarity index 100% rename from samples/gauges/linear-gauge/labels/src/app/app.module.ts rename to samples/gauges/linear-gauge/highlight-needle/src/app.module.ts diff --git a/samples/gauges/linear-gauge/highlight-needle/src/environments/environment.prod.ts b/samples/gauges/linear-gauge/highlight-needle/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/gauges/linear-gauge/highlight-needle/src/environments/environment.ts b/samples/gauges/linear-gauge/highlight-needle/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/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/gauges/linear-gauge/highlight-needle/src/index.html b/samples/gauges/linear-gauge/highlight-needle/src/index.html new file mode 100644 index 000000000..67a35017e --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/src/index.html @@ -0,0 +1,22 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + diff --git a/samples/gauges/linear-gauge/highlight-needle/src/main.ts b/samples/gauges/linear-gauge/highlight-needle/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/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/gauges/linear-gauge/highlight-needle/src/polyfills.ts b/samples/gauges/linear-gauge/highlight-needle/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/gauges/linear-gauge/highlight-needle/src/styles.scss b/samples/gauges/linear-gauge/highlight-needle/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/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/gauges/linear-gauge/highlight-needle/src/typings.d.ts b/samples/gauges/linear-gauge/highlight-needle/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/gauges/linear-gauge/highlight-needle/tsconfig.app.json b/samples/gauges/linear-gauge/highlight-needle/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/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/gauges/linear-gauge/highlight-needle/tsconfig.json b/samples/gauges/linear-gauge/highlight-needle/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/gauges/linear-gauge/highlight-needle/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/gauges/linear-gauge/labels/.codesandbox/Dockerfile b/samples/gauges/linear-gauge/labels/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/linear-gauge/labels/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/linear-gauge/labels/.codesandbox/tasks.json b/samples/gauges/linear-gauge/labels/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/linear-gauge/labels/.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/gauges/linear-gauge/labels/.stackblitzrc b/samples/gauges/linear-gauge/labels/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/linear-gauge/labels/.stackblitzrc +++ b/samples/gauges/linear-gauge/labels/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/labels/angular.json b/samples/gauges/linear-gauge/labels/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/linear-gauge/labels/angular.json +++ b/samples/gauges/linear-gauge/labels/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/linear-gauge/labels/package.json b/samples/gauges/linear-gauge/labels/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/linear-gauge/labels/package.json +++ b/samples/gauges/linear-gauge/labels/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/linear-gauge/labels/sandbox.config.json b/samples/gauges/linear-gauge/labels/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/linear-gauge/labels/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/labels/src/app/app.component.html b/samples/gauges/linear-gauge/labels/src/app.component.html similarity index 100% rename from samples/gauges/linear-gauge/labels/src/app/app.component.html rename to samples/gauges/linear-gauge/labels/src/app.component.html diff --git a/samples/gauges/radial-gauge/scale/src/app/app.component.scss b/samples/gauges/linear-gauge/labels/src/app.component.scss similarity index 100% rename from samples/gauges/radial-gauge/scale/src/app/app.component.scss rename to samples/gauges/linear-gauge/labels/src/app.component.scss diff --git a/samples/gauges/linear-gauge/needle/src/app/app.component.ts b/samples/gauges/linear-gauge/labels/src/app.component.ts similarity index 100% rename from samples/gauges/linear-gauge/needle/src/app/app.component.ts rename to samples/gauges/linear-gauge/labels/src/app.component.ts diff --git a/samples/gauges/linear-gauge/needle/src/app/app.module.ts b/samples/gauges/linear-gauge/labels/src/app.module.ts similarity index 100% rename from samples/gauges/linear-gauge/needle/src/app/app.module.ts rename to samples/gauges/linear-gauge/labels/src/app.module.ts diff --git a/samples/gauges/linear-gauge/labels/src/config/tsconfig-es5.app.json b/samples/gauges/linear-gauge/labels/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/linear-gauge/labels/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/linear-gauge/labels/src/config/tsconfig.app.json b/samples/gauges/linear-gauge/labels/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/linear-gauge/labels/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/linear-gauge/labels/src/config/tsconfig.base.json b/samples/gauges/linear-gauge/labels/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/linear-gauge/labels/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/linear-gauge/labels/src/config/tsconfig.spec.json b/samples/gauges/linear-gauge/labels/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/linear-gauge/labels/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/linear-gauge/labels/src/config/tsconfig.worker.json b/samples/gauges/linear-gauge/labels/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/linear-gauge/labels/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/linear-gauge/labels/src/main.ts b/samples/gauges/linear-gauge/labels/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/linear-gauge/labels/src/main.ts +++ b/samples/gauges/linear-gauge/labels/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/linear-gauge/labels/tsconfig.app.json b/samples/gauges/linear-gauge/labels/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/linear-gauge/labels/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/gauges/linear-gauge/labels/tsconfig.json b/samples/gauges/linear-gauge/labels/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/linear-gauge/labels/tsconfig.json +++ b/samples/gauges/linear-gauge/labels/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/linear-gauge/needle/.codesandbox/Dockerfile b/samples/gauges/linear-gauge/needle/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/linear-gauge/needle/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/linear-gauge/needle/.codesandbox/tasks.json b/samples/gauges/linear-gauge/needle/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/linear-gauge/needle/.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/gauges/linear-gauge/needle/.stackblitzrc b/samples/gauges/linear-gauge/needle/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/linear-gauge/needle/.stackblitzrc +++ b/samples/gauges/linear-gauge/needle/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/needle/angular.json b/samples/gauges/linear-gauge/needle/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/linear-gauge/needle/angular.json +++ b/samples/gauges/linear-gauge/needle/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/linear-gauge/needle/package.json b/samples/gauges/linear-gauge/needle/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/linear-gauge/needle/package.json +++ b/samples/gauges/linear-gauge/needle/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/linear-gauge/needle/sandbox.config.json b/samples/gauges/linear-gauge/needle/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/linear-gauge/needle/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/needle/src/app/app.component.html b/samples/gauges/linear-gauge/needle/src/app.component.html similarity index 100% rename from samples/gauges/linear-gauge/needle/src/app/app.component.html rename to samples/gauges/linear-gauge/needle/src/app.component.html diff --git a/samples/gauges/radial-gauge/tickmarks/src/app/app.component.scss b/samples/gauges/linear-gauge/needle/src/app.component.scss similarity index 100% rename from samples/gauges/radial-gauge/tickmarks/src/app/app.component.scss rename to samples/gauges/linear-gauge/needle/src/app.component.scss diff --git a/samples/gauges/linear-gauge/ranges/src/app/app.component.ts b/samples/gauges/linear-gauge/needle/src/app.component.ts similarity index 100% rename from samples/gauges/linear-gauge/ranges/src/app/app.component.ts rename to samples/gauges/linear-gauge/needle/src/app.component.ts diff --git a/samples/gauges/linear-gauge/ranges/src/app/app.module.ts b/samples/gauges/linear-gauge/needle/src/app.module.ts similarity index 100% rename from samples/gauges/linear-gauge/ranges/src/app/app.module.ts rename to samples/gauges/linear-gauge/needle/src/app.module.ts diff --git a/samples/gauges/linear-gauge/needle/src/config/tsconfig-es5.app.json b/samples/gauges/linear-gauge/needle/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/linear-gauge/needle/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/linear-gauge/needle/src/config/tsconfig.app.json b/samples/gauges/linear-gauge/needle/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/linear-gauge/needle/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/linear-gauge/needle/src/config/tsconfig.base.json b/samples/gauges/linear-gauge/needle/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/linear-gauge/needle/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/linear-gauge/needle/src/config/tsconfig.spec.json b/samples/gauges/linear-gauge/needle/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/linear-gauge/needle/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/linear-gauge/needle/src/config/tsconfig.worker.json b/samples/gauges/linear-gauge/needle/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/linear-gauge/needle/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/linear-gauge/needle/src/main.ts b/samples/gauges/linear-gauge/needle/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/linear-gauge/needle/src/main.ts +++ b/samples/gauges/linear-gauge/needle/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/linear-gauge/needle/tsconfig.app.json b/samples/gauges/linear-gauge/needle/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/linear-gauge/needle/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/gauges/linear-gauge/needle/tsconfig.json b/samples/gauges/linear-gauge/needle/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/linear-gauge/needle/tsconfig.json +++ b/samples/gauges/linear-gauge/needle/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/linear-gauge/ranges/.codesandbox/Dockerfile b/samples/gauges/linear-gauge/ranges/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/linear-gauge/ranges/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/linear-gauge/ranges/.codesandbox/tasks.json b/samples/gauges/linear-gauge/ranges/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/linear-gauge/ranges/.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/gauges/linear-gauge/ranges/.stackblitzrc b/samples/gauges/linear-gauge/ranges/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/linear-gauge/ranges/.stackblitzrc +++ b/samples/gauges/linear-gauge/ranges/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/ranges/angular.json b/samples/gauges/linear-gauge/ranges/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/linear-gauge/ranges/angular.json +++ b/samples/gauges/linear-gauge/ranges/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/linear-gauge/ranges/package.json b/samples/gauges/linear-gauge/ranges/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/linear-gauge/ranges/package.json +++ b/samples/gauges/linear-gauge/ranges/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/linear-gauge/ranges/sandbox.config.json b/samples/gauges/linear-gauge/ranges/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/linear-gauge/ranges/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/ranges/src/app/app.component.html b/samples/gauges/linear-gauge/ranges/src/app.component.html similarity index 100% rename from samples/gauges/linear-gauge/ranges/src/app/app.component.html rename to samples/gauges/linear-gauge/ranges/src/app.component.html diff --git a/samples/maps/geo-map/binding-data-csv/src/app/app.component.scss b/samples/gauges/linear-gauge/ranges/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/binding-data-csv/src/app/app.component.scss rename to samples/gauges/linear-gauge/ranges/src/app.component.scss diff --git a/samples/gauges/linear-gauge/tickmarks/src/app/app.component.ts b/samples/gauges/linear-gauge/ranges/src/app.component.ts similarity index 100% rename from samples/gauges/linear-gauge/tickmarks/src/app/app.component.ts rename to samples/gauges/linear-gauge/ranges/src/app.component.ts diff --git a/samples/gauges/linear-gauge/scale/src/app/app.module.ts b/samples/gauges/linear-gauge/ranges/src/app.module.ts similarity index 100% rename from samples/gauges/linear-gauge/scale/src/app/app.module.ts rename to samples/gauges/linear-gauge/ranges/src/app.module.ts diff --git a/samples/gauges/linear-gauge/ranges/src/config/tsconfig-es5.app.json b/samples/gauges/linear-gauge/ranges/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/linear-gauge/ranges/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/linear-gauge/ranges/src/config/tsconfig.app.json b/samples/gauges/linear-gauge/ranges/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/linear-gauge/ranges/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/linear-gauge/ranges/src/config/tsconfig.base.json b/samples/gauges/linear-gauge/ranges/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/linear-gauge/ranges/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/linear-gauge/ranges/src/config/tsconfig.spec.json b/samples/gauges/linear-gauge/ranges/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/linear-gauge/ranges/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/linear-gauge/ranges/src/config/tsconfig.worker.json b/samples/gauges/linear-gauge/ranges/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/linear-gauge/ranges/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/linear-gauge/ranges/src/main.ts b/samples/gauges/linear-gauge/ranges/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/linear-gauge/ranges/src/main.ts +++ b/samples/gauges/linear-gauge/ranges/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/linear-gauge/ranges/tsconfig.app.json b/samples/gauges/linear-gauge/ranges/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/linear-gauge/ranges/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/gauges/linear-gauge/ranges/tsconfig.json b/samples/gauges/linear-gauge/ranges/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/linear-gauge/ranges/tsconfig.json +++ b/samples/gauges/linear-gauge/ranges/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/linear-gauge/scale/.codesandbox/Dockerfile b/samples/gauges/linear-gauge/scale/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/linear-gauge/scale/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/linear-gauge/scale/.codesandbox/tasks.json b/samples/gauges/linear-gauge/scale/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/linear-gauge/scale/.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/gauges/linear-gauge/scale/.stackblitzrc b/samples/gauges/linear-gauge/scale/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/linear-gauge/scale/.stackblitzrc +++ b/samples/gauges/linear-gauge/scale/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/scale/angular.json b/samples/gauges/linear-gauge/scale/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/linear-gauge/scale/angular.json +++ b/samples/gauges/linear-gauge/scale/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/linear-gauge/scale/package.json b/samples/gauges/linear-gauge/scale/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/linear-gauge/scale/package.json +++ b/samples/gauges/linear-gauge/scale/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/linear-gauge/scale/sandbox.config.json b/samples/gauges/linear-gauge/scale/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/linear-gauge/scale/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/scale/src/app/app.component.html b/samples/gauges/linear-gauge/scale/src/app.component.html similarity index 100% rename from samples/gauges/linear-gauge/scale/src/app/app.component.html rename to samples/gauges/linear-gauge/scale/src/app.component.html diff --git a/samples/maps/geo-map/binding-data-json-points/src/app/app.component.scss b/samples/gauges/linear-gauge/scale/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/binding-data-json-points/src/app/app.component.scss rename to samples/gauges/linear-gauge/scale/src/app.component.scss diff --git a/samples/gauges/linear-gauge/scale/src/app/app.component.ts b/samples/gauges/linear-gauge/scale/src/app.component.ts similarity index 100% rename from samples/gauges/linear-gauge/scale/src/app/app.component.ts rename to samples/gauges/linear-gauge/scale/src/app.component.ts diff --git a/samples/gauges/linear-gauge/tickmarks/src/app/app.module.ts b/samples/gauges/linear-gauge/scale/src/app.module.ts similarity index 100% rename from samples/gauges/linear-gauge/tickmarks/src/app/app.module.ts rename to samples/gauges/linear-gauge/scale/src/app.module.ts diff --git a/samples/gauges/linear-gauge/scale/src/config/tsconfig-es5.app.json b/samples/gauges/linear-gauge/scale/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/linear-gauge/scale/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/linear-gauge/scale/src/config/tsconfig.app.json b/samples/gauges/linear-gauge/scale/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/linear-gauge/scale/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/linear-gauge/scale/src/config/tsconfig.base.json b/samples/gauges/linear-gauge/scale/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/linear-gauge/scale/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/linear-gauge/scale/src/config/tsconfig.spec.json b/samples/gauges/linear-gauge/scale/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/linear-gauge/scale/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/linear-gauge/scale/src/config/tsconfig.worker.json b/samples/gauges/linear-gauge/scale/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/linear-gauge/scale/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/linear-gauge/scale/src/main.ts b/samples/gauges/linear-gauge/scale/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/linear-gauge/scale/src/main.ts +++ b/samples/gauges/linear-gauge/scale/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/linear-gauge/scale/tsconfig.app.json b/samples/gauges/linear-gauge/scale/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/linear-gauge/scale/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/gauges/linear-gauge/scale/tsconfig.json b/samples/gauges/linear-gauge/scale/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/linear-gauge/scale/tsconfig.json +++ b/samples/gauges/linear-gauge/scale/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/linear-gauge/tickmarks/.codesandbox/Dockerfile b/samples/gauges/linear-gauge/tickmarks/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/linear-gauge/tickmarks/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/linear-gauge/tickmarks/.codesandbox/tasks.json b/samples/gauges/linear-gauge/tickmarks/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/linear-gauge/tickmarks/.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/gauges/linear-gauge/tickmarks/.stackblitzrc b/samples/gauges/linear-gauge/tickmarks/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/linear-gauge/tickmarks/.stackblitzrc +++ b/samples/gauges/linear-gauge/tickmarks/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/tickmarks/angular.json b/samples/gauges/linear-gauge/tickmarks/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/linear-gauge/tickmarks/angular.json +++ b/samples/gauges/linear-gauge/tickmarks/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/linear-gauge/tickmarks/package.json b/samples/gauges/linear-gauge/tickmarks/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/linear-gauge/tickmarks/package.json +++ b/samples/gauges/linear-gauge/tickmarks/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/linear-gauge/tickmarks/sandbox.config.json b/samples/gauges/linear-gauge/tickmarks/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/linear-gauge/tickmarks/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/linear-gauge/tickmarks/src/app/app.component.html b/samples/gauges/linear-gauge/tickmarks/src/app.component.html similarity index 100% rename from samples/gauges/linear-gauge/tickmarks/src/app/app.component.html rename to samples/gauges/linear-gauge/tickmarks/src/app.component.html diff --git a/samples/maps/geo-map/binding-data-model/src/app/app.component.scss b/samples/gauges/linear-gauge/tickmarks/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/binding-data-model/src/app/app.component.scss rename to samples/gauges/linear-gauge/tickmarks/src/app.component.scss diff --git a/samples/gauges/linear-gauge/tickmarks/src/app.component.ts b/samples/gauges/linear-gauge/tickmarks/src/app.component.ts new file mode 100644 index 000000000..8a89c9cb6 --- /dev/null +++ b/samples/gauges/linear-gauge/tickmarks/src/app.component.ts @@ -0,0 +1,14 @@ +import { Component, ViewChild } from "@angular/core"; +import { IgxLinearGaugeComponent } from "igniteui-angular-gauges"; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html" +}) + +export class AppComponent { + + @ViewChild("linearGauge", { static: true }) + public linearGauge: IgxLinearGaugeComponent; +} diff --git a/samples/gauges/linear-gauge/tickmarks/src/app.module.ts b/samples/gauges/linear-gauge/tickmarks/src/app.module.ts new file mode 100644 index 000000000..fa0236237 --- /dev/null +++ b/samples/gauges/linear-gauge/tickmarks/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxLinearGaugeModule } from "igniteui-angular-gauges"; + + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent, + +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxLinearGaugeModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig-es5.app.json b/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.app.json b/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.base.json b/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.spec.json b/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.worker.json b/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/linear-gauge/tickmarks/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/linear-gauge/tickmarks/src/main.ts b/samples/gauges/linear-gauge/tickmarks/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/linear-gauge/tickmarks/src/main.ts +++ b/samples/gauges/linear-gauge/tickmarks/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/linear-gauge/tickmarks/tsconfig.app.json b/samples/gauges/linear-gauge/tickmarks/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/linear-gauge/tickmarks/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/gauges/linear-gauge/tickmarks/tsconfig.json b/samples/gauges/linear-gauge/tickmarks/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/linear-gauge/tickmarks/tsconfig.json +++ b/samples/gauges/linear-gauge/tickmarks/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/radial-gauge/animation/.codesandbox/Dockerfile b/samples/gauges/radial-gauge/animation/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/radial-gauge/animation/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/radial-gauge/animation/.codesandbox/tasks.json b/samples/gauges/radial-gauge/animation/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/radial-gauge/animation/.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/gauges/radial-gauge/animation/.stackblitzrc b/samples/gauges/radial-gauge/animation/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/radial-gauge/animation/.stackblitzrc +++ b/samples/gauges/radial-gauge/animation/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/animation/angular.json b/samples/gauges/radial-gauge/animation/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/radial-gauge/animation/angular.json +++ b/samples/gauges/radial-gauge/animation/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/radial-gauge/animation/package.json b/samples/gauges/radial-gauge/animation/package.json index f5dbdbcf1..be320fa81 100644 --- a/samples/gauges/radial-gauge/animation/package.json +++ b/samples/gauges/radial-gauge/animation/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular": "17.0.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular": "17.2.3", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/radial-gauge/animation/sandbox.config.json b/samples/gauges/radial-gauge/animation/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/radial-gauge/animation/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/animation/src/app/app.component.html b/samples/gauges/radial-gauge/animation/src/app.component.html similarity index 100% rename from samples/gauges/radial-gauge/animation/src/app/app.component.html rename to samples/gauges/radial-gauge/animation/src/app.component.html diff --git a/samples/maps/geo-map/binding-multiple-shapes/src/app/app.component.scss b/samples/gauges/radial-gauge/animation/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/binding-multiple-shapes/src/app/app.component.scss rename to samples/gauges/radial-gauge/animation/src/app.component.scss diff --git a/samples/gauges/radial-gauge/animation/src/app/app.component.ts b/samples/gauges/radial-gauge/animation/src/app.component.ts similarity index 100% rename from samples/gauges/radial-gauge/animation/src/app/app.component.ts rename to samples/gauges/radial-gauge/animation/src/app.component.ts diff --git a/samples/gauges/radial-gauge/animation/src/app/app.module.ts b/samples/gauges/radial-gauge/animation/src/app.module.ts similarity index 100% rename from samples/gauges/radial-gauge/animation/src/app/app.module.ts rename to samples/gauges/radial-gauge/animation/src/app.module.ts diff --git a/samples/gauges/radial-gauge/animation/src/config/tsconfig-es5.app.json b/samples/gauges/radial-gauge/animation/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/radial-gauge/animation/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/radial-gauge/animation/src/config/tsconfig.app.json b/samples/gauges/radial-gauge/animation/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/radial-gauge/animation/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/radial-gauge/animation/src/config/tsconfig.base.json b/samples/gauges/radial-gauge/animation/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/radial-gauge/animation/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/radial-gauge/animation/src/config/tsconfig.spec.json b/samples/gauges/radial-gauge/animation/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/radial-gauge/animation/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/radial-gauge/animation/src/config/tsconfig.worker.json b/samples/gauges/radial-gauge/animation/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/radial-gauge/animation/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/radial-gauge/animation/src/main.ts b/samples/gauges/radial-gauge/animation/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/radial-gauge/animation/src/main.ts +++ b/samples/gauges/radial-gauge/animation/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/radial-gauge/animation/tsconfig.app.json b/samples/gauges/radial-gauge/animation/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/radial-gauge/animation/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/gauges/radial-gauge/animation/tsconfig.json b/samples/gauges/radial-gauge/animation/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/radial-gauge/animation/tsconfig.json +++ b/samples/gauges/radial-gauge/animation/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/radial-gauge/backing/.codesandbox/Dockerfile b/samples/gauges/radial-gauge/backing/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/radial-gauge/backing/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/radial-gauge/backing/.codesandbox/tasks.json b/samples/gauges/radial-gauge/backing/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/radial-gauge/backing/.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/gauges/radial-gauge/backing/.stackblitzrc b/samples/gauges/radial-gauge/backing/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/radial-gauge/backing/.stackblitzrc +++ b/samples/gauges/radial-gauge/backing/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/backing/angular.json b/samples/gauges/radial-gauge/backing/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/radial-gauge/backing/angular.json +++ b/samples/gauges/radial-gauge/backing/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/radial-gauge/backing/package.json b/samples/gauges/radial-gauge/backing/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/radial-gauge/backing/package.json +++ b/samples/gauges/radial-gauge/backing/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/radial-gauge/backing/sandbox.config.json b/samples/gauges/radial-gauge/backing/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/radial-gauge/backing/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/backing/src/app/app.component.html b/samples/gauges/radial-gauge/backing/src/app.component.html similarity index 100% rename from samples/gauges/radial-gauge/backing/src/app/app.component.html rename to samples/gauges/radial-gauge/backing/src/app.component.html diff --git a/samples/maps/geo-map/binding-multiple-sources/src/app/app.component.scss b/samples/gauges/radial-gauge/backing/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/binding-multiple-sources/src/app/app.component.scss rename to samples/gauges/radial-gauge/backing/src/app.component.scss diff --git a/samples/gauges/radial-gauge/backing/src/app/app.component.ts b/samples/gauges/radial-gauge/backing/src/app.component.ts similarity index 100% rename from samples/gauges/radial-gauge/backing/src/app/app.component.ts rename to samples/gauges/radial-gauge/backing/src/app.component.ts diff --git a/samples/gauges/radial-gauge/backing/src/app/app.module.ts b/samples/gauges/radial-gauge/backing/src/app.module.ts similarity index 100% rename from samples/gauges/radial-gauge/backing/src/app/app.module.ts rename to samples/gauges/radial-gauge/backing/src/app.module.ts diff --git a/samples/gauges/radial-gauge/backing/src/config/tsconfig-es5.app.json b/samples/gauges/radial-gauge/backing/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/radial-gauge/backing/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/radial-gauge/backing/src/config/tsconfig.app.json b/samples/gauges/radial-gauge/backing/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/radial-gauge/backing/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/radial-gauge/backing/src/config/tsconfig.base.json b/samples/gauges/radial-gauge/backing/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/radial-gauge/backing/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/radial-gauge/backing/src/config/tsconfig.spec.json b/samples/gauges/radial-gauge/backing/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/radial-gauge/backing/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/radial-gauge/backing/src/config/tsconfig.worker.json b/samples/gauges/radial-gauge/backing/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/radial-gauge/backing/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/radial-gauge/backing/src/main.ts b/samples/gauges/radial-gauge/backing/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/radial-gauge/backing/src/main.ts +++ b/samples/gauges/radial-gauge/backing/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/radial-gauge/backing/tsconfig.app.json b/samples/gauges/radial-gauge/backing/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/radial-gauge/backing/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/gauges/radial-gauge/backing/tsconfig.json b/samples/gauges/radial-gauge/backing/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/radial-gauge/backing/tsconfig.json +++ b/samples/gauges/radial-gauge/backing/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/radial-gauge/highlight-needle/.codesandbox/Dockerfile b/samples/gauges/radial-gauge/highlight-needle/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/radial-gauge/highlight-needle/.codesandbox/tasks.json b/samples/gauges/radial-gauge/highlight-needle/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/.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/gauges/radial-gauge/highlight-needle/.stackblitzrc b/samples/gauges/radial-gauge/highlight-needle/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/highlight-needle/ReadMe.md b/samples/gauges/radial-gauge/highlight-needle/ReadMe.md new file mode 100644 index 000000000..1241b66fb --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/ReadMe.md @@ -0,0 +1,58 @@ + + + +This folder contains Angular application with example of Highlight Needle feature using [RadialGauge](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/gauges/radial-gauge/highlight-needle +``` + + +- 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/gauges/radial-gauge/highlight-needle/angular.json b/samples/gauges/radial-gauge/highlight-needle/angular.json new file mode 100644 index 000000000..0c2c173c9 --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/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/gauges/radial-gauge/highlight-needle/package.json b/samples/gauges/radial-gauge/highlight-needle/package.json new file mode 100644 index 000000000..1d5da46d8 --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/package.json @@ -0,0 +1,44 @@ +{ + "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": "^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", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.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.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", + "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.3.3" + } +} diff --git a/samples/gauges/radial-gauge/highlight-needle/src/app.component.html b/samples/gauges/radial-gauge/highlight-needle/src/app.component.html new file mode 100644 index 000000000..b1e991c4b --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/src/app.component.html @@ -0,0 +1,14 @@ +
+ + +
diff --git a/samples/maps/geo-map/binding-shp-points/src/app/app.component.scss b/samples/gauges/radial-gauge/highlight-needle/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/binding-shp-points/src/app/app.component.scss rename to samples/gauges/radial-gauge/highlight-needle/src/app.component.scss diff --git a/samples/gauges/radial-gauge/highlight-needle/src/app.component.ts b/samples/gauges/radial-gauge/highlight-needle/src/app.component.ts new file mode 100644 index 000000000..437784cc1 --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/src/app.component.ts @@ -0,0 +1,21 @@ +import { Component, OnInit, ViewChild } from "@angular/core"; +import { HighlightedValueDisplayMode } from "igniteui-angular-core"; +// radial gauge imports +import { IgxRadialGaugeComponent } from "igniteui-angular-gauges"; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html" +}) +export class AppComponent implements OnInit { + + @ViewChild("radialGauge", { static: true }) + public radialGauge: IgxRadialGaugeComponent; + + public ngOnInit(): void { + + // changing defaults to highlight current feature + this.radialGauge.scaleBrush = "#e8e8e8"; + } +} diff --git a/samples/gauges/radial-gauge/labels/src/app/app.module.ts b/samples/gauges/radial-gauge/highlight-needle/src/app.module.ts similarity index 100% rename from samples/gauges/radial-gauge/labels/src/app/app.module.ts rename to samples/gauges/radial-gauge/highlight-needle/src/app.module.ts diff --git a/samples/gauges/radial-gauge/highlight-needle/src/environments/environment.prod.ts b/samples/gauges/radial-gauge/highlight-needle/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/gauges/radial-gauge/highlight-needle/src/environments/environment.ts b/samples/gauges/radial-gauge/highlight-needle/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/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/gauges/radial-gauge/highlight-needle/src/index.html b/samples/gauges/radial-gauge/highlight-needle/src/index.html new file mode 100644 index 000000000..67a35017e --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/src/index.html @@ -0,0 +1,22 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + diff --git a/samples/gauges/radial-gauge/highlight-needle/src/main.ts b/samples/gauges/radial-gauge/highlight-needle/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/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/gauges/radial-gauge/highlight-needle/src/polyfills.ts b/samples/gauges/radial-gauge/highlight-needle/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/gauges/radial-gauge/highlight-needle/src/styles.scss b/samples/gauges/radial-gauge/highlight-needle/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/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/gauges/radial-gauge/highlight-needle/src/typings.d.ts b/samples/gauges/radial-gauge/highlight-needle/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/gauges/radial-gauge/highlight-needle/tsconfig.app.json b/samples/gauges/radial-gauge/highlight-needle/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/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/gauges/radial-gauge/highlight-needle/tsconfig.json b/samples/gauges/radial-gauge/highlight-needle/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/gauges/radial-gauge/highlight-needle/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/gauges/radial-gauge/labels/.codesandbox/Dockerfile b/samples/gauges/radial-gauge/labels/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/radial-gauge/labels/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/radial-gauge/labels/.codesandbox/tasks.json b/samples/gauges/radial-gauge/labels/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/radial-gauge/labels/.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/gauges/radial-gauge/labels/.stackblitzrc b/samples/gauges/radial-gauge/labels/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/radial-gauge/labels/.stackblitzrc +++ b/samples/gauges/radial-gauge/labels/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/labels/angular.json b/samples/gauges/radial-gauge/labels/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/radial-gauge/labels/angular.json +++ b/samples/gauges/radial-gauge/labels/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/radial-gauge/labels/package.json b/samples/gauges/radial-gauge/labels/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/radial-gauge/labels/package.json +++ b/samples/gauges/radial-gauge/labels/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/radial-gauge/labels/sandbox.config.json b/samples/gauges/radial-gauge/labels/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/radial-gauge/labels/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/labels/src/app/app.component.html b/samples/gauges/radial-gauge/labels/src/app.component.html similarity index 100% rename from samples/gauges/radial-gauge/labels/src/app/app.component.html rename to samples/gauges/radial-gauge/labels/src/app.component.html diff --git a/samples/maps/geo-map/binding-shp-polygons/src/app/app.component.scss b/samples/gauges/radial-gauge/labels/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/binding-shp-polygons/src/app/app.component.scss rename to samples/gauges/radial-gauge/labels/src/app.component.scss diff --git a/samples/gauges/radial-gauge/labels/src/app/app.component.ts b/samples/gauges/radial-gauge/labels/src/app.component.ts similarity index 100% rename from samples/gauges/radial-gauge/labels/src/app/app.component.ts rename to samples/gauges/radial-gauge/labels/src/app.component.ts diff --git a/samples/gauges/radial-gauge/needle/src/app/app.module.ts b/samples/gauges/radial-gauge/labels/src/app.module.ts similarity index 100% rename from samples/gauges/radial-gauge/needle/src/app/app.module.ts rename to samples/gauges/radial-gauge/labels/src/app.module.ts diff --git a/samples/gauges/radial-gauge/labels/src/config/tsconfig-es5.app.json b/samples/gauges/radial-gauge/labels/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/radial-gauge/labels/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/radial-gauge/labels/src/config/tsconfig.app.json b/samples/gauges/radial-gauge/labels/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/radial-gauge/labels/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/radial-gauge/labels/src/config/tsconfig.base.json b/samples/gauges/radial-gauge/labels/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/radial-gauge/labels/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/radial-gauge/labels/src/config/tsconfig.spec.json b/samples/gauges/radial-gauge/labels/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/radial-gauge/labels/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/radial-gauge/labels/src/config/tsconfig.worker.json b/samples/gauges/radial-gauge/labels/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/radial-gauge/labels/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/radial-gauge/labels/src/main.ts b/samples/gauges/radial-gauge/labels/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/radial-gauge/labels/src/main.ts +++ b/samples/gauges/radial-gauge/labels/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/radial-gauge/labels/tsconfig.app.json b/samples/gauges/radial-gauge/labels/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/radial-gauge/labels/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/gauges/radial-gauge/labels/tsconfig.json b/samples/gauges/radial-gauge/labels/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/radial-gauge/labels/tsconfig.json +++ b/samples/gauges/radial-gauge/labels/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/radial-gauge/needle/.codesandbox/Dockerfile b/samples/gauges/radial-gauge/needle/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/radial-gauge/needle/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/radial-gauge/needle/.codesandbox/tasks.json b/samples/gauges/radial-gauge/needle/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/radial-gauge/needle/.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/gauges/radial-gauge/needle/.stackblitzrc b/samples/gauges/radial-gauge/needle/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/radial-gauge/needle/.stackblitzrc +++ b/samples/gauges/radial-gauge/needle/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/needle/angular.json b/samples/gauges/radial-gauge/needle/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/radial-gauge/needle/angular.json +++ b/samples/gauges/radial-gauge/needle/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/radial-gauge/needle/package.json b/samples/gauges/radial-gauge/needle/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/radial-gauge/needle/package.json +++ b/samples/gauges/radial-gauge/needle/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/radial-gauge/needle/sandbox.config.json b/samples/gauges/radial-gauge/needle/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/radial-gauge/needle/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/needle/src/app/app.component.html b/samples/gauges/radial-gauge/needle/src/app.component.html similarity index 100% rename from samples/gauges/radial-gauge/needle/src/app/app.component.html rename to samples/gauges/radial-gauge/needle/src/app.component.html diff --git a/samples/maps/geo-map/binding-shp-polylines/src/app/app.component.scss b/samples/gauges/radial-gauge/needle/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/binding-shp-polylines/src/app/app.component.scss rename to samples/gauges/radial-gauge/needle/src/app.component.scss diff --git a/samples/gauges/radial-gauge/needle/src/app/app.component.ts b/samples/gauges/radial-gauge/needle/src/app.component.ts similarity index 100% rename from samples/gauges/radial-gauge/needle/src/app/app.component.ts rename to samples/gauges/radial-gauge/needle/src/app.component.ts diff --git a/samples/gauges/radial-gauge/ranges/src/app/app.module.ts b/samples/gauges/radial-gauge/needle/src/app.module.ts similarity index 100% rename from samples/gauges/radial-gauge/ranges/src/app/app.module.ts rename to samples/gauges/radial-gauge/needle/src/app.module.ts diff --git a/samples/gauges/radial-gauge/needle/src/config/tsconfig-es5.app.json b/samples/gauges/radial-gauge/needle/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/radial-gauge/needle/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/radial-gauge/needle/src/config/tsconfig.app.json b/samples/gauges/radial-gauge/needle/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/radial-gauge/needle/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/radial-gauge/needle/src/config/tsconfig.base.json b/samples/gauges/radial-gauge/needle/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/radial-gauge/needle/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/radial-gauge/needle/src/config/tsconfig.spec.json b/samples/gauges/radial-gauge/needle/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/radial-gauge/needle/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/radial-gauge/needle/src/config/tsconfig.worker.json b/samples/gauges/radial-gauge/needle/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/radial-gauge/needle/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/radial-gauge/needle/src/main.ts b/samples/gauges/radial-gauge/needle/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/radial-gauge/needle/src/main.ts +++ b/samples/gauges/radial-gauge/needle/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/radial-gauge/needle/tsconfig.app.json b/samples/gauges/radial-gauge/needle/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/radial-gauge/needle/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/gauges/radial-gauge/needle/tsconfig.json b/samples/gauges/radial-gauge/needle/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/radial-gauge/needle/tsconfig.json +++ b/samples/gauges/radial-gauge/needle/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/radial-gauge/optical-scaling/.codesandbox/Dockerfile b/samples/gauges/radial-gauge/optical-scaling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/radial-gauge/optical-scaling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/radial-gauge/optical-scaling/.codesandbox/tasks.json b/samples/gauges/radial-gauge/optical-scaling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/radial-gauge/optical-scaling/.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/gauges/radial-gauge/optical-scaling/.stackblitzrc b/samples/gauges/radial-gauge/optical-scaling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/radial-gauge/optical-scaling/.stackblitzrc +++ b/samples/gauges/radial-gauge/optical-scaling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/optical-scaling/angular.json b/samples/gauges/radial-gauge/optical-scaling/angular.json index 0e17c5c1f..0c2c173c9 100644 --- a/samples/gauges/radial-gauge/optical-scaling/angular.json +++ b/samples/gauges/radial-gauge/optical-scaling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,41 +95,25 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } - }, + "defaultProject": "demo", "cli": { "analytics": false } diff --git a/samples/gauges/radial-gauge/optical-scaling/package.json b/samples/gauges/radial-gauge/optical-scaling/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/radial-gauge/optical-scaling/package.json +++ b/samples/gauges/radial-gauge/optical-scaling/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/radial-gauge/optical-scaling/src/app.component.html b/samples/gauges/radial-gauge/optical-scaling/src/app.component.html new file mode 100644 index 000000000..e01224849 --- /dev/null +++ b/samples/gauges/radial-gauge/optical-scaling/src/app.component.html @@ -0,0 +1,19 @@ +
+
+ + + +
+ + + +
diff --git a/samples/maps/geo-map/custom-tooltips/src/app/app.component.scss b/samples/gauges/radial-gauge/optical-scaling/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/custom-tooltips/src/app/app.component.scss rename to samples/gauges/radial-gauge/optical-scaling/src/app.component.scss diff --git a/samples/gauges/radial-gauge/optical-scaling/src/app.component.ts b/samples/gauges/radial-gauge/optical-scaling/src/app.component.ts new file mode 100644 index 000000000..0bf6e36a3 --- /dev/null +++ b/samples/gauges/radial-gauge/optical-scaling/src/app.component.ts @@ -0,0 +1,39 @@ +import { Component, OnInit, ViewChild } from "@angular/core"; +// radial gauge imports +import { IgxRadialGaugeComponent } from "igniteui-angular-gauges"; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html" +}) +export class AppComponent implements OnInit { + + @ViewChild("radialGauge", { static: true }) + public radialGauge: IgxRadialGaugeComponent; + + public ngOnInit(): void { + + // changing defaults to highlight current feature + this.radialGauge.scaleBrush = "#e8e8e8"; + } + + public onOpticalScalingChanged = (e: any) => { + const isEnabled = e.target.checked; + this.radialGauge.opticalScalingEnabled = isEnabled; + + if (isEnabled) { + this.radialGauge.opticalScalingEnabled = true; + } + else { + this.radialGauge.opticalScalingEnabled = false; + } + } + + public onGaugeSizeChanged = (e: any) => { + + let num: number = parseInt(e.target.value); + this.radialGauge.width = num.toString() + "%"; + this.radialGauge.height = num.toString() + "%"; + } +} diff --git a/samples/gauges/radial-gauge/scale/src/app/app.module.ts b/samples/gauges/radial-gauge/optical-scaling/src/app.module.ts similarity index 100% rename from samples/gauges/radial-gauge/scale/src/app/app.module.ts rename to samples/gauges/radial-gauge/optical-scaling/src/app.module.ts diff --git a/samples/gauges/radial-gauge/optical-scaling/src/main.ts b/samples/gauges/radial-gauge/optical-scaling/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/radial-gauge/optical-scaling/src/main.ts +++ b/samples/gauges/radial-gauge/optical-scaling/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/radial-gauge/optical-scaling/tsconfig.app.json b/samples/gauges/radial-gauge/optical-scaling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/radial-gauge/optical-scaling/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/gauges/radial-gauge/optical-scaling/tsconfig.json b/samples/gauges/radial-gauge/optical-scaling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/radial-gauge/optical-scaling/tsconfig.json +++ b/samples/gauges/radial-gauge/optical-scaling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/radial-gauge/ranges/.codesandbox/Dockerfile b/samples/gauges/radial-gauge/ranges/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/radial-gauge/ranges/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/radial-gauge/ranges/.codesandbox/tasks.json b/samples/gauges/radial-gauge/ranges/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/radial-gauge/ranges/.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/gauges/radial-gauge/ranges/.stackblitzrc b/samples/gauges/radial-gauge/ranges/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/radial-gauge/ranges/.stackblitzrc +++ b/samples/gauges/radial-gauge/ranges/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/ranges/angular.json b/samples/gauges/radial-gauge/ranges/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/radial-gauge/ranges/angular.json +++ b/samples/gauges/radial-gauge/ranges/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/radial-gauge/ranges/package.json b/samples/gauges/radial-gauge/ranges/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/radial-gauge/ranges/package.json +++ b/samples/gauges/radial-gauge/ranges/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/radial-gauge/ranges/sandbox.config.json b/samples/gauges/radial-gauge/ranges/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/radial-gauge/ranges/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/ranges/src/app/app.component.html b/samples/gauges/radial-gauge/ranges/src/app.component.html similarity index 100% rename from samples/gauges/radial-gauge/ranges/src/app/app.component.html rename to samples/gauges/radial-gauge/ranges/src/app.component.html diff --git a/samples/maps/geo-map/display-bing-imagery/src/app/app.component.scss b/samples/gauges/radial-gauge/ranges/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/display-bing-imagery/src/app/app.component.scss rename to samples/gauges/radial-gauge/ranges/src/app.component.scss diff --git a/samples/gauges/radial-gauge/ranges/src/app/app.component.ts b/samples/gauges/radial-gauge/ranges/src/app.component.ts similarity index 100% rename from samples/gauges/radial-gauge/ranges/src/app/app.component.ts rename to samples/gauges/radial-gauge/ranges/src/app.component.ts diff --git a/samples/gauges/radial-gauge/tickmarks/src/app/app.module.ts b/samples/gauges/radial-gauge/ranges/src/app.module.ts similarity index 100% rename from samples/gauges/radial-gauge/tickmarks/src/app/app.module.ts rename to samples/gauges/radial-gauge/ranges/src/app.module.ts diff --git a/samples/gauges/radial-gauge/ranges/src/config/tsconfig-es5.app.json b/samples/gauges/radial-gauge/ranges/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/radial-gauge/ranges/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/radial-gauge/ranges/src/config/tsconfig.app.json b/samples/gauges/radial-gauge/ranges/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/radial-gauge/ranges/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/radial-gauge/ranges/src/config/tsconfig.base.json b/samples/gauges/radial-gauge/ranges/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/radial-gauge/ranges/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/radial-gauge/ranges/src/config/tsconfig.spec.json b/samples/gauges/radial-gauge/ranges/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/radial-gauge/ranges/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/radial-gauge/ranges/src/config/tsconfig.worker.json b/samples/gauges/radial-gauge/ranges/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/radial-gauge/ranges/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/radial-gauge/ranges/src/main.ts b/samples/gauges/radial-gauge/ranges/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/radial-gauge/ranges/src/main.ts +++ b/samples/gauges/radial-gauge/ranges/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/radial-gauge/ranges/tsconfig.app.json b/samples/gauges/radial-gauge/ranges/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/radial-gauge/ranges/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/gauges/radial-gauge/ranges/tsconfig.json b/samples/gauges/radial-gauge/ranges/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/radial-gauge/ranges/tsconfig.json +++ b/samples/gauges/radial-gauge/ranges/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/radial-gauge/scale/.codesandbox/Dockerfile b/samples/gauges/radial-gauge/scale/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/radial-gauge/scale/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/radial-gauge/scale/.codesandbox/tasks.json b/samples/gauges/radial-gauge/scale/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/radial-gauge/scale/.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/gauges/radial-gauge/scale/.stackblitzrc b/samples/gauges/radial-gauge/scale/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/radial-gauge/scale/.stackblitzrc +++ b/samples/gauges/radial-gauge/scale/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/scale/angular.json b/samples/gauges/radial-gauge/scale/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/radial-gauge/scale/angular.json +++ b/samples/gauges/radial-gauge/scale/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/radial-gauge/scale/package.json b/samples/gauges/radial-gauge/scale/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/radial-gauge/scale/package.json +++ b/samples/gauges/radial-gauge/scale/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/radial-gauge/scale/sandbox.config.json b/samples/gauges/radial-gauge/scale/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/radial-gauge/scale/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/scale/src/app/app.component.html b/samples/gauges/radial-gauge/scale/src/app.component.html similarity index 100% rename from samples/gauges/radial-gauge/scale/src/app/app.component.html rename to samples/gauges/radial-gauge/scale/src/app.component.html diff --git a/samples/maps/geo-map/display-esri-imagery/src/app/app.component.scss b/samples/gauges/radial-gauge/scale/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/display-esri-imagery/src/app/app.component.scss rename to samples/gauges/radial-gauge/scale/src/app.component.scss diff --git a/samples/gauges/radial-gauge/scale/src/app/app.component.ts b/samples/gauges/radial-gauge/scale/src/app.component.ts similarity index 100% rename from samples/gauges/radial-gauge/scale/src/app/app.component.ts rename to samples/gauges/radial-gauge/scale/src/app.component.ts diff --git a/samples/gauges/radial-gauge/scale/src/app.module.ts b/samples/gauges/radial-gauge/scale/src/app.module.ts new file mode 100644 index 000000000..475cc318f --- /dev/null +++ b/samples/gauges/radial-gauge/scale/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxRadialGaugeModule } from "igniteui-angular-gauges"; + + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent, + +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxRadialGaugeModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/gauges/radial-gauge/scale/src/config/tsconfig-es5.app.json b/samples/gauges/radial-gauge/scale/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/radial-gauge/scale/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/radial-gauge/scale/src/config/tsconfig.app.json b/samples/gauges/radial-gauge/scale/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/radial-gauge/scale/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/radial-gauge/scale/src/config/tsconfig.base.json b/samples/gauges/radial-gauge/scale/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/radial-gauge/scale/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/radial-gauge/scale/src/config/tsconfig.spec.json b/samples/gauges/radial-gauge/scale/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/radial-gauge/scale/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/radial-gauge/scale/src/config/tsconfig.worker.json b/samples/gauges/radial-gauge/scale/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/radial-gauge/scale/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/radial-gauge/scale/src/main.ts b/samples/gauges/radial-gauge/scale/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/radial-gauge/scale/src/main.ts +++ b/samples/gauges/radial-gauge/scale/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/radial-gauge/scale/tsconfig.app.json b/samples/gauges/radial-gauge/scale/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/radial-gauge/scale/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/gauges/radial-gauge/scale/tsconfig.json b/samples/gauges/radial-gauge/scale/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/radial-gauge/scale/tsconfig.json +++ b/samples/gauges/radial-gauge/scale/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/gauges/radial-gauge/tickmarks/.codesandbox/Dockerfile b/samples/gauges/radial-gauge/tickmarks/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/gauges/radial-gauge/tickmarks/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/gauges/radial-gauge/tickmarks/.codesandbox/tasks.json b/samples/gauges/radial-gauge/tickmarks/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/gauges/radial-gauge/tickmarks/.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/gauges/radial-gauge/tickmarks/.stackblitzrc b/samples/gauges/radial-gauge/tickmarks/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/gauges/radial-gauge/tickmarks/.stackblitzrc +++ b/samples/gauges/radial-gauge/tickmarks/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/tickmarks/angular.json b/samples/gauges/radial-gauge/tickmarks/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/gauges/radial-gauge/tickmarks/angular.json +++ b/samples/gauges/radial-gauge/tickmarks/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/gauges/radial-gauge/tickmarks/package.json b/samples/gauges/radial-gauge/tickmarks/package.json index db1b119c6..1d5da46d8 100644 --- a/samples/gauges/radial-gauge/tickmarks/package.json +++ b/samples/gauges/radial-gauge/tickmarks/package.json @@ -7,38 +7,38 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-gauges": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-gauges": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/gauges/radial-gauge/tickmarks/sandbox.config.json b/samples/gauges/radial-gauge/tickmarks/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/gauges/radial-gauge/tickmarks/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/gauges/radial-gauge/tickmarks/src/app/app.component.html b/samples/gauges/radial-gauge/tickmarks/src/app.component.html similarity index 100% rename from samples/gauges/radial-gauge/tickmarks/src/app/app.component.html rename to samples/gauges/radial-gauge/tickmarks/src/app.component.html diff --git a/samples/maps/geo-map/display-heat-imagery/src/app/app.component.scss b/samples/gauges/radial-gauge/tickmarks/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/display-heat-imagery/src/app/app.component.scss rename to samples/gauges/radial-gauge/tickmarks/src/app.component.scss diff --git a/samples/gauges/radial-gauge/tickmarks/src/app/app.component.ts b/samples/gauges/radial-gauge/tickmarks/src/app.component.ts similarity index 100% rename from samples/gauges/radial-gauge/tickmarks/src/app/app.component.ts rename to samples/gauges/radial-gauge/tickmarks/src/app.component.ts diff --git a/samples/gauges/radial-gauge/tickmarks/src/app.module.ts b/samples/gauges/radial-gauge/tickmarks/src/app.module.ts new file mode 100644 index 000000000..475cc318f --- /dev/null +++ b/samples/gauges/radial-gauge/tickmarks/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxRadialGaugeModule } from "igniteui-angular-gauges"; + + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent, + +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxRadialGaugeModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig-es5.app.json b/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.app.json b/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.base.json b/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.spec.json b/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.worker.json b/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/gauges/radial-gauge/tickmarks/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/gauges/radial-gauge/tickmarks/src/main.ts b/samples/gauges/radial-gauge/tickmarks/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/gauges/radial-gauge/tickmarks/src/main.ts +++ b/samples/gauges/radial-gauge/tickmarks/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/gauges/radial-gauge/tickmarks/tsconfig.app.json b/samples/gauges/radial-gauge/tickmarks/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/gauges/radial-gauge/tickmarks/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/gauges/radial-gauge/tickmarks/tsconfig.json b/samples/gauges/radial-gauge/tickmarks/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/gauges/radial-gauge/tickmarks/tsconfig.json +++ b/samples/gauges/radial-gauge/tickmarks/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/binding-data-csv/.codesandbox/Dockerfile b/samples/maps/geo-map/binding-data-csv/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/binding-data-csv/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/binding-data-csv/.codesandbox/tasks.json b/samples/maps/geo-map/binding-data-csv/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/binding-data-csv/.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/maps/geo-map/binding-data-csv/.stackblitzrc b/samples/maps/geo-map/binding-data-csv/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/binding-data-csv/.stackblitzrc +++ b/samples/maps/geo-map/binding-data-csv/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-data-csv/angular.json b/samples/maps/geo-map/binding-data-csv/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/binding-data-csv/angular.json +++ b/samples/maps/geo-map/binding-data-csv/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/binding-data-csv/package.json b/samples/maps/geo-map/binding-data-csv/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/binding-data-csv/package.json +++ b/samples/maps/geo-map/binding-data-csv/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/binding-data-csv/sandbox.config.json b/samples/maps/geo-map/binding-data-csv/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/binding-data-csv/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-data-csv/src/app/app.component.html b/samples/maps/geo-map/binding-data-csv/src/app.component.html similarity index 100% rename from samples/maps/geo-map/binding-data-csv/src/app/app.component.html rename to samples/maps/geo-map/binding-data-csv/src/app.component.html diff --git a/samples/maps/geo-map/display-osm-imagery/src/app/app.component.scss b/samples/maps/geo-map/binding-data-csv/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/display-osm-imagery/src/app/app.component.scss rename to samples/maps/geo-map/binding-data-csv/src/app.component.scss diff --git a/samples/maps/geo-map/binding-data-csv/src/app/app.component.ts b/samples/maps/geo-map/binding-data-csv/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/binding-data-csv/src/app/app.component.ts rename to samples/maps/geo-map/binding-data-csv/src/app.component.ts diff --git a/samples/maps/geo-map/binding-data-csv/src/app/app.module.ts b/samples/maps/geo-map/binding-data-csv/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/binding-data-csv/src/app/app.module.ts rename to samples/maps/geo-map/binding-data-csv/src/app.module.ts diff --git a/samples/maps/geo-map/binding-data-csv/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/binding-data-csv/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/binding-data-csv/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.app.json b/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.base.json b/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.spec.json b/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.worker.json b/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/binding-data-csv/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/binding-data-csv/src/main.ts b/samples/maps/geo-map/binding-data-csv/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/binding-data-csv/src/main.ts +++ b/samples/maps/geo-map/binding-data-csv/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/binding-data-csv/tsconfig.app.json b/samples/maps/geo-map/binding-data-csv/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/binding-data-csv/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/maps/geo-map/binding-data-csv/tsconfig.json b/samples/maps/geo-map/binding-data-csv/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/binding-data-csv/tsconfig.json +++ b/samples/maps/geo-map/binding-data-csv/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/binding-data-json-points/.codesandbox/Dockerfile b/samples/maps/geo-map/binding-data-json-points/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/binding-data-json-points/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/binding-data-json-points/.codesandbox/tasks.json b/samples/maps/geo-map/binding-data-json-points/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/binding-data-json-points/.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/maps/geo-map/binding-data-json-points/.stackblitzrc b/samples/maps/geo-map/binding-data-json-points/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/binding-data-json-points/.stackblitzrc +++ b/samples/maps/geo-map/binding-data-json-points/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-data-json-points/angular.json b/samples/maps/geo-map/binding-data-json-points/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/binding-data-json-points/angular.json +++ b/samples/maps/geo-map/binding-data-json-points/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/binding-data-json-points/package.json b/samples/maps/geo-map/binding-data-json-points/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/binding-data-json-points/package.json +++ b/samples/maps/geo-map/binding-data-json-points/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/binding-data-json-points/sandbox.config.json b/samples/maps/geo-map/binding-data-json-points/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/binding-data-json-points/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-data-json-points/src/app/app.component.html b/samples/maps/geo-map/binding-data-json-points/src/app.component.html similarity index 100% rename from samples/maps/geo-map/binding-data-json-points/src/app/app.component.html rename to samples/maps/geo-map/binding-data-json-points/src/app.component.html diff --git a/samples/maps/geo-map/marker-layouts/src/app/app.component.scss b/samples/maps/geo-map/binding-data-json-points/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/marker-layouts/src/app/app.component.scss rename to samples/maps/geo-map/binding-data-json-points/src/app.component.scss diff --git a/samples/maps/geo-map/binding-data-json-points/src/app/app.component.ts b/samples/maps/geo-map/binding-data-json-points/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/binding-data-json-points/src/app/app.component.ts rename to samples/maps/geo-map/binding-data-json-points/src/app.component.ts diff --git a/samples/maps/geo-map/binding-data-json-points/src/app/app.module.ts b/samples/maps/geo-map/binding-data-json-points/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/binding-data-json-points/src/app/app.module.ts rename to samples/maps/geo-map/binding-data-json-points/src/app.module.ts diff --git a/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.app.json b/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.base.json b/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.spec.json b/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.worker.json b/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/binding-data-json-points/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/binding-data-json-points/src/main.ts b/samples/maps/geo-map/binding-data-json-points/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/binding-data-json-points/src/main.ts +++ b/samples/maps/geo-map/binding-data-json-points/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/binding-data-json-points/tsconfig.app.json b/samples/maps/geo-map/binding-data-json-points/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/binding-data-json-points/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/maps/geo-map/binding-data-json-points/tsconfig.json b/samples/maps/geo-map/binding-data-json-points/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/binding-data-json-points/tsconfig.json +++ b/samples/maps/geo-map/binding-data-json-points/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/binding-data-model/.codesandbox/Dockerfile b/samples/maps/geo-map/binding-data-model/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/binding-data-model/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/binding-data-model/.codesandbox/tasks.json b/samples/maps/geo-map/binding-data-model/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/binding-data-model/.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/maps/geo-map/binding-data-model/.stackblitzrc b/samples/maps/geo-map/binding-data-model/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/binding-data-model/.stackblitzrc +++ b/samples/maps/geo-map/binding-data-model/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-data-model/angular.json b/samples/maps/geo-map/binding-data-model/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/binding-data-model/angular.json +++ b/samples/maps/geo-map/binding-data-model/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/binding-data-model/package.json b/samples/maps/geo-map/binding-data-model/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/binding-data-model/package.json +++ b/samples/maps/geo-map/binding-data-model/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/binding-data-model/sandbox.config.json b/samples/maps/geo-map/binding-data-model/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/binding-data-model/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-data-model/src/app/WorldUtility.ts b/samples/maps/geo-map/binding-data-model/src/WorldUtility.ts similarity index 100% rename from samples/maps/geo-map/binding-data-model/src/app/WorldUtility.ts rename to samples/maps/geo-map/binding-data-model/src/WorldUtility.ts diff --git a/samples/maps/geo-map/binding-data-model/src/app/app.component.html b/samples/maps/geo-map/binding-data-model/src/app.component.html similarity index 100% rename from samples/maps/geo-map/binding-data-model/src/app/app.component.html rename to samples/maps/geo-map/binding-data-model/src/app.component.html diff --git a/samples/maps/geo-map/marker-template/src/app/app.component.scss b/samples/maps/geo-map/binding-data-model/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/marker-template/src/app/app.component.scss rename to samples/maps/geo-map/binding-data-model/src/app.component.scss diff --git a/samples/maps/geo-map/binding-data-model/src/app/app.component.ts b/samples/maps/geo-map/binding-data-model/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/binding-data-model/src/app/app.component.ts rename to samples/maps/geo-map/binding-data-model/src/app.component.ts diff --git a/samples/maps/geo-map/binding-data-model/src/app/app.module.ts b/samples/maps/geo-map/binding-data-model/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/binding-data-model/src/app/app.module.ts rename to samples/maps/geo-map/binding-data-model/src/app.module.ts diff --git a/samples/maps/geo-map/binding-data-model/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/binding-data-model/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/binding-data-model/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/binding-data-model/src/config/tsconfig.app.json b/samples/maps/geo-map/binding-data-model/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/binding-data-model/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/binding-data-model/src/config/tsconfig.base.json b/samples/maps/geo-map/binding-data-model/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/binding-data-model/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/binding-data-model/src/config/tsconfig.spec.json b/samples/maps/geo-map/binding-data-model/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/binding-data-model/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/binding-data-model/src/config/tsconfig.worker.json b/samples/maps/geo-map/binding-data-model/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/binding-data-model/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/binding-data-model/src/main.ts b/samples/maps/geo-map/binding-data-model/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/binding-data-model/src/main.ts +++ b/samples/maps/geo-map/binding-data-model/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/binding-data-model/tsconfig.app.json b/samples/maps/geo-map/binding-data-model/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/binding-data-model/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/maps/geo-map/binding-data-model/tsconfig.json b/samples/maps/geo-map/binding-data-model/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/binding-data-model/tsconfig.json +++ b/samples/maps/geo-map/binding-data-model/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/binding-multiple-shapes/.codesandbox/Dockerfile b/samples/maps/geo-map/binding-multiple-shapes/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/binding-multiple-shapes/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/binding-multiple-shapes/.codesandbox/tasks.json b/samples/maps/geo-map/binding-multiple-shapes/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/binding-multiple-shapes/.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/maps/geo-map/binding-multiple-shapes/.stackblitzrc b/samples/maps/geo-map/binding-multiple-shapes/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/binding-multiple-shapes/.stackblitzrc +++ b/samples/maps/geo-map/binding-multiple-shapes/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-multiple-shapes/angular.json b/samples/maps/geo-map/binding-multiple-shapes/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/binding-multiple-shapes/angular.json +++ b/samples/maps/geo-map/binding-multiple-shapes/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/binding-multiple-shapes/package.json b/samples/maps/geo-map/binding-multiple-shapes/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/binding-multiple-shapes/package.json +++ b/samples/maps/geo-map/binding-multiple-shapes/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/binding-multiple-shapes/sandbox.config.json b/samples/maps/geo-map/binding-multiple-shapes/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/binding-multiple-shapes/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-multiple-shapes/src/app/app.component.html b/samples/maps/geo-map/binding-multiple-shapes/src/app.component.html similarity index 100% rename from samples/maps/geo-map/binding-multiple-shapes/src/app/app.component.html rename to samples/maps/geo-map/binding-multiple-shapes/src/app.component.html diff --git a/samples/maps/geo-map/marker-type/src/app/app.component.scss b/samples/maps/geo-map/binding-multiple-shapes/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/marker-type/src/app/app.component.scss rename to samples/maps/geo-map/binding-multiple-shapes/src/app.component.scss diff --git a/samples/maps/geo-map/binding-multiple-shapes/src/app/app.component.ts b/samples/maps/geo-map/binding-multiple-shapes/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/binding-multiple-shapes/src/app/app.component.ts rename to samples/maps/geo-map/binding-multiple-shapes/src/app.component.ts diff --git a/samples/maps/geo-map/binding-multiple-shapes/src/app/app.module.ts b/samples/maps/geo-map/binding-multiple-shapes/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/binding-multiple-shapes/src/app/app.module.ts rename to samples/maps/geo-map/binding-multiple-shapes/src/app.module.ts diff --git a/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.app.json b/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.base.json b/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.spec.json b/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.worker.json b/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/binding-multiple-shapes/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/binding-multiple-shapes/src/main.ts b/samples/maps/geo-map/binding-multiple-shapes/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/binding-multiple-shapes/src/main.ts +++ b/samples/maps/geo-map/binding-multiple-shapes/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/binding-multiple-shapes/tsconfig.app.json b/samples/maps/geo-map/binding-multiple-shapes/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/binding-multiple-shapes/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/maps/geo-map/binding-multiple-shapes/tsconfig.json b/samples/maps/geo-map/binding-multiple-shapes/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/binding-multiple-shapes/tsconfig.json +++ b/samples/maps/geo-map/binding-multiple-shapes/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/binding-multiple-sources/.codesandbox/Dockerfile b/samples/maps/geo-map/binding-multiple-sources/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/binding-multiple-sources/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/binding-multiple-sources/.codesandbox/tasks.json b/samples/maps/geo-map/binding-multiple-sources/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/binding-multiple-sources/.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/maps/geo-map/binding-multiple-sources/.stackblitzrc b/samples/maps/geo-map/binding-multiple-sources/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/binding-multiple-sources/.stackblitzrc +++ b/samples/maps/geo-map/binding-multiple-sources/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-multiple-sources/angular.json b/samples/maps/geo-map/binding-multiple-sources/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/binding-multiple-sources/angular.json +++ b/samples/maps/geo-map/binding-multiple-sources/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/binding-multiple-sources/package.json b/samples/maps/geo-map/binding-multiple-sources/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/binding-multiple-sources/package.json +++ b/samples/maps/geo-map/binding-multiple-sources/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/binding-multiple-sources/sandbox.config.json b/samples/maps/geo-map/binding-multiple-sources/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/binding-multiple-sources/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-multiple-sources/src/app/WorldConnections.ts b/samples/maps/geo-map/binding-multiple-sources/src/WorldConnections.ts similarity index 100% rename from samples/maps/geo-map/binding-multiple-sources/src/app/WorldConnections.ts rename to samples/maps/geo-map/binding-multiple-sources/src/WorldConnections.ts diff --git a/samples/maps/geo-map/binding-multiple-sources/src/app/WorldLocations.ts b/samples/maps/geo-map/binding-multiple-sources/src/WorldLocations.ts similarity index 100% rename from samples/maps/geo-map/binding-multiple-sources/src/app/WorldLocations.ts rename to samples/maps/geo-map/binding-multiple-sources/src/WorldLocations.ts diff --git a/samples/maps/geo-map/binding-multiple-sources/src/app/WorldUtility.ts b/samples/maps/geo-map/binding-multiple-sources/src/WorldUtility.ts similarity index 100% rename from samples/maps/geo-map/binding-multiple-sources/src/app/WorldUtility.ts rename to samples/maps/geo-map/binding-multiple-sources/src/WorldUtility.ts diff --git a/samples/maps/geo-map/binding-multiple-sources/src/app/app.component.html b/samples/maps/geo-map/binding-multiple-sources/src/app.component.html similarity index 100% rename from samples/maps/geo-map/binding-multiple-sources/src/app/app.component.html rename to samples/maps/geo-map/binding-multiple-sources/src/app.component.html diff --git a/samples/maps/geo-map/navigation/src/app/app.component.scss b/samples/maps/geo-map/binding-multiple-sources/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/navigation/src/app/app.component.scss rename to samples/maps/geo-map/binding-multiple-sources/src/app.component.scss diff --git a/samples/maps/geo-map/binding-multiple-sources/src/app/app.component.ts b/samples/maps/geo-map/binding-multiple-sources/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/binding-multiple-sources/src/app/app.component.ts rename to samples/maps/geo-map/binding-multiple-sources/src/app.component.ts diff --git a/samples/maps/geo-map/binding-multiple-sources/src/app/app.module.ts b/samples/maps/geo-map/binding-multiple-sources/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/binding-multiple-sources/src/app/app.module.ts rename to samples/maps/geo-map/binding-multiple-sources/src/app.module.ts diff --git a/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.app.json b/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.base.json b/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.spec.json b/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.worker.json b/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/binding-multiple-sources/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/binding-multiple-sources/src/main.ts b/samples/maps/geo-map/binding-multiple-sources/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/binding-multiple-sources/src/main.ts +++ b/samples/maps/geo-map/binding-multiple-sources/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/binding-multiple-sources/tsconfig.app.json b/samples/maps/geo-map/binding-multiple-sources/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/binding-multiple-sources/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/maps/geo-map/binding-multiple-sources/tsconfig.json b/samples/maps/geo-map/binding-multiple-sources/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/binding-multiple-sources/tsconfig.json +++ b/samples/maps/geo-map/binding-multiple-sources/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/binding-shp-points/.codesandbox/Dockerfile b/samples/maps/geo-map/binding-shp-points/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/binding-shp-points/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/binding-shp-points/.codesandbox/tasks.json b/samples/maps/geo-map/binding-shp-points/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/binding-shp-points/.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/maps/geo-map/binding-shp-points/.stackblitzrc b/samples/maps/geo-map/binding-shp-points/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/binding-shp-points/.stackblitzrc +++ b/samples/maps/geo-map/binding-shp-points/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-shp-points/angular.json b/samples/maps/geo-map/binding-shp-points/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/binding-shp-points/angular.json +++ b/samples/maps/geo-map/binding-shp-points/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/binding-shp-points/package.json b/samples/maps/geo-map/binding-shp-points/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/binding-shp-points/package.json +++ b/samples/maps/geo-map/binding-shp-points/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/binding-shp-points/sandbox.config.json b/samples/maps/geo-map/binding-shp-points/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/binding-shp-points/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-shp-points/src/app/app.component.html b/samples/maps/geo-map/binding-shp-points/src/app.component.html similarity index 100% rename from samples/maps/geo-map/binding-shp-points/src/app/app.component.html rename to samples/maps/geo-map/binding-shp-points/src/app.component.html diff --git a/samples/maps/geo-map/overview/src/app/app.component.scss b/samples/maps/geo-map/binding-shp-points/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/overview/src/app/app.component.scss rename to samples/maps/geo-map/binding-shp-points/src/app.component.scss diff --git a/samples/maps/geo-map/binding-shp-points/src/app/app.component.ts b/samples/maps/geo-map/binding-shp-points/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/binding-shp-points/src/app/app.component.ts rename to samples/maps/geo-map/binding-shp-points/src/app.component.ts diff --git a/samples/maps/geo-map/binding-shp-points/src/app/app.module.ts b/samples/maps/geo-map/binding-shp-points/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/binding-shp-points/src/app/app.module.ts rename to samples/maps/geo-map/binding-shp-points/src/app.module.ts diff --git a/samples/maps/geo-map/binding-shp-points/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/binding-shp-points/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/binding-shp-points/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.app.json b/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.base.json b/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.spec.json b/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.worker.json b/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/binding-shp-points/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/binding-shp-points/src/main.ts b/samples/maps/geo-map/binding-shp-points/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/binding-shp-points/src/main.ts +++ b/samples/maps/geo-map/binding-shp-points/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/binding-shp-points/tsconfig.app.json b/samples/maps/geo-map/binding-shp-points/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/binding-shp-points/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/maps/geo-map/binding-shp-points/tsconfig.json b/samples/maps/geo-map/binding-shp-points/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/binding-shp-points/tsconfig.json +++ b/samples/maps/geo-map/binding-shp-points/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/binding-shp-polygons/.codesandbox/Dockerfile b/samples/maps/geo-map/binding-shp-polygons/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/binding-shp-polygons/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/binding-shp-polygons/.codesandbox/tasks.json b/samples/maps/geo-map/binding-shp-polygons/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/binding-shp-polygons/.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/maps/geo-map/binding-shp-polygons/.stackblitzrc b/samples/maps/geo-map/binding-shp-polygons/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/binding-shp-polygons/.stackblitzrc +++ b/samples/maps/geo-map/binding-shp-polygons/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-shp-polygons/angular.json b/samples/maps/geo-map/binding-shp-polygons/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/binding-shp-polygons/angular.json +++ b/samples/maps/geo-map/binding-shp-polygons/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/binding-shp-polygons/package.json b/samples/maps/geo-map/binding-shp-polygons/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/binding-shp-polygons/package.json +++ b/samples/maps/geo-map/binding-shp-polygons/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/binding-shp-polygons/sandbox.config.json b/samples/maps/geo-map/binding-shp-polygons/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/binding-shp-polygons/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-shp-polygons/src/app/app.component.html b/samples/maps/geo-map/binding-shp-polygons/src/app.component.html similarity index 100% rename from samples/maps/geo-map/binding-shp-polygons/src/app/app.component.html rename to samples/maps/geo-map/binding-shp-polygons/src/app.component.html diff --git a/samples/maps/geo-map/shape-styling/src/app/app.component.scss b/samples/maps/geo-map/binding-shp-polygons/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/shape-styling/src/app/app.component.scss rename to samples/maps/geo-map/binding-shp-polygons/src/app.component.scss diff --git a/samples/maps/geo-map/binding-shp-polygons/src/app/app.component.ts b/samples/maps/geo-map/binding-shp-polygons/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/binding-shp-polygons/src/app/app.component.ts rename to samples/maps/geo-map/binding-shp-polygons/src/app.component.ts diff --git a/samples/maps/geo-map/binding-shp-polygons/src/app/app.module.ts b/samples/maps/geo-map/binding-shp-polygons/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/binding-shp-polygons/src/app/app.module.ts rename to samples/maps/geo-map/binding-shp-polygons/src/app.module.ts diff --git a/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.app.json b/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.base.json b/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.spec.json b/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.worker.json b/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/binding-shp-polygons/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/binding-shp-polygons/src/main.ts b/samples/maps/geo-map/binding-shp-polygons/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/binding-shp-polygons/src/main.ts +++ b/samples/maps/geo-map/binding-shp-polygons/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/binding-shp-polygons/tsconfig.app.json b/samples/maps/geo-map/binding-shp-polygons/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/binding-shp-polygons/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/maps/geo-map/binding-shp-polygons/tsconfig.json b/samples/maps/geo-map/binding-shp-polygons/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/binding-shp-polygons/tsconfig.json +++ b/samples/maps/geo-map/binding-shp-polygons/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/binding-shp-polylines/.codesandbox/Dockerfile b/samples/maps/geo-map/binding-shp-polylines/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/binding-shp-polylines/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/binding-shp-polylines/.codesandbox/tasks.json b/samples/maps/geo-map/binding-shp-polylines/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/binding-shp-polylines/.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/maps/geo-map/binding-shp-polylines/.stackblitzrc b/samples/maps/geo-map/binding-shp-polylines/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/binding-shp-polylines/.stackblitzrc +++ b/samples/maps/geo-map/binding-shp-polylines/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-shp-polylines/angular.json b/samples/maps/geo-map/binding-shp-polylines/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/binding-shp-polylines/angular.json +++ b/samples/maps/geo-map/binding-shp-polylines/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/binding-shp-polylines/package.json b/samples/maps/geo-map/binding-shp-polylines/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/binding-shp-polylines/package.json +++ b/samples/maps/geo-map/binding-shp-polylines/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/binding-shp-polylines/sandbox.config.json b/samples/maps/geo-map/binding-shp-polylines/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/binding-shp-polylines/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/binding-shp-polylines/src/app/app.component.html b/samples/maps/geo-map/binding-shp-polylines/src/app.component.html similarity index 100% rename from samples/maps/geo-map/binding-shp-polylines/src/app/app.component.html rename to samples/maps/geo-map/binding-shp-polylines/src/app.component.html diff --git a/samples/maps/geo-map/triangulating-data/src/app/app.component.scss b/samples/maps/geo-map/binding-shp-polylines/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/triangulating-data/src/app/app.component.scss rename to samples/maps/geo-map/binding-shp-polylines/src/app.component.scss diff --git a/samples/maps/geo-map/binding-shp-polylines/src/app/app.component.ts b/samples/maps/geo-map/binding-shp-polylines/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/binding-shp-polylines/src/app/app.component.ts rename to samples/maps/geo-map/binding-shp-polylines/src/app.component.ts diff --git a/samples/maps/geo-map/binding-shp-polylines/src/app/app.module.ts b/samples/maps/geo-map/binding-shp-polylines/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/binding-shp-polylines/src/app/app.module.ts rename to samples/maps/geo-map/binding-shp-polylines/src/app.module.ts diff --git a/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.app.json b/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.base.json b/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.spec.json b/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.worker.json b/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/binding-shp-polylines/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/binding-shp-polylines/src/main.ts b/samples/maps/geo-map/binding-shp-polylines/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/binding-shp-polylines/src/main.ts +++ b/samples/maps/geo-map/binding-shp-polylines/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/binding-shp-polylines/tsconfig.app.json b/samples/maps/geo-map/binding-shp-polylines/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/binding-shp-polylines/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/maps/geo-map/binding-shp-polylines/tsconfig.json b/samples/maps/geo-map/binding-shp-polylines/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/binding-shp-polylines/tsconfig.json +++ b/samples/maps/geo-map/binding-shp-polylines/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/custom-tooltips/.codesandbox/Dockerfile b/samples/maps/geo-map/custom-tooltips/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/custom-tooltips/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/custom-tooltips/.codesandbox/tasks.json b/samples/maps/geo-map/custom-tooltips/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/custom-tooltips/.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/maps/geo-map/custom-tooltips/.stackblitzrc b/samples/maps/geo-map/custom-tooltips/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/custom-tooltips/.stackblitzrc +++ b/samples/maps/geo-map/custom-tooltips/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/custom-tooltips/angular.json b/samples/maps/geo-map/custom-tooltips/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/custom-tooltips/angular.json +++ b/samples/maps/geo-map/custom-tooltips/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/custom-tooltips/package.json b/samples/maps/geo-map/custom-tooltips/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/custom-tooltips/package.json +++ b/samples/maps/geo-map/custom-tooltips/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/custom-tooltips/sandbox.config.json b/samples/maps/geo-map/custom-tooltips/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/custom-tooltips/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/custom-tooltips/src/app/app.component.html b/samples/maps/geo-map/custom-tooltips/src/app.component.html similarity index 100% rename from samples/maps/geo-map/custom-tooltips/src/app/app.component.html rename to samples/maps/geo-map/custom-tooltips/src/app.component.html diff --git a/samples/maps/geo-map/type-scatter-area-series/src/app/app.component.scss b/samples/maps/geo-map/custom-tooltips/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/type-scatter-area-series/src/app/app.component.scss rename to samples/maps/geo-map/custom-tooltips/src/app.component.scss diff --git a/samples/maps/geo-map/custom-tooltips/src/app/app.component.ts b/samples/maps/geo-map/custom-tooltips/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/custom-tooltips/src/app/app.component.ts rename to samples/maps/geo-map/custom-tooltips/src/app.component.ts diff --git a/samples/maps/geo-map/custom-tooltips/src/app/app.module.ts b/samples/maps/geo-map/custom-tooltips/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/custom-tooltips/src/app/app.module.ts rename to samples/maps/geo-map/custom-tooltips/src/app.module.ts diff --git a/samples/maps/geo-map/custom-tooltips/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/custom-tooltips/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/custom-tooltips/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.app.json b/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.base.json b/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.spec.json b/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.worker.json b/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/custom-tooltips/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/custom-tooltips/src/main.ts b/samples/maps/geo-map/custom-tooltips/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/custom-tooltips/src/main.ts +++ b/samples/maps/geo-map/custom-tooltips/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/custom-tooltips/tsconfig.app.json b/samples/maps/geo-map/custom-tooltips/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/custom-tooltips/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/maps/geo-map/custom-tooltips/tsconfig.json b/samples/maps/geo-map/custom-tooltips/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/custom-tooltips/tsconfig.json +++ b/samples/maps/geo-map/custom-tooltips/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/display-bing-imagery/.codesandbox/Dockerfile b/samples/maps/geo-map/display-bing-imagery/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/display-bing-imagery/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/display-bing-imagery/.codesandbox/tasks.json b/samples/maps/geo-map/display-bing-imagery/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/display-bing-imagery/.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/maps/geo-map/display-bing-imagery/.stackblitzrc b/samples/maps/geo-map/display-bing-imagery/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/display-bing-imagery/.stackblitzrc +++ b/samples/maps/geo-map/display-bing-imagery/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/display-bing-imagery/angular.json b/samples/maps/geo-map/display-bing-imagery/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/display-bing-imagery/angular.json +++ b/samples/maps/geo-map/display-bing-imagery/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/display-bing-imagery/package.json b/samples/maps/geo-map/display-bing-imagery/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/display-bing-imagery/package.json +++ b/samples/maps/geo-map/display-bing-imagery/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/display-bing-imagery/sandbox.config.json b/samples/maps/geo-map/display-bing-imagery/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/display-bing-imagery/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/display-bing-imagery/src/app/MapUtility.ts b/samples/maps/geo-map/display-bing-imagery/src/MapUtility.ts similarity index 100% rename from samples/maps/geo-map/display-bing-imagery/src/app/MapUtility.ts rename to samples/maps/geo-map/display-bing-imagery/src/MapUtility.ts diff --git a/samples/maps/geo-map/display-bing-imagery/src/app/app.component.html b/samples/maps/geo-map/display-bing-imagery/src/app.component.html similarity index 100% rename from samples/maps/geo-map/display-bing-imagery/src/app/app.component.html rename to samples/maps/geo-map/display-bing-imagery/src/app.component.html diff --git a/samples/maps/geo-map/type-scatter-bubble-series/src/app/app.component.scss b/samples/maps/geo-map/display-bing-imagery/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/type-scatter-bubble-series/src/app/app.component.scss rename to samples/maps/geo-map/display-bing-imagery/src/app.component.scss diff --git a/samples/maps/geo-map/display-bing-imagery/src/app/app.component.ts b/samples/maps/geo-map/display-bing-imagery/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/display-bing-imagery/src/app/app.component.ts rename to samples/maps/geo-map/display-bing-imagery/src/app.component.ts diff --git a/samples/maps/geo-map/display-bing-imagery/src/app/app.module.ts b/samples/maps/geo-map/display-bing-imagery/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/display-bing-imagery/src/app/app.module.ts rename to samples/maps/geo-map/display-bing-imagery/src/app.module.ts diff --git a/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.app.json b/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.base.json b/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.spec.json b/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.worker.json b/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/display-bing-imagery/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/display-bing-imagery/src/main.ts b/samples/maps/geo-map/display-bing-imagery/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/display-bing-imagery/src/main.ts +++ b/samples/maps/geo-map/display-bing-imagery/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/display-bing-imagery/tsconfig.app.json b/samples/maps/geo-map/display-bing-imagery/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/display-bing-imagery/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/maps/geo-map/display-bing-imagery/tsconfig.json b/samples/maps/geo-map/display-bing-imagery/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/display-bing-imagery/tsconfig.json +++ b/samples/maps/geo-map/display-bing-imagery/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/display-esri-imagery/.codesandbox/Dockerfile b/samples/maps/geo-map/display-esri-imagery/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/display-esri-imagery/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/display-esri-imagery/.codesandbox/tasks.json b/samples/maps/geo-map/display-esri-imagery/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/display-esri-imagery/.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/maps/geo-map/display-esri-imagery/.stackblitzrc b/samples/maps/geo-map/display-esri-imagery/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/display-esri-imagery/.stackblitzrc +++ b/samples/maps/geo-map/display-esri-imagery/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/display-esri-imagery/angular.json b/samples/maps/geo-map/display-esri-imagery/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/display-esri-imagery/angular.json +++ b/samples/maps/geo-map/display-esri-imagery/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/display-esri-imagery/package.json b/samples/maps/geo-map/display-esri-imagery/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/display-esri-imagery/package.json +++ b/samples/maps/geo-map/display-esri-imagery/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/display-esri-imagery/sandbox.config.json b/samples/maps/geo-map/display-esri-imagery/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/display-esri-imagery/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/display-esri-imagery/src/app/EsriUtility.ts b/samples/maps/geo-map/display-esri-imagery/src/EsriUtility.ts similarity index 100% rename from samples/maps/geo-map/display-esri-imagery/src/app/EsriUtility.ts rename to samples/maps/geo-map/display-esri-imagery/src/EsriUtility.ts diff --git a/samples/maps/geo-map/display-esri-imagery/src/app/app.component.html b/samples/maps/geo-map/display-esri-imagery/src/app.component.html similarity index 100% rename from samples/maps/geo-map/display-esri-imagery/src/app/app.component.html rename to samples/maps/geo-map/display-esri-imagery/src/app.component.html diff --git a/samples/maps/geo-map/type-scatter-contour-series/src/app/app.component.scss b/samples/maps/geo-map/display-esri-imagery/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/type-scatter-contour-series/src/app/app.component.scss rename to samples/maps/geo-map/display-esri-imagery/src/app.component.scss diff --git a/samples/maps/geo-map/display-esri-imagery/src/app/app.component.ts b/samples/maps/geo-map/display-esri-imagery/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/display-esri-imagery/src/app/app.component.ts rename to samples/maps/geo-map/display-esri-imagery/src/app.component.ts diff --git a/samples/maps/geo-map/display-esri-imagery/src/app/app.module.ts b/samples/maps/geo-map/display-esri-imagery/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/display-esri-imagery/src/app/app.module.ts rename to samples/maps/geo-map/display-esri-imagery/src/app.module.ts diff --git a/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.app.json b/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.base.json b/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.spec.json b/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.worker.json b/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/display-esri-imagery/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/display-esri-imagery/src/main.ts b/samples/maps/geo-map/display-esri-imagery/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/display-esri-imagery/src/main.ts +++ b/samples/maps/geo-map/display-esri-imagery/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/display-esri-imagery/tsconfig.app.json b/samples/maps/geo-map/display-esri-imagery/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/display-esri-imagery/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/maps/geo-map/display-esri-imagery/tsconfig.json b/samples/maps/geo-map/display-esri-imagery/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/display-esri-imagery/tsconfig.json +++ b/samples/maps/geo-map/display-esri-imagery/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/display-heat-imagery/.codesandbox/Dockerfile b/samples/maps/geo-map/display-heat-imagery/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/display-heat-imagery/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/display-heat-imagery/.codesandbox/tasks.json b/samples/maps/geo-map/display-heat-imagery/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/display-heat-imagery/.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/maps/geo-map/display-heat-imagery/.stackblitzrc b/samples/maps/geo-map/display-heat-imagery/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/display-heat-imagery/.stackblitzrc +++ b/samples/maps/geo-map/display-heat-imagery/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/display-heat-imagery/angular.json b/samples/maps/geo-map/display-heat-imagery/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/display-heat-imagery/angular.json +++ b/samples/maps/geo-map/display-heat-imagery/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/display-heat-imagery/package.json b/samples/maps/geo-map/display-heat-imagery/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/display-heat-imagery/package.json +++ b/samples/maps/geo-map/display-heat-imagery/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/display-heat-imagery/sandbox.config.json b/samples/maps/geo-map/display-heat-imagery/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/display-heat-imagery/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/display-heat-imagery/src/app/HeatmapWorker.ts b/samples/maps/geo-map/display-heat-imagery/src/HeatmapWorker.ts similarity index 100% rename from samples/maps/geo-map/display-heat-imagery/src/app/HeatmapWorker.ts rename to samples/maps/geo-map/display-heat-imagery/src/HeatmapWorker.ts diff --git a/samples/maps/geo-map/display-heat-imagery/src/app/app.component.html b/samples/maps/geo-map/display-heat-imagery/src/app.component.html similarity index 100% rename from samples/maps/geo-map/display-heat-imagery/src/app/app.component.html rename to samples/maps/geo-map/display-heat-imagery/src/app.component.html diff --git a/samples/maps/geo-map/type-scatter-density-series/src/app/app.component.scss b/samples/maps/geo-map/display-heat-imagery/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/type-scatter-density-series/src/app/app.component.scss rename to samples/maps/geo-map/display-heat-imagery/src/app.component.scss diff --git a/samples/maps/geo-map/display-heat-imagery/src/app/app.component.ts b/samples/maps/geo-map/display-heat-imagery/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/display-heat-imagery/src/app/app.component.ts rename to samples/maps/geo-map/display-heat-imagery/src/app.component.ts diff --git a/samples/maps/geo-map/display-heat-imagery/src/app/app.module.ts b/samples/maps/geo-map/display-heat-imagery/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/display-heat-imagery/src/app/app.module.ts rename to samples/maps/geo-map/display-heat-imagery/src/app.module.ts diff --git a/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.app.json b/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.base.json b/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.spec.json b/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.worker.json b/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/display-heat-imagery/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/display-heat-imagery/src/main.ts b/samples/maps/geo-map/display-heat-imagery/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/display-heat-imagery/src/main.ts +++ b/samples/maps/geo-map/display-heat-imagery/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/display-heat-imagery/tsconfig.app.json b/samples/maps/geo-map/display-heat-imagery/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/display-heat-imagery/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/maps/geo-map/display-heat-imagery/tsconfig.json b/samples/maps/geo-map/display-heat-imagery/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/display-heat-imagery/tsconfig.json +++ b/samples/maps/geo-map/display-heat-imagery/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/display-osm-imagery/.codesandbox/Dockerfile b/samples/maps/geo-map/display-osm-imagery/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/display-osm-imagery/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/display-osm-imagery/.codesandbox/tasks.json b/samples/maps/geo-map/display-osm-imagery/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/display-osm-imagery/.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/maps/geo-map/display-osm-imagery/.stackblitzrc b/samples/maps/geo-map/display-osm-imagery/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/display-osm-imagery/.stackblitzrc +++ b/samples/maps/geo-map/display-osm-imagery/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/display-osm-imagery/angular.json b/samples/maps/geo-map/display-osm-imagery/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/display-osm-imagery/angular.json +++ b/samples/maps/geo-map/display-osm-imagery/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/display-osm-imagery/package.json b/samples/maps/geo-map/display-osm-imagery/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/display-osm-imagery/package.json +++ b/samples/maps/geo-map/display-osm-imagery/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/display-osm-imagery/sandbox.config.json b/samples/maps/geo-map/display-osm-imagery/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/display-osm-imagery/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/display-osm-imagery/src/app/app.component.html b/samples/maps/geo-map/display-osm-imagery/src/app.component.html similarity index 100% rename from samples/maps/geo-map/display-osm-imagery/src/app/app.component.html rename to samples/maps/geo-map/display-osm-imagery/src/app.component.html diff --git a/samples/maps/geo-map/type-scatter-symbol-series/src/app/app.component.scss b/samples/maps/geo-map/display-osm-imagery/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/type-scatter-symbol-series/src/app/app.component.scss rename to samples/maps/geo-map/display-osm-imagery/src/app.component.scss diff --git a/samples/maps/geo-map/display-osm-imagery/src/app/app.component.ts b/samples/maps/geo-map/display-osm-imagery/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/display-osm-imagery/src/app/app.component.ts rename to samples/maps/geo-map/display-osm-imagery/src/app.component.ts diff --git a/samples/maps/geo-map/display-osm-imagery/src/app/app.module.ts b/samples/maps/geo-map/display-osm-imagery/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/display-osm-imagery/src/app/app.module.ts rename to samples/maps/geo-map/display-osm-imagery/src/app.module.ts diff --git a/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.app.json b/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.base.json b/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.spec.json b/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.worker.json b/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/display-osm-imagery/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/display-osm-imagery/src/main.ts b/samples/maps/geo-map/display-osm-imagery/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/display-osm-imagery/src/main.ts +++ b/samples/maps/geo-map/display-osm-imagery/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/display-osm-imagery/tsconfig.app.json b/samples/maps/geo-map/display-osm-imagery/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/display-osm-imagery/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/maps/geo-map/display-osm-imagery/tsconfig.json b/samples/maps/geo-map/display-osm-imagery/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/display-osm-imagery/tsconfig.json +++ b/samples/maps/geo-map/display-osm-imagery/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/marker-layouts/.codesandbox/Dockerfile b/samples/maps/geo-map/marker-layouts/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/marker-layouts/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/marker-layouts/.codesandbox/tasks.json b/samples/maps/geo-map/marker-layouts/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/marker-layouts/.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/maps/geo-map/marker-layouts/.stackblitzrc b/samples/maps/geo-map/marker-layouts/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/marker-layouts/.stackblitzrc +++ b/samples/maps/geo-map/marker-layouts/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/marker-layouts/angular.json b/samples/maps/geo-map/marker-layouts/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/marker-layouts/angular.json +++ b/samples/maps/geo-map/marker-layouts/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/marker-layouts/package.json b/samples/maps/geo-map/marker-layouts/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/marker-layouts/package.json +++ b/samples/maps/geo-map/marker-layouts/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/marker-layouts/sandbox.config.json b/samples/maps/geo-map/marker-layouts/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/marker-layouts/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/marker-layouts/src/app/WorldLocations.ts b/samples/maps/geo-map/marker-layouts/src/WorldLocations.ts similarity index 100% rename from samples/maps/geo-map/marker-layouts/src/app/WorldLocations.ts rename to samples/maps/geo-map/marker-layouts/src/WorldLocations.ts diff --git a/samples/maps/geo-map/marker-layouts/src/app/app.component.html b/samples/maps/geo-map/marker-layouts/src/app.component.html similarity index 100% rename from samples/maps/geo-map/marker-layouts/src/app/app.component.html rename to samples/maps/geo-map/marker-layouts/src/app.component.html diff --git a/samples/maps/geo-map/type-shape-polygon-series/src/app/app.component.scss b/samples/maps/geo-map/marker-layouts/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/type-shape-polygon-series/src/app/app.component.scss rename to samples/maps/geo-map/marker-layouts/src/app.component.scss diff --git a/samples/maps/geo-map/marker-layouts/src/app/app.component.ts b/samples/maps/geo-map/marker-layouts/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/marker-layouts/src/app/app.component.ts rename to samples/maps/geo-map/marker-layouts/src/app.component.ts diff --git a/samples/maps/geo-map/marker-layouts/src/app/app.module.ts b/samples/maps/geo-map/marker-layouts/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/marker-layouts/src/app/app.module.ts rename to samples/maps/geo-map/marker-layouts/src/app.module.ts diff --git a/samples/maps/geo-map/marker-layouts/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/marker-layouts/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/marker-layouts/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/marker-layouts/src/config/tsconfig.app.json b/samples/maps/geo-map/marker-layouts/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/marker-layouts/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/marker-layouts/src/config/tsconfig.base.json b/samples/maps/geo-map/marker-layouts/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/marker-layouts/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/marker-layouts/src/config/tsconfig.spec.json b/samples/maps/geo-map/marker-layouts/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/marker-layouts/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/marker-layouts/src/config/tsconfig.worker.json b/samples/maps/geo-map/marker-layouts/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/marker-layouts/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/marker-layouts/src/main.ts b/samples/maps/geo-map/marker-layouts/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/marker-layouts/src/main.ts +++ b/samples/maps/geo-map/marker-layouts/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/marker-layouts/tsconfig.app.json b/samples/maps/geo-map/marker-layouts/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/marker-layouts/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/maps/geo-map/marker-layouts/tsconfig.json b/samples/maps/geo-map/marker-layouts/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/marker-layouts/tsconfig.json +++ b/samples/maps/geo-map/marker-layouts/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/marker-template/.codesandbox/Dockerfile b/samples/maps/geo-map/marker-template/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/marker-template/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/marker-template/.codesandbox/tasks.json b/samples/maps/geo-map/marker-template/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/marker-template/.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/maps/geo-map/marker-template/.stackblitzrc b/samples/maps/geo-map/marker-template/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/marker-template/.stackblitzrc +++ b/samples/maps/geo-map/marker-template/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/marker-template/angular.json b/samples/maps/geo-map/marker-template/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/marker-template/angular.json +++ b/samples/maps/geo-map/marker-template/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/marker-template/package.json b/samples/maps/geo-map/marker-template/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/marker-template/package.json +++ b/samples/maps/geo-map/marker-template/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/marker-template/sandbox.config.json b/samples/maps/geo-map/marker-template/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/marker-template/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/marker-template/src/app/WorldLocations.ts b/samples/maps/geo-map/marker-template/src/WorldLocations.ts similarity index 100% rename from samples/maps/geo-map/marker-template/src/app/WorldLocations.ts rename to samples/maps/geo-map/marker-template/src/WorldLocations.ts diff --git a/samples/maps/geo-map/marker-template/src/app/app.component.html b/samples/maps/geo-map/marker-template/src/app.component.html similarity index 100% rename from samples/maps/geo-map/marker-template/src/app/app.component.html rename to samples/maps/geo-map/marker-template/src/app.component.html diff --git a/samples/maps/geo-map/type-shape-polyline-series/src/app/app.component.scss b/samples/maps/geo-map/marker-template/src/app.component.scss similarity index 100% rename from samples/maps/geo-map/type-shape-polyline-series/src/app/app.component.scss rename to samples/maps/geo-map/marker-template/src/app.component.scss diff --git a/samples/maps/geo-map/marker-template/src/app/app.component.ts b/samples/maps/geo-map/marker-template/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/marker-template/src/app/app.component.ts rename to samples/maps/geo-map/marker-template/src/app.component.ts diff --git a/samples/maps/geo-map/marker-template/src/app/app.module.ts b/samples/maps/geo-map/marker-template/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/marker-template/src/app/app.module.ts rename to samples/maps/geo-map/marker-template/src/app.module.ts diff --git a/samples/maps/geo-map/marker-template/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/marker-template/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/marker-template/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/marker-template/src/config/tsconfig.app.json b/samples/maps/geo-map/marker-template/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/marker-template/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/marker-template/src/config/tsconfig.base.json b/samples/maps/geo-map/marker-template/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/marker-template/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/marker-template/src/config/tsconfig.spec.json b/samples/maps/geo-map/marker-template/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/marker-template/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/marker-template/src/config/tsconfig.worker.json b/samples/maps/geo-map/marker-template/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/marker-template/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/marker-template/src/main.ts b/samples/maps/geo-map/marker-template/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/marker-template/src/main.ts +++ b/samples/maps/geo-map/marker-template/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/marker-template/tsconfig.app.json b/samples/maps/geo-map/marker-template/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/marker-template/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/maps/geo-map/marker-template/tsconfig.json b/samples/maps/geo-map/marker-template/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/marker-template/tsconfig.json +++ b/samples/maps/geo-map/marker-template/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/marker-type/.codesandbox/Dockerfile b/samples/maps/geo-map/marker-type/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/marker-type/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/marker-type/.codesandbox/tasks.json b/samples/maps/geo-map/marker-type/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/marker-type/.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/maps/geo-map/marker-type/.stackblitzrc b/samples/maps/geo-map/marker-type/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/marker-type/.stackblitzrc +++ b/samples/maps/geo-map/marker-type/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/marker-type/angular.json b/samples/maps/geo-map/marker-type/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/marker-type/angular.json +++ b/samples/maps/geo-map/marker-type/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/marker-type/package.json b/samples/maps/geo-map/marker-type/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/marker-type/package.json +++ b/samples/maps/geo-map/marker-type/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/marker-type/sandbox.config.json b/samples/maps/geo-map/marker-type/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/marker-type/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/marker-type/src/app/WorldLocations.ts b/samples/maps/geo-map/marker-type/src/WorldLocations.ts similarity index 100% rename from samples/maps/geo-map/marker-type/src/app/WorldLocations.ts rename to samples/maps/geo-map/marker-type/src/WorldLocations.ts diff --git a/samples/maps/geo-map/marker-type/src/app/app.component.html b/samples/maps/geo-map/marker-type/src/app.component.html similarity index 100% rename from samples/maps/geo-map/marker-type/src/app/app.component.html rename to samples/maps/geo-map/marker-type/src/app.component.html diff --git a/samples/maps/geo-map/marker-type/src/app.component.scss b/samples/maps/geo-map/marker-type/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/marker-type/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/maps/geo-map/marker-type/src/app/app.component.ts b/samples/maps/geo-map/marker-type/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/marker-type/src/app/app.component.ts rename to samples/maps/geo-map/marker-type/src/app.component.ts diff --git a/samples/maps/geo-map/marker-type/src/app/app.module.ts b/samples/maps/geo-map/marker-type/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/marker-type/src/app/app.module.ts rename to samples/maps/geo-map/marker-type/src/app.module.ts diff --git a/samples/maps/geo-map/marker-type/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/marker-type/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/marker-type/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/marker-type/src/config/tsconfig.app.json b/samples/maps/geo-map/marker-type/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/marker-type/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/marker-type/src/config/tsconfig.base.json b/samples/maps/geo-map/marker-type/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/marker-type/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/marker-type/src/config/tsconfig.spec.json b/samples/maps/geo-map/marker-type/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/marker-type/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/marker-type/src/config/tsconfig.worker.json b/samples/maps/geo-map/marker-type/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/marker-type/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/marker-type/src/main.ts b/samples/maps/geo-map/marker-type/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/marker-type/src/main.ts +++ b/samples/maps/geo-map/marker-type/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/marker-type/tsconfig.app.json b/samples/maps/geo-map/marker-type/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/marker-type/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/maps/geo-map/marker-type/tsconfig.json b/samples/maps/geo-map/marker-type/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/marker-type/tsconfig.json +++ b/samples/maps/geo-map/marker-type/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/navigation/.codesandbox/Dockerfile b/samples/maps/geo-map/navigation/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/navigation/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/navigation/.codesandbox/tasks.json b/samples/maps/geo-map/navigation/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/navigation/.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/maps/geo-map/navigation/.stackblitzrc b/samples/maps/geo-map/navigation/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/navigation/.stackblitzrc +++ b/samples/maps/geo-map/navigation/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/navigation/angular.json b/samples/maps/geo-map/navigation/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/navigation/angular.json +++ b/samples/maps/geo-map/navigation/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/navigation/package.json b/samples/maps/geo-map/navigation/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/navigation/package.json +++ b/samples/maps/geo-map/navigation/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/navigation/sandbox.config.json b/samples/maps/geo-map/navigation/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/navigation/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/navigation/src/app/EsriUtility.ts b/samples/maps/geo-map/navigation/src/EsriUtility.ts similarity index 100% rename from samples/maps/geo-map/navigation/src/app/EsriUtility.ts rename to samples/maps/geo-map/navigation/src/EsriUtility.ts diff --git a/samples/maps/geo-map/navigation/src/app/MapUtility.ts b/samples/maps/geo-map/navigation/src/MapUtility.ts similarity index 100% rename from samples/maps/geo-map/navigation/src/app/MapUtility.ts rename to samples/maps/geo-map/navigation/src/MapUtility.ts diff --git a/samples/maps/geo-map/navigation/src/app/WorldUtility.ts b/samples/maps/geo-map/navigation/src/WorldUtility.ts similarity index 100% rename from samples/maps/geo-map/navigation/src/app/WorldUtility.ts rename to samples/maps/geo-map/navigation/src/WorldUtility.ts diff --git a/samples/maps/geo-map/navigation/src/app/app.component.html b/samples/maps/geo-map/navigation/src/app.component.html similarity index 100% rename from samples/maps/geo-map/navigation/src/app/app.component.html rename to samples/maps/geo-map/navigation/src/app.component.html diff --git a/samples/maps/geo-map/navigation/src/app.component.scss b/samples/maps/geo-map/navigation/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/navigation/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/maps/geo-map/navigation/src/app/app.component.ts b/samples/maps/geo-map/navigation/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/navigation/src/app/app.component.ts rename to samples/maps/geo-map/navigation/src/app.component.ts diff --git a/samples/maps/geo-map/navigation/src/app/app.module.ts b/samples/maps/geo-map/navigation/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/navigation/src/app/app.module.ts rename to samples/maps/geo-map/navigation/src/app.module.ts diff --git a/samples/maps/geo-map/navigation/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/navigation/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/navigation/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/navigation/src/config/tsconfig.app.json b/samples/maps/geo-map/navigation/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/navigation/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/navigation/src/config/tsconfig.base.json b/samples/maps/geo-map/navigation/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/navigation/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/navigation/src/config/tsconfig.spec.json b/samples/maps/geo-map/navigation/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/navigation/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/navigation/src/config/tsconfig.worker.json b/samples/maps/geo-map/navigation/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/navigation/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/navigation/src/main.ts b/samples/maps/geo-map/navigation/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/navigation/src/main.ts +++ b/samples/maps/geo-map/navigation/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/navigation/tsconfig.app.json b/samples/maps/geo-map/navigation/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/navigation/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/maps/geo-map/navigation/tsconfig.json b/samples/maps/geo-map/navigation/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/navigation/tsconfig.json +++ b/samples/maps/geo-map/navigation/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/overview/.codesandbox/Dockerfile b/samples/maps/geo-map/overview/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/overview/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/overview/.codesandbox/tasks.json b/samples/maps/geo-map/overview/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/overview/.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/maps/geo-map/overview/.stackblitzrc b/samples/maps/geo-map/overview/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/overview/.stackblitzrc +++ b/samples/maps/geo-map/overview/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/overview/angular.json b/samples/maps/geo-map/overview/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/overview/angular.json +++ b/samples/maps/geo-map/overview/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/overview/package.json b/samples/maps/geo-map/overview/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/overview/package.json +++ b/samples/maps/geo-map/overview/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/overview/sandbox.config.json b/samples/maps/geo-map/overview/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/overview/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/overview/src/app/app.component.html b/samples/maps/geo-map/overview/src/app.component.html similarity index 100% rename from samples/maps/geo-map/overview/src/app/app.component.html rename to samples/maps/geo-map/overview/src/app.component.html diff --git a/samples/maps/geo-map/overview/src/app.component.scss b/samples/maps/geo-map/overview/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/overview/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/maps/geo-map/overview/src/app/app.component.ts b/samples/maps/geo-map/overview/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/overview/src/app/app.component.ts rename to samples/maps/geo-map/overview/src/app.component.ts diff --git a/samples/maps/geo-map/overview/src/app/app.module.ts b/samples/maps/geo-map/overview/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/overview/src/app/app.module.ts rename to samples/maps/geo-map/overview/src/app.module.ts diff --git a/samples/maps/geo-map/overview/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/overview/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/overview/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/overview/src/config/tsconfig.app.json b/samples/maps/geo-map/overview/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/overview/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/overview/src/config/tsconfig.base.json b/samples/maps/geo-map/overview/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/overview/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/overview/src/config/tsconfig.spec.json b/samples/maps/geo-map/overview/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/overview/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/overview/src/config/tsconfig.worker.json b/samples/maps/geo-map/overview/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/overview/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/overview/src/main.ts b/samples/maps/geo-map/overview/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/overview/src/main.ts +++ b/samples/maps/geo-map/overview/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/overview/tsconfig.app.json b/samples/maps/geo-map/overview/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/overview/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/maps/geo-map/overview/tsconfig.json b/samples/maps/geo-map/overview/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/overview/tsconfig.json +++ b/samples/maps/geo-map/overview/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/shape-styling/.codesandbox/Dockerfile b/samples/maps/geo-map/shape-styling/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/shape-styling/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/shape-styling/.codesandbox/tasks.json b/samples/maps/geo-map/shape-styling/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/shape-styling/.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/maps/geo-map/shape-styling/.stackblitzrc b/samples/maps/geo-map/shape-styling/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/shape-styling/.stackblitzrc +++ b/samples/maps/geo-map/shape-styling/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/shape-styling/angular.json b/samples/maps/geo-map/shape-styling/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/shape-styling/angular.json +++ b/samples/maps/geo-map/shape-styling/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/shape-styling/package.json b/samples/maps/geo-map/shape-styling/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/shape-styling/package.json +++ b/samples/maps/geo-map/shape-styling/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/shape-styling/sandbox.config.json b/samples/maps/geo-map/shape-styling/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/shape-styling/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/shape-styling/src/app/app.component.html b/samples/maps/geo-map/shape-styling/src/app.component.html similarity index 100% rename from samples/maps/geo-map/shape-styling/src/app/app.component.html rename to samples/maps/geo-map/shape-styling/src/app.component.html diff --git a/samples/maps/geo-map/shape-styling/src/app.component.scss b/samples/maps/geo-map/shape-styling/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/shape-styling/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/maps/geo-map/shape-styling/src/app/app.component.ts b/samples/maps/geo-map/shape-styling/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/shape-styling/src/app/app.component.ts rename to samples/maps/geo-map/shape-styling/src/app.component.ts diff --git a/samples/maps/geo-map/shape-styling/src/app/app.module.ts b/samples/maps/geo-map/shape-styling/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/shape-styling/src/app/app.module.ts rename to samples/maps/geo-map/shape-styling/src/app.module.ts diff --git a/samples/maps/geo-map/shape-styling/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/shape-styling/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/shape-styling/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/shape-styling/src/config/tsconfig.app.json b/samples/maps/geo-map/shape-styling/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/shape-styling/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/shape-styling/src/config/tsconfig.base.json b/samples/maps/geo-map/shape-styling/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/shape-styling/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/shape-styling/src/config/tsconfig.spec.json b/samples/maps/geo-map/shape-styling/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/shape-styling/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/shape-styling/src/config/tsconfig.worker.json b/samples/maps/geo-map/shape-styling/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/shape-styling/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/shape-styling/src/main.ts b/samples/maps/geo-map/shape-styling/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/shape-styling/src/main.ts +++ b/samples/maps/geo-map/shape-styling/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/shape-styling/tsconfig.app.json b/samples/maps/geo-map/shape-styling/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/shape-styling/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/maps/geo-map/shape-styling/tsconfig.json b/samples/maps/geo-map/shape-styling/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/shape-styling/tsconfig.json +++ b/samples/maps/geo-map/shape-styling/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/triangulating-data/.codesandbox/Dockerfile b/samples/maps/geo-map/triangulating-data/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/triangulating-data/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/triangulating-data/.codesandbox/tasks.json b/samples/maps/geo-map/triangulating-data/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/triangulating-data/.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/maps/geo-map/triangulating-data/.stackblitzrc b/samples/maps/geo-map/triangulating-data/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/triangulating-data/.stackblitzrc +++ b/samples/maps/geo-map/triangulating-data/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/triangulating-data/angular.json b/samples/maps/geo-map/triangulating-data/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/triangulating-data/angular.json +++ b/samples/maps/geo-map/triangulating-data/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/triangulating-data/package.json b/samples/maps/geo-map/triangulating-data/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/triangulating-data/package.json +++ b/samples/maps/geo-map/triangulating-data/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/triangulating-data/sandbox.config.json b/samples/maps/geo-map/triangulating-data/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/triangulating-data/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/triangulating-data/src/app/app.component.html b/samples/maps/geo-map/triangulating-data/src/app.component.html similarity index 100% rename from samples/maps/geo-map/triangulating-data/src/app/app.component.html rename to samples/maps/geo-map/triangulating-data/src/app.component.html diff --git a/samples/maps/geo-map/triangulating-data/src/app.component.scss b/samples/maps/geo-map/triangulating-data/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/triangulating-data/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/maps/geo-map/triangulating-data/src/app/app.component.ts b/samples/maps/geo-map/triangulating-data/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/triangulating-data/src/app/app.component.ts rename to samples/maps/geo-map/triangulating-data/src/app.component.ts diff --git a/samples/maps/geo-map/triangulating-data/src/app/app.module.ts b/samples/maps/geo-map/triangulating-data/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/triangulating-data/src/app/app.module.ts rename to samples/maps/geo-map/triangulating-data/src/app.module.ts diff --git a/samples/maps/geo-map/triangulating-data/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/triangulating-data/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/triangulating-data/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/triangulating-data/src/config/tsconfig.app.json b/samples/maps/geo-map/triangulating-data/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/triangulating-data/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/triangulating-data/src/config/tsconfig.base.json b/samples/maps/geo-map/triangulating-data/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/triangulating-data/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/triangulating-data/src/config/tsconfig.spec.json b/samples/maps/geo-map/triangulating-data/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/triangulating-data/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/triangulating-data/src/config/tsconfig.worker.json b/samples/maps/geo-map/triangulating-data/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/triangulating-data/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/triangulating-data/src/main.ts b/samples/maps/geo-map/triangulating-data/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/triangulating-data/src/main.ts +++ b/samples/maps/geo-map/triangulating-data/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/triangulating-data/tsconfig.app.json b/samples/maps/geo-map/triangulating-data/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/triangulating-data/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/maps/geo-map/triangulating-data/tsconfig.json b/samples/maps/geo-map/triangulating-data/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/triangulating-data/tsconfig.json +++ b/samples/maps/geo-map/triangulating-data/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/type-scatter-area-series/.codesandbox/Dockerfile b/samples/maps/geo-map/type-scatter-area-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/type-scatter-area-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-area-series/.codesandbox/tasks.json b/samples/maps/geo-map/type-scatter-area-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/type-scatter-area-series/.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/maps/geo-map/type-scatter-area-series/.stackblitzrc b/samples/maps/geo-map/type-scatter-area-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/type-scatter-area-series/.stackblitzrc +++ b/samples/maps/geo-map/type-scatter-area-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-area-series/angular.json b/samples/maps/geo-map/type-scatter-area-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/type-scatter-area-series/angular.json +++ b/samples/maps/geo-map/type-scatter-area-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/type-scatter-area-series/package.json b/samples/maps/geo-map/type-scatter-area-series/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/type-scatter-area-series/package.json +++ b/samples/maps/geo-map/type-scatter-area-series/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/type-scatter-area-series/sandbox.config.json b/samples/maps/geo-map/type-scatter-area-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/type-scatter-area-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-area-series/src/app/app.component.html b/samples/maps/geo-map/type-scatter-area-series/src/app.component.html similarity index 100% rename from samples/maps/geo-map/type-scatter-area-series/src/app/app.component.html rename to samples/maps/geo-map/type-scatter-area-series/src/app.component.html diff --git a/samples/maps/geo-map/type-scatter-area-series/src/app.component.scss b/samples/maps/geo-map/type-scatter-area-series/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/type-scatter-area-series/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/maps/geo-map/type-scatter-area-series/src/app/app.component.ts b/samples/maps/geo-map/type-scatter-area-series/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-area-series/src/app/app.component.ts rename to samples/maps/geo-map/type-scatter-area-series/src/app.component.ts diff --git a/samples/maps/geo-map/type-scatter-area-series/src/app/app.module.ts b/samples/maps/geo-map/type-scatter-area-series/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-area-series/src/app/app.module.ts rename to samples/maps/geo-map/type-scatter-area-series/src/app.module.ts diff --git a/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.app.json b/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.base.json b/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.spec.json b/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.worker.json b/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/type-scatter-area-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-area-series/src/main.ts b/samples/maps/geo-map/type-scatter-area-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/type-scatter-area-series/src/main.ts +++ b/samples/maps/geo-map/type-scatter-area-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/type-scatter-area-series/tsconfig.app.json b/samples/maps/geo-map/type-scatter-area-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/type-scatter-area-series/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/maps/geo-map/type-scatter-area-series/tsconfig.json b/samples/maps/geo-map/type-scatter-area-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/type-scatter-area-series/tsconfig.json +++ b/samples/maps/geo-map/type-scatter-area-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/type-scatter-bubble-series/.codesandbox/Dockerfile b/samples/maps/geo-map/type-scatter-bubble-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/type-scatter-bubble-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-bubble-series/.codesandbox/tasks.json b/samples/maps/geo-map/type-scatter-bubble-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/type-scatter-bubble-series/.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/maps/geo-map/type-scatter-bubble-series/.stackblitzrc b/samples/maps/geo-map/type-scatter-bubble-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/type-scatter-bubble-series/.stackblitzrc +++ b/samples/maps/geo-map/type-scatter-bubble-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-bubble-series/angular.json b/samples/maps/geo-map/type-scatter-bubble-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/type-scatter-bubble-series/angular.json +++ b/samples/maps/geo-map/type-scatter-bubble-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/type-scatter-bubble-series/package.json b/samples/maps/geo-map/type-scatter-bubble-series/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/type-scatter-bubble-series/package.json +++ b/samples/maps/geo-map/type-scatter-bubble-series/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/type-scatter-bubble-series/sandbox.config.json b/samples/maps/geo-map/type-scatter-bubble-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/type-scatter-bubble-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-bubble-series/src/app/WorldLocations.ts b/samples/maps/geo-map/type-scatter-bubble-series/src/WorldLocations.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-bubble-series/src/app/WorldLocations.ts rename to samples/maps/geo-map/type-scatter-bubble-series/src/WorldLocations.ts diff --git a/samples/maps/geo-map/type-scatter-bubble-series/src/app/app.component.html b/samples/maps/geo-map/type-scatter-bubble-series/src/app.component.html similarity index 100% rename from samples/maps/geo-map/type-scatter-bubble-series/src/app/app.component.html rename to samples/maps/geo-map/type-scatter-bubble-series/src/app.component.html diff --git a/samples/maps/geo-map/type-scatter-bubble-series/src/app.component.scss b/samples/maps/geo-map/type-scatter-bubble-series/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/type-scatter-bubble-series/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/maps/geo-map/type-scatter-bubble-series/src/app/app.component.ts b/samples/maps/geo-map/type-scatter-bubble-series/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-bubble-series/src/app/app.component.ts rename to samples/maps/geo-map/type-scatter-bubble-series/src/app.component.ts diff --git a/samples/maps/geo-map/type-scatter-bubble-series/src/app/app.module.ts b/samples/maps/geo-map/type-scatter-bubble-series/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-bubble-series/src/app/app.module.ts rename to samples/maps/geo-map/type-scatter-bubble-series/src/app.module.ts diff --git a/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.app.json b/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.base.json b/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.spec.json b/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.worker.json b/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/type-scatter-bubble-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-bubble-series/src/main.ts b/samples/maps/geo-map/type-scatter-bubble-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/type-scatter-bubble-series/src/main.ts +++ b/samples/maps/geo-map/type-scatter-bubble-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/type-scatter-bubble-series/tsconfig.app.json b/samples/maps/geo-map/type-scatter-bubble-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/type-scatter-bubble-series/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/maps/geo-map/type-scatter-bubble-series/tsconfig.json b/samples/maps/geo-map/type-scatter-bubble-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/type-scatter-bubble-series/tsconfig.json +++ b/samples/maps/geo-map/type-scatter-bubble-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/type-scatter-contour-series/.codesandbox/Dockerfile b/samples/maps/geo-map/type-scatter-contour-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/type-scatter-contour-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-contour-series/.codesandbox/tasks.json b/samples/maps/geo-map/type-scatter-contour-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/type-scatter-contour-series/.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/maps/geo-map/type-scatter-contour-series/.stackblitzrc b/samples/maps/geo-map/type-scatter-contour-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/type-scatter-contour-series/.stackblitzrc +++ b/samples/maps/geo-map/type-scatter-contour-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-contour-series/angular.json b/samples/maps/geo-map/type-scatter-contour-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/type-scatter-contour-series/angular.json +++ b/samples/maps/geo-map/type-scatter-contour-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/type-scatter-contour-series/package.json b/samples/maps/geo-map/type-scatter-contour-series/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/type-scatter-contour-series/package.json +++ b/samples/maps/geo-map/type-scatter-contour-series/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/type-scatter-contour-series/sandbox.config.json b/samples/maps/geo-map/type-scatter-contour-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/type-scatter-contour-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-contour-series/src/app/app.component.html b/samples/maps/geo-map/type-scatter-contour-series/src/app.component.html similarity index 100% rename from samples/maps/geo-map/type-scatter-contour-series/src/app/app.component.html rename to samples/maps/geo-map/type-scatter-contour-series/src/app.component.html diff --git a/samples/maps/geo-map/type-scatter-contour-series/src/app.component.scss b/samples/maps/geo-map/type-scatter-contour-series/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/type-scatter-contour-series/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/maps/geo-map/type-scatter-contour-series/src/app/app.component.ts b/samples/maps/geo-map/type-scatter-contour-series/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-contour-series/src/app/app.component.ts rename to samples/maps/geo-map/type-scatter-contour-series/src/app.component.ts diff --git a/samples/maps/geo-map/type-scatter-contour-series/src/app/app.module.ts b/samples/maps/geo-map/type-scatter-contour-series/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-contour-series/src/app/app.module.ts rename to samples/maps/geo-map/type-scatter-contour-series/src/app.module.ts diff --git a/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.app.json b/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.base.json b/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.spec.json b/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.worker.json b/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/type-scatter-contour-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-contour-series/src/main.ts b/samples/maps/geo-map/type-scatter-contour-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/type-scatter-contour-series/src/main.ts +++ b/samples/maps/geo-map/type-scatter-contour-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/type-scatter-contour-series/tsconfig.app.json b/samples/maps/geo-map/type-scatter-contour-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/type-scatter-contour-series/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/maps/geo-map/type-scatter-contour-series/tsconfig.json b/samples/maps/geo-map/type-scatter-contour-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/type-scatter-contour-series/tsconfig.json +++ b/samples/maps/geo-map/type-scatter-contour-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/type-scatter-density-series/.codesandbox/Dockerfile b/samples/maps/geo-map/type-scatter-density-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/type-scatter-density-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-density-series/.codesandbox/tasks.json b/samples/maps/geo-map/type-scatter-density-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/type-scatter-density-series/.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/maps/geo-map/type-scatter-density-series/.stackblitzrc b/samples/maps/geo-map/type-scatter-density-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/type-scatter-density-series/.stackblitzrc +++ b/samples/maps/geo-map/type-scatter-density-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-density-series/angular.json b/samples/maps/geo-map/type-scatter-density-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/type-scatter-density-series/angular.json +++ b/samples/maps/geo-map/type-scatter-density-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/type-scatter-density-series/package.json b/samples/maps/geo-map/type-scatter-density-series/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/type-scatter-density-series/package.json +++ b/samples/maps/geo-map/type-scatter-density-series/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/type-scatter-density-series/sandbox.config.json b/samples/maps/geo-map/type-scatter-density-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/type-scatter-density-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-density-series/src/app/WorldUtility.ts b/samples/maps/geo-map/type-scatter-density-series/src/WorldUtility.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-density-series/src/app/WorldUtility.ts rename to samples/maps/geo-map/type-scatter-density-series/src/WorldUtility.ts diff --git a/samples/maps/geo-map/type-scatter-density-series/src/app/app.component.html b/samples/maps/geo-map/type-scatter-density-series/src/app.component.html similarity index 100% rename from samples/maps/geo-map/type-scatter-density-series/src/app/app.component.html rename to samples/maps/geo-map/type-scatter-density-series/src/app.component.html diff --git a/samples/maps/geo-map/type-scatter-density-series/src/app.component.scss b/samples/maps/geo-map/type-scatter-density-series/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/type-scatter-density-series/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/maps/geo-map/type-scatter-density-series/src/app/app.component.ts b/samples/maps/geo-map/type-scatter-density-series/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-density-series/src/app/app.component.ts rename to samples/maps/geo-map/type-scatter-density-series/src/app.component.ts diff --git a/samples/maps/geo-map/type-scatter-density-series/src/app/app.module.ts b/samples/maps/geo-map/type-scatter-density-series/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-density-series/src/app/app.module.ts rename to samples/maps/geo-map/type-scatter-density-series/src/app.module.ts diff --git a/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.app.json b/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.base.json b/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.spec.json b/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.worker.json b/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/type-scatter-density-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-density-series/src/main.ts b/samples/maps/geo-map/type-scatter-density-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/type-scatter-density-series/src/main.ts +++ b/samples/maps/geo-map/type-scatter-density-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/type-scatter-density-series/tsconfig.app.json b/samples/maps/geo-map/type-scatter-density-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/type-scatter-density-series/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/maps/geo-map/type-scatter-density-series/tsconfig.json b/samples/maps/geo-map/type-scatter-density-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/type-scatter-density-series/tsconfig.json +++ b/samples/maps/geo-map/type-scatter-density-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/type-scatter-symbol-series/.codesandbox/Dockerfile b/samples/maps/geo-map/type-scatter-symbol-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/type-scatter-symbol-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-symbol-series/.codesandbox/tasks.json b/samples/maps/geo-map/type-scatter-symbol-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/type-scatter-symbol-series/.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/maps/geo-map/type-scatter-symbol-series/.stackblitzrc b/samples/maps/geo-map/type-scatter-symbol-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/type-scatter-symbol-series/.stackblitzrc +++ b/samples/maps/geo-map/type-scatter-symbol-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-symbol-series/angular.json b/samples/maps/geo-map/type-scatter-symbol-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/type-scatter-symbol-series/angular.json +++ b/samples/maps/geo-map/type-scatter-symbol-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/type-scatter-symbol-series/package.json b/samples/maps/geo-map/type-scatter-symbol-series/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/type-scatter-symbol-series/package.json +++ b/samples/maps/geo-map/type-scatter-symbol-series/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/type-scatter-symbol-series/sandbox.config.json b/samples/maps/geo-map/type-scatter-symbol-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/type-scatter-symbol-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/type-scatter-symbol-series/src/app/WorldLocations.ts b/samples/maps/geo-map/type-scatter-symbol-series/src/WorldLocations.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-symbol-series/src/app/WorldLocations.ts rename to samples/maps/geo-map/type-scatter-symbol-series/src/WorldLocations.ts diff --git a/samples/maps/geo-map/type-scatter-symbol-series/src/app/app.component.html b/samples/maps/geo-map/type-scatter-symbol-series/src/app.component.html similarity index 100% rename from samples/maps/geo-map/type-scatter-symbol-series/src/app/app.component.html rename to samples/maps/geo-map/type-scatter-symbol-series/src/app.component.html diff --git a/samples/maps/geo-map/type-scatter-symbol-series/src/app.component.scss b/samples/maps/geo-map/type-scatter-symbol-series/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/type-scatter-symbol-series/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/maps/geo-map/type-scatter-symbol-series/src/app/app.component.ts b/samples/maps/geo-map/type-scatter-symbol-series/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-symbol-series/src/app/app.component.ts rename to samples/maps/geo-map/type-scatter-symbol-series/src/app.component.ts diff --git a/samples/maps/geo-map/type-scatter-symbol-series/src/app/app.module.ts b/samples/maps/geo-map/type-scatter-symbol-series/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/type-scatter-symbol-series/src/app/app.module.ts rename to samples/maps/geo-map/type-scatter-symbol-series/src/app.module.ts diff --git a/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.app.json b/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.base.json b/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.spec.json b/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.worker.json b/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/type-scatter-symbol-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/type-scatter-symbol-series/src/main.ts b/samples/maps/geo-map/type-scatter-symbol-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/type-scatter-symbol-series/src/main.ts +++ b/samples/maps/geo-map/type-scatter-symbol-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/type-scatter-symbol-series/tsconfig.app.json b/samples/maps/geo-map/type-scatter-symbol-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/type-scatter-symbol-series/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/maps/geo-map/type-scatter-symbol-series/tsconfig.json b/samples/maps/geo-map/type-scatter-symbol-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/type-scatter-symbol-series/tsconfig.json +++ b/samples/maps/geo-map/type-scatter-symbol-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/type-shape-polygon-series/.codesandbox/Dockerfile b/samples/maps/geo-map/type-shape-polygon-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/type-shape-polygon-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/type-shape-polygon-series/.codesandbox/tasks.json b/samples/maps/geo-map/type-shape-polygon-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/type-shape-polygon-series/.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/maps/geo-map/type-shape-polygon-series/.stackblitzrc b/samples/maps/geo-map/type-shape-polygon-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/type-shape-polygon-series/.stackblitzrc +++ b/samples/maps/geo-map/type-shape-polygon-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/type-shape-polygon-series/angular.json b/samples/maps/geo-map/type-shape-polygon-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/type-shape-polygon-series/angular.json +++ b/samples/maps/geo-map/type-shape-polygon-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/type-shape-polygon-series/package.json b/samples/maps/geo-map/type-shape-polygon-series/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/type-shape-polygon-series/package.json +++ b/samples/maps/geo-map/type-shape-polygon-series/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/type-shape-polygon-series/sandbox.config.json b/samples/maps/geo-map/type-shape-polygon-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/type-shape-polygon-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/type-shape-polygon-series/src/app/app.component.html b/samples/maps/geo-map/type-shape-polygon-series/src/app.component.html similarity index 100% rename from samples/maps/geo-map/type-shape-polygon-series/src/app/app.component.html rename to samples/maps/geo-map/type-shape-polygon-series/src/app.component.html diff --git a/samples/maps/geo-map/type-shape-polygon-series/src/app.component.scss b/samples/maps/geo-map/type-shape-polygon-series/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/type-shape-polygon-series/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/maps/geo-map/type-shape-polygon-series/src/app/app.component.ts b/samples/maps/geo-map/type-shape-polygon-series/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/type-shape-polygon-series/src/app/app.component.ts rename to samples/maps/geo-map/type-shape-polygon-series/src/app.component.ts diff --git a/samples/maps/geo-map/type-shape-polygon-series/src/app/app.module.ts b/samples/maps/geo-map/type-shape-polygon-series/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/type-shape-polygon-series/src/app/app.module.ts rename to samples/maps/geo-map/type-shape-polygon-series/src/app.module.ts diff --git a/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.app.json b/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.base.json b/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.spec.json b/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.worker.json b/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/type-shape-polygon-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/type-shape-polygon-series/src/main.ts b/samples/maps/geo-map/type-shape-polygon-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/type-shape-polygon-series/src/main.ts +++ b/samples/maps/geo-map/type-shape-polygon-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/type-shape-polygon-series/tsconfig.app.json b/samples/maps/geo-map/type-shape-polygon-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/type-shape-polygon-series/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/maps/geo-map/type-shape-polygon-series/tsconfig.json b/samples/maps/geo-map/type-shape-polygon-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/type-shape-polygon-series/tsconfig.json +++ b/samples/maps/geo-map/type-shape-polygon-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/maps/geo-map/type-shape-polyline-series/.codesandbox/Dockerfile b/samples/maps/geo-map/type-shape-polyline-series/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/maps/geo-map/type-shape-polyline-series/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/maps/geo-map/type-shape-polyline-series/.codesandbox/tasks.json b/samples/maps/geo-map/type-shape-polyline-series/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/maps/geo-map/type-shape-polyline-series/.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/maps/geo-map/type-shape-polyline-series/.stackblitzrc b/samples/maps/geo-map/type-shape-polyline-series/.stackblitzrc index 65efbb4fd..dd44ea00f 100644 --- a/samples/maps/geo-map/type-shape-polyline-series/.stackblitzrc +++ b/samples/maps/geo-map/type-shape-polyline-series/.stackblitzrc @@ -1 +1 @@ -{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/maps/geo-map/type-shape-polyline-series/angular.json b/samples/maps/geo-map/type-shape-polyline-series/angular.json index 11ffb8c9c..0c2c173c9 100644 --- a/samples/maps/geo-map/type-shape-polyline-series/angular.json +++ b/samples/maps/geo-map/type-shape-polyline-series/angular.json @@ -4,8 +4,17 @@ "newProjectRoot": "projects", "projects": { "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, "root": "", "sourceRoot": "src", + "prefix": "app", "projectType": "application", "architect": { "build": { @@ -15,17 +24,20 @@ "index": "src/index.html", "main": "src/main.ts", "polyfills": [ - "zone.js", - "hammerjs" + "src/polyfills.ts" ], - "tsConfig": "src/config/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", "assets": [ "src/assets" ], "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } }, "configurations": { "production": { @@ -35,27 +47,42 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "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", - "options": { - "buildTarget": "demo:build" - }, "configurations": { "production": { "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -68,39 +95,26 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/config/tsconfig.spec.json", - "karmaConfig": "src/config/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", "styles": [ - "styles.css" + "src/styles.scss" ], "scripts": [], - "assets": [ + "assets": [ "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/config/tsconfig.app.json", - "src/config/tsconfig.spec.json" ], - "exclude": [ - "**/node_modules/**" - ] + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } } } } } }, - "schematics": { - "@schematics/angular:component": { - "prefix": "app", - "style": "scss" - }, - "@schematics/angular:directive": { - "prefix": "app" - } + "defaultProject": "demo", + "cli": { + "analytics": false } } diff --git a/samples/maps/geo-map/type-shape-polyline-series/package.json b/samples/maps/geo-map/type-shape-polyline-series/package.json index fbd684198..427146442 100644 --- a/samples/maps/geo-map/type-shape-polyline-series/package.json +++ b/samples/maps/geo-map/type-shape-polyline-series/package.json @@ -7,39 +7,39 @@ "lint": "ng lint" }, "dependencies": { - "@angular/animations": "17.0.0", - "@angular/common": "17.0.0", - "@angular/compiler": "17.0.0", - "@angular/core": "17.0.0", - "@angular/forms": "17.0.0", - "@angular/platform-browser": "17.0.0", - "@angular/platform-browser-dynamic": "17.0.0", + "@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", "@types/hammerjs": "2.0.39", "classlist.js": "1.1.20150312", "core-js": "3.21.0", - "hammerjs": "2.0.8", - "igniteui-angular-charts": "17.3.0-beta.0", - "igniteui-angular-core": "17.3.0-beta.0", - "igniteui-angular-maps": "17.3.0-beta.0", + "hammerjs": "^2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", "intl": "1.2.5", "jszip": "3.8.0", - "rxjs": "6.6.7", - "tslib": "2.3.1", + "rxjs": "^7.8.1", + "tslib": "^2.6.1", "web-animations-js": "2.3.2", - "zone.js": "~0.14.1" + "zone.js": "~0.14.4" }, "devDependencies": { - "@angular-devkit/build-angular": "17.0.0", - "@angular/cli": "17.0.0", - "@angular/compiler-cli": "17.0.0", - "@angular/language-service": "17.0.0", - "@types/node": "14.14.28", + "@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", "codelyzer": "6.0.2", - "jasmine-core": "3.7.1", + "jasmine-core": "5.1.1", "jasmine-spec-reporter": "~4.2.1", "sass.js": "0.11.1", - "ts-node": "9.1.1", + "ts-node": "10.9.1", "tslint": "~6.1.3", - "typescript": "5.2.2" + "typescript": "5.3.3" } } diff --git a/samples/maps/geo-map/type-shape-polyline-series/sandbox.config.json b/samples/maps/geo-map/type-shape-polyline-series/sandbox.config.json deleted file mode 100644 index 00acba0c1..000000000 --- a/samples/maps/geo-map/type-shape-polyline-series/sandbox.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "infiniteLoopProtection": false, - "hardReloadOnChange": false, - "view": "browser" -} \ No newline at end of file diff --git a/samples/maps/geo-map/type-shape-polyline-series/src/app/app.component.html b/samples/maps/geo-map/type-shape-polyline-series/src/app.component.html similarity index 100% rename from samples/maps/geo-map/type-shape-polyline-series/src/app/app.component.html rename to samples/maps/geo-map/type-shape-polyline-series/src/app.component.html diff --git a/samples/maps/geo-map/type-shape-polyline-series/src/app.component.scss b/samples/maps/geo-map/type-shape-polyline-series/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/maps/geo-map/type-shape-polyline-series/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/maps/geo-map/type-shape-polyline-series/src/app/app.component.ts b/samples/maps/geo-map/type-shape-polyline-series/src/app.component.ts similarity index 100% rename from samples/maps/geo-map/type-shape-polyline-series/src/app/app.component.ts rename to samples/maps/geo-map/type-shape-polyline-series/src/app.component.ts diff --git a/samples/maps/geo-map/type-shape-polyline-series/src/app/app.module.ts b/samples/maps/geo-map/type-shape-polyline-series/src/app.module.ts similarity index 100% rename from samples/maps/geo-map/type-shape-polyline-series/src/app/app.module.ts rename to samples/maps/geo-map/type-shape-polyline-series/src/app.module.ts diff --git a/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig-es5.app.json b/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig-es5.app.json deleted file mode 100644 index 7e8983eb4..000000000 --- a/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig-es5.app.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.app.json", - "compilerOptions": { - "target": "ES2022" - } - } diff --git a/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.app.json b/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.app.json deleted file mode 100644 index f722e3fe4..000000000 --- a/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/app", - "baseUrl": "./", - "types": [] - }, - "files": [ - "../main.ts", - "../polyfills.ts" - ] -} diff --git a/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.base.json b/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.base.json deleted file mode 100644 index 5574be5e5..000000000 --- a/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.base.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "importHelpers": true, - "module": "ES2022", - "outDir": "../../dist/out-tsc", - "sourceMap": false, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "resolveJsonModule": true, - "esModuleInterop": true, - "downlevelIteration": true, // required for excel library - "target": "ES2022", - "typeRoots": [ - "../../node_modules/@types" - ], - "lib": [ - "ES2022", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.spec.json b/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.spec.json deleted file mode 100644 index 6eb8c055c..000000000 --- a/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/spec", - "baseUrl": "./", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "../test.ts", - "../polyfills.ts" - ], - "include": [ - "../**/*.spec.ts", - "../**/*.d.ts" - ] -} diff --git a/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.worker.json b/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.worker.json deleted file mode 100644 index 4867b1275..000000000 --- a/samples/maps/geo-map/type-shape-polyline-series/src/config/tsconfig.worker.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "../../out-tsc/worker", - "lib": [ - "ES2022", - "DOM" - ], - "types": [] - }, - "include": [ - "../**/*Worker.ts" - ] -} diff --git a/samples/maps/geo-map/type-shape-polyline-series/src/main.ts b/samples/maps/geo-map/type-shape-polyline-series/src/main.ts index 8b0ce4164..ec9adcd4a 100644 --- a/samples/maps/geo-map/type-shape-polyline-series/src/main.ts +++ b/samples/maps/geo-map/type-shape-polyline-series/src/main.ts @@ -2,7 +2,7 @@ import "./polyfills"; import { enableProdMode } from "@angular/core"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; -import { AppModule } from "./app/app.module"; +import { AppModule } from "./app.module"; platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // ensure Angular destroys itself on hot reloads. diff --git a/samples/maps/geo-map/type-shape-polyline-series/tsconfig.app.json b/samples/maps/geo-map/type-shape-polyline-series/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/maps/geo-map/type-shape-polyline-series/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/maps/geo-map/type-shape-polyline-series/tsconfig.json b/samples/maps/geo-map/type-shape-polyline-series/tsconfig.json index 1aaac63d3..22d546ab3 100644 --- a/samples/maps/geo-map/type-shape-polyline-series/tsconfig.json +++ b/samples/maps/geo-map/type-shape-polyline-series/tsconfig.json @@ -1,21 +1,27 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "useDefineForClassFields": false, - "files": [], - "references": [ - { - "path": "./src/config/tsconfig.app.json" - }, - { - "path": "./src/config/tsconfig.worker.json" - }, - { - "path": "./src/config/tsconfig.spec.json" - } - ] + "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/tests/avatar-sample-3/.codesandbox/Dockerfile b/tests/avatar-sample-3/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/tests/avatar-sample-3/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/tests/avatar-sample-3/.codesandbox/tasks.json b/tests/avatar-sample-3/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/tests/avatar-sample-3/.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/tests/avatar-sample-3/.stackblitzrc b/tests/avatar-sample-3/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/tests/avatar-sample-3/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/tests/avatar-sample-3/angular.json b/tests/avatar-sample-3/angular.json new file mode 100644 index 000000000..f2ace893e --- /dev/null +++ b/tests/avatar-sample-3/angular.json @@ -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 + } +} diff --git a/tests/avatar-sample-3/package.json b/tests/avatar-sample-3/package.json new file mode 100644 index 000000000..3da0b1248 --- /dev/null +++ b/tests/avatar-sample-3/package.json @@ -0,0 +1,28 @@ +{ + "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", + "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" + } +} \ No newline at end of file diff --git a/tests/avatar-sample-3/src/_app-layout.scss b/tests/avatar-sample-3/src/_app-layout.scss new file mode 100644 index 000000000..b5329f55b --- /dev/null +++ b/tests/avatar-sample-3/src/_app-layout.scss @@ -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; +} + diff --git a/tests/avatar-sample-3/src/_variables.scss b/tests/avatar-sample-3/src/_variables.scss new file mode 100644 index 000000000..cf9f1048b --- /dev/null +++ b/tests/avatar-sample-3/src/_variables.scss @@ -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); diff --git a/tests/avatar-sample-3/src/app/app.component.html b/tests/avatar-sample-3/src/app/app.component.html new file mode 100644 index 000000000..cf95400ac --- /dev/null +++ b/tests/avatar-sample-3/src/app/app.component.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tests/avatar-sample-3/src/app/app.component.scss b/tests/avatar-sample-3/src/app/app.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/tests/avatar-sample-3/src/app/app.component.ts b/tests/avatar-sample-3/src/app/app.component.ts new file mode 100644 index 000000000..0fd0d7e3a --- /dev/null +++ b/tests/avatar-sample-3/src/app/app.component.ts @@ -0,0 +1,8 @@ +import { Component } from "@angular/core"; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html" +}) +export class AppComponent {} \ No newline at end of file diff --git a/tests/avatar-sample-3/src/app/app.module.ts b/tests/avatar-sample-3/src/app/app.module.ts new file mode 100644 index 000000000..c84e79de0 --- /dev/null +++ b/tests/avatar-sample-3/src/app/app.module.ts @@ -0,0 +1,26 @@ +import { NgModule } from "@angular/core"; +import { FormsModule } from "@angular/forms"; +import { BrowserModule } from "@angular/platform-browser"; +import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; +import { AppComponent } from "./app.component"; +import { IgxAvatarModule } from "igniteui-angular"; +import { AvatarSample3Component } from "./avatar-sample-3/avatar-sample-3.component"; + + + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent, + AvatarSample3Component +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + FormsModule, + IgxAvatarModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/tests/avatar-sample-3/src/app/avatar-sample-3/avatar-sample-3.component.html b/tests/avatar-sample-3/src/app/avatar-sample-3/avatar-sample-3.component.html new file mode 100644 index 000000000..3e6532b86 --- /dev/null +++ b/tests/avatar-sample-3/src/app/avatar-sample-3/avatar-sample-3.component.html @@ -0,0 +1,11 @@ +
+
+ +
+
+ +
+
+ +
+
diff --git a/tests/avatar-sample-3/src/app/avatar-sample-3/avatar-sample-3.component.scss b/tests/avatar-sample-3/src/app/avatar-sample-3/avatar-sample-3.component.scss new file mode 100644 index 000000000..1ae4d3606 --- /dev/null +++ b/tests/avatar-sample-3/src/app/avatar-sample-3/avatar-sample-3.component.scss @@ -0,0 +1,22 @@ +.avatars-wrapper { + display: flex; + flex-flow: row wrap; +} + +.avatar-sample { + display: flex; + flex: 1 0 30%; + width: 88px; + height: 88px; + justify-content: center; + align-items: center; + margin: 15px 0; +} + +.avatar-sample.initials .igx-avatar{ + background: #e41c77; +} + +.avatar-sample.icon .igx-avatar{ + background: #9e9e9e; +} diff --git a/tests/avatar-sample-3/src/app/avatar-sample-3/avatar-sample-3.component.ts b/tests/avatar-sample-3/src/app/avatar-sample-3/avatar-sample-3.component.ts new file mode 100644 index 000000000..974d082ac --- /dev/null +++ b/tests/avatar-sample-3/src/app/avatar-sample-3/avatar-sample-3.component.ts @@ -0,0 +1,12 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-avatar-sample-3', + styleUrls: ['./avatar-sample-3.component.scss'], + templateUrl: './avatar-sample-3.component.html' +}) +export class AvatarSample3Component { + + constructor() { } + +} diff --git a/tests/avatar-sample-3/src/environments/environment.prod.ts b/tests/avatar-sample-3/src/environments/environment.prod.ts new file mode 100644 index 000000000..c9669790b --- /dev/null +++ b/tests/avatar-sample-3/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true, +}; diff --git a/tests/avatar-sample-3/src/environments/environment.ts b/tests/avatar-sample-3/src/environments/environment.ts new file mode 100644 index 000000000..66998ae9a --- /dev/null +++ b/tests/avatar-sample-3/src/environments/environment.ts @@ -0,0 +1,16 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build` 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/plugins/zone-error'; // Included with Angular CLI. diff --git a/tests/avatar-sample-3/src/index.html b/tests/avatar-sample-3/src/index.html new file mode 100644 index 000000000..9920eced3 --- /dev/null +++ b/tests/avatar-sample-3/src/index.html @@ -0,0 +1,21 @@ + + + + + + Angular Demos + + + + + + + + + + + + + + + diff --git a/tests/avatar-sample-3/src/main.ts b/tests/avatar-sample-3/src/main.ts new file mode 100644 index 000000000..551d91605 --- /dev/null +++ b/tests/avatar-sample-3/src/main.ts @@ -0,0 +1,16 @@ +import './polyfills'; + +import { enableProdMode } from '@angular/core'; +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/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/tests/avatar-sample-3/src/polyfills.ts b/tests/avatar-sample-3/src/polyfills.ts new file mode 100644 index 000000000..665b7dacb --- /dev/null +++ b/tests/avatar-sample-3/src/polyfills.ts @@ -0,0 +1,58 @@ +/** + * 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'; + +//import 'core-js/es7/array'; // for Array.includes() // 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'; // 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/tests/avatar-sample-3/src/styles.scss b/tests/avatar-sample-3/src/styles.scss new file mode 100644 index 000000000..82df00bb3 --- /dev/null +++ b/tests/avatar-sample-3/src/styles.scss @@ -0,0 +1,47 @@ +@use 'igniteui-angular/theming' as *; +@use 'variables' as *; +@use 'app-layout'; + +/* autoprefixer grid: on */ +html, +body { + height: 100%; + overflow: hidden; + margin: 0; +} + +@include core(); +@include typography(); +@include theme( + $palette: $palette, + $schema: $schema +); + +:root { + @include palette($palette); +} + +.light-theme { + @include light-theme($palette); +} + +.dark-theme { + background: #333; + color: #fff; + @include dark-theme( + $palette: $green-palette + ); + + .grid-chart-contextmenu-wrapper { + @include fluent-dark-theme($fluent-excel-palette); + } +} + +.fin-dark-theme { + @include dark-theme($green-palette); + background: #333; + + ::-moz-placeholder { + opacity: 1; + } +} diff --git a/tests/avatar-sample-3/tsconfig.app.json b/tests/avatar-sample-3/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/tests/avatar-sample-3/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/tests/avatar-sample-3/tsconfig.json b/tests/avatar-sample-3/tsconfig.json new file mode 100644 index 000000000..3e90bf364 --- /dev/null +++ b/tests/avatar-sample-3/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": true, + "declaration": false, + "downlevelIteration": true, + "experimentalDecorators": true, + "module": "esnext", + "moduleResolution": "node", + "importHelpers": true, + "target": "es2015", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2018", + "dom" + ] + }, + "angularCompilerOptions": { + "enableIvy": true + } +} \ No newline at end of file diff --git a/tests/display-heat-imagery/.stackblitzrc b/tests/display-heat-imagery/.stackblitzrc new file mode 100644 index 000000000..65efbb4fd --- /dev/null +++ b/tests/display-heat-imagery/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file diff --git a/tests/display-heat-imagery/ReadMe.md b/tests/display-heat-imagery/ReadMe.md new file mode 100644 index 000000000..d751a7883 --- /dev/null +++ b/tests/display-heat-imagery/ReadMe.md @@ -0,0 +1,58 @@ + + + +This folder contains Angular application with example of Display Heat Imagery feature using [GeoMap](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/maps/geo-map/display-heat-imagery +``` + + +- 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/tests/display-heat-imagery/angular.json b/tests/display-heat-imagery/angular.json new file mode 100644 index 000000000..11ffb8c9c --- /dev/null +++ b/tests/display-heat-imagery/angular.json @@ -0,0 +1,106 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "demo": { + "root": "", + "sourceRoot": "src", + "projectType": "application", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "zone.js", + "hammerjs" + ], + "tsConfig": "src/config/tsconfig.app.json", + "assets": [ + "src/assets" + ], + "styles": [ + "src/styles.scss" + ], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + } + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "buildTarget": "demo:build" + }, + "configurations": { + "production": { + "buildTarget": "demo:build:production" + } + } + }, + "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": "src/config/tsconfig.spec.json", + "karmaConfig": "src/config/karma.conf.js", + "styles": [ + "styles.css" + ], + "scripts": [], + "assets": [ + "src/assets" + ] + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "src/config/tsconfig.app.json", + "src/config/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ] + } + } + } + } + }, + "schematics": { + "@schematics/angular:component": { + "prefix": "app", + "style": "scss" + }, + "@schematics/angular:directive": { + "prefix": "app" + } + } +} diff --git a/tests/display-heat-imagery/package.json b/tests/display-heat-imagery/package.json new file mode 100644 index 000000000..0c717502f --- /dev/null +++ b/tests/display-heat-imagery/package.json @@ -0,0 +1,45 @@ +{ + "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": "17.0.0", + "@angular/common": "17.0.0", + "@angular/compiler": "17.0.0", + "@angular/core": "17.0.0", + "@angular/forms": "17.0.0", + "@angular/platform-browser": "17.0.0", + "@angular/platform-browser-dynamic": "17.0.0", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "igniteui-angular-maps": "17.3.1-alpha.0", + "intl": "1.2.5", + "jszip": "3.8.0", + "rxjs": "6.6.7", + "tslib": "2.3.1", + "web-animations-js": "2.3.2", + "zone.js": "~0.14.1" + }, + "devDependencies": { + "@angular-devkit/build-angular": "17.0.0", + "@angular/cli": "17.0.0", + "@angular/compiler-cli": "17.0.0", + "@angular/language-service": "17.0.0", + "@types/node": "14.14.28", + "codelyzer": "6.0.2", + "jasmine-core": "3.7.1", + "jasmine-spec-reporter": "~4.2.1", + "sass.js": "0.11.1", + "ts-node": "9.1.1", + "tslint": "~6.1.3", + "typescript": "5.2.2" + } +} diff --git a/samples/charts/category-chart/annotations/sandbox.config.json b/tests/display-heat-imagery/sandbox.config.json similarity index 100% rename from samples/charts/category-chart/annotations/sandbox.config.json rename to tests/display-heat-imagery/sandbox.config.json diff --git a/tests/display-heat-imagery/src/HeatmapWorker.ts b/tests/display-heat-imagery/src/HeatmapWorker.ts new file mode 100644 index 000000000..fdccd9d9f --- /dev/null +++ b/tests/display-heat-imagery/src/HeatmapWorker.ts @@ -0,0 +1,15 @@ +// import { HeatTileGeneratorWebWorker } from "igniteui-angular-core/esm5/lib/HeatTileGeneratorWebWorker"; +import { HeatTileGeneratorWebWorker } from "igniteui-angular-core/esm2015/lib/HeatTileGeneratorWebWorker"; + +const worker: Worker = self as any; + +worker.onmessage = HeatTileGeneratorWebWorker.onmessage; +HeatTileGeneratorWebWorker.postmessage = heatWorkerPostMessage; + +function heatWorkerPostMessage() { + (self as any).postMessage.apply(self, Array.prototype.slice.call(arguments)); +} + +HeatTileGeneratorWebWorker.start(); + +export default {} as typeof Worker & (new () => Worker); diff --git a/tests/display-heat-imagery/src/app.component.html b/tests/display-heat-imagery/src/app.component.html new file mode 100644 index 000000000..7ffb86ef2 --- /dev/null +++ b/tests/display-heat-imagery/src/app.component.html @@ -0,0 +1,4 @@ +
+ + +
diff --git a/tests/display-heat-imagery/src/app.component.scss b/tests/display-heat-imagery/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/tests/display-heat-imagery/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/tests/display-heat-imagery/src/app.component.ts b/tests/display-heat-imagery/src/app.component.ts new file mode 100644 index 000000000..613603db3 --- /dev/null +++ b/tests/display-heat-imagery/src/app.component.ts @@ -0,0 +1,89 @@ +import { AfterViewInit, Component, ChangeDetectionStrategy, ViewChild } from "@angular/core"; +import { IgxHeatTileGenerator } from "igniteui-angular-core"; +import { IgxShapeDataSource } from "igniteui-angular-core"; +import { IgxGeographicMapComponent } from "igniteui-angular-maps"; +import { IgxGeographicTileSeriesComponent } from "igniteui-angular-maps"; +import { IgxTileGeneratorMapImagery } from "igniteui-angular-maps"; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) +export class AppComponent implements AfterViewInit { + + @ViewChild("map", { static: true }) + public map: IgxGeographicMapComponent; + public tileImagery: IgxTileGeneratorMapImagery; + + constructor() { + this.tileImagery = new IgxTileGeneratorMapImagery(); + + const sds: IgxShapeDataSource = new IgxShapeDataSource(); + sds.importCompleted.subscribe((s, e) => { + const data = sds.getPointData(); + const lat: number[] = []; + const lon: number[] = []; + const val: number[] = []; + + for (let i = 0; i < data.length; i++) { + const item = data[i]; + for (let j = 0; j < item.points.length; j++) { + const pointsList = item.points[j]; + for (let k = 0; k < pointsList.length; k++) { + lat.push(pointsList[k].y); + lon.push(pointsList[k].x); + } + } + const value = parseInt(item.fieldValues["POP2010"], 10); + if (value >= 0) { + val.push(value); + } else { + val.push(0); + } + } + + // generating heat map imagery tiles + const gen = new IgxHeatTileGenerator(); + gen.xValues = lon; + gen.yValues = lat; + gen.values = val; + gen.blurRadius = 6; + gen.maxBlurRadius = 20; + gen.useBlurRadiusAdjustedForZoom = true; + gen.minimumColor = "rgba(100, 255, 0, 0.5)"; + gen.maximumColor = "rgba(255, 255, 0, 0.5)"; + gen.useGlobalMinMax = true; + gen.useGlobalMinMaxAdjustedForZoom = true; + gen.useLogarithmicScale = true; + gen.useWebWorkers = true; + // gen.webWorkerInstance = new Worker(); + // gen.webWorkerInstance = new Worker("./HeatmapWorker", { type: "module" }); + gen.webWorkerInstance = new Worker(new URL('./HeatmapWorker', import.meta.url), { type: "module" }); + + gen.scaleColors = [ + "rgba(0, 0, 255, .251)", "rgba(0, 255, 255, .3765)", + "rgba(50,205,50, .2675)", "rgba(255, 255, 0, .7059)", + "rgba(255, 0, 0, .7843)" + ]; + this.tileImagery.tileGenerator = gen; + + // generating heat map series + const series = new IgxGeographicTileSeriesComponent(); + series.name = "heatMapSeries"; + series.tileImagery = this.tileImagery; + + // add heat map series to the map + this.map.series.add(series); + }); + + sds.shapefileSource = "https://static.infragistics.com/xplatform/shapes/AmericanCities.shp"; + sds.databaseSource = "https://static.infragistics.com/xplatform/shapes/AmericanCities.dbf"; + sds.dataBind(); + } + + public ngAfterViewInit(): void { + this.map.zoomToGeographic({ left: -134.5, top: 16.0, width: 70.0, height: 37.0 }); + } +} diff --git a/tests/display-heat-imagery/src/app.module.ts b/tests/display-heat-imagery/src/app.module.ts new file mode 100644 index 000000000..888fd1b03 --- /dev/null +++ b/tests/display-heat-imagery/src/app.module.ts @@ -0,0 +1,29 @@ +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 { IgxGeographicMapModule } from "igniteui-angular-maps"; +import { IgxDataChartInteractivityModule } from "igniteui-angular-charts"; + + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent, + +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxGeographicMapModule, + IgxDataChartInteractivityModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/category-chart/annotations-all/src/config/tsconfig-es5.app.json b/tests/display-heat-imagery/src/config/tsconfig-es5.app.json similarity index 100% rename from samples/charts/category-chart/annotations-all/src/config/tsconfig-es5.app.json rename to tests/display-heat-imagery/src/config/tsconfig-es5.app.json diff --git a/samples/charts/category-chart/annotations-all/src/config/tsconfig.app.json b/tests/display-heat-imagery/src/config/tsconfig.app.json similarity index 100% rename from samples/charts/category-chart/annotations-all/src/config/tsconfig.app.json rename to tests/display-heat-imagery/src/config/tsconfig.app.json diff --git a/samples/charts/category-chart/annotations-all/src/config/tsconfig.base.json b/tests/display-heat-imagery/src/config/tsconfig.base.json similarity index 100% rename from samples/charts/category-chart/annotations-all/src/config/tsconfig.base.json rename to tests/display-heat-imagery/src/config/tsconfig.base.json diff --git a/samples/charts/category-chart/annotations-all/src/config/tsconfig.spec.json b/tests/display-heat-imagery/src/config/tsconfig.spec.json similarity index 100% rename from samples/charts/category-chart/annotations-all/src/config/tsconfig.spec.json rename to tests/display-heat-imagery/src/config/tsconfig.spec.json diff --git a/samples/charts/category-chart/annotations-all/src/config/tsconfig.worker.json b/tests/display-heat-imagery/src/config/tsconfig.worker.json similarity index 100% rename from samples/charts/category-chart/annotations-all/src/config/tsconfig.worker.json rename to tests/display-heat-imagery/src/config/tsconfig.worker.json diff --git a/tests/display-heat-imagery/src/environments/environment.prod.ts b/tests/display-heat-imagery/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/tests/display-heat-imagery/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/tests/display-heat-imagery/src/environments/environment.ts b/tests/display-heat-imagery/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/tests/display-heat-imagery/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/tests/display-heat-imagery/src/index.html b/tests/display-heat-imagery/src/index.html new file mode 100644 index 000000000..67a35017e --- /dev/null +++ b/tests/display-heat-imagery/src/index.html @@ -0,0 +1,22 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + diff --git a/tests/display-heat-imagery/src/main.ts b/tests/display-heat-imagery/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/tests/display-heat-imagery/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/tests/display-heat-imagery/src/polyfills.ts b/tests/display-heat-imagery/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/tests/display-heat-imagery/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/tests/display-heat-imagery/src/styles.scss b/tests/display-heat-imagery/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/tests/display-heat-imagery/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/tests/display-heat-imagery/src/typings.d.ts b/tests/display-heat-imagery/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/tests/display-heat-imagery/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/tests/display-heat-imagery/tsconfig.json b/tests/display-heat-imagery/tsconfig.json new file mode 100644 index 000000000..1aaac63d3 --- /dev/null +++ b/tests/display-heat-imagery/tsconfig.json @@ -0,0 +1,21 @@ +/* + This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. + It is not intended to be used to perform a compilation. + + To learn more about this file see: https://angular.io/config/solution-tsconfig. +*/ +{ + "useDefineForClassFields": false, + "files": [], + "references": [ + { + "path": "./src/config/tsconfig.app.json" + }, + { + "path": "./src/config/tsconfig.worker.json" + }, + { + "path": "./src/config/tsconfig.spec.json" + } + ] +} \ No newline at end of file diff --git a/tests/donut-ava/.codesandbox/Dockerfile b/tests/donut-ava/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/tests/donut-ava/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/tests/donut-ava/.codesandbox/tasks.json b/tests/donut-ava/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/tests/donut-ava/.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/tests/donut-ava/.stackblitzrc b/tests/donut-ava/.stackblitzrc new file mode 100644 index 000000000..65efbb4fd --- /dev/null +++ b/tests/donut-ava/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file diff --git a/tests/donut-ava/angular.json b/tests/donut-ava/angular.json new file mode 100644 index 000000000..b2ae5957d --- /dev/null +++ b/tests/donut-ava/angular.json @@ -0,0 +1,108 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "demo": { + "projectType": "application", + + "schematics": { + "@schematics/angular:component": { + "prefix": "app", + "style": "scss" + }, + "@schematics/angular:directive": { + "prefix": "app" + }, + "root": "", + "sourceRoot": "src" + } + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "zone.js", + "hammerjs" + ], + "tsConfig": "src/config/tsconfig.app.json", + "assets": [ + "src/assets" + ], + "styles": [ + "src/styles.scss" + ], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + } + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "buildTarget": "demo:build" + }, + "configurations": { + "production": { + "buildTarget": "demo:build:production" + } + } + }, + "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": "src/config/tsconfig.spec.json", + "karmaConfig": "src/config/karma.conf.js", + "styles": [ + "styles.css" + ], + "scripts": [], + "assets": [ + "src/assets" + ] + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "src/config/tsconfig.app.json", + "src/config/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ] + } + } + } + } + }, + +} diff --git a/tests/donut-ava/package.json b/tests/donut-ava/package.json new file mode 100644 index 000000000..7f8b3e6d4 --- /dev/null +++ b/tests/donut-ava/package.json @@ -0,0 +1,45 @@ +{ + "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": "^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", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.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.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", + "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.3.3" + } +} diff --git a/tests/donut-ava/src/EnergyGlobalDemand.ts b/tests/donut-ava/src/EnergyGlobalDemand.ts new file mode 100644 index 000000000..922fcf7a9 --- /dev/null +++ b/tests/donut-ava/src/EnergyGlobalDemand.ts @@ -0,0 +1,51 @@ +export class EnergyGlobalDemandItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public value: number; + public category: string; + public summary: string; + +} +export class EnergyGlobalDemand extends Array { + public constructor(items: Array | 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))); + } + } +} diff --git a/tests/donut-ava/src/app.component.html b/tests/donut-ava/src/app.component.html new file mode 100644 index 000000000..3c78e15c6 --- /dev/null +++ b/tests/donut-ava/src/app.component.html @@ -0,0 +1,33 @@ +
+
+ Global Electricity Demand by Energy Use +
+
+ + +
+
+ + + + +
+
diff --git a/tests/donut-ava/src/app.component.scss b/tests/donut-ava/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/tests/donut-ava/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/tests/donut-ava/src/app.component.ts b/tests/donut-ava/src/app.component.ts new file mode 100644 index 000000000..d7720aa4b --- /dev/null +++ b/tests/donut-ava/src/app.component.ts @@ -0,0 +1,39 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; +import { IgxItemLegendComponent, IgxDoughnutChartComponent, IgxRingSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxItemLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDoughnutChartComponent + @ViewChild("series", { static: true } ) + private series: IgxRingSeriesComponent + private _energyGlobalDemand: EnergyGlobalDemand = null; + public get energyGlobalDemand(): EnergyGlobalDemand { + if (this._energyGlobalDemand == null) + { + this._energyGlobalDemand = new EnergyGlobalDemand(); + } + return this._energyGlobalDemand; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/tests/donut-ava/src/app.module.ts b/tests/donut-ava/src/app.module.ts new file mode 100644 index 000000000..7d4332c43 --- /dev/null +++ b/tests/donut-ava/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxItemLegendModule, IgxDoughnutChartModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxItemLegendModule, + IgxDoughnutChartModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/category-chart/annotations-callouts/src/config/tsconfig-es5.app.json b/tests/donut-ava/src/config/tsconfig-es5.app.json similarity index 100% rename from samples/charts/category-chart/annotations-callouts/src/config/tsconfig-es5.app.json rename to tests/donut-ava/src/config/tsconfig-es5.app.json diff --git a/samples/charts/category-chart/annotations-callouts/src/config/tsconfig.app.json b/tests/donut-ava/src/config/tsconfig.app.json similarity index 100% rename from samples/charts/category-chart/annotations-callouts/src/config/tsconfig.app.json rename to tests/donut-ava/src/config/tsconfig.app.json diff --git a/samples/charts/category-chart/annotations-callouts/src/config/tsconfig.base.json b/tests/donut-ava/src/config/tsconfig.base.json similarity index 100% rename from samples/charts/category-chart/annotations-callouts/src/config/tsconfig.base.json rename to tests/donut-ava/src/config/tsconfig.base.json diff --git a/samples/charts/category-chart/annotations-callouts/src/config/tsconfig.spec.json b/tests/donut-ava/src/config/tsconfig.spec.json similarity index 100% rename from samples/charts/category-chart/annotations-callouts/src/config/tsconfig.spec.json rename to tests/donut-ava/src/config/tsconfig.spec.json diff --git a/samples/charts/category-chart/annotations-callouts/src/config/tsconfig.worker.json b/tests/donut-ava/src/config/tsconfig.worker.json similarity index 100% rename from samples/charts/category-chart/annotations-callouts/src/config/tsconfig.worker.json rename to tests/donut-ava/src/config/tsconfig.worker.json diff --git a/tests/donut-ava/src/environments/environment.prod.ts b/tests/donut-ava/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/tests/donut-ava/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/tests/donut-ava/src/environments/environment.ts b/tests/donut-ava/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/tests/donut-ava/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/tests/donut-ava/src/index.html b/tests/donut-ava/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/tests/donut-ava/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/tests/donut-ava/src/main.ts b/tests/donut-ava/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/tests/donut-ava/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/tests/donut-ava/src/polyfills.ts b/tests/donut-ava/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/tests/donut-ava/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/tests/donut-ava/src/styles.scss b/tests/donut-ava/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/tests/donut-ava/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/tests/donut-ava/src/typings.d.ts b/tests/donut-ava/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/tests/donut-ava/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/tests/donut-ava/tsconfig.app.json b/tests/donut-ava/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/tests/donut-ava/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/tests/donut-ava/tsconfig.json b/tests/donut-ava/tsconfig.json new file mode 100644 index 000000000..3e90bf364 --- /dev/null +++ b/tests/donut-ava/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": true, + "declaration": false, + "downlevelIteration": true, + "experimentalDecorators": true, + "module": "esnext", + "moduleResolution": "node", + "importHelpers": true, + "target": "es2015", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2018", + "dom" + ] + }, + "angularCompilerOptions": { + "enableIvy": true + } +} \ No newline at end of file diff --git a/tests/donut-ava/tslint.json b/tests/donut-ava/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/tests/donut-ava/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"] + } +} diff --git a/tests/donut-ava2/.codesandbox/Dockerfile b/tests/donut-ava2/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/tests/donut-ava2/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/tests/donut-ava2/.codesandbox/tasks.json b/tests/donut-ava2/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/tests/donut-ava2/.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/tests/donut-ava2/.stackblitzrc b/tests/donut-ava2/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/tests/donut-ava2/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/tests/donut-ava2/angular.json b/tests/donut-ava2/angular.json new file mode 100644 index 000000000..f2ace893e --- /dev/null +++ b/tests/donut-ava2/angular.json @@ -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 + } +} diff --git a/tests/donut-ava2/package.json b/tests/donut-ava2/package.json new file mode 100644 index 000000000..6ae0e08f8 --- /dev/null +++ b/tests/donut-ava2/package.json @@ -0,0 +1,37 @@ +{ + "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": "^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" + } +} \ No newline at end of file diff --git a/tests/donut-ava2/src/EnergyGlobalDemand.ts b/tests/donut-ava2/src/EnergyGlobalDemand.ts new file mode 100644 index 000000000..922fcf7a9 --- /dev/null +++ b/tests/donut-ava2/src/EnergyGlobalDemand.ts @@ -0,0 +1,51 @@ +export class EnergyGlobalDemandItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public value: number; + public category: string; + public summary: string; + +} +export class EnergyGlobalDemand extends Array { + public constructor(items: Array | 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))); + } + } +} diff --git a/tests/donut-ava2/src/_app-layout.scss b/tests/donut-ava2/src/_app-layout.scss new file mode 100644 index 000000000..b5329f55b --- /dev/null +++ b/tests/donut-ava2/src/_app-layout.scss @@ -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; +} + diff --git a/tests/donut-ava2/src/_variables.scss b/tests/donut-ava2/src/_variables.scss new file mode 100644 index 000000000..cf9f1048b --- /dev/null +++ b/tests/donut-ava2/src/_variables.scss @@ -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); diff --git a/tests/donut-ava2/src/app.component.html b/tests/donut-ava2/src/app.component.html new file mode 100644 index 000000000..3c78e15c6 --- /dev/null +++ b/tests/donut-ava2/src/app.component.html @@ -0,0 +1,33 @@ +
+
+ Global Electricity Demand by Energy Use +
+
+ + +
+
+ + + + +
+
diff --git a/tests/donut-ava2/src/app.component.scss b/tests/donut-ava2/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/tests/donut-ava2/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/tests/donut-ava2/src/app.component.ts b/tests/donut-ava2/src/app.component.ts new file mode 100644 index 000000000..d7720aa4b --- /dev/null +++ b/tests/donut-ava2/src/app.component.ts @@ -0,0 +1,39 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; +import { IgxItemLegendComponent, IgxDoughnutChartComponent, IgxRingSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxItemLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDoughnutChartComponent + @ViewChild("series", { static: true } ) + private series: IgxRingSeriesComponent + private _energyGlobalDemand: EnergyGlobalDemand = null; + public get energyGlobalDemand(): EnergyGlobalDemand { + if (this._energyGlobalDemand == null) + { + this._energyGlobalDemand = new EnergyGlobalDemand(); + } + return this._energyGlobalDemand; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/tests/donut-ava2/src/app.module.ts b/tests/donut-ava2/src/app.module.ts new file mode 100644 index 000000000..7d4332c43 --- /dev/null +++ b/tests/donut-ava2/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxItemLegendModule, IgxDoughnutChartModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxItemLegendModule, + IgxDoughnutChartModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/tests/donut-ava2/src/environments/environment.prod.ts b/tests/donut-ava2/src/environments/environment.prod.ts new file mode 100644 index 000000000..c9669790b --- /dev/null +++ b/tests/donut-ava2/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true, +}; diff --git a/tests/donut-ava2/src/environments/environment.ts b/tests/donut-ava2/src/environments/environment.ts new file mode 100644 index 000000000..66998ae9a --- /dev/null +++ b/tests/donut-ava2/src/environments/environment.ts @@ -0,0 +1,16 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build` 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/plugins/zone-error'; // Included with Angular CLI. diff --git a/tests/donut-ava2/src/index.html b/tests/donut-ava2/src/index.html new file mode 100644 index 000000000..6b7e74a5c --- /dev/null +++ b/tests/donut-ava2/src/index.html @@ -0,0 +1,23 @@ + + + + + + Angular Demos + + + + + + + + + + + + + + + + + diff --git a/tests/donut-ava2/src/main.ts b/tests/donut-ava2/src/main.ts new file mode 100644 index 000000000..4854dcd20 --- /dev/null +++ b/tests/donut-ava2/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/tests/donut-ava2/src/polyfills.ts b/tests/donut-ava2/src/polyfills.ts new file mode 100644 index 000000000..665b7dacb --- /dev/null +++ b/tests/donut-ava2/src/polyfills.ts @@ -0,0 +1,58 @@ +/** + * 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'; + +//import 'core-js/es7/array'; // for Array.includes() // 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'; // 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/tests/donut-ava2/src/styles.scss b/tests/donut-ava2/src/styles.scss new file mode 100644 index 000000000..5861d836a --- /dev/null +++ b/tests/donut-ava2/src/styles.scss @@ -0,0 +1,58 @@ +/* autoprefixer grid: on */ +html, +body { + height: 100%; + width: 100%; + overflow: hidden; + margin: 0; + box-sizing: border-box; +} + + +// @use 'igniteui-angular/theming' as *; +// @use 'variables' as *; +// @use 'app-layout'; + +// /* autoprefixer grid: on */ +// html, +// body { +// height: 100%; +// overflow: hidden; +// margin: 0; +// } + +// @include core(); +// @include typography(); +// @include theme( +// $palette: $palette, +// $schema: $schema +// ); + +// :root { +// @include palette($palette); +// } + +// .light-theme { +// @include light-theme($palette); +// } + +// .dark-theme { +// background: #333; +// color: #fff; +// @include dark-theme( +// $palette: $green-palette +// ); + +// .grid-chart-contextmenu-wrapper { +// @include fluent-dark-theme($fluent-excel-palette); +// } +// } + +// .fin-dark-theme { +// @include dark-theme($green-palette); +// background: #333; + +// ::-moz-placeholder { +// opacity: 1; +// } +// } diff --git a/tests/donut-ava2/tsconfig.app.json b/tests/donut-ava2/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/tests/donut-ava2/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/tests/donut-ava2/tsconfig.json b/tests/donut-ava2/tsconfig.json new file mode 100644 index 000000000..3e90bf364 --- /dev/null +++ b/tests/donut-ava2/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": true, + "declaration": false, + "downlevelIteration": true, + "experimentalDecorators": true, + "module": "esnext", + "moduleResolution": "node", + "importHelpers": true, + "target": "es2015", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2018", + "dom" + ] + }, + "angularCompilerOptions": { + "enableIvy": true + } +} \ No newline at end of file diff --git a/tests/donut-ava3/.codesandbox/Dockerfile b/tests/donut-ava3/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/tests/donut-ava3/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/tests/donut-ava3/.codesandbox/tasks.json b/tests/donut-ava3/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/tests/donut-ava3/.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/tests/donut-ava3/.stackblitzrc b/tests/donut-ava3/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/tests/donut-ava3/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/tests/donut-ava3/angular.json b/tests/donut-ava3/angular.json new file mode 100644 index 000000000..0c2c173c9 --- /dev/null +++ b/tests/donut-ava3/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/tests/donut-ava3/package.json b/tests/donut-ava3/package.json new file mode 100644 index 000000000..d89744ff2 --- /dev/null +++ b/tests/donut-ava3/package.json @@ -0,0 +1,45 @@ +{ + "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": "^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", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "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", + "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-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", + "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", + "typescript": "5.3.3" + } +} \ No newline at end of file diff --git a/tests/donut-ava3/src/EnergyGlobalDemand.ts b/tests/donut-ava3/src/EnergyGlobalDemand.ts new file mode 100644 index 000000000..922fcf7a9 --- /dev/null +++ b/tests/donut-ava3/src/EnergyGlobalDemand.ts @@ -0,0 +1,51 @@ +export class EnergyGlobalDemandItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public value: number; + public category: string; + public summary: string; + +} +export class EnergyGlobalDemand extends Array { + public constructor(items: Array | 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))); + } + } +} diff --git a/tests/donut-ava3/src/app.component.html b/tests/donut-ava3/src/app.component.html new file mode 100644 index 000000000..3c78e15c6 --- /dev/null +++ b/tests/donut-ava3/src/app.component.html @@ -0,0 +1,33 @@ +
+
+ Global Electricity Demand by Energy Use +
+
+ + +
+
+ + + + +
+
diff --git a/tests/donut-ava3/src/app.component.scss b/tests/donut-ava3/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/tests/donut-ava3/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/tests/donut-ava3/src/app.component.ts b/tests/donut-ava3/src/app.component.ts new file mode 100644 index 000000000..d7720aa4b --- /dev/null +++ b/tests/donut-ava3/src/app.component.ts @@ -0,0 +1,39 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; +import { IgxItemLegendComponent, IgxDoughnutChartComponent, IgxRingSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxItemLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDoughnutChartComponent + @ViewChild("series", { static: true } ) + private series: IgxRingSeriesComponent + private _energyGlobalDemand: EnergyGlobalDemand = null; + public get energyGlobalDemand(): EnergyGlobalDemand { + if (this._energyGlobalDemand == null) + { + this._energyGlobalDemand = new EnergyGlobalDemand(); + } + return this._energyGlobalDemand; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/tests/donut-ava3/src/app.module.ts b/tests/donut-ava3/src/app.module.ts new file mode 100644 index 000000000..7d4332c43 --- /dev/null +++ b/tests/donut-ava3/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxItemLegendModule, IgxDoughnutChartModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxItemLegendModule, + IgxDoughnutChartModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/tests/donut-ava3/src/environments/environment.prod.ts b/tests/donut-ava3/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/tests/donut-ava3/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/tests/donut-ava3/src/environments/environment.ts b/tests/donut-ava3/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/tests/donut-ava3/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/tests/donut-ava3/src/index.html b/tests/donut-ava3/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/tests/donut-ava3/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/tests/donut-ava3/src/main.ts b/tests/donut-ava3/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/tests/donut-ava3/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/tests/donut-ava3/src/polyfills.ts b/tests/donut-ava3/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/tests/donut-ava3/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/tests/donut-ava3/src/styles.scss b/tests/donut-ava3/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/tests/donut-ava3/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/tests/donut-ava3/tsconfig.app.json b/tests/donut-ava3/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/tests/donut-ava3/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/tests/donut-ava3/tsconfig.json b/tests/donut-ava3/tsconfig.json new file mode 100644 index 000000000..6f9b68d09 --- /dev/null +++ b/tests/donut-ava3/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "importHelpers": true, + "module": "esnext", + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": true, + "declaration": false, + "moduleResolution": "node", + "experimentalDecorators": true, + "downlevelIteration": true, + "target": "es2015", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2018", + "dom" + ] + }, + "angularCompilerOptions": { + "enableIvy": true + } +} \ No newline at end of file diff --git a/tests/donut-ava4/.codesandbox/Dockerfile b/tests/donut-ava4/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/tests/donut-ava4/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/tests/donut-ava4/.codesandbox/tasks.json b/tests/donut-ava4/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/tests/donut-ava4/.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/tests/donut-ava4/.stackblitzrc b/tests/donut-ava4/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/tests/donut-ava4/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/tests/donut-ava4/angular.json b/tests/donut-ava4/angular.json new file mode 100644 index 000000000..0c2c173c9 --- /dev/null +++ b/tests/donut-ava4/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/tests/donut-ava4/package.json b/tests/donut-ava4/package.json new file mode 100644 index 000000000..d89744ff2 --- /dev/null +++ b/tests/donut-ava4/package.json @@ -0,0 +1,45 @@ +{ + "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": "^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", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "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", + "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-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", + "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", + "typescript": "5.3.3" + } +} \ No newline at end of file diff --git a/tests/donut-ava4/src/EnergyGlobalDemand.ts b/tests/donut-ava4/src/EnergyGlobalDemand.ts new file mode 100644 index 000000000..922fcf7a9 --- /dev/null +++ b/tests/donut-ava4/src/EnergyGlobalDemand.ts @@ -0,0 +1,51 @@ +export class EnergyGlobalDemandItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public value: number; + public category: string; + public summary: string; + +} +export class EnergyGlobalDemand extends Array { + public constructor(items: Array | 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))); + } + } +} diff --git a/tests/donut-ava4/src/app.component.html b/tests/donut-ava4/src/app.component.html new file mode 100644 index 000000000..3c78e15c6 --- /dev/null +++ b/tests/donut-ava4/src/app.component.html @@ -0,0 +1,33 @@ +
+
+ Global Electricity Demand by Energy Use +
+
+ + +
+
+ + + + +
+
diff --git a/tests/donut-ava4/src/app.component.scss b/tests/donut-ava4/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/tests/donut-ava4/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/tests/donut-ava4/src/app.component.ts b/tests/donut-ava4/src/app.component.ts new file mode 100644 index 000000000..d7720aa4b --- /dev/null +++ b/tests/donut-ava4/src/app.component.ts @@ -0,0 +1,39 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; +import { IgxItemLegendComponent, IgxDoughnutChartComponent, IgxRingSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxItemLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDoughnutChartComponent + @ViewChild("series", { static: true } ) + private series: IgxRingSeriesComponent + private _energyGlobalDemand: EnergyGlobalDemand = null; + public get energyGlobalDemand(): EnergyGlobalDemand { + if (this._energyGlobalDemand == null) + { + this._energyGlobalDemand = new EnergyGlobalDemand(); + } + return this._energyGlobalDemand; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/tests/donut-ava4/src/app.module.ts b/tests/donut-ava4/src/app.module.ts new file mode 100644 index 000000000..7d4332c43 --- /dev/null +++ b/tests/donut-ava4/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxItemLegendModule, IgxDoughnutChartModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxItemLegendModule, + IgxDoughnutChartModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/tests/donut-ava4/src/environments/environment.prod.ts b/tests/donut-ava4/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/tests/donut-ava4/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/tests/donut-ava4/src/environments/environment.ts b/tests/donut-ava4/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/tests/donut-ava4/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/tests/donut-ava4/src/index.html b/tests/donut-ava4/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/tests/donut-ava4/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/tests/donut-ava4/src/main.ts b/tests/donut-ava4/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/tests/donut-ava4/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/tests/donut-ava4/src/polyfills.ts b/tests/donut-ava4/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/tests/donut-ava4/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/tests/donut-ava4/src/styles.scss b/tests/donut-ava4/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/tests/donut-ava4/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/tests/donut-ava4/tsconfig.app.json b/tests/donut-ava4/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/tests/donut-ava4/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/tests/donut-ava4/tsconfig.json b/tests/donut-ava4/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/tests/donut-ava4/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/tests/donut-mod/.codesandbox/Dockerfile b/tests/donut-mod/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/tests/donut-mod/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/tests/donut-mod/.codesandbox/tasks.json b/tests/donut-mod/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/tests/donut-mod/.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/tests/donut-mod/.stackblitzrc b/tests/donut-mod/.stackblitzrc new file mode 100644 index 000000000..65efbb4fd --- /dev/null +++ b/tests/donut-mod/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file diff --git a/tests/donut-mod/ReadMe.md b/tests/donut-mod/ReadMe.md new file mode 100644 index 000000000..88e6723a3 --- /dev/null +++ b/tests/donut-mod/ReadMe.md @@ -0,0 +1,58 @@ + + + +This folder contains Angular application with example of Legend feature using [DoughnutChart](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/doughnut-chart/legend +``` + + +- 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/tests/donut-mod/angular.json b/tests/donut-mod/angular.json new file mode 100644 index 000000000..11ffb8c9c --- /dev/null +++ b/tests/donut-mod/angular.json @@ -0,0 +1,106 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "demo": { + "root": "", + "sourceRoot": "src", + "projectType": "application", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "zone.js", + "hammerjs" + ], + "tsConfig": "src/config/tsconfig.app.json", + "assets": [ + "src/assets" + ], + "styles": [ + "src/styles.scss" + ], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + } + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "buildTarget": "demo:build" + }, + "configurations": { + "production": { + "buildTarget": "demo:build:production" + } + } + }, + "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": "src/config/tsconfig.spec.json", + "karmaConfig": "src/config/karma.conf.js", + "styles": [ + "styles.css" + ], + "scripts": [], + "assets": [ + "src/assets" + ] + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "src/config/tsconfig.app.json", + "src/config/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ] + } + } + } + } + }, + "schematics": { + "@schematics/angular:component": { + "prefix": "app", + "style": "scss" + }, + "@schematics/angular:directive": { + "prefix": "app" + } + } +} diff --git a/tests/donut-mod/package.json b/tests/donut-mod/package.json new file mode 100644 index 000000000..fabb9adc1 --- /dev/null +++ b/tests/donut-mod/package.json @@ -0,0 +1,44 @@ +{ + "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": "17.0.0", + "@angular/common": "17.0.0", + "@angular/compiler": "17.0.0", + "@angular/core": "17.0.0", + "@angular/forms": "17.0.0", + "@angular/platform-browser": "17.0.0", + "@angular/platform-browser-dynamic": "17.0.0", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "intl": "1.2.5", + "jszip": "3.8.0", + "rxjs": "6.6.7", + "tslib": "2.3.1", + "web-animations-js": "2.3.2", + "zone.js": "~0.14.1" + }, + "devDependencies": { + "@angular-devkit/build-angular": "17.0.0", + "@angular/cli": "17.0.0", + "@angular/compiler-cli": "17.0.0", + "@angular/language-service": "17.0.0", + "@types/node": "14.14.28", + "codelyzer": "6.0.2", + "jasmine-core": "3.7.1", + "jasmine-spec-reporter": "~4.2.1", + "sass.js": "0.11.1", + "ts-node": "9.1.1", + "tslint": "~6.1.3", + "typescript": "5.2.2" + } +} diff --git a/tests/donut-mod/src/EnergyGlobalDemand.ts b/tests/donut-mod/src/EnergyGlobalDemand.ts new file mode 100644 index 000000000..922fcf7a9 --- /dev/null +++ b/tests/donut-mod/src/EnergyGlobalDemand.ts @@ -0,0 +1,51 @@ +export class EnergyGlobalDemandItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public value: number; + public category: string; + public summary: string; + +} +export class EnergyGlobalDemand extends Array { + public constructor(items: Array | 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))); + } + } +} diff --git a/tests/donut-mod/src/app.component.html b/tests/donut-mod/src/app.component.html new file mode 100644 index 000000000..3c78e15c6 --- /dev/null +++ b/tests/donut-mod/src/app.component.html @@ -0,0 +1,33 @@ +
+
+ Global Electricity Demand by Energy Use +
+
+ + +
+
+ + + + +
+
diff --git a/tests/donut-mod/src/app.component.scss b/tests/donut-mod/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/tests/donut-mod/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/tests/donut-mod/src/app.component.ts b/tests/donut-mod/src/app.component.ts new file mode 100644 index 000000000..d7720aa4b --- /dev/null +++ b/tests/donut-mod/src/app.component.ts @@ -0,0 +1,39 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; +import { IgxItemLegendComponent, IgxDoughnutChartComponent, IgxRingSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxItemLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDoughnutChartComponent + @ViewChild("series", { static: true } ) + private series: IgxRingSeriesComponent + private _energyGlobalDemand: EnergyGlobalDemand = null; + public get energyGlobalDemand(): EnergyGlobalDemand { + if (this._energyGlobalDemand == null) + { + this._energyGlobalDemand = new EnergyGlobalDemand(); + } + return this._energyGlobalDemand; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/tests/donut-mod/src/app.module.ts b/tests/donut-mod/src/app.module.ts new file mode 100644 index 000000000..7d4332c43 --- /dev/null +++ b/tests/donut-mod/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxItemLegendModule, IgxDoughnutChartModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxItemLegendModule, + IgxDoughnutChartModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/category-chart/annotations-crosshairs/src/config/tsconfig-es5.app.json b/tests/donut-mod/src/config/tsconfig-es5.app.json similarity index 100% rename from samples/charts/category-chart/annotations-crosshairs/src/config/tsconfig-es5.app.json rename to tests/donut-mod/src/config/tsconfig-es5.app.json diff --git a/samples/charts/category-chart/annotations-crosshairs/src/config/tsconfig.app.json b/tests/donut-mod/src/config/tsconfig.app.json similarity index 100% rename from samples/charts/category-chart/annotations-crosshairs/src/config/tsconfig.app.json rename to tests/donut-mod/src/config/tsconfig.app.json diff --git a/tests/donut-mod/src/config/tsconfig.base.json b/tests/donut-mod/src/config/tsconfig.base.json new file mode 100644 index 000000000..cee300867 --- /dev/null +++ b/tests/donut-mod/src/config/tsconfig.base.json @@ -0,0 +1,24 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "importHelpers": true, + "module": "esnext", + "outDir": "../../dist/out-tsc", + "sourceMap": false, + "declaration": false, + "moduleResolution": "node", + "experimentalDecorators": true, + "resolveJsonModule": true, + "esModuleInterop": true, + "downlevelIteration": true, // required for excel library + "target": "es2015", + "typeRoots": [ + "../../node_modules/@types" + ], + "lib": [ + "es2018", + "dom" + ], + "useDefineForClassFields": false + } +} diff --git a/samples/charts/category-chart/annotations-crosshairs/src/config/tsconfig.spec.json b/tests/donut-mod/src/config/tsconfig.spec.json similarity index 100% rename from samples/charts/category-chart/annotations-crosshairs/src/config/tsconfig.spec.json rename to tests/donut-mod/src/config/tsconfig.spec.json diff --git a/samples/charts/category-chart/annotations-crosshairs/src/config/tsconfig.worker.json b/tests/donut-mod/src/config/tsconfig.worker.json similarity index 100% rename from samples/charts/category-chart/annotations-crosshairs/src/config/tsconfig.worker.json rename to tests/donut-mod/src/config/tsconfig.worker.json diff --git a/tests/donut-mod/src/environments/environment.prod.ts b/tests/donut-mod/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/tests/donut-mod/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/tests/donut-mod/src/environments/environment.ts b/tests/donut-mod/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/tests/donut-mod/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/tests/donut-mod/src/index.html b/tests/donut-mod/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/tests/donut-mod/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/tests/donut-mod/src/main.ts b/tests/donut-mod/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/tests/donut-mod/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/tests/donut-mod/src/polyfills.ts b/tests/donut-mod/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/tests/donut-mod/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/tests/donut-mod/src/styles.scss b/tests/donut-mod/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/tests/donut-mod/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/tests/donut-mod/src/typings.d.ts b/tests/donut-mod/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/tests/donut-mod/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/tests/donut-mod/tsconfig.json b/tests/donut-mod/tsconfig.json new file mode 100644 index 000000000..1aaac63d3 --- /dev/null +++ b/tests/donut-mod/tsconfig.json @@ -0,0 +1,21 @@ +/* + This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. + It is not intended to be used to perform a compilation. + + To learn more about this file see: https://angular.io/config/solution-tsconfig. +*/ +{ + "useDefineForClassFields": false, + "files": [], + "references": [ + { + "path": "./src/config/tsconfig.app.json" + }, + { + "path": "./src/config/tsconfig.worker.json" + }, + { + "path": "./src/config/tsconfig.spec.json" + } + ] +} \ No newline at end of file diff --git a/tests/donut-mod/tslint.json b/tests/donut-mod/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/tests/donut-mod/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"] + } +} diff --git a/tests/donut-upgrade/.stackblitzrc b/tests/donut-upgrade/.stackblitzrc new file mode 100644 index 000000000..65efbb4fd --- /dev/null +++ b/tests/donut-upgrade/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file diff --git a/tests/donut-upgrade/ReadMe.md b/tests/donut-upgrade/ReadMe.md new file mode 100644 index 000000000..88e6723a3 --- /dev/null +++ b/tests/donut-upgrade/ReadMe.md @@ -0,0 +1,58 @@ + + + +This folder contains Angular application with example of Legend feature using [DoughnutChart](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/doughnut-chart/legend +``` + + +- 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/tests/donut-upgrade/angular.json b/tests/donut-upgrade/angular.json new file mode 100644 index 000000000..11ffb8c9c --- /dev/null +++ b/tests/donut-upgrade/angular.json @@ -0,0 +1,106 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "demo": { + "root": "", + "sourceRoot": "src", + "projectType": "application", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "zone.js", + "hammerjs" + ], + "tsConfig": "src/config/tsconfig.app.json", + "assets": [ + "src/assets" + ], + "styles": [ + "src/styles.scss" + ], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + } + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "buildTarget": "demo:build" + }, + "configurations": { + "production": { + "buildTarget": "demo:build:production" + } + } + }, + "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": "src/config/tsconfig.spec.json", + "karmaConfig": "src/config/karma.conf.js", + "styles": [ + "styles.css" + ], + "scripts": [], + "assets": [ + "src/assets" + ] + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "src/config/tsconfig.app.json", + "src/config/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ] + } + } + } + } + }, + "schematics": { + "@schematics/angular:component": { + "prefix": "app", + "style": "scss" + }, + "@schematics/angular:directive": { + "prefix": "app" + } + } +} diff --git a/tests/donut-upgrade/package.json b/tests/donut-upgrade/package.json new file mode 100644 index 000000000..a10e416ab --- /dev/null +++ b/tests/donut-upgrade/package.json @@ -0,0 +1,45 @@ +{ + "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": "^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", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.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.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", + "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.3.3" + } +} diff --git a/samples/charts/category-chart/annotations-all/sandbox.config.json b/tests/donut-upgrade/sandbox.config.json similarity index 100% rename from samples/charts/category-chart/annotations-all/sandbox.config.json rename to tests/donut-upgrade/sandbox.config.json diff --git a/tests/donut-upgrade/src/EnergyGlobalDemand.ts b/tests/donut-upgrade/src/EnergyGlobalDemand.ts new file mode 100644 index 000000000..922fcf7a9 --- /dev/null +++ b/tests/donut-upgrade/src/EnergyGlobalDemand.ts @@ -0,0 +1,51 @@ +export class EnergyGlobalDemandItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public value: number; + public category: string; + public summary: string; + +} +export class EnergyGlobalDemand extends Array { + public constructor(items: Array | 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))); + } + } +} diff --git a/tests/donut-upgrade/src/app.component.html b/tests/donut-upgrade/src/app.component.html new file mode 100644 index 000000000..3c78e15c6 --- /dev/null +++ b/tests/donut-upgrade/src/app.component.html @@ -0,0 +1,33 @@ +
+
+ Global Electricity Demand by Energy Use +
+
+ + +
+
+ + + + +
+
diff --git a/tests/donut-upgrade/src/app.component.scss b/tests/donut-upgrade/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/tests/donut-upgrade/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/tests/donut-upgrade/src/app.component.ts b/tests/donut-upgrade/src/app.component.ts new file mode 100644 index 000000000..d7720aa4b --- /dev/null +++ b/tests/donut-upgrade/src/app.component.ts @@ -0,0 +1,39 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; +import { IgxItemLegendComponent, IgxDoughnutChartComponent, IgxRingSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxItemLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDoughnutChartComponent + @ViewChild("series", { static: true } ) + private series: IgxRingSeriesComponent + private _energyGlobalDemand: EnergyGlobalDemand = null; + public get energyGlobalDemand(): EnergyGlobalDemand { + if (this._energyGlobalDemand == null) + { + this._energyGlobalDemand = new EnergyGlobalDemand(); + } + return this._energyGlobalDemand; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/tests/donut-upgrade/src/app.module.ts b/tests/donut-upgrade/src/app.module.ts new file mode 100644 index 000000000..7d4332c43 --- /dev/null +++ b/tests/donut-upgrade/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxItemLegendModule, IgxDoughnutChartModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxItemLegendModule, + IgxDoughnutChartModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/category-chart/annotations-custom/src/config/tsconfig-es5.app.json b/tests/donut-upgrade/src/config/tsconfig-es5.app.json similarity index 100% rename from samples/charts/category-chart/annotations-custom/src/config/tsconfig-es5.app.json rename to tests/donut-upgrade/src/config/tsconfig-es5.app.json diff --git a/samples/charts/category-chart/annotations-custom/src/config/tsconfig.app.json b/tests/donut-upgrade/src/config/tsconfig.app.json similarity index 100% rename from samples/charts/category-chart/annotations-custom/src/config/tsconfig.app.json rename to tests/donut-upgrade/src/config/tsconfig.app.json diff --git a/samples/charts/category-chart/annotations-crosshairs/src/config/tsconfig.base.json b/tests/donut-upgrade/src/config/tsconfig.base.json similarity index 100% rename from samples/charts/category-chart/annotations-crosshairs/src/config/tsconfig.base.json rename to tests/donut-upgrade/src/config/tsconfig.base.json diff --git a/samples/charts/category-chart/annotations-custom/src/config/tsconfig.spec.json b/tests/donut-upgrade/src/config/tsconfig.spec.json similarity index 100% rename from samples/charts/category-chart/annotations-custom/src/config/tsconfig.spec.json rename to tests/donut-upgrade/src/config/tsconfig.spec.json diff --git a/samples/charts/category-chart/annotations-custom/src/config/tsconfig.worker.json b/tests/donut-upgrade/src/config/tsconfig.worker.json similarity index 100% rename from samples/charts/category-chart/annotations-custom/src/config/tsconfig.worker.json rename to tests/donut-upgrade/src/config/tsconfig.worker.json diff --git a/tests/donut-upgrade/src/environments/environment.prod.ts b/tests/donut-upgrade/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/tests/donut-upgrade/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/tests/donut-upgrade/src/environments/environment.ts b/tests/donut-upgrade/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/tests/donut-upgrade/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/tests/donut-upgrade/src/index.html b/tests/donut-upgrade/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/tests/donut-upgrade/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/tests/donut-upgrade/src/main.ts b/tests/donut-upgrade/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/tests/donut-upgrade/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/tests/donut-upgrade/src/polyfills.ts b/tests/donut-upgrade/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/tests/donut-upgrade/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/tests/donut-upgrade/src/styles.scss b/tests/donut-upgrade/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/tests/donut-upgrade/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/tests/donut-upgrade/src/typings.d.ts b/tests/donut-upgrade/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/tests/donut-upgrade/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/tests/donut-upgrade/tsconfig.json b/tests/donut-upgrade/tsconfig.json new file mode 100644 index 000000000..1aaac63d3 --- /dev/null +++ b/tests/donut-upgrade/tsconfig.json @@ -0,0 +1,21 @@ +/* + This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. + It is not intended to be used to perform a compilation. + + To learn more about this file see: https://angular.io/config/solution-tsconfig. +*/ +{ + "useDefineForClassFields": false, + "files": [], + "references": [ + { + "path": "./src/config/tsconfig.app.json" + }, + { + "path": "./src/config/tsconfig.worker.json" + }, + { + "path": "./src/config/tsconfig.spec.json" + } + ] +} \ No newline at end of file diff --git a/tests/donut-upgrade/tslint.json b/tests/donut-upgrade/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/tests/donut-upgrade/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"] + } +} diff --git a/tests/donut/.stackblitzrc b/tests/donut/.stackblitzrc new file mode 100644 index 000000000..65efbb4fd --- /dev/null +++ b/tests/donut/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file diff --git a/tests/donut/ReadMe.md b/tests/donut/ReadMe.md new file mode 100644 index 000000000..88e6723a3 --- /dev/null +++ b/tests/donut/ReadMe.md @@ -0,0 +1,58 @@ + + + +This folder contains Angular application with example of Legend feature using [DoughnutChart](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/doughnut-chart/legend +``` + + +- 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/tests/donut/angular.json b/tests/donut/angular.json new file mode 100644 index 000000000..11ffb8c9c --- /dev/null +++ b/tests/donut/angular.json @@ -0,0 +1,106 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "demo": { + "root": "", + "sourceRoot": "src", + "projectType": "application", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "zone.js", + "hammerjs" + ], + "tsConfig": "src/config/tsconfig.app.json", + "assets": [ + "src/assets" + ], + "styles": [ + "src/styles.scss" + ], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + } + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "buildTarget": "demo:build" + }, + "configurations": { + "production": { + "buildTarget": "demo:build:production" + } + } + }, + "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": "src/config/tsconfig.spec.json", + "karmaConfig": "src/config/karma.conf.js", + "styles": [ + "styles.css" + ], + "scripts": [], + "assets": [ + "src/assets" + ] + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "src/config/tsconfig.app.json", + "src/config/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ] + } + } + } + } + }, + "schematics": { + "@schematics/angular:component": { + "prefix": "app", + "style": "scss" + }, + "@schematics/angular:directive": { + "prefix": "app" + } + } +} diff --git a/tests/donut/package.json b/tests/donut/package.json new file mode 100644 index 000000000..fabb9adc1 --- /dev/null +++ b/tests/donut/package.json @@ -0,0 +1,44 @@ +{ + "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": "17.0.0", + "@angular/common": "17.0.0", + "@angular/compiler": "17.0.0", + "@angular/core": "17.0.0", + "@angular/forms": "17.0.0", + "@angular/platform-browser": "17.0.0", + "@angular/platform-browser-dynamic": "17.0.0", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "intl": "1.2.5", + "jszip": "3.8.0", + "rxjs": "6.6.7", + "tslib": "2.3.1", + "web-animations-js": "2.3.2", + "zone.js": "~0.14.1" + }, + "devDependencies": { + "@angular-devkit/build-angular": "17.0.0", + "@angular/cli": "17.0.0", + "@angular/compiler-cli": "17.0.0", + "@angular/language-service": "17.0.0", + "@types/node": "14.14.28", + "codelyzer": "6.0.2", + "jasmine-core": "3.7.1", + "jasmine-spec-reporter": "~4.2.1", + "sass.js": "0.11.1", + "ts-node": "9.1.1", + "tslint": "~6.1.3", + "typescript": "5.2.2" + } +} diff --git a/samples/charts/category-chart/annotations-callouts/sandbox.config.json b/tests/donut/sandbox.config.json similarity index 100% rename from samples/charts/category-chart/annotations-callouts/sandbox.config.json rename to tests/donut/sandbox.config.json diff --git a/tests/donut/src/EnergyGlobalDemand.ts b/tests/donut/src/EnergyGlobalDemand.ts new file mode 100644 index 000000000..922fcf7a9 --- /dev/null +++ b/tests/donut/src/EnergyGlobalDemand.ts @@ -0,0 +1,51 @@ +export class EnergyGlobalDemandItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public value: number; + public category: string; + public summary: string; + +} +export class EnergyGlobalDemand extends Array { + public constructor(items: Array | 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))); + } + } +} diff --git a/tests/donut/src/app.component.html b/tests/donut/src/app.component.html new file mode 100644 index 000000000..3c78e15c6 --- /dev/null +++ b/tests/donut/src/app.component.html @@ -0,0 +1,33 @@ +
+
+ Global Electricity Demand by Energy Use +
+
+ + +
+
+ + + + +
+
diff --git a/tests/donut/src/app.component.scss b/tests/donut/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/tests/donut/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/tests/donut/src/app.component.ts b/tests/donut/src/app.component.ts new file mode 100644 index 000000000..d7720aa4b --- /dev/null +++ b/tests/donut/src/app.component.ts @@ -0,0 +1,39 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; +import { IgxItemLegendComponent, IgxDoughnutChartComponent, IgxRingSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxItemLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDoughnutChartComponent + @ViewChild("series", { static: true } ) + private series: IgxRingSeriesComponent + private _energyGlobalDemand: EnergyGlobalDemand = null; + public get energyGlobalDemand(): EnergyGlobalDemand { + if (this._energyGlobalDemand == null) + { + this._energyGlobalDemand = new EnergyGlobalDemand(); + } + return this._energyGlobalDemand; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/tests/donut/src/app.module.ts b/tests/donut/src/app.module.ts new file mode 100644 index 000000000..7d4332c43 --- /dev/null +++ b/tests/donut/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxItemLegendModule, IgxDoughnutChartModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxItemLegendModule, + IgxDoughnutChartModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/category-chart/annotations-final-value/src/config/tsconfig-es5.app.json b/tests/donut/src/config/tsconfig-es5.app.json similarity index 100% rename from samples/charts/category-chart/annotations-final-value/src/config/tsconfig-es5.app.json rename to tests/donut/src/config/tsconfig-es5.app.json diff --git a/samples/charts/category-chart/annotations-final-value/src/config/tsconfig.app.json b/tests/donut/src/config/tsconfig.app.json similarity index 100% rename from samples/charts/category-chart/annotations-final-value/src/config/tsconfig.app.json rename to tests/donut/src/config/tsconfig.app.json diff --git a/samples/charts/category-chart/annotations-custom/src/config/tsconfig.base.json b/tests/donut/src/config/tsconfig.base.json similarity index 100% rename from samples/charts/category-chart/annotations-custom/src/config/tsconfig.base.json rename to tests/donut/src/config/tsconfig.base.json diff --git a/samples/charts/category-chart/annotations-final-value/src/config/tsconfig.spec.json b/tests/donut/src/config/tsconfig.spec.json similarity index 100% rename from samples/charts/category-chart/annotations-final-value/src/config/tsconfig.spec.json rename to tests/donut/src/config/tsconfig.spec.json diff --git a/samples/charts/category-chart/annotations-final-value/src/config/tsconfig.worker.json b/tests/donut/src/config/tsconfig.worker.json similarity index 100% rename from samples/charts/category-chart/annotations-final-value/src/config/tsconfig.worker.json rename to tests/donut/src/config/tsconfig.worker.json diff --git a/tests/donut/src/environments/environment.prod.ts b/tests/donut/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/tests/donut/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/tests/donut/src/environments/environment.ts b/tests/donut/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/tests/donut/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/tests/donut/src/index.html b/tests/donut/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/tests/donut/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/tests/donut/src/main.ts b/tests/donut/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/tests/donut/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/tests/donut/src/polyfills.ts b/tests/donut/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/tests/donut/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/tests/donut/src/styles.scss b/tests/donut/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/tests/donut/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/tests/donut/src/typings.d.ts b/tests/donut/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/tests/donut/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/tests/donut/tsconfig.json b/tests/donut/tsconfig.json new file mode 100644 index 000000000..1aaac63d3 --- /dev/null +++ b/tests/donut/tsconfig.json @@ -0,0 +1,21 @@ +/* + This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. + It is not intended to be used to perform a compilation. + + To learn more about this file see: https://angular.io/config/solution-tsconfig. +*/ +{ + "useDefineForClassFields": false, + "files": [], + "references": [ + { + "path": "./src/config/tsconfig.app.json" + }, + { + "path": "./src/config/tsconfig.worker.json" + }, + { + "path": "./src/config/tsconfig.spec.json" + } + ] +} \ No newline at end of file diff --git a/tests/donut/tslint.json b/tests/donut/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/tests/donut/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"] + } +} diff --git a/tests/donut2/.codesandbox/Dockerfile b/tests/donut2/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/tests/donut2/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/tests/donut2/.codesandbox/tasks.json b/tests/donut2/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/tests/donut2/.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/tests/donut2/.stackblitzrc b/tests/donut2/.stackblitzrc new file mode 100644 index 000000000..65efbb4fd --- /dev/null +++ b/tests/donut2/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file diff --git a/tests/donut2/ReadMe.md b/tests/donut2/ReadMe.md new file mode 100644 index 000000000..88e6723a3 --- /dev/null +++ b/tests/donut2/ReadMe.md @@ -0,0 +1,58 @@ + + + +This folder contains Angular application with example of Legend feature using [DoughnutChart](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/doughnut-chart/legend +``` + + +- 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/tests/donut2/angular.json b/tests/donut2/angular.json new file mode 100644 index 000000000..11ffb8c9c --- /dev/null +++ b/tests/donut2/angular.json @@ -0,0 +1,106 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "demo": { + "root": "", + "sourceRoot": "src", + "projectType": "application", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "zone.js", + "hammerjs" + ], + "tsConfig": "src/config/tsconfig.app.json", + "assets": [ + "src/assets" + ], + "styles": [ + "src/styles.scss" + ], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + } + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "buildTarget": "demo:build" + }, + "configurations": { + "production": { + "buildTarget": "demo:build:production" + } + } + }, + "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": "src/config/tsconfig.spec.json", + "karmaConfig": "src/config/karma.conf.js", + "styles": [ + "styles.css" + ], + "scripts": [], + "assets": [ + "src/assets" + ] + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "src/config/tsconfig.app.json", + "src/config/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ] + } + } + } + } + }, + "schematics": { + "@schematics/angular:component": { + "prefix": "app", + "style": "scss" + }, + "@schematics/angular:directive": { + "prefix": "app" + } + } +} diff --git a/tests/donut2/package.json b/tests/donut2/package.json new file mode 100644 index 000000000..fabb9adc1 --- /dev/null +++ b/tests/donut2/package.json @@ -0,0 +1,44 @@ +{ + "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": "17.0.0", + "@angular/common": "17.0.0", + "@angular/compiler": "17.0.0", + "@angular/core": "17.0.0", + "@angular/forms": "17.0.0", + "@angular/platform-browser": "17.0.0", + "@angular/platform-browser-dynamic": "17.0.0", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "intl": "1.2.5", + "jszip": "3.8.0", + "rxjs": "6.6.7", + "tslib": "2.3.1", + "web-animations-js": "2.3.2", + "zone.js": "~0.14.1" + }, + "devDependencies": { + "@angular-devkit/build-angular": "17.0.0", + "@angular/cli": "17.0.0", + "@angular/compiler-cli": "17.0.0", + "@angular/language-service": "17.0.0", + "@types/node": "14.14.28", + "codelyzer": "6.0.2", + "jasmine-core": "3.7.1", + "jasmine-spec-reporter": "~4.2.1", + "sass.js": "0.11.1", + "ts-node": "9.1.1", + "tslint": "~6.1.3", + "typescript": "5.2.2" + } +} diff --git a/tests/donut2/src/EnergyGlobalDemand.ts b/tests/donut2/src/EnergyGlobalDemand.ts new file mode 100644 index 000000000..922fcf7a9 --- /dev/null +++ b/tests/donut2/src/EnergyGlobalDemand.ts @@ -0,0 +1,51 @@ +export class EnergyGlobalDemandItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public value: number; + public category: string; + public summary: string; + +} +export class EnergyGlobalDemand extends Array { + public constructor(items: Array | 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))); + } + } +} diff --git a/tests/donut2/src/app.component.html b/tests/donut2/src/app.component.html new file mode 100644 index 000000000..3c78e15c6 --- /dev/null +++ b/tests/donut2/src/app.component.html @@ -0,0 +1,33 @@ +
+
+ Global Electricity Demand by Energy Use +
+
+ + +
+
+ + + + +
+
diff --git a/tests/donut2/src/app.component.scss b/tests/donut2/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/tests/donut2/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/tests/donut2/src/app.component.ts b/tests/donut2/src/app.component.ts new file mode 100644 index 000000000..d7720aa4b --- /dev/null +++ b/tests/donut2/src/app.component.ts @@ -0,0 +1,39 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; +import { IgxItemLegendComponent, IgxDoughnutChartComponent, IgxRingSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxItemLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDoughnutChartComponent + @ViewChild("series", { static: true } ) + private series: IgxRingSeriesComponent + private _energyGlobalDemand: EnergyGlobalDemand = null; + public get energyGlobalDemand(): EnergyGlobalDemand { + if (this._energyGlobalDemand == null) + { + this._energyGlobalDemand = new EnergyGlobalDemand(); + } + return this._energyGlobalDemand; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/tests/donut2/src/app.module.ts b/tests/donut2/src/app.module.ts new file mode 100644 index 000000000..7d4332c43 --- /dev/null +++ b/tests/donut2/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxItemLegendModule, IgxDoughnutChartModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxItemLegendModule, + IgxDoughnutChartModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/category-chart/annotations-highlighting/src/config/tsconfig-es5.app.json b/tests/donut2/src/config/tsconfig-es5.app.json similarity index 100% rename from samples/charts/category-chart/annotations-highlighting/src/config/tsconfig-es5.app.json rename to tests/donut2/src/config/tsconfig-es5.app.json diff --git a/samples/charts/category-chart/annotations-highlighting/src/config/tsconfig.app.json b/tests/donut2/src/config/tsconfig.app.json similarity index 100% rename from samples/charts/category-chart/annotations-highlighting/src/config/tsconfig.app.json rename to tests/donut2/src/config/tsconfig.app.json diff --git a/samples/charts/category-chart/annotations-final-value/src/config/tsconfig.base.json b/tests/donut2/src/config/tsconfig.base.json similarity index 100% rename from samples/charts/category-chart/annotations-final-value/src/config/tsconfig.base.json rename to tests/donut2/src/config/tsconfig.base.json diff --git a/samples/charts/category-chart/annotations-highlighting/src/config/tsconfig.spec.json b/tests/donut2/src/config/tsconfig.spec.json similarity index 100% rename from samples/charts/category-chart/annotations-highlighting/src/config/tsconfig.spec.json rename to tests/donut2/src/config/tsconfig.spec.json diff --git a/samples/charts/category-chart/annotations-highlighting/src/config/tsconfig.worker.json b/tests/donut2/src/config/tsconfig.worker.json similarity index 100% rename from samples/charts/category-chart/annotations-highlighting/src/config/tsconfig.worker.json rename to tests/donut2/src/config/tsconfig.worker.json diff --git a/tests/donut2/src/environments/environment.prod.ts b/tests/donut2/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/tests/donut2/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/tests/donut2/src/environments/environment.ts b/tests/donut2/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/tests/donut2/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/tests/donut2/src/index.html b/tests/donut2/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/tests/donut2/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/tests/donut2/src/main.ts b/tests/donut2/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/tests/donut2/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/tests/donut2/src/polyfills.ts b/tests/donut2/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/tests/donut2/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/tests/donut2/src/styles.scss b/tests/donut2/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/tests/donut2/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/tests/donut2/src/typings.d.ts b/tests/donut2/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/tests/donut2/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/tests/donut2/tsconfig.json b/tests/donut2/tsconfig.json new file mode 100644 index 000000000..1aaac63d3 --- /dev/null +++ b/tests/donut2/tsconfig.json @@ -0,0 +1,21 @@ +/* + This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. + It is not intended to be used to perform a compilation. + + To learn more about this file see: https://angular.io/config/solution-tsconfig. +*/ +{ + "useDefineForClassFields": false, + "files": [], + "references": [ + { + "path": "./src/config/tsconfig.app.json" + }, + { + "path": "./src/config/tsconfig.worker.json" + }, + { + "path": "./src/config/tsconfig.spec.json" + } + ] +} \ No newline at end of file diff --git a/tests/donut2/tslint.json b/tests/donut2/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/tests/donut2/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"] + } +} diff --git a/tests/donut3/.codesandbox/Dockerfile b/tests/donut3/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/tests/donut3/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/tests/donut3/.codesandbox/tasks.json b/tests/donut3/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/tests/donut3/.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/tests/donut3/.stackblitzrc b/tests/donut3/.stackblitzrc new file mode 100644 index 000000000..65efbb4fd --- /dev/null +++ b/tests/donut3/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}} \ No newline at end of file diff --git a/tests/donut3/ReadMe.md b/tests/donut3/ReadMe.md new file mode 100644 index 000000000..88e6723a3 --- /dev/null +++ b/tests/donut3/ReadMe.md @@ -0,0 +1,58 @@ + + + +This folder contains Angular application with example of Legend feature using [DoughnutChart](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/doughnut-chart/legend +``` + + +- 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/tests/donut3/angular.json b/tests/donut3/angular.json new file mode 100644 index 000000000..b2ae5957d --- /dev/null +++ b/tests/donut3/angular.json @@ -0,0 +1,108 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "demo": { + "projectType": "application", + + "schematics": { + "@schematics/angular:component": { + "prefix": "app", + "style": "scss" + }, + "@schematics/angular:directive": { + "prefix": "app" + }, + "root": "", + "sourceRoot": "src" + } + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "zone.js", + "hammerjs" + ], + "tsConfig": "src/config/tsconfig.app.json", + "assets": [ + "src/assets" + ], + "styles": [ + "src/styles.scss" + ], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + } + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "buildTarget": "demo:build" + }, + "configurations": { + "production": { + "buildTarget": "demo:build:production" + } + } + }, + "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": "src/config/tsconfig.spec.json", + "karmaConfig": "src/config/karma.conf.js", + "styles": [ + "styles.css" + ], + "scripts": [], + "assets": [ + "src/assets" + ] + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "src/config/tsconfig.app.json", + "src/config/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ] + } + } + } + } + }, + +} diff --git a/tests/donut3/package.json b/tests/donut3/package.json new file mode 100644 index 000000000..fabb9adc1 --- /dev/null +++ b/tests/donut3/package.json @@ -0,0 +1,44 @@ +{ + "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": "17.0.0", + "@angular/common": "17.0.0", + "@angular/compiler": "17.0.0", + "@angular/core": "17.0.0", + "@angular/forms": "17.0.0", + "@angular/platform-browser": "17.0.0", + "@angular/platform-browser-dynamic": "17.0.0", + "@types/hammerjs": "2.0.39", + "classlist.js": "1.1.20150312", + "core-js": "3.21.0", + "hammerjs": "2.0.8", + "igniteui-angular-charts": "17.3.1-alpha.0", + "igniteui-angular-core": "17.3.1-alpha.0", + "intl": "1.2.5", + "jszip": "3.8.0", + "rxjs": "6.6.7", + "tslib": "2.3.1", + "web-animations-js": "2.3.2", + "zone.js": "~0.14.1" + }, + "devDependencies": { + "@angular-devkit/build-angular": "17.0.0", + "@angular/cli": "17.0.0", + "@angular/compiler-cli": "17.0.0", + "@angular/language-service": "17.0.0", + "@types/node": "14.14.28", + "codelyzer": "6.0.2", + "jasmine-core": "3.7.1", + "jasmine-spec-reporter": "~4.2.1", + "sass.js": "0.11.1", + "ts-node": "9.1.1", + "tslint": "~6.1.3", + "typescript": "5.2.2" + } +} diff --git a/samples/charts/category-chart/annotations-crosshairs/sandbox.config.json b/tests/donut3/sandbox.config.json similarity index 100% rename from samples/charts/category-chart/annotations-crosshairs/sandbox.config.json rename to tests/donut3/sandbox.config.json diff --git a/tests/donut3/src/EnergyGlobalDemand.ts b/tests/donut3/src/EnergyGlobalDemand.ts new file mode 100644 index 000000000..922fcf7a9 --- /dev/null +++ b/tests/donut3/src/EnergyGlobalDemand.ts @@ -0,0 +1,51 @@ +export class EnergyGlobalDemandItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public value: number; + public category: string; + public summary: string; + +} +export class EnergyGlobalDemand extends Array { + public constructor(items: Array | 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))); + } + } +} diff --git a/tests/donut3/src/app.component.html b/tests/donut3/src/app.component.html new file mode 100644 index 000000000..3c78e15c6 --- /dev/null +++ b/tests/donut3/src/app.component.html @@ -0,0 +1,33 @@ +
+
+ Global Electricity Demand by Energy Use +
+
+ + +
+
+ + + + +
+
diff --git a/tests/donut3/src/app.component.scss b/tests/donut3/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/tests/donut3/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/tests/donut3/src/app.component.ts b/tests/donut3/src/app.component.ts new file mode 100644 index 000000000..d7720aa4b --- /dev/null +++ b/tests/donut3/src/app.component.ts @@ -0,0 +1,39 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; +import { IgxItemLegendComponent, IgxDoughnutChartComponent, IgxRingSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxItemLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDoughnutChartComponent + @ViewChild("series", { static: true } ) + private series: IgxRingSeriesComponent + private _energyGlobalDemand: EnergyGlobalDemand = null; + public get energyGlobalDemand(): EnergyGlobalDemand { + if (this._energyGlobalDemand == null) + { + this._energyGlobalDemand = new EnergyGlobalDemand(); + } + return this._energyGlobalDemand; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/tests/donut3/src/app.module.ts b/tests/donut3/src/app.module.ts new file mode 100644 index 000000000..7d4332c43 --- /dev/null +++ b/tests/donut3/src/app.module.ts @@ -0,0 +1,26 @@ +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 { IgxItemLegendModule, IgxDoughnutChartModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxItemLegendModule, + IgxDoughnutChartModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/category-chart/annotations/src/config/tsconfig-es5.app.json b/tests/donut3/src/config/tsconfig-es5.app.json similarity index 100% rename from samples/charts/category-chart/annotations/src/config/tsconfig-es5.app.json rename to tests/donut3/src/config/tsconfig-es5.app.json diff --git a/samples/charts/category-chart/annotations/src/config/tsconfig.app.json b/tests/donut3/src/config/tsconfig.app.json similarity index 100% rename from samples/charts/category-chart/annotations/src/config/tsconfig.app.json rename to tests/donut3/src/config/tsconfig.app.json diff --git a/samples/charts/category-chart/annotations-highlighting/src/config/tsconfig.base.json b/tests/donut3/src/config/tsconfig.base.json similarity index 100% rename from samples/charts/category-chart/annotations-highlighting/src/config/tsconfig.base.json rename to tests/donut3/src/config/tsconfig.base.json diff --git a/samples/charts/category-chart/annotations/src/config/tsconfig.spec.json b/tests/donut3/src/config/tsconfig.spec.json similarity index 100% rename from samples/charts/category-chart/annotations/src/config/tsconfig.spec.json rename to tests/donut3/src/config/tsconfig.spec.json diff --git a/samples/charts/category-chart/annotations/src/config/tsconfig.worker.json b/tests/donut3/src/config/tsconfig.worker.json similarity index 100% rename from samples/charts/category-chart/annotations/src/config/tsconfig.worker.json rename to tests/donut3/src/config/tsconfig.worker.json diff --git a/tests/donut3/src/environments/environment.prod.ts b/tests/donut3/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/tests/donut3/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/tests/donut3/src/environments/environment.ts b/tests/donut3/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/tests/donut3/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/tests/donut3/src/index.html b/tests/donut3/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/tests/donut3/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/tests/donut3/src/main.ts b/tests/donut3/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/tests/donut3/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/tests/donut3/src/polyfills.ts b/tests/donut3/src/polyfills.ts new file mode 100644 index 000000000..d583cff9c --- /dev/null +++ b/tests/donut3/src/polyfills.ts @@ -0,0 +1,65 @@ +/** + * 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/tests/donut3/src/styles.scss b/tests/donut3/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/tests/donut3/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/tests/donut3/src/typings.d.ts b/tests/donut3/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/tests/donut3/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/tests/donut3/tsconfig.json b/tests/donut3/tsconfig.json new file mode 100644 index 000000000..1aaac63d3 --- /dev/null +++ b/tests/donut3/tsconfig.json @@ -0,0 +1,21 @@ +/* + This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. + It is not intended to be used to perform a compilation. + + To learn more about this file see: https://angular.io/config/solution-tsconfig. +*/ +{ + "useDefineForClassFields": false, + "files": [], + "references": [ + { + "path": "./src/config/tsconfig.app.json" + }, + { + "path": "./src/config/tsconfig.worker.json" + }, + { + "path": "./src/config/tsconfig.spec.json" + } + ] +} \ No newline at end of file diff --git a/tests/donut3/tslint.json b/tests/donut3/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/tests/donut3/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"] + } +} diff --git a/tests/treegrid/.codesandbox/Dockerfile b/tests/treegrid/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/tests/treegrid/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/tests/treegrid/.codesandbox/tasks.json b/tests/treegrid/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/tests/treegrid/.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/tests/treegrid/.stackblitzrc b/tests/treegrid/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/tests/treegrid/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/tests/treegrid/angular.json b/tests/treegrid/angular.json new file mode 100644 index 000000000..f2ace893e --- /dev/null +++ b/tests/treegrid/angular.json @@ -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 + } +} diff --git a/tests/treegrid/package.json b/tests/treegrid/package.json new file mode 100644 index 000000000..958b9ca33 --- /dev/null +++ b/tests/treegrid/package.json @@ -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.1.0-rc.0", + "igniteui-angular-charts": "17.2.1", + "igniteui-angular-core": "17.2.1", + "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" + } +} \ No newline at end of file diff --git a/tests/treegrid/src/_app-layout.scss b/tests/treegrid/src/_app-layout.scss new file mode 100644 index 000000000..b5329f55b --- /dev/null +++ b/tests/treegrid/src/_app-layout.scss @@ -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; +} + diff --git a/tests/treegrid/src/_variables.scss b/tests/treegrid/src/_variables.scss new file mode 100644 index 000000000..011944da5 --- /dev/null +++ b/tests/treegrid/src/_variables.scss @@ -0,0 +1,18 @@ +@use 'igniteui-angular/theming' as *; +@forward 'igniteui-angular/theming'; + +$palette: $light-material-palette; +$schema: $light-material-schema; + +$green-palette: palette( + $primary: #09f, + $secondary: #72da67, + $gray: #fff, + $surface: #333, + $info: color($palette, 'info'), + $success: color($palette, 'success'), + $warn: color($palette, 'warn'), + $error: color($palette, 'error'), +); + +$gray-btn-color: color($green-palette, 'gray', 800); diff --git a/tests/treegrid/src/app/app.component.html b/tests/treegrid/src/app/app.component.html new file mode 100644 index 000000000..3ae58c22c --- /dev/null +++ b/tests/treegrid/src/app/app.component.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tests/treegrid/src/app/app.component.scss b/tests/treegrid/src/app/app.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/tests/treegrid/src/app/app.component.ts b/tests/treegrid/src/app/app.component.ts new file mode 100644 index 000000000..0fd0d7e3a --- /dev/null +++ b/tests/treegrid/src/app/app.component.ts @@ -0,0 +1,8 @@ +import { Component } from "@angular/core"; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html" +}) +export class AppComponent {} \ No newline at end of file diff --git a/tests/treegrid/src/app/app.module.ts b/tests/treegrid/src/app/app.module.ts new file mode 100644 index 000000000..d12cc778f --- /dev/null +++ b/tests/treegrid/src/app/app.module.ts @@ -0,0 +1,41 @@ +import { NgModule } from "@angular/core"; +import { FormsModule } from "@angular/forms"; +import { BrowserModule } from "@angular/platform-browser"; +import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; +import { AppComponent } from "./app.component"; +import { IgxPreventDocumentScrollModule } from "./directives/prevent-scroll.directive"; +import { + IgxTreeGridModule, + IgxExcelExporterService, + IgxCsvExporterService + } from "igniteui-angular"; +import { TreeGridChilddatakeySampleComponent } from "./tree-grid-childdatakey-sample/tree-grid-childdatakey-sample.component"; +import { + IgxSparklineCoreModule, + IgxSparklineModule + } from "igniteui-angular-charts"; + + + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent, + TreeGridChilddatakeySampleComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + FormsModule, + IgxPreventDocumentScrollModule, + IgxTreeGridModule, + IgxSparklineCoreModule, + IgxSparklineModule +], + providers: [ + IgxExcelExporterService, + IgxCsvExporterService +], + schemas: [] +}) +export class AppModule {} diff --git a/tests/treegrid/src/app/directives/prevent-scroll.directive.ts b/tests/treegrid/src/app/directives/prevent-scroll.directive.ts new file mode 100644 index 000000000..11c97caa1 --- /dev/null +++ b/tests/treegrid/src/app/directives/prevent-scroll.directive.ts @@ -0,0 +1,62 @@ +import { AfterViewInit, Directive, Host, Input, NgModule, Optional, OnDestroy, Inject } from '@angular/core'; +import { GridType, IGX_GRID_BASE } from 'igniteui-angular'; + +@Directive({ + // eslint-disable-next-line @angular-eslint/directive-selector + selector: '[igxPreventDocumentScroll]' +}) +export class IgxPreventDocumentScrollDirective implements AfterViewInit, OnDestroy { + private _preventScroll = true; + private gridBody: HTMLElement; + + /** + * A boolean indicating if page scroll should be prevented while mouse wheeling over the grid, + * when grid scroll has reached top or bottom. Defaults to true. + * ```html + * + * + * ``` + */ + @Input('igxPreventDocumentScroll') + public set preventScroll(val: boolean) { + if (val === false) { this._preventScroll = false; } + } + + /** + * @hidden + */ + constructor(@Host() @Optional() @Inject(IGX_GRID_BASE) private grid: GridType) { + } + + public ngAfterViewInit() { + this.gridBody = this.getGridTBody(); + if (this._preventScroll) { + this.gridBody.addEventListener('wheel', this.preventDocumentScroll, { passive: false }); + } + } + + public ngOnDestroy() { + this.gridBody.removeEventListener('wheel', this.preventDocumentScroll); + } + + /** + * Prevents scrolling the page, when mouse wheel over the grid body. + */ + private preventDocumentScroll(event) { + event.preventDefault(); + } + + private getGridTBody(): HTMLElement { + return this.grid.tbody.nativeElement; + } +} + +/** + * @hidden + */ +@NgModule({ + declarations: [IgxPreventDocumentScrollDirective], + exports: [IgxPreventDocumentScrollDirective] +}) + +export class IgxPreventDocumentScrollModule { } diff --git a/tests/treegrid/src/app/tree-grid-childdatakey-sample/data.ts b/tests/treegrid/src/app/tree-grid-childdatakey-sample/data.ts new file mode 100644 index 000000000..f8e385339 --- /dev/null +++ b/tests/treegrid/src/app/tree-grid-childdatakey-sample/data.ts @@ -0,0 +1,125 @@ +/* eslint-disable @typescript-eslint/naming-convention */ +export const EMPLOYEE_DATA = [ + { + Age: 55, + Employees: [ + { + Age: 43, + Employees: [], + HireDate: new Date(2011, 6, 3), + ID: 3, + Name: 'Michael Burke' + }, + { + Age: 29, + Employees: undefined, + HireDate: new Date(2009, 6, 19), + ID: 2, + Name: 'Thomas Anderson' + }, + { + Age: 31, + Employees: [ + { + Age: 35, + HireDate: new Date(2015, 9, 17), + ID: 6, + Name: 'Roland Mendel' + }, + { + Age: 44, + HireDate: new Date(2009, 10, 11), + ID: 12, + Name: 'Sven Cooper' + } + ], + HireDate: new Date(2014, 8, 18), + ID: 11, + Name: 'Monica Reyes' + }], + HireDate: new Date(2008, 3, 20), + ID: 1, + Name: 'Johnathan Winchester' + }, + { + Age: 42, + Employees: [ + { + Age: 44, + HireDate: new Date(2014, 4, 4), + ID: 14, + Name: 'Laurence Johnson' + }, + { + Age: 25, + Employees: [ + { + Age: 39, + HireDate: new Date(2010, 3, 22), + ID: 13, + Name: 'Trevor Ashworth' + } + ], + HireDate: new Date(2017, 11, 9), + ID: 5, + Name: 'Elizabeth Richards' + }], + HireDate: new Date(2014, 1, 22), + ID: 4, + Name: 'Ana Sanders' + }, + { + Age: 49, + Employees: [ + { + Age: 44, + Employees: [], + HireDate: new Date(2014, 4, 4), + ID: 17, + Name: 'Antonio Moreno' + }], + HireDate: new Date(2014, 1, 22), + ID: 18, + Name: 'Victoria Lincoln' + }, + { + Age: 61, + Employees: [ + { + Age: 50, + Employees: [ + { + Age: 25, + Employees: [], + HireDate: new Date(2017, 11, 9), + ID: 15, + Name: 'Patricia Simpson' + }, + { + Age: 39, + HireDate: new Date(2010, 3, 22), + ID: 9, + Name: 'Francisco Chang' + }, + { + Age: 25, + HireDate: new Date(2018, 3, 18), + ID: 16, + Name: 'Peter Lewis' + } + ], + HireDate: new Date(2007, 11, 18), + ID: 7, + Name: 'Pedro Rodriguez' + }, + { + Age: 27, + HireDate: new Date(2016, 2, 19), + ID: 8, + Name: 'Casey Harper' + }], + HireDate: new Date(2010, 1, 1), + ID: 10, + Name: 'Yang Wang' + } +]; diff --git a/tests/treegrid/src/app/tree-grid-childdatakey-sample/tree-grid-childdatakey-sample.component.html b/tests/treegrid/src/app/tree-grid-childdatakey-sample/tree-grid-childdatakey-sample.component.html new file mode 100644 index 000000000..e7880eef7 --- /dev/null +++ b/tests/treegrid/src/app/tree-grid-childdatakey-sample/tree-grid-childdatakey-sample.component.html @@ -0,0 +1,32 @@ +
+ + + + Employees + + + + + Export to Excel + Export to CSV + + + + + + + + + + + + + + +
diff --git a/tests/treegrid/src/app/tree-grid-childdatakey-sample/tree-grid-childdatakey-sample.component.scss b/tests/treegrid/src/app/tree-grid-childdatakey-sample/tree-grid-childdatakey-sample.component.scss new file mode 100644 index 000000000..2649777ff --- /dev/null +++ b/tests/treegrid/src/app/tree-grid-childdatakey-sample/tree-grid-childdatakey-sample.component.scss @@ -0,0 +1,3 @@ +.grid__wrapper { + margin: 15px; +} diff --git a/tests/treegrid/src/app/tree-grid-childdatakey-sample/tree-grid-childdatakey-sample.component.ts b/tests/treegrid/src/app/tree-grid-childdatakey-sample/tree-grid-childdatakey-sample.component.ts new file mode 100644 index 000000000..99bb75fc3 --- /dev/null +++ b/tests/treegrid/src/app/tree-grid-childdatakey-sample/tree-grid-childdatakey-sample.component.ts @@ -0,0 +1,58 @@ +import { Component, OnInit } from '@angular/core'; +import { GridSelectionMode, IColumnExportingEventArgs, IgxCsvExporterService, IgxExcelExporterService } from 'igniteui-angular'; +import { EMPLOYEE_DATA } from './data'; + +@Component({ + selector: 'app-tree-grid-childdatakey-sample', + styleUrls: ['./tree-grid-childdatakey-sample.component.scss'], + templateUrl: './tree-grid-childdatakey-sample.component.html' +}) +export class TreeGridChilddatakeySampleComponent implements OnInit { + public localData: any[]; + public selectionMode: GridSelectionMode = 'multiple'; + constructor(private excelExporter: IgxExcelExporterService, private csvExporter: IgxCsvExporterService) { + const skipColumnExport = (eventArgs: IColumnExportingEventArgs) => { + eventArgs.cancel = eventArgs.header === 'Performance'; + }; + + this.excelExporter.columnExporting.subscribe(skipColumnExport); + this.csvExporter.columnExporting.subscribe(skipColumnExport); + } + + public ngOnInit() { + const employees = EMPLOYEE_DATA; + for (const employee of employees) { + this.getPerformance(employee); + } + this.localData = employees; + } + + public getPerformance(employee: any): any { + employee['Performance'] = this.getPerformanceData(12); + const hasEmployees = employee.Employees === undefined; + if (hasEmployees) { + return employee; + } else { + for (const employer of employee.Employees) { + this.getPerformance(employer); + } + } + } + + public getPerformanceData(weeks?: number): any[] { + if (weeks === undefined) { + weeks = 20; + } + const performance: any[] = []; + for (let w = 0; w < weeks; w++) { + const value = this.getRandomNumber(0, 100); + // eslint-disable-next-line @typescript-eslint/naming-convention + performance.push({Points: value, Week: w}); + } + return performance; + } + + public getRandomNumber(min: number, max: number): number { + return Math.round(min + Math.random() * (max - min)); + } +} diff --git a/tests/treegrid/src/environments/environment.prod.ts b/tests/treegrid/src/environments/environment.prod.ts new file mode 100644 index 000000000..c9669790b --- /dev/null +++ b/tests/treegrid/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true, +}; diff --git a/tests/treegrid/src/environments/environment.ts b/tests/treegrid/src/environments/environment.ts new file mode 100644 index 000000000..66998ae9a --- /dev/null +++ b/tests/treegrid/src/environments/environment.ts @@ -0,0 +1,16 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build` 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/plugins/zone-error'; // Included with Angular CLI. diff --git a/tests/treegrid/src/index.html b/tests/treegrid/src/index.html new file mode 100644 index 000000000..44cb36c74 --- /dev/null +++ b/tests/treegrid/src/index.html @@ -0,0 +1,31 @@ + + + + + + + + + $OG_TITLE + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/treegrid/src/main.ts b/tests/treegrid/src/main.ts new file mode 100644 index 000000000..551d91605 --- /dev/null +++ b/tests/treegrid/src/main.ts @@ -0,0 +1,16 @@ +import './polyfills'; + +import { enableProdMode } from '@angular/core'; +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/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/tests/treegrid/src/polyfills.ts b/tests/treegrid/src/polyfills.ts new file mode 100644 index 000000000..665b7dacb --- /dev/null +++ b/tests/treegrid/src/polyfills.ts @@ -0,0 +1,58 @@ +/** + * 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'; + +//import 'core-js/es7/array'; // for Array.includes() // 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'; // 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/tests/treegrid/src/styles.scss b/tests/treegrid/src/styles.scss new file mode 100644 index 000000000..aae2eec21 --- /dev/null +++ b/tests/treegrid/src/styles.scss @@ -0,0 +1,49 @@ +@use 'igniteui-angular/theming' as *; +@use 'variables' as *; +@use 'app-layout'; +/* autoprefixer grid: on */ +html, +body { + height: 100%; + overflow: hidden; + margin: 0; +} +@include core(); +@include typography(); +@include theme( + $palette: $palette, + $schema: $schema +); +:root { + @include palette($palette); +} +.light-theme { + @include light-theme($palette); +} +.dark-theme { + background: #333; + color: #fff; + @include dark-theme( + $palette: $green-palette + ); + .grid-chart-contextmenu-wrapper { + @include fluent-dark-theme($fluent-excel-palette); + } + // remove this workaround after resolving https://github.com/IgniteUI/igniteui-angular/issues/13039 + igx-grid, + igx-hierarchical-grid, + igx-pivot-grid, + igx-tree-grid { + --igx-chip-disabled-background: #616161; + --igx-chip-disabled-border-color: #616161; + --igx-chip-disabled-text-color: #BDBDBD; + } +} +.fin-dark-theme { + @include dark-theme($green-palette); + background: #333; + + ::-moz-placeholder { + opacity: 1; + } +} \ No newline at end of file diff --git a/tests/treegrid/tsconfig.app.json b/tests/treegrid/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/tests/treegrid/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/tests/treegrid/tsconfig.json b/tests/treegrid/tsconfig.json new file mode 100644 index 000000000..3e90bf364 --- /dev/null +++ b/tests/treegrid/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": true, + "declaration": false, + "downlevelIteration": true, + "experimentalDecorators": true, + "module": "esnext", + "moduleResolution": "node", + "importHelpers": true, + "target": "es2015", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2018", + "dom" + ] + }, + "angularCompilerOptions": { + "enableIvy": true + } +} \ No newline at end of file