@hmcts/rpx-xui-common-lib 2.1.1-angular-upgrade-11 → 2.1.2-angular-upgrade-11

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.
Files changed (38) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +1744 -1556
  2. package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
  3. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
  4. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-rpx-xui-common-lib.js +2 -3
  6. package/esm2015/lib/components/find-location/find-location.component.js +13 -2
  7. package/esm2015/lib/components/generic-filter/generic-filter.component.js +19 -13
  8. package/esm2015/lib/components/search-location/search-location.component.js +32 -3
  9. package/esm2015/lib/exui-common-lib.module.js +1 -18
  10. package/esm2015/lib/models/filter.model.js +3 -1
  11. package/esm2015/lib/models/index.js +2 -1
  12. package/esm2015/lib/models/location.model.js +22 -1
  13. package/esm2015/lib/services/locations/location.service.js +5 -3
  14. package/esm2015/public-api.js +3 -3
  15. package/esm5/hmcts-rpx-xui-common-lib.js +2 -3
  16. package/esm5/lib/components/find-location/find-location.component.js +16 -2
  17. package/esm5/lib/components/generic-filter/generic-filter.component.js +44 -27
  18. package/esm5/lib/components/search-location/search-location.component.js +31 -3
  19. package/esm5/lib/exui-common-lib.module.js +3 -19
  20. package/esm5/lib/models/filter.model.js +3 -1
  21. package/esm5/lib/models/index.js +2 -1
  22. package/esm5/lib/models/location.model.js +22 -1
  23. package/esm5/lib/services/locations/location.service.js +7 -3
  24. package/esm5/public-api.js +3 -3
  25. package/fesm2015/hmcts-rpx-xui-common-lib.js +1528 -1368
  26. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  27. package/fesm5/hmcts-rpx-xui-common-lib.js +1751 -1575
  28. package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
  29. package/hmcts-rpx-xui-common-lib.d.ts +0 -1
  30. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  31. package/lib/components/find-location/find-location.component.d.ts +3 -2
  32. package/lib/components/search-location/search-location.component.d.ts +5 -2
  33. package/lib/exui-common-lib.module.d.ts +0 -2
  34. package/lib/models/filter.model.d.ts +2 -0
  35. package/lib/models/index.d.ts +1 -0
  36. package/lib/models/location.model.d.ts +11 -0
  37. package/lib/services/locations/location.service.d.ts +2 -2
  38. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { FilterFieldConfig } from '../../models';
4
4
  import { LocationByEPIMMSModel } from '../../models/location.model';
5
5
  import { SearchLocationComponent } from '../search-location/search-location.component';
