cat-qw-lib 1.1.1 → 1.1.10

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.
@@ -12,7 +12,7 @@ export declare class QueueAdminListComponent extends BaseContainerComponent<Queu
12
12
  queueId: any;
13
13
  ngOnInit(): void;
14
14
  getAllQueueList(): void;
15
- handleQueueId(event: any): void;
15
+ handleQueueData(event: any): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<QueueAdminListComponent, never>;
17
17
  static ɵcmp: i0.ɵɵComponentDeclaration<QueueAdminListComponent, "lib-queue-admin-list", never, {}, {}, never, never, false, never>;
18
18
  }
@@ -41,9 +41,9 @@ export declare class QueueContainerComponent extends BaseContainerComponent<Queu
41
41
  queryString: string;
42
42
  searchText: string;
43
43
  sortBy: string;
44
- sortOrder: string;
44
+ sortOrder: number;
45
+ resetSort: boolean;
45
46
  appliedFilters: any;
46
- tableHeight: string;
47
47
  placeholder: string;
48
48
  filterDropdown: QueueFilterDropdownComponent;
49
49
  set selectedRowsInput(rows: any[]);
@@ -74,6 +74,7 @@ export declare class QueueContainerComponent extends BaseContainerComponent<Queu
74
74
  onSearchCleared(): void;
75
75
  onPaginationChanged(event: any): void;
76
76
  onFilterApplied(record: any): void;
77
+ get hasActiveFilters(): boolean;
77
78
  onTableRowClick(record: any): void;
78
79
  onTableSelectionChange(selection: any[]): void;
