@sachin9822/reports-lib 0.0.131 → 0.0.132

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.
Files changed (25) hide show
  1. package/esm2020/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.mjs +29 -22
  2. package/esm2020/lib/components/branch-activity-send-report/branch-activity-send-report.component.mjs +2 -2
  3. package/esm2020/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.mjs +337 -0
  4. package/esm2020/lib/models/transaction-enquiry-report/transaction-enquiry.model.mjs +8 -0
  5. package/esm2020/lib/reports-lib-routing.module.mjs +16 -4
  6. package/esm2020/lib/reports-lib.module.mjs +25 -6
  7. package/esm2020/lib/services/report.service.mjs +27 -1
  8. package/esm2020/lib/shared/export.service.mjs +26 -8
  9. package/esm2020/lib/shared/page-size-selector/page-size-selector.component.mjs +2 -2
  10. package/esm2020/lib/shared/search-filter/search-filter.component.mjs +399 -0
  11. package/esm2020/public-api.mjs +8 -1
  12. package/fesm2015/sachin9822-reports-lib.mjs +892 -80
  13. package/fesm2015/sachin9822-reports-lib.mjs.map +1 -1
  14. package/fesm2020/sachin9822-reports-lib.mjs +873 -80
  15. package/fesm2020/sachin9822-reports-lib.mjs.map +1 -1
  16. package/lib/assets/config/app-config.json +3 -1
  17. package/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.d.ts +6 -2
  18. package/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.d.ts +93 -0
  19. package/lib/models/transaction-enquiry-report/transaction-enquiry.model.d.ts +139 -0
  20. package/lib/reports-lib-routing.module.d.ts +2 -1
  21. package/lib/reports-lib.module.d.ts +12 -10
  22. package/lib/services/report.service.d.ts +7 -1
  23. package/lib/shared/search-filter/search-filter.component.d.ts +68 -0
  24. package/package.json +1 -1
  25. package/public-api.d.ts +6 -0
@@ -1,3 +1,5 @@
1
1
  {
2
- "reportServiceUrl": "https://4xplus-local.xpressmoney.tech:8752"
2
+
3
+ "reportServiceUrl": "https://4xplus-local.xpressmoney.tech:8752",
4
+ "serviceUrl": "https://4xplus-local.xpressmoney.tech:8699"
3
5
  }
