@hmcts/rpx-xui-common-lib 1.7.28 → 1.7.38

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 (51) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +169 -69
  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/components/share-case/share-case.component.js +10 -3
  11. package/esm2015/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +80 -6
  12. package/esm2015/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +3 -3
  13. package/esm2015/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +3 -2
  14. package/esm2015/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +1 -1
  15. package/esm2015/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +2 -2
  16. package/esm2015/lib/gov-ui/models/checkboxes-model.js +6 -8
  17. package/esm2015/lib/gov-ui/models/gov-ui-config-model.js +5 -1
  18. package/esm2015/lib/gov-ui/models/radio-buttons.model.js +22 -0
  19. package/esm2015/lib/models/person.model.js +3 -1
  20. package/esm5/lib/components/find-location/find-location.component.js +3 -3
  21. package/esm5/lib/components/find-service/find-service.component.js +18 -5
  22. package/esm5/lib/components/generic-filter/generic-filter.component.js +1 -1
  23. package/esm5/lib/components/search-location/search-location.component.js +1 -1
  24. package/esm5/lib/components/search-service/search-service.component.js +3 -3
  25. package/esm5/lib/components/share-case/share-case.component.js +10 -3
  26. package/esm5/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +100 -6
  27. package/esm5/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +3 -3
  28. package/esm5/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +3 -2
  29. package/esm5/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +1 -1
  30. package/esm5/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +2 -2
  31. package/esm5/lib/gov-ui/models/checkboxes-model.js +6 -8
  32. package/esm5/lib/gov-ui/models/gov-ui-config-model.js +5 -1
  33. package/esm5/lib/gov-ui/models/radio-buttons.model.js +22 -0
  34. package/esm5/lib/models/person.model.js +3 -1
  35. package/fesm2015/hmcts-rpx-xui-common-lib.js +133 -50
  36. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  37. package/fesm5/hmcts-rpx-xui-common-lib.js +170 -71
  38. package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
  39. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  40. package/lib/components/find-service/find-service.component.d.ts +3 -1
  41. package/lib/components/share-case/share-case.component.d.ts +2 -0
  42. package/lib/exui-common-lib.module.d.ts +4 -3
  43. package/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.d.ts +14 -5
  44. package/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.d.ts +1 -2
  45. package/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.d.ts +1 -0
  46. package/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.d.ts +2 -2
  47. package/lib/gov-ui/models/checkboxes-model.d.ts +4 -7
  48. package/lib/gov-ui/models/gov-ui-config-model.d.ts +2 -0
  49. package/lib/gov-ui/models/radio-buttons.model.d.ts +9 -0
  50. package/lib/models/person.model.d.ts +2 -0
  51. 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
  }
@@ -10,6 +10,8 @@ export declare class ShareCaseComponent implements OnInit {
10
10
  shareCases$: Observable<SharedCase[]>;
11
11
  users: UserDetails[];
12
12
  confirmLink: string;
13
+ addUserLabel: string;
14
+ showRemoveUsers: boolean;
13
15
  unselect: EventEmitter<SharedCase>;
14
16
  synchronizeStore: EventEmitter<any>;
15
17
  private selectedUser;
@@ -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';
@@ -13,11 +14,11 @@ import { ShareCaseConfirmComponent } from './components/share-case-confirm/share
13
14
  import { ShareCaseComponent } from './components/share-case/share-case.component';
14
15
  import { FeatureToggleDirective } from './directives/feature-toggle/feature-toggle.directive';
15
16
  import { LetDirective } from './directives/let/let.directive';
16
- import { GovUkCheckboxesComponent } from './gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component';
17
17
  import { GovUkErrorMessageComponent } from './gov-ui/components/gov-uk-error-message/gov-uk-error-message.component';
18
18
  import { GovUkFormGroupWrapperComponent } from './gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component';
19
19
  import { GovUkLabelComponent } from './gov-ui/components/gov-uk-label/gov-uk-label.component';
20
20
  import { GovUkRadioComponent } from './gov-ui/components/gov-uk-radio/gov-uk-radio.component';
21
+ import { GovUkRadiosComponent } from './gov-ui/components/gov-uk-radios/gov-uk-radios.component';
21
22
  import { GovukTableComponent } from './gov-ui/components/gov-uk-table/gov-uk-table.component';
22
23
  import { HmctsBannerComponent } from './gov-ui/components/hmcts-banner/hmcts-banner.component';
23
24
  import { HmctsErrorSummaryComponent } from './gov-ui/components/hmcts-error-summary/hmcts-error-summary.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 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)[];
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)[];
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 GovUkRadioComponent | typeof GovUkRadiosComponent | typeof RemoveHostDirective)[];
32
33
  export declare class ExuiCommonLibModule {
33
34
  }