6
- export declare class FindLocationComponent {
6
+ export declare class FindLocationComponent implements OnInit {
7
7
  locationFieldChanged: EventEmitter<void>;
8
8
  selectedLocations: LocationByEPIMMSModel[];
9
9
  submitted: boolean;
@@ -21,6 +21,7 @@ export declare class FindLocationComponent {
21
21
  private pDisabled;
22
22
  disabled: boolean;
23
23
  services: string[];
24
+ ngOnInit(): void;
24
25
  addLocation(): void;
25
26
  removeLocation(location: LocationByEPIMMSModel): void;
26
27
  onInputChanged(term: string): void;
@@ -1,10 +1,12 @@
1
1
  import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { Observable } from 'rxjs';
4
- import { LocationByEPIMMSModel } from '../../models/location.model';
4
+ import { BookingCheckType, LocationByEPIMMSModel } from '../../models';
5
5
  import { LocationService } from '../../services/locations/location.service';
6
+ import { SessionStorageService } from '../../services/session-storage/session-storage.service';
6
7
  export declare class SearchLocationComponent implements OnInit {
7
8
  private readonly locationService;
9
+ private readonly sessionStorageService;
8
10
  private readonly fb;
9
11
  private readonly cd;
10
12
  control: AbstractControl;
@@ -17,6 +19,7 @@ export declare class SearchLocationComponent implements OnInit {
17
19
  form: FormGroup;
18
20
  showAutocomplete: boolean;
19
21
  locations: LocationByEPIMMSModel[];
22
+ bookingCheck: BookingCheckType;
20
23
  locationSelected: EventEmitter<LocationByEPIMMSModel>;
21
24
  locationInputChanged: EventEmitter<string>;
22
25
  searchLocationChanged: EventEmitter<void>;
@@ -24,7 +27,7 @@ export declare class SearchLocationComponent implements OnInit {
24
27
  term: string;
25
28
  private pSelectedLocations;
26
29
  private pReset;
27
- constructor(locationService: LocationService, fb: FormBuilder, cd: ChangeDetectorRef);
30
+ constructor(locationService: LocationService, sessionStorageService: SessionStorageService, fb: FormBuilder, cd: ChangeDetectorRef);
28
31
  reset: boolean;
29
32
  selectedLocations: any[];
30
33
  ngOnInit(): void;
@@ -27,9 +27,7 @@ import { HmctsPaginationComponent } from './gov-ui/components/hmcts-pagination/h
27
27
  import { HmctsPrimaryNavigationComponent } from './gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component';
28
28
  import { HmctsSubNavigationComponent } from './gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component';
29
29
  import { RemoveHostDirective } from './gov-ui/directives/remove-host.directive';
30
- import { CaseSharingStateService, CookieService, FilterService, FindAPersonService, GoogleAnalyticsService, GoogleTagManagerService, LaunchDarklyService, LoadingService, LocationService, ManageSessionServices, SessionStorageService, TimeoutNotificationsService } from './services';
31
30
  export declare const COMMON_COMPONENTS: (typeof AccessibilityComponent | typeof GenericFilterComponent | typeof SelectedCaseConfirmComponent | typeof SelectedCaseListComponent | typeof SelectedCaseComponent | typeof ServiceMessagesComponent | typeof ShareCaseConfirmComponent | typeof ShareCaseComponent | typeof CookieBannerComponent | typeof SearchLocationComponent | typeof FeatureToggleDirective | typeof LetDirective | typeof FindPersonComponent | typeof SearchJudicialsComponent | typeof SearchVenueComponent)[];
32
31
  export declare const GOV_UI_COMPONENTS: (typeof HmctsIdentityBarComponent | typeof HmctsPaginationComponent | typeof HmctsSubNavigationComponent | typeof HmctsPrimaryNavigationComponent | typeof HmctsErrorSummaryComponent | typeof HmctsMainWrapperComponent | typeof HmctsBannerComponent | typeof GovukTableComponent | typeof GovUkFormGroupWrapperComponent | typeof GovUkLabelComponent | typeof GovUkErrorMessageComponent | typeof GovUkCheckboxesComponent | typeof GovUkRadioComponent | typeof RemoveHostDirective)[];
33
- export declare const COMMON_SERVICES: (typeof FilterService | typeof CaseSharingStateService | typeof CookieService | typeof LocationService | typeof SessionStorageService | typeof FindAPersonService | typeof LaunchDarklyService | typeof GoogleAnalyticsService | typeof GoogleTagManagerService | typeof ManageSessionServices | typeof TimeoutNotificationsService | typeof LoadingService)[];
34
32
  export declare class ExuiCommonLibModule {
35
33
  }
@@ -1,3 +1,4 @@
1
+ import { BookingCheckType } from './location.model';
1
2
  import { PersonRole } from './person.model';
2
3
  export declare type FilterFieldType = 'checkbox' | 'radio' | 'select' | 'find-person' | 'find-location' | 'checkbox-large';
3
4
  export declare type FilterPersistence = 'local' | 'session' | 'memory';
@@ -40,6 +41,7 @@ export interface FilterFieldConfig {
40
41
  subTitle?: string;
41
42
  locationTitle?: string;
42
43
  radioSelectionChange?: string;
44
+ bookingCheckType?: BookingCheckType;
43
45
  }
44
46
  export interface FilterSetting {
45
47
  id: string;
@@ -3,6 +3,7 @@ export * from './contact-details.model';
3
3
  export * from './due-date.model';
4
4
  export * from './feature-user';
5
5
  export * from './idle-config.model';
6
+ export * from './location.model';
6
7
  export * from './pagination.model';
7
8
  export * from './person.model';
8
9
  export * from './public_api';
@@ -47,3 +47,14 @@ export interface LocationByEPIMMSModel {
47
47
  is_case_management_location: string;
48
48
  is_hearing_location: string;
49
49
  }
50
+ export interface LocationsByService {
51
+ service?: string;
52
+ serviceCode?: string;
53
+ bookable?: boolean;
54
+ locations: Location[];
55
+ }
56
+ export declare enum BookingCheckType {
57
+ NO_CHECK = "NO_CHECK",
58
+ BOOKINGS_AND_BASE = "BOOKINGS_AND_BASE",
59
+ POSSIBLE_BOOKINGS = "POSSIBLE_BOOKINGS"
60
+ }
@@ -1,6 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { LocationByEPIMMSModel } from '../../models/location.model';
3
+ import { LocationByEPIMMSModel, LocationsByService } from '../../models/location.model';
4
4
  export declare class LocationService {
5
5
  private readonly http;
6
6
  constructor(http: HttpClient);
@@ -11,7 +11,7 @@ export declare class LocationService {
11
11
  * @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
12
12
  * @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
13
13
  */
14
- getAllLocations(serviceIds: string, locationType: string, searchTerm: string): Observable<LocationByEPIMMSModel[]>;
14
+ getAllLocations(serviceIds: string, locationType: string, searchTerm: string, userLocations: LocationsByService[], bookingLocations: string[]): Observable<LocationByEPIMMSModel[]>;
15
15
  /**
16
16
  * @description searchLocations from service Ids/location type/search term
17
17
  * @param serviceIds: BBA3 | BBA3,BFA1 split with ','
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/rpx-xui-common-lib",
3
- "version": "2.1.1-angular-upgrade-11",
3
+ "version": "2.1.2-angular-upgrade-11",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^7.2.0",
6
6
  "@angular/core": "^7.2.0",