cat-qw-lib 2.6.93-uw → 2.6.93
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/README.md +63 -63
- package/fesm2022/cat-qw-lib.mjs +243 -448
- package/fesm2022/cat-qw-lib.mjs.map +1 -1
- package/lib/queue/components/queue-container/queue-container.component.d.ts +1 -22
- package/lib/queue/components/queue-item/queue-item.component.d.ts +1 -3
- package/lib/queue/components/queue-list/queue-list.component.d.ts +1 -2
- package/lib/queue/constants/valuation-status-config.d.ts +13 -0
- package/lib/queue/queue.module.d.ts +1 -2
- package/lib/queue/services/queue-business.service.d.ts +1 -7
- package/lib/queue/services/queue-record-table-builder.service.d.ts +0 -14
- package/lib/queue/state/queue.service.d.ts +1 -4
- package/lib/shared/constant/SHARED.d.ts +1 -6
- package/package.json +1 -1
- package/src/assets/icons/confirm-icon.svg +4 -4
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
3
2
|
import { QueueModel } from '../../models/queue.model';
|
|
4
3
|
import { QueueService } from '../../state/queue.service';
|
|
5
4
|
import { QueueStore } from '../../state/queue.store';
|
|
@@ -25,7 +24,6 @@ export declare class QueueContainerComponent extends BaseContainerComponent<Queu
|
|
|
25
24
|
private tableBuilder;
|
|
26
25
|
private queueFilterDropdownService;
|
|
27
26
|
private baseQuery;
|
|
28
|
-
private route;
|
|
29
27
|
private destroy$;
|
|
30
28
|
private searchSubject;
|
|
31
29
|
queueList: QueueModel[];
|
|
@@ -53,13 +51,6 @@ export declare class QueueContainerComponent extends BaseContainerComponent<Queu
|
|
|
53
51
|
placeholder: string;
|
|
54
52
|
/** Snapshot of the latest request; used to ignore stale responses. */
|
|
55
53
|
private latestRequestSnapshot;
|
|
56
|
-
/**
|
|
57
|
-
* ApplicationType lookup _id the sidebar is currently scoped to, taken from the
|
|
58
|
-
* `applicationType` query param. `null` means the route has not been read yet.
|
|
59
|
-
*/
|
|
60
|
-
private applicationTypeId;
|
|
61
|
-
/** Sidebar heading — the host menu entry's label, passed through as the `title` query param. */
|
|
62
|
-
queueTitle: string;
|
|
63
54
|
filterDropdown: QueueFilterDropdownComponent;
|
|
64
55
|
set selectedRowsInput(rows: any[]);
|
|
65
56
|
get selectedRowsInput(): any[];
|
|
@@ -80,7 +71,7 @@ export declare class QueueContainerComponent extends BaseContainerComponent<Queu
|
|
|
80
71
|
selectionChange: EventEmitter<any[]>;
|
|
81
72
|
isAllRowSelected: EventEmitter<boolean>;
|
|
82
73
|
excludedApplicationIds: EventEmitter<any[]>;
|
|
83
|
-
constructor(queueStore: QueueStore, queueService: QueueService, baseStore: BaseStore<QueueModel>, queueBusinessService: QueueBusinessService, tableBuilder: QueueRecordTableBuilderService, queueFilterDropdownService: QueueFilterDropdownService, baseQuery: BaseQuery<any
|
|
74
|
+
constructor(queueStore: QueueStore, queueService: QueueService, baseStore: BaseStore<QueueModel>, queueBusinessService: QueueBusinessService, tableBuilder: QueueRecordTableBuilderService, queueFilterDropdownService: QueueFilterDropdownService, baseQuery: BaseQuery<any>);
|
|
84
75
|
ngOnInit(): void;
|
|
85
76
|
ngOnDestroy(): void;
|
|
86
77
|
onQueueSelected(queueId: string): void;
|
|
@@ -103,18 +94,6 @@ export declare class QueueContainerComponent extends BaseContainerComponent<Queu
|
|
|
103
94
|
onFiltersCleared(): void;
|
|
104
95
|
onClearAllFilters(): void;
|
|
105
96
|
private syncFilterDropdown;
|
|
106
|
-
/**
|
|
107
|
-
* The host app points each sidebar entry (e.g. HPA Queues / Handset Queues) at the same route
|
|
108
|
-
* with a different `applicationType` query param holding the ApplicationType lookup _id.
|
|
109
|
-
* Switching between them reuses this component instance, so ngOnInit does not run again —
|
|
110
|
-
* the queryParamMap subscription is what re-fetches the list.
|
|
111
|
-
*/
|
|
112
|
-
private watchApplicationType;
|
|
113
|
-
/**
|
|
114
|
-
* Drops every piece of state scoped to the previous application type, so nothing from the
|
|
115
|
-
* old list (selected queue, rows, filters, search, paging) leaks into the new one.
|
|
116
|
-
*/
|
|
117
|
-
private resetQueueSelectionState;
|
|
118
97
|
private initializeComponent;
|
|
119
98
|
private setupSearchDebounce;
|
|
120
99
|
private getAllQueueList;
|
|
@@ -4,8 +4,6 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class QueueItemComponent {
|
|
5
5
|
private queueStore;
|
|
6
6
|
filteredQueueData: any[];
|
|
7
|
-
/** Sidebar heading — the host menu entry's label, e.g. 'HPA Queues'. */
|
|
8
|
-
queueTitle: string;
|
|
9
7
|
selectedQueueId: string | null;
|
|
10
8
|
selectedStatus: string;
|
|
11
9
|
userRole: boolean;
|
|
@@ -22,5 +20,5 @@ export declare class QueueItemComponent {
|
|
|
22
20
|
private readonly iconMap;
|
|
23
21
|
getQueueIcon(name: string): string;
|
|
24
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueueItemComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QueueItemComponent, "app-queue-item", never, { "filteredQueueData": { "alias": "filteredQueueData"; "required": false; }; "
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QueueItemComponent, "app-queue-item", never, { "filteredQueueData": { "alias": "filteredQueueData"; "required": false; }; "selectedQueueId": { "alias": "selectedQueueId"; "required": false; }; "selectedStatus": { "alias": "selectedStatus"; "required": false; }; "userRole": { "alias": "userRole"; "required": false; }; "showQueueDataForm": { "alias": "showQueueDataForm"; "required": false; }; }, { "queueSelected": "queueSelected"; "statusChanged": "statusChanged"; "insertQueueRequested": "insertQueueRequested"; }, never, never, false, never>;
|
|
26
24
|
}
|
|
@@ -2,7 +2,6 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class QueueListComponent {
|
|
4
4
|
queueData: any[];
|
|
5
|
-
queueTitle: string;
|
|
6
5
|
selectedQueueId: string | null;
|
|
7
6
|
selectedStatus: string;
|
|
8
7
|
userRole: boolean;
|
|
@@ -14,5 +13,5 @@ export declare class QueueListComponent {
|
|
|
14
13
|
onStatusChanged(status: string): void;
|
|
15
14
|
onInsertQueue(): void;
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueueListComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QueueListComponent, "app-queue-list", never, { "queueData": { "alias": "queueData"; "required": false; }; "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QueueListComponent, "app-queue-list", never, { "queueData": { "alias": "queueData"; "required": false; }; "selectedQueueId": { "alias": "selectedQueueId"; "required": false; }; "selectedStatus": { "alias": "selectedStatus"; "required": false; }; "userRole": { "alias": "userRole"; "required": false; }; "showQueueDataForm": { "alias": "showQueueDataForm"; "required": false; }; }, { "queueSelected": "queueSelected"; "statusChanged": "statusChanged"; "insertQueueRequested": "insertQueueRequested"; }, never, never, false, never>;
|
|
18
17
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Icon and colour configuration for a single valuation status shown in the queue "Val status" column. */
|
|
2
|
+
export interface ValuationStatusConfig {
|
|
3
|
+
icon: string;
|
|
4
|
+
iconClass: string;
|
|
5
|
+
textClass: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Maps a lowercased valuation/instruction status to its icon and colour configuration.
|
|
9
|
+
* Keys must be lowercase; lookups normalise the incoming status with `toLowerCase()`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const VALUATION_STATUS_CONFIG_MAP: Readonly<Record<string, ValuationStatusConfig>>;
|
|
12
|
+
/** Fallback configuration used when a status is not present in {@link VALUATION_STATUS_CONFIG_MAP}. */
|
|
13
|
+
export declare const VALUATION_STATUS_DEFAULT_CONFIG: ValuationStatusConfig;
|
|
@@ -19,9 +19,8 @@ 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";
|
|
23
22
|
export declare class QueueModule {
|
|
24
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueueModule, never>;
|
|
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
|
|
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]>;
|
|
26
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<QueueModule>;
|
|
27
26
|
}
|
|
@@ -17,13 +17,7 @@ export declare class QueueBusinessService {
|
|
|
17
17
|
navigateToQueue(queueId: string, showQueueDataForm: boolean): void;
|
|
18
18
|
navigateToInsertQueue(): void;
|
|
19
19
|
getUserRole(): boolean;
|
|
20
|
-
|
|
21
|
-
* The persisted selection is scoped per application type, otherwise a queue id restored from
|
|
22
|
-
* the HPA list would be applied while the Handset list is showing (and vice versa).
|
|
23
|
-
*/
|
|
24
|
-
private getSelectedQueueStorageKey;
|
|
25
|
-
storeSelectedQueue(queueId: string, applicationTypeId?: string | null): void;
|
|
26
|
-
getStoredQueueId(applicationTypeId?: string | null): string | null;
|
|
20
|
+
storeSelectedQueue(queueId: string): void;
|
|
27
21
|
storeApplicationData(record: any): void;
|
|
28
22
|
createDebouncedSearch(delay?: number): import("rxjs").Observable<string>;
|
|
29
23
|
buildQueryString(record: any): string;
|
|
@@ -11,16 +11,6 @@ export declare class QueueRecordTableBuilderService extends TableBuilder {
|
|
|
11
11
|
* Maps valuation status to icon and color configuration
|
|
12
12
|
*/
|
|
13
13
|
private getValuationStatusConfig;
|
|
14
|
-
/**
|
|
15
|
-
* Color configuration for each application status chip (background / border / text).
|
|
16
|
-
* Keys are lowercased status labels as received from the API.
|
|
17
|
-
*/
|
|
18
|
-
private static readonly STATUS_STYLE_MAP;
|
|
19
|
-
/**
|
|
20
|
-
* Maps a status label to an inline-style object for its chip.
|
|
21
|
-
* Unknown / new statuses fall back to a red chip.
|
|
22
|
-
*/
|
|
23
|
-
private getStatusChipStyle;
|
|
24
14
|
/**
|
|
25
15
|
* Truncates text to specified length with ellipsis
|
|
26
16
|
* @param {string} text - Text to truncate
|
|
@@ -28,10 +18,6 @@ export declare class QueueRecordTableBuilderService extends TableBuilder {
|
|
|
28
18
|
* @returns {string} Truncated text
|
|
29
19
|
*/
|
|
30
20
|
private truncateText;
|
|
31
|
-
/**
|
|
32
|
-
* GBP display for queue currency columns: £ with thousands separator and 2 decimals; null/empty -> '-'.
|
|
33
|
-
*/
|
|
34
|
-
private formatQueueCurrencyValue;
|
|
35
21
|
private getColumnOrder;
|
|
36
22
|
buildSecondaryTable(records: any[], headerWidths?: {
|
|
37
23
|
[key: string]: string;
|
|
@@ -29,7 +29,6 @@ export declare class QueueService extends BaseService<QueueModel> {
|
|
|
29
29
|
getQueueRecordsByApiConfig(apiConfig: string, params?: any): Observable<any>;
|
|
30
30
|
/**
|
|
31
31
|
* Fetches paginated queue records using the provided apiConfig URL with search and pagination support.
|
|
32
|
-
* This is the unified method used for both initial data loading and search functionality.
|
|
33
32
|
* Uses POST method with underwriterIds and unassigned in body, other params in query string.
|
|
34
33
|
* @param {string} apiConfig - The full API endpoint to fetch records for the selected queue
|
|
35
34
|
* @param {string} [searchKey] - Optional search term
|
|
@@ -44,11 +43,9 @@ export declare class QueueService extends BaseService<QueueModel> {
|
|
|
44
43
|
/**
|
|
45
44
|
* Fetches all queue entities from the configured data source.
|
|
46
45
|
* The entities are stored in the queueStore upon retrieval.
|
|
47
|
-
* @param {string} [applicationTypeId] Optional ApplicationType lookup _id to filter the list by.
|
|
48
|
-
* When omitted the request is unchanged and every queue is returned.
|
|
49
46
|
* @returns {Observable<any>} Observable emitting the fetched queue entities
|
|
50
47
|
*/
|
|
51
|
-
getAllQueue(
|
|
48
|
+
getAllQueue(): Observable<any>;
|
|
52
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueueService, never>;
|
|
53
50
|
static ɵprov: i0.ɵɵInjectableDeclaration<QueueService>;
|
|
54
51
|
}
|
|
@@ -87,8 +87,6 @@ export declare class SHARED {
|
|
|
87
87
|
static MISSING_RECORD_ID: string;
|
|
88
88
|
static EMPTY_STRING: string;
|
|
89
89
|
static SELECTED_QUEUE_ID: string;
|
|
90
|
-
/** Query param name used on GET Queues to filter the list by ApplicationType lookup _id. */
|
|
91
|
-
static QUEUE_APPLICATION_TYPE_PARAM: string;
|
|
92
90
|
static ISITEMEXPRESSION: string;
|
|
93
91
|
static DT2: string;
|
|
94
92
|
static TEXTBOXFIELD: string;
|
|
@@ -126,14 +124,11 @@ export declare class SHARED {
|
|
|
126
124
|
static REFERRED: string;
|
|
127
125
|
static FINANCE: string;
|
|
128
126
|
static TOTAL_FINANCE_AMOUNT: string;
|
|
129
|
-
static BASE_PRICE: string;
|
|
130
|
-
static MONTHLY_PAYMENT: string;
|
|
131
127
|
static VALUATION_STATUS: string;
|
|
132
128
|
static TASKS: string;
|
|
133
129
|
static TASK_BROKER_LABEL: string;
|
|
134
130
|
static TASK_UNDERWRITER_LABEL: string;
|
|
135
131
|
static APP_ID: string;
|
|
136
|
-
static STATUS: string;
|
|
137
132
|
static COMPANY_NAME: string;
|
|
138
133
|
static APPLICATION_TYPE: string;
|
|
139
134
|
static ASSIGNED_TO: string;
|
|
@@ -304,7 +299,7 @@ export declare const QUEUE_RECORD_TABLE_COLUMN_WIDTH_LIST: {
|
|
|
304
299
|
age: string;
|
|
305
300
|
tasks: string;
|
|
306
301
|
productName: string;
|
|
307
|
-
|
|
302
|
+
baseRate: string;
|
|
308
303
|
monthlyPayment: string;
|
|
309
304
|
submittedDate: string;
|
|
310
305
|
};
|
package/package.json
CHANGED
|
@@ -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>
|