@hmcts/rpx-xui-common-lib 1.7.21 → 1.7.31

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 (28) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +44 -30
  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/lib/components/find-location/find-location.component.js +3 -3
  6. package/esm2015/lib/components/find-service/find-service.component.js +21 -5
  7. package/esm2015/lib/components/generic-filter/generic-filter.component.js +1 -1
  8. package/esm2015/lib/components/search-location/search-location.component.js +1 -1
  9. package/esm2015/lib/components/search-service/search-service.component.js +3 -3
  10. package/esm2015/lib/services/role-guard/role.guard.js +22 -15
  11. package/esm2015/lib/services/role-guard/role.service.js +13 -13
  12. package/esm5/lib/components/find-location/find-location.component.js +3 -3
  13. package/esm5/lib/components/find-service/find-service.component.js +18 -5
  14. package/esm5/lib/components/generic-filter/generic-filter.component.js +1 -1
  15. package/esm5/lib/components/search-location/search-location.component.js +1 -1
  16. package/esm5/lib/components/search-service/search-service.component.js +3 -3
  17. package/esm5/lib/services/role-guard/role.guard.js +22 -15
  18. package/esm5/lib/services/role-guard/role.service.js +13 -13
  19. package/fesm2015/hmcts-rpx-xui-common-lib.js +48 -32
  20. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  21. package/fesm5/hmcts-rpx-xui-common-lib.js +46 -33
  22. package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
  23. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  24. package/lib/components/find-service/find-service.component.d.ts +3 -1
  25. package/lib/exui-common-lib.module.d.ts +2 -1
  26. package/lib/services/role-guard/role.guard.d.ts +2 -1
  27. package/lib/services/role-guard/role.service.d.ts +3 -1
  28. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
- import { FormGroup } from '@angular/forms';
1
+ import { FormBuilder, FormGroup } from '@angular/forms';
2
2
  import { FilterFieldConfig } from '../../models';
3
3
  export declare class FindServiceComponent {
4
+ private readonly fb;
4
5
  field: FilterFieldConfig;
5
6
  fields: FilterFieldConfig[];
6
7
  serviceTitle: string;
@@ -10,5 +11,6 @@ export declare class FindServiceComponent {
10
11
  disabled: any;
11
12
  enableAddServiceButton: boolean;
12
13
  disableInputField: boolean;
14
+ constructor(fb: FormBuilder);
13
15
  addService(): void;
14
16
  }
@@ -1,6 +1,7 @@
1
1
  import { AccessibilityComponent } from './components/accessibility/accessibility.component';
2
2
  import { CookieBannerComponent } from './components/cookie-banner/cookie-banner.component';
3
3
  import { FindPersonComponent } from './components/find-person/find-person.component';
4
+ import { FindServiceComponent } from './components/find-service/find-service.component';
4
5
  import { GenericFilterComponent } from './components/generic-filter/generic-filter.component';
5
6
  import { SearchJudicialsComponent } from './components/search-judicials/search-judicials.component';
6
7
  import { SearchLocationComponent } from './components/search-location/search-location.component';
@@ -27,7 +28,7 @@ import { HmctsPaginationComponent } from './gov-ui/components/hmcts-pagination/h
27
28
  import { HmctsPrimaryNavigationComponent } from './gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component';
28
29
  import { HmctsSubNavigationComponent } from './gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component';
29
30
  import { RemoveHostDirective } from './gov-ui/directives/remove-host.directive';
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)[];
31
+ 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 FindServiceComponent | typeof SearchVenueComponent)[];
31
32
  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)[];
32
33
  export declare class ExuiCommonLibModule {
33
34
  }
@@ -1,4 +1,5 @@
1
1
  import { ActivatedRouteSnapshot, CanActivate, Router, UrlTree } from '@angular/router';
2
+ import { Observable } from 'rxjs';
2
3
  import { RoleService } from './role.service';
3
4
  export declare enum RoleMatching {
4
5
  ALL = 0,
@@ -8,5 +9,5 @@ export declare class RoleGuard implements CanActivate {
8
9
  private readonly roleService;
9
10
  private readonly router;
10
11
  constructor(roleService: RoleService, router: Router);
11
- canActivate(route: ActivatedRouteSnapshot): boolean | UrlTree;
12
+ canActivate(route: ActivatedRouteSnapshot): Observable<boolean | UrlTree>;
12
13
  }
@@ -1,6 +1,8 @@
1
+ import { BehaviorSubject } from 'rxjs';
1
2
  export declare type Role = string;
2
3
  export declare type Roles = Role[];
3
4
  export declare class RoleService {
4
- private pRoles;
5
+ readonly pRoles: BehaviorSubject<string[]>;
6
+ roles$: import("rxjs").Observable<string[]>;
5
7
  roles: Roles;
6
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/rpx-xui-common-lib",
3
- "version": "1.7.21",
3
+ "version": "1.7.31",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^7.2.0",
6
6
  "@angular/core": "^7.2.0",