@hmcts/rpx-xui-common-lib 2.0.0-rc.6 → 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.
- package/bundles/hmcts-rpx-xui-common-lib.umd.js +7465 -2916
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +15 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/hmcts-rpx-xui-common-lib.js +59 -47
- package/esm2015/lib/components/accessibility/accessibility.component.js +2 -2
- package/esm2015/lib/components/cookie-banner/cookie-banner.component.js +129 -0
- package/esm2015/lib/components/due-date/due-date.component.js +6 -7
- package/esm2015/lib/components/find-location/find-location.component.js +240 -0
- package/esm2015/lib/components/find-person/find-person.component.js +259 -0
- package/esm2015/lib/components/generic-filter/generic-filter-utils.js +65 -0
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +548 -52
- package/esm2015/lib/components/index.js +2 -2
- package/esm2015/lib/components/loading-spinner/loading-spinner.component.js +6 -35
- package/esm2015/lib/components/pagination/pagination.component.js +50 -0
- package/esm2015/lib/components/public_api.js +9 -7
- package/esm2015/lib/components/search-judicials/search-judicials.component.js +249 -0
- package/esm2015/lib/components/search-location/search-location.component.js +294 -0
- package/esm2015/lib/components/search-venue/search-venue.component.js +246 -0
- package/esm2015/lib/components/service-messages/service-messages.component.js +2 -2
- package/esm2015/lib/components/share-case/share-case.component.js +2 -2
- package/esm2015/lib/components/user-list/user-list.component.js +29 -3
- package/esm2015/lib/exui-common-lib.module.js +30 -27
- package/esm2015/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +81 -9
- package/esm2015/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +2 -2
- package/esm2015/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +49 -0
- package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +7 -2
- package/esm2015/lib/gov-ui/components/index.js +2 -2
- package/esm2015/lib/gov-ui/components/public_api.js +1 -20
- package/esm2015/lib/gov-ui/gov-ui.service.js +1 -1
- package/esm2015/lib/gov-ui/index.js +2 -2
- package/esm2015/lib/gov-ui/models/isession-storage.interface.js +24 -0
- package/esm2015/lib/gov-ui/public_api.js +2 -4
- package/esm2015/lib/gov-ui/util/session-storage/session-storage-utils.js +58 -0
- package/esm2015/lib/models/contact-details.model.js +8 -1
- package/esm2015/lib/models/due-date.model.js +8 -1
- package/esm2015/lib/models/filter.model.js +59 -1
- package/esm2015/lib/models/index.js +15 -2
- package/esm2015/lib/models/location.model.js +129 -0
- package/esm2015/lib/models/pagination.model.js +18 -0
- package/esm2015/lib/models/person.model.js +92 -0
- package/esm2015/lib/models/public_api.js +3 -9
- package/esm2015/lib/models/search-options.model.js +22 -0
- package/esm2015/lib/services/case-sharing-state/case-sharing-state.service.js +1 -1
- package/esm2015/lib/services/cookie/cookie.service.js +110 -0
- package/esm2015/lib/services/feature-toggle/feature-toggle.guard.js +8 -2
- package/esm2015/lib/services/feature-toggle/feature-toggle.service.js +4 -3
- package/esm2015/lib/services/feature-toggle/launch-darkly.service.js +28 -27
- package/esm2015/lib/services/filter/filter.service.js +8 -4
- package/esm2015/lib/services/find-person/find-person.service.js +214 -0
- package/esm2015/lib/services/google-analytics/google-analytics.service.js +1 -1
- package/esm2015/lib/services/google-tag-manager/google-tag-manager.service.js +1 -1
- package/esm2015/lib/services/index.js +2 -2
- package/esm2015/lib/services/loading/loading.service.js +1 -1
- package/esm2015/lib/services/locations/location.service.js +57 -0
- package/esm2015/lib/services/manage-session/manage-session.services.js +3 -3
- package/esm2015/lib/services/public-api.js +8 -4
- package/esm2015/lib/services/role-guard/role.guard.js +1 -1
- package/esm2015/lib/services/role-guard/role.service.js +1 -1
- package/esm2015/lib/services/session-storage/session-storage.service.js +55 -0
- package/esm2015/lib/services/timeout-notifications/timeout-notifications.service.js +3 -3
- package/esm2015/public-api.js +6 -6
- package/esm5/hmcts-rpx-xui-common-lib.js +59 -47
- package/esm5/lib/components/accessibility/accessibility.component.js +2 -2
- package/esm5/lib/components/cookie-banner/cookie-banner.component.js +154 -0
- package/esm5/lib/components/due-date/due-date.component.js +6 -7
- package/esm5/lib/components/find-location/find-location.component.js +293 -0
- package/esm5/lib/components/find-person/find-person.component.js +286 -0
- package/esm5/lib/components/generic-filter/generic-filter-utils.js +66 -0
- package/esm5/lib/components/generic-filter/generic-filter.component.js +735 -57
- package/esm5/lib/components/index.js +2 -2
- package/esm5/lib/components/loading-spinner/loading-spinner.component.js +6 -38
- package/esm5/lib/components/pagination/pagination.component.js +58 -0
- package/esm5/lib/components/public_api.js +9 -7
- package/esm5/lib/components/search-judicials/search-judicials.component.js +291 -0
- package/esm5/lib/components/search-location/search-location.component.js +330 -0
- package/esm5/lib/components/search-venue/search-venue.component.js +290 -0
- package/esm5/lib/components/service-messages/service-messages.component.js +2 -2
- package/esm5/lib/components/share-case/share-case.component.js +2 -2
- package/esm5/lib/components/user-list/user-list.component.js +36 -3
- package/esm5/lib/exui-common-lib.module.js +32 -28
- package/esm5/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +95 -8
- package/esm5/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +2 -2
- package/esm5/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +51 -0
- package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +7 -2
- package/esm5/lib/gov-ui/components/index.js +2 -2
- package/esm5/lib/gov-ui/components/public_api.js +1 -20
- package/esm5/lib/gov-ui/gov-ui.service.js +1 -1
- package/esm5/lib/gov-ui/index.js +2 -2
- package/esm5/lib/gov-ui/models/isession-storage.interface.js +24 -0
- package/esm5/lib/gov-ui/public_api.js +2 -4
- package/esm5/lib/gov-ui/util/session-storage/session-storage-utils.js +58 -0
- package/esm5/lib/models/contact-details.model.js +8 -1
- package/esm5/lib/models/due-date.model.js +8 -1
- package/esm5/lib/models/filter.model.js +59 -1
- package/esm5/lib/models/index.js +15 -2
- package/esm5/lib/models/location.model.js +129 -0
- package/esm5/lib/models/pagination.model.js +18 -0
- package/esm5/lib/models/person.model.js +92 -0
- package/esm5/lib/models/public_api.js +3 -9
- package/esm5/lib/models/search-options.model.js +22 -0
- package/esm5/lib/services/case-sharing-state/case-sharing-state.service.js +1 -1
- package/esm5/lib/services/cookie/cookie.service.js +136 -0
- package/esm5/lib/services/feature-toggle/feature-toggle.guard.js +8 -2
- package/esm5/lib/services/feature-toggle/feature-toggle.service.js +5 -3
- package/esm5/lib/services/feature-toggle/launch-darkly.service.js +29 -25
- package/esm5/lib/services/filter/filter.service.js +8 -4
- package/esm5/lib/services/find-person/find-person.service.js +238 -0
- package/esm5/lib/services/google-analytics/google-analytics.service.js +1 -1
- package/esm5/lib/services/google-tag-manager/google-tag-manager.service.js +1 -1
- package/esm5/lib/services/index.js +2 -2
- package/esm5/lib/services/loading/loading.service.js +1 -1
- package/esm5/lib/services/locations/location.service.js +86 -0
- package/esm5/lib/services/manage-session/manage-session.services.js +3 -3
- package/esm5/lib/services/public-api.js +8 -4
- package/esm5/lib/services/role-guard/role.guard.js +1 -1
- package/esm5/lib/services/role-guard/role.service.js +1 -1
- package/esm5/lib/services/session-storage/session-storage.service.js +96 -0
- package/esm5/lib/services/timeout-notifications/timeout-notifications.service.js +3 -3
- package/esm5/public-api.js +6 -6
- package/fesm2015/hmcts-rpx-xui-common-lib.js +4567 -751
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +6324 -1958
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +57 -45
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/cookie-banner/cookie-banner.component.d.ts +20 -0
- package/lib/components/find-location/find-location.component.d.ts +32 -0
- package/lib/components/find-person/find-person.component.d.ts +40 -0
- package/lib/components/generic-filter/generic-filter-utils.d.ts +8 -0
- package/lib/components/generic-filter/generic-filter.component.d.ts +34 -10
- package/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.d.ts +1 -1
- package/lib/components/invite-user-form/invite-user-form.component.d.ts +1 -1
- package/lib/components/loading-spinner/loading-spinner.component.d.ts +1 -7
- package/lib/components/pagination/pagination.component.d.ts +10 -0
- package/lib/components/public_api.d.ts +8 -6
- package/lib/components/search-judicials/search-judicials.component.d.ts +37 -0
- package/lib/components/search-location/search-location.component.d.ts +41 -0
- package/lib/components/search-venue/search-venue.component.d.ts +37 -0
- package/lib/components/user-list/user-list.component.d.ts +9 -2
- package/lib/exui-common-lib.module.d.ts +10 -11
- package/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.d.ts +8 -0
- package/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.d.ts +10 -0
- package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +2 -0
- package/lib/gov-ui/components/public_api.d.ts +0 -19
- package/lib/gov-ui/models/isession-storage.interface.d.ts +4 -0
- package/lib/gov-ui/public_api.d.ts +0 -2
- package/lib/gov-ui/util/session-storage/session-storage-utils.d.ts +6 -0
- package/lib/models/contact-details.model.d.ts +5 -1
- package/lib/models/due-date.model.d.ts +5 -0
- package/lib/models/filter.model.d.ts +33 -2
- package/lib/models/index.d.ts +13 -0
- package/lib/models/location.model.d.ts +60 -0
- package/lib/models/pagination.model.d.ts +5 -0
- package/lib/models/person.model.d.ts +43 -0
- package/lib/models/public_api.d.ts +1 -7
- package/lib/models/search-options.model.d.ts +8 -0
- package/lib/services/cookie/cookie.service.d.ts +9 -0
- package/lib/services/feature-toggle/feature-toggle.service.d.ts +1 -1
- package/lib/services/feature-toggle/launch-darkly.service.d.ts +4 -6
- package/lib/services/filter/filter.service.d.ts +4 -3
- package/lib/services/find-person/find-person.service.d.ts +17 -0
- package/lib/services/locations/location.service.d.ts +23 -0
- package/lib/services/public-api.d.ts +6 -2
- package/lib/services/session-storage/session-storage.service.d.ts +20 -0
- package/lib/window.d.ts +1 -1
- package/package.json +5 -3
- package/public-api.d.ts +2 -2
- package/esm2015/lib/gov-ui/directives/index.js +0 -7
- package/esm2015/lib/gov-ui/directives/public_api.js +0 -7
- package/esm2015/lib/models/badge-colour.enum.js +0 -14
- package/esm5/lib/gov-ui/directives/index.js +0 -7
- package/esm5/lib/gov-ui/directives/public_api.js +0 -7
- package/esm5/lib/models/badge-colour.enum.js +0 -14
- package/lib/gov-ui/directives/index.d.ts +0 -1
- package/lib/gov-ui/directives/public_api.d.ts +0 -1
- package/lib/models/badge-colour.enum.d.ts +0 -6
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { CookieService } from '../../services/cookie/cookie.service';
|
|
3
|
+
export declare class CookieBannerComponent implements OnInit {
|
|
4
|
+
private readonly cookieService;
|
|
5
|
+
identifier: string;
|
|
6
|
+
appName: string;
|
|
7
|
+
rejectionNotifier: EventEmitter<any>;
|
|
8
|
+
acceptanceNotifier: EventEmitter<any>;
|
|
9
|
+
isCookieBannerVisible: boolean;
|
|
10
|
+
private readonly window;
|
|
11
|
+
constructor(cookieService: CookieService, window: any);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
acceptCookie(): void;
|
|
14
|
+
rejectCookie(): void;
|
|
15
|
+
setState(reload?: boolean): void;
|
|
16
|
+
areCookiesAccepted(): boolean;
|
|
17
|
+
notifyRejection(): void;
|
|
18
|
+
notifyAcceptance(): void;
|
|
19
|
+
private getExpiryDate;
|
|
20
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { FilterFieldConfig } from '../../models';
|
|
4
|
+
import { LocationByEPIMMSModel } from '../../models/location.model';
|
|
5
|
+
import { SearchLocationComponent } from '../search-location/search-location.component';
|
|
6
|
+
export declare class FindLocationComponent implements OnInit {
|
|
7
|
+
locationFieldChanged: EventEmitter<void>;
|
|
8
|
+
selectedLocations: LocationByEPIMMSModel[];
|
|
9
|
+
submitted: boolean;
|
|
10
|
+
enableAddLocationButton: boolean;
|
|
11
|
+
form: FormGroup;
|
|
12
|
+
field: FilterFieldConfig;
|
|
13
|
+
fields: FilterFieldConfig[];
|
|
14
|
+
locationTitle: string;
|
|
15
|
+
disableInputField: boolean;
|
|
16
|
+
locations: LocationByEPIMMSModel[];
|
|
17
|
+
tempSelectedLocation: LocationByEPIMMSModel;
|
|
18
|
+
serviceIds: string;
|
|
19
|
+
searchLocationComponent: SearchLocationComponent;
|
|
20
|
+
private pServices;
|
|
21
|
+
private pDisabled;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
services: string[];
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
addLocation(): void;
|
|
26
|
+
removeLocation(location: LocationByEPIMMSModel): void;
|
|
27
|
+
onInputChanged(term: string): void;
|
|
28
|
+
onSearchInputChanged(): void;
|
|
29
|
+
onLocationSelected(location: LocationByEPIMMSModel): void;
|
|
30
|
+
private removeSelectedValues;
|
|
31
|
+
private addSelectedLocationsToForm;
|
|
32
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { Person, PersonRole } from '../../models';
|
|
5
|
+
import { FindAPersonService } from '../../services/find-person/find-person.service';
|
|
6
|
+
export declare class FindPersonComponent implements OnInit, OnDestroy {
|
|
7
|
+
private readonly findPersonService;
|
|
8
|
+
private readonly cd;
|
|
9
|
+
personSelected: EventEmitter<Person>;
|
|
10
|
+
personFieldChanged: EventEmitter<void>;
|
|
11
|
+
title: string;
|
|
12
|
+
boldTitle: string;
|
|
13
|
+
subTitle: string;
|
|
14
|
+
domain: PersonRole;
|
|
15
|
+
findPersonGroup: FormGroup;
|
|
16
|
+
selectedPerson: string;
|
|
17
|
+
submitted: boolean;
|
|
18
|
+
userIncluded?: boolean;
|
|
19
|
+
assignedUser?: string;
|
|
20
|
+
placeholderContent: string;
|
|
21
|
+
isNoResultsShown: boolean;
|
|
22
|
+
showUpdatedColor: boolean;
|
|
23
|
+
selectedPersons: Person[];
|
|
24
|
+
errorMessage: string;
|
|
25
|
+
idValue: string;
|
|
26
|
+
services: string[];
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
showAutocomplete: boolean;
|
|
29
|
+
findPersonControl: FormControl;
|
|
30
|
+
filteredOptions: Person[];
|
|
31
|
+
readonly minSearchCharacters = 2;
|
|
32
|
+
private sub;
|
|
33
|
+
constructor(findPersonService: FindAPersonService, cd: ChangeDetectorRef);
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
filter(searchTerm: string): Observable<Person[]>;
|
|
37
|
+
onSelectionChange(selectedPerson: Person): void;
|
|
38
|
+
getDisplayName(selectedPerson: Person): string;
|
|
39
|
+
onInput(): void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ValidatorFn } from '@angular/forms';
|
|
2
|
+
export declare function minSelectedValidator<T>(min: number): ValidatorFn;
|
|
3
|
+
export declare function maxSelectedValidator<T>(max: number): ValidatorFn;
|
|
4
|
+
export declare function getValues(options: {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
selectAll?: true;
|
|
8
|
+
}[], values: any[]): any[];
|
|
@@ -1,16 +1,40 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { FilterConfig, FilterFieldConfig, FilterSetting } from '../../models';
|
|
5
|
+
import { FilterService } from './../../services/filter/filter.service';
|
|
6
|
+
export declare class GenericFilterComponent implements OnInit, OnDestroy {
|
|
5
7
|
private readonly filterService;
|
|
8
|
+
private readonly fb;
|
|
9
|
+
form: FormGroup;
|
|
10
|
+
submitted: boolean;
|
|
11
|
+
formSub: Subscription;
|
|
12
|
+
constructor(filterService: FilterService, fb: FormBuilder);
|
|
13
|
+
private _config;
|
|
6
14
|
config: FilterConfig;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
15
|
+
private _settings?;
|
|
16
|
+
settings: FilterSetting;
|
|
17
|
+
private static addFormValidators;
|
|
10
18
|
ngOnInit(): void;
|
|
11
|
-
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
hidden(field: FilterFieldConfig, form: FormGroup): boolean;
|
|
21
|
+
disabled(field: FilterFieldConfig, form: FormGroup): boolean;
|
|
22
|
+
applyFilter(form: FormGroup): void;
|
|
23
|
+
fieldChanged(field: FilterFieldConfig, form: FormGroup): void;
|
|
24
|
+
inputChanged(field: FilterFieldConfig): void;
|
|
12
25
|
cancelFilter(): void;
|
|
13
|
-
|
|
14
|
-
|
|
26
|
+
updatePersonControls(values: any, field: FilterFieldConfig): void;
|
|
27
|
+
toggleSelectAll(event: any, form: FormGroup, item: {
|
|
28
|
+
key: string;
|
|
29
|
+
label: string;
|
|
30
|
+
selectAll?: true;
|
|
31
|
+
}, field: FilterFieldConfig): void;
|
|
32
|
+
private resetField;
|
|
33
|
+
private mergeDefaultFields;
|
|
15
34
|
private getSettings;
|
|
35
|
+
private buildForm;
|
|
36
|
+
private buildCheckBoxFormArray;
|
|
37
|
+
private buildFindLocationFormArray;
|
|
38
|
+
private getSelectedValues;
|
|
39
|
+
private emitFormErrors;
|
|
16
40
|
}
|
|
@@ -2,7 +2,7 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
export declare class InviteUserFormComponent {
|
|
4
4
|
isInvalid: any;
|
|
5
|
-
submitForm: EventEmitter<
|
|
5
|
+
submitForm: EventEmitter<any>;
|
|
6
6
|
inviteUserForm: FormGroup;
|
|
7
7
|
errorMessages: any;
|
|
8
8
|
onSubmit(): void;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare class LoadingSpinnerComponent implements OnInit, OnDestroy {
|
|
3
|
-
private readonly renderer;
|
|
4
|
-
zIndex: number;
|
|
1
|
+
export declare class LoadingSpinnerComponent {
|
|
5
2
|
loadingText: string;
|
|
6
|
-
constructor(renderer: Renderer2);
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
ngOnDestroy(): void;
|
|
9
3
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
export declare class PaginationComponent {
|
|
3
|
+
moreItems: boolean;
|
|
4
|
+
firstRecord: number;
|
|
5
|
+
previousPage: EventEmitter<any>;
|
|
6
|
+
nextPage: EventEmitter<any>;
|
|
7
|
+
constructor();
|
|
8
|
+
onPrevious(): void;
|
|
9
|
+
onNext(): void;
|
|
10
|
+
}
|
|
@@ -2,24 +2,26 @@ export * from './accessibility/accessibility.component';
|
|
|
2
2
|
export * from './checkbox-list/checkbox-list.component';
|
|
3
3
|
export * from './contact-details/contact-details.component';
|
|
4
4
|
export * from './due-date/due-date.component';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './generic-filter/generic-filter.component';
|
|
6
6
|
export * from './hmcts-session-dialog/hmcts-session-dialog.component';
|
|
7
7
|
export * from './invite-user-form/invite-user-form.component';
|
|
8
8
|
export * from './invite-user-permissions/invite-user-permission.component';
|
|
9
9
|
export * from './loading-spinner/loading-spinner.component';
|
|
10
|
-
export * from './selected-case/selected-case.component';
|
|
11
10
|
export * from './selected-case-confirm/selected-case-confirm.component';
|
|
12
11
|
export * from './selected-case-list/selected-case-list.component';
|
|
12
|
+
export * from './selected-case/selected-case.component';
|
|
13
13
|
export * from './service-message/service-message.component';
|
|
14
14
|
export * from './service-messages/service-messages.component';
|
|
15
|
-
export * from './share-case/share-case.component';
|
|
16
15
|
export * from './share-case-confirm/share-case-confirm.component';
|
|
16
|
+
export * from './share-case/share-case.component';
|
|
17
17
|
export * from './tab/tab.component';
|
|
18
18
|
export * from './tc-confirm/tc-confirm.component';
|
|
19
|
-
export * from './terms-and-conditions/terms-and-conditions.component';
|
|
20
19
|
export * from './terms-and-conditions/tc-display/tc-display-html/tc-display-html.component';
|
|
21
20
|
export * from './terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component';
|
|
21
|
+
export * from './terms-and-conditions/terms-and-conditions.component';
|
|
22
22
|
export * from './user-details/user-details.component';
|
|
23
23
|
export * from './user-list/user-list.component';
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
24
|
+
export * from './cookie-banner/cookie-banner.component';
|
|
25
|
+
export * from './find-location/find-location.component';
|
|
26
|
+
export * from './search-location/search-location.component';
|
|
27
|
+
export * from './pagination/pagination.component';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable, Subject } from 'rxjs';
|
|
4
|
+
import { JudicialUserModel } from '../../models';
|
|
5
|
+
import { FindAPersonService } from '../../services/find-person/find-person.service';
|
|
6
|
+
export declare class SearchJudicialsComponent implements OnInit {
|
|
7
|
+
private readonly judicialService;
|
|
8
|
+
formGroup: FormGroup;
|
|
9
|
+
control: AbstractControl;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
selectedJudicials: JudicialUserModel[];
|
|
12
|
+
submitted?: boolean;
|
|
13
|
+
placeholderContent: string;
|
|
14
|
+
showAutocomplete: boolean;
|
|
15
|
+
displayedJudicials: JudicialUserModel[];
|
|
16
|
+
judicialChanged: EventEmitter<JudicialUserModel>;
|
|
17
|
+
idValue: string;
|
|
18
|
+
errorMessage: string;
|
|
19
|
+
serviceId: string;
|
|
20
|
+
autoCompleteInputBox: ElementRef<HTMLInputElement>;
|
|
21
|
+
selectedJudicial: JudicialUserModel;
|
|
22
|
+
private readonly minSearchCharacters;
|
|
23
|
+
keyUpSubject$: Subject<string>;
|
|
24
|
+
searchInProgress: boolean;
|
|
25
|
+
constructor(judicialService: FindAPersonService, fb: FormBuilder);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
onKeyDown(): void;
|
|
28
|
+
onKeyUp(event: any): void;
|
|
29
|
+
onFocus(): void;
|
|
30
|
+
readonly displayedJudicialsDuplicationFiltered: JudicialUserModel[];
|
|
31
|
+
filter(term: string): void;
|
|
32
|
+
onSelectionChange(selection?: JudicialUserModel): void;
|
|
33
|
+
search(currentValue: string): void;
|
|
34
|
+
getDisplayName(selectedJudicial: JudicialUserModel): string;
|
|
35
|
+
searchJudicials(term: string, serviceId: string): Observable<JudicialUserModel[]>;
|
|
36
|
+
getControlValueDisplayText(): string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { BookingCheckType, LocationByEPIMMSModel } from '../../models';
|
|
5
|
+
import { LocationService } from '../../services/locations/location.service';
|
|
6
|
+
import { SessionStorageService } from '../../services/session-storage/session-storage.service';
|
|
7
|
+
export declare class SearchLocationComponent implements OnInit {
|
|
8
|
+
private readonly locationService;
|
|
9
|
+
private readonly sessionStorageService;
|
|
10
|
+
private readonly fb;
|
|
11
|
+
private readonly cd;
|
|
12
|
+
control: AbstractControl;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
singleMode: boolean;
|
|
15
|
+
locationType: string;
|
|
16
|
+
serviceIds: string;
|
|
17
|
+
submitted?: boolean;
|
|
18
|
+
delay?: number;
|
|
19
|
+
form: FormGroup;
|
|
20
|
+
showAutocomplete: boolean;
|
|
21
|
+
locations: LocationByEPIMMSModel[];
|
|
22
|
+
bookingCheck: BookingCheckType;
|
|
23
|
+
locationSelected: EventEmitter<LocationByEPIMMSModel>;
|
|
24
|
+
locationInputChanged: EventEmitter<string>;
|
|
25
|
+
searchLocationChanged: EventEmitter<void>;
|
|
26
|
+
readonly minSearchCharacters = 3;
|
|
27
|
+
term: string;
|
|
28
|
+
private pSelectedLocations;
|
|
29
|
+
private pReset;
|
|
30
|
+
constructor(locationService: LocationService, sessionStorageService: SessionStorageService, fb: FormBuilder, cd: ChangeDetectorRef);
|
|
31
|
+
reset: boolean;
|
|
32
|
+
selectedLocations: any[];
|
|
33
|
+
ngOnInit(): void;
|
|
34
|
+
filter(term: string): void;
|
|
35
|
+
onSelectionChange(location: LocationByEPIMMSModel): void;
|
|
36
|
+
search(): void;
|
|
37
|
+
onInput(): void;
|
|
38
|
+
getLocations(term: string): Observable<LocationByEPIMMSModel[]>;
|
|
39
|
+
resetSearchTerm(): void;
|
|
40
|
+
private removeSelectedLocations;
|
|
41
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AfterContentInit, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable, Subject } from 'rxjs';
|
|
4
|
+
import { LocationByEPIMMSModel } from '../../models/location.model';
|
|
5
|
+
import { LocationService } from '../../services/locations/location.service';
|
|
6
|
+
export declare class SearchVenueComponent implements OnInit, AfterContentInit {
|
|
7
|
+
private readonly locationService;
|
|
8
|
+
control: AbstractControl;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
locationType: string;
|
|
11
|
+
selectedLocations: LocationByEPIMMSModel[];
|
|
12
|
+
serviceIds: string;
|
|
13
|
+
submitted?: boolean;
|
|
14
|
+
autoCompleteInputBox: ElementRef<HTMLInputElement>;
|
|
15
|
+
findLocationFormGroup: FormGroup;
|
|
16
|
+
showAutocomplete: boolean;
|
|
17
|
+
displayedLocations: LocationByEPIMMSModel[];
|
|
18
|
+
locationChanged: EventEmitter<LocationByEPIMMSModel>;
|
|
19
|
+
selectedLocation: LocationByEPIMMSModel;
|
|
20
|
+
private readonly minSearchCharacters;
|
|
21
|
+
keyUpSubject$: Subject<string>;
|
|
22
|
+
readyAfterContent: boolean;
|
|
23
|
+
searchInProgress: boolean;
|
|
24
|
+
constructor(locationService: LocationService, fb: FormBuilder);
|
|
25
|
+
ngAfterContentInit(): void;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
onKeyDown(): void;
|
|
28
|
+
onKeyUp(event: any): void;
|
|
29
|
+
onFocus(): void;
|
|
30
|
+
readonly displayedLocationsDuplicationFiltered: LocationByEPIMMSModel[];
|
|
31
|
+
filter(term: string): void;
|
|
32
|
+
onSelectionChange(selection?: LocationByEPIMMSModel): void;
|
|
33
|
+
search(currentValue: string): void;
|
|
34
|
+
getDisplayName(selectedLocation: LocationByEPIMMSModel): string;
|
|
35
|
+
searchLocations(term: string): Observable<LocationByEPIMMSModel[]>;
|
|
36
|
+
getControlCourtNameValue(): string;
|
|
37
|
+
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Pagination } from '../../models';
|
|
2
3
|
import { User } from '../../models/user.model';
|
|
3
|
-
export declare class UserListComponent {
|
|
4
|
+
export declare class UserListComponent implements OnInit {
|
|
4
5
|
users: User[];
|
|
6
|
+
currentPageNumber?: number;
|
|
7
|
+
pageTotalSize?: any;
|
|
5
8
|
userClick: EventEmitter<User>;
|
|
9
|
+
pageChange: EventEmitter<any>;
|
|
10
|
+
pagination: Pagination;
|
|
11
|
+
ngOnInit(): void;
|
|
6
12
|
onUserClick(user: User): void;
|
|
13
|
+
emitPageClickEvent(pageNumber: any): void;
|
|
7
14
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AccessibilityComponent } from './components/accessibility/accessibility.component';
|
|
2
|
+
import { CookieBannerComponent } from './components/cookie-banner/cookie-banner.component';
|
|
3
|
+
import { FindPersonComponent } from './components/find-person/find-person.component';
|
|
2
4
|
import { GenericFilterComponent } from './components/generic-filter/generic-filter.component';
|
|
3
|
-
import {
|
|
5
|
+
import { SearchJudicialsComponent } from './components/search-judicials/search-judicials.component';
|
|
6
|
+
import { SearchLocationComponent } from './components/search-location/search-location.component';
|
|
7
|
+
import { SearchVenueComponent } from './components/search-venue/search-venue.component';
|
|
4
8
|
import { SelectedCaseConfirmComponent } from './components/selected-case-confirm/selected-case-confirm.component';
|
|
5
9
|
import { SelectedCaseListComponent } from './components/selected-case-list/selected-case-list.component';
|
|
6
10
|
import { SelectedCaseComponent } from './components/selected-case/selected-case.component';
|
|
7
11
|
import { ServiceMessagesComponent } from './components/service-messages/service-messages.component';
|
|
8
12
|
import { ShareCaseConfirmComponent } from './components/share-case-confirm/share-case-confirm.component';
|
|
9
13
|
import { ShareCaseComponent } from './components/share-case/share-case.component';
|
|
10
|
-
import { TcDisplayHtmlComponent } from './components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component';
|
|
11
14
|
import { FeatureToggleDirective } from './directives/feature-toggle/feature-toggle.directive';
|
|
12
15
|
import { LetDirective } from './directives/let/let.directive';
|
|
13
16
|
import { GovUkCheckboxesComponent } from './gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component';
|
|
@@ -20,15 +23,11 @@ import { HmctsBannerComponent } from './gov-ui/components/hmcts-banner/hmcts-ban
|
|
|
20
23
|
import { HmctsErrorSummaryComponent } from './gov-ui/components/hmcts-error-summary/hmcts-error-summary.component';
|
|
21
24
|
import { HmctsIdentityBarComponent } from './gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component';
|
|
22
25
|
import { HmctsMainWrapperComponent } from './gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component';
|
|
26
|
+
import { HmctsPaginationComponent } from './gov-ui/components/hmcts-pagination/hmcts-pagination.component';
|
|
27
|
+
import { HmctsPrimaryNavigationComponent } from './gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component';
|
|
23
28
|
import { HmctsSubNavigationComponent } from './gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component';
|
|
24
29
|
import { RemoveHostDirective } from './gov-ui/directives/remove-host.directive';
|
|
25
|
-
export declare const
|
|
26
|
-
export declare
|
|
27
|
-
launchDarklyKey?: string;
|
|
28
|
-
}
|
|
29
|
-
export declare const COMMON_COMPONENTS: (typeof TcDisplayHtmlComponent | typeof ShareCaseComponent | typeof ShareCaseConfirmComponent | typeof SelectedCaseListComponent | typeof SelectedCaseComponent | typeof SelectedCaseConfirmComponent | typeof ServiceMessagesComponent | typeof LoadingSpinnerComponent | typeof GenericFilterComponent)[];
|
|
30
|
-
export declare const COMMON_DIRECTIVES: (typeof FeatureToggleDirective | typeof LetDirective)[];
|
|
31
|
-
export declare const GOV_UI_COMPONENTS: (typeof HmctsIdentityBarComponent | typeof HmctsSubNavigationComponent | typeof HmctsErrorSummaryComponent | typeof HmctsMainWrapperComponent | typeof HmctsBannerComponent | typeof GovukTableComponent | typeof GovUkFormGroupWrapperComponent | typeof GovUkLabelComponent | typeof GovUkErrorMessageComponent | typeof GovUkCheckboxesComponent | typeof GovUkRadioComponent)[];
|
|
32
|
-
export declare const GOV_UI_DIRECTIVES: (typeof RemoveHostDirective)[];
|
|
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,4 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ValidatorFn } from '@angular/forms';
|
|
2
3
|
import { ErrorMessagesModel } from '../../models/error-messages-model';
|
|
3
4
|
import { GovUiConfigModel } from '../../models/gov-ui-config-model';
|
|
4
5
|
export declare class GovUkDateComponent implements OnInit {
|
|
@@ -6,5 +7,12 @@ export declare class GovUkDateComponent implements OnInit {
|
|
|
6
7
|
config: GovUiConfigModel;
|
|
7
8
|
errorMessage: ErrorMessagesModel;
|
|
8
9
|
formGroup: any;
|
|
10
|
+
isOptional: boolean;
|
|
11
|
+
month: any;
|
|
12
|
+
day: any;
|
|
13
|
+
year: any;
|
|
9
14
|
ngOnInit(): void;
|
|
15
|
+
private isValidDate;
|
|
16
|
+
private isEmpty;
|
|
17
|
+
DateValidator(): ValidatorFn;
|
|
10
18
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
export declare class HmctsPaginationComponent {
|
|
3
|
+
id: string;
|
|
4
|
+
maxSize: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
showPageNumbers: boolean;
|
|
7
|
+
showResultCount: boolean;
|
|
8
|
+
pageChange: EventEmitter<number>;
|
|
9
|
+
pageBoundsCorrection: EventEmitter<number>;
|
|
10
|
+
}
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
export * from './gov-uk-checkbox/gov-uk-checkbox.component';
|
|
2
|
-
export * from './gov-uk-checkboxes/gov-uk-checkboxes.component';
|
|
3
|
-
export * from './gov-uk-date/gov-uk-date.component';
|
|
4
|
-
export * from './gov-uk-error-message/gov-uk-error-message.component';
|
|
5
|
-
export * from './gov-uk-fieldset/gov-uk-fieldset.component';
|
|
6
|
-
export * from './gov-uk-file-upload/gov-uk-file-upload.component';
|
|
7
|
-
export * from './gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component';
|
|
8
|
-
export * from './gov-uk-input/gov-uk-input.component';
|
|
9
|
-
export * from './gov-uk-label/gov-uk-label.component';
|
|
10
|
-
export * from './gov-uk-radio/gov-uk-radio.component';
|
|
11
|
-
export * from './gov-uk-radios/gov-uk-radios.component';
|
|
12
|
-
export * from './gov-uk-select/gov-uk-select.component';
|
|
13
|
-
export * from './gov-uk-table/gov-uk-table.component';
|
|
14
|
-
export * from './gov-uk-textarea/gov-uk-textarea.component';
|
|
15
|
-
export * from './hmcts-banner/hmcts-banner.component';
|
|
16
|
-
export * from './hmcts-error-summary/hmcts-error-summary.component';
|
|
17
|
-
export * from './hmcts-identity-bar/hmcts-identity-bar.component';
|
|
18
|
-
export * from './hmcts-main-wrapper/hmcts-main-wrapper.component';
|
|
19
|
-
export * from './hmcts-primary-navigation/hmcts-primary-navigation.component';
|
|
20
1
|
export * from './hmcts-sub-navigation/hmcts-sub-navigation.component';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Caseworker, CaseworkersByService } from '../../../models';
|
|
2
|
+
import { ISessionStorageService } from '../../models/isession-storage.interface';
|
|
3
|
+
export declare const getAllCaseworkersFromServices: (caseworkersByService: CaseworkersByService[]) => Caseworker[];
|
|
4
|
+
export declare const getSessionStorageKeyForServiceId: (serviceId: string) => string;
|
|
5
|
+
export declare const getCaseworkers: (serviceId: string, sessionStorageService: ISessionStorageService) => Caseworker[];
|
|
6
|
+
export declare const setCaseworkers: (serviceId: string, caseworkers: Caseworker[], sessionStorageService: ISessionStorageService) => void;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
export declare enum BadgeColour {
|
|
2
|
+
BADGE_RED = "hmcts-badge--red",
|
|
3
|
+
BADGE_BLUE = "hmcts-badge--blue",
|
|
4
|
+
BADGE_GREEN = "hmcts-badge--green"
|
|
5
|
+
}
|
|
2
6
|
export interface ContactDetailsDataModel {
|
|
3
7
|
title?: string;
|
|
4
8
|
badgeColour?: BadgeColour;
|
|
@@ -1,27 +1,54 @@
|
|
|
1
|
-
|
|
1
|
+
import { BookingCheckType } from './location.model';
|
|
2
|
+
import { PersonRole } from './person.model';
|
|
3
|
+
export declare type FilterFieldType = 'checkbox' | 'radio' | 'select' | 'find-person' | 'find-location' | 'checkbox-large';
|
|
2
4
|
export declare type FilterPersistence = 'local' | 'session' | 'memory';
|
|
3
5
|
export interface FilterConfig {
|
|
4
6
|
id: string;
|
|
5
7
|
fields: FilterFieldConfig[];
|
|
6
8
|
persistence: FilterPersistence;
|
|
9
|
+
applyButtonText: string;
|
|
10
|
+
cancelButtonText: string;
|
|
11
|
+
cancelSetting?: FilterSetting;
|
|
12
|
+
enableDisabledButton?: boolean;
|
|
13
|
+
showCancelFilterButton?: boolean;
|
|
7
14
|
}
|
|
8
15
|
export interface FilterFieldConfig {
|
|
9
16
|
name: string;
|
|
10
17
|
options: {
|
|
11
18
|
key: string;
|
|
12
19
|
label: string;
|
|
20
|
+
selectAll?: true;
|
|
13
21
|
}[];
|
|
14
22
|
minSelected: number;
|
|
15
23
|
maxSelected: number;
|
|
16
24
|
minSelectedError?: string;
|
|
17
25
|
maxSelectedError?: string;
|
|
26
|
+
displayMaxSelectedError?: boolean;
|
|
27
|
+
displayMinSelectedError?: boolean;
|
|
28
|
+
lineBreakBefore?: boolean;
|
|
29
|
+
showCondition?: string;
|
|
30
|
+
enableCondition?: string;
|
|
31
|
+
enableAddLocationButton?: boolean;
|
|
32
|
+
changeResetFields?: string[];
|
|
33
|
+
findPersonField?: string;
|
|
34
|
+
findLocationField?: string;
|
|
35
|
+
domainField?: string;
|
|
36
|
+
disable?: boolean;
|
|
37
|
+
disabledText?: string;
|
|
18
38
|
type: FilterFieldType;
|
|
39
|
+
domain?: PersonRole;
|
|
40
|
+
title?: string;
|
|
41
|
+
subTitle?: string;
|
|
42
|
+
locationTitle?: string;
|
|
43
|
+
radioSelectionChange?: string;
|
|
44
|
+
bookingCheckType?: BookingCheckType;
|
|
19
45
|
}
|
|
20
46
|
export interface FilterSetting {
|
|
21
47
|
id: string;
|
|
48
|
+
reset?: boolean;
|
|
22
49
|
fields: {
|
|
23
50
|
name: string;
|
|
24
|
-
value:
|
|
51
|
+
value: any[];
|
|
25
52
|
}[];
|
|
26
53
|
}
|
|
27
54
|
export declare class RadioFilterFieldConfig implements FilterFieldConfig {
|
|
@@ -34,3 +61,7 @@ export declare class RadioFilterFieldConfig implements FilterFieldConfig {
|
|
|
34
61
|
maxSelected: 1;
|
|
35
62
|
type: 'radio';
|
|
36
63
|
}
|
|
64
|
+
export interface FilterError {
|
|
65
|
+
name: string;
|
|
66
|
+
error: string;
|
|
67
|
+
}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
+
export * from './case-share.model';
|
|
2
|
+
export * from './contact-details.model';
|
|
3
|
+
export * from './due-date.model';
|
|
4
|
+
export * from './feature-user';
|
|
5
|
+
export * from './idle-config.model';
|
|
6
|
+
export * from './location.model';
|
|
7
|
+
export * from './pagination.model';
|
|
8
|
+
export * from './person.model';
|
|
1
9
|
export * from './public_api';
|
|
10
|
+
export * from './search-options.model';
|
|
11
|
+
export * from './tcDocument.model';
|
|
12
|
+
export * from './timeout-notification.model';
|
|
13
|
+
export * from './user-details.model';
|
|
14
|
+
export * from './user.model';
|