cat-qw-lib 1.0.2 → 1.0.4
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/fesm2022/cat-qw-lib.mjs +847 -804
- package/fesm2022/cat-qw-lib.mjs.map +1 -1
- package/lib/queue/components/queue-container/queue-container.component.d.ts +55 -52
- package/lib/queue/components/queue-item/queue-item.component.d.ts +11 -17
- package/lib/queue/components/queue-list/queue-list.component.d.ts +11 -3
- package/lib/queue/components/queue-record-table/queue-record-table.component.d.ts +17 -67
- package/lib/queue/components/queue-search/queue-search.component.d.ts +12 -30
- package/lib/queue/services/queue-business.service.d.ts +26 -0
- package/lib/queue/state/queue.service.d.ts +13 -7
- package/lib/shared/constant/DATASOURCES.d.ts +0 -1
- package/lib/shared/table-secondary/components/table-secondary.component.d.ts +11 -3
- package/package.json +1 -1
- package/lib/queue/services/application-assignment.service.d.ts +0 -18
|
@@ -1,23 +1,44 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { QueueModel } from '../../models/queue.model';
|
|
3
3
|
import { QueueService } from '../../state/queue.service';
|
|
4
4
|
import { QueueStore } from '../../state/queue.store';
|
|
5
5
|
import { BaseContainerComponent } from '../../../shared/_base/base-container/base-container.component';
|
|
6
6
|
import { BaseStore } from '../../../shared/state/base.store';
|
|
7
|
+
import { QueueBusinessService } from '../../services/queue-business.service';
|
|
8
|
+
import { TableSecondaryModel } from '../../../shared/table-secondary/models/table-secondary.model';
|
|
9
|
+
import { MetaDataModel } from '../../../shared/models/meta-data.model';
|
|
10
|
+
import { QueueRecordTableBuilderService } from '../../services/queue-record-table-builder.service';
|
|
7
11
|
import * as i0 from "@angular/core";
|
|
8
12
|
/**
|
|
9
13
|
* Container component for managing queue-related data and interactions.
|
|
10
14
|
* Extends the BaseContainerComponent with a generic type of QueueModel.
|
|
11
15
|
*/
|
|
12
|
-
export declare class QueueContainerComponent extends BaseContainerComponent<QueueModel> {
|
|
16
|
+
export declare class QueueContainerComponent extends BaseContainerComponent<QueueModel> implements OnInit, OnDestroy {
|
|
13
17
|
queueStore: QueueStore;
|
|
14
18
|
private queueService;
|
|
15
19
|
private baseStore;
|
|
16
|
-
|
|
20
|
+
private queueBusinessService;
|
|
21
|
+
private tableBuilder;
|
|
22
|
+
private destroy$;
|
|
23
|
+
private searchSubject;
|
|
17
24
|
queueList: QueueModel[];
|
|
18
25
|
selectedQueue: any;
|
|
19
|
-
|
|
26
|
+
currentSearchTerm: string;
|
|
20
27
|
selectedRows: any[];
|
|
28
|
+
loading: boolean;
|
|
29
|
+
error: string | null;
|
|
30
|
+
filteredQueueData: any[];
|
|
31
|
+
selectedStatus: string;
|
|
32
|
+
userRole: boolean;
|
|
33
|
+
selectedQueueId: string | null;
|
|
34
|
+
table: TableSecondaryModel;
|
|
35
|
+
metaData: MetaDataModel;
|
|
36
|
+
currentPage: number;
|
|
37
|
+
currentLimit: number;
|
|
38
|
+
queryString: string;
|
|
39
|
+
searchText: string;
|
|
40
|
+
sortBy: string;
|
|
41
|
+
sortOrder: string;
|
|
21
42
|
set selectedRowsInput(rows: any[]);
|
|
22
43
|
get selectedRowsInput(): any[];
|
|
23
44
|
assignmentComplete: EventEmitter<{
|
|
@@ -28,70 +49,52 @@ export declare class QueueContainerComponent extends BaseContainerComponent<Queu
|
|
|
28
49
|
user: any;
|
|
29
50
|
selectedRows: any[];
|
|
30
51
|
}>;
|
|
31
|
-
rowSelected: EventEmitter<{
|
|
32
|
-
row: any;
|
|
33
|
-
isSelected: boolean;
|
|
34
|
-
}>;
|
|
35
52
|
selectedRowsData: EventEmitter<any[]>;
|
|
36
53
|
assignmentDataReady: EventEmitter<{
|
|
37
54
|
selectedRows: any[];
|
|
38
55
|
queueData: QueueModel;
|
|
39
56
|
}>;
|
|
40
57
|
rowClick: EventEmitter<any>;
|
|
58
|
+
selectionChange: EventEmitter<any[]>;
|
|
59
|
+
constructor(queueStore: QueueStore, queueService: QueueService, baseStore: BaseStore<QueueModel>, queueBusinessService: QueueBusinessService, tableBuilder: QueueRecordTableBuilderService);
|
|
41
60
|
ngOnInit(): void;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
61
|
+
ngOnDestroy(): void;
|
|
62
|
+
onQueueSelected(queueId: string): void;
|
|
63
|
+
onStatusChanged(status: string): void;
|
|
64
|
+
onInsertQueueRequested(): void;
|
|
65
|
+
onSearchInputChanged(searchTerm: string): void;
|
|
66
|
+
onSearchRequested(searchTerm: string): void;
|
|
67
|
+
onSearchCleared(): void;
|
|
68
|
+
onPaginationChanged(event: any): void;
|
|
69
|
+
onFilterApplied(record: any): void;
|
|
70
|
+
onTableRowClick(record: any): void;
|
|
71
|
+
onTableSelectionChange(selection: any[]): void;
|
|
72
|
+
onAssignmentDataReady(event: {
|
|
73
|
+
selectedRows: any[];
|
|
74
|
+
queueData: QueueModel;
|
|
75
|
+
}): void;
|
|
76
|
+
onSortApplied(event: any): void;
|
|
77
|
+
private initializeComponent;
|
|
78
|
+
private setupSearchDebounce;
|
|
79
|
+
private getAllQueueList;
|
|
80
|
+
private handleQueueId;
|
|
81
|
+
private filterQueues;
|
|
82
|
+
private getQueueRecordsData;
|
|
83
|
+
private resetPaginationState;
|
|
84
|
+
private resetPage;
|
|
85
|
+
private resetSearchState;
|
|
86
|
+
private clearSelection;
|
|
87
|
+
onSearchTermChanged(searchTerm: string): void;
|
|
49
88
|
onSelectionChange(selection: any[]): void;
|
|
50
|
-
/**
|
|
51
|
-
* Clears the current selection
|
|
52
|
-
*/
|
|
53
|
-
clearSelection(): void;
|
|
54
|
-
/**
|
|
55
|
-
* Handles the assignment complete event from the projected user-dropdown component
|
|
56
|
-
*/
|
|
57
89
|
onAssignmentComplete(event: {
|
|
58
90
|
success: boolean;
|
|
59
91
|
message: string;
|
|
60
92
|
}): void;
|
|
61
|
-
/**
|
|
62
|
-
* Handles user assignment events from the projected user-dropdown component
|
|
63
|
-
*/
|
|
64
93
|
onUserAssigned(event: {
|
|
65
94
|
user: any;
|
|
66
95
|
selectedRows: any[];
|
|
67
96
|
}): void;
|
|
68
|
-
/**
|
|
69
|
-
* Handles individual row selection events from the queue record table
|
|
70
|
-
* @param {any} event - Object containing row data and selection state
|
|
71
|
-
*/
|
|
72
|
-
onRowSelected(event: {
|
|
73
|
-
row: any;
|
|
74
|
-
isSelected: boolean;
|
|
75
|
-
}): void;
|
|
76
|
-
/**
|
|
77
|
-
* Handles selected rows data events from the queue record table
|
|
78
|
-
* @param {any[]} selectedRows - Array of selected row data
|
|
79
|
-
*/
|
|
80
|
-
onSelectedRowsData(selectedRows: any[]): void;
|
|
81
|
-
/**
|
|
82
|
-
* Handles assignment data ready events from the queue record table
|
|
83
|
-
* @param {any} event - Object containing selected rows and queue data
|
|
84
|
-
*/
|
|
85
|
-
onAssignmentDataReady(event: {
|
|
86
|
-
selectedRows: any[];
|
|
87
|
-
queueData: QueueModel;
|
|
88
|
-
}): void;
|
|
89
|
-
/**
|
|
90
|
-
* Handles row click events from the queue record table
|
|
91
|
-
* @param {any} record - The record data that was clicked
|
|
92
|
-
*/
|
|
93
|
-
onRowClick(record: any): void;
|
|
94
97
|
isAssignButtonEnabled(): boolean;
|
|
95
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueueContainerComponent, never>;
|
|
96
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QueueContainerComponent, "lib-queue-container", never, { "selectedRowsInput": { "alias": "selectedRowsInput"; "required": false; }; }, { "assignmentComplete": "assignmentComplete"; "userAssigned": "userAssigned"; "
|
|
99
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QueueContainerComponent, "lib-queue-container", never, { "selectedRowsInput": { "alias": "selectedRowsInput"; "required": false; }; }, { "assignmentComplete": "assignmentComplete"; "userAssigned": "userAssigned"; "selectedRowsData": "selectedRowsData"; "assignmentDataReady": "assignmentDataReady"; "rowClick": "rowClick"; "selectionChange": "selectionChange"; }, never, ["[user-dropdown]"], false, never>;
|
|
97
100
|
}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { SessionService } from '../../../shared/services/session.service';
|
|
4
|
-
import { PERMISSION } from '../../../shared/constant/PERMISSION';
|
|
5
2
|
import * as i0 from "@angular/core";
|
|
6
3
|
export declare class QueueItemComponent {
|
|
7
|
-
router: Router;
|
|
8
|
-
sessionService: SessionService;
|
|
9
|
-
queueData: any[];
|
|
10
|
-
showQueueDataForm: boolean;
|
|
11
|
-
queueDataById: EventEmitter<any>;
|
|
12
|
-
userRole: any;
|
|
13
|
-
selectedQueueId: any;
|
|
14
4
|
filteredQueueData: any[];
|
|
5
|
+
selectedQueueId: string | null;
|
|
15
6
|
selectedStatus: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
userRole: boolean;
|
|
8
|
+
showQueueDataForm: boolean;
|
|
9
|
+
queueSelected: EventEmitter<string>;
|
|
10
|
+
statusChanged: EventEmitter<string>;
|
|
11
|
+
insertQueueRequested: EventEmitter<void>;
|
|
12
|
+
onQueueClick(queueId: string): void;
|
|
21
13
|
onStatusChange(event: any): void;
|
|
22
|
-
|
|
14
|
+
onInsertQueue(): void;
|
|
15
|
+
isQueueActive(queue: any): boolean;
|
|
16
|
+
isQueueSelected(queueId: string): boolean;
|
|
23
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueueItemComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QueueItemComponent, "app-queue-item", never, { "
|
|
18
|
+
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>;
|
|
25
19
|
}
|
|
@@ -2,8 +2,16 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class QueueListComponent {
|
|
4
4
|
queueData: any[];
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
selectedQueueId: string | null;
|
|
6
|
+
selectedStatus: string;
|
|
7
|
+
userRole: boolean;
|
|
8
|
+
showQueueDataForm: boolean;
|
|
9
|
+
queueSelected: EventEmitter<string>;
|
|
10
|
+
statusChanged: EventEmitter<string>;
|
|
11
|
+
insertQueueRequested: EventEmitter<void>;
|
|
12
|
+
onQueueSelected(queueId: string): void;
|
|
13
|
+
onStatusChanged(status: string): void;
|
|
14
|
+
onInsertQueue(): void;
|
|
7
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueueListComponent, never>;
|
|
8
|
-
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>;
|
|
9
17
|
}
|
|
@@ -1,80 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { QueueModel } from '../../models/queue.model';
|
|
3
|
-
import { QueueService } from '../../state/queue.service';
|
|
4
|
-
import { QueueRecordTableBuilderService } from '../../services/queue-record-table-builder.service';
|
|
5
|
-
import { MetaDataModel } from '../../../shared/models/meta-data.model';
|
|
6
|
-
import { Paginator } from 'primeng/paginator';
|
|
7
3
|
import { TableSecondaryModel } from '../../../shared/table-secondary/models/table-secondary.model';
|
|
4
|
+
import { MetaDataModel } from '../../../shared/models/meta-data.model';
|
|
8
5
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class QueueRecordTableComponent
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
filteredSearchResult: any;
|
|
6
|
+
export declare class QueueRecordTableComponent {
|
|
7
|
+
table: TableSecondaryModel;
|
|
8
|
+
metaData: MetaDataModel;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
selectedRows: any[];
|
|
15
11
|
selectionChange: EventEmitter<any[]>;
|
|
16
|
-
rowSelected: EventEmitter<{
|
|
17
|
-
row: any;
|
|
18
|
-
isSelected: boolean;
|
|
19
|
-
}>;
|
|
20
12
|
selectedRowsData: EventEmitter<any[]>;
|
|
21
13
|
assignmentDataReady: EventEmitter<{
|
|
22
14
|
selectedRows: any[];
|
|
23
15
|
queueData: QueueModel;
|
|
24
16
|
}>;
|
|
25
17
|
rowClick: EventEmitter<any>;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
private apiData;
|
|
30
|
-
private destroy$;
|
|
31
|
-
private filterSubject;
|
|
32
|
-
currentPage: number;
|
|
33
|
-
itemsPerPage: number;
|
|
34
|
-
selectedRows: any[];
|
|
35
|
-
protected Math: Math;
|
|
36
|
-
constructor(builder: QueueRecordTableBuilderService, queueService: QueueService, cd: ChangeDetectorRef);
|
|
37
|
-
ngOnInit(): void;
|
|
38
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
39
|
-
private setupFilterDebounce;
|
|
40
|
-
/**
|
|
41
|
-
* Resets pagination to first page and default items per page
|
|
42
|
-
*/
|
|
43
|
-
private resetPagination;
|
|
44
|
-
loadAssociatedList(): void;
|
|
45
|
-
/**
|
|
46
|
-
* Fetches queue records data based on current search and filter parameters.
|
|
47
|
-
* @param {string} [search] - Optional search term
|
|
48
|
-
* @param {any} [query] - Optional query string for filtering
|
|
49
|
-
*/
|
|
50
|
-
getQueueRecordsData(search?: string, query?: any): void;
|
|
51
|
-
/**
|
|
52
|
-
* Applies filters to the queue records and triggers data refresh.
|
|
53
|
-
* @param {any} record - The filter model containing search and query parameters
|
|
54
|
-
*/
|
|
55
|
-
getFilteredQueueRecords(record: any): void;
|
|
56
|
-
/**
|
|
57
|
-
* Handles page change events from the paginator
|
|
58
|
-
* @param {any} event - The PrimeNG paginator event
|
|
59
|
-
*/
|
|
60
|
-
onPageChange(event: any): void;
|
|
61
|
-
handleRowClick(record: any): void;
|
|
62
|
-
/**
|
|
63
|
-
* Handles selection changes from the table
|
|
64
|
-
* @param {any[]} selection - Array of selected rows
|
|
65
|
-
*/
|
|
18
|
+
paginationChanged: EventEmitter<any>;
|
|
19
|
+
filterApplied: EventEmitter<any>;
|
|
20
|
+
sortApplied: EventEmitter<any>;
|
|
66
21
|
onSelectionChange(selection: any[]): void;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Clears the current selection
|
|
75
|
-
*/
|
|
76
|
-
clearSelection(): void;
|
|
77
|
-
ngOnDestroy(): void;
|
|
22
|
+
onRowClick(record: any): void;
|
|
23
|
+
onPaginationChange(event: any): void;
|
|
24
|
+
onFilterApplied(record: any): void;
|
|
25
|
+
onSort(event: any): void;
|
|
26
|
+
get hasData(): boolean;
|
|
27
|
+
get selectedCount(): number;
|
|
78
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueueRecordTableComponent, never>;
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QueueRecordTableComponent, "app-queue-record-table", never, { "
|
|
29
|
+
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; }; }, { "selectionChange": "selectionChange"; "selectedRowsData": "selectedRowsData"; "assignmentDataReady": "assignmentDataReady"; "rowClick": "rowClick"; "paginationChanged": "paginationChanged"; "filterApplied": "filterApplied"; "sortApplied": "sortApplied"; }, never, never, false, never>;
|
|
80
30
|
}
|
|
@@ -1,40 +1,22 @@
|
|
|
1
|
-
import { EventEmitter
|
|
2
|
-
import { QueueService } from '../../state/queue.service';
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
|
-
* `QueueSearchComponent` is responsible for displaying a search input and
|
|
6
|
-
*
|
|
4
|
+
* `QueueSearchComponent` is responsible for displaying a search input and emitting
|
|
5
|
+
* search terms to parent components for handling API calls with proper pagination.
|
|
7
6
|
* Selector: `queue-search`
|
|
8
7
|
* Template: `./queue-search.component.html`
|
|
9
8
|
* Styles: `./queue-search.component.scss`
|
|
10
9
|
*/
|
|
11
|
-
export declare class QueueSearchComponent
|
|
12
|
-
private QueueService;
|
|
10
|
+
export declare class QueueSearchComponent {
|
|
13
11
|
searchText: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*/
|
|
20
|
-
constructor(QueueService: QueueService);
|
|
21
|
-
/**
|
|
22
|
-
* Lifecycle hook called on component initialization.
|
|
23
|
-
* @returns {void}
|
|
24
|
-
*/
|
|
25
|
-
ngOnInit(): void;
|
|
26
|
-
/**
|
|
27
|
-
* Handles the search functionality and emits filtered results.
|
|
28
|
-
* If the search text is empty, it emits an empty array and empty string.
|
|
29
|
-
* @returns {void}
|
|
30
|
-
*/
|
|
12
|
+
placeholder: string;
|
|
13
|
+
searchInputChanged: EventEmitter<string>;
|
|
14
|
+
searchRequested: EventEmitter<string>;
|
|
15
|
+
searchCleared: EventEmitter<void>;
|
|
16
|
+
onSearchInputChange(): void;
|
|
31
17
|
onSearch(): void;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
* It completes all subscriptions to avoid memory leaks.
|
|
35
|
-
* @returns {void}
|
|
36
|
-
*/
|
|
37
|
-
ngOnDestroy(): void;
|
|
18
|
+
onClearSearch(): void;
|
|
19
|
+
get hasSearchText(): boolean;
|
|
38
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueueSearchComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QueueSearchComponent, "queue-search", never, {}, { "
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QueueSearchComponent, "queue-search", never, { "searchText": { "alias": "searchText"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "searchInputChanged": "searchInputChanged"; "searchRequested": "searchRequested"; "searchCleared": "searchCleared"; }, never, never, false, never>;
|
|
40
22
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { SessionService } from '../../shared/services/session.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class QueueBusinessService {
|
|
5
|
+
private router;
|
|
6
|
+
private sessionService;
|
|
7
|
+
private destroy$;
|
|
8
|
+
constructor(router: Router, sessionService: SessionService);
|
|
9
|
+
filterQueuesByStatus(queues: any[], status: string): any[];
|
|
10
|
+
getFirstQueueId(filteredQueues: any[]): string | null;
|
|
11
|
+
navigateToQueue(queueId: string, showQueueDataForm: boolean): void;
|
|
12
|
+
navigateToInsertQueue(): void;
|
|
13
|
+
getUserRole(): boolean;
|
|
14
|
+
storeSelectedQueue(queueId: string): void;
|
|
15
|
+
storeApplicationData(record: any): void;
|
|
16
|
+
createDebouncedSearch(delay?: number): import("rxjs").Observable<string>;
|
|
17
|
+
buildQueryString(record: any): string;
|
|
18
|
+
calculatePagination(event: any): {
|
|
19
|
+
page: number;
|
|
20
|
+
limit: number;
|
|
21
|
+
};
|
|
22
|
+
mapApiMetadata(res: any, targetPage: number, targetLimit: number): any;
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QueueBusinessService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QueueBusinessService>;
|
|
26
|
+
}
|
|
@@ -27,19 +27,25 @@ export declare class QueueService extends BaseService<QueueModel> {
|
|
|
27
27
|
* @returns {Observable<any>} Observable emitting the queue records
|
|
28
28
|
*/
|
|
29
29
|
getQueueRecordsByApiConfig(apiConfig: string, params?: any): Observable<any>;
|
|
30
|
+
/**
|
|
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
|
+
* @param {string} apiConfig - The full API endpoint to fetch records for the selected queue
|
|
34
|
+
* @param {string} [searchKey] - Optional search term
|
|
35
|
+
* @param {number} [page] - Page number (default: 1)
|
|
36
|
+
* @param {number} [limit] - Number of records per page (default: 10)
|
|
37
|
+
* @param {string} [query] - Optional query string for filtering
|
|
38
|
+
* @param {string} [sortBy] - Optional sort field
|
|
39
|
+
* @param {string} [sortOrder] - Optional sort order ('asc' or 'desc')
|
|
40
|
+
* @returns {Observable<any>} Observable emitting the paginated queue records
|
|
41
|
+
*/
|
|
42
|
+
getPaginatedQueueRecords(apiConfig: string, searchKey?: string, page?: number, limit?: number, query?: string, sortBy?: string, sortOrder?: string): Observable<any>;
|
|
30
43
|
/**
|
|
31
44
|
* Fetches all queue entities from the configured data source.
|
|
32
45
|
* The entities are stored in the queueStore upon retrieval.
|
|
33
46
|
* @returns {Observable<any>} Observable emitting the fetched queue entities
|
|
34
47
|
*/
|
|
35
48
|
getAllQueue(): Observable<any>;
|
|
36
|
-
/**
|
|
37
|
-
* Searches for queue data based on the provided search criteria.
|
|
38
|
-
* Results are stored in the queueStore.
|
|
39
|
-
* @param {any} searchItem - The search parameter or query string used to filter queues
|
|
40
|
-
* @returns {Observable<any[]>} Observable emitting the search results as an array
|
|
41
|
-
*/
|
|
42
|
-
getQueuesData(searchItem: any): Observable<any>;
|
|
43
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueueService, never>;
|
|
44
50
|
static ɵprov: i0.ɵɵInjectableDeclaration<QueueService>;
|
|
45
51
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { BaseService } from '../../state/base.service';
|
|
4
4
|
import { BaseStore } from '../../state/base.store';
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* A reusable table component that displays dynamic data using PrimeNG's Table.
|
|
12
12
|
* Supports features like pagination, search, row actions, selection, and routing.
|
|
13
13
|
*/
|
|
14
|
-
export declare class TableSecondaryComponent implements OnInit, OnChanges {
|
|
14
|
+
export declare class TableSecondaryComponent implements OnInit, OnChanges, OnDestroy {
|
|
15
15
|
private _router;
|
|
16
16
|
private service;
|
|
17
17
|
private activatedRoute;
|
|
@@ -33,6 +33,7 @@ export declare class TableSecondaryComponent implements OnInit, OnChanges {
|
|
|
33
33
|
selectionChange: EventEmitter<any>;
|
|
34
34
|
rowSelection: any;
|
|
35
35
|
rowSelectionChange: EventEmitter<any>;
|
|
36
|
+
sortChanged: EventEmitter<any>;
|
|
36
37
|
enableSelection: boolean;
|
|
37
38
|
noRecordsMessage: string;
|
|
38
39
|
recordNumber: number;
|
|
@@ -40,10 +41,14 @@ export declare class TableSecondaryComponent implements OnInit, OnChanges {
|
|
|
40
41
|
limit: number;
|
|
41
42
|
first: number;
|
|
42
43
|
globalFilter: string;
|
|
44
|
+
sortField: string;
|
|
45
|
+
sortOrder: number;
|
|
46
|
+
private destroy$;
|
|
43
47
|
paginator: Paginator;
|
|
44
48
|
onDeleteRow: EventEmitter<any>;
|
|
45
49
|
searchTerm: string;
|
|
46
50
|
filterQuery: string;
|
|
51
|
+
onPage: EventEmitter<any>;
|
|
47
52
|
constructor(_router: Router, service: BaseService<any>, activatedRoute: ActivatedRoute, baseQuery: BaseQuery<any>, baseStore: BaseStore<any>);
|
|
48
53
|
/**
|
|
49
54
|
* Lifecycle hook that is called after data-bound properties are initialized.
|
|
@@ -55,6 +60,8 @@ export declare class TableSecondaryComponent implements OnInit, OnChanges {
|
|
|
55
60
|
* Resets pagination if page is changed.
|
|
56
61
|
*/
|
|
57
62
|
ngOnChanges(): void;
|
|
63
|
+
ngOnDestroy(): void;
|
|
64
|
+
private updateRecordNumber;
|
|
58
65
|
/**
|
|
59
66
|
* Returns the unique key used to identify each row in the table.
|
|
60
67
|
* @returns {string} The data key used for identifying rows, or an empty string if not set.
|
|
@@ -127,6 +134,7 @@ export declare class TableSecondaryComponent implements OnInit, OnChanges {
|
|
|
127
134
|
* @returns {boolean} `true` if the row is selected, else `false`.
|
|
128
135
|
*/
|
|
129
136
|
isRowSelected(rowData: any): boolean;
|
|
137
|
+
onSort(event: any): void;
|
|
130
138
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableSecondaryComponent, never>;
|
|
131
|
-
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; }; "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"; "onDeleteRow": "onDeleteRow"; }, never, never, true, never>;
|
|
139
|
+
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; }; "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>;
|
|
132
140
|
}
|
package/package.json
CHANGED
|
@@ -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
|
-
}
|