79
80
  onAssignmentDataReady(event: {
@@ -88,12 +89,13 @@ export declare class QueueContainerComponent extends BaseContainerComponent<Queu
88
89
  private initializeComponent;
89
90
  private setupSearchDebounce;
90
91
  private getAllQueueList;
91
- private handleQueueId;
92
+ private handleQueueData;
93
+ private resetSorting;
92
94
  private filterQueues;
93
95
  private getQueueRecordsData;
96
+ private getSortOrderString;
94
97
  private resetPaginationState;
95
98
  private resetPage;
96
- private resetSearchState;
97
99
  private clearSelection;
98
100
  private clearFilters;
99
101
  onSearchTermChanged(searchTerm: string): void;
@@ -109,5 +111,5 @@ export declare class QueueContainerComponent extends BaseContainerComponent<Queu
109
111
  isAssignButtonEnabled(): boolean;
110
112
  private getStoredQueueId;
111
113
  static ɵfac: i0.ɵɵFactoryDeclaration<QueueContainerComponent, never>;
112
- static ɵcmp: i0.ɵɵComponentDeclaration<QueueContainerComponent, "lib-queue-container", never, { "tableHeight": { "alias": "tableHeight"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "selectedRowsInput": { "alias": "selectedRowsInput"; "required": false; }; }, { "assignmentComplete": "assignmentComplete"; "userAssigned": "userAssigned"; "selectedRowsData": "selectedRowsData"; "assignmentDataReady": "assignmentDataReady"; "rowClick": "rowClick"; "selectionChange": "selectionChange"; }, never, ["[user-dropdown]"], false, never>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<QueueContainerComponent, "lib-queue-container", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "selectedRowsInput": { "alias": "selectedRowsInput"; "required": false; }; }, { "assignmentComplete": "assignmentComplete"; "userAssigned": "userAssigned"; "selectedRowsData": "selectedRowsData"; "assignmentDataReady": "assignmentDataReady"; "rowClick": "rowClick"; "selectionChange": "selectionChange"; }, never, ["[user-dropdown]"], false, never>;
113
115
  }
@@ -1,14 +1,17 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { QueueModel } from '../../models/queue.model';
3
3
  import { TableSecondaryModel } from '../../../shared/table-secondary/models/table-secondary.model';
4
4
  import { MetaDataModel } from '../../../shared/models/meta-data.model';
5
5
  import * as i0 from "@angular/core";
6
- export declare class QueueRecordTableComponent {
6
+ export declare class QueueRecordTableComponent implements OnChanges {
7
+ sortField: string;
8
+ sortOrder: number;
7
9
  table: TableSecondaryModel;
8
10
  metaData: MetaDataModel;
9
11
  loading: boolean;
10
12
  selectedRows: any[];
11
- tableHeight: string;
13
+ resetSort: boolean;
14
+ selectedQueue: any;
12
15
  selectionChange: EventEmitter<any[]>;
13
16
  selectedRowsData: EventEmitter<any[]>;
14
17
  assignmentDataReady: EventEmitter<{
@@ -20,6 +23,7 @@ export declare class QueueRecordTableComponent {
20
23
  filterApplied: EventEmitter<any>;
21
24
  sortApplied: EventEmitter<any>;
22
25
  onSelectionChange(selection: any[]): void;
26
+ ngOnChanges(changes: SimpleChanges): void;
23
27
  onRowClick(record: any): void;
24
28
  onPaginationChange(event: any): void;
25
29
  onFilterApplied(record: any): void;
@@ -27,5 +31,5 @@ export declare class QueueRecordTableComponent {
27
31
  get hasData(): boolean;
28
32
  get selectedCount(): number;
29
33
  static ɵfac: i0.ɵɵFactoryDeclaration<QueueRecordTableComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<QueueRecordTableComponent, "app-queue-record-table", never, { "table": { "alias": "table"; "required": false; }; "metaData": { "alias": "metaData"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "tableHeight": { "alias": "tableHeight"; "required": false; }; }, { "selectionChange": "selectionChange"; "selectedRowsData": "selectedRowsData"; "assignmentDataReady": "assignmentDataReady"; "rowClick": "rowClick"; "paginationChanged": "paginationChanged"; "filterApplied": "filterApplied"; "sortApplied": "sortApplied"; }, never, never, false, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<QueueRecordTableComponent, "app-queue-record-table", never, { "table": { "alias": "table"; "required": false; }; "metaData": { "alias": "metaData"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "resetSort": { "alias": "resetSort"; "required": false; }; "selectedQueue": { "alias": "selectedQueue"; "required": false; }; }, { "selectionChange": "selectionChange"; "selectedRowsData": "selectedRowsData"; "assignmentDataReady": "assignmentDataReady"; "rowClick": "rowClick"; "paginationChanged": "paginationChanged"; "filterApplied": "filterApplied"; "sortApplied": "sortApplied"; }, never, never, false, never>;
31
35
  }
@@ -9,6 +9,10 @@ export declare class QueueBusinessService {
9
9
  private destroy$;
10
10
  constructor(router: Router, sessionService: SessionService, queueFilterDropdownService: QueueFilterDropdownService);
11
11
  filterQueuesByStatus(queues: any[], status: string): any[];
12
+ /**
13
+ * The rest follow in their original order.
14
+ */
15
+ orderQueuesByPriority(queues: any[]): any[];
12
16
  getFirstQueueId(filteredQueues: any[]): string | null;
13
17
  navigateToQueue(queueId: string, showQueueDataForm: boolean): void;
14
18
  navigateToInsertQueue(): void;
@@ -2,6 +2,8 @@ import { TableBuilder } from '../../shared/services/table.builder';
2
2
  import { TableSecondaryModel } from '../../shared/table-secondary/models/table-secondary.model';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class QueueRecordTableBuilderService extends TableBuilder {
5
+ private columnStyles;
6
+ private getInitial;
5
7
  buildSecondaryTable(records: any[], headerWidths?: {
6
8
  [key: string]: string;
7
9
  }, editPermission?: string, deletePermission?: string): TableSecondaryModel;
@@ -112,6 +112,7 @@ export declare class SHARED {
112
112
  static selectedApplicationType: string;
113
113
  static APPLICANTS: string;
114
114
  static SECURITY_ADDRESS: string;
115
+ static TASKS: string;
115
116
  }
116
117
  export declare const widgetLayoutTypeList: {
117
118
  name: string;
@@ -261,7 +262,12 @@ export declare const actionTableColumnWidthList: {
261
262
  prompt: string;
262
263
  isActive: string;
263
264
  };
265
+ export declare const queuePriorityOrder: string[];
264
266
  export declare const QUEUE_RECORD_TABLE_COLUMN_WIDTH_LIST: {
265
267
  brokerName: string;
266
268
  securityAddress: string;
269
+ applicants: string;
270
+ };
271
+ export declare const FIELD_DISPLAY_NAMES: {
272
+ [key: string]: string;
267
273
  };
@@ -50,6 +50,7 @@ export declare class TableSecondaryComponent implements OnInit, OnChanges, OnDes
50
50
  searchTerm: string;
51
51
  filterQuery: string;
52
52
  onPage: EventEmitter<any>;
53
+ tableNgClassExpression: string;
53
54
  constructor(_router: Router, service: BaseService<any>, activatedRoute: ActivatedRoute, baseQuery: BaseQuery<any>, baseStore: BaseStore<any>);
54
55
  /**
55
56
  * Lifecycle hook that is called after data-bound properties are initialized.
@@ -136,6 +137,25 @@ export declare class TableSecondaryComponent implements OnInit, OnChanges, OnDes
136
137
  */
137
138
  isRowSelected(rowData: any): boolean;
138
139
  onSort(event: any): void;
140
+ /**
141
+ * Utility: Check if value is array (for template use)
142
+ */
143
+ isArray(val: any): boolean;
144
+ shouldShowValue(col: any, rowData: any): boolean;
145
+ /**
146
+ * Evaluates ngClass expression for dynamic styling
147
+ * @param {string} expression - The ngClass expression to evaluate
148
+ * @param {any} rowData - The row data to use in evaluation
149
+ * @returns {string} The evaluated CSS classes
150
+ */
151
+ evaluateNgClass(expression: string, rowData: any): string;
152
+ /**
153
+ * Evaluates ngStyle expression for dynamic inline styles
154
+ * @param {string} expression - The ngStyle expression to evaluate
155
+ * @param {any} rowData - The row data to use in evaluation
156
+ * @returns {any} The evaluated style object
157
+ */
158
+ evaluateNgStyle(expression: string, rowData: any): any;
139
159
  static ɵfac: i0.ɵɵFactoryDeclaration<TableSecondaryComponent, never>;
140
- static ɵcmp: i0.ɵɵComponentDeclaration<TableSecondaryComponent, "lib-table-secondary", never, { "table": { "alias": "table"; "required": false; }; "metaData": { "alias": "metaData"; "required": false; }; "title": { "alias": "title"; "required": false; }; "builder": { "alias": "builder"; "required": false; }; "showStatus": { "alias": "showStatus"; "required": false; }; "showActions": { "alias": "showActions"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "showNewRecordButton": { "alias": "showNewRecordButton"; "required": false; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; }; "pathName": { "alias": "pathName"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "usePagination": { "alias": "usePagination"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "rowSelection": { "alias": "rowSelection"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "noRecordsMessage": { "alias": "noRecordsMessage"; "required": false; }; "searchTerm": { "alias": "searchTerm"; "required": false; }; "filterQuery": { "alias": "filterQuery"; "required": false; }; }, { "selectionChange": "selectionChange"; "rowSelectionChange": "rowSelectionChange"; "sortChanged": "sortChanged"; "onDeleteRow": "onDeleteRow"; "onPage": "onPage"; }, never, never, true, never>;
160
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableSecondaryComponent, "lib-table-secondary", never, { "table": { "alias": "table"; "required": false; }; "metaData": { "alias": "metaData"; "required": false; }; "title": { "alias": "title"; "required": false; }; "builder": { "alias": "builder"; "required": false; }; "showStatus": { "alias": "showStatus"; "required": false; }; "showActions": { "alias": "showActions"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "showNewRecordButton": { "alias": "showNewRecordButton"; "required": false; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; }; "pathName": { "alias": "pathName"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "usePagination": { "alias": "usePagination"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "rowSelection": { "alias": "rowSelection"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "noRecordsMessage": { "alias": "noRecordsMessage"; "required": false; }; "sortField": { "alias": "sortField"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "searchTerm": { "alias": "searchTerm"; "required": false; }; "filterQuery": { "alias": "filterQuery"; "required": false; }; }, { "selectionChange": "selectionChange"; "rowSelectionChange": "rowSelectionChange"; "sortChanged": "sortChanged"; "onDeleteRow": "onDeleteRow"; "onPage": "onPage"; }, never, never, true, never>;
141
161
  }
@@ -12,6 +12,8 @@ export declare class WidgetItemComponent implements OnInit, OnChanges, OnDestroy
12
12
  widget: WidgetModel;
13
13
  application: any;
14
14
  widgetKey: string;
15
+ keyClass: string;
16
+ valueClass: string;
15
17
  fieldKeyStyle: {
16
18
  [key: string]: any;
17
19
  };
@@ -58,6 +60,7 @@ export declare class WidgetItemComponent implements OnInit, OnChanges, OnDestroy
58
60
  * @returns true if there's meaningful content, false otherwise
59
61
  */
60
62
  hasHtmlContent(value: string): boolean;
63
+ formatDate(value: string): string;
61
64
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetItemComponent, never>;
62
65
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetItemComponent, "lib-widget-item", never, { "widgetItem": { "alias": "widgetItem"; "required": false; }; "widget": { "alias": "widget"; "required": false; }; "application": { "alias": "application"; "required": false; }; }, {}, never, never, false, never>;
63
66
  }
@@ -32,6 +32,8 @@ export interface WidgetStyleConfig {
32
32
  isConfirmed: string;
33
33
  }
34
34
  export interface StyleConfig {
35
+ keyClass: string;
36
+ valueClass: string;
35
37
  key: string;
36
38
  value: string;
37
39
  keyIconClass: string;
@@ -20,8 +20,9 @@ import * as i18 from "../shared/shared.module";
20
20
  import * as i19 from "primeng/sidebar";
21
21
  import * as i20 from "primeng/timeline";
22
22
  import * as i21 from "primeng/chart";
23
+ import * as i22 from "primeng/skeleton";
23
24
  export declare class WidgetModule {
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetModule, [typeof i1.WidgetContainerComponent, typeof i2.WidgetMenuComponent, typeof i3.WidgetMainComponent, typeof i4.WidgetHeaderComponent, typeof i5.WidgetFooterComponent, typeof i6.WidgetBodyComponent, typeof i7.WidgetItemComponent, typeof i8.WidgetRowTileComponent, typeof i9.WidgetMenuContainerComponent, typeof i10.WidgetMenuHeaderComponent, typeof i11.WidgetMenuBodyComponent, typeof i12.WidgetMenuItemComponent, typeof i13.CustomWidgetComponent], [typeof i14.CommonModule, typeof i15.ButtonModule, typeof i16.DividerModule, typeof i17.CardModule, typeof i18.SharedModule, typeof i19.SidebarModule, typeof i20.TimelineModule, typeof i21.ChartModule], [typeof i1.WidgetContainerComponent, typeof i9.WidgetMenuContainerComponent, typeof i13.CustomWidgetComponent]>;
26
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetModule, [typeof i1.WidgetContainerComponent, typeof i2.WidgetMenuComponent, typeof i3.WidgetMainComponent, typeof i4.WidgetHeaderComponent, typeof i5.WidgetFooterComponent, typeof i6.WidgetBodyComponent, typeof i7.WidgetItemComponent, typeof i8.WidgetRowTileComponent, typeof i9.WidgetMenuContainerComponent, typeof i10.WidgetMenuHeaderComponent, typeof i11.WidgetMenuBodyComponent, typeof i12.WidgetMenuItemComponent, typeof i13.CustomWidgetComponent], [typeof i14.CommonModule, typeof i15.ButtonModule, typeof i16.DividerModule, typeof i17.CardModule, typeof i18.SharedModule, typeof i19.SidebarModule, typeof i20.TimelineModule, typeof i21.ChartModule, typeof i22.SkeletonModule], [typeof i1.WidgetContainerComponent, typeof i9.WidgetMenuContainerComponent, typeof i13.CustomWidgetComponent]>;
26
27
  static ɵinj: i0.ɵɵInjectorDeclaration<WidgetModule>;
27
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-qw-lib",
3
- "version": "1.1.1",
3
+ "version": "1.1.10",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
@@ -0,0 +1,22 @@
1
+ {
2
+ "catQwUrl": "https://gatehouse-qw-qa-g9ffb0ggedhjacf6.uksouth-01.azurewebsites.net/api/",
3
+ "apiUrl": "https://gatehouse-api-qa-g6hhevfpazc6f5ab.uksouth-01.azurewebsites.net/api/",
4
+ "swaggerUrl": "https://gatehouse-qw-qa-g9ffb0ggedhjacf6.uksouth-01.azurewebsites.net/api-docs/",
5
+ "adminEmail": "neeraj.kumar@catura.co.uk",
6
+ "baseUrl": "https://gatehouse-interact-qa-h9gjhwb0behtepgu.uksouth-01.azurewebsites.net",
7
+ "interactBaseApi": "https://gatehouse-interact-qa-h9gjhwb0behtepgu.uksouth-01.azurewebsites.net/api/",
8
+ "actionBaseApi": "https://gatehouse-qw-qa-g9ffb0ggedhjacf6.uksouth-01.azurewebsites.net/api/",
9
+ "documentApiUrl": "https://gatehouse-documents-qa-bgavezbwe9b6e9h6.uksouth-01.azurewebsites.net/api/",
10
+ "adminPhoneNumber": "+447380300545",
11
+ "gsvKey": "AIzaSyDWwq79YYgWvSiAizyUz4aovHvSY-j3IfY",
12
+ "visibilityOption": {
13
+ "isRationalVisible": false,
14
+ "isChecklistVisible": false,
15
+ "isAudit": false,
16
+ "isConversation": true,
17
+ "isOverview": true,
18
+ "isDocuments": true
19
+ },
20
+ "env": "qa",
21
+ "test":"test"
22
+ }
@@ -1,18 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { AppConfigService } from '../../shared/services/app-config.service';
4
- import * as i0 from "@angular/core";
5
- export declare class ApplicationAssignmentService {
6
- private http;
7
- private appConfigService;
8
- constructor(http: HttpClient, appConfigService: AppConfigService);
9
- /**
10
- * Assign an application to a user
11
- * @param applicationId - The ID of the application to assign
12
- * @param underWriterId - The ID of the user to assign the application to
13
- * @returns Observable of the assignment response
14
- */
15
- assignApplication(applicationId: string, underWriterId: string): Observable<any>;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationAssignmentService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<ApplicationAssignmentService>;
18
- }