@sachin9822/reports-lib 0.0.126 → 0.0.128
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/esm2020/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.mjs +3 -3
- package/esm2020/lib/components/branch-activity-send-report/branch-activity-send-report.component.mjs +886 -0
- package/esm2020/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.mjs +6 -0
- package/esm2020/lib/models/branch-activity-report/branch-activity-send-report.mjs +3 -0
- package/esm2020/lib/models/component-loading-states.mjs +7 -0
- package/esm2020/lib/reports-lib.module.mjs +45 -13
- package/esm2020/lib/services/report.service.mjs +36 -1
- package/esm2020/lib/shared/loader/loader.component.mjs +11 -0
- package/esm2020/lib/shared/page-size-selector/page-size-selector.component.mjs +3 -3
- package/esm2020/public-api.mjs +9 -2
- package/fesm2015/sachin9822-reports-lib.mjs +1062 -96
- package/fesm2015/sachin9822-reports-lib.mjs.map +1 -1
- package/fesm2020/sachin9822-reports-lib.mjs +1052 -96
- package/fesm2020/sachin9822-reports-lib.mjs.map +1 -1
- package/lib/components/branch-activity-send-report/branch-activity-send-report.component.d.ts +100 -0
- package/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.d.ts +13 -0
- package/lib/models/branch-activity-report/branch-activity-send-report.d.ts +20 -0
- package/lib/models/component-loading-states.d.ts +5 -0
- package/lib/reports-lib.module.d.ts +12 -8
- package/lib/services/report.service.d.ts +8 -1
- package/lib/shared/loader/loader.component.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -1
@@ -0,0 +1,100 @@
|
|
1
|
+
import { NgZone, OnInit } from '@angular/core';
|
2
|
+
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
3
|
+
import { ReportService } from '../../services/report.service';
|
4
|
+
import { BranchActivityReport } from '../../models/branch-activity-report/branch-activity-send-report';
|
5
|
+
import { ColDef, GridReadyEvent } from 'ag-grid-community';
|
6
|
+
import { BranchActivitySendReportRequestDomainModel } from '../../models/branch-activity-report/branch-activity-send-report-request-domain-model';
|
7
|
+
import { ComponentLoadingStates } from '../../models/component-loading-states';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
export declare class BranchActivitySendReportComponent implements OnInit {
|
10
|
+
private formBuilder;
|
11
|
+
private reportService;
|
12
|
+
private ngZone;
|
13
|
+
dataMap: Record<string, BranchActivityReport[]>;
|
14
|
+
filteredData: Record<string, BranchActivityReport[]>;
|
15
|
+
proxyData: Record<string, BranchActivityReport[]>;
|
16
|
+
form: FormGroup;
|
17
|
+
countries: any;
|
18
|
+
params: any;
|
19
|
+
fromDate: any;
|
20
|
+
toDate: any;
|
21
|
+
clients: any;
|
22
|
+
clientsData: any;
|
23
|
+
clientBranches: any;
|
24
|
+
showReport: boolean;
|
25
|
+
ranges: any[];
|
26
|
+
paginationPageSize: number;
|
27
|
+
paginationArray: any[];
|
28
|
+
showRange: boolean;
|
29
|
+
isAgentSelected: boolean;
|
30
|
+
selectedExportOption: string;
|
31
|
+
gridAPi: any;
|
32
|
+
gridColumnApi: any;
|
33
|
+
user: string;
|
34
|
+
reportDate: string;
|
35
|
+
searchText: string;
|
36
|
+
buffer: any;
|
37
|
+
myStatus: FormArray;
|
38
|
+
status: string[];
|
39
|
+
errorMessage: string;
|
40
|
+
sysUserId: string;
|
41
|
+
private logoBase64;
|
42
|
+
message: string;
|
43
|
+
ComponentLoadingState: typeof ComponentLoadingStates;
|
44
|
+
loadingState: ComponentLoadingStates;
|
45
|
+
exportFormats: {
|
46
|
+
formatName: string;
|
47
|
+
code: string;
|
48
|
+
}[];
|
49
|
+
showStatusDropdown: boolean;
|
50
|
+
showClients: boolean;
|
51
|
+
showCurrency: boolean;
|
52
|
+
showProduct: boolean;
|
53
|
+
showSendCountry: boolean;
|
54
|
+
showReceiveCountry: boolean;
|
55
|
+
showBranch: boolean;
|
56
|
+
disableToDate: boolean;
|
57
|
+
showError: boolean;
|
58
|
+
showMessage: boolean;
|
59
|
+
selectAll: boolean;
|
60
|
+
noDataFound: boolean;
|
61
|
+
clientSelected: boolean;
|
62
|
+
activeBranch: number;
|
63
|
+
columnDefs: ColDef<BranchActivityReport>[];
|
64
|
+
defaultColDef: {
|
65
|
+
sortable: boolean;
|
66
|
+
filter: boolean;
|
67
|
+
resizable: boolean;
|
68
|
+
minwidth: number;
|
69
|
+
wrapHeaderText: boolean;
|
70
|
+
autoHeaderHeight: boolean;
|
71
|
+
suppressSizeToFit: boolean;
|
72
|
+
wrapText: boolean;
|
73
|
+
};
|
74
|
+
rowData: BranchActivityReport[];
|
75
|
+
constructor(formBuilder: FormBuilder, reportService: ReportService, ngZone: NgZone);
|
76
|
+
reportTheme: import("@ag-grid-community/theming").Theme<import("@ag-grid-community/theming/dist/types/src/styles/core/core-css").CoreParams & import("@ag-grid-community/theming").CheckboxStyleParams & import("@ag-grid-community/theming").TabStyleParams & import("@ag-grid-community/theming").InputStyleParams>;
|
77
|
+
ngOnInit(): void;
|
78
|
+
initForm(): void;
|
79
|
+
onSubmit(): void;
|
80
|
+
onSearch(): void;
|
81
|
+
onAgentSelected(code: any): void;
|
82
|
+
mapFormToModel(): BranchActivitySendReportRequestDomainModel;
|
83
|
+
onGridReady(params: GridReadyEvent): void;
|
84
|
+
onGridSizeChanged(params: any): void;
|
85
|
+
changeLimit(limit: any, index: number, key: string): void;
|
86
|
+
handleExport(): Promise<void>;
|
87
|
+
private loadImageAsBase64;
|
88
|
+
exportPDF(data: any): void;
|
89
|
+
exportExcel(data: any): void;
|
90
|
+
exportCSV(data: any[]): void;
|
91
|
+
selectClient(client: any): void;
|
92
|
+
formatDate(params: any): string;
|
93
|
+
activateBranchPagination(branchIndex: number): void;
|
94
|
+
currencyFormatter(params: any): string;
|
95
|
+
private subscribeToDateChanges;
|
96
|
+
private subscribeToClientChange;
|
97
|
+
onClientSelected(): void;
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BranchActivitySendReportComponent, never>;
|
99
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BranchActivitySendReportComponent, "lib-branch-activity-send-report", never, {}, {}, never, never, false>;
|
100
|
+
}
|
package/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.d.ts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare class BranchActivitySendReportRequestDomainModel {
|
2
|
+
startDate: string;
|
3
|
+
endDate: string;
|
4
|
+
sendCountryCode: string;
|
5
|
+
recvCountryCode: string;
|
6
|
+
businessPartnerCode: string;
|
7
|
+
transactionStatus: string;
|
8
|
+
payoutCurrency: string;
|
9
|
+
transactionType: string;
|
10
|
+
branchCode: string;
|
11
|
+
companyCode: string;
|
12
|
+
constructor(values?: Object);
|
13
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export interface BranchActivityReportDictionay {
|
2
|
+
}
|
3
|
+
export declare class BranchActivityReport {
|
4
|
+
SendAgentBranchNameAndCode: string;
|
5
|
+
BusinessDateTime: string;
|
6
|
+
TransactionDateTime: string;
|
7
|
+
TransactionNumber: string;
|
8
|
+
Product: string;
|
9
|
+
SendAgentBranchCode: string;
|
10
|
+
SendPrincipalAgentCode: string;
|
11
|
+
ReceiveAgentCode: string;
|
12
|
+
PayoutCCcode: string;
|
13
|
+
PayoutAmount?: number;
|
14
|
+
PayinCCcode: string;
|
15
|
+
PayinAmount?: number;
|
16
|
+
TransactionCommissionAmount?: number;
|
17
|
+
Tax?: number;
|
18
|
+
TotalPayinAmount?: number;
|
19
|
+
Status: string;
|
20
|
+
}
|
@@ -2,16 +2,20 @@ import { ConfigService } from '../lib/services/config.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
import * as i1 from "./reports-lib.component";
|
4
4
|
import * as i2 from "./components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component";
|
5
|
-
import * as i3 from "
|
6
|
-
import * as i4 from "./
|
7
|
-
import * as i5 from "
|
8
|
-
import * as i6 from "
|
9
|
-
import * as i7 from "@angular/
|
10
|
-
import * as i8 from "@
|
11
|
-
import * as i9 from "
|
5
|
+
import * as i3 from "./components/branch-activity-send-report/branch-activity-send-report.component";
|
6
|
+
import * as i4 from "./shared/loader/loader.component";
|
7
|
+
import * as i5 from "ag-grid-angular";
|
8
|
+
import * as i6 from "./reports-lib-routing.module";
|
9
|
+
import * as i7 from "@angular/common";
|
10
|
+
import * as i8 from "@angular/forms";
|
11
|
+
import * as i9 from "@angular/router";
|
12
|
+
import * as i10 from "@ng-bootstrap/ng-bootstrap";
|
13
|
+
import * as i11 from "./shared/shared.module";
|
14
|
+
import * as i12 from "@angular/platform-browser";
|
15
|
+
import * as i13 from "@ng-select/ng-select";
|
12
16
|
export declare function initializeApp(config: ConfigService): () => Promise<any>;
|
13
17
|
export declare class ReportsLibModule {
|
14
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReportsLibModule, never>;
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ReportsLibModule, [typeof i1.ReportsLibComponent, typeof i2.AccGlDetailsEnquiryReportComponent], [typeof
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ReportsLibModule, [typeof i1.ReportsLibComponent, typeof i2.AccGlDetailsEnquiryReportComponent, typeof i3.BranchActivitySendReportComponent, typeof i4.LoaderComponent], [typeof i5.AgGridModule, typeof i6.ReportsLibRoutingModule, typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.RouterModule, typeof i10.NgbDatepickerModule, typeof i11.SharedModule, typeof i12.BrowserModule, typeof i5.AgGridModule, typeof i6.ReportsLibRoutingModule, typeof i8.FormsModule, typeof i5.AgGridModule, typeof i10.NgbModule, typeof i8.ReactiveFormsModule, typeof i13.NgSelectModule], [typeof i1.ReportsLibComponent, typeof i2.AccGlDetailsEnquiryReportComponent, typeof i3.BranchActivitySendReportComponent]>;
|
16
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<ReportsLibModule>;
|
17
21
|
}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
2
|
-
import { AccGlDetailsEnquiryReportModel } from '../models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel';
|
3
2
|
import { Observable } from 'rxjs';
|
3
|
+
import { BranchActivitySendReportRequestDomainModel } from '../models/branch-activity-report/branch-activity-send-report-request-domain-model';
|
4
|
+
import { BranchActivityReport } from '../models/branch-activity-report/branch-activity-send-report';
|
5
|
+
import { AccGlDetailsEnquiryReportModel } from '../models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel';
|
4
6
|
import { ConfigService } from './config.service';
|
5
7
|
import * as i0 from "@angular/core";
|
6
8
|
export declare class ReportService {
|
@@ -9,6 +11,11 @@ export declare class ReportService {
|
|
9
11
|
private reportServiceUrl;
|
10
12
|
constructor(http: HttpClient, config: ConfigService);
|
11
13
|
getAccGLDetailsReport(formattedDate: string | undefined, dateType: string): Observable<AccGlDetailsEnquiryReportModel>;
|
14
|
+
getCompanyConfig(): Observable<any[]>;
|
15
|
+
getPayInAgents(sysUserId: string): Observable<any[]>;
|
16
|
+
getBranchByAgent(sysUserId: string, code: string): Observable<any[]>;
|
17
|
+
getParams(): Observable<any[]>;
|
18
|
+
getBranchActivityReport(data: BranchActivitySendReportRequestDomainModel | any): Observable<Record<string, BranchActivityReport[]>>;
|
12
19
|
getUserNameFromSessionStorage(): string;
|
13
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReportService, never>;
|
14
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<ReportService>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
export * from './lib/reports-lib.service';
|
2
|
+
export * from './lib/services/report.service';
|
2
3
|
export * from './lib/reports-lib.component';
|
3
4
|
export * from './lib/reports-lib.module';
|
4
|
-
export * from './lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component';
|
5
5
|
export * from './lib/services/config.service';
|
6
6
|
export * from './lib/models/app-config.model';
|
7
|
+
export * from './lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component';
|
8
|
+
export * from './lib/components/branch-activity-send-report/branch-activity-send-report.component';
|
9
|
+
export * from './lib/models/branch-activity-report/branch-activity-send-report';
|
10
|
+
export * from './lib/models/branch-activity-report/branch-activity-send-report-request-domain-model';
|