@hmcts/rpx-xui-common-lib 1.8.5-angular-upgrade-r4 → 1.8.7-fix-wrong-services
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 +431 -1076
- 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 +29 -32
- package/esm2015/lib/components/find-location/find-location.component.js +3 -3
- package/esm2015/lib/components/find-service/find-service.component.js +12 -129
- package/esm2015/lib/components/generic-filter/generic-filter-utils.js +2 -2
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +15 -361
- package/esm2015/lib/components/search-location/search-location.component.js +3 -3
- package/esm2015/lib/components/search-service/search-service.component.js +34 -17
- package/esm2015/lib/components/selected-case/selected-case.component.js +4 -10
- package/esm2015/lib/components/selected-case-confirm/selected-case-confirm.component.js +1 -1
- package/esm2015/lib/components/share-case/share-case.component.js +186 -14
- package/esm2015/lib/exui-common-lib.module.js +5 -13
- package/esm2015/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +6 -80
- package/esm2015/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +3 -3
- package/esm2015/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +2 -3
- package/esm2015/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +1 -1
- package/esm2015/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +2 -2
- package/esm2015/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +14 -19
- package/esm2015/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +2 -2
- package/esm2015/lib/gov-ui/components/index.js +2 -2
- package/esm2015/lib/gov-ui/components/public_api.js +1 -2
- package/esm2015/lib/gov-ui/index.js +2 -2
- package/esm2015/lib/gov-ui/models/banner-data-model.js +16 -0
- package/esm2015/lib/gov-ui/models/checkboxes-model.js +8 -6
- package/esm2015/lib/gov-ui/models/gov-ui-config-model.js +1 -5
- package/esm2015/lib/gov-ui/models/public_api.js +2 -1
- package/esm2015/lib/gov-ui/public_api.js +2 -2
- package/esm2015/lib/models/case-share.model.js +8 -1
- package/esm2015/lib/models/filter.model.js +5 -65
- package/esm2015/lib/models/index.js +2 -2
- package/esm2015/lib/models/person.model.js +2 -2
- package/esm2015/lib/services/case-sharing-state/case-sharing-state.service.js +39 -15
- package/esm2015/lib/services/filter/filter.service.js +3 -17
- package/esm2015/lib/services/find-person/find-person.service.js +3 -3
- package/esm2015/lib/services/role-guard/role.guard.js +15 -22
- package/esm2015/lib/services/role-guard/role.service.js +13 -13
- package/esm2015/lib/services/session-storage/session-storage.service.js +55 -0
- package/esm2015/public-api.js +3 -3
- package/esm5/hmcts-rpx-xui-common-lib.js +29 -32
- package/esm5/lib/components/find-location/find-location.component.js +3 -3
- package/esm5/lib/components/find-service/find-service.component.js +12 -166
- package/esm5/lib/components/generic-filter/generic-filter-utils.js +2 -2
- package/esm5/lib/components/generic-filter/generic-filter.component.js +14 -397
- package/esm5/lib/components/search-location/search-location.component.js +3 -3
- package/esm5/lib/components/search-service/search-service.component.js +38 -19
- package/esm5/lib/components/selected-case/selected-case.component.js +4 -13
- package/esm5/lib/components/selected-case-confirm/selected-case-confirm.component.js +1 -1
- package/esm5/lib/components/share-case/share-case.component.js +219 -14
- package/esm5/lib/exui-common-lib.module.js +5 -11
- package/esm5/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +6 -100
- package/esm5/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +3 -3
- package/esm5/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +2 -3
- package/esm5/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +1 -1
- package/esm5/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +2 -2
- package/esm5/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +13 -17
- package/esm5/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +2 -2
- package/esm5/lib/gov-ui/components/index.js +2 -2
- package/esm5/lib/gov-ui/components/public_api.js +1 -2
- package/esm5/lib/gov-ui/index.js +2 -2
- package/esm5/lib/gov-ui/models/banner-data-model.js +16 -0
- package/esm5/lib/gov-ui/models/checkboxes-model.js +8 -6
- package/esm5/lib/gov-ui/models/gov-ui-config-model.js +1 -5
- package/esm5/lib/gov-ui/models/public_api.js +2 -1
- package/esm5/lib/gov-ui/public_api.js +2 -2
- package/esm5/lib/models/case-share.model.js +8 -1
- package/esm5/lib/models/filter.model.js +5 -65
- package/esm5/lib/models/index.js +2 -2
- package/esm5/lib/models/person.model.js +2 -2
- package/esm5/lib/services/case-sharing-state/case-sharing-state.service.js +40 -16
- package/esm5/lib/services/filter/filter.service.js +3 -21
- package/esm5/lib/services/find-person/find-person.service.js +3 -3
- package/esm5/lib/services/role-guard/role.guard.js +15 -22
- package/esm5/lib/services/role-guard/role.service.js +13 -13
- package/esm5/lib/services/{storage/session-storage → session-storage}/session-storage.service.js +2 -2
- package/esm5/public-api.js +3 -3
- package/fesm2015/hmcts-rpx-xui-common-lib.js +447 -1040
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +415 -1094
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +27 -30
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/find-service/find-service.component.d.ts +6 -14
- package/lib/components/generic-filter/generic-filter-utils.d.ts +5 -2
- package/lib/components/generic-filter/generic-filter.component.d.ts +2 -12
- package/lib/components/search-location/search-location.component.d.ts +1 -1
- package/lib/components/search-service/search-service.component.d.ts +11 -5
- package/lib/components/selected-case/selected-case.component.d.ts +0 -1
- package/lib/components/share-case/share-case.component.d.ts +35 -2
- package/lib/exui-common-lib.module.d.ts +3 -4
- package/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.d.ts +5 -14
- package/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.d.ts +2 -1
- package/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.d.ts +0 -1
- package/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.d.ts +2 -2
- package/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.d.ts +2 -4
- package/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.d.ts +3 -3
- package/lib/gov-ui/components/public_api.d.ts +0 -1
- package/lib/gov-ui/models/banner-data-model.d.ts +4 -0
- package/lib/gov-ui/models/checkboxes-model.d.ts +7 -4
- package/lib/gov-ui/models/gov-ui-config-model.d.ts +0 -2
- package/lib/gov-ui/models/public_api.d.ts +1 -0
- package/lib/models/case-share.model.d.ts +5 -0
- package/lib/models/filter.model.d.ts +8 -30
- package/lib/models/person.model.d.ts +1 -1
- package/lib/services/case-sharing-state/case-sharing-state.service.d.ts +1 -1
- package/lib/services/filter/filter.service.d.ts +0 -1
- package/lib/services/find-person/find-person.service.d.ts +1 -1
- package/lib/services/role-guard/role.guard.d.ts +1 -2
- package/lib/services/role-guard/role.service.d.ts +1 -3
- package/lib/services/{storage/session-storage → session-storage}/session-storage.service.d.ts +0 -0
- package/package.json +1 -1
- package/esm2015/lib/components/find-task-name/find-task-name.component.js +0 -228
- package/esm2015/lib/gov-ui/components/hmcts-banner/hmcts-banner-info.interface.js +0 -22
- package/esm2015/lib/gov-ui/models/radio-buttons.model.js +0 -22
- package/esm2015/lib/models/task-name.model.js +0 -16
- package/esm2015/lib/pipes/capitalize.pipe.js +0 -21
- package/esm2015/lib/services/storage/session-storage/session-storage.service.js +0 -55
- package/esm2015/lib/services/task-name/task-name.service.js +0 -65
- package/esm5/lib/components/find-task-name/find-task-name.component.js +0 -243
- package/esm5/lib/gov-ui/components/hmcts-banner/hmcts-banner-info.interface.js +0 -22
- package/esm5/lib/gov-ui/models/radio-buttons.model.js +0 -22
- package/esm5/lib/models/task-name.model.js +0 -16
- package/esm5/lib/pipes/capitalize.pipe.js +0 -29
- package/esm5/lib/services/task-name/task-name.service.js +0 -70
- package/lib/components/find-task-name/find-task-name.component.d.ts +0 -41
- package/lib/gov-ui/components/hmcts-banner/hmcts-banner-info.interface.d.ts +0 -7
- package/lib/gov-ui/models/radio-buttons.model.d.ts +0 -9
- package/lib/models/task-name.model.d.ts +0 -4
- package/lib/pipes/capitalize.pipe.d.ts +0 -4
- package/lib/services/task-name/task-name.service.d.ts +0 -14
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
1
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
export declare class FindServiceComponent
|
|
2
|
+
import { FilterFieldConfig } from '../../models';
|
|
3
|
+
export declare class FindServiceComponent {
|
|
5
4
|
field: FilterFieldConfig;
|
|
6
5
|
fields: FilterFieldConfig[];
|
|
7
6
|
serviceTitle: string;
|
|
8
7
|
form: FormGroup;
|
|
9
|
-
services:
|
|
10
|
-
selectedServices:
|
|
8
|
+
services: any;
|
|
9
|
+
selectedServices: any;
|
|
10
|
+
disabled: any;
|
|
11
11
|
enableAddServiceButton: boolean;
|
|
12
|
-
|
|
13
|
-
serviceFieldChanged: EventEmitter<void>;
|
|
14
|
-
tempSelectedService: FilterConfigOption;
|
|
15
|
-
ngOnInit(): void;
|
|
12
|
+
disableInputField: boolean;
|
|
16
13
|
addService(): void;
|
|
17
|
-
removeService(service: FilterConfigOption): void;
|
|
18
|
-
onServiceSelected(service: FilterConfigOption): void;
|
|
19
|
-
private removeSelectedValues;
|
|
20
|
-
private addSelectedServicesToForm;
|
|
21
|
-
private SortAnOptions;
|
|
22
14
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ValidatorFn } from '@angular/forms';
|
|
2
|
-
import { FilterConfigOption } from '../../models';
|
|
3
2
|
export declare function minSelectedValidator<T>(min: number): ValidatorFn;
|
|
4
3
|
export declare function maxSelectedValidator<T>(max: number): ValidatorFn;
|
|
5
|
-
export declare function getValues(options:
|
|
4
|
+
export declare function getValues(options: {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
selectAll?: true;
|
|
8
|
+
}[], values: any[]): any[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
|
-
import { FilterConfig,
|
|
4
|
+
import { FilterConfig, FilterFieldConfig, FilterSetting } from '../../models';
|
|
5
5
|
import { FilterService } from './../../services/filter/filter.service';
|
|
6
6
|
export declare class GenericFilterComponent implements OnInit, OnDestroy {
|
|
7
7
|
private readonly filterService;
|
|
@@ -9,9 +9,6 @@ export declare class GenericFilterComponent implements OnInit, OnDestroy {
|
|
|
9
9
|
form: FormGroup;
|
|
10
10
|
submitted: boolean;
|
|
11
11
|
formSub: Subscription;
|
|
12
|
-
filteredSkillsByServices: GroupOptions[];
|
|
13
|
-
filteredSkillsByServicesCheckbox: FilterConfigOption[];
|
|
14
|
-
previousSelectedNestedCheckbox: string[];
|
|
15
12
|
constructor(filterService: FilterService, fb: FormBuilder);
|
|
16
13
|
private _config;
|
|
17
14
|
config: FilterConfig;
|
|
@@ -27,24 +24,17 @@ export declare class GenericFilterComponent implements OnInit, OnDestroy {
|
|
|
27
24
|
inputChanged(field: FilterFieldConfig): void;
|
|
28
25
|
cancelFilter(): void;
|
|
29
26
|
updatePersonControls(values: any, field: FilterFieldConfig): void;
|
|
30
|
-
checkBoxChecked(field: any, i: number): any;
|
|
31
|
-
updateTaskNameControls(values: string, field: FilterFieldConfig): void;
|
|
32
27
|
toggleSelectAll(event: any, form: FormGroup, item: {
|
|
33
28
|
key: string;
|
|
34
29
|
label: string;
|
|
35
30
|
selectAll?: true;
|
|
36
31
|
}, field: FilterFieldConfig): void;
|
|
37
|
-
private startFilterSkillsByServices;
|
|
38
32
|
private resetField;
|
|
39
33
|
private mergeDefaultFields;
|
|
40
34
|
private getSettings;
|
|
41
35
|
private buildForm;
|
|
42
36
|
private buildCheckBoxFormArray;
|
|
43
|
-
private
|
|
37
|
+
private buildFindLocationFormArray;
|
|
44
38
|
private getSelectedValues;
|
|
45
39
|
private emitFormErrors;
|
|
46
|
-
initValuesFromCacheForSkillsByServices(): void;
|
|
47
|
-
filterSkillsByServices(services: string[], config: FilterConfig): FilterConfigOption[] | GroupOptions[];
|
|
48
|
-
private getSelectedValuesForFields;
|
|
49
|
-
private sortGroupOptions;
|
|
50
40
|
}
|
|
@@ -3,7 +3,7 @@ import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { BookingCheckType, LocationByEPIMMSModel } from '../../models';
|
|
5
5
|
import { LocationService } from '../../services/locations/location.service';
|
|
6
|
-
import { SessionStorageService } from '../../services/
|
|
6
|
+
import { SessionStorageService } from '../../services/session-storage/session-storage.service';
|
|
7
7
|
export declare class SearchLocationComponent implements OnInit {
|
|
8
8
|
private readonly locationService;
|
|
9
9
|
private readonly sessionStorageService;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FilterConfigOption } from '../../models';
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
3
2
|
export declare class SearchServiceComponent {
|
|
4
|
-
services:
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
services: any;
|
|
4
|
+
selectedServices: any;
|
|
5
|
+
disabled: any;
|
|
6
|
+
delay: any;
|
|
7
|
+
form: FormGroup;
|
|
8
|
+
showAutocomplete: boolean;
|
|
9
|
+
readonly minSearchCharacters = 3;
|
|
10
|
+
term: string;
|
|
11
|
+
onInput(): void;
|
|
12
|
+
onSelectionChange(): void;
|
|
7
13
|
}
|
|
@@ -18,7 +18,6 @@ export declare class SelectedCaseComponent implements OnInit, OnChanges {
|
|
|
18
18
|
constructor(stateService: CaseSharingStateService);
|
|
19
19
|
ngOnInit(): void;
|
|
20
20
|
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
-
onUnselect(): void;
|
|
22
21
|
onDeselect(c: SharedCase): void;
|
|
23
22
|
trackByUserId(user: UserDetails): string;
|
|
24
23
|
canRemove(caseId: string, user: UserDetails): Observable<boolean>;
|
|
@@ -1,28 +1,61 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { ErrorMessagesModel, GovUiConfigModel } from '../../gov-ui/models';
|
|
3
5
|
import { SharedCase } from '../../models/case-share.model';
|
|
4
6
|
import { UserDetails } from '../../models/user-details.model';
|
|
5
7
|
import { CaseSharingStateService } from '../../services/case-sharing-state/case-sharing-state.service';
|
|
6
8
|
export declare class ShareCaseComponent implements OnInit {
|
|
7
9
|
private readonly stateService;
|
|
10
|
+
private readonly router;
|
|
8
11
|
shareCases: SharedCase[];
|
|
12
|
+
selectedCasesErrorMessageConfig: GovUiConfigModel;
|
|
13
|
+
continueAllowed: boolean;
|
|
14
|
+
assignedUsers: UserDetails[];
|
|
15
|
+
selectedUserToRemove: UserDetails;
|
|
9
16
|
removeUserFromCaseToggleOn: boolean;
|
|
10
17
|
shareCases$: Observable<SharedCase[]>;
|
|
11
18
|
users: UserDetails[];
|
|
12
19
|
confirmLink: string;
|
|
20
|
+
cancelLink: string;
|
|
13
21
|
addUserLabel: string;
|
|
14
22
|
showRemoveUsers: boolean;
|
|
23
|
+
fnTitle: string;
|
|
24
|
+
title: string;
|
|
15
25
|
unselect: EventEmitter<SharedCase>;
|
|
16
26
|
synchronizeStore: EventEmitter<any>;
|
|
17
27
|
private selectedUser;
|
|
18
28
|
private readonly userSelect;
|
|
19
|
-
|
|
29
|
+
validationErrors: {
|
|
30
|
+
id: string;
|
|
31
|
+
message: string;
|
|
32
|
+
}[];
|
|
33
|
+
shareCaseErrorMessage: ErrorMessagesModel;
|
|
34
|
+
constructor(stateService: CaseSharingStateService, router: Router);
|
|
20
35
|
ngOnInit(): void;
|
|
21
36
|
onUnselect(c: SharedCase): void;
|
|
22
37
|
onSynchronizeStore(event: any): void;
|
|
23
38
|
onSelectedUser(user: UserDetails): void;
|
|
24
39
|
addUser(): void;
|
|
40
|
+
removeUser(): void;
|
|
25
41
|
isDisabledAdd(): boolean;
|
|
26
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Function originally used to set disabled state of "Continue" button, now called by the button click handler to
|
|
44
|
+
* control whether navigation to the confirmation page is allowed. It is prevented if no changes have been made
|
|
45
|
+
*/
|
|
46
|
+
setContinueAllowed(): void;
|
|
27
47
|
onDeselect(sharedCase: SharedCase): void;
|
|
48
|
+
onContinue(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Gets a unique list of all users that have been assigned, or are pending assigment to, at least one case
|
|
51
|
+
* @param sharedCases The list of shared cases from which to get users these are shared with, or are to be shared with
|
|
52
|
+
*/
|
|
53
|
+
getAssignedUsers(sharedCases: SharedCase[]): void;
|
|
54
|
+
/**
|
|
55
|
+
* Checks if any shared cases have been left unassigned. This occurs if a shared case has a number of pending
|
|
56
|
+
* unshares equal to the number of current shares, and there are no pending shares.
|
|
57
|
+
* @param sharedCases The array of shared cases to check
|
|
58
|
+
* @returns `true` if at least one case has the condition described above; `false` otherwise
|
|
59
|
+
*/
|
|
60
|
+
hasCasesLeftUnassigned(sharedCases: SharedCase[]): boolean;
|
|
28
61
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
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 { FindTaskNameComponent } from './components/find-task-name/find-task-name.component';
|
|
5
4
|
import { GenericFilterComponent } from './components/generic-filter/generic-filter.component';
|
|
6
5
|
import { SearchJudicialsComponent } from './components/search-judicials/search-judicials.component';
|
|
7
6
|
import { SearchLocationComponent } from './components/search-location/search-location.component';
|
|
@@ -14,11 +13,11 @@ import { ShareCaseConfirmComponent } from './components/share-case-confirm/share
|
|
|
14
13
|
import { ShareCaseComponent } from './components/share-case/share-case.component';
|
|
15
14
|
import { FeatureToggleDirective } from './directives/feature-toggle/feature-toggle.directive';
|
|
16
15
|
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';
|
|
22
21
|
import { GovukTableComponent } from './gov-ui/components/gov-uk-table/gov-uk-table.component';
|
|
23
22
|
import { HmctsBannerComponent } from './gov-ui/components/hmcts-banner/hmcts-banner.component';
|
|
24
23
|
import { HmctsErrorSummaryComponent } from './gov-ui/components/hmcts-error-summary/hmcts-error-summary.component';
|
|
@@ -28,7 +27,7 @@ import { HmctsPaginationComponent } from './gov-ui/components/hmcts-pagination/h
|
|
|
28
27
|
import { HmctsPrimaryNavigationComponent } from './gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component';
|
|
29
28
|
import { HmctsSubNavigationComponent } from './gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component';
|
|
30
29
|
import { RemoveHostDirective } from './gov-ui/directives/remove-host.directive';
|
|
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
|
|
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
|
|
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)[];
|
|
33
32
|
export declare class ExuiCommonLibModule {
|
|
34
33
|
}
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
1
|
+
import { ErrorMessagesModel } from '../../models';
|
|
2
|
+
import { CheckboxesModel } from '../../models/checkboxes-model';
|
|
3
|
+
export declare class GovUkCheckboxesComponent {
|
|
4
|
+
options: CheckboxesModel;
|
|
5
|
+
errors: ErrorMessagesModel;
|
|
15
6
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { ErrorMessagesModel
|
|
3
|
+
import { ErrorMessagesModel } from '../../models';
|
|
4
|
+
import { GovUiConfigModel } from '../../models/gov-ui-config-model';
|
|
4
5
|
export declare class GovUkInputComponent implements OnInit {
|
|
5
6
|
constructor();
|
|
6
7
|
errorMessage: ErrorMessagesModel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ErrorMessagesModel } from '../../models';
|
|
2
|
-
import {
|
|
2
|
+
import { CheckboxesModel } from '../../models/checkboxes-model';
|
|
3
3
|
export declare class GovUkRadiosComponent {
|
|
4
|
-
options:
|
|
4
|
+
options: CheckboxesModel;
|
|
5
5
|
errors: ErrorMessagesModel;
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { BannerDataModel } from '../../models/banner-data-model';
|
|
3
3
|
export declare class HmctsMainWrapperComponent implements OnInit {
|
|
4
|
-
bannerData:
|
|
4
|
+
bannerData: BannerDataModel;
|
|
5
5
|
backLink: string;
|
|
6
6
|
title: string;
|
|
7
7
|
summaryErrors: {
|
|
@@ -12,7 +12,7 @@ export declare class HmctsMainWrapperComponent implements OnInit {
|
|
|
12
12
|
message: any;
|
|
13
13
|
}[];
|
|
14
14
|
};
|
|
15
|
-
banner:
|
|
15
|
+
banner: BannerDataModel;
|
|
16
16
|
actionButtons: {
|
|
17
17
|
name: string;
|
|
18
18
|
class: string;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { GovUiConfigModel } from './gov-ui-config-model';
|
|
1
3
|
export interface CheckboxesModel {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
key: string;
|
|
5
|
+
group: FormGroup;
|
|
6
|
+
config: GovUiConfigModel;
|
|
7
|
+
errors: any;
|
|
8
|
+
items: GovUiConfigModel[];
|
|
6
9
|
}
|
|
@@ -8,3 +8,8 @@ export interface SharedCase {
|
|
|
8
8
|
pendingShares?: UserDetails[];
|
|
9
9
|
pendingUnshares?: UserDetails[];
|
|
10
10
|
}
|
|
11
|
+
export declare enum SharedCaseErrorMessages {
|
|
12
|
+
OneCaseMustBeSelected = "At least one case must be selected",
|
|
13
|
+
NoChangesRequested = "You have not requested any changes to case sharing",
|
|
14
|
+
OnePersonMustBeAssigned = "At least one person must be assigned to each case"
|
|
15
|
+
}
|
|
@@ -1,71 +1,49 @@
|
|
|
1
1
|
import { BookingCheckType } from './location.model';
|
|
2
2
|
import { PersonRole } from './person.model';
|
|
3
|
-
export declare type FilterFieldType = '
|
|
3
|
+
export declare type FilterFieldType = 'checkbox' | 'radio' | 'select' | 'find-person' | 'find-location' | 'checkbox-large' | 'find-service';
|
|
4
4
|
export declare type FilterPersistence = 'local' | 'session' | 'memory';
|
|
5
|
-
export interface FilterConfigOption {
|
|
6
|
-
key: string;
|
|
7
|
-
label: string;
|
|
8
|
-
selectAll?: boolean;
|
|
9
|
-
}
|
|
10
5
|
export interface FilterConfig {
|
|
11
6
|
id: string;
|
|
12
7
|
fields: FilterFieldConfig[];
|
|
13
8
|
persistence: FilterPersistence;
|
|
14
9
|
applyButtonText: string;
|
|
15
|
-
enableDisabledButton?: boolean;
|
|
16
10
|
cancelButtonText: string;
|
|
17
11
|
cancelSetting?: FilterSetting;
|
|
12
|
+
enableDisabledButton?: boolean;
|
|
18
13
|
showCancelFilterButton?: boolean;
|
|
19
|
-
cancelButtonCallback?(): void;
|
|
20
|
-
}
|
|
21
|
-
export interface FilterFieldOption {
|
|
22
|
-
key: string;
|
|
23
|
-
label: string;
|
|
24
|
-
selectAll?: true;
|
|
25
14
|
}
|
|
26
15
|
export interface FilterFieldConfig {
|
|
27
16
|
name: string;
|
|
28
|
-
options:
|
|
17
|
+
options: {
|
|
18
|
+
key: string;
|
|
19
|
+
label: string;
|
|
20
|
+
selectAll?: true;
|
|
21
|
+
}[];
|
|
29
22
|
minSelected: number;
|
|
30
23
|
maxSelected: number;
|
|
31
24
|
minSelectedError?: string;
|
|
32
25
|
maxSelectedError?: string;
|
|
33
26
|
displayMaxSelectedError?: boolean;
|
|
34
27
|
displayMinSelectedError?: boolean;
|
|
35
|
-
emailError?: string;
|
|
36
28
|
lineBreakBefore?: boolean;
|
|
37
29
|
showCondition?: string;
|
|
38
30
|
enableCondition?: string;
|
|
39
|
-
enableAddLocationButton?: boolean;
|
|
40
|
-
enableAddTaskNameButton?: boolean;
|
|
41
31
|
enableAddButton?: boolean;
|
|
32
|
+
enableAddLocationButton?: boolean;
|
|
42
33
|
changeResetFields?: string[];
|
|
43
34
|
findPersonField?: string;
|
|
44
35
|
findLocationField?: string;
|
|
45
|
-
findTaskNameField?: string;
|
|
46
36
|
domainField?: string;
|
|
47
37
|
disable?: boolean;
|
|
48
38
|
disabledText?: string;
|
|
49
39
|
type: FilterFieldType;
|
|
50
40
|
domain?: PersonRole;
|
|
51
41
|
title?: string;
|
|
52
|
-
titleClasses?: string;
|
|
53
|
-
titleHint?: string;
|
|
54
42
|
subTitle?: string;
|
|
55
43
|
locationTitle?: string;
|
|
56
44
|
radioSelectionChange?: string;
|
|
57
45
|
bookingCheckType?: BookingCheckType;
|
|
58
46
|
placeholderContent?: string;
|
|
59
|
-
maxWidth480px?: boolean;
|
|
60
|
-
maxRows?: number;
|
|
61
|
-
groupOptions?: GroupOptions[];
|
|
62
|
-
maxlength?: number;
|
|
63
|
-
defaultOption?: FilterConfigOption;
|
|
64
|
-
}
|
|
65
|
-
export interface GroupOptions {
|
|
66
|
-
group: string;
|
|
67
|
-
options: FilterFieldOption[];
|
|
68
|
-
placeholderContent?: string;
|
|
69
47
|
}
|
|
70
48
|
export interface FilterSetting {
|
|
71
49
|
id: string;
|
|
@@ -8,7 +8,7 @@ export declare class CaseSharingStateService {
|
|
|
8
8
|
setCases(cases: SharedCase[]): void;
|
|
9
9
|
getCases(): SharedCase[];
|
|
10
10
|
requestShare(user: UserDetails): SharedCase[];
|
|
11
|
-
requestUnshare(
|
|
11
|
+
requestUnshare(user: UserDetails, caseId?: string): SharedCase[];
|
|
12
12
|
requestCancel(caseId: string, user: UserDetails): void;
|
|
13
13
|
removeCase(caseId: string): void;
|
|
14
14
|
userHasAccess(c: SharedCase, user: UserDetails): boolean;
|
|
@@ -9,7 +9,6 @@ export declare class FilterService {
|
|
|
9
9
|
get(id: string): FilterSetting | null;
|
|
10
10
|
isSameUser(id: string): boolean;
|
|
11
11
|
getStream(id: string): Observable<FilterSetting>;
|
|
12
|
-
clearSessionAndLocalPersistance(id: string): void;
|
|
13
12
|
private persistLocal;
|
|
14
13
|
private persistSession;
|
|
15
14
|
private persistMemory;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Caseworker, JudicialUserModel, Person, SearchOptions } from '../../models';
|
|
4
|
-
import { SessionStorageService } from '../
|
|
4
|
+
import { SessionStorageService } from '../session-storage/session-storage.service';
|
|
5
5
|
export declare class FindAPersonService {
|
|
6
6
|
private readonly http;
|
|
7
7
|
private readonly sessionStorageService;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot, CanActivate, Router, UrlTree } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
2
|
import { RoleService } from './role.service';
|
|
4
3
|
export declare enum RoleMatching {
|
|
5
4
|
ALL = 0,
|
|
@@ -9,5 +8,5 @@ export declare class RoleGuard implements CanActivate {
|
|
|
9
8
|
private readonly roleService;
|
|
10
9
|
private readonly router;
|
|
11
10
|
constructor(roleService: RoleService, router: Router);
|
|
12
|
-
canActivate(route: ActivatedRouteSnapshot):
|
|
11
|
+
canActivate(route: ActivatedRouteSnapshot): boolean | UrlTree;
|
|
13
12
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
1
|
export declare type Role = string;
|
|
3
2
|
export declare type Roles = Role[];
|
|
4
3
|
export declare class RoleService {
|
|
5
|
-
|
|
6
|
-
roles$: import("rxjs").Observable<string[]>;
|
|
4
|
+
private pRoles;
|
|
7
5
|
roles: Roles;
|
|
8
6
|
}
|
package/lib/services/{storage/session-storage → session-storage}/session-storage.service.d.ts
RENAMED
|
File without changes
|