@hmcts/rpx-xui-common-lib 1.8.7-generic-filter-clear-errors-on-destroy-2 → 1.8.7-include-current-user
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/bundles/hmcts-rpx-xui-common-lib.umd.js +6 -4
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/hmcts-rpx-xui-common-lib.js +3 -2
- package/esm2015/lib/components/search-location/search-location.component.js +4 -3
- package/esm2015/lib/services/find-person/find-person.service.js +3 -2
- package/esm2015/lib/services/locations/location.service.js +3 -3
- package/fesm2015/hmcts-rpx-xui-common-lib.js +6 -4
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +2 -1
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/search-location/search-location.component.d.ts +2 -1
- package/lib/services/locations/location.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3582,8 +3582,8 @@
|
|
|
3582
3582
|
* @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
|
|
3583
3583
|
* @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
|
|
3584
3584
|
*/
|
|
3585
|
-
LocationService.prototype.getAllLocations = function (serviceIds, locationType, searchTerm, userLocations) {
|
|
3586
|
-
return this.http.post(
|
|
3585
|
+
LocationService.prototype.getAllLocations = function (locationUrl, serviceIds, locationType, searchTerm, userLocations) {
|
|
3586
|
+
return this.http.post(locationUrl, { serviceIds: serviceIds, locationType: locationType, searchTerm: searchTerm, userLocations: userLocations });
|
|
3587
3587
|
};
|
|
3588
3588
|
/**
|
|
3589
3589
|
* @description searchLocations from service Ids/location type/search term
|
|
@@ -3739,7 +3739,7 @@
|
|
|
3739
3739
|
// if no userLocations, NO_CHECK
|
|
3740
3740
|
// if just getting all substantive user locations, BOOKINGS_AND_BASE
|
|
3741
3741
|
// fee paid user locations are used for POSSIBLE_BOOKINGS
|
|
3742
|
-
return this.locationService.getAllLocations(this.serviceIds, this.locationType, term, userLocations);
|
|
3742
|
+
return this.locationService.getAllLocations(SearchLocationComponent.allLocationAPI, this.serviceIds, this.locationType, term, userLocations);
|
|
3743
3743
|
};
|
|
3744
3744
|
SearchLocationComponent.prototype.resetSearchTerm = function () {
|
|
3745
3745
|
this.searchTermFormControl.setValue('');
|
|
@@ -3753,6 +3753,7 @@
|
|
|
3753
3753
|
};
|
|
3754
3754
|
return SearchLocationComponent;
|
|
3755
3755
|
}());
|
|
3756
|
+
SearchLocationComponent.allLocationAPI = "api/locations/getLocations";
|
|
3756
3757
|
SearchLocationComponent.decorators = [
|
|
3757
3758
|
{ type: i0.Component, args: [{
|
|
3758
3759
|
selector: 'exui-search-location',
|
|
@@ -4144,7 +4145,8 @@
|
|
|
4144
4145
|
}
|
|
4145
4146
|
this.assignedUser = searchOptions.assignedUser ? searchOptions.assignedUser : null;
|
|
4146
4147
|
return this.http.post('/workallocation/findPerson', { searchOptions: searchOptions })
|
|
4147
|
-
.pipe(operators.map(function (judiciary) { return judiciary.filter(function (judge) { return !([_this.assignedUser
|
|
4148
|
+
.pipe(operators.map(function (judiciary) { return judiciary.filter(function (judge) { return !([_this.assignedUser].includes(judge.id)); }); }));
|
|
4149
|
+
// Removed the current user id to fix EUI-8465.
|
|
4148
4150
|
};
|
|
4149
4151
|
FindAPersonService.prototype.findCaseworkers = function (searchOptions) {
|
|
4150
4152
|
var _this = this;
|