cat-qw-lib 2.6.75 → 2.6.79

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.
@@ -101,6 +101,7 @@ export declare class QueueContainerComponent extends BaseContainerComponent<Queu
101
101
  private resetSorting;
102
102
  private filterQueues;
103
103
  private getQueueRecordsData;
104
+ private replaceWithLocalhost;
104
105
  private getSortOrderString;
105
106
  private resetPaginationState;
106
107
  private resetPage;
@@ -19,8 +19,9 @@ import * as i17 from "../shared/shared.module";
19
19
  import * as i18 from "primeng/tag";
20
20
  import * as i19 from "../shared/table-secondary/components/table-secondary.component";
21
21
  import * as i20 from "../shared/components/skeleton/skeleton.component";
22
+ import * as i21 from "primeng/tooltip";
22
23
  export declare class QueueModule {
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<QueueModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<QueueModule, [typeof i1.QueueContainerComponent, typeof i2.QueueSearchComponent, typeof i3.QueueItemComponent, typeof i4.QueueListComponent, typeof i5.QueueRecordTableComponent, typeof i6.QueueFilterDropdownComponent], [typeof i7.CommonModule, typeof i8.QueueRoutingModule, typeof i9.FormsModule, typeof i10.DropdownModule, typeof i11.MultiSelectModule, typeof i12.RippleModule, typeof i13.ButtonModule, typeof i14.RouterModule, typeof i15.BadgeModule, typeof i16.PaginatorModule, typeof i17.SharedModule, typeof i18.TagModule, typeof i19.TableSecondaryComponent, typeof i20.SkeletonComponent], [typeof i1.QueueContainerComponent]>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<QueueModule, [typeof i1.QueueContainerComponent, typeof i2.QueueSearchComponent, typeof i3.QueueItemComponent, typeof i4.QueueListComponent, typeof i5.QueueRecordTableComponent, typeof i6.QueueFilterDropdownComponent], [typeof i7.CommonModule, typeof i8.QueueRoutingModule, typeof i9.FormsModule, typeof i10.DropdownModule, typeof i11.MultiSelectModule, typeof i12.RippleModule, typeof i13.ButtonModule, typeof i14.RouterModule, typeof i15.BadgeModule, typeof i16.PaginatorModule, typeof i17.SharedModule, typeof i18.TagModule, typeof i19.TableSecondaryComponent, typeof i20.SkeletonComponent, typeof i21.TooltipModule], [typeof i1.QueueContainerComponent]>;
25
26
  static ɵinj: i0.ɵɵInjectorDeclaration<QueueModule>;
26
27
  }
@@ -18,6 +18,10 @@ export declare class QueueRecordTableBuilderService extends TableBuilder {
18
18
  * @returns {string} Truncated text
19
19
  */
20
20
  private truncateText;
21
+ /**
22
+ * GBP display for queue currency columns: £ with thousands separator and 2 decimals; null/empty -> '-'.
23
+ */
24
+ private formatQueueCurrencyValue;
21
25
  private getColumnOrder;
22
26
  buildSecondaryTable(records: any[], headerWidths?: {
23
27
  [key: string]: string;
@@ -12,6 +12,10 @@ import * as i0 from "@angular/core";
12
12
  */
13
13
  export declare class QueueService extends BaseService<QueueModel> {
14
14
  queueStore: QueueStore;
15
+ private recordCache;
16
+ private readonly CACHE_TTL_MS;
17
+ private buildCacheKey;
18
+ clearCache(apiConfig?: string): void;
15
19
  /**
16
20
  * Creates an instance of QueueService.
17
21
  * @param {QueueStore} queueStore - The store that manages the QueueModel state
@@ -29,6 +33,7 @@ export declare class QueueService extends BaseService<QueueModel> {
29
33
  getQueueRecordsByApiConfig(apiConfig: string, params?: any): Observable<any>;
30
34
  /**
31
35
  * Fetches paginated queue records using the provided apiConfig URL with search and pagination support.
36
+ * This is the unified method used for both initial data loading and search functionality.
32
37
  * Uses POST method with underwriterIds and unassigned in body, other params in query string.
33
38
  * @param {string} apiConfig - The full API endpoint to fetch records for the selected queue
34
39
  * @param {string} [searchKey] - Optional search term
@@ -37,9 +42,10 @@ export declare class QueueService extends BaseService<QueueModel> {
37
42
  * @param {string} [query] - Optional query string for filtering
38
43
  * @param {string} [sortBy] - Optional sort field
39
44
  * @param {string} [sortOrder] - Optional sort order ('asc' or 'desc')
45
+ * @param {boolean} [useCache] - Whether to serve from / write to cache (default: true)
40
46
  * @returns {Observable<any>} Observable emitting the paginated queue records
41
47
  */
42
- getPaginatedQueueRecords(apiConfig: string, searchKey?: string, page?: number, limit?: number, query?: string, sortBy?: string, sortOrder?: string): Observable<any>;
48
+ getPaginatedQueueRecords(apiConfig: string, searchKey?: string, page?: number, limit?: number, query?: string, sortBy?: string, sortOrder?: string, useCache?: boolean): Observable<any>;
43
49
  /**
44
50
  * Fetches all queue entities from the configured data source.
45
51
  * The entities are stored in the queueStore upon retrieval.
@@ -124,6 +124,8 @@ export declare class SHARED {
124
124
  static REFERRED: string;
125
125
  static FINANCE: string;
126
126
  static TOTAL_FINANCE_AMOUNT: string;
127
+ static BASE_PRICE: string;
128
+ static MONTHLY_PAYMENT: string;
127
129
  static VALUATION_STATUS: string;
128
130
  static TASKS: string;
129
131
  static TASK_BROKER_LABEL: string;
@@ -299,7 +301,7 @@ export declare const QUEUE_RECORD_TABLE_COLUMN_WIDTH_LIST: {
299
301
  age: string;
300
302
  tasks: string;
301
303
  productName: string;
302
- baseRate: string;
304
+ basePrice: string;
303
305
  monthlyPayment: string;
304
306
  submittedDate: string;
305
307
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-qw-lib",
3
- "version": "2.6.75",
3
+ "version": "2.6.79",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
@@ -1,4 +1,4 @@
1
- <svg width="15" height="16" viewBox="0 0 15 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M0.959961 7.91992C0.959961 4.05393 4.09397 0.919922 7.95996 0.919922C11.826 0.919922 14.96 4.05393 14.96 7.91992C14.96 11.7859 11.826 14.9199 7.95996 14.9199C4.09397 14.9199 0.959961 11.7859 0.959961 7.91992Z" fill="#22C55E"/>
3
- <path d="M7.12625 9.31121L11.1512 5.28621L11.7638 5.90746L7.12625 10.5537L4.34375 7.76246L4.95625 7.14996L7.12625 9.31121Z" fill="white"/>
4
- </svg>
1
+ <svg width="15" height="16" viewBox="0 0 15 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0.959961 7.91992C0.959961 4.05393 4.09397 0.919922 7.95996 0.919922C11.826 0.919922 14.96 4.05393 14.96 7.91992C14.96 11.7859 11.826 14.9199 7.95996 14.9199C4.09397 14.9199 0.959961 11.7859 0.959961 7.91992Z" fill="#22C55E"/>
3
+ <path d="M7.12625 9.31121L11.1512 5.28621L11.7638 5.90746L7.12625 10.5537L4.34375 7.76246L4.95625 7.14996L7.12625 9.31121Z" fill="white"/>
4
+ </svg>