cat-qw-lib 2.3.21 → 2.3.26
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
CHANGED
|
@@ -35,7 +35,7 @@ import * as i4$2 from 'primeng/tooltip';
|
|
|
35
35
|
import { TooltipModule } from 'primeng/tooltip';
|
|
36
36
|
import { tap, debounceTime as debounceTime$1, distinctUntilChanged as distinctUntilChanged$1 } from 'rxjs/operators';
|
|
37
37
|
import * as i1$1 from '@angular/common/http';
|
|
38
|
-
import { HttpClientModule
|
|
38
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
39
39
|
import * as i3$4 from '@angular/router';
|
|
40
40
|
import { RouterModule } from '@angular/router';
|
|
41
41
|
import * as i2$2 from 'primeng/inputtextarea';
|
|
@@ -2633,8 +2633,6 @@ class QueueBusinessService {
|
|
|
2633
2633
|
localStorage.setItem(SHARED.SELECTED_QUEUE_ID, queueId);
|
|
2634
2634
|
}
|
|
2635
2635
|
storeApplicationData(record) {
|
|
2636
|
-
localStorage.setItem(SHARED.selectedApplication, record._id);
|
|
2637
|
-
localStorage.setItem(SHARED.selectedApplicationNumber, record.applicationNumber);
|
|
2638
2636
|
localStorage.setItem(SHARED.selectedApplicationType, record.applicationType);
|
|
2639
2637
|
}
|
|
2640
2638
|
createDebouncedSearch(delay = 500) {
|
|
@@ -4189,8 +4187,6 @@ class QueueApplicationListComponent {
|
|
|
4189
4187
|
return types[Math.floor(Math.random() * types.length)];
|
|
4190
4188
|
}
|
|
4191
4189
|
handleApplicationClick(application) {
|
|
4192
|
-
localStorage.setItem(SHARED.selectedApplication, application._id);
|
|
4193
|
-
localStorage.setItem(SHARED.selectedApplicationNumber, application.applicationNumber);
|
|
4194
4190
|
this.router.navigate([ROUTES.APPLICATION + application.CaseId]);
|
|
4195
4191
|
}
|
|
4196
4192
|
onStatusChange(selectedStatus) {
|
|
@@ -6308,7 +6304,6 @@ class QueueService extends BaseService {
|
|
|
6308
6304
|
...(sortBy ? { sortBy } : {}),
|
|
6309
6305
|
...(sortOrder ? { sortOrder } : {})
|
|
6310
6306
|
};
|
|
6311
|
-
let headers = new HttpHeaders().set('Authorization', 'Bearer ' + '305cc9b3-cd8f-4a18-b8f0-7592c08c199c');
|
|
6312
6307
|
// Add query parameters if they exist
|
|
6313
6308
|
if (query) {
|
|
6314
6309
|
const queryParams = new URLSearchParams(query);
|
|
@@ -6318,7 +6313,7 @@ class QueueService extends BaseService {
|
|
|
6318
6313
|
}
|
|
6319
6314
|
const paramsString = new URLSearchParams(params).toString();
|
|
6320
6315
|
url += (url.includes('?') ? '&' : '?') + paramsString;
|
|
6321
|
-
return this.http.get(url
|
|
6316
|
+
return this.http.get(url).pipe(tap$1((response) => {
|
|
6322
6317
|
if (response && response.data) {
|
|
6323
6318
|
this.queueStore.set(response.data);
|
|
6324
6319
|
}
|
|
@@ -6333,8 +6328,7 @@ class QueueService extends BaseService {
|
|
|
6333
6328
|
* @returns {Observable<any>} Observable emitting the fetched queue entities
|
|
6334
6329
|
*/
|
|
6335
6330
|
getAllQueue() {
|
|
6336
|
-
|
|
6337
|
-
return this.http.get(this.apiUrl + this._pathName, { headers }).pipe(tap$1((entities) => { this.queueStore.set(entities); }));
|
|
6331
|
+
return this.http.get(this.apiUrl + this._pathName).pipe(tap$1((entities) => { this.queueStore.set(entities); }));
|
|
6338
6332
|
}
|
|
6339
6333
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: QueueService, deps: [{ token: QueueStore$1 }, { token: i1$1.HttpClient }, { token: AppConfigService }, { token: ListService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6340
6334
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: QueueService, providedIn: "root" });
|
|
@@ -7080,7 +7074,6 @@ class QueueContainerComponent extends BaseContainerComponent {
|
|
|
7080
7074
|
return this.appliedFilters && Object.values(this.appliedFilters).some(val => val !== null && val !== '' && val !== undefined);
|
|
7081
7075
|
}
|
|
7082
7076
|
onTableRowClick(record) {
|
|
7083
|
-
this.queueBusinessService.storeApplicationData(record);
|
|
7084
7077
|
this.rowClick.emit(record);
|
|
7085
7078
|
this.clearFilters();
|
|
7086
7079
|
this.syncFilterDropdown();
|