@sachin9822/reports-lib 0.0.150 → 0.0.152

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.
@@ -18,15 +18,13 @@ export declare class CancellationTransactionReportComponent implements OnInit, O
18
18
  errorMessage: string;
19
19
  cancellationData: CancellationTransaction[];
20
20
  pageSize: number;
21
- gridApi: any;
22
- isOpen: boolean;
23
- exportFormats: {
24
- formatName: string;
25
- code: string;
26
- }[];
21
+ metaDataOne: Record<string, string>;
22
+ rowData: CancellationTransaction[];
23
+ currentDateTime: Date;
24
+ searchText: string;
25
+ selectedExportOption: string;
27
26
  dataMap: Record<string, CancellationTransaction[]>;
28
27
  filteredData: Record<string, CancellationTransaction[]>;
29
- proxyData: Record<string, CancellationTransaction[]>;
30
28
  paginationArray: (number | 'All')[];
31
29
  gridApis: any[];
32
30
  columnDefs: ({
@@ -43,8 +41,8 @@ export declare class CancellationTransactionReportComponent implements OnInit, O
43
41
  field: string;
44
42
  flex: number;
45
43
  minWidth: number;
44
+ valueFormatter: (params: any) => string;
46
45
  tooltipValueGetter: (params: any) => string;
47
- valueFormatter: any;
48
46
  cellClass?: undefined;
49
47
  tooltipField?: undefined;
50
48
  } | {
@@ -67,33 +65,24 @@ export declare class CancellationTransactionReportComponent implements OnInit, O
67
65
  tooltipValueGetter?: undefined;
68
66
  })[];
69
67
  gridOptions: GridOptions;
70
- rowData: CancellationTransaction[];
71
- currentDateTime: Date;
72
- searchText: string;
73
- selectedExportOption: string;
74
68
  constructor(reportService: ReportService, exportService: GenericExportService);
75
69
  ngOnInit(): void;
76
70
  ngOnDestroy(): void;
71
+ handleSearch(criteria: any): void;
72
+ filter(text: string): void;
77
73
  formatCurrency(params: any): any;
74
+ dateValueFormatter(format: string): (params: any) => string;
78
75
  formatDateTimeDDMMYYYY_AMPM(params: any): string;
79
76
  parseDDMMYYYYhhmmAMPM(value: string): Date | null;
80
- formatDateTimeDDMMYYYY_24h(params: any): string;
81
- formatDateDDMMYYYY(params: any): string;
82
77
  onGridReady(params: any, id: number): void;
83
78
  onGridSizeChanged(params: any): void;
84
- changeLimit(limit: number | 'All', index: number): void;
85
79
  getKeys(obj: Record<string, unknown>): string[];
86
80
  hasAnyGroups(): boolean;
87
81
  hasNoGroups(): boolean;
88
82
  getPageSizeFor(index: number, total: number): number;
89
- onPageSizeChange(value: string): void;
90
83
  private groupByBranchToRecord;
91
- handleSearch(criteria: any): void;
92
- onSearch(): void;
93
84
  isDataAvailable(): boolean;
94
- onOpen(): void;
95
- onClose(): void;
96
- handleExport(): void;
85
+ handleExport(option: string): void;
97
86
  static ɵfac: i0.ɵɵFactoryDeclaration<CancellationTransactionReportComponent, never>;
98
87
  static ɵcmp: i0.ɵɵComponentDeclaration<CancellationTransactionReportComponent, "lib-cancellation-transaction-report", never, {}, {}, never, never, false>;
99
88
  }
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { AgGridAngular } from 'ag-grid-angular';
3
3
  import { GridOptions, ColDef, GridReadyEvent, GridApi } from 'ag-grid-community';
4
4
  import { ReportService } from '../../services/report.service';
5
- import { CompanyReportConfig, TransactionData, ComponentLoadingState } from '../../models/transaction-enquiry-report/transaction-enquiry.model';
5
+ import { TransactionData, ComponentLoadingState } from '../../models/transaction-enquiry-report/transaction-enquiry.model';
6
6
  import { ExportService } from '../../shared/export.service';
7
7
  import { ConfigService } from '../../services/config.service';
8
8
  import * as i0 from "@angular/core";
@@ -17,7 +17,6 @@ export declare class TransactionEnquiryComponent implements OnInit {
17
17
  paginationPageSize: number;
18
18
  selectedExportOption: string;
19
19
  currentDateTime: Date;
20
- isOpen: boolean;
21
20
  exportFormats: {
22
21
  formatName: string;
23
22
  code: string;
@@ -35,7 +34,6 @@ export declare class TransactionEnquiryComponent implements OnInit {
35
34
  applicationType: string;
36
35
  companyCode: string;
37
36
  serviceUrl: string;
38
- companyReportConfig: CompanyReportConfig | null;
39
37
  transactionData: TransactionData[];
40
38
  ReportName: string;
41
39
  metaDataOne: Record<string, string>;
@@ -51,9 +49,6 @@ export declare class TransactionEnquiryComponent implements OnInit {
51
49
  clearError(): void;
52
50
  dateFormatter(params: any): string;
53
51
  currencyFormatter(params: any): string;
54
- onOpen(): void;
55
- onClose(): void;
56
- getFieldValue(row: any, field: string): any;
57
52
  get isLoading(): boolean;
58
53
  get isError(): boolean;
59
54
  get errorMessage(): string;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
2
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';
3
+ import { ComponentLoadingState, Client, Branch, Currency, Product, TransactionStatus, User } from '../../models/transaction-enquiry-report/transaction-enquiry.model';
4
4
  import { ReportService } from '../../services/report.service';
5
5
  import { ConfigService } from '../../services/config.service';
6
6
  import * as i0 from "@angular/core";
@@ -23,8 +23,6 @@ export declare class SearchFilterComponent implements OnInit, OnDestroy {
23
23
  applicationType: string;
24
24
  companyCode: string;
25
25
  serviceUrl: string;
26
- userReportDefaults: UserReportDefaults | null;
27
- companyReportConfig: CompanyReportConfig | null;
28
26
  isOpen: boolean;
29
27
  clients1: Client[];
30
28
  branches: Branch[];
@@ -57,13 +55,11 @@ export declare class SearchFilterComponent implements OnInit, OnDestroy {
57
55
  private loadInitialDataForCancellationReport;
58
56
  loadInitialDataforAccounting(): void;
59
57
  private subscribeToDateChanges;
60
- private setDefaultFormValues;
61
58
  onClientChange(): Promise<void>;
62
59
  private loadBranchesByAgent;
63
60
  private loadProductsByAgent;
64
61
  onBranchChange(): Promise<void>;
65
62
  onSearch(): void;
66
- private markFormGroupTouched;
67
63
  private buildSearchCriteria;
68
64
  toIsoFormat(dateInput: any): string | undefined;
69
65
  onOpen(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sachin9822/reports-lib",
3
- "version": "0.0.150",
3
+ "version": "0.0.152",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0"