@@ -36,14 +36,17 @@ export declare class AccGlDetailsEnquiryReportComponent implements OnInit {
36
36
  rowData: any[];
37
37
  date: string;
38
38
  pageSize: number;
39
+ ReportName: string;
40
+ exportFormats: {
41
+ formatName: string;
42
+ code: string;
43
+ }[];
39
44
  defaultColDef: ColDef;
40
45
  columnDefs: ColDef[];
41
46
  constructor(exportService: ExportService, reportService: ReportService, http: HttpClient, sanitizer: DomSanitizer);
42
47
  ngOnInit(): void;
43
48
  getAccGLDetailsReport(): void;
44
49
  formatDate(params: any): string;
45
- onEnterhandleReport(event: Event): void;
46
- onEnterhandleExport(event: Event): void;
47
50
  onGridReady(params: GridReadyEvent): void;
48
51
  getRowHeight(params: any): number;
49
52
  formatNumber(params: any): string;
@@ -52,6 +55,7 @@ export declare class AccGlDetailsEnquiryReportComponent implements OnInit {
52
55
  exportToPdf(): Promise<void>;
53
56
  exportToExcel(): void;
54
57
  exportToCsv(): void;
58
+ handleSearch(criteria: any): void;
55
59
  static ɵfac: i0.ɵɵFactoryDeclaration<AccGlDetailsEnquiryReportComponent, never>;
56
60
  static ɵcmp: i0.ɵɵComponentDeclaration<AccGlDetailsEnquiryReportComponent, "lib-acc-gl-details-enquiry-report", never, {}, {}, never, never, false>;
57
61
  }
@@ -0,0 +1,93 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AgGridAngular } from 'ag-grid-angular';
3
+ import { GridOptions, ColDef, GridReadyEvent } from 'ag-grid-community';
4
+ import { ReportService } from '../../services/report.service';
5
+ import { Currency, CompanyReportConfig, IdentityType, TransactionStatus, Product, User, UserReportDefaults, Client, Branch, TransactionData, ComponentLoadingState } from '../../models/transaction-enquiry-report/transaction-enquiry.model';
6
+ import { ExportService } from '../../shared/export.service';
7
+ import { ConfigService } from '../../services/config.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare class TransactionEnquiryComponent implements OnInit {
10
+ private reportService;
11
+ private exportService;
12
+ private config;
13
+ agGrid: AgGridAngular;
14
+ private destroy$;
15
+ private gridApi;
16
+ private gridColumnApi;
17
+ isFilterCollapsed: boolean;
18
+ showResults: boolean;
19
+ searchText: string;
20
+ paginationPageSize: number;
21
+ showAllRows: boolean;
22
+ ranges: (number | 'All')[];
23
+ showRange: boolean;
24
+ selectedExportOption: string;
25
+ showStatusDropdown: boolean;
26
+ currentDateTime: Date;
27
+ formValidationError: boolean;
28
+ showExportDropdown: boolean;
29
+ exportFormats: {
30
+ formatName: string;
31
+ code: string;
32
+ }[];
33
+ exportOptions: {
34
+ label: string;
35
+ value: string;
36
+ }[];
37
+ productCodeMap: {
38
+ [name: string]: string;
39
+ };
40
+ loadingState: ComponentLoadingState;
41
+ ComponentLoadingState: typeof ComponentLoadingState;
42
+ isSearching: boolean;
43
+ hasSearched: boolean;
44
+ errorMessages: string;
45
+ _errorMessage: string;
46
+ currentUserEmail: string;
47
+ usernameMissing: boolean;
48
+ token: string;
49
+ applicationType: string;
50
+ companyCode: string;
51
+ serviceUrl: string;
52
+ apiPrefix: any;
53
+ userReportDefaults: UserReportDefaults | null;
54
+ companyReportConfig: CompanyReportConfig | null;
55
+ clients: Client[];
56
+ branches: Branch[];
57
+ users: User[];
58
+ currencies: Currency[];
59
+ products: Product[];
60
+ identityTypes: IdentityType[];
61
+ transactionData: TransactionData[];
62
+ transactionStatuses: TransactionStatus[];
63
+ selectedStatuses: string[];
64
+ ReportName: string;
65
+ columnDefs: ColDef[];
66
+ private buildTransactionDetailsUrl;
67
+ gridOptions: GridOptions;
68
+ constructor(reportService: ReportService, exportService: ExportService, config: ConfigService);
69
+ ngOnInit(): void;
70
+ ngOnDestroy(): void;
71
+ handleSearch(criteria: any): void;
72
+ toggleStatusDropdown(event: MouseEvent): void;
73
+ toggleRangeDropdown(event: MouseEvent): void;
74
+ filter(): void;
75
+ onGridReady(params: GridReadyEvent): void;
76
+ changeLimit(limit: number | 'All'): void;
77
+ clearError(): void;
78
+ dateFormatter(params: any): string;
79
+ currencyFormatter(params: any): string;
80
+ getFieldValue(row: any, field: string): any;
81
+ get isLoading(): boolean;
82
+ get isError(): boolean;
83
+ get canShowResults(): boolean;
84
+ get errorMessage(): string;
85
+ set errorMessage(value: string);
86
+ onExportChange(value: string): void;
87
+ handleExport(): void;
88
+ exportToPDF(): void;
89
+ exportToExcel(): void;
90
+ exportToCSV(): void;
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransactionEnquiryComponent, never>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<TransactionEnquiryComponent, "app-transaction-enquiry", never, {}, {}, never, never, false>;
93
+ }
@@ -0,0 +1,139 @@
1
+ export interface Client {
2
+ businessPartnerCode: string;
3
+ businessPartnerName: string;
4
+ displayOrder: number;
5
+ }
6
+ export interface Branch {
7
+ businessPartnerBranch: string;
8
+ businessPartnerBranch_CorrelationId: string;
9
+ branchCode: string;
10
+ bank: string;
11
+ number: number;
12
+ }
13
+ export interface User {
14
+ userName: string;
15
+ userId: number;
16
+ number: number;
17
+ }
18
+ export interface Currency {
19
+ currencyCode: string;
20
+ currency: string;
21
+ number: string;
22
+ od: number;
23
+ }
24
+ export interface Product {
25
+ productCode: string;
26
+ productName: string;
27
+ number: number;
28
+ serviceTypeCode: string;
29
+ }
30
+ export interface TransactionStatus {
31
+ transactionStatus: string;
32
+ number: number;
33
+ }
34
+ export interface IdentityType {
35
+ identityType: string;
36
+ identityDescription: string;
37
+ number: number;
38
+ }
39
+ export interface UserReportDefaults {
40
+ PrincipleUserName: string;
41
+ ADPrincipleUserName: string;
42
+ UserName: string;
43
+ UserId: number;
44
+ BranchCode: string;
45
+ BranchName: string;
46
+ BusinessDate: string;
47
+ TillCode: string;
48
+ LocalCurrency: string;
49
+ TimeZone: string;
50
+ ExecutionTime: string;
51
+ StockEnquiryAll: number;
52
+ StockEnquiryBranch: number;
53
+ StockEnquiryExceptOwn: number;
54
+ StockEnquiryExcludeLocalAmount: number;
55
+ }
56
+ export interface CompanyReportConfig {
57
+ Company: string;
58
+ CompanyName: string;
59
+ ReportLanguage: string;
60
+ }
61
+ export interface TransactionData {
62
+ product: string;
63
+ id: string;
64
+ transactionNumber: string;
65
+ transactionReferenceNumber: string;
66
+ businessDate: string;
67
+ sendAgent: string;
68
+ sendAgtBranch: string;
69
+ recvAgent: string;
70
+ rcvAgtBranch: string;
71
+ sendName: string;
72
+ sendIdType: string;
73
+ sendIdNumber: string;
74
+ benName: string;
75
+ payOutCurrency: string;
76
+ payOutAmount: number;
77
+ commission: number;
78
+ payInCurrency: string;
79
+ payInAmount: number;
80
+ transactionStatus: string;
81
+ transactionUserId: number;
82
+ payoutUserId: number;
83
+ receiveAgentId: number;
84
+ receiveBranchBusinessPartnerId: number;
85
+ sendAgentCode: string;
86
+ receiveAgentCode: string;
87
+ sendBranchCode: string;
88
+ receiveBranchCode: string;
89
+ username: string;
90
+ firstNames: string;
91
+ amlStatus: string;
92
+ transactionNote: string;
93
+ cancellationBusinessDate: string;
94
+ receiveAgentCountry: string;
95
+ loyaltyCardNumber: string;
96
+ personContacts: string;
97
+ organizationContacts: string;
98
+ sendAgentCountry: string;
99
+ sendAgentId: number;
100
+ chequeNumber: string;
101
+ paidDate: string;
102
+ forexAmount: number;
103
+ payoutAgentName: string;
104
+ authoriseDate: string;
105
+ rejectedDate: string;
106
+ note: string;
107
+ stopPaymentDate: string;
108
+ rejectedUser: string;
109
+ }
110
+ export interface SearchCriteria {
111
+ fromDate: string;
112
+ toDate: string;
113
+ client: string;
114
+ branch: string;
115
+ user: string;
116
+ currency: string;
117
+ product: string;
118
+ transactionStatus: string;
119
+ transactionNo: string;
120
+ cardNo: string;
121
+ idType: string;
122
+ idNo: string;
123
+ senderName: string;
124
+ beneficiaryName: string;
125
+ telNo: string;
126
+ receiveAmount: number;
127
+ branchName: string;
128
+ country: string;
129
+ }
130
+ export interface PageLoadDataResponse {
131
+ clients: Client[];
132
+ currencies: Currency[];
133
+ transactionStatuses: TransactionStatus[];
134
+ }
135
+ export declare enum ComponentLoadingState {
136
+ Error = -1,
137
+ Loading = 0,
138
+ Complete = 1
139
+ }
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/router";
2
3
  export declare class ReportsLibRoutingModule {
3
4
  static ɵfac: i0.ɵɵFactoryDeclaration<ReportsLibRoutingModule, never>;
4
- static ɵmod: i0.ɵɵNgModuleDeclaration<ReportsLibRoutingModule, never, never, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ReportsLibRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
5
6
  static ɵinj: i0.ɵɵInjectorDeclaration<ReportsLibRoutingModule>;
6
7
  }
