From 681f27b4d4e1e57a03ed533207ee41ec34380cea Mon Sep 17 00:00:00 2001 From: vishnu Date: Fri, 3 May 2024 12:26:58 +0530 Subject: [PATCH] feature(REPORT-327626): angular samples --- package.json | 2 +- src/app/common/header/header.component.html | 2 +- src/app/common/header/header.component.ts | 11 +--- .../main-content/main-content.component.html | 16 ++--- .../main-content/main-content.component.scss | 15 +++-- src/app/common/preview/preview.component.html | 6 +- src/app/common/preview/preview.component.scss | 1 + src/app/common/preview/preview.component.ts | 5 +- src/app/common/sidebar/sidebar.component.scss | 4 +- .../components/barcode/barcode.component.html | 2 +- .../consolidated-balance-sheet.component.html | 2 +- .../customer-support-analysis.component.html | 2 +- .../designer/designer.component.html | 2 +- .../components/designer/designer.component.ts | 48 ++++++++++++-- .../external-parameter-report.component.css | 13 +++- .../external-parameter-report.component.html | 13 ++-- .../external-parameter-report.component.ts | 8 +++ src/app/components/globals.ts | 8 ++- .../components/invoice/invoice.component.html | 2 +- .../mail-merge/mail-merge.component.html | 2 +- ...d-products-suppliers-report.component.html | 2 +- ...patient-experience-analysis.component.html | 2 +- .../personal-expense-analysis.component.html | 2 +- .../powerpoint-report.component.css | 0 .../powerpoint-report.component.html | 18 ++++++ .../powerpoint-report.component.ts | 24 +++++++ src/app/components/rdlc/rdlc.component.html | 2 +- src/app/components/rdlc/rdlc.component.ts | 39 +++++++++-- .../sales-by-year.component.html | 2 +- .../sales-order-detail.component.html | 2 +- src/app/components/samples.json | 61 +++++++++++++----- .../sub-report/sub-report.component.html | 2 +- .../sub-report/sub-report.component.ts | 2 +- .../transcript-report.component.css | 0 .../transcript-report.component.html | 20 ++++++ .../transcript-report.component.ts | 23 +++++++ .../website-visitor-analysis.component.html | 2 +- src/assets/sidebar/landscape.png | Bin 799370 -> 703480 bytes src/assets/sidebar/portrait.png | Bin 2079957 -> 702168 bytes src/index.html | 4 +- src/styles.scss | 4 -- 41 files changed, 280 insertions(+), 95 deletions(-) create mode 100644 src/app/components/powerpoint-report/powerpoint-report.component.css create mode 100644 src/app/components/powerpoint-report/powerpoint-report.component.html create mode 100644 src/app/components/powerpoint-report/powerpoint-report.component.ts create mode 100644 src/app/components/transcript-report/transcript-report.component.css create mode 100644 src/app/components/transcript-report/transcript-report.component.html create mode 100644 src/app/components/transcript-report/transcript-report.component.ts diff --git a/package.json b/package.json index 8663e2b..dfb6d73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-samples", - "version": "5.4.20", + "version": "6.1.34", "scripts": { "test": "gulp test", "postinstall": "gulp copy", diff --git a/src/app/common/header/header.component.html b/src/app/common/header/header.component.html index 17d9ae2..19395a3 100644 --- a/src/app/common/header/header.component.html +++ b/src/app/common/header/header.component.html @@ -20,6 +20,6 @@ Product Detail - Try it Free + Try it Free \ No newline at end of file diff --git a/src/app/common/header/header.component.ts b/src/app/common/header/header.component.ts index fad8890..3ad8a06 100644 --- a/src/app/common/header/header.component.ts +++ b/src/app/common/header/header.component.ts @@ -39,8 +39,7 @@ export class HeaderComponent { } platformSamplePath = this.getRouterPath(this.platformName, platform, sampleName); const reportPath = routerData.reportRouterPath ? (platformBasePath + '/' + platformSamplePath) : platformSamplePath; - const url: string = location.origin.indexOf('demos.boldreports.com') !== -1 ? '/' : '/demos/'; - window.open(this.document.location.origin + url + data.otherPlatforms[platform] + reportPath, '_self'); + window.open(this.document.location.origin + "/" + data.otherPlatforms[platform] + reportPath, '_self'); } private getRouterPath(curPlatform: string, targetplatform: string, sampleName: string): string { @@ -51,17 +50,9 @@ export class HeaderComponent { if (samePath) { return sampleName; } else { - if (curPlatform.indexOf('asp') !== -1) { return sampleName.split(/(?=[A-Z])/).map((name) => { return name.toLowerCase(); }).join('-'); - - } else { - return sampleName.split(/-/).map((name) => { - return name.charAt(0).toUpperCase() + name.slice(1); - }).join(''); - - } } } } diff --git a/src/app/common/main-content/main-content.component.html b/src/app/common/main-content/main-content.component.html index ea89808..08b2dc0 100644 --- a/src/app/common/main-content/main-content.component.html +++ b/src/app/common/main-content/main-content.component.html @@ -60,20 +60,20 @@