@sachin9822/reports-lib 0.0.86 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.d.ts +62 -0
- package/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.d.ts +8 -0
- package/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.d.ts +18 -0
- package/lib/reports-lib-routing.module.d.ts +6 -0
- package/lib/reports-lib.component.d.ts +8 -0
- package/lib/reports-lib.module.d.ts +15 -0
- package/lib/reports-lib.service.d.ts +6 -0
- package/lib/services/report.service.d.ts +16 -0
- package/lib/shared/export.service.d.ts +31 -0
- package/package.json +6 -5
package/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.d.ts
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
import { ErrorHandler, Injector, OnInit } from '@angular/core';
|
2
|
+
import { ReportService } from '../../services/report.service';
|
3
|
+
import { AccGlDetailsEnquiryReportModel } from '../../models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel';
|
4
|
+
import { ColDef, ColumnApi, GridApi, GridReadyEvent } from 'ag-grid-community';
|
5
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
6
|
+
import { HttpClient } from '@angular/common/http';
|
7
|
+
import 'jspdf-autotable';
|
8
|
+
import { ExportService } from '../../shared/export.service';
|
9
|
+
import * as i0 from "@angular/core";
|
10
|
+
declare module 'jspdf' {
|
11
|
+
interface jsPDF {
|
12
|
+
autoTable: (options: any) => jsPDF;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
export declare class AccGlDetailsEnquiryReportComponent implements OnInit {
|
16
|
+
private exportService;
|
17
|
+
private reportService;
|
18
|
+
private http;
|
19
|
+
private sanitizer;
|
20
|
+
private errorHandler;
|
21
|
+
private injector;
|
22
|
+
searchText: string;
|
23
|
+
gridApi: GridApi<any>;
|
24
|
+
gridColumnApi: ColumnApi;
|
25
|
+
selectedExportOption: string;
|
26
|
+
pageSize: number;
|
27
|
+
svgLoader: SafeHtml;
|
28
|
+
loading: boolean;
|
29
|
+
dataReady: boolean;
|
30
|
+
dateTypeFilter: number;
|
31
|
+
dateType: any;
|
32
|
+
sysCompanyCode: any;
|
33
|
+
sysUserId: any;
|
34
|
+
companyName: any;
|
35
|
+
reportUser: any;
|
36
|
+
reportTime: any;
|
37
|
+
date: any;
|
38
|
+
currentReportFormattedDate: any;
|
39
|
+
accGlDetailsEnquiryReportModel: AccGlDetailsEnquiryReportModel;
|
40
|
+
rowData: any[];
|
41
|
+
defaultColDef: ColDef;
|
42
|
+
columnDefs: ColDef[];
|
43
|
+
constructor(exportService: ExportService, reportService: ReportService, http: HttpClient, sanitizer: DomSanitizer, errorHandler: ErrorHandler, injector: Injector);
|
44
|
+
ngOnInit(): void;
|
45
|
+
getAccGLDetailsReport(): void;
|
46
|
+
formatDate(params: any): string;
|
47
|
+
convertToDateFromDatepicker(): string | undefined;
|
48
|
+
onDateChange(event: Event): void;
|
49
|
+
onEnterKey(event: Event): void;
|
50
|
+
onEnterhandleExport(event: Event): void;
|
51
|
+
onGridReady(params: GridReadyEvent): void;
|
52
|
+
onPageSizeChanged(): void;
|
53
|
+
getRowHeight(params: any): number;
|
54
|
+
formatNumber(params: any): string;
|
55
|
+
onSearch(): void;
|
56
|
+
handleExport(): void;
|
57
|
+
exportToPdf(): Promise<void>;
|
58
|
+
exportToExcel(): void;
|
59
|
+
exportToCsv(): void;
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccGlDetailsEnquiryReportComponent, never>;
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccGlDetailsEnquiryReportComponent, "lib-acc-gl-details-enquiry-report", never, {}, {}, never, never, false>;
|
62
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export interface journalVoucherEntryModel {
|
2
|
+
journalID: string;
|
3
|
+
transactionNo: string;
|
4
|
+
transactionCode: string;
|
5
|
+
journalType: string;
|
6
|
+
postingDate: string;
|
7
|
+
valueDate: Date;
|
8
|
+
description: string;
|
9
|
+
accountCode: string;
|
10
|
+
currency: string;
|
11
|
+
rate: string;
|
12
|
+
forexDebit: string;
|
13
|
+
localDebit: string;
|
14
|
+
forexCredit: string;
|
15
|
+
localCredit: string;
|
16
|
+
id: number;
|
17
|
+
rateDecimal: number;
|
18
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class ReportsLibRoutingModule {
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportsLibRoutingModule, never>;
|
4
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ReportsLibRoutingModule, never, never, never>;
|
5
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ReportsLibRoutingModule>;
|
6
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class ReportsLibComponent implements OnInit {
|
4
|
+
constructor();
|
5
|
+
ngOnInit(): void;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportsLibComponent, never>;
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReportsLibComponent, "lib-reports-lib", never, {}, {}, never, never, false>;
|
8
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./reports-lib.component";
|
3
|
+
import * as i2 from "./components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component";
|
4
|
+
import * as i3 from "ag-grid-angular";
|
5
|
+
import * as i4 from "./reports-lib-routing.module";
|
6
|
+
import * as i5 from "@angular/common";
|
7
|
+
import * as i6 from "@ng-idle/core";
|
8
|
+
import * as i7 from "angular-oauth2-oidc";
|
9
|
+
import * as i8 from "@angular/forms";
|
10
|
+
import * as i9 from "@angular/router";
|
11
|
+
export declare class ReportsLibModule {
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportsLibModule, never>;
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ReportsLibModule, [typeof i1.ReportsLibComponent, typeof i2.AccGlDetailsEnquiryReportComponent], [typeof i3.AgGridModule, typeof i4.ReportsLibRoutingModule, typeof i5.CommonModule, typeof i6.NgIdleModule, typeof i7.OAuthModule, typeof i8.FormsModule, typeof i9.RouterModule], [typeof i1.ReportsLibComponent, typeof i2.AccGlDetailsEnquiryReportComponent]>;
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ReportsLibModule>;
|
15
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
2
|
+
import { ErrorHandler, Injector } from '@angular/core';
|
3
|
+
import { AccGlDetailsEnquiryReportModel } from '../models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel';
|
4
|
+
import { Observable } from 'rxjs';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class ReportService {
|
7
|
+
private http;
|
8
|
+
private errorHandler;
|
9
|
+
private injector;
|
10
|
+
private serviceUrl;
|
11
|
+
constructor(http: HttpClient, errorHandler: ErrorHandler, injector: Injector);
|
12
|
+
getAccGLDetailsReport(formattedDate: string | undefined, dateType: string, sysCompanyCode: string, sysUserId: string, companyName: string): Observable<AccGlDetailsEnquiryReportModel>;
|
13
|
+
getUserNameFromSessionStorage(): string;
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportService, never>;
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ReportService>;
|
16
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import 'jspdf-autotable';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
declare module 'jspdf' {
|
4
|
+
interface jsPDF {
|
5
|
+
autoTable: (options: any) => jsPDF;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
export declare class ExportService {
|
9
|
+
private readonly pdfFontSize;
|
10
|
+
private readonly pdfLineHeight;
|
11
|
+
private readonly pdfLeftMargin;
|
12
|
+
private logoBase64;
|
13
|
+
constructor();
|
14
|
+
private loadImageAsBase64;
|
15
|
+
formatDate(value: any): string;
|
16
|
+
formatDateTime(date: Date): string;
|
17
|
+
generateReportMetadata(metadata: [string, string][]): [string, string][];
|
18
|
+
prepareExportTable(data: any[], columnDefs: any[], options?: {
|
19
|
+
excludeFields?: string[];
|
20
|
+
currencyFields?: string[];
|
21
|
+
}): {
|
22
|
+
headers: string[];
|
23
|
+
rows: any[][];
|
24
|
+
};
|
25
|
+
exportToPdfUniversal(title: string, metadata: [string, string][], headers: string[], rows: any[][], fileName: string): Promise<void>;
|
26
|
+
exportToExcelUniversal(title: string, metadata: [string, string][], headers: string[], rows: any[][], fileName: string): void;
|
27
|
+
exportToCsvUniversal(title: string, metadata: [string, string][], headers: string[], rows: any[][], fileName: string): void;
|
28
|
+
private downloadFile;
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportService, never>;
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExportService>;
|
31
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sachin9822/reports-lib",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.88",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/common": "^14.2.0",
|
6
6
|
"@angular/core": "^14.2.0"
|
@@ -16,15 +16,17 @@
|
|
16
16
|
"esm2020",
|
17
17
|
"esm2015",
|
18
18
|
"assets",
|
19
|
+
"lib",
|
20
|
+
"public-api.d.ts",
|
19
21
|
"package.json",
|
20
|
-
"README.md"
|
21
|
-
"public-api.d.ts"
|
22
|
+
"README.md"
|
22
23
|
],
|
23
24
|
"module": "fesm2015/sachin9822-reports-lib.mjs",
|
24
25
|
"es2020": "fesm2020/sachin9822-reports-lib.mjs",
|
25
26
|
"esm2020": "esm2020/sachin9822-reports-lib.mjs",
|
26
27
|
"fesm2020": "fesm2020/sachin9822-reports-lib.mjs",
|
27
28
|
"fesm2015": "fesm2015/sachin9822-reports-lib.mjs",
|
29
|
+
"sideEffects": false,
|
28
30
|
"exports": {
|
29
31
|
"./package.json": {
|
30
32
|
"default": "./package.json"
|
@@ -37,6 +39,5 @@
|
|
37
39
|
"node": "./fesm2015/sachin9822-reports-lib.mjs",
|
38
40
|
"default": "./fesm2020/sachin9822-reports-lib.mjs"
|
39
41
|
}
|
40
|
-
}
|
41
|
-
"sideEffects": false
|
42
|
+
}
|
42
43
|
}
|