@@ -4,18 +4,20 @@ 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
5
  import * as i3 from "./components/branch-activity-send-report/branch-activity-send-report.component";
6
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";
7
+ import * as i5 from "./components/transaction-enquiry-report/transaction-enquiry-report.component";
8
+ import * as i6 from "./shared/search-filter/search-filter.component";
9
+ import * as i7 from "ag-grid-angular";
10
+ import * as i8 from "./reports-lib-routing.module";
11
+ import * as i9 from "@angular/common";
12
+ import * as i10 from "@angular/forms";
13
+ import * as i11 from "@angular/router";
14
+ import * as i12 from "@ng-bootstrap/ng-bootstrap";
15
+ import * as i13 from "./shared/shared.module";
16
+ import * as i14 from "@angular/platform-browser";
17
+ import * as i15 from "@ng-select/ng-select";
16
18
  export declare function initializeApp(config: ConfigService): () => Promise<any>;
17
19
  export declare class ReportsLibModule {
18
20
  static ɵfac: i0.ɵɵFactoryDeclaration<ReportsLibModule, never>;
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]>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ReportsLibModule, [typeof i1.ReportsLibComponent, typeof i2.AccGlDetailsEnquiryReportComponent, typeof i3.BranchActivitySendReportComponent, typeof i4.LoaderComponent, typeof i5.TransactionEnquiryComponent, typeof i4.LoaderComponent, typeof i6.SearchFilterComponent], [typeof i7.AgGridModule, typeof i8.ReportsLibRoutingModule, typeof i9.CommonModule, typeof i10.FormsModule, typeof i11.RouterModule, typeof i12.NgbDatepickerModule, typeof i13.SharedModule, typeof i14.BrowserModule, typeof i7.AgGridModule, typeof i8.ReportsLibRoutingModule, typeof i10.FormsModule, typeof i7.AgGridModule, typeof i12.NgbModule, typeof i10.ReactiveFormsModule, typeof i15.NgSelectModule, typeof i10.ReactiveFormsModule, typeof i12.NgbModule, typeof i15.NgSelectModule], [typeof i1.ReportsLibComponent, typeof i2.AccGlDetailsEnquiryReportComponent, typeof i3.BranchActivitySendReportComponent, typeof i5.TransactionEnquiryComponent]>;
20
22
  static ɵinj: i0.ɵɵInjectorDeclaration<ReportsLibModule>;
