cat-qw-lib 2.5.19 → 2.5.20

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.
@@ -1,10 +1,10 @@
1
- import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
2
2
  import { QueueFilterDropdownService, RiskRating, ApplicationType, PurchaseType, TaskStatus, QueueFilter, EPC } from '../../services/queue-filter-dropdown.service';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  *
6
6
  */
7
- export declare class QueueFilterDropdownComponent implements OnChanges {
7
+ export declare class QueueFilterDropdownComponent implements OnChanges, OnDestroy {
8
8
  filterService: QueueFilterDropdownService;
9
9
  showDropdown: boolean;
10
10
  dropdownPanel: ElementRef;
@@ -15,14 +15,20 @@ export declare class QueueFilterDropdownComponent implements OnChanges {
15
15
  id: string;
16
16
  name: string;
17
17
  }>;
18
+ loadingUnderwriters: boolean;
18
19
  filters: QueueFilter;
20
+ private searchSubject;
21
+ private searchSubscription?;
19
22
  appliedFilters: any;
20
23
  filterApplied: EventEmitter<any>;
21
24
  filtersCleared: EventEmitter<void>;
22
25
  constructor(filterService: QueueFilterDropdownService);
23
26
  ngOnChanges(changes: SimpleChanges): void;
27
+ private setupSearchSubscription;
28
+ onUnderwriterFilter(event: any): void;
24
29
  get filterCount(): number;
25
30
  onFilterBtnClick(): void;
31
+ private loadInitialUnderwriters;
26
32
  setRiskRating(rating: RiskRating): void;
27
33
  setApplicationType(type: ApplicationType): void;
28
34
  setPurchaseType(type: PurchaseType): void;
@@ -39,6 +45,7 @@ export declare class QueueFilterDropdownComponent implements OnChanges {
39
45
  syncWithAppliedFilters(appliedFilters: any): void;
40
46
  private restoreOriginalFilters;
41
47
  onDocumentClick(event: MouseEvent): void;
48
+ ngOnDestroy(): void;
42
49
  static ɵfac: i0.ɵɵFactoryDeclaration<QueueFilterDropdownComponent, never>;
43
50
  static ɵcmp: i0.ɵɵComponentDeclaration<QueueFilterDropdownComponent, "lib-queue-filter-dropdown", never, { "appliedFilters": { "alias": "appliedFilters"; "required": false; }; }, { "filterApplied": "filterApplied"; "filtersCleared": "filtersCleared"; }, never, never, false, never>;
44
51
  }
@@ -1,3 +1,7 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { BaseService, AppConfigService, BaseStore } from '../../shared';
4
+ import { ListService } from '../../shared/services/list.service';
1
5
  import * as i0 from "@angular/core";
2
6
  export type RiskRating = 'Low' | 'Medium' | 'High';
3
7
  export type ApplicationType = 'BTL' | 'HPP';
@@ -18,10 +22,20 @@ export interface QueueFilter {
18
22
  pendingDays: number | null;
19
23
  assignedUnderwriter: string[];
20
24
  }
25
+ export interface UnderwriterOption {
26
+ id: string;
27
+ name: string;
28
+ }
21
29
  /**
22
30
  *
23
31
  */
24
- export declare class QueueFilterDropdownService {
32
+ export declare class QueueFilterDropdownService extends BaseService<any> {
33
+ private configService;
34
+ constructor(http: HttpClient, configService: AppConfigService, store: BaseStore<any>, listService: ListService);
35
+ /**
36
+ * Override apiUrl to use the main API URL instead of catQwUrl
37
+ */
38
+ get apiUrl(): string;
25
39
  private filter;
26
40
  setRiskRating(rating: RiskRating): void;
27
41
  setApplicationType(type: ApplicationType): void;
@@ -44,6 +58,12 @@ export declare class QueueFilterDropdownService {
44
58
  * Maps UI filter values to API parameters.
45
59
  */
46
60
  buildFilterQueryString(filters: QueueFilter): string;
61
+ /**
62
+ * Fetches underwriter options from the API based on search key
63
+ * @param {string} searchKey - The search term to filter underwriters
64
+ * @returns {Observable<UnderwriterOption[]>} Observable of underwriter options array
65
+ */
66
+ getUnderwritersList(searchKey?: string): Observable<UnderwriterOption[]>;
47
67
  static ɵfac: i0.ɵɵFactoryDeclaration<QueueFilterDropdownService, never>;
48
68
  static ɵprov: i0.ɵɵInjectableDeclaration<QueueFilterDropdownService>;
49
69
  }
@@ -13,4 +13,5 @@ export declare class ROUTES {
13
13
  static DOCUMENTALERT: string;
14
14
  static VALIDATE_ACTIONS: string;
15
15
  static EVALUATE_BY_WIDGETNAME: string;
16
+ static GET_ALL_UNDERWRITER_TEAMLEAD: string;
16
17
  }
@@ -11,6 +11,7 @@ export declare class AppConfigService {
11
11
  loadAppConfig(): Promise<void>;
12
12
  private ensureConfigLoaded;
13
13
  get apiBaseUrl(): any;
14
+ get apiUrl(): any;
14
15
  get interactBaseApi(): any;
15
16
  get visibilityOptions(): any;
16
17
  get swaggerUrl(): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-qw-lib",
3
- "version": "2.5.19",
3
+ "version": "2.5.20",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"