diff --git a/angular.json b/angular.json index 945951e..2f1a296 100644 --- a/angular.json +++ b/angular.json @@ -20,8 +20,10 @@ "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "src/tsconfig.app.json", + "polyfills": [ + "zone.js" + ], + "tsConfig": "tsconfig.app.json", "assets": [ "src/favicon.ico", "src/assets", @@ -36,13 +38,17 @@ "styles": [ "src/styles.scss" ], - "scripts": [], + "scripts": [ + "./node_modules/jquery/dist/jquery.js" + ], "allowedCommonJsDependencies": [ "bootstrap", - "@boldreports/javascript-reporting-controls/Scripts/bold.report-viewer.min", - "@boldreports/javascript-reporting-controls/Scripts/data-visualization/ej.bulletgraph.min", - "@boldreports/javascript-reporting-controls/Scripts/data-visualization/ej.chart.min", - "@boldreports/javascript-reporting-controls/Scripts/bold.report-designer.min", + "prismjs", + "@boldreports/javascript-reporting-controls/Scripts/v2.0/common/bold.reports.common.min", + "@boldreports/javascript-reporting-controls/Scripts/v2.0/common/bold.reports.widgets.min", + "@boldreports/javascript-reporting-controls/Scripts/v2.0/bold.report-viewer.min", + "@boldreports/javascript-reporting-controls/Scripts/v2.0/bold.report-designer.min", + "codemirror/lib/codemirror", "codemirror/addon/hint/show-hint", "codemirror/addon/hint/sql-hint", "codemirror/mode/sql/sql", @@ -72,32 +78,39 @@ "maximumError": "30mb" } ] + }, + "development": { + "outputHashing": "all" } - } + }, + "defaultConfiguration": "production" }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "browserTarget": "reports-cli:build" + "buildTarget": "reports-cli:build" }, "configurations": { "production": { - "browserTarget": "reports-cli:build:production" + "buildTarget": "reports-cli:build:production" } } }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "reports-cli:build" + "buildTarget": "reports-cli:build" } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { "main": "src/test.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "src/tsconfig.spec.json", + "polyfills": [ + "zone.js", + "zone.js/testing" + ], + "tsConfig": "tsconfig.spec.json", "karmaConfig": "src/karma.conf.js", "styles": [ "src/styles.scss" @@ -113,8 +126,8 @@ "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ - "src/tsconfig.app.json", - "src/tsconfig.spec.json" + "tsconfig.app.json", + "tsconfig.spec.json" ], "exclude": [ "**/node_modules/**", @@ -153,6 +166,5 @@ } } } - }, - "defaultProject": "reports-cli" + } } diff --git a/build/build.js b/build/build.js index a687cf8..900dced 100644 --- a/build/build.js +++ b/build/build.js @@ -7,7 +7,7 @@ const ngCli = "node --max_old_space_size=4096 node_modules/@angular/cli/bin/ng"; gulp.task('production-build', (done) => { runSequence('update-extensions-export', 'generate-router', () => { - if (argv.prefix) { + if (argv?.prefix) { exec(`${ngCli} build -c production --base-href ${argv.prefix}`); } else { exec(`${ngCli} build -c production`); diff --git a/build/serve.js b/build/serve.js index feed116..3042156 100644 --- a/build/serve.js +++ b/build/serve.js @@ -6,7 +6,7 @@ const runSequence = require('gulp4-run-sequence'); gulp.task('serve', (done) => { runSequence('update-extensions-export', 'generate-router', () => { - exec(`${ngCli} serve --open --port ${argv.port || ''}`); + exec(`${ngCli} serve --open --port ${argv?.port || ''}`); done(); }); }); diff --git a/package.json b/package.json index c7515ea..b20d549 100644 --- a/package.json +++ b/package.json @@ -8,14 +8,14 @@ "serve": "gulp serve" }, "dependencies": { - "@angular/animations": "^16.1.0", - "@angular/common": "^16.1.0", - "@angular/compiler": "^16.1.0", - "@angular/core": "^16.1.0", - "@angular/forms": "^16.1.0", - "@angular/platform-browser": "^16.1.0", - "@angular/platform-browser-dynamic": "^16.1.0", - "@angular/router": "^16.1.0", + "@angular/animations": "21.0.6", + "@angular/common": "21.0.6", + "@angular/compiler": "21.0.6", + "@angular/core": "21.0.6", + "@angular/forms": "21.0.6", + "@angular/platform-browser": "21.0.6", + "@angular/platform-browser-dynamic": "21.0.6", + "@angular/router": "21.0.6", "@boldreports/angular-reporting-components": "12.1.12", "@boldreports/javascript-reporting-controls": "12.1.12", "@boldreports/javascript-reporting-extensions": "12.1.12", @@ -33,12 +33,12 @@ "rxjs": "6.6.0", "shelljs": "0.8.5", "tslib": "2.0.0", - "zone.js": "0.13.1" + "zone.js": "0.15.1" }, "devDependencies": { - "@angular-devkit/build-angular": "^16.1.0", - "@angular/cli": "~16.1.0", - "@angular/compiler-cli": "^16.1.0", + "@angular-devkit/build-angular": "21.0.4", + "@angular/cli": "21.0.4", + "@angular/compiler-cli": "21.0.6", "@types/jasmine": "2.8.8", "@types/jasminewd2": "2.0.3", "@types/jquery": "3.3.29", @@ -57,7 +57,7 @@ "require-dir": "1.2.0", "ts-node": "8.3.0", "tslint": "6.1.0", - "typescript": "4.9.3", + "typescript": "5.9.3", "typo-js": "1.0.3" } } diff --git a/src/app/common/app.component.ts b/src/app/common/app.component.ts index aa807d9..036f1e5 100644 --- a/src/app/common/app.component.ts +++ b/src/app/common/app.component.ts @@ -13,7 +13,8 @@ type sampleInfo = typeof data; @Component({ selector: 'ej-main', templateUrl: './app.component.html', - styleUrls: ['./app.component.scss'] + styleUrls: ['./app.component.scss'], + standalone: false }) export class AppComponent implements OnInit { tocSlideLeft = false; @@ -63,7 +64,7 @@ export class AppComponent implements OnInit { this.meta.updateTag({ name: 'description', property: 'og:description', content: sampleData.metaData.description }); } - @HostListener('window:resize', ['$event']) + @HostListener('window:resize') onResize(): void { let sampleData: sampleInfo['samples'][0]; this.subscriptions.add(this.routerService.sampleUrl.subscribe((url) => { diff --git a/src/app/common/header/header.component.ts b/src/app/common/header/header.component.ts index 3ad8a06..f40140f 100644 --- a/src/app/common/header/header.component.ts +++ b/src/app/common/header/header.component.ts @@ -9,7 +9,8 @@ const data = samples; @Component({ selector: 'ej-header', templateUrl: './header.component.html', - styleUrls: ['./header.component.scss'] + styleUrls: ['./header.component.scss'], + standalone: false }) export class HeaderComponent { platforms: string[]; diff --git a/src/app/common/main-content/main-content.component.ts b/src/app/common/main-content/main-content.component.ts index 42a602f..36348da 100644 --- a/src/app/common/main-content/main-content.component.ts +++ b/src/app/common/main-content/main-content.component.ts @@ -1,4 +1,4 @@ -import { Component, ViewChild, AfterViewInit, Input, EventEmitter, Output, Renderer2 } from '@angular/core'; +import { Component, ViewChild, AfterViewInit, Input, EventEmitter, Output, Renderer2, ChangeDetectorRef } from '@angular/core'; import { forkJoin, Observable } from 'rxjs'; import { Location } from '@angular/common'; import { Router } from '@angular/router'; @@ -26,7 +26,8 @@ interface CurData { @Component({ selector: 'ej-main-content', templateUrl: './main-content.component.html', - styleUrls: ['./main-content.component.scss'] + styleUrls: ['./main-content.component.scss'], + standalone: false }) export class MainContentComponent implements AfterViewInit { @@ -46,7 +47,7 @@ export class MainContentComponent implements AfterViewInit { @ViewChild('features[2]', { static: true }) feature3; @ViewChild('freeTrialUrl', { static: true }) freeTrialUrl; @ViewChild('copyrightYear', { static: true }) copyrightYear; - constructor(private routerService: RouterService, private http: HttpClient, private router: Router, private location: Location, private renderer: Renderer2) { } + constructor(private routerService: RouterService, private http: HttpClient, private router: Router, private location: Location, private renderer: Renderer2, private cdr: ChangeDetectorRef) { } public loadSourceCode(sampleData: sampleInfo['samples'][0]): void { (jQuery('#parentTab li:first-child a') as any).tab('show'); @@ -93,6 +94,7 @@ export class MainContentComponent implements AfterViewInit { name: `${sampleData.routerPath}.component.html`, body: Prism.highlight(this.getStringWithOutDescription(resultCollection[0], /(\'|\")description/g), Prism.languages.html), id: 'html' }); + this.cdr.detectChanges(); }); } diff --git a/src/app/common/main.component.ts b/src/app/common/main.component.ts index 5cbff79..95b2e8b 100644 --- a/src/app/common/main.component.ts +++ b/src/app/common/main.component.ts @@ -3,7 +3,8 @@ import { Router, NavigationStart, Event, NavigationEnd } from '@angular/router'; import { RouterService } from './router.service'; @Component({ selector: 'app-root', - template: '' + template: '', + standalone: false }) export class MainComponent { constructor(private router: Router, private routerService: RouterService) { diff --git a/src/app/common/preview/preview.component.ts b/src/app/common/preview/preview.component.ts index 0d2e866..c4cd44c 100644 --- a/src/app/common/preview/preview.component.ts +++ b/src/app/common/preview/preview.component.ts @@ -10,7 +10,8 @@ const data = samples; @Component({ selector: 'ej-preview', templateUrl: './preview.component.html', - styleUrls: ['./preview.component.scss'] + styleUrls: ['./preview.component.scss'], + standalone: false }) export class PreviewComponent implements OnInit { @@ -52,7 +53,7 @@ export class PreviewComponent implements OnInit { })); } - @HostListener('window:resize', ['$event']) + @HostListener('window:resize') onResize(): void { this.setReportsHeight(); } diff --git a/src/app/common/sidebar/sidebar.component.ts b/src/app/common/sidebar/sidebar.component.ts index d8fe303..84d1a58 100644 --- a/src/app/common/sidebar/sidebar.component.ts +++ b/src/app/common/sidebar/sidebar.component.ts @@ -8,7 +8,8 @@ const data = samples; @Component({ selector: 'ej-sidebar', templateUrl: './sidebar.component.html', - styleUrls: ['./sidebar.component.scss'] + styleUrls: ['./sidebar.component.scss'], + standalone: false }) export class SidebarComponent { samples: sampleInfo['samples'] = data.samples; diff --git a/src/app/components/barcode/barcode.component.ts b/src/app/components/barcode/barcode.component.ts index b98fb43..d07e5e6 100644 --- a/src/app/components/barcode/barcode.component.ts +++ b/src/app/components/barcode/barcode.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './barcode.component.html', - styleUrls: ['./barcode.component.css'] + styleUrls: ['./barcode.component.css'], + standalone: false }) export class BarcodeComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/cmr-report/cmr-report.component.ts b/src/app/components/cmr-report/cmr-report.component.ts index c33e3aa..1d1990f 100644 --- a/src/app/components/cmr-report/cmr-report.component.ts +++ b/src/app/components/cmr-report/cmr-report.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './cmr-report.component.html', - styleUrls: ['./cmr-report.component.css'] + styleUrls: ['./cmr-report.component.css'], + standalone: false }) export class CMRReportComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/company-sales/company-sales.component.ts b/src/app/components/company-sales/company-sales.component.ts index aa35dd4..9e5d394 100644 --- a/src/app/components/company-sales/company-sales.component.ts +++ b/src/app/components/company-sales/company-sales.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './company-sales.component.html', - styleUrls: ['./company-sales.component.css'] + styleUrls: ['./company-sales.component.css'], + standalone: false }) export class CompanySalesComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/conditional-row-formatting/conditional-row-formatting.component.ts b/src/app/components/conditional-row-formatting/conditional-row-formatting.component.ts index 4152f26..9152c1f 100644 --- a/src/app/components/conditional-row-formatting/conditional-row-formatting.component.ts +++ b/src/app/components/conditional-row-formatting/conditional-row-formatting.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './conditional-row-formatting.component.html', - styleUrls: ['./conditional-row-formatting.component.css'] + styleUrls: ['./conditional-row-formatting.component.css'], + standalone: false }) export class ConditionalRowFormattingComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/consolidated-balance-sheet/consolidated-balance-sheet.component.ts b/src/app/components/consolidated-balance-sheet/consolidated-balance-sheet.component.ts index a63528c..bd7e17c 100644 --- a/src/app/components/consolidated-balance-sheet/consolidated-balance-sheet.component.ts +++ b/src/app/components/consolidated-balance-sheet/consolidated-balance-sheet.component.ts @@ -7,7 +7,8 @@ import { rdlcData } from '../rdlcData'; @Component({ selector: 'ej-sample', templateUrl: './consolidated-balance-sheet.component.html', - styleUrls: ['./consolidated-balance-sheet.component.css'] + styleUrls: ['./consolidated-balance-sheet.component.css'], + standalone: false }) export class ConsolidatedBalanceSheetComponent { @ViewChild('viewer') viewerInst; diff --git a/src/app/components/customer-support-analysis/customer-support-analysis.component.ts b/src/app/components/customer-support-analysis/customer-support-analysis.component.ts index 4ea8fe7..8e03be6 100644 --- a/src/app/components/customer-support-analysis/customer-support-analysis.component.ts +++ b/src/app/components/customer-support-analysis/customer-support-analysis.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './customer-support-analysis.component.html', - styleUrls: ['./customer-support-analysis.component.css'] + styleUrls: ['./customer-support-analysis.component.css'], + standalone: false }) export class CustomerSupportAnalysisComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/data-bar/data-bar.component.ts b/src/app/components/data-bar/data-bar.component.ts index 0062488..3a51f18 100644 --- a/src/app/components/data-bar/data-bar.component.ts +++ b/src/app/components/data-bar/data-bar.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './data-bar.component.html', - styleUrls: ['./data-bar.component.css'] + styleUrls: ['./data-bar.component.css'], + standalone: false }) export class DataBar { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/designer/designer.component.ts b/src/app/components/designer/designer.component.ts index 3cecdc0..3741523 100644 --- a/src/app/components/designer/designer.component.ts +++ b/src/app/components/designer/designer.component.ts @@ -37,7 +37,8 @@ window[pdfSignature] = EJPDFSignature; @Component({ selector: 'ej-sample', templateUrl: './designer.component.html', - styleUrls: ['./designer.component.css'] + styleUrls: ['./designer.component.css'], + standalone: false }) export class DesignerComponent implements AfterViewInit { @ViewChild('designer') designerInst; diff --git a/src/app/components/dynamic-chart-series/dynamic-chart-series.component.ts b/src/app/components/dynamic-chart-series/dynamic-chart-series.component.ts index 71e7a5f..4f3ce34 100644 --- a/src/app/components/dynamic-chart-series/dynamic-chart-series.component.ts +++ b/src/app/components/dynamic-chart-series/dynamic-chart-series.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './dynamic-chart-series.component.html', - styleUrls: ['./dynamic-chart-series.component.css'] + styleUrls: ['./dynamic-chart-series.component.css'], + standalone: false }) export class DynamicChartSeriesComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/dynamic-columns/dynamic-columns.component.ts b/src/app/components/dynamic-columns/dynamic-columns.component.ts index 9602674..839b5c1 100644 --- a/src/app/components/dynamic-columns/dynamic-columns.component.ts +++ b/src/app/components/dynamic-columns/dynamic-columns.component.ts @@ -6,7 +6,8 @@ @Component({ selector: 'ej-sample', templateUrl: './dynamic-columns.component.html', - styleUrls: ['./dynamic-columns.component.css'] + styleUrls: ['./dynamic-columns.component.css'], + standalone: false }) export class DynamicColumnsComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/dynamic-logos/dynamic-logos.component.ts b/src/app/components/dynamic-logos/dynamic-logos.component.ts index dd73e12..33d8c8a 100644 --- a/src/app/components/dynamic-logos/dynamic-logos.component.ts +++ b/src/app/components/dynamic-logos/dynamic-logos.component.ts @@ -6,7 +6,8 @@ @Component({ selector: 'ej-sample', templateUrl: './dynamic-logos.component.html', - styleUrls: ['./dynamic-logos.component.css'] + styleUrls: ['./dynamic-logos.component.css'], + standalone: false }) export class DynamicLogosComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/external-parameter-report/external-parameter-report.component.ts b/src/app/components/external-parameter-report/external-parameter-report.component.ts index 251c6a3..680fcc8 100644 --- a/src/app/components/external-parameter-report/external-parameter-report.component.ts +++ b/src/app/components/external-parameter-report/external-parameter-report.component.ts @@ -13,7 +13,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './external-parameter-report.component.html', - styleUrls: ['./external-parameter-report.component.css'] + styleUrls: ['./external-parameter-report.component.css'], + standalone: false }) export class ExternalParameterReportComponent { @ViewChild('externalparameterreport', { static: false }) externalParameterReport; diff --git a/src/app/components/grouping-aggregate/grouping-aggregate.component.ts b/src/app/components/grouping-aggregate/grouping-aggregate.component.ts index 9a3eb8e..cfd4f09 100644 --- a/src/app/components/grouping-aggregate/grouping-aggregate.component.ts +++ b/src/app/components/grouping-aggregate/grouping-aggregate.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './grouping-aggregate.component.html', - styleUrls: ['./grouping-aggregate.component.css'] + styleUrls: ['./grouping-aggregate.component.css'], + standalone: false }) export class GroupingAggregateComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/hr-payroll/hr-payroll.component.ts b/src/app/components/hr-payroll/hr-payroll.component.ts index 2dd7bea..4c0374a 100644 --- a/src/app/components/hr-payroll/hr-payroll.component.ts +++ b/src/app/components/hr-payroll/hr-payroll.component.ts @@ -6,7 +6,8 @@ @Component({ selector: 'ej-sample', templateUrl: './hr-payroll.component.html', - styleUrls: ['./hr-payroll.component.css'] + styleUrls: ['./hr-payroll.component.css'], + standalone: false }) export class HRPayrollComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/infographics-report/infographics-report.component.ts b/src/app/components/infographics-report/infographics-report.component.ts index ee0fb7a..437af64 100644 --- a/src/app/components/infographics-report/infographics-report.component.ts +++ b/src/app/components/infographics-report/infographics-report.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './infographics-report.component.html', - styleUrls: ['./infographics-report.component.css'] + styleUrls: ['./infographics-report.component.css'], + standalone: false }) export class InfographicsReportComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/invoice/invoice.component.ts b/src/app/components/invoice/invoice.component.ts index 3c7ec8c..4f37f71 100644 --- a/src/app/components/invoice/invoice.component.ts +++ b/src/app/components/invoice/invoice.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './invoice.component.html', - styleUrls: ['./invoice.component.css'] + styleUrls: ['./invoice.component.css'], + standalone: false }) export class InvoiceComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/load-large-data/load-large-data.component.ts b/src/app/components/load-large-data/load-large-data.component.ts index 710a5fa..0e5a4d5 100644 --- a/src/app/components/load-large-data/load-large-data.component.ts +++ b/src/app/components/load-large-data/load-large-data.component.ts @@ -7,7 +7,8 @@ import { rdlcData } from '../rdlcData'; @Component({ selector: 'ej-sample', templateUrl: './load-large-data.component.html', - styleUrls: ['./load-large-data.component.css'] + styleUrls: ['./load-large-data.component.css'], + standalone: false }) export class LoadLargeDataComponent { @ViewChild('viewer') viewerInst; diff --git a/src/app/components/mail-merge/mail-merge.component.ts b/src/app/components/mail-merge/mail-merge.component.ts index 2ac6d0b..ebbc9dc 100644 --- a/src/app/components/mail-merge/mail-merge.component.ts +++ b/src/app/components/mail-merge/mail-merge.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './mail-merge.component.html', - styleUrls: ['./mail-merge.component.css'] + styleUrls: ['./mail-merge.component.css'], + standalone: false }) export class MailMergeComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/multi-language-report/multi-language-report.component.ts b/src/app/components/multi-language-report/multi-language-report.component.ts index 6814707..0422b74 100644 --- a/src/app/components/multi-language-report/multi-language-report.component.ts +++ b/src/app/components/multi-language-report/multi-language-report.component.ts @@ -10,7 +10,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './multi-language-report.component.html', - styleUrls: ['./multi-language-report.component.css'] + styleUrls: ['./multi-language-report.component.css'], + standalone: false }) export class MultiLanguageReportComponent { @ViewChild('multilanguagereport', { static: false }) multiLanguageReport; diff --git a/src/app/components/northwind-products-suppliers-report/northwind-products-suppliers-report.component.ts b/src/app/components/northwind-products-suppliers-report/northwind-products-suppliers-report.component.ts index 1dab0b2..bb2ccb8 100644 --- a/src/app/components/northwind-products-suppliers-report/northwind-products-suppliers-report.component.ts +++ b/src/app/components/northwind-products-suppliers-report/northwind-products-suppliers-report.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './northwind-products-suppliers-report.component.html', - styleUrls: ['./northwind-products-suppliers-report.component.css'] + styleUrls: ['./northwind-products-suppliers-report.component.css'], + standalone: false }) export class NorthwindProductsSuppliersReportComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/parameter-customization/parameter-customization.component.ts b/src/app/components/parameter-customization/parameter-customization.component.ts index cb37e4d..dae3c49 100644 --- a/src/app/components/parameter-customization/parameter-customization.component.ts +++ b/src/app/components/parameter-customization/parameter-customization.component.ts @@ -9,6 +9,7 @@ import { DateTimePicker } from '@syncfusion/ej2-angular-calendars'; selector: 'ej-sample', templateUrl: './parameter-customization.component.html', styleUrls: ['./parameter-customization.component.css'], + standalone: false }) export class ParameterCustomizationComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/patient-experience-analysis/patient-experience-analysis.component.ts b/src/app/components/patient-experience-analysis/patient-experience-analysis.component.ts index 9534e35..73082e3 100644 --- a/src/app/components/patient-experience-analysis/patient-experience-analysis.component.ts +++ b/src/app/components/patient-experience-analysis/patient-experience-analysis.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './patient-experience-analysis.component.html', - styleUrls: ['./patient-experience-analysis.component.css'] + styleUrls: ['./patient-experience-analysis.component.css'], + standalone: false }) export class PatientExperienceAnalysisComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/paystub/paystub.component.ts b/src/app/components/paystub/paystub.component.ts index f3b2e41..9246e4c 100644 --- a/src/app/components/paystub/paystub.component.ts +++ b/src/app/components/paystub/paystub.component.ts @@ -7,7 +7,8 @@ import { rdlcData } from '../rdlcData'; @Component({ selector: 'ej-sample', templateUrl: './paystub.component.html', - styleUrls: ['./paystub.component.css'] + styleUrls: ['./paystub.component.css'], + standalone: false }) export class PaystubComponent { @ViewChild('viewer') viewerInst; diff --git a/src/app/components/personal-expense-analysis/personal-expense-analysis.component.ts b/src/app/components/personal-expense-analysis/personal-expense-analysis.component.ts index 96e1018..95cc8c8 100644 --- a/src/app/components/personal-expense-analysis/personal-expense-analysis.component.ts +++ b/src/app/components/personal-expense-analysis/personal-expense-analysis.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './personal-expense-analysis.component.html', - styleUrls: ['./personal-expense-analysis.component.css'] + styleUrls: ['./personal-expense-analysis.component.css'], + standalone: false }) export class PersonalExpenseAnalysisComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/powerpoint-report/powerpoint-report.component.ts b/src/app/components/powerpoint-report/powerpoint-report.component.ts index cf9bf21..3d302a7 100644 --- a/src/app/components/powerpoint-report/powerpoint-report.component.ts +++ b/src/app/components/powerpoint-report/powerpoint-report.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './powerpoint-report.component.html', - styleUrls: ['./powerpoint-report.component.css'] + styleUrls: ['./powerpoint-report.component.css'], + standalone: false }) export class PowerpointReportComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/product-catalog/product-catalog.component.ts b/src/app/components/product-catalog/product-catalog.component.ts index 9d60951..b98b298 100644 --- a/src/app/components/product-catalog/product-catalog.component.ts +++ b/src/app/components/product-catalog/product-catalog.component.ts @@ -7,7 +7,8 @@ import { rdlcData } from '../rdlcData'; @Component({ selector: 'ej-sample', templateUrl: './product-catalog.component.html', - styleUrls: ['./product-catalog.component.css'] + styleUrls: ['./product-catalog.component.css'], + standalone: false }) export class ProductCatalogComponent { @ViewChild('viewer') viewerInst; diff --git a/src/app/components/product-details/product-details.component.ts b/src/app/components/product-details/product-details.component.ts index e62ede0..c596612 100644 --- a/src/app/components/product-details/product-details.component.ts +++ b/src/app/components/product-details/product-details.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './product-details.component.html', - styleUrls: ['./product-details.component.css'] + styleUrls: ['./product-details.component.css'], + standalone: false }) export class ProductDetailsComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/product-line-sales/product-line-sales.component.ts b/src/app/components/product-line-sales/product-line-sales.component.ts index 897499f..e5ed615 100644 --- a/src/app/components/product-line-sales/product-line-sales.component.ts +++ b/src/app/components/product-line-sales/product-line-sales.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './product-line-sales.component.html', - styleUrls: ['./product-line-sales.component.css'] + styleUrls: ['./product-line-sales.component.css'], + standalone: false }) export class ProductLineSalesComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/rdlc/rdlc.component.ts b/src/app/components/rdlc/rdlc.component.ts index 86f1cfb..04b467a 100644 --- a/src/app/components/rdlc/rdlc.component.ts +++ b/src/app/components/rdlc/rdlc.component.ts @@ -39,7 +39,8 @@ window[pdfSignature] = EJPDFSignature; @Component({ selector: 'ej-sample', templateUrl: './rdlc.component.html', - styleUrls: ['./rdlc.component.css'] + styleUrls: ['./rdlc.component.css'], + standalone: false }) export class RDLCComponent implements AfterViewInit { @ViewChild('designer') designerInst; diff --git a/src/app/components/sales-by-year/sales-by-year.component.ts b/src/app/components/sales-by-year/sales-by-year.component.ts index 0874061..7f9527a 100644 --- a/src/app/components/sales-by-year/sales-by-year.component.ts +++ b/src/app/components/sales-by-year/sales-by-year.component.ts @@ -7,7 +7,8 @@ import { rdlcData } from '../rdlcData'; @Component({ selector: 'ej-sample', templateUrl: './sales-by-year.component.html', - styleUrls: ['./sales-by-year.component.css'] + styleUrls: ['./sales-by-year.component.css'], + standalone: false }) export class SalesByYearComponent { @ViewChild('viewer') viewerInst; diff --git a/src/app/components/sales-order-detail/sales-order-detail.component.ts b/src/app/components/sales-order-detail/sales-order-detail.component.ts index 7f49199..88d8993 100644 --- a/src/app/components/sales-order-detail/sales-order-detail.component.ts +++ b/src/app/components/sales-order-detail/sales-order-detail.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './sales-order-detail.component.html', - styleUrls: ['./sales-order-detail.component.css'] + styleUrls: ['./sales-order-detail.component.css'], + standalone: false }) export class SalesOrderDetailComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/sales-report/sales-report.component.ts b/src/app/components/sales-report/sales-report.component.ts index 6eb5a87..f5698ac 100644 --- a/src/app/components/sales-report/sales-report.component.ts +++ b/src/app/components/sales-report/sales-report.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './sales-report.component.html', - styleUrls: ['./sales-report.component.css'] + styleUrls: ['./sales-report.component.css'], + standalone: false }) export class SalesReportComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/spark-line/spark-line.component.ts b/src/app/components/spark-line/spark-line.component.ts index 1e08a77..9234fca 100644 --- a/src/app/components/spark-line/spark-line.component.ts +++ b/src/app/components/spark-line/spark-line.component.ts @@ -7,7 +7,8 @@ import { rdlcData } from '../rdlcData'; @Component({ selector: 'ej-sample', templateUrl: './spark-line.component.html', - styleUrls: ['./spark-line.component.css'] + styleUrls: ['./spark-line.component.css'], + standalone: false }) export class SparkLine { @ViewChild('viewer') viewerInst; diff --git a/src/app/components/sub-report/sub-report.component.ts b/src/app/components/sub-report/sub-report.component.ts index d6f10e5..ad27722 100644 --- a/src/app/components/sub-report/sub-report.component.ts +++ b/src/app/components/sub-report/sub-report.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './sub-report.component.html', - styleUrls: ['./sub-report.component.css'] + styleUrls: ['./sub-report.component.css'], + standalone: false }) export class SubReportComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/territory-sales/territory-sales.component.ts b/src/app/components/territory-sales/territory-sales.component.ts index 2353a11..fa915a2 100644 --- a/src/app/components/territory-sales/territory-sales.component.ts +++ b/src/app/components/territory-sales/territory-sales.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './territory-sales.component.html', - styleUrls: ['./territory-sales.component.css'] + styleUrls: ['./territory-sales.component.css'], + standalone: false }) export class TerritorySalesComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/tickets-sales-analysis/tickets-sales-analysis.component.ts b/src/app/components/tickets-sales-analysis/tickets-sales-analysis.component.ts index c3e3d4f..444b693 100644 --- a/src/app/components/tickets-sales-analysis/tickets-sales-analysis.component.ts +++ b/src/app/components/tickets-sales-analysis/tickets-sales-analysis.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './tickets-sales-analysis.component.html', - styleUrls: ['./tickets-sales-analysis.component.css'] + styleUrls: ['./tickets-sales-analysis.component.css'], + standalone: false }) export class TicketsSalesComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/transcript-report/transcript-report.component.ts b/src/app/components/transcript-report/transcript-report.component.ts index c84a3ca..d942bb9 100644 --- a/src/app/components/transcript-report/transcript-report.component.ts +++ b/src/app/components/transcript-report/transcript-report.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './transcript-report.component.html', - styleUrls: ['./transcript-report.component.css'] + styleUrls: ['./transcript-report.component.css'], + standalone: false }) export class TranscriptReportComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/app/components/website-visitor-analysis/website-visitor-analysis.component.ts b/src/app/components/website-visitor-analysis/website-visitor-analysis.component.ts index 11574ac..39a0736 100644 --- a/src/app/components/website-visitor-analysis/website-visitor-analysis.component.ts +++ b/src/app/components/website-visitor-analysis/website-visitor-analysis.component.ts @@ -6,7 +6,8 @@ import { Globals } from '../globals'; @Component({ selector: 'ej-sample', templateUrl: './website-visitor-analysis.component.html', - styleUrls: ['./website-visitor-analysis.component.css'] + styleUrls: ['./website-visitor-analysis.component.css'], + standalone: false }) export class WebsiteVisitorAnalysisComponent { // Specifies the report Web API service URL. It is used to process the reports. diff --git a/src/polyfills.ts b/src/polyfills.ts deleted file mode 100644 index c474b8d..0000000 --- a/src/polyfills.ts +++ /dev/null @@ -1,69 +0,0 @@ -import * as jquery from 'jquery'; - -let windowInstance = (window as { [key: string]: any }); -windowInstance['jQuery'] = jquery; -windowInstance['$'] = jquery; - -/** - * This file includes polyfills needed by Angular and is loaded before the app. - * You can add your own extra polyfills to this file. - * - * This file is divided into 2 sections: - * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. - * 2. Application imports. Files imported after ZoneJS that should be loaded before your main - * file. - * - * The current setup is for so-called "evergreen" browsers; the last versions of browsers that - * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), - * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. - * - * Learn more in https://angular.io/guide/browser-support - */ - -/*************************************************************************************************** - * BROWSER POLYFILLS - */ - -/** IE10 and IE11 requires the following for NgClass support on SVG elements */ -// import 'classlist.js'; // Run `npm install --save classlist.js`. - -/** - * Web Animations `@angular/platform-browser/animations` - * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. - * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). - */ -// import 'web-animations-js'; // Run `npm install --save web-animations-js`. - -/** - * By default, zone.js will patch all possible macroTask and DomEvents - * user can disable parts of macroTask/DomEvents patch by setting following flags - * because those flags need to be set before `zone.js` being loaded, and webpack - * will put import in the top of bundle, so user need to create a separate file - * in this directory (for example: zone-flags.ts), and put the following flags - * into that file, and then add the following code before importing zone.js. - * import './zone-flags.ts'; - * - * The flags allowed in zone-flags.ts are listed here. - * - * The following flags will work for all browsers. - * - * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame - * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick - * (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames - * - * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js - * with the following flag, it will bypass `zone.js` patch for IE/Edge - * - * (window as any).__Zone_enable_cross_context_check = true; - * - */ - -/*************************************************************************************************** - * Zone JS is required by default for Angular itself. - */ -import 'zone.js/dist/zone'; // Included with Angular CLI. - - -/*************************************************************************************************** - * APPLICATION IMPORTS - */ diff --git a/src/tsconfig.app.json b/src/tsconfig.app.json deleted file mode 100644 index 9817e86..0000000 --- a/src/tsconfig.app.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/app", - "types": [ - "jquery", - "reports.all" - ] - }, - "exclude": [ - "test.ts", - "**/*.spec.ts", - "demos" - ], - "files": [ - "./main.ts", - "./polyfills.ts" - ], - "include": [ - "./**/*.d.ts" - ] -} \ No newline at end of file diff --git a/src/tsconfig.spec.json b/src/tsconfig.spec.json deleted file mode 100644 index de77336..0000000 --- a/src/tsconfig.spec.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/spec", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "test.ts", - "polyfills.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/tsconfig.app.json b/tsconfig.app.json new file mode 100644 index 0000000..cde279b --- /dev/null +++ b/tsconfig.app.json @@ -0,0 +1,21 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", + "typeRoots": [ + "node_modules/@types", + "node_modules/@boldreports/types" + ], + "types": [ + "jquery", + "reports.all" + ] + }, + "files": [ + "src/main.ts" + ], + "include": [ + "src/**/*.d.ts" + ] +} diff --git a/tsconfig.json b/tsconfig.json index cff91ef..bb737df 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,21 +6,16 @@ "sourceMap": true, "declaration": false, "module": "es2015", - "moduleResolution": "node", + "moduleResolution": "bundler", "emitDecoratorMetadata": true, "experimentalDecorators": true, - "resolveJsonModule": true, "importHelpers": true, + "resolveJsonModule": true, "target": "ES2022", - "typeRoots": [ - "node_modules/@types", - "node_modules/@boldreports/types" - ], + "esModuleInterop": true, "lib": [ - "es2018", + "ES2022", "dom" - ], - "allowSyntheticDefaultImports": true, - "esModuleInterop": true + ] } } diff --git a/tsconfig.spec.json b/tsconfig.spec.json new file mode 100644 index 0000000..be7e9da --- /dev/null +++ b/tsconfig.spec.json @@ -0,0 +1,14 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/spec", + "types": [ + "jasmine" + ] + }, + "include": [ + "src/**/*.spec.ts", + "src/**/*.d.ts" + ] +}