21
23
  }
@@ -1,8 +1,9 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
+ import { AccGlDetailsEnquiryReportModel } from '../models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel';
2
3
  import { Observable } from 'rxjs';
3
4
  import { BranchActivitySendReportRequestDomainModel } from '../models/branch-activity-report/branch-activity-send-report-request-domain-model';
4
5
  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';
6
+ import { Product, User, Branch, TransactionData, PageLoadDataResponse, SearchCriteria } from '../models/transaction-enquiry-report/transaction-enquiry.model';
6
7
  import { ConfigService } from './config.service';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class ReportService {
@@ -17,6 +18,11 @@ export declare class ReportService {
17
18
  getParams(): Observable<any[]>;
18
19
  getBranchActivityReport(data: BranchActivitySendReportRequestDomainModel | any): Observable<Record<string, BranchActivityReport[]>>;
19
20
  getUserNameFromSessionStorage(): string;
21
+ getPageLoadData(sysUserID: string): Observable<PageLoadDataResponse>;
22
+ getBranchesByAgent(agentCode: string, sysUserID: string): Observable<Branch[]>;
23
+ getProductsByAgent(agentCode: string): Observable<Product[]>;
24
+ getUsersByBranch(businessPartnerCode: string, branchCode: string): Observable<User[]>;
25
+ searchTransactions(request: SearchCriteria): Observable<TransactionData[]>;
20
26
  static ɵfac: i0.ɵɵFactoryDeclaration<ReportService, never>;
21
27
  static ɵprov: i0.ɵɵInjectableDeclaration<ReportService>;
22
28
  }
@@ -0,0 +1,68 @@
1
+ import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { UserReportDefaults, CompanyReportConfig, ComponentLoadingState, Client, Branch, Currency, Product, TransactionStatus, User } from '../../models/transaction-enquiry-report/transaction-enquiry.model';
4
+ import { ReportService } from '../../services/report.service';
5
+ import { ConfigService } from '../../services/config.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SearchFilterComponent implements OnInit, OnDestroy {
8
+ private reportService;
9
+ private fb;
10
+ private config;
11
+ ReportName: string;
12
+ searchClicked: EventEmitter<any>;
13
+ searchForm: FormGroup;
14
+ formValidationError: boolean;
15
+ private destroy$;
16
+ loadingState: ComponentLoadingState;
17
+ ComponentLoadingState: typeof ComponentLoadingState;
18
+ hasSearched: boolean;
19
+ private _errorMessage;
20
+ currentUser: string;
21
+ usernameMissing: boolean;
22
+ token: string;
23
+ applicationType: string;
24
+ companyCode: string;
25
+ serviceUrl: string;
26
+ userReportDefaults: UserReportDefaults | null;
27
+ companyReportConfig: CompanyReportConfig | null;
28
+ clients1: Client[];
29
+ branches: Branch[];
30
+ users: User[];
31
+ currencies: Currency[];
32
+ products: Product[];
33
+ transactionStatuses: TransactionStatus[];
34
+ selectedStatuses: string[];
35
+ showStatusDropdown: boolean;
36
+ visibleFieldKeys: string[];
37
+ dateType: any;
38
+ date: any;
39
+ visibleFieldsMap: {
40
+ [report: string]: string[];
41
+ };
42
+ get visibleFields(): string[];
43
+ isFieldVisible(field: string): boolean;
44
+ constructor(reportService: ReportService, fb: FormBuilder, config: ConfigService);
45
+ ngOnInit(): void;
46
+ ngOnDestroy(): void;
47
+ private checkReport;
48
+ loadInitialData(): void;
49
+ private initializeForm;
50
+ private loadInitialDatafortxnEnquiry;
51
+ private subscribeToDateChanges;
52
+ private setDefaultFormValues;
53
+ onClientChange(): Promise<void>;
54
+ private loadBranchesByAgent;
55
+ private loadProductsByAgent;
56
+ onBranchChange(): Promise<void>;
57
+ private loadUsersByBranch;
58
+ onSearch(): void;
59
+ private markFormGroupTouched;
60
+ private buildSearchCriteria;
61
+ toIsoFormat(dateInput: any): string | undefined;
62
+ get errorMessage(): string;
63
+ set errorMessage(value: string);
64
+ get isLoading(): boolean;
65
+ get isError(): boolean;
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchFilterComponent, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchFilterComponent, "lib-search-filter", never, { "ReportName": "ReportName"; }, { "searchClicked": "searchClicked"; }, never, never, false>;
68
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sachin9822/reports-lib",
3
- "version": "0.0.131",
3
+ "version": "0.0.132",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0"
package/public-api.d.ts CHANGED
@@ -1,8 +1,14 @@
1
1
  export * from './lib/reports-lib.service';
2
2
  export * from './lib/services/report.service';
3
+ export * from './lib/services/config.service';
4
+ export * from './lib/shared/export.service';
5
+ export * from './lib/shared/loader/loader.component';
3
6
  export * from './lib/reports-lib.component';
4
7
  export * from './lib/reports-lib.module';
5
8
  export * from './lib/services/config.service';
9
+ export * from './lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component';
10
+ export * from './lib/components/transaction-enquiry-report/transaction-enquiry-report.component';
11
+ export * from './lib/models/transaction-enquiry-report/transaction-enquiry.model';
6
12
  export * from './lib/models/app-config.model';
7
13
  export * from './lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component';
8
14
  export * from './lib/components/branch-activity-send-report/branch-activity-send-report.component';