@@ -1,6 +1,15 @@
1
- import { ErrorMessagesModel } from '../../models';
2
- import { CheckboxesModel } from '../../models/checkboxes-model';
3
- export declare class GovUkCheckboxesComponent {
4
- options: CheckboxesModel;
5
- errors: ErrorMessagesModel;
1
+ import { OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { CheckboxesModel, ErrorMessagesModel, GovUiConfigModel } from '../../models';
4
+ export declare class GovUkCheckboxesComponent implements OnInit {
5
+ group: FormGroup;
6
+ config: GovUiConfigModel;
7
+ items: CheckboxesModel[];
8
+ errorMessage: ErrorMessagesModel;
9
+ columns: CheckboxesModel[][];
10
+ ngOnInit(): void;
11
+ setDescribedBy(): string;
12
+ onChecked(checked: boolean, value: string): void;
13
+ isChecked(value: string): any;
14
+ private setColumns;
6
15
  }
@@ -1,7 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
- import { ErrorMessagesModel } from '../../models';
4
- import { GovUiConfigModel } from '../../models/gov-ui-config-model';
3
+ import { ErrorMessagesModel, GovUiConfigModel } from '../../models';
5
4
  export declare class GovUkInputComponent implements OnInit {
6
5
  constructor();
7
6
  errorMessage: ErrorMessagesModel;
@@ -6,5 +6,6 @@ export declare class GovUkLabelComponent {
6
6
  id: string;
7
7
  isPageHeading: boolean;
8
8
  classes: string;
9
+ optional?: string;
9
10
  };
10
11
  }
@@ -1,6 +1,6 @@
1
1
  import { ErrorMessagesModel } from '../../models';
2
- import { CheckboxesModel } from '../../models/checkboxes-model';
2
+ import { RadioButtonsModel } from '../../models/radio-buttons.model';
3
3
  export declare class GovUkRadiosComponent {
4
- options: CheckboxesModel;
4
+ options: RadioButtonsModel;
5
5
  errors: ErrorMessagesModel;
6
6
  }
@@ -1,9 +1,6 @@
1
- import { FormGroup } from '@angular/forms';
2
- import { GovUiConfigModel } from './gov-ui-config-model';
3
1
  export interface CheckboxesModel {
4
- key: string;
5
- group: FormGroup;
6
- config: GovUiConfigModel;
7
- errors: any;
8
- items: GovUiConfigModel[];
2
+ id: string;
3
+ value: string;
4
+ label: string;
5
+ hint?: string;
9
6
  }
@@ -11,4 +11,6 @@ export interface GovUiConfigModel {
11
11
  type?: string;
12
12
  isPageHeading?: boolean;
13
13
  rows?: number;
14
+ fullWidth?: boolean;
15
+ optional?: boolean;
14
16
  }
@@ -0,0 +1,9 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ import { GovUiConfigModel } from './gov-ui-config-model';
3
+ export interface RadioButtonsModel {
4
+ key: string;
5
+ group: FormGroup;
6
+ config: GovUiConfigModel;
7
+ errors: any;
8
+ items: GovUiConfigModel[];
9
+ }
@@ -33,11 +33,13 @@ export declare enum PersonRole {
33
33
  JUDICIAL = "Judicial",
34
34
  CASEWORKER = "Legal Ops",
35
35
  ADMIN = "Admin",
36
+ CTSC = "CTSC User",
36
37
  ALL = "All"
37
38
  }
38
39
  export declare enum RoleCategory {
39
40
  JUDICIAL = "JUDICIAL",
40
41
  CASEWORKER = "LEGAL_OPERATIONS",
41
42
  ADMIN = "ADMIN",
43
+ CTSC = "CTSC",
42
44
  ALL = "ALL"
43
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/rpx-xui-common-lib",
3
- "version": "1.7.28",
3
+ "version": "1.7.38",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^7.2.0",
6
6
  "@angular/core": "^7.2.0",