@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.
- package/bundles/hmcts-rpx-xui-common-lib.umd.js +1744 -1556
- 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 +2 -3
- package/esm2015/lib/components/find-location/find-location.component.js +13 -2
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +19 -13
- package/esm2015/lib/components/search-location/search-location.component.js +32 -3
- package/esm2015/lib/exui-common-lib.module.js +1 -18
- package/esm2015/lib/models/filter.model.js +3 -1
- package/esm2015/lib/models/index.js +2 -1
- package/esm2015/lib/models/location.model.js +22 -1
- package/esm2015/lib/services/locations/location.service.js +5 -3
- package/esm2015/public-api.js +3 -3
- package/esm5/hmcts-rpx-xui-common-lib.js +2 -3
- package/esm5/lib/components/find-location/find-location.component.js +16 -2
- package/esm5/lib/components/generic-filter/generic-filter.component.js +44 -27
- package/esm5/lib/components/search-location/search-location.component.js +31 -3
- package/esm5/lib/exui-common-lib.module.js +3 -19
- package/esm5/lib/models/filter.model.js +3 -1
- package/esm5/lib/models/index.js +2 -1
- package/esm5/lib/models/location.model.js +22 -1
- package/esm5/lib/services/locations/location.service.js +7 -3
- package/esm5/public-api.js +3 -3
- package/fesm2015/hmcts-rpx-xui-common-lib.js +1528 -1368
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +1751 -1575
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +0 -1
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/find-location/find-location.component.d.ts +3 -2
- package/lib/components/search-location/search-location.component.d.ts +5 -2
- package/lib/exui-common-lib.module.d.ts +0 -2
- package/lib/models/filter.model.d.ts +2 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/location.model.d.ts +11 -0
- package/lib/services/locations/location.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { distinctUntilChanged, map, tap, filter, debounceTime, mergeMap, switchM
|
|
|
6
6
|
import { HttpClient } from '@angular/common/http';
|
|
7
7
|
import { MatTabsModule, MatInputModule } from '@angular/material';
|
|
8
8
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
9
|
-
import { Router, NavigationEnd
|
|
9
|
+
import { RouterModule, Router, NavigationEnd } from '@angular/router';
|
|
10
10
|
import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
|
|
11
11
|
import { initialize } from 'launchdarkly-js-client-sdk';
|
|
12
12
|
import { Title } from '@angular/platform-browser';
|
|
@@ -1048,20 +1048,26 @@ class GenericFilterComponent {
|
|
|
1048
1048
|
else if (hasSelectAllOption && !allChecked && isChecked && isAllCheckedExcludingTheSelectAllOption) {
|
|
1049
1049
|
formArray.controls[index].patchValue(true);
|
|
1050
1050
|
}
|
|
1051
|
-
return;
|
|
1052
1051
|
}
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1052
|
+
else {
|
|
1053
|
+
formArray.controls.forEach((/**
|
|
1054
|
+
* @param {?} control
|
|
1055
|
+
* @return {?}
|
|
1056
|
+
*/
|
|
1057
|
+
(control) => {
|
|
1058
|
+
if (isChecked) {
|
|
1059
|
+
control.patchValue(true);
|
|
1060
|
+
}
|
|
1061
|
+
else {
|
|
1062
|
+
control.patchValue(false);
|
|
1063
|
+
}
|
|
1064
|
+
}));
|
|
1065
|
+
}
|
|
1066
|
+
if (field.changeResetFields && field.changeResetFields.length) {
|
|
1067
|
+
for (const resetField of field.changeResetFields) {
|
|
1068
|
+
this.resetField(resetField, form);
|
|
1063
1069
|
}
|
|
1064
|
-
}
|
|
1070
|
+
}
|
|
1065
1071
|
}
|
|
1066
1072
|
/**
|
|
1067
1073
|
* @private
|
|
@@ -3255,1254 +3261,1477 @@ if (false) {
|
|
|
3255
3261
|
|
|
3256
3262
|
/**
|
|
3257
3263
|
* @fileoverview added by tsickle
|
|
3258
|
-
* Generated from: lib/
|
|
3264
|
+
* Generated from: lib/models/case-share.model.ts
|
|
3259
3265
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3260
3266
|
*/
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
/**
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
/**
|
|
3279
|
-
|
|
3280
|
-
* @param {?} serviceIds
|
|
3281
|
-
* @param {?} locationType
|
|
3282
|
-
* @param {?} searchTerm
|
|
3283
|
-
* @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
|
|
3284
|
-
*/
|
|
3285
|
-
searchLocations(serviceIds, locationType, searchTerm) {
|
|
3286
|
-
return this.http.get(`api/prd/location/getLocations?serviceIds=${serviceIds}&locationType=${locationType}&searchTerm=${searchTerm}`);
|
|
3287
|
-
}
|
|
3267
|
+
/**
|
|
3268
|
+
* @record
|
|
3269
|
+
*/
|
|
3270
|
+
function SharedCase() { }
|
|
3271
|
+
if (false) {
|
|
3272
|
+
/** @type {?} */
|
|
3273
|
+
SharedCase.prototype.caseId;
|
|
3274
|
+
/** @type {?} */
|
|
3275
|
+
SharedCase.prototype.caseTitle;
|
|
3276
|
+
/** @type {?|undefined} */
|
|
3277
|
+
SharedCase.prototype.caseTypeId;
|
|
3278
|
+
/** @type {?|undefined} */
|
|
3279
|
+
SharedCase.prototype.roles;
|
|
3280
|
+
/** @type {?|undefined} */
|
|
3281
|
+
SharedCase.prototype.sharedWith;
|
|
3282
|
+
/** @type {?|undefined} */
|
|
3283
|
+
SharedCase.prototype.pendingShares;
|
|
3284
|
+
/** @type {?|undefined} */
|
|
3285
|
+
SharedCase.prototype.pendingUnshares;
|
|
3288
3286
|
}
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* @fileoverview added by tsickle
|
|
3290
|
+
* Generated from: lib/models/contact-details.model.ts
|
|
3291
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3292
|
+
*/
|
|
3293
|
+
/** @enum {string} */
|
|
3294
|
+
const BadgeColour = {
|
|
3295
|
+
BADGE_RED: "hmcts-badge--red",
|
|
3296
|
+
BADGE_BLUE: "hmcts-badge--blue",
|
|
3297
|
+
BADGE_GREEN: "hmcts-badge--green",
|
|
3298
|
+
};
|
|
3299
|
+
/**
|
|
3300
|
+
* @record
|
|
3301
|
+
*/
|
|
3302
|
+
function ContactDetailsDataModel() { }
|
|
3299
3303
|
if (false) {
|
|
3300
|
-
/**
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3304
|
+
/** @type {?|undefined} */
|
|
3305
|
+
ContactDetailsDataModel.prototype.title;
|
|
3306
|
+
/** @type {?|undefined} */
|
|
3307
|
+
ContactDetailsDataModel.prototype.badgeColour;
|
|
3308
|
+
/** @type {?|undefined} */
|
|
3309
|
+
ContactDetailsDataModel.prototype.badgeText;
|
|
3310
|
+
/** @type {?|undefined} */
|
|
3311
|
+
ContactDetailsDataModel.prototype.email;
|
|
3312
|
+
/** @type {?|undefined} */
|
|
3313
|
+
ContactDetailsDataModel.prototype.phone;
|
|
3314
|
+
/** @type {?|undefined} */
|
|
3315
|
+
ContactDetailsDataModel.prototype.openingTimes;
|
|
3305
3316
|
}
|
|
3306
3317
|
|
|
3307
3318
|
/**
|
|
3308
3319
|
* @fileoverview added by tsickle
|
|
3309
|
-
* Generated from: lib/
|
|
3320
|
+
* Generated from: lib/models/feature-user.ts
|
|
3310
3321
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3311
3322
|
*/
|
|
3312
|
-
class
|
|
3313
|
-
/**
|
|
3314
|
-
* @param {?} locationService
|
|
3315
|
-
* @param {?} fb
|
|
3316
|
-
* @param {?} cd
|
|
3317
|
-
*/
|
|
3318
|
-
constructor(locationService, fb, cd) {
|
|
3319
|
-
this.locationService = locationService;
|
|
3320
|
-
this.fb = fb;
|
|
3321
|
-
this.cd = cd;
|
|
3322
|
-
this.disabled = null;
|
|
3323
|
-
this.singleMode = false;
|
|
3324
|
-
this.locationType = '';
|
|
3325
|
-
this.serviceIds = '';
|
|
3326
|
-
this.submitted = true;
|
|
3327
|
-
this.delay = 500;
|
|
3328
|
-
this.showAutocomplete = false;
|
|
3329
|
-
this.locations = [];
|
|
3330
|
-
this.locationSelected = new EventEmitter();
|
|
3331
|
-
this.locationInputChanged = new EventEmitter();
|
|
3332
|
-
this.searchLocationChanged = new EventEmitter();
|
|
3333
|
-
this.minSearchCharacters = 3;
|
|
3334
|
-
this.term = '';
|
|
3335
|
-
this.pSelectedLocations = [];
|
|
3336
|
-
this.pReset = true;
|
|
3337
|
-
this.form = this.fb.group({
|
|
3338
|
-
searchTerm: ['']
|
|
3339
|
-
});
|
|
3340
|
-
}
|
|
3341
|
-
/**
|
|
3342
|
-
* @return {?}
|
|
3343
|
-
*/
|
|
3344
|
-
get reset() {
|
|
3345
|
-
return this.pReset;
|
|
3346
|
-
}
|
|
3347
|
-
/**
|
|
3348
|
-
* @param {?} value
|
|
3349
|
-
* @return {?}
|
|
3350
|
-
*/
|
|
3351
|
-
set reset(value) {
|
|
3352
|
-
this.pReset = value;
|
|
3353
|
-
this.resetSearchTerm();
|
|
3354
|
-
}
|
|
3355
|
-
/**
|
|
3356
|
-
* @return {?}
|
|
3357
|
-
*/
|
|
3358
|
-
get selectedLocations() {
|
|
3359
|
-
return this.pSelectedLocations;
|
|
3360
|
-
}
|
|
3361
|
-
/**
|
|
3362
|
-
* @param {?} value
|
|
3363
|
-
* @return {?}
|
|
3364
|
-
*/
|
|
3365
|
-
set selectedLocations(value) {
|
|
3366
|
-
this.pSelectedLocations = value;
|
|
3367
|
-
}
|
|
3368
|
-
/**
|
|
3369
|
-
* @return {?}
|
|
3370
|
-
*/
|
|
3371
|
-
ngOnInit() {
|
|
3372
|
-
if (this.singleMode && this.selectedLocations.length > 0) {
|
|
3373
|
-
/** @type {?} */
|
|
3374
|
-
const location = this.selectedLocations[0];
|
|
3375
|
-
this.form.controls.searchTerm.patchValue(location.site_name, { emitEvent: false, onlySelf: true });
|
|
3376
|
-
}
|
|
3377
|
-
this.search();
|
|
3378
|
-
}
|
|
3379
|
-
/**
|
|
3380
|
-
* @param {?} term
|
|
3381
|
-
* @return {?}
|
|
3382
|
-
*/
|
|
3383
|
-
filter(term) {
|
|
3384
|
-
this.getLocations(term).pipe(map((/**
|
|
3385
|
-
* @param {?} locations
|
|
3386
|
-
* @return {?}
|
|
3387
|
-
*/
|
|
3388
|
-
(locations) => this.removeSelectedLocations(locations))));
|
|
3389
|
-
}
|
|
3390
|
-
/**
|
|
3391
|
-
* @param {?} location
|
|
3392
|
-
* @return {?}
|
|
3393
|
-
*/
|
|
3394
|
-
onSelectionChange(location) {
|
|
3395
|
-
this.form.controls.searchTerm.patchValue(location.site_name, { emitEvent: false, onlySelf: true });
|
|
3396
|
-
this.locationSelected.emit(location);
|
|
3397
|
-
}
|
|
3398
|
-
/**
|
|
3399
|
-
* @return {?}
|
|
3400
|
-
*/
|
|
3401
|
-
search() {
|
|
3402
|
-
this.form.controls.searchTerm.valueChanges
|
|
3403
|
-
.pipe(tap((/**
|
|
3404
|
-
* @param {?} term
|
|
3405
|
-
* @return {?}
|
|
3406
|
-
*/
|
|
3407
|
-
(term) => this.locationInputChanged.next(term))), tap((/**
|
|
3408
|
-
* @return {?}
|
|
3409
|
-
*/
|
|
3410
|
-
() => this.locations = [])), tap((/**
|
|
3411
|
-
* @param {?} term
|
|
3412
|
-
* @return {?}
|
|
3413
|
-
*/
|
|
3414
|
-
(term) => this.term = term)), filter((/**
|
|
3415
|
-
* @param {?} term
|
|
3416
|
-
* @return {?}
|
|
3417
|
-
*/
|
|
3418
|
-
term => !!term && term.length >= this.minSearchCharacters)), debounceTime(this.delay), mergeMap((/**
|
|
3419
|
-
* @param {?} value
|
|
3420
|
-
* @return {?}
|
|
3421
|
-
*/
|
|
3422
|
-
value => this.getLocations(value))), map((/**
|
|
3423
|
-
* @param {?} locations
|
|
3424
|
-
* @return {?}
|
|
3425
|
-
*/
|
|
3426
|
-
(locations) => this.removeSelectedLocations(locations)))).subscribe((/**
|
|
3427
|
-
* @param {?} locations
|
|
3428
|
-
* @return {?}
|
|
3429
|
-
*/
|
|
3430
|
-
locations => {
|
|
3431
|
-
this.locations = locations;
|
|
3432
|
-
this.cd.markForCheck();
|
|
3433
|
-
if (locations.length === 1 && this.term === locations[0].site_name && !this.singleMode) {
|
|
3434
|
-
this.locationSelected.emit(locations[0]);
|
|
3435
|
-
this.showAutocomplete = false;
|
|
3436
|
-
return;
|
|
3437
|
-
}
|
|
3438
|
-
this.showAutocomplete = true;
|
|
3439
|
-
}));
|
|
3440
|
-
}
|
|
3441
|
-
/**
|
|
3442
|
-
* @return {?}
|
|
3443
|
-
*/
|
|
3444
|
-
onInput() {
|
|
3445
|
-
this.searchLocationChanged.emit();
|
|
3446
|
-
}
|
|
3447
|
-
/**
|
|
3448
|
-
* @param {?} term
|
|
3449
|
-
* @return {?}
|
|
3450
|
-
*/
|
|
3451
|
-
getLocations(term) {
|
|
3452
|
-
return this.locationService.getAllLocations(this.serviceIds, this.locationType, term);
|
|
3453
|
-
}
|
|
3454
|
-
/**
|
|
3455
|
-
* @return {?}
|
|
3456
|
-
*/
|
|
3457
|
-
resetSearchTerm() {
|
|
3458
|
-
this.form.controls.searchTerm.patchValue('', { emitEvent: false, onlySelf: true });
|
|
3459
|
-
}
|
|
3460
|
-
/**
|
|
3461
|
-
* @private
|
|
3462
|
-
* @param {?} locations
|
|
3463
|
-
* @return {?}
|
|
3464
|
-
*/
|
|
3465
|
-
removeSelectedLocations(locations) {
|
|
3466
|
-
if (this.singleMode) {
|
|
3467
|
-
return locations;
|
|
3468
|
-
}
|
|
3469
|
-
return locations.filter((/**
|
|
3470
|
-
* @param {?} location
|
|
3471
|
-
* @return {?}
|
|
3472
|
-
*/
|
|
3473
|
-
location => !this.selectedLocations.map((/**
|
|
3474
|
-
* @param {?} selectedLocation
|
|
3475
|
-
* @return {?}
|
|
3476
|
-
*/
|
|
3477
|
-
selectedLocation => selectedLocation.epimms_id)).includes(location.epimms_id) && location.site_name));
|
|
3478
|
-
}
|
|
3323
|
+
class AnonymousFeatureUser {
|
|
3479
3324
|
}
|
|
3480
|
-
SearchLocationComponent.decorators = [
|
|
3481
|
-
{ type: Component, args: [{
|
|
3482
|
-
selector: 'exui-search-location',
|
|
3483
|
-
template: "<div class=\"auto-complete-container\">\n <input\n id=\"inputLocationSearch\"\n (input)=\"onInput()\"\n [formControl]=\"form.controls.searchTerm\"\n [matAutocomplete]=\"autoSearchLocation\"\n class=\"govuk-input\"\n [attr.disabled]=\"disabled\">\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchLocation=\"matAutocomplete\">\n <mat-option *ngFor=\"let location of locations\"\n (onSelectionChange)=\"onSelectionChange(location)\">\n {{ location.site_name }}\n </mat-option>\n <mat-option *ngIf=\"!locations.length && showAutocomplete && term && term.length >= this.minSearchCharacters\">No results found</mat-option>\n </mat-autocomplete>\n</div>\n",
|
|
3484
|
-
styles: [".autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:rgba(0,0,0,.256863) 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.31579}}.div-action{display:inline-block}.add-location{display:inline}.remove-location-button{margin:5px}.hide-autocomplete{display:none}.auto-complete-container{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}"]
|
|
3485
|
-
}] }
|
|
3486
|
-
];
|
|
3487
|
-
/** @nocollapse */
|
|
3488
|
-
SearchLocationComponent.ctorParameters = () => [
|
|
3489
|
-
{ type: LocationService },
|
|
3490
|
-
{ type: FormBuilder },
|
|
3491
|
-
{ type: ChangeDetectorRef }
|
|
3492
|
-
];
|
|
3493
|
-
SearchLocationComponent.propDecorators = {
|
|
3494
|
-
control: [{ type: Input }],
|
|
3495
|
-
disabled: [{ type: Input }],
|
|
3496
|
-
singleMode: [{ type: Input }],
|
|
3497
|
-
locationType: [{ type: Input }],
|
|
3498
|
-
serviceIds: [{ type: Input }],
|
|
3499
|
-
submitted: [{ type: Input }],
|
|
3500
|
-
delay: [{ type: Input }],
|
|
3501
|
-
form: [{ type: Input }],
|
|
3502
|
-
showAutocomplete: [{ type: Input }],
|
|
3503
|
-
locations: [{ type: Input }],
|
|
3504
|
-
locationSelected: [{ type: Output }],
|
|
3505
|
-
locationInputChanged: [{ type: Output }],
|
|
3506
|
-
searchLocationChanged: [{ type: Output }],
|
|
3507
|
-
reset: [{ type: Input }],
|
|
3508
|
-
selectedLocations: [{ type: Input }]
|
|
3509
|
-
};
|
|
3510
3325
|
if (false) {
|
|
3511
3326
|
/** @type {?} */
|
|
3512
|
-
|
|
3327
|
+
AnonymousFeatureUser.prototype.anonymous;
|
|
3328
|
+
}
|
|
3329
|
+
class LoggedInFeatureUser {
|
|
3330
|
+
}
|
|
3331
|
+
if (false) {
|
|
3513
3332
|
/** @type {?} */
|
|
3514
|
-
|
|
3333
|
+
LoggedInFeatureUser.prototype.key;
|
|
3515
3334
|
/** @type {?} */
|
|
3516
|
-
|
|
3335
|
+
LoggedInFeatureUser.prototype.custom;
|
|
3336
|
+
}
|
|
3337
|
+
|
|
3338
|
+
/**
|
|
3339
|
+
* @fileoverview added by tsickle
|
|
3340
|
+
* Generated from: lib/models/idle-config.model.ts
|
|
3341
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3342
|
+
*/
|
|
3343
|
+
/**
|
|
3344
|
+
* @record
|
|
3345
|
+
*/
|
|
3346
|
+
function IdleConfigModel() { }
|
|
3347
|
+
if (false) {
|
|
3517
3348
|
/** @type {?} */
|
|
3518
|
-
|
|
3349
|
+
IdleConfigModel.prototype.timeout;
|
|
3519
3350
|
/** @type {?} */
|
|
3520
|
-
|
|
3351
|
+
IdleConfigModel.prototype.idleMilliseconds;
|
|
3521
3352
|
/** @type {?} */
|
|
3522
|
-
|
|
3353
|
+
IdleConfigModel.prototype.keepAliveInSeconds;
|
|
3354
|
+
/** @type {?|undefined} */
|
|
3355
|
+
IdleConfigModel.prototype.idleServiceName;
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3358
|
+
/**
|
|
3359
|
+
* @fileoverview added by tsickle
|
|
3360
|
+
* Generated from: lib/models/location.model.ts
|
|
3361
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3362
|
+
*/
|
|
3363
|
+
/**
|
|
3364
|
+
* @record
|
|
3365
|
+
*/
|
|
3366
|
+
function LocationModel() { }
|
|
3367
|
+
if (false) {
|
|
3523
3368
|
/** @type {?} */
|
|
3524
|
-
|
|
3369
|
+
LocationModel.prototype.court_venue_id;
|
|
3525
3370
|
/** @type {?} */
|
|
3526
|
-
|
|
3371
|
+
LocationModel.prototype.site_name;
|
|
3372
|
+
/** @type {?|undefined} */
|
|
3373
|
+
LocationModel.prototype.court_name;
|
|
3527
3374
|
/** @type {?} */
|
|
3528
|
-
|
|
3375
|
+
LocationModel.prototype.epimms_id;
|
|
3376
|
+
/** @type {?|undefined} */
|
|
3377
|
+
LocationModel.prototype.open_for_public;
|
|
3529
3378
|
/** @type {?} */
|
|
3530
|
-
|
|
3379
|
+
LocationModel.prototype.court_type_id;
|
|
3531
3380
|
/** @type {?} */
|
|
3532
|
-
|
|
3381
|
+
LocationModel.prototype.court_type;
|
|
3533
3382
|
/** @type {?} */
|
|
3534
|
-
|
|
3383
|
+
LocationModel.prototype.region_id;
|
|
3535
3384
|
/** @type {?} */
|
|
3536
|
-
|
|
3385
|
+
LocationModel.prototype.region;
|
|
3386
|
+
/** @type {?|undefined} */
|
|
3387
|
+
LocationModel.prototype.cluster_id;
|
|
3388
|
+
/** @type {?|undefined} */
|
|
3389
|
+
LocationModel.prototype.cluster_name;
|
|
3390
|
+
/** @type {?|undefined} */
|
|
3391
|
+
LocationModel.prototype.court_status;
|
|
3392
|
+
/** @type {?|undefined} */
|
|
3393
|
+
LocationModel.prototype.court_open_date;
|
|
3394
|
+
/** @type {?|undefined} */
|
|
3395
|
+
LocationModel.prototype.closed_date;
|
|
3537
3396
|
/** @type {?} */
|
|
3538
|
-
|
|
3397
|
+
LocationModel.prototype.postcode;
|
|
3539
3398
|
/** @type {?} */
|
|
3540
|
-
|
|
3541
|
-
/**
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
/**
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3399
|
+
LocationModel.prototype.court_address;
|
|
3400
|
+
/** @type {?|undefined} */
|
|
3401
|
+
LocationModel.prototype.phone_number;
|
|
3402
|
+
/** @type {?|undefined} */
|
|
3403
|
+
LocationModel.prototype.court_location_code;
|
|
3404
|
+
/** @type {?|undefined} */
|
|
3405
|
+
LocationModel.prototype.dx_address;
|
|
3406
|
+
/** @type {?|undefined} */
|
|
3407
|
+
LocationModel.prototype.welsh_site_name;
|
|
3408
|
+
/** @type {?|undefined} */
|
|
3409
|
+
LocationModel.prototype.welsh_court_address;
|
|
3410
|
+
/** @type {?|undefined} */
|
|
3411
|
+
LocationModel.prototype.venue_name;
|
|
3412
|
+
/** @type {?} */
|
|
3413
|
+
LocationModel.prototype.is_case_management_location;
|
|
3414
|
+
/** @type {?} */
|
|
3415
|
+
LocationModel.prototype.is_hearing_location;
|
|
3416
|
+
}
|
|
3417
|
+
/**
|
|
3418
|
+
* @record
|
|
3419
|
+
*/
|
|
3420
|
+
function LocationByEPIMMSModel() { }
|
|
3421
|
+
if (false) {
|
|
3422
|
+
/** @type {?} */
|
|
3423
|
+
LocationByEPIMMSModel.prototype.epimms_id;
|
|
3424
|
+
/** @type {?} */
|
|
3425
|
+
LocationByEPIMMSModel.prototype.site_name;
|
|
3426
|
+
/** @type {?|undefined} */
|
|
3427
|
+
LocationByEPIMMSModel.prototype.court_name;
|
|
3428
|
+
/** @type {?|undefined} */
|
|
3429
|
+
LocationByEPIMMSModel.prototype.open_for_public;
|
|
3430
|
+
/** @type {?} */
|
|
3431
|
+
LocationByEPIMMSModel.prototype.region_id;
|
|
3432
|
+
/** @type {?} */
|
|
3433
|
+
LocationByEPIMMSModel.prototype.region;
|
|
3434
|
+
/** @type {?|undefined} */
|
|
3435
|
+
LocationByEPIMMSModel.prototype.cluster_id;
|
|
3436
|
+
/** @type {?|undefined} */
|
|
3437
|
+
LocationByEPIMMSModel.prototype.cluster_name;
|
|
3438
|
+
/** @type {?|undefined} */
|
|
3439
|
+
LocationByEPIMMSModel.prototype.court_status;
|
|
3440
|
+
/** @type {?|undefined} */
|
|
3441
|
+
LocationByEPIMMSModel.prototype.court_open_date;
|
|
3442
|
+
/** @type {?|undefined} */
|
|
3443
|
+
LocationByEPIMMSModel.prototype.closed_date;
|
|
3444
|
+
/** @type {?} */
|
|
3445
|
+
LocationByEPIMMSModel.prototype.postcode;
|
|
3446
|
+
/** @type {?} */
|
|
3447
|
+
LocationByEPIMMSModel.prototype.court_address;
|
|
3448
|
+
/** @type {?|undefined} */
|
|
3449
|
+
LocationByEPIMMSModel.prototype.phone_number;
|
|
3450
|
+
/** @type {?|undefined} */
|
|
3451
|
+
LocationByEPIMMSModel.prototype.court_location_code;
|
|
3452
|
+
/** @type {?|undefined} */
|
|
3453
|
+
LocationByEPIMMSModel.prototype.dx_address;
|
|
3454
|
+
/** @type {?|undefined} */
|
|
3455
|
+
LocationByEPIMMSModel.prototype.welsh_site_name;
|
|
3456
|
+
/** @type {?|undefined} */
|
|
3457
|
+
LocationByEPIMMSModel.prototype.welsh_court_address;
|
|
3458
|
+
/** @type {?|undefined} */
|
|
3459
|
+
LocationByEPIMMSModel.prototype.venue_name;
|
|
3460
|
+
/** @type {?} */
|
|
3461
|
+
LocationByEPIMMSModel.prototype.is_case_management_location;
|
|
3462
|
+
/** @type {?} */
|
|
3463
|
+
LocationByEPIMMSModel.prototype.is_hearing_location;
|
|
3464
|
+
}
|
|
3465
|
+
/**
|
|
3466
|
+
* @record
|
|
3467
|
+
*/
|
|
3468
|
+
function LocationsByService() { }
|
|
3469
|
+
if (false) {
|
|
3470
|
+
/** @type {?|undefined} */
|
|
3471
|
+
LocationsByService.prototype.service;
|
|
3472
|
+
/** @type {?|undefined} */
|
|
3473
|
+
LocationsByService.prototype.serviceCode;
|
|
3474
|
+
/** @type {?|undefined} */
|
|
3475
|
+
LocationsByService.prototype.bookable;
|
|
3476
|
+
/** @type {?} */
|
|
3477
|
+
LocationsByService.prototype.locations;
|
|
3566
3478
|
}
|
|
3479
|
+
/** @enum {string} */
|
|
3480
|
+
const BookingCheckType = {
|
|
3481
|
+
NO_CHECK: "NO_CHECK",
|
|
3482
|
+
BOOKINGS_AND_BASE: "BOOKINGS_AND_BASE",
|
|
3483
|
+
POSSIBLE_BOOKINGS: "POSSIBLE_BOOKINGS",
|
|
3484
|
+
};
|
|
3567
3485
|
|
|
3568
3486
|
/**
|
|
3569
3487
|
* @fileoverview added by tsickle
|
|
3570
|
-
* Generated from: lib/
|
|
3488
|
+
* Generated from: lib/models/pagination.model.ts
|
|
3571
3489
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3572
3490
|
*/
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
this.pServices = [];
|
|
3585
|
-
this.pDisabled = false;
|
|
3586
|
-
}
|
|
3587
|
-
/**
|
|
3588
|
-
* @return {?}
|
|
3589
|
-
*/
|
|
3590
|
-
get disabled() {
|
|
3591
|
-
return this.pDisabled;
|
|
3592
|
-
}
|
|
3593
|
-
/**
|
|
3594
|
-
* @param {?} value
|
|
3595
|
-
* @return {?}
|
|
3596
|
-
*/
|
|
3597
|
-
set disabled(value) {
|
|
3598
|
-
if (value) {
|
|
3599
|
-
this.searchLocationComponent.resetSearchTerm();
|
|
3600
|
-
this.removeSelectedValues();
|
|
3601
|
-
}
|
|
3602
|
-
this.pDisabled = this.disableInputField === true ? true : null;
|
|
3603
|
-
}
|
|
3604
|
-
/**
|
|
3605
|
-
* @return {?}
|
|
3606
|
-
*/
|
|
3607
|
-
get services() {
|
|
3608
|
-
return this.pServices;
|
|
3609
|
-
}
|
|
3610
|
-
/**
|
|
3611
|
-
* @param {?} value
|
|
3612
|
-
* @return {?}
|
|
3613
|
-
*/
|
|
3614
|
-
set services(value) {
|
|
3615
|
-
this.pServices = value;
|
|
3616
|
-
/** @type {?} */
|
|
3617
|
-
const field = this.fields.find((/**
|
|
3618
|
-
* @param {?} f
|
|
3619
|
-
* @return {?}
|
|
3620
|
-
*/
|
|
3621
|
-
f => f.name === this.field.findLocationField));
|
|
3622
|
-
if (field) {
|
|
3623
|
-
if (typeof value === 'string') {
|
|
3624
|
-
this.serviceIds = value;
|
|
3625
|
-
}
|
|
3626
|
-
else {
|
|
3627
|
-
this.serviceIds = getValues(field.options, value).filter((/**
|
|
3628
|
-
* @param {?} x
|
|
3629
|
-
* @return {?}
|
|
3630
|
-
*/
|
|
3631
|
-
x => x !== 'services_all')).join(',');
|
|
3632
|
-
}
|
|
3633
|
-
}
|
|
3634
|
-
}
|
|
3635
|
-
/**
|
|
3636
|
-
* @return {?}
|
|
3637
|
-
*/
|
|
3638
|
-
addLocation() {
|
|
3639
|
-
if (this.tempSelectedLocation) {
|
|
3640
|
-
this.selectedLocations = [...this.selectedLocations, this.tempSelectedLocation];
|
|
3641
|
-
this.addSelectedLocationsToForm([this.tempSelectedLocation]);
|
|
3642
|
-
this.tempSelectedLocation = null;
|
|
3643
|
-
this.locations = [];
|
|
3644
|
-
this.searchLocationComponent.resetSearchTerm();
|
|
3645
|
-
}
|
|
3646
|
-
}
|
|
3647
|
-
/**
|
|
3648
|
-
* @param {?} location
|
|
3649
|
-
* @return {?}
|
|
3650
|
-
*/
|
|
3651
|
-
removeLocation(location) {
|
|
3652
|
-
if (location.epimms_id) {
|
|
3653
|
-
this.selectedLocations = this.selectedLocations.filter((/**
|
|
3654
|
-
* @param {?} selectedLocation
|
|
3655
|
-
* @return {?}
|
|
3656
|
-
*/
|
|
3657
|
-
selectedLocation => selectedLocation.epimms_id !== location.epimms_id));
|
|
3658
|
-
/** @type {?} */
|
|
3659
|
-
const formArray = (/** @type {?} */ (this.form.get(this.field.name)));
|
|
3660
|
-
/** @type {?} */
|
|
3661
|
-
const index = ((/** @type {?} */ (formArray.value))).findIndex((/**
|
|
3662
|
-
* @param {?} selectedLocation
|
|
3663
|
-
* @return {?}
|
|
3664
|
-
*/
|
|
3665
|
-
selectedLocation => selectedLocation.epimms_id === location.epimms_id));
|
|
3666
|
-
if (index > -1) {
|
|
3667
|
-
formArray.removeAt(index);
|
|
3668
|
-
}
|
|
3669
|
-
}
|
|
3670
|
-
}
|
|
3671
|
-
/**
|
|
3672
|
-
* @param {?} term
|
|
3673
|
-
* @return {?}
|
|
3674
|
-
*/
|
|
3675
|
-
onInputChanged(term) {
|
|
3676
|
-
// if the filter is in single mode clear the selected locations
|
|
3677
|
-
if (typeof term === 'string' && this.field.maxSelected === 1) {
|
|
3678
|
-
this.removeSelectedValues();
|
|
3679
|
-
}
|
|
3680
|
-
}
|
|
3681
|
-
/**
|
|
3682
|
-
* @return {?}
|
|
3683
|
-
*/
|
|
3684
|
-
onSearchInputChanged() {
|
|
3685
|
-
this.locationFieldChanged.emit();
|
|
3686
|
-
}
|
|
3687
|
-
/**
|
|
3688
|
-
* @param {?} location
|
|
3689
|
-
* @return {?}
|
|
3690
|
-
*/
|
|
3691
|
-
onLocationSelected(location) {
|
|
3692
|
-
if (this.field.maxSelected === 1) {
|
|
3693
|
-
this.removeSelectedValues();
|
|
3694
|
-
this.addSelectedLocationsToForm([location]);
|
|
3695
|
-
}
|
|
3696
|
-
else {
|
|
3697
|
-
if (!this.selectedLocations.find((/**
|
|
3698
|
-
* @param {?} x
|
|
3699
|
-
* @return {?}
|
|
3700
|
-
*/
|
|
3701
|
-
x => x.epimms_id === location.epimms_id))) {
|
|
3702
|
-
if (location.epimms_id) {
|
|
3703
|
-
this.tempSelectedLocation = location;
|
|
3704
|
-
}
|
|
3705
|
-
}
|
|
3706
|
-
}
|
|
3707
|
-
}
|
|
3708
|
-
/**
|
|
3709
|
-
* @private
|
|
3710
|
-
* @return {?}
|
|
3711
|
-
*/
|
|
3712
|
-
removeSelectedValues() {
|
|
3713
|
-
/** @type {?} */
|
|
3714
|
-
const formArray = (/** @type {?} */ (this.form.get(this.field.name)));
|
|
3715
|
-
for (let i = 0; i < formArray.length; i++) {
|
|
3716
|
-
formArray.removeAt(i);
|
|
3717
|
-
}
|
|
3718
|
-
this.selectedLocations = [];
|
|
3719
|
-
}
|
|
3720
|
-
/**
|
|
3721
|
-
* @private
|
|
3722
|
-
* @param {?} locations
|
|
3723
|
-
* @return {?}
|
|
3724
|
-
*/
|
|
3725
|
-
addSelectedLocationsToForm(locations) {
|
|
3726
|
-
/** @type {?} */
|
|
3727
|
-
const formArray = (/** @type {?} */ (this.form.get(this.field.name)));
|
|
3728
|
-
for (const location of locations) {
|
|
3729
|
-
formArray.push(new FormControl(location));
|
|
3730
|
-
}
|
|
3731
|
-
}
|
|
3491
|
+
/**
|
|
3492
|
+
* @record
|
|
3493
|
+
*/
|
|
3494
|
+
function Pagination() { }
|
|
3495
|
+
if (false) {
|
|
3496
|
+
/** @type {?} */
|
|
3497
|
+
Pagination.prototype.itemsPerPage;
|
|
3498
|
+
/** @type {?} */
|
|
3499
|
+
Pagination.prototype.currentPage;
|
|
3500
|
+
/** @type {?} */
|
|
3501
|
+
Pagination.prototype.totalItems;
|
|
3732
3502
|
}
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
submitted: [{ type: Input }],
|
|
3744
|
-
enableAddLocationButton: [{ type: Input }],
|
|
3745
|
-
form: [{ type: Input }],
|
|
3746
|
-
field: [{ type: Input }],
|
|
3747
|
-
fields: [{ type: Input }],
|
|
3748
|
-
locationTitle: [{ type: Input }],
|
|
3749
|
-
disableInputField: [{ type: Input }],
|
|
3750
|
-
searchLocationComponent: [{ type: ViewChild, args: [SearchLocationComponent, { static: true },] }],
|
|
3751
|
-
disabled: [{ type: Input }],
|
|
3752
|
-
services: [{ type: Input }]
|
|
3753
|
-
};
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
* @fileoverview added by tsickle
|
|
3506
|
+
* Generated from: lib/models/person.model.ts
|
|
3507
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3508
|
+
*/
|
|
3509
|
+
/**
|
|
3510
|
+
* @record
|
|
3511
|
+
*/
|
|
3512
|
+
function Person() { }
|
|
3754
3513
|
if (false) {
|
|
3755
3514
|
/** @type {?} */
|
|
3756
|
-
|
|
3515
|
+
Person.prototype.id;
|
|
3757
3516
|
/** @type {?} */
|
|
3758
|
-
|
|
3517
|
+
Person.prototype.name;
|
|
3518
|
+
/** @type {?|undefined} */
|
|
3519
|
+
Person.prototype.email;
|
|
3759
3520
|
/** @type {?} */
|
|
3760
|
-
|
|
3521
|
+
Person.prototype.domain;
|
|
3522
|
+
/** @type {?|undefined} */
|
|
3523
|
+
Person.prototype.knownAs;
|
|
3524
|
+
}
|
|
3525
|
+
/**
|
|
3526
|
+
* @record
|
|
3527
|
+
*/
|
|
3528
|
+
function JudicialUserModel() { }
|
|
3529
|
+
if (false) {
|
|
3761
3530
|
/** @type {?} */
|
|
3762
|
-
|
|
3531
|
+
JudicialUserModel.prototype.emailId;
|
|
3763
3532
|
/** @type {?} */
|
|
3764
|
-
|
|
3533
|
+
JudicialUserModel.prototype.fullName;
|
|
3765
3534
|
/** @type {?} */
|
|
3766
|
-
|
|
3535
|
+
JudicialUserModel.prototype.idamId;
|
|
3767
3536
|
/** @type {?} */
|
|
3768
|
-
|
|
3537
|
+
JudicialUserModel.prototype.isJudge;
|
|
3769
3538
|
/** @type {?} */
|
|
3770
|
-
|
|
3539
|
+
JudicialUserModel.prototype.isMagistrate;
|
|
3771
3540
|
/** @type {?} */
|
|
3772
|
-
|
|
3541
|
+
JudicialUserModel.prototype.isPanelMember;
|
|
3773
3542
|
/** @type {?} */
|
|
3774
|
-
|
|
3543
|
+
JudicialUserModel.prototype.knownAs;
|
|
3775
3544
|
/** @type {?} */
|
|
3776
|
-
|
|
3545
|
+
JudicialUserModel.prototype.personalCode;
|
|
3777
3546
|
/** @type {?} */
|
|
3778
|
-
|
|
3547
|
+
JudicialUserModel.prototype.surname;
|
|
3779
3548
|
/** @type {?} */
|
|
3780
|
-
|
|
3781
|
-
/**
|
|
3782
|
-
* @type {?}
|
|
3783
|
-
* @private
|
|
3784
|
-
*/
|
|
3785
|
-
FindLocationComponent.prototype.pServices;
|
|
3786
|
-
/**
|
|
3787
|
-
* @type {?}
|
|
3788
|
-
* @private
|
|
3789
|
-
*/
|
|
3790
|
-
FindLocationComponent.prototype.pDisabled;
|
|
3549
|
+
JudicialUserModel.prototype.title;
|
|
3791
3550
|
}
|
|
3792
|
-
|
|
3793
3551
|
/**
|
|
3794
|
-
* @
|
|
3795
|
-
* Generated from: lib/components/pagination/pagination.component.ts
|
|
3796
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3552
|
+
* @record
|
|
3797
3553
|
*/
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
}
|
|
3803
|
-
|
|
3804
|
-
* @return {?}
|
|
3805
|
-
*/
|
|
3806
|
-
onPrevious() {
|
|
3807
|
-
this.previousPage.emit(null);
|
|
3808
|
-
}
|
|
3809
|
-
/**
|
|
3810
|
-
* @return {?}
|
|
3811
|
-
*/
|
|
3812
|
-
onNext() {
|
|
3813
|
-
this.nextPage.emit(null);
|
|
3814
|
-
}
|
|
3554
|
+
function CaseworkersByService() { }
|
|
3555
|
+
if (false) {
|
|
3556
|
+
/** @type {?} */
|
|
3557
|
+
CaseworkersByService.prototype.service;
|
|
3558
|
+
/** @type {?} */
|
|
3559
|
+
CaseworkersByService.prototype.caseworkers;
|
|
3815
3560
|
}
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
styles: ["span.hmcts-pagination__link:hover{color:revert}"]
|
|
3821
|
-
}] }
|
|
3822
|
-
];
|
|
3823
|
-
/** @nocollapse */
|
|
3824
|
-
PaginationComponent.ctorParameters = () => [];
|
|
3825
|
-
PaginationComponent.propDecorators = {
|
|
3826
|
-
moreItems: [{ type: Input }],
|
|
3827
|
-
firstRecord: [{ type: Input }],
|
|
3828
|
-
previousPage: [{ type: Output }],
|
|
3829
|
-
nextPage: [{ type: Output }]
|
|
3830
|
-
};
|
|
3561
|
+
/**
|
|
3562
|
+
* @record
|
|
3563
|
+
*/
|
|
3564
|
+
function Caseworker() { }
|
|
3831
3565
|
if (false) {
|
|
3832
3566
|
/** @type {?} */
|
|
3833
|
-
|
|
3567
|
+
Caseworker.prototype.idamId;
|
|
3834
3568
|
/** @type {?} */
|
|
3835
|
-
|
|
3569
|
+
Caseworker.prototype.firstName;
|
|
3836
3570
|
/** @type {?} */
|
|
3837
|
-
|
|
3571
|
+
Caseworker.prototype.lastName;
|
|
3838
3572
|
/** @type {?} */
|
|
3839
|
-
|
|
3573
|
+
Caseworker.prototype.email;
|
|
3574
|
+
/** @type {?|undefined} */
|
|
3575
|
+
Caseworker.prototype.knownAs;
|
|
3576
|
+
/** @type {?} */
|
|
3577
|
+
Caseworker.prototype.roleCategory;
|
|
3840
3578
|
}
|
|
3579
|
+
/** @enum {string} */
|
|
3580
|
+
const PersonRole = {
|
|
3581
|
+
JUDICIAL: "Judicial",
|
|
3582
|
+
CASEWORKER: "Legal Ops",
|
|
3583
|
+
ADMIN: "Admin",
|
|
3584
|
+
ALL: "All",
|
|
3585
|
+
};
|
|
3586
|
+
/** @enum {string} */
|
|
3587
|
+
const RoleCategory = {
|
|
3588
|
+
JUDICIAL: "JUDICIAL",
|
|
3589
|
+
CASEWORKER: "LEGAL_OPERATIONS",
|
|
3590
|
+
ADMIN: "ADMIN",
|
|
3591
|
+
ALL: "ALL",
|
|
3592
|
+
};
|
|
3841
3593
|
|
|
3842
3594
|
/**
|
|
3843
3595
|
* @fileoverview added by tsickle
|
|
3844
|
-
* Generated from: lib/
|
|
3596
|
+
* Generated from: lib/models/tcDocument.model.ts
|
|
3845
3597
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3846
3598
|
*/
|
|
3599
|
+
/**
|
|
3600
|
+
* @record
|
|
3601
|
+
*/
|
|
3602
|
+
function TCDocument() { }
|
|
3603
|
+
if (false) {
|
|
3604
|
+
/** @type {?} */
|
|
3605
|
+
TCDocument.prototype.version;
|
|
3606
|
+
/** @type {?} */
|
|
3607
|
+
TCDocument.prototype.content;
|
|
3608
|
+
/** @type {?} */
|
|
3609
|
+
TCDocument.prototype.mimeType;
|
|
3610
|
+
}
|
|
3847
3611
|
|
|
3848
3612
|
/**
|
|
3849
3613
|
* @fileoverview added by tsickle
|
|
3850
|
-
* Generated from: lib/
|
|
3614
|
+
* Generated from: lib/models/user.model.ts
|
|
3851
3615
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3852
3616
|
*/
|
|
3853
|
-
|
|
3854
3617
|
/**
|
|
3855
|
-
* @
|
|
3856
|
-
* Generated from: lib/directives/feature-toggle/feature-toggle.directive.ts
|
|
3857
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3618
|
+
* @record
|
|
3858
3619
|
*/
|
|
3859
|
-
|
|
3860
|
-
/**
|
|
3861
|
-
* @param {?} service
|
|
3862
|
-
* @param {?} viewContainer
|
|
3863
|
-
* @param {?} templateRef
|
|
3864
|
-
*/
|
|
3865
|
-
constructor(service, viewContainer, templateRef) {
|
|
3866
|
-
this.service = service;
|
|
3867
|
-
this.viewContainer = viewContainer;
|
|
3868
|
-
this.templateRef = templateRef;
|
|
3869
|
-
}
|
|
3870
|
-
/**
|
|
3871
|
-
* @param {?} feature
|
|
3872
|
-
* @return {?}
|
|
3873
|
-
*/
|
|
3874
|
-
set xuilibFeatureToggle(feature) {
|
|
3875
|
-
this.feature = feature;
|
|
3876
|
-
this.updateSubscription();
|
|
3877
|
-
}
|
|
3878
|
-
/**
|
|
3879
|
-
* @return {?}
|
|
3880
|
-
*/
|
|
3881
|
-
ngOnDestroy() {
|
|
3882
|
-
if (this.subscription) {
|
|
3883
|
-
this.subscription.unsubscribe();
|
|
3884
|
-
}
|
|
3885
|
-
}
|
|
3886
|
-
/**
|
|
3887
|
-
* @private
|
|
3888
|
-
* @return {?}
|
|
3889
|
-
*/
|
|
3890
|
-
updateSubscription() {
|
|
3891
|
-
this.subscription = this.service.isEnabled(this.feature).subscribe((/**
|
|
3892
|
-
* @param {?} enabled
|
|
3893
|
-
* @return {?}
|
|
3894
|
-
*/
|
|
3895
|
-
enabled => {
|
|
3896
|
-
if (enabled) {
|
|
3897
|
-
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
3898
|
-
}
|
|
3899
|
-
else {
|
|
3900
|
-
this.viewContainer.clear();
|
|
3901
|
-
}
|
|
3902
|
-
}));
|
|
3903
|
-
}
|
|
3904
|
-
}
|
|
3905
|
-
FeatureToggleDirective.decorators = [
|
|
3906
|
-
{ type: Directive, args: [{
|
|
3907
|
-
selector: '[xuilibFeatureToggle]'
|
|
3908
|
-
},] }
|
|
3909
|
-
];
|
|
3910
|
-
/** @nocollapse */
|
|
3911
|
-
FeatureToggleDirective.ctorParameters = () => [
|
|
3912
|
-
{ type: FeatureToggleService },
|
|
3913
|
-
{ type: ViewContainerRef },
|
|
3914
|
-
{ type: TemplateRef }
|
|
3915
|
-
];
|
|
3916
|
-
FeatureToggleDirective.propDecorators = {
|
|
3917
|
-
xuilibFeatureToggle: [{ type: Input }]
|
|
3918
|
-
};
|
|
3620
|
+
function User() { }
|
|
3919
3621
|
if (false) {
|
|
3920
|
-
/**
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
/**
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
*/
|
|
3934
|
-
FeatureToggleDirective.prototype.service;
|
|
3935
|
-
/**
|
|
3936
|
-
* @type {?}
|
|
3937
|
-
* @private
|
|
3938
|
-
*/
|
|
3939
|
-
FeatureToggleDirective.prototype.viewContainer;
|
|
3940
|
-
/**
|
|
3941
|
-
* @type {?}
|
|
3942
|
-
* @private
|
|
3943
|
-
*/
|
|
3944
|
-
FeatureToggleDirective.prototype.templateRef;
|
|
3622
|
+
/** @type {?|undefined} */
|
|
3623
|
+
User.prototype.routerLink;
|
|
3624
|
+
/** @type {?|undefined} */
|
|
3625
|
+
User.prototype.routerLinkTitle;
|
|
3626
|
+
/** @type {?|undefined} */
|
|
3627
|
+
User.prototype.fullName;
|
|
3628
|
+
/** @type {?|undefined} */
|
|
3629
|
+
User.prototype.email;
|
|
3630
|
+
/** @type {?|undefined} */
|
|
3631
|
+
User.prototype.status;
|
|
3632
|
+
/** @type {?|undefined} */
|
|
3633
|
+
User.prototype.resendInvite;
|
|
3634
|
+
/* Skipping unhandled member: [key: string]: any;*/
|
|
3945
3635
|
}
|
|
3946
3636
|
|
|
3947
3637
|
/**
|
|
3948
3638
|
* @fileoverview added by tsickle
|
|
3949
|
-
* Generated from: lib/
|
|
3639
|
+
* Generated from: lib/models/filter.model.ts
|
|
3950
3640
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3951
3641
|
*/
|
|
3952
3642
|
/**
|
|
3953
|
-
* @
|
|
3643
|
+
* @record
|
|
3954
3644
|
*/
|
|
3955
|
-
|
|
3956
|
-
constructor() {
|
|
3957
|
-
this.$implicit = null;
|
|
3958
|
-
this.xuilibLet = null;
|
|
3959
|
-
}
|
|
3960
|
-
}
|
|
3645
|
+
function FilterConfig() { }
|
|
3961
3646
|
if (false) {
|
|
3962
3647
|
/** @type {?} */
|
|
3963
|
-
|
|
3648
|
+
FilterConfig.prototype.id;
|
|
3964
3649
|
/** @type {?} */
|
|
3965
|
-
|
|
3966
|
-
}
|
|
3967
|
-
/**
|
|
3968
|
-
* @template T
|
|
3969
|
-
*/
|
|
3970
|
-
class LetDirective {
|
|
3971
|
-
/**
|
|
3972
|
-
* @param {?} viewContainer
|
|
3973
|
-
* @param {?} templateRef
|
|
3974
|
-
*/
|
|
3975
|
-
constructor(viewContainer, templateRef) {
|
|
3976
|
-
this.viewContainer = viewContainer;
|
|
3977
|
-
this.context = new LetContext();
|
|
3978
|
-
this.viewContainer.createEmbeddedView(templateRef, this.context);
|
|
3979
|
-
}
|
|
3980
|
-
/**
|
|
3981
|
-
* @param {?} condition
|
|
3982
|
-
* @return {?}
|
|
3983
|
-
*/
|
|
3984
|
-
set xuilibLet(condition) {
|
|
3985
|
-
this.context.$implicit = this.context.xuilibLet = condition;
|
|
3986
|
-
}
|
|
3987
|
-
}
|
|
3988
|
-
LetDirective.decorators = [
|
|
3989
|
-
{ type: Directive, args: [{
|
|
3990
|
-
selector: '[xuilibLet]'
|
|
3991
|
-
},] }
|
|
3992
|
-
];
|
|
3993
|
-
/** @nocollapse */
|
|
3994
|
-
LetDirective.ctorParameters = () => [
|
|
3995
|
-
{ type: ViewContainerRef },
|
|
3996
|
-
{ type: TemplateRef }
|
|
3997
|
-
];
|
|
3998
|
-
LetDirective.propDecorators = {
|
|
3999
|
-
xuilibLet: [{ type: Input }]
|
|
4000
|
-
};
|
|
4001
|
-
if (false) {
|
|
4002
|
-
/**
|
|
4003
|
-
* @type {?}
|
|
4004
|
-
* @private
|
|
4005
|
-
*/
|
|
4006
|
-
LetDirective.prototype.context;
|
|
4007
|
-
/**
|
|
4008
|
-
* @type {?}
|
|
4009
|
-
* @private
|
|
4010
|
-
*/
|
|
4011
|
-
LetDirective.prototype.viewContainer;
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
|
-
/**
|
|
4015
|
-
* @fileoverview added by tsickle
|
|
4016
|
-
* Generated from: lib/directives/public-api.ts
|
|
4017
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4018
|
-
*/
|
|
4019
|
-
|
|
4020
|
-
/**
|
|
4021
|
-
* @fileoverview added by tsickle
|
|
4022
|
-
* Generated from: lib/directives/index.ts
|
|
4023
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4024
|
-
*/
|
|
4025
|
-
|
|
4026
|
-
/**
|
|
4027
|
-
* @fileoverview added by tsickle
|
|
4028
|
-
* Generated from: lib/components/exui-main-wrapper/exui-page-wrapper.component.ts
|
|
4029
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4030
|
-
*/
|
|
4031
|
-
/**
|
|
4032
|
-
* Main Page Wrapper
|
|
4033
|
-
* Responsible for:
|
|
4034
|
-
* Wrapping content within the gov-uk html elements bellow
|
|
4035
|
-
* \@prop showBackLink - switch for back link
|
|
4036
|
-
* \@prop appHeaderTitle = appHeaderTitle
|
|
4037
|
-
* \@prop appFunctionalTitle = appFunctionalTitle
|
|
4038
|
-
* \@prop summaryErrors list of errors
|
|
4039
|
-
* \@prop back link, appHeaderTitle (appHeaderTitle), summaryErrors (array of errors)
|
|
4040
|
-
*/
|
|
4041
|
-
class ExuiPageWrapperComponent {
|
|
4042
|
-
constructor() { }
|
|
4043
|
-
}
|
|
4044
|
-
ExuiPageWrapperComponent.decorators = [
|
|
4045
|
-
{ type: Component, args: [{
|
|
4046
|
-
selector: 'exui-page-wrapper',
|
|
4047
|
-
template: "<div class=\"page\">\n <a *ngIf=\"backLink\" [routerLink]=\"backLink\" class=\"govuk-back-link\">Back</a>\n <div class=\"govuk-width-container\">\n <main id=\"content\" role=\"main\" class=\"govuk-main-wrapper\">\n <div class=\"govuk-grid-row\">\n <h1 *ngIf=\"title\" class=\"govuk-heading-xl\">\n <span *ngIf=\"fnTitle\" class=\"govuk-caption-xl\">{{fnTitle}}</span>\n {{title}}\n </h1>\n <ng-content>\n\n </ng-content>\n </div>\n </main>\n </div>\n</div>\n",
|
|
4048
|
-
styles: [".page{width:100%}"]
|
|
4049
|
-
}] }
|
|
4050
|
-
];
|
|
4051
|
-
/** @nocollapse */
|
|
4052
|
-
ExuiPageWrapperComponent.ctorParameters = () => [];
|
|
4053
|
-
ExuiPageWrapperComponent.propDecorators = {
|
|
4054
|
-
backLink: [{ type: Input }],
|
|
4055
|
-
title: [{ type: Input }],
|
|
4056
|
-
fnTitle: [{ type: Input }]
|
|
4057
|
-
};
|
|
4058
|
-
if (false) {
|
|
3650
|
+
FilterConfig.prototype.fields;
|
|
4059
3651
|
/** @type {?} */
|
|
4060
|
-
|
|
3652
|
+
FilterConfig.prototype.persistence;
|
|
4061
3653
|
/** @type {?} */
|
|
4062
|
-
|
|
3654
|
+
FilterConfig.prototype.applyButtonText;
|
|
4063
3655
|
/** @type {?} */
|
|
4064
|
-
|
|
3656
|
+
FilterConfig.prototype.cancelButtonText;
|
|
3657
|
+
/** @type {?|undefined} */
|
|
3658
|
+
FilterConfig.prototype.cancelSetting;
|
|
3659
|
+
/** @type {?|undefined} */
|
|
3660
|
+
FilterConfig.prototype.enableDisabledButton;
|
|
3661
|
+
/** @type {?|undefined} */
|
|
3662
|
+
FilterConfig.prototype.showCancelFilterButton;
|
|
4065
3663
|
}
|
|
4066
|
-
|
|
4067
|
-
/**
|
|
4068
|
-
* @fileoverview added by tsickle
|
|
4069
|
-
* Generated from: lib/models/case-share.model.ts
|
|
4070
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4071
|
-
*/
|
|
4072
3664
|
/**
|
|
4073
3665
|
* @record
|
|
4074
3666
|
*/
|
|
4075
|
-
function
|
|
3667
|
+
function FilterFieldConfig() { }
|
|
4076
3668
|
if (false) {
|
|
4077
3669
|
/** @type {?} */
|
|
4078
|
-
|
|
3670
|
+
FilterFieldConfig.prototype.name;
|
|
4079
3671
|
/** @type {?} */
|
|
4080
|
-
|
|
3672
|
+
FilterFieldConfig.prototype.options;
|
|
3673
|
+
/** @type {?} */
|
|
3674
|
+
FilterFieldConfig.prototype.minSelected;
|
|
3675
|
+
/** @type {?} */
|
|
3676
|
+
FilterFieldConfig.prototype.maxSelected;
|
|
4081
3677
|
/** @type {?|undefined} */
|
|
4082
|
-
|
|
3678
|
+
FilterFieldConfig.prototype.minSelectedError;
|
|
4083
3679
|
/** @type {?|undefined} */
|
|
4084
|
-
|
|
3680
|
+
FilterFieldConfig.prototype.maxSelectedError;
|
|
4085
3681
|
/** @type {?|undefined} */
|
|
4086
|
-
|
|
3682
|
+
FilterFieldConfig.prototype.displayMaxSelectedError;
|
|
4087
3683
|
/** @type {?|undefined} */
|
|
4088
|
-
|
|
3684
|
+
FilterFieldConfig.prototype.displayMinSelectedError;
|
|
4089
3685
|
/** @type {?|undefined} */
|
|
4090
|
-
|
|
4091
|
-
}
|
|
4092
|
-
|
|
4093
|
-
/**
|
|
4094
|
-
* @fileoverview added by tsickle
|
|
4095
|
-
* Generated from: lib/models/contact-details.model.ts
|
|
4096
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4097
|
-
*/
|
|
4098
|
-
/** @enum {string} */
|
|
4099
|
-
const BadgeColour = {
|
|
4100
|
-
BADGE_RED: "hmcts-badge--red",
|
|
4101
|
-
BADGE_BLUE: "hmcts-badge--blue",
|
|
4102
|
-
BADGE_GREEN: "hmcts-badge--green",
|
|
4103
|
-
};
|
|
4104
|
-
/**
|
|
4105
|
-
* @record
|
|
4106
|
-
*/
|
|
4107
|
-
function ContactDetailsDataModel() { }
|
|
4108
|
-
if (false) {
|
|
3686
|
+
FilterFieldConfig.prototype.lineBreakBefore;
|
|
4109
3687
|
/** @type {?|undefined} */
|
|
4110
|
-
|
|
3688
|
+
FilterFieldConfig.prototype.showCondition;
|
|
4111
3689
|
/** @type {?|undefined} */
|
|
4112
|
-
|
|
3690
|
+
FilterFieldConfig.prototype.enableCondition;
|
|
4113
3691
|
/** @type {?|undefined} */
|
|
4114
|
-
|
|
3692
|
+
FilterFieldConfig.prototype.enableAddLocationButton;
|
|
4115
3693
|
/** @type {?|undefined} */
|
|
4116
|
-
|
|
3694
|
+
FilterFieldConfig.prototype.changeResetFields;
|
|
4117
3695
|
/** @type {?|undefined} */
|
|
4118
|
-
|
|
3696
|
+
FilterFieldConfig.prototype.findPersonField;
|
|
4119
3697
|
/** @type {?|undefined} */
|
|
4120
|
-
|
|
3698
|
+
FilterFieldConfig.prototype.findLocationField;
|
|
3699
|
+
/** @type {?|undefined} */
|
|
3700
|
+
FilterFieldConfig.prototype.domainField;
|
|
3701
|
+
/** @type {?|undefined} */
|
|
3702
|
+
FilterFieldConfig.prototype.disable;
|
|
3703
|
+
/** @type {?|undefined} */
|
|
3704
|
+
FilterFieldConfig.prototype.disabledText;
|
|
3705
|
+
/** @type {?} */
|
|
3706
|
+
FilterFieldConfig.prototype.type;
|
|
3707
|
+
/** @type {?|undefined} */
|
|
3708
|
+
FilterFieldConfig.prototype.domain;
|
|
3709
|
+
/** @type {?|undefined} */
|
|
3710
|
+
FilterFieldConfig.prototype.title;
|
|
3711
|
+
/** @type {?|undefined} */
|
|
3712
|
+
FilterFieldConfig.prototype.subTitle;
|
|
3713
|
+
/** @type {?|undefined} */
|
|
3714
|
+
FilterFieldConfig.prototype.locationTitle;
|
|
3715
|
+
/** @type {?|undefined} */
|
|
3716
|
+
FilterFieldConfig.prototype.radioSelectionChange;
|
|
3717
|
+
/** @type {?|undefined} */
|
|
3718
|
+
FilterFieldConfig.prototype.bookingCheckType;
|
|
4121
3719
|
}
|
|
4122
|
-
|
|
4123
3720
|
/**
|
|
4124
|
-
* @
|
|
4125
|
-
* Generated from: lib/models/feature-user.ts
|
|
4126
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3721
|
+
* @record
|
|
4127
3722
|
*/
|
|
4128
|
-
|
|
4129
|
-
}
|
|
3723
|
+
function FilterSetting() { }
|
|
4130
3724
|
if (false) {
|
|
4131
3725
|
/** @type {?} */
|
|
4132
|
-
|
|
3726
|
+
FilterSetting.prototype.id;
|
|
3727
|
+
/** @type {?|undefined} */
|
|
3728
|
+
FilterSetting.prototype.reset;
|
|
3729
|
+
/** @type {?} */
|
|
3730
|
+
FilterSetting.prototype.fields;
|
|
4133
3731
|
}
|
|
4134
|
-
class
|
|
3732
|
+
class RadioFilterFieldConfig {
|
|
4135
3733
|
}
|
|
4136
3734
|
if (false) {
|
|
4137
3735
|
/** @type {?} */
|
|
4138
|
-
|
|
3736
|
+
RadioFilterFieldConfig.prototype.name;
|
|
4139
3737
|
/** @type {?} */
|
|
4140
|
-
|
|
3738
|
+
RadioFilterFieldConfig.prototype.options;
|
|
3739
|
+
/** @type {?} */
|
|
3740
|
+
RadioFilterFieldConfig.prototype.minSelected;
|
|
3741
|
+
/** @type {?} */
|
|
3742
|
+
RadioFilterFieldConfig.prototype.maxSelected;
|
|
3743
|
+
/** @type {?} */
|
|
3744
|
+
RadioFilterFieldConfig.prototype.type;
|
|
4141
3745
|
}
|
|
4142
|
-
|
|
4143
|
-
/**
|
|
4144
|
-
* @fileoverview added by tsickle
|
|
4145
|
-
* Generated from: lib/models/idle-config.model.ts
|
|
4146
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4147
|
-
*/
|
|
4148
3746
|
/**
|
|
4149
3747
|
* @record
|
|
4150
3748
|
*/
|
|
4151
|
-
function
|
|
3749
|
+
function FilterError() { }
|
|
4152
3750
|
if (false) {
|
|
4153
3751
|
/** @type {?} */
|
|
4154
|
-
|
|
4155
|
-
/** @type {?} */
|
|
4156
|
-
IdleConfigModel.prototype.idleMilliseconds;
|
|
3752
|
+
FilterError.prototype.name;
|
|
4157
3753
|
/** @type {?} */
|
|
4158
|
-
|
|
4159
|
-
/** @type {?|undefined} */
|
|
4160
|
-
IdleConfigModel.prototype.idleServiceName;
|
|
3754
|
+
FilterError.prototype.error;
|
|
4161
3755
|
}
|
|
4162
3756
|
|
|
4163
3757
|
/**
|
|
4164
3758
|
* @fileoverview added by tsickle
|
|
4165
|
-
* Generated from: lib/models/
|
|
3759
|
+
* Generated from: lib/models/public_api.ts
|
|
3760
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3761
|
+
*/
|
|
3762
|
+
|
|
3763
|
+
/**
|
|
3764
|
+
* @fileoverview added by tsickle
|
|
3765
|
+
* Generated from: lib/models/search-options.model.ts
|
|
4166
3766
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4167
3767
|
*/
|
|
4168
3768
|
/**
|
|
4169
3769
|
* @record
|
|
4170
3770
|
*/
|
|
4171
|
-
function
|
|
3771
|
+
function SearchOptions() { }
|
|
4172
3772
|
if (false) {
|
|
4173
3773
|
/** @type {?} */
|
|
4174
|
-
|
|
3774
|
+
SearchOptions.prototype.searchTerm;
|
|
4175
3775
|
/** @type {?} */
|
|
4176
|
-
|
|
3776
|
+
SearchOptions.prototype.userRole;
|
|
4177
3777
|
/** @type {?} */
|
|
4178
|
-
|
|
3778
|
+
SearchOptions.prototype.services;
|
|
3779
|
+
/** @type {?|undefined} */
|
|
3780
|
+
SearchOptions.prototype.userIncluded;
|
|
3781
|
+
/** @type {?|undefined} */
|
|
3782
|
+
SearchOptions.prototype.assignedUser;
|
|
4179
3783
|
}
|
|
4180
3784
|
|
|
4181
3785
|
/**
|
|
4182
3786
|
* @fileoverview added by tsickle
|
|
4183
|
-
* Generated from: lib/models/
|
|
3787
|
+
* Generated from: lib/models/timeout-notification.model.ts
|
|
4184
3788
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4185
3789
|
*/
|
|
4186
3790
|
/**
|
|
4187
3791
|
* @record
|
|
4188
3792
|
*/
|
|
4189
|
-
function
|
|
3793
|
+
function TimeoutNotificationConfig() { }
|
|
4190
3794
|
if (false) {
|
|
4191
3795
|
/** @type {?} */
|
|
4192
|
-
|
|
4193
|
-
/** @type {?} */
|
|
4194
|
-
Person.prototype.name;
|
|
4195
|
-
/** @type {?|undefined} */
|
|
4196
|
-
Person.prototype.email;
|
|
3796
|
+
TimeoutNotificationConfig.prototype.idleModalDisplayTime;
|
|
4197
3797
|
/** @type {?} */
|
|
4198
|
-
|
|
3798
|
+
TimeoutNotificationConfig.prototype.totalIdleTime;
|
|
4199
3799
|
/** @type {?|undefined} */
|
|
4200
|
-
|
|
3800
|
+
TimeoutNotificationConfig.prototype.idleServiceName;
|
|
4201
3801
|
}
|
|
3802
|
+
|
|
3803
|
+
/**
|
|
3804
|
+
* @fileoverview added by tsickle
|
|
3805
|
+
* Generated from: lib/models/user-details.model.ts
|
|
3806
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3807
|
+
*/
|
|
4202
3808
|
/**
|
|
4203
3809
|
* @record
|
|
4204
3810
|
*/
|
|
4205
|
-
function
|
|
3811
|
+
function UserDetails() { }
|
|
4206
3812
|
if (false) {
|
|
3813
|
+
/** @type {?|undefined} */
|
|
3814
|
+
UserDetails.prototype.caseRoles;
|
|
4207
3815
|
/** @type {?} */
|
|
4208
|
-
|
|
4209
|
-
/** @type {?} */
|
|
4210
|
-
JudicialUserModel.prototype.fullName;
|
|
4211
|
-
/** @type {?} */
|
|
4212
|
-
JudicialUserModel.prototype.idamId;
|
|
4213
|
-
/** @type {?} */
|
|
4214
|
-
JudicialUserModel.prototype.isJudge;
|
|
4215
|
-
/** @type {?} */
|
|
4216
|
-
JudicialUserModel.prototype.isMagistrate;
|
|
4217
|
-
/** @type {?} */
|
|
4218
|
-
JudicialUserModel.prototype.isPanelMember;
|
|
4219
|
-
/** @type {?} */
|
|
4220
|
-
JudicialUserModel.prototype.knownAs;
|
|
3816
|
+
UserDetails.prototype.email;
|
|
4221
3817
|
/** @type {?} */
|
|
4222
|
-
|
|
3818
|
+
UserDetails.prototype.firstName;
|
|
4223
3819
|
/** @type {?} */
|
|
4224
|
-
|
|
3820
|
+
UserDetails.prototype.idamId;
|
|
4225
3821
|
/** @type {?} */
|
|
4226
|
-
|
|
3822
|
+
UserDetails.prototype.lastName;
|
|
4227
3823
|
}
|
|
3824
|
+
|
|
4228
3825
|
/**
|
|
4229
|
-
* @
|
|
3826
|
+
* @fileoverview added by tsickle
|
|
3827
|
+
* Generated from: lib/models/index.ts
|
|
3828
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4230
3829
|
*/
|
|
4231
|
-
|
|
3830
|
+
|
|
3831
|
+
/**
|
|
3832
|
+
* @fileoverview added by tsickle
|
|
3833
|
+
* Generated from: lib/services/locations/location.service.ts
|
|
3834
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3835
|
+
*/
|
|
3836
|
+
class LocationService {
|
|
3837
|
+
/**
|
|
3838
|
+
* @param {?} http
|
|
3839
|
+
*/
|
|
3840
|
+
constructor(http) {
|
|
3841
|
+
this.http = http;
|
|
3842
|
+
}
|
|
3843
|
+
/**
|
|
3844
|
+
* \@description getAllLocations from service Ids/location type/search term
|
|
3845
|
+
* @param {?} serviceIds
|
|
3846
|
+
* @param {?} locationType
|
|
3847
|
+
* @param {?} searchTerm
|
|
3848
|
+
* @param {?} userLocations
|
|
3849
|
+
* @param {?} bookingLocations
|
|
3850
|
+
* @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
|
|
3851
|
+
*/
|
|
3852
|
+
getAllLocations(serviceIds, locationType, searchTerm, userLocations, bookingLocations) {
|
|
3853
|
+
return this.http.post(`api/locations/getLocations`, { serviceIds, locationType, searchTerm, userLocations, bookingLocations });
|
|
3854
|
+
}
|
|
3855
|
+
/**
|
|
3856
|
+
* \@description searchLocations from service Ids/location type/search term
|
|
3857
|
+
* @param {?} serviceIds
|
|
3858
|
+
* @param {?} locationType
|
|
3859
|
+
* @param {?} searchTerm
|
|
3860
|
+
* @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
|
|
3861
|
+
*/
|
|
3862
|
+
searchLocations(serviceIds, locationType, searchTerm) {
|
|
3863
|
+
return this.http.get(`api/prd/location/getLocations?serviceIds=${serviceIds}&locationType=${locationType}&searchTerm=${searchTerm}`);
|
|
3864
|
+
}
|
|
3865
|
+
}
|
|
3866
|
+
LocationService.decorators = [
|
|
3867
|
+
{ type: Injectable, args: [{
|
|
3868
|
+
providedIn: 'root'
|
|
3869
|
+
},] }
|
|
3870
|
+
];
|
|
3871
|
+
/** @nocollapse */
|
|
3872
|
+
LocationService.ctorParameters = () => [
|
|
3873
|
+
{ type: HttpClient }
|
|
3874
|
+
];
|
|
3875
|
+
/** @nocollapse */ LocationService.ngInjectableDef = ɵɵdefineInjectable({ factory: function LocationService_Factory() { return new LocationService(ɵɵinject(HttpClient)); }, token: LocationService, providedIn: "root" });
|
|
4232
3876
|
if (false) {
|
|
3877
|
+
/**
|
|
3878
|
+
* @type {?}
|
|
3879
|
+
* @private
|
|
3880
|
+
*/
|
|
3881
|
+
LocationService.prototype.http;
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3884
|
+
/**
|
|
3885
|
+
* @fileoverview added by tsickle
|
|
3886
|
+
* Generated from: lib/services/session-storage/session-storage.service.ts
|
|
3887
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3888
|
+
*/
|
|
3889
|
+
class SessionStorageService {
|
|
3890
|
+
/**
|
|
3891
|
+
* Get an item from the session storage.
|
|
3892
|
+
* If remove is true, the item will be removed once read
|
|
3893
|
+
* @param {?} key
|
|
3894
|
+
* @param {?=} removeAfterRead removed the key once it has been read
|
|
3895
|
+
* @return {?}
|
|
3896
|
+
*/
|
|
3897
|
+
getItem(key, removeAfterRead = false) {
|
|
3898
|
+
/** @type {?} */
|
|
3899
|
+
const item = sessionStorage.getItem(key);
|
|
3900
|
+
if (removeAfterRead) {
|
|
3901
|
+
this.removeItem(key);
|
|
3902
|
+
}
|
|
3903
|
+
return item;
|
|
3904
|
+
}
|
|
3905
|
+
/**
|
|
3906
|
+
* Set an item in the session storage.
|
|
3907
|
+
* @param {?} key
|
|
3908
|
+
* @param {?} value
|
|
3909
|
+
* @return {?}
|
|
3910
|
+
*/
|
|
3911
|
+
setItem(key, value) {
|
|
3912
|
+
sessionStorage.setItem(key, value);
|
|
3913
|
+
}
|
|
3914
|
+
/**
|
|
3915
|
+
* Remove an item in the session storage.
|
|
3916
|
+
* @param {?} key
|
|
3917
|
+
* @return {?}
|
|
3918
|
+
*/
|
|
3919
|
+
removeItem(key) {
|
|
3920
|
+
sessionStorage.removeItem(key);
|
|
3921
|
+
}
|
|
3922
|
+
/**
|
|
3923
|
+
* Clear all the items held in session storage.
|
|
3924
|
+
* @return {?}
|
|
3925
|
+
*/
|
|
3926
|
+
clear() {
|
|
3927
|
+
sessionStorage.clear();
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
SessionStorageService.decorators = [
|
|
3931
|
+
{ type: Injectable, args: [{
|
|
3932
|
+
providedIn: 'root'
|
|
3933
|
+
},] }
|
|
3934
|
+
];
|
|
3935
|
+
/** @nocollapse */ SessionStorageService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
|
|
3936
|
+
|
|
3937
|
+
/**
|
|
3938
|
+
* @fileoverview added by tsickle
|
|
3939
|
+
* Generated from: lib/components/search-location/search-location.component.ts
|
|
3940
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3941
|
+
*/
|
|
3942
|
+
class SearchLocationComponent {
|
|
3943
|
+
/**
|
|
3944
|
+
* @param {?} locationService
|
|
3945
|
+
* @param {?} sessionStorageService
|
|
3946
|
+
* @param {?} fb
|
|
3947
|
+
* @param {?} cd
|
|
3948
|
+
*/
|
|
3949
|
+
constructor(locationService, sessionStorageService, fb, cd) {
|
|
3950
|
+
this.locationService = locationService;
|
|
3951
|
+
this.sessionStorageService = sessionStorageService;
|
|
3952
|
+
this.fb = fb;
|
|
3953
|
+
this.cd = cd;
|
|
3954
|
+
this.disabled = null;
|
|
3955
|
+
this.singleMode = false;
|
|
3956
|
+
this.locationType = '';
|
|
3957
|
+
this.serviceIds = '';
|
|
3958
|
+
this.submitted = true;
|
|
3959
|
+
this.delay = 500;
|
|
3960
|
+
this.showAutocomplete = false;
|
|
3961
|
+
this.locations = [];
|
|
3962
|
+
this.locationSelected = new EventEmitter();
|
|
3963
|
+
this.locationInputChanged = new EventEmitter();
|
|
3964
|
+
this.searchLocationChanged = new EventEmitter();
|
|
3965
|
+
this.minSearchCharacters = 3;
|
|
3966
|
+
this.term = '';
|
|
3967
|
+
this.pSelectedLocations = [];
|
|
3968
|
+
this.pReset = true;
|
|
3969
|
+
this.form = this.fb.group({
|
|
3970
|
+
searchTerm: ['']
|
|
3971
|
+
});
|
|
3972
|
+
}
|
|
3973
|
+
/**
|
|
3974
|
+
* @return {?}
|
|
3975
|
+
*/
|
|
3976
|
+
get reset() {
|
|
3977
|
+
return this.pReset;
|
|
3978
|
+
}
|
|
3979
|
+
/**
|
|
3980
|
+
* @param {?} value
|
|
3981
|
+
* @return {?}
|
|
3982
|
+
*/
|
|
3983
|
+
set reset(value) {
|
|
3984
|
+
this.pReset = value;
|
|
3985
|
+
this.resetSearchTerm();
|
|
3986
|
+
}
|
|
3987
|
+
/**
|
|
3988
|
+
* @return {?}
|
|
3989
|
+
*/
|
|
3990
|
+
get selectedLocations() {
|
|
3991
|
+
return this.pSelectedLocations;
|
|
3992
|
+
}
|
|
3993
|
+
/**
|
|
3994
|
+
* @param {?} value
|
|
3995
|
+
* @return {?}
|
|
3996
|
+
*/
|
|
3997
|
+
set selectedLocations(value) {
|
|
3998
|
+
this.pSelectedLocations = value;
|
|
3999
|
+
}
|
|
4000
|
+
/**
|
|
4001
|
+
* @return {?}
|
|
4002
|
+
*/
|
|
4003
|
+
ngOnInit() {
|
|
4004
|
+
if (this.singleMode && this.selectedLocations.length > 0) {
|
|
4005
|
+
/** @type {?} */
|
|
4006
|
+
const location = this.selectedLocations[0];
|
|
4007
|
+
this.form.controls.searchTerm.patchValue(location.site_name, { emitEvent: false, onlySelf: true });
|
|
4008
|
+
}
|
|
4009
|
+
this.search();
|
|
4010
|
+
}
|
|
4011
|
+
/**
|
|
4012
|
+
* @param {?} term
|
|
4013
|
+
* @return {?}
|
|
4014
|
+
*/
|
|
4015
|
+
filter(term) {
|
|
4016
|
+
this.getLocations(term).pipe(map((/**
|
|
4017
|
+
* @param {?} locations
|
|
4018
|
+
* @return {?}
|
|
4019
|
+
*/
|
|
4020
|
+
(locations) => this.removeSelectedLocations(locations))));
|
|
4021
|
+
}
|
|
4022
|
+
/**
|
|
4023
|
+
* @param {?} location
|
|
4024
|
+
* @return {?}
|
|
4025
|
+
*/
|
|
4026
|
+
onSelectionChange(location) {
|
|
4027
|
+
this.form.controls.searchTerm.patchValue(location.site_name, { emitEvent: false, onlySelf: true });
|
|
4028
|
+
this.locationSelected.emit(location);
|
|
4029
|
+
}
|
|
4030
|
+
/**
|
|
4031
|
+
* @return {?}
|
|
4032
|
+
*/
|
|
4033
|
+
search() {
|
|
4034
|
+
this.form.controls.searchTerm.valueChanges
|
|
4035
|
+
.pipe(tap((/**
|
|
4036
|
+
* @param {?} term
|
|
4037
|
+
* @return {?}
|
|
4038
|
+
*/
|
|
4039
|
+
(term) => this.locationInputChanged.next(term))), tap((/**
|
|
4040
|
+
* @return {?}
|
|
4041
|
+
*/
|
|
4042
|
+
() => this.locations = [])), tap((/**
|
|
4043
|
+
* @param {?} term
|
|
4044
|
+
* @return {?}
|
|
4045
|
+
*/
|
|
4046
|
+
(term) => this.term = term)), filter((/**
|
|
4047
|
+
* @param {?} term
|
|
4048
|
+
* @return {?}
|
|
4049
|
+
*/
|
|
4050
|
+
term => !!term && term.length >= this.minSearchCharacters)), debounceTime(this.delay), mergeMap((/**
|
|
4051
|
+
* @param {?} value
|
|
4052
|
+
* @return {?}
|
|
4053
|
+
*/
|
|
4054
|
+
value => this.getLocations(value))), map((/**
|
|
4055
|
+
* @param {?} locations
|
|
4056
|
+
* @return {?}
|
|
4057
|
+
*/
|
|
4058
|
+
(locations) => this.removeSelectedLocations(locations)))).subscribe((/**
|
|
4059
|
+
* @param {?} locations
|
|
4060
|
+
* @return {?}
|
|
4061
|
+
*/
|
|
4062
|
+
locations => {
|
|
4063
|
+
this.locations = locations;
|
|
4064
|
+
this.cd.markForCheck();
|
|
4065
|
+
if (locations.length === 1 && this.term === locations[0].site_name && !this.singleMode) {
|
|
4066
|
+
this.locationSelected.emit(locations[0]);
|
|
4067
|
+
this.showAutocomplete = false;
|
|
4068
|
+
return;
|
|
4069
|
+
}
|
|
4070
|
+
this.showAutocomplete = true;
|
|
4071
|
+
}));
|
|
4072
|
+
}
|
|
4073
|
+
/**
|
|
4074
|
+
* @return {?}
|
|
4075
|
+
*/
|
|
4076
|
+
onInput() {
|
|
4077
|
+
this.searchLocationChanged.emit();
|
|
4078
|
+
}
|
|
4079
|
+
/**
|
|
4080
|
+
* @param {?} term
|
|
4081
|
+
* @return {?}
|
|
4082
|
+
*/
|
|
4083
|
+
getLocations(term) {
|
|
4084
|
+
/** @type {?} */
|
|
4085
|
+
let userLocations;
|
|
4086
|
+
/** @type {?} */
|
|
4087
|
+
let bookingLocations;
|
|
4088
|
+
// Booking type info - can create more
|
|
4089
|
+
// NO_CHECK - All work - Do not filter out locations - Default assumption
|
|
4090
|
+
// ONLY_BOOKINGS - My work - Try to only show base locations/booking locations
|
|
4091
|
+
// POSSIBLE_BOOKINGS - Create booking screen - Show only potential bookings
|
|
4092
|
+
if (this.bookingCheck === BookingCheckType.BOOKINGS_AND_BASE) {
|
|
4093
|
+
userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
|
|
4094
|
+
bookingLocations = JSON.parse(this.sessionStorageService.getItem('bookingLocations'));
|
|
4095
|
+
}
|
|
4096
|
+
else if (this.bookingCheck === BookingCheckType.POSSIBLE_BOOKINGS) {
|
|
4097
|
+
userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
|
|
4098
|
+
this.serviceIds = JSON.parse(this.sessionStorageService.getItem('bookableServices'));
|
|
4099
|
+
}
|
|
4100
|
+
return this.locationService.getAllLocations(this.serviceIds, this.locationType, term, userLocations, bookingLocations);
|
|
4101
|
+
}
|
|
4102
|
+
/**
|
|
4103
|
+
* @return {?}
|
|
4104
|
+
*/
|
|
4105
|
+
resetSearchTerm() {
|
|
4106
|
+
this.form.controls.searchTerm.patchValue('', { emitEvent: false, onlySelf: true });
|
|
4107
|
+
}
|
|
4108
|
+
/**
|
|
4109
|
+
* @private
|
|
4110
|
+
* @param {?} locations
|
|
4111
|
+
* @return {?}
|
|
4112
|
+
*/
|
|
4113
|
+
removeSelectedLocations(locations) {
|
|
4114
|
+
if (this.singleMode) {
|
|
4115
|
+
return locations;
|
|
4116
|
+
}
|
|
4117
|
+
return locations.filter((/**
|
|
4118
|
+
* @param {?} location
|
|
4119
|
+
* @return {?}
|
|
4120
|
+
*/
|
|
4121
|
+
location => !this.selectedLocations.map((/**
|
|
4122
|
+
* @param {?} selectedLocation
|
|
4123
|
+
* @return {?}
|
|
4124
|
+
*/
|
|
4125
|
+
selectedLocation => selectedLocation.epimms_id)).includes(location.epimms_id) && location.site_name));
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
SearchLocationComponent.decorators = [
|
|
4129
|
+
{ type: Component, args: [{
|
|
4130
|
+
selector: 'exui-search-location',
|
|
4131
|
+
template: "<div class=\"auto-complete-container\">\n <input\n id=\"inputLocationSearch\"\n (input)=\"onInput()\"\n [formControl]=\"form.controls.searchTerm\"\n [matAutocomplete]=\"autoSearchLocation\"\n class=\"govuk-input\"\n [attr.disabled]=\"disabled\">\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchLocation=\"matAutocomplete\">\n <mat-option *ngFor=\"let location of locations\"\n (onSelectionChange)=\"onSelectionChange(location)\">\n {{ location.site_name }}\n </mat-option>\n <mat-option *ngIf=\"!locations.length && showAutocomplete && term && term.length >= this.minSearchCharacters\">No results found</mat-option>\n </mat-autocomplete>\n</div>\n",
|
|
4132
|
+
styles: [".autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:rgba(0,0,0,.256863) 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.31579}}.div-action{display:inline-block}.add-location{display:inline}.remove-location-button{margin:5px}.hide-autocomplete{display:none}.auto-complete-container{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}"]
|
|
4133
|
+
}] }
|
|
4134
|
+
];
|
|
4135
|
+
/** @nocollapse */
|
|
4136
|
+
SearchLocationComponent.ctorParameters = () => [
|
|
4137
|
+
{ type: LocationService },
|
|
4138
|
+
{ type: SessionStorageService },
|
|
4139
|
+
{ type: FormBuilder },
|
|
4140
|
+
{ type: ChangeDetectorRef }
|
|
4141
|
+
];
|
|
4142
|
+
SearchLocationComponent.propDecorators = {
|
|
4143
|
+
control: [{ type: Input }],
|
|
4144
|
+
disabled: [{ type: Input }],
|
|
4145
|
+
singleMode: [{ type: Input }],
|
|
4146
|
+
locationType: [{ type: Input }],
|
|
4147
|
+
serviceIds: [{ type: Input }],
|
|
4148
|
+
submitted: [{ type: Input }],
|
|
4149
|
+
delay: [{ type: Input }],
|
|
4150
|
+
form: [{ type: Input }],
|
|
4151
|
+
showAutocomplete: [{ type: Input }],
|
|
4152
|
+
locations: [{ type: Input }],
|
|
4153
|
+
bookingCheck: [{ type: Input }],
|
|
4154
|
+
locationSelected: [{ type: Output }],
|
|
4155
|
+
locationInputChanged: [{ type: Output }],
|
|
4156
|
+
searchLocationChanged: [{ type: Output }],
|
|
4157
|
+
reset: [{ type: Input }],
|
|
4158
|
+
selectedLocations: [{ type: Input }]
|
|
4159
|
+
};
|
|
4160
|
+
if (false) {
|
|
4161
|
+
/** @type {?} */
|
|
4162
|
+
SearchLocationComponent.prototype.control;
|
|
4163
|
+
/** @type {?} */
|
|
4164
|
+
SearchLocationComponent.prototype.disabled;
|
|
4165
|
+
/** @type {?} */
|
|
4166
|
+
SearchLocationComponent.prototype.singleMode;
|
|
4167
|
+
/** @type {?} */
|
|
4168
|
+
SearchLocationComponent.prototype.locationType;
|
|
4169
|
+
/** @type {?} */
|
|
4170
|
+
SearchLocationComponent.prototype.serviceIds;
|
|
4171
|
+
/** @type {?} */
|
|
4172
|
+
SearchLocationComponent.prototype.submitted;
|
|
4173
|
+
/** @type {?} */
|
|
4174
|
+
SearchLocationComponent.prototype.delay;
|
|
4175
|
+
/** @type {?} */
|
|
4176
|
+
SearchLocationComponent.prototype.form;
|
|
4177
|
+
/** @type {?} */
|
|
4178
|
+
SearchLocationComponent.prototype.showAutocomplete;
|
|
4179
|
+
/** @type {?} */
|
|
4180
|
+
SearchLocationComponent.prototype.locations;
|
|
4181
|
+
/** @type {?} */
|
|
4182
|
+
SearchLocationComponent.prototype.bookingCheck;
|
|
4183
|
+
/** @type {?} */
|
|
4184
|
+
SearchLocationComponent.prototype.locationSelected;
|
|
4185
|
+
/** @type {?} */
|
|
4186
|
+
SearchLocationComponent.prototype.locationInputChanged;
|
|
4187
|
+
/** @type {?} */
|
|
4188
|
+
SearchLocationComponent.prototype.searchLocationChanged;
|
|
4189
|
+
/** @type {?} */
|
|
4190
|
+
SearchLocationComponent.prototype.minSearchCharacters;
|
|
4191
|
+
/** @type {?} */
|
|
4192
|
+
SearchLocationComponent.prototype.term;
|
|
4193
|
+
/**
|
|
4194
|
+
* @type {?}
|
|
4195
|
+
* @private
|
|
4196
|
+
*/
|
|
4197
|
+
SearchLocationComponent.prototype.pSelectedLocations;
|
|
4198
|
+
/**
|
|
4199
|
+
* @type {?}
|
|
4200
|
+
* @private
|
|
4201
|
+
*/
|
|
4202
|
+
SearchLocationComponent.prototype.pReset;
|
|
4203
|
+
/**
|
|
4204
|
+
* @type {?}
|
|
4205
|
+
* @private
|
|
4206
|
+
*/
|
|
4207
|
+
SearchLocationComponent.prototype.locationService;
|
|
4208
|
+
/**
|
|
4209
|
+
* @type {?}
|
|
4210
|
+
* @private
|
|
4211
|
+
*/
|
|
4212
|
+
SearchLocationComponent.prototype.sessionStorageService;
|
|
4213
|
+
/**
|
|
4214
|
+
* @type {?}
|
|
4215
|
+
* @private
|
|
4216
|
+
*/
|
|
4217
|
+
SearchLocationComponent.prototype.fb;
|
|
4218
|
+
/**
|
|
4219
|
+
* @type {?}
|
|
4220
|
+
* @private
|
|
4221
|
+
*/
|
|
4222
|
+
SearchLocationComponent.prototype.cd;
|
|
4223
|
+
}
|
|
4224
|
+
|
|
4225
|
+
/**
|
|
4226
|
+
* @fileoverview added by tsickle
|
|
4227
|
+
* Generated from: lib/components/find-location/find-location.component.ts
|
|
4228
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4229
|
+
*/
|
|
4230
|
+
class FindLocationComponent {
|
|
4231
|
+
constructor() {
|
|
4232
|
+
this.locationFieldChanged = new EventEmitter();
|
|
4233
|
+
this.selectedLocations = [];
|
|
4234
|
+
this.submitted = true;
|
|
4235
|
+
this.enableAddLocationButton = true;
|
|
4236
|
+
this.locationTitle = 'Search for a location by name';
|
|
4237
|
+
this.disableInputField = false;
|
|
4238
|
+
this.locations = [];
|
|
4239
|
+
this.tempSelectedLocation = null;
|
|
4240
|
+
this.serviceIds = 'SSCS,IA';
|
|
4241
|
+
this.pServices = [];
|
|
4242
|
+
this.pDisabled = false;
|
|
4243
|
+
}
|
|
4244
|
+
/**
|
|
4245
|
+
* @return {?}
|
|
4246
|
+
*/
|
|
4247
|
+
get disabled() {
|
|
4248
|
+
return this.pDisabled;
|
|
4249
|
+
}
|
|
4250
|
+
/**
|
|
4251
|
+
* @param {?} value
|
|
4252
|
+
* @return {?}
|
|
4253
|
+
*/
|
|
4254
|
+
set disabled(value) {
|
|
4255
|
+
if (value) {
|
|
4256
|
+
this.searchLocationComponent.resetSearchTerm();
|
|
4257
|
+
this.removeSelectedValues();
|
|
4258
|
+
}
|
|
4259
|
+
this.pDisabled = this.disableInputField === true ? true : null;
|
|
4260
|
+
}
|
|
4261
|
+
/**
|
|
4262
|
+
* @return {?}
|
|
4263
|
+
*/
|
|
4264
|
+
get services() {
|
|
4265
|
+
return this.pServices;
|
|
4266
|
+
}
|
|
4267
|
+
/**
|
|
4268
|
+
* @param {?} value
|
|
4269
|
+
* @return {?}
|
|
4270
|
+
*/
|
|
4271
|
+
set services(value) {
|
|
4272
|
+
this.pServices = value;
|
|
4273
|
+
/** @type {?} */
|
|
4274
|
+
const field = this.fields.find((/**
|
|
4275
|
+
* @param {?} f
|
|
4276
|
+
* @return {?}
|
|
4277
|
+
*/
|
|
4278
|
+
f => f.name === this.field.findLocationField));
|
|
4279
|
+
if (field) {
|
|
4280
|
+
if (typeof value === 'string') {
|
|
4281
|
+
this.serviceIds = value;
|
|
4282
|
+
}
|
|
4283
|
+
else {
|
|
4284
|
+
this.serviceIds = getValues(field.options, value).filter((/**
|
|
4285
|
+
* @param {?} x
|
|
4286
|
+
* @return {?}
|
|
4287
|
+
*/
|
|
4288
|
+
x => x !== 'services_all')).join(',');
|
|
4289
|
+
}
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
/**
|
|
4293
|
+
* @return {?}
|
|
4294
|
+
*/
|
|
4295
|
+
ngOnInit() {
|
|
4296
|
+
// implemented to get rid of undefined values
|
|
4297
|
+
this.selectedLocations = this.selectedLocations.filter((/**
|
|
4298
|
+
* @param {?} location
|
|
4299
|
+
* @return {?}
|
|
4300
|
+
*/
|
|
4301
|
+
location => location.epimms_id));
|
|
4302
|
+
}
|
|
4303
|
+
/**
|
|
4304
|
+
* @return {?}
|
|
4305
|
+
*/
|
|
4306
|
+
addLocation() {
|
|
4307
|
+
if (this.tempSelectedLocation) {
|
|
4308
|
+
this.selectedLocations = [...this.selectedLocations, this.tempSelectedLocation];
|
|
4309
|
+
this.addSelectedLocationsToForm([this.tempSelectedLocation]);
|
|
4310
|
+
this.tempSelectedLocation = null;
|
|
4311
|
+
this.locations = [];
|
|
4312
|
+
this.searchLocationComponent.resetSearchTerm();
|
|
4313
|
+
}
|
|
4314
|
+
}
|
|
4315
|
+
/**
|
|
4316
|
+
* @param {?} location
|
|
4317
|
+
* @return {?}
|
|
4318
|
+
*/
|
|
4319
|
+
removeLocation(location) {
|
|
4320
|
+
if (location.epimms_id) {
|
|
4321
|
+
this.selectedLocations = this.selectedLocations.filter((/**
|
|
4322
|
+
* @param {?} selectedLocation
|
|
4323
|
+
* @return {?}
|
|
4324
|
+
*/
|
|
4325
|
+
selectedLocation => selectedLocation.epimms_id !== location.epimms_id));
|
|
4326
|
+
/** @type {?} */
|
|
4327
|
+
const formArray = (/** @type {?} */ (this.form.get(this.field.name)));
|
|
4328
|
+
/** @type {?} */
|
|
4329
|
+
const index = ((/** @type {?} */ (formArray.value))).findIndex((/**
|
|
4330
|
+
* @param {?} selectedLocation
|
|
4331
|
+
* @return {?}
|
|
4332
|
+
*/
|
|
4333
|
+
selectedLocation => selectedLocation.epimms_id === location.epimms_id));
|
|
4334
|
+
if (index > -1) {
|
|
4335
|
+
formArray.removeAt(index);
|
|
4336
|
+
}
|
|
4337
|
+
}
|
|
4338
|
+
}
|
|
4339
|
+
/**
|
|
4340
|
+
* @param {?} term
|
|
4341
|
+
* @return {?}
|
|
4342
|
+
*/
|
|
4343
|
+
onInputChanged(term) {
|
|
4344
|
+
// if the filter is in single mode clear the selected locations
|
|
4345
|
+
if (typeof term === 'string' && this.field.maxSelected === 1) {
|
|
4346
|
+
this.removeSelectedValues();
|
|
4347
|
+
}
|
|
4348
|
+
}
|
|
4349
|
+
/**
|
|
4350
|
+
* @return {?}
|
|
4351
|
+
*/
|
|
4352
|
+
onSearchInputChanged() {
|
|
4353
|
+
this.locationFieldChanged.emit();
|
|
4354
|
+
}
|
|
4355
|
+
/**
|
|
4356
|
+
* @param {?} location
|
|
4357
|
+
* @return {?}
|
|
4358
|
+
*/
|
|
4359
|
+
onLocationSelected(location) {
|
|
4360
|
+
if (this.field.maxSelected === 1) {
|
|
4361
|
+
this.removeSelectedValues();
|
|
4362
|
+
this.addSelectedLocationsToForm([location]);
|
|
4363
|
+
}
|
|
4364
|
+
else {
|
|
4365
|
+
if (!this.selectedLocations.find((/**
|
|
4366
|
+
* @param {?} x
|
|
4367
|
+
* @return {?}
|
|
4368
|
+
*/
|
|
4369
|
+
x => x.epimms_id === location.epimms_id))) {
|
|
4370
|
+
if (location.epimms_id) {
|
|
4371
|
+
this.tempSelectedLocation = location;
|
|
4372
|
+
}
|
|
4373
|
+
}
|
|
4374
|
+
}
|
|
4375
|
+
}
|
|
4376
|
+
/**
|
|
4377
|
+
* @private
|
|
4378
|
+
* @return {?}
|
|
4379
|
+
*/
|
|
4380
|
+
removeSelectedValues() {
|
|
4381
|
+
/** @type {?} */
|
|
4382
|
+
const formArray = (/** @type {?} */ (this.form.get(this.field.name)));
|
|
4383
|
+
for (let i = 0; i < formArray.length; i++) {
|
|
4384
|
+
formArray.removeAt(i);
|
|
4385
|
+
}
|
|
4386
|
+
this.selectedLocations = [];
|
|
4387
|
+
}
|
|
4388
|
+
/**
|
|
4389
|
+
* @private
|
|
4390
|
+
* @param {?} locations
|
|
4391
|
+
* @return {?}
|
|
4392
|
+
*/
|
|
4393
|
+
addSelectedLocationsToForm(locations) {
|
|
4394
|
+
/** @type {?} */
|
|
4395
|
+
const formArray = (/** @type {?} */ (this.form.get(this.field.name)));
|
|
4396
|
+
for (const location of locations) {
|
|
4397
|
+
formArray.push(new FormControl(location));
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
}
|
|
4401
|
+
FindLocationComponent.decorators = [
|
|
4402
|
+
{ type: Component, args: [{
|
|
4403
|
+
selector: 'xuilib-find-location',
|
|
4404
|
+
template: "<div class=\"location-picker-custom\">\n <div class=\"search-location\">\n <div>\n <label id=\"input-selected-location-label\" *ngIf=\"locationTitle\">{{locationTitle}}</label>\n </div>\n <exui-search-location class=\"search-location\"\n [locations]=\"locations\"\n [selectedLocations]=\"selectedLocations\"\n [singleMode]=\"field.maxSelected === 1\"\n [bookingCheck]=\"field.bookingCheckType\"\n [delay]=\"300\"\n [disabled]=\"disabled\"\n [serviceIds]=\"serviceIds\"\n (locationInputChanged)=\"onInputChanged($event)\"\n (locationSelected)=\"onLocationSelected($event)\"\n (searchLocationChanged)=\"onSearchInputChanged()\"\n [locationType]=\"'case-management'\"></exui-search-location>\n <a href=\"javascript:void(0)\" (click)=\"addLocation()\" class=\"govuk-button\" data-module=\"govuk-button\" *ngIf=\"enableAddLocationButton\">\n Add location\n </a>\n </div>\n <ul class=\"hmcts-filter-tags selection-container\" *ngIf=\"field.maxSelected != 1\">\n <li class=\"location-selection\" *ngFor=\"let selection of selectedLocations\">\n <a class=\"hmcts-filter__tag\" (click)=\"removeLocation(selection)\" href=\"javascript:void(0)\">\n {{ selection.site_name }}\n </a>\n </li>\n </ul>\n</div>\n",
|
|
4405
|
+
styles: [""]
|
|
4406
|
+
}] }
|
|
4407
|
+
];
|
|
4408
|
+
FindLocationComponent.propDecorators = {
|
|
4409
|
+
locationFieldChanged: [{ type: Output }],
|
|
4410
|
+
selectedLocations: [{ type: Input }],
|
|
4411
|
+
submitted: [{ type: Input }],
|
|
4412
|
+
enableAddLocationButton: [{ type: Input }],
|
|
4413
|
+
form: [{ type: Input }],
|
|
4414
|
+
field: [{ type: Input }],
|
|
4415
|
+
fields: [{ type: Input }],
|
|
4416
|
+
locationTitle: [{ type: Input }],
|
|
4417
|
+
disableInputField: [{ type: Input }],
|
|
4418
|
+
searchLocationComponent: [{ type: ViewChild, args: [SearchLocationComponent, { static: true },] }],
|
|
4419
|
+
disabled: [{ type: Input }],
|
|
4420
|
+
services: [{ type: Input }]
|
|
4421
|
+
};
|
|
4422
|
+
if (false) {
|
|
4423
|
+
/** @type {?} */
|
|
4424
|
+
FindLocationComponent.prototype.locationFieldChanged;
|
|
4425
|
+
/** @type {?} */
|
|
4426
|
+
FindLocationComponent.prototype.selectedLocations;
|
|
4427
|
+
/** @type {?} */
|
|
4428
|
+
FindLocationComponent.prototype.submitted;
|
|
4429
|
+
/** @type {?} */
|
|
4430
|
+
FindLocationComponent.prototype.enableAddLocationButton;
|
|
4233
4431
|
/** @type {?} */
|
|
4234
|
-
|
|
4432
|
+
FindLocationComponent.prototype.form;
|
|
4235
4433
|
/** @type {?} */
|
|
4236
|
-
|
|
4237
|
-
}
|
|
4238
|
-
/**
|
|
4239
|
-
* @record
|
|
4240
|
-
*/
|
|
4241
|
-
function Caseworker() { }
|
|
4242
|
-
if (false) {
|
|
4434
|
+
FindLocationComponent.prototype.field;
|
|
4243
4435
|
/** @type {?} */
|
|
4244
|
-
|
|
4436
|
+
FindLocationComponent.prototype.fields;
|
|
4245
4437
|
/** @type {?} */
|
|
4246
|
-
|
|
4438
|
+
FindLocationComponent.prototype.locationTitle;
|
|
4247
4439
|
/** @type {?} */
|
|
4248
|
-
|
|
4440
|
+
FindLocationComponent.prototype.disableInputField;
|
|
4249
4441
|
/** @type {?} */
|
|
4250
|
-
|
|
4251
|
-
/** @type {?|undefined} */
|
|
4252
|
-
Caseworker.prototype.knownAs;
|
|
4442
|
+
FindLocationComponent.prototype.locations;
|
|
4253
4443
|
/** @type {?} */
|
|
4254
|
-
|
|
4444
|
+
FindLocationComponent.prototype.tempSelectedLocation;
|
|
4445
|
+
/** @type {?} */
|
|
4446
|
+
FindLocationComponent.prototype.serviceIds;
|
|
4447
|
+
/** @type {?} */
|
|
4448
|
+
FindLocationComponent.prototype.searchLocationComponent;
|
|
4449
|
+
/**
|
|
4450
|
+
* @type {?}
|
|
4451
|
+
* @private
|
|
4452
|
+
*/
|
|
4453
|
+
FindLocationComponent.prototype.pServices;
|
|
4454
|
+
/**
|
|
4455
|
+
* @type {?}
|
|
4456
|
+
* @private
|
|
4457
|
+
*/
|
|
4458
|
+
FindLocationComponent.prototype.pDisabled;
|
|
4255
4459
|
}
|
|
4256
|
-
/** @enum {string} */
|
|
4257
|
-
const PersonRole = {
|
|
4258
|
-
JUDICIAL: "Judicial",
|
|
4259
|
-
CASEWORKER: "Legal Ops",
|
|
4260
|
-
ADMIN: "Admin",
|
|
4261
|
-
ALL: "All",
|
|
4262
|
-
};
|
|
4263
|
-
/** @enum {string} */
|
|
4264
|
-
const RoleCategory = {
|
|
4265
|
-
JUDICIAL: "JUDICIAL",
|
|
4266
|
-
CASEWORKER: "LEGAL_OPERATIONS",
|
|
4267
|
-
ADMIN: "ADMIN",
|
|
4268
|
-
ALL: "ALL",
|
|
4269
|
-
};
|
|
4270
4460
|
|
|
4271
4461
|
/**
|
|
4272
4462
|
* @fileoverview added by tsickle
|
|
4273
|
-
* Generated from: lib/
|
|
4463
|
+
* Generated from: lib/components/pagination/pagination.component.ts
|
|
4274
4464
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4275
4465
|
*/
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4466
|
+
class PaginationComponent {
|
|
4467
|
+
constructor() {
|
|
4468
|
+
this.previousPage = new EventEmitter();
|
|
4469
|
+
this.nextPage = new EventEmitter();
|
|
4470
|
+
}
|
|
4471
|
+
/**
|
|
4472
|
+
* @return {?}
|
|
4473
|
+
*/
|
|
4474
|
+
onPrevious() {
|
|
4475
|
+
this.previousPage.emit(null);
|
|
4476
|
+
}
|
|
4477
|
+
/**
|
|
4478
|
+
* @return {?}
|
|
4479
|
+
*/
|
|
4480
|
+
onNext() {
|
|
4481
|
+
this.nextPage.emit(null);
|
|
4482
|
+
}
|
|
4483
|
+
}
|
|
4484
|
+
PaginationComponent.decorators = [
|
|
4485
|
+
{ type: Component, args: [{
|
|
4486
|
+
selector: 'xuilib-pagination',
|
|
4487
|
+
template: "<nav class=\"hmcts-pagination\" id=\"pagination-label\">\n\n <p class=\"govuk-visually-hidden\" aria-labelledby=\"pagination-label\">Pagination navigation</p>\n\n <ul class=\"hmcts-pagination__list\">\n <li class=\"hmcts-pagination__item hmcts-pagination__item--prev\">\n <a *ngIf=\"firstRecord > 1; else noPrevious\" class=\"hmcts-pagination__link\" (click)=\"onPrevious()\" href=\"javascript:void(0)\">\n Previous page\n </a>\n <ng-template #noPrevious>\n <span class=\"hmcts-pagination__link\">Previous page</span>\n </ng-template>\n </li>\n\n <li class=\"hmcts-pagination__item hmcts-pagination__item--next\">\n <a *ngIf=\"moreItems; else noNext\" class=\"hmcts-pagination__link\" (click)=\"onNext()\" href=\"javascript:void(0)\">Next page</a>\n <ng-template #noNext>\n <span class=\"hmcts-pagination__link\">Next page</span>\n </ng-template>\n </li>\n </ul>\n</nav>\n",
|
|
4488
|
+
styles: ["span.hmcts-pagination__link:hover{color:revert}"]
|
|
4489
|
+
}] }
|
|
4490
|
+
];
|
|
4491
|
+
/** @nocollapse */
|
|
4492
|
+
PaginationComponent.ctorParameters = () => [];
|
|
4493
|
+
PaginationComponent.propDecorators = {
|
|
4494
|
+
moreItems: [{ type: Input }],
|
|
4495
|
+
firstRecord: [{ type: Input }],
|
|
4496
|
+
previousPage: [{ type: Output }],
|
|
4497
|
+
nextPage: [{ type: Output }]
|
|
4498
|
+
};
|
|
4280
4499
|
if (false) {
|
|
4281
4500
|
/** @type {?} */
|
|
4282
|
-
|
|
4501
|
+
PaginationComponent.prototype.moreItems;
|
|
4283
4502
|
/** @type {?} */
|
|
4284
|
-
|
|
4503
|
+
PaginationComponent.prototype.firstRecord;
|
|
4285
4504
|
/** @type {?} */
|
|
4286
|
-
|
|
4505
|
+
PaginationComponent.prototype.previousPage;
|
|
4506
|
+
/** @type {?} */
|
|
4507
|
+
PaginationComponent.prototype.nextPage;
|
|
4287
4508
|
}
|
|
4288
4509
|
|
|
4289
4510
|
/**
|
|
4290
4511
|
* @fileoverview added by tsickle
|
|
4291
|
-
* Generated from: lib/
|
|
4512
|
+
* Generated from: lib/components/public_api.ts
|
|
4292
4513
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4293
4514
|
*/
|
|
4294
|
-
/**
|
|
4295
|
-
* @record
|
|
4296
|
-
*/
|
|
4297
|
-
function User() { }
|
|
4298
|
-
if (false) {
|
|
4299
|
-
/** @type {?|undefined} */
|
|
4300
|
-
User.prototype.routerLink;
|
|
4301
|
-
/** @type {?|undefined} */
|
|
4302
|
-
User.prototype.routerLinkTitle;
|
|
4303
|
-
/** @type {?|undefined} */
|
|
4304
|
-
User.prototype.fullName;
|
|
4305
|
-
/** @type {?|undefined} */
|
|
4306
|
-
User.prototype.email;
|
|
4307
|
-
/** @type {?|undefined} */
|
|
4308
|
-
User.prototype.status;
|
|
4309
|
-
/** @type {?|undefined} */
|
|
4310
|
-
User.prototype.resendInvite;
|
|
4311
|
-
/* Skipping unhandled member: [key: string]: any;*/
|
|
4312
|
-
}
|
|
4313
4515
|
|
|
4314
4516
|
/**
|
|
4315
4517
|
* @fileoverview added by tsickle
|
|
4316
|
-
* Generated from: lib/
|
|
4518
|
+
* Generated from: lib/components/index.ts
|
|
4317
4519
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4318
4520
|
*/
|
|
4521
|
+
|
|
4319
4522
|
/**
|
|
4320
|
-
* @
|
|
4523
|
+
* @fileoverview added by tsickle
|
|
4524
|
+
* Generated from: lib/directives/feature-toggle/feature-toggle.directive.ts
|
|
4525
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4321
4526
|
*/
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4527
|
+
class FeatureToggleDirective {
|
|
4528
|
+
/**
|
|
4529
|
+
* @param {?} service
|
|
4530
|
+
* @param {?} viewContainer
|
|
4531
|
+
* @param {?} templateRef
|
|
4532
|
+
*/
|
|
4533
|
+
constructor(service, viewContainer, templateRef) {
|
|
4534
|
+
this.service = service;
|
|
4535
|
+
this.viewContainer = viewContainer;
|
|
4536
|
+
this.templateRef = templateRef;
|
|
4537
|
+
}
|
|
4538
|
+
/**
|
|
4539
|
+
* @param {?} feature
|
|
4540
|
+
* @return {?}
|
|
4541
|
+
*/
|
|
4542
|
+
set xuilibFeatureToggle(feature) {
|
|
4543
|
+
this.feature = feature;
|
|
4544
|
+
this.updateSubscription();
|
|
4545
|
+
}
|
|
4546
|
+
/**
|
|
4547
|
+
* @return {?}
|
|
4548
|
+
*/
|
|
4549
|
+
ngOnDestroy() {
|
|
4550
|
+
if (this.subscription) {
|
|
4551
|
+
this.subscription.unsubscribe();
|
|
4552
|
+
}
|
|
4553
|
+
}
|
|
4554
|
+
/**
|
|
4555
|
+
* @private
|
|
4556
|
+
* @return {?}
|
|
4557
|
+
*/
|
|
4558
|
+
updateSubscription() {
|
|
4559
|
+
this.subscription = this.service.isEnabled(this.feature).subscribe((/**
|
|
4560
|
+
* @param {?} enabled
|
|
4561
|
+
* @return {?}
|
|
4562
|
+
*/
|
|
4563
|
+
enabled => {
|
|
4564
|
+
if (enabled) {
|
|
4565
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
4566
|
+
}
|
|
4567
|
+
else {
|
|
4568
|
+
this.viewContainer.clear();
|
|
4569
|
+
}
|
|
4570
|
+
}));
|
|
4571
|
+
}
|
|
4340
4572
|
}
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4573
|
+
FeatureToggleDirective.decorators = [
|
|
4574
|
+
{ type: Directive, args: [{
|
|
4575
|
+
selector: '[xuilibFeatureToggle]'
|
|
4576
|
+
},] }
|
|
4577
|
+
];
|
|
4578
|
+
/** @nocollapse */
|
|
4579
|
+
FeatureToggleDirective.ctorParameters = () => [
|
|
4580
|
+
{ type: FeatureToggleService },
|
|
4581
|
+
{ type: ViewContainerRef },
|
|
4582
|
+
{ type: TemplateRef }
|
|
4583
|
+
];
|
|
4584
|
+
FeatureToggleDirective.propDecorators = {
|
|
4585
|
+
xuilibFeatureToggle: [{ type: Input }]
|
|
4586
|
+
};
|
|
4345
4587
|
if (false) {
|
|
4346
|
-
/**
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
/**
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
/**
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
FilterFieldConfig.prototype.changeResetFields;
|
|
4372
|
-
/** @type {?|undefined} */
|
|
4373
|
-
FilterFieldConfig.prototype.findPersonField;
|
|
4374
|
-
/** @type {?|undefined} */
|
|
4375
|
-
FilterFieldConfig.prototype.findLocationField;
|
|
4376
|
-
/** @type {?|undefined} */
|
|
4377
|
-
FilterFieldConfig.prototype.domainField;
|
|
4378
|
-
/** @type {?|undefined} */
|
|
4379
|
-
FilterFieldConfig.prototype.disable;
|
|
4380
|
-
/** @type {?|undefined} */
|
|
4381
|
-
FilterFieldConfig.prototype.disabledText;
|
|
4382
|
-
/** @type {?} */
|
|
4383
|
-
FilterFieldConfig.prototype.type;
|
|
4384
|
-
/** @type {?|undefined} */
|
|
4385
|
-
FilterFieldConfig.prototype.domain;
|
|
4386
|
-
/** @type {?|undefined} */
|
|
4387
|
-
FilterFieldConfig.prototype.title;
|
|
4388
|
-
/** @type {?|undefined} */
|
|
4389
|
-
FilterFieldConfig.prototype.subTitle;
|
|
4390
|
-
/** @type {?|undefined} */
|
|
4391
|
-
FilterFieldConfig.prototype.locationTitle;
|
|
4392
|
-
/** @type {?|undefined} */
|
|
4393
|
-
FilterFieldConfig.prototype.radioSelectionChange;
|
|
4588
|
+
/**
|
|
4589
|
+
* @type {?}
|
|
4590
|
+
* @private
|
|
4591
|
+
*/
|
|
4592
|
+
FeatureToggleDirective.prototype.feature;
|
|
4593
|
+
/**
|
|
4594
|
+
* @type {?}
|
|
4595
|
+
* @private
|
|
4596
|
+
*/
|
|
4597
|
+
FeatureToggleDirective.prototype.subscription;
|
|
4598
|
+
/**
|
|
4599
|
+
* @type {?}
|
|
4600
|
+
* @private
|
|
4601
|
+
*/
|
|
4602
|
+
FeatureToggleDirective.prototype.service;
|
|
4603
|
+
/**
|
|
4604
|
+
* @type {?}
|
|
4605
|
+
* @private
|
|
4606
|
+
*/
|
|
4607
|
+
FeatureToggleDirective.prototype.viewContainer;
|
|
4608
|
+
/**
|
|
4609
|
+
* @type {?}
|
|
4610
|
+
* @private
|
|
4611
|
+
*/
|
|
4612
|
+
FeatureToggleDirective.prototype.templateRef;
|
|
4394
4613
|
}
|
|
4614
|
+
|
|
4395
4615
|
/**
|
|
4396
|
-
* @
|
|
4616
|
+
* @fileoverview added by tsickle
|
|
4617
|
+
* Generated from: lib/directives/let/let.directive.ts
|
|
4618
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4397
4619
|
*/
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
}
|
|
4407
|
-
class RadioFilterFieldConfig {
|
|
4620
|
+
/**
|
|
4621
|
+
* @template T
|
|
4622
|
+
*/
|
|
4623
|
+
class LetContext {
|
|
4624
|
+
constructor() {
|
|
4625
|
+
this.$implicit = null;
|
|
4626
|
+
this.xuilibLet = null;
|
|
4627
|
+
}
|
|
4408
4628
|
}
|
|
4409
4629
|
if (false) {
|
|
4410
4630
|
/** @type {?} */
|
|
4411
|
-
|
|
4412
|
-
/** @type {?} */
|
|
4413
|
-
RadioFilterFieldConfig.prototype.options;
|
|
4414
|
-
/** @type {?} */
|
|
4415
|
-
RadioFilterFieldConfig.prototype.minSelected;
|
|
4416
|
-
/** @type {?} */
|
|
4417
|
-
RadioFilterFieldConfig.prototype.maxSelected;
|
|
4631
|
+
LetContext.prototype.$implicit;
|
|
4418
4632
|
/** @type {?} */
|
|
4419
|
-
|
|
4633
|
+
LetContext.prototype.xuilibLet;
|
|
4420
4634
|
}
|
|
4421
4635
|
/**
|
|
4422
|
-
* @
|
|
4636
|
+
* @template T
|
|
4423
4637
|
*/
|
|
4424
|
-
|
|
4638
|
+
class LetDirective {
|
|
4639
|
+
/**
|
|
4640
|
+
* @param {?} viewContainer
|
|
4641
|
+
* @param {?} templateRef
|
|
4642
|
+
*/
|
|
4643
|
+
constructor(viewContainer, templateRef) {
|
|
4644
|
+
this.viewContainer = viewContainer;
|
|
4645
|
+
this.context = new LetContext();
|
|
4646
|
+
this.viewContainer.createEmbeddedView(templateRef, this.context);
|
|
4647
|
+
}
|
|
4648
|
+
/**
|
|
4649
|
+
* @param {?} condition
|
|
4650
|
+
* @return {?}
|
|
4651
|
+
*/
|
|
4652
|
+
set xuilibLet(condition) {
|
|
4653
|
+
this.context.$implicit = this.context.xuilibLet = condition;
|
|
4654
|
+
}
|
|
4655
|
+
}
|
|
4656
|
+
LetDirective.decorators = [
|
|
4657
|
+
{ type: Directive, args: [{
|
|
4658
|
+
selector: '[xuilibLet]'
|
|
4659
|
+
},] }
|
|
4660
|
+
];
|
|
4661
|
+
/** @nocollapse */
|
|
4662
|
+
LetDirective.ctorParameters = () => [
|
|
4663
|
+
{ type: ViewContainerRef },
|
|
4664
|
+
{ type: TemplateRef }
|
|
4665
|
+
];
|
|
4666
|
+
LetDirective.propDecorators = {
|
|
4667
|
+
xuilibLet: [{ type: Input }]
|
|
4668
|
+
};
|
|
4425
4669
|
if (false) {
|
|
4426
|
-
/**
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4670
|
+
/**
|
|
4671
|
+
* @type {?}
|
|
4672
|
+
* @private
|
|
4673
|
+
*/
|
|
4674
|
+
LetDirective.prototype.context;
|
|
4675
|
+
/**
|
|
4676
|
+
* @type {?}
|
|
4677
|
+
* @private
|
|
4678
|
+
*/
|
|
4679
|
+
LetDirective.prototype.viewContainer;
|
|
4430
4680
|
}
|
|
4431
4681
|
|
|
4432
4682
|
/**
|
|
4433
4683
|
* @fileoverview added by tsickle
|
|
4434
|
-
* Generated from: lib/
|
|
4684
|
+
* Generated from: lib/directives/public-api.ts
|
|
4435
4685
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4436
4686
|
*/
|
|
4437
4687
|
|
|
4438
4688
|
/**
|
|
4439
4689
|
* @fileoverview added by tsickle
|
|
4440
|
-
* Generated from: lib/
|
|
4690
|
+
* Generated from: lib/directives/index.ts
|
|
4441
4691
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4442
4692
|
*/
|
|
4443
|
-
/**
|
|
4444
|
-
* @record
|
|
4445
|
-
*/
|
|
4446
|
-
function SearchOptions() { }
|
|
4447
|
-
if (false) {
|
|
4448
|
-
/** @type {?} */
|
|
4449
|
-
SearchOptions.prototype.searchTerm;
|
|
4450
|
-
/** @type {?} */
|
|
4451
|
-
SearchOptions.prototype.userRole;
|
|
4452
|
-
/** @type {?} */
|
|
4453
|
-
SearchOptions.prototype.services;
|
|
4454
|
-
/** @type {?|undefined} */
|
|
4455
|
-
SearchOptions.prototype.userIncluded;
|
|
4456
|
-
/** @type {?|undefined} */
|
|
4457
|
-
SearchOptions.prototype.assignedUser;
|
|
4458
|
-
}
|
|
4459
4693
|
|
|
4460
4694
|
/**
|
|
4461
4695
|
* @fileoverview added by tsickle
|
|
4462
|
-
* Generated from: lib/
|
|
4696
|
+
* Generated from: lib/components/exui-main-wrapper/exui-page-wrapper.component.ts
|
|
4463
4697
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4464
4698
|
*/
|
|
4465
4699
|
/**
|
|
4466
|
-
*
|
|
4700
|
+
* Main Page Wrapper
|
|
4701
|
+
* Responsible for:
|
|
4702
|
+
* Wrapping content within the gov-uk html elements bellow
|
|
4703
|
+
* \@prop showBackLink - switch for back link
|
|
4704
|
+
* \@prop appHeaderTitle = appHeaderTitle
|
|
4705
|
+
* \@prop appFunctionalTitle = appFunctionalTitle
|
|
4706
|
+
* \@prop summaryErrors list of errors
|
|
4707
|
+
* \@prop back link, appHeaderTitle (appHeaderTitle), summaryErrors (array of errors)
|
|
4467
4708
|
*/
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
/** @type {?} */
|
|
4471
|
-
TimeoutNotificationConfig.prototype.idleModalDisplayTime;
|
|
4472
|
-
/** @type {?} */
|
|
4473
|
-
TimeoutNotificationConfig.prototype.totalIdleTime;
|
|
4474
|
-
/** @type {?|undefined} */
|
|
4475
|
-
TimeoutNotificationConfig.prototype.idleServiceName;
|
|
4709
|
+
class ExuiPageWrapperComponent {
|
|
4710
|
+
constructor() { }
|
|
4476
4711
|
}
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
*
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4712
|
+
ExuiPageWrapperComponent.decorators = [
|
|
4713
|
+
{ type: Component, args: [{
|
|
4714
|
+
selector: 'exui-page-wrapper',
|
|
4715
|
+
template: "<div class=\"page\">\n <a *ngIf=\"backLink\" [routerLink]=\"backLink\" class=\"govuk-back-link\">Back</a>\n <div class=\"govuk-width-container\">\n <main id=\"content\" role=\"main\" class=\"govuk-main-wrapper\">\n <div class=\"govuk-grid-row\">\n <h1 *ngIf=\"title\" class=\"govuk-heading-xl\">\n <span *ngIf=\"fnTitle\" class=\"govuk-caption-xl\">{{fnTitle}}</span>\n {{title}}\n </h1>\n <ng-content>\n\n </ng-content>\n </div>\n </main>\n </div>\n</div>\n",
|
|
4716
|
+
styles: [".page{width:100%}"]
|
|
4717
|
+
}] }
|
|
4718
|
+
];
|
|
4719
|
+
/** @nocollapse */
|
|
4720
|
+
ExuiPageWrapperComponent.ctorParameters = () => [];
|
|
4721
|
+
ExuiPageWrapperComponent.propDecorators = {
|
|
4722
|
+
backLink: [{ type: Input }],
|
|
4723
|
+
title: [{ type: Input }],
|
|
4724
|
+
fnTitle: [{ type: Input }]
|
|
4725
|
+
};
|
|
4487
4726
|
if (false) {
|
|
4488
|
-
/** @type {?|undefined} */
|
|
4489
|
-
UserDetails.prototype.caseRoles;
|
|
4490
|
-
/** @type {?} */
|
|
4491
|
-
UserDetails.prototype.email;
|
|
4492
4727
|
/** @type {?} */
|
|
4493
|
-
|
|
4728
|
+
ExuiPageWrapperComponent.prototype.backLink;
|
|
4494
4729
|
/** @type {?} */
|
|
4495
|
-
|
|
4730
|
+
ExuiPageWrapperComponent.prototype.title;
|
|
4496
4731
|
/** @type {?} */
|
|
4497
|
-
|
|
4732
|
+
ExuiPageWrapperComponent.prototype.fnTitle;
|
|
4498
4733
|
}
|
|
4499
4734
|
|
|
4500
|
-
/**
|
|
4501
|
-
* @fileoverview added by tsickle
|
|
4502
|
-
* Generated from: lib/models/index.ts
|
|
4503
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4504
|
-
*/
|
|
4505
|
-
|
|
4506
4735
|
/**
|
|
4507
4736
|
* @fileoverview added by tsickle
|
|
4508
4737
|
* Generated from: lib/gov-ui/util/session-storage/session-storage-utils.ts
|
|
@@ -4542,77 +4771,24 @@ const getCaseworkers = (/**
|
|
|
4542
4771
|
(serviceId, sessionStorageService) => {
|
|
4543
4772
|
/** @type {?} */
|
|
4544
4773
|
const sessionKey = getSessionStorageKeyForServiceId(serviceId);
|
|
4545
|
-
/** @type {?} */
|
|
4546
|
-
const value = sessionStorageService.getItem(sessionKey);
|
|
4547
|
-
if (value) {
|
|
4548
|
-
return (/** @type {?} */ (JSON.parse(value)));
|
|
4549
|
-
}
|
|
4550
|
-
});
|
|
4551
|
-
/** @type {?} */
|
|
4552
|
-
const setCaseworkers = (/**
|
|
4553
|
-
* @param {?} serviceId
|
|
4554
|
-
* @param {?} caseworkers
|
|
4555
|
-
* @param {?} sessionStorageService
|
|
4556
|
-
* @return {?}
|
|
4557
|
-
*/
|
|
4558
|
-
(serviceId, caseworkers, sessionStorageService) => {
|
|
4559
|
-
/** @type {?} */
|
|
4560
|
-
const sessionKey = getSessionStorageKeyForServiceId(serviceId);
|
|
4561
|
-
sessionStorageService.setItem(sessionKey, JSON.stringify(caseworkers));
|
|
4562
|
-
});
|
|
4563
|
-
|
|
4564
|
-
/**
|
|
4565
|
-
* @fileoverview added by tsickle
|
|
4566
|
-
* Generated from: lib/services/session-storage/session-storage.service.ts
|
|
4567
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4568
|
-
*/
|
|
4569
|
-
class SessionStorageService {
|
|
4570
|
-
/**
|
|
4571
|
-
* Get an item from the session storage.
|
|
4572
|
-
* If remove is true, the item will be removed once read
|
|
4573
|
-
* @param {?} key
|
|
4574
|
-
* @param {?=} removeAfterRead removed the key once it has been read
|
|
4575
|
-
* @return {?}
|
|
4576
|
-
*/
|
|
4577
|
-
getItem(key, removeAfterRead = false) {
|
|
4578
|
-
/** @type {?} */
|
|
4579
|
-
const item = sessionStorage.getItem(key);
|
|
4580
|
-
if (removeAfterRead) {
|
|
4581
|
-
this.removeItem(key);
|
|
4582
|
-
}
|
|
4583
|
-
return item;
|
|
4584
|
-
}
|
|
4585
|
-
/**
|
|
4586
|
-
* Set an item in the session storage.
|
|
4587
|
-
* @param {?} key
|
|
4588
|
-
* @param {?} value
|
|
4589
|
-
* @return {?}
|
|
4590
|
-
*/
|
|
4591
|
-
setItem(key, value) {
|
|
4592
|
-
sessionStorage.setItem(key, value);
|
|
4593
|
-
}
|
|
4594
|
-
/**
|
|
4595
|
-
* Remove an item in the session storage.
|
|
4596
|
-
* @param {?} key
|
|
4597
|
-
* @return {?}
|
|
4598
|
-
*/
|
|
4599
|
-
removeItem(key) {
|
|
4600
|
-
sessionStorage.removeItem(key);
|
|
4601
|
-
}
|
|
4602
|
-
/**
|
|
4603
|
-
* Clear all the items held in session storage.
|
|
4604
|
-
* @return {?}
|
|
4605
|
-
*/
|
|
4606
|
-
clear() {
|
|
4607
|
-
sessionStorage.clear();
|
|
4608
|
-
}
|
|
4609
|
-
}
|
|
4610
|
-
SessionStorageService.decorators = [
|
|
4611
|
-
{ type: Injectable, args: [{
|
|
4612
|
-
providedIn: 'root'
|
|
4613
|
-
},] }
|
|
4614
|
-
];
|
|
4615
|
-
/** @nocollapse */ SessionStorageService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
|
|
4774
|
+
/** @type {?} */
|
|
4775
|
+
const value = sessionStorageService.getItem(sessionKey);
|
|
4776
|
+
if (value) {
|
|
4777
|
+
return (/** @type {?} */ (JSON.parse(value)));
|
|
4778
|
+
}
|
|
4779
|
+
});
|
|
4780
|
+
/** @type {?} */
|
|
4781
|
+
const setCaseworkers = (/**
|
|
4782
|
+
* @param {?} serviceId
|
|
4783
|
+
* @param {?} caseworkers
|
|
4784
|
+
* @param {?} sessionStorageService
|
|
4785
|
+
* @return {?}
|
|
4786
|
+
*/
|
|
4787
|
+
(serviceId, caseworkers, sessionStorageService) => {
|
|
4788
|
+
/** @type {?} */
|
|
4789
|
+
const sessionKey = getSessionStorageKeyForServiceId(serviceId);
|
|
4790
|
+
sessionStorageService.setItem(sessionKey, JSON.stringify(caseworkers));
|
|
4791
|
+
});
|
|
4616
4792
|
|
|
4617
4793
|
/**
|
|
4618
4794
|
* @fileoverview added by tsickle
|
|
@@ -6664,6 +6840,252 @@ if (false) {
|
|
|
6664
6840
|
RemoveHostDirective.prototype.el;
|
|
6665
6841
|
}
|
|
6666
6842
|
|
|
6843
|
+
/**
|
|
6844
|
+
* @fileoverview added by tsickle
|
|
6845
|
+
* Generated from: lib/exui-common-lib.module.ts
|
|
6846
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6847
|
+
*/
|
|
6848
|
+
/** @type {?} */
|
|
6849
|
+
const COMMON_COMPONENTS = [
|
|
6850
|
+
ExuiPageWrapperComponent,
|
|
6851
|
+
TermsAndConditionsComponent,
|
|
6852
|
+
TcDisplayHtmlComponent,
|
|
6853
|
+
TcDisplayPlainComponent,
|
|
6854
|
+
TcConfirmComponent,
|
|
6855
|
+
ContactDetailsComponent,
|
|
6856
|
+
FeatureToggleDirective,
|
|
6857
|
+
LetDirective,
|
|
6858
|
+
HmctsSessionDialogComponent,
|
|
6859
|
+
UserListComponent,
|
|
6860
|
+
UserDetailsComponent,
|
|
6861
|
+
InviteUserPermissionComponent,
|
|
6862
|
+
InviteUserFormComponent,
|
|
6863
|
+
ShareCaseComponent,
|
|
6864
|
+
ShareCaseConfirmComponent,
|
|
6865
|
+
SelectedCaseListComponent,
|
|
6866
|
+
SelectedCaseComponent,
|
|
6867
|
+
SelectedCaseConfirmComponent,
|
|
6868
|
+
UserSelectComponent,
|
|
6869
|
+
TabComponent,
|
|
6870
|
+
AccessibilityComponent,
|
|
6871
|
+
DueDateComponent,
|
|
6872
|
+
CheckboxListComponent,
|
|
6873
|
+
ServiceMessageComponent,
|
|
6874
|
+
ServiceMessagesComponent,
|
|
6875
|
+
LoadingSpinnerComponent,
|
|
6876
|
+
GenericFilterComponent,
|
|
6877
|
+
CookieBannerComponent,
|
|
6878
|
+
FindPersonComponent,
|
|
6879
|
+
SearchJudicialsComponent,
|
|
6880
|
+
FindLocationComponent,
|
|
6881
|
+
SearchLocationComponent,
|
|
6882
|
+
SearchVenueComponent,
|
|
6883
|
+
PaginationComponent
|
|
6884
|
+
];
|
|
6885
|
+
/** @type {?} */
|
|
6886
|
+
const GOV_UI_COMPONENTS = [
|
|
6887
|
+
HmctsIdentityBarComponent,
|
|
6888
|
+
HmctsPaginationComponent,
|
|
6889
|
+
HmctsSubNavigationComponent,
|
|
6890
|
+
HmctsPrimaryNavigationComponent,
|
|
6891
|
+
HmctsErrorSummaryComponent,
|
|
6892
|
+
HmctsMainWrapperComponent,
|
|
6893
|
+
HmctsBannerComponent,
|
|
6894
|
+
GovukTableComponent,
|
|
6895
|
+
GovUkInputComponent,
|
|
6896
|
+
GovUkCheckboxComponent,
|
|
6897
|
+
GovUkFormGroupWrapperComponent,
|
|
6898
|
+
GovUkLabelComponent,
|
|
6899
|
+
GovUkErrorMessageComponent,
|
|
6900
|
+
GovUkFieldsetComponent,
|
|
6901
|
+
GovUkDateComponent,
|
|
6902
|
+
GovUkCheckboxesComponent,
|
|
6903
|
+
GovUkRadioComponent,
|
|
6904
|
+
GovUkRadiosComponent,
|
|
6905
|
+
GovUkSelectComponent,
|
|
6906
|
+
GovUkTextareaComponent,
|
|
6907
|
+
GovUkFileUploadComponent,
|
|
6908
|
+
RemoveHostDirective
|
|
6909
|
+
];
|
|
6910
|
+
const ɵ0 = windowProvider;
|
|
6911
|
+
class ExuiCommonLibModule {
|
|
6912
|
+
}
|
|
6913
|
+
ExuiCommonLibModule.decorators = [
|
|
6914
|
+
{ type: NgModule, args: [{
|
|
6915
|
+
declarations: [
|
|
6916
|
+
...COMMON_COMPONENTS,
|
|
6917
|
+
...GOV_UI_COMPONENTS
|
|
6918
|
+
],
|
|
6919
|
+
imports: [
|
|
6920
|
+
CommonModule,
|
|
6921
|
+
FormsModule,
|
|
6922
|
+
ReactiveFormsModule,
|
|
6923
|
+
RouterModule.forChild([]),
|
|
6924
|
+
MatAutocompleteModule,
|
|
6925
|
+
MatTabsModule,
|
|
6926
|
+
MatInputModule,
|
|
6927
|
+
NgxPaginationModule
|
|
6928
|
+
],
|
|
6929
|
+
providers: [
|
|
6930
|
+
{ provide: windowToken, useFactory: ɵ0 }
|
|
6931
|
+
],
|
|
6932
|
+
exports: [
|
|
6933
|
+
...COMMON_COMPONENTS,
|
|
6934
|
+
...GOV_UI_COMPONENTS,
|
|
6935
|
+
PaginatePipe
|
|
6936
|
+
]
|
|
6937
|
+
},] }
|
|
6938
|
+
];
|
|
6939
|
+
|
|
6940
|
+
/**
|
|
6941
|
+
* @fileoverview added by tsickle
|
|
6942
|
+
* Generated from: lib/gov-ui/gov-ui.service.ts
|
|
6943
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6944
|
+
*/
|
|
6945
|
+
class GovUiService {
|
|
6946
|
+
constructor() { }
|
|
6947
|
+
}
|
|
6948
|
+
GovUiService.decorators = [
|
|
6949
|
+
{ type: Injectable, args: [{
|
|
6950
|
+
providedIn: 'root'
|
|
6951
|
+
},] }
|
|
6952
|
+
];
|
|
6953
|
+
/** @nocollapse */
|
|
6954
|
+
GovUiService.ctorParameters = () => [];
|
|
6955
|
+
/** @nocollapse */ GovUiService.ngInjectableDef = ɵɵdefineInjectable({ factory: function GovUiService_Factory() { return new GovUiService(); }, token: GovUiService, providedIn: "root" });
|
|
6956
|
+
|
|
6957
|
+
/**
|
|
6958
|
+
* @fileoverview added by tsickle
|
|
6959
|
+
* Generated from: lib/gov-ui/validators/checkboxes-be-checked.validator.ts
|
|
6960
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6961
|
+
*/
|
|
6962
|
+
/**
|
|
6963
|
+
* @param {?=} minRequired
|
|
6964
|
+
* @return {?}
|
|
6965
|
+
*/
|
|
6966
|
+
function checkboxesBeCheckedValidator(minRequired = 1) {
|
|
6967
|
+
return (/**
|
|
6968
|
+
* @param {?} formGroup
|
|
6969
|
+
* @return {?}
|
|
6970
|
+
*/
|
|
6971
|
+
function validate(formGroup) {
|
|
6972
|
+
/** @type {?} */
|
|
6973
|
+
let checked = 0;
|
|
6974
|
+
Object.keys(formGroup.controls).forEach((/**
|
|
6975
|
+
* @param {?} key
|
|
6976
|
+
* @return {?}
|
|
6977
|
+
*/
|
|
6978
|
+
key => {
|
|
6979
|
+
/** @type {?} */
|
|
6980
|
+
const control = formGroup.controls[key];
|
|
6981
|
+
if (control.value === true) {
|
|
6982
|
+
checked++;
|
|
6983
|
+
}
|
|
6984
|
+
}));
|
|
6985
|
+
if (checked < minRequired) {
|
|
6986
|
+
return {
|
|
6987
|
+
requireOneCheckboxToBeChecked: true,
|
|
6988
|
+
};
|
|
6989
|
+
}
|
|
6990
|
+
return null;
|
|
6991
|
+
});
|
|
6992
|
+
}
|
|
6993
|
+
|
|
6994
|
+
/**
|
|
6995
|
+
* @fileoverview added by tsickle
|
|
6996
|
+
* Generated from: lib/gov-ui/validators/date.validator.ts
|
|
6997
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6998
|
+
*/
|
|
6999
|
+
/**
|
|
7000
|
+
* @return {?}
|
|
7001
|
+
*/
|
|
7002
|
+
function dateValidator() {
|
|
7003
|
+
return (/**
|
|
7004
|
+
* @param {?} formGroup
|
|
7005
|
+
* @return {?}
|
|
7006
|
+
*/
|
|
7007
|
+
function validate(formGroup) {
|
|
7008
|
+
/** @type {?} */
|
|
7009
|
+
const d = new Date(parseInt(formGroup.controls.day.value, 10), parseInt(formGroup.controls.month.value, 10) - 1, parseInt(formGroup.controls.year.value, 10) - 1);
|
|
7010
|
+
/**
|
|
7011
|
+
* @param {?} val
|
|
7012
|
+
* @return {?}
|
|
7013
|
+
*/
|
|
7014
|
+
function isValidDate(val) {
|
|
7015
|
+
return val instanceof Date && !isNaN(+d);
|
|
7016
|
+
}
|
|
7017
|
+
if (!isValidDate(d)) {
|
|
7018
|
+
return {
|
|
7019
|
+
dateIsInvalid: true,
|
|
7020
|
+
};
|
|
7021
|
+
}
|
|
7022
|
+
return null;
|
|
7023
|
+
});
|
|
7024
|
+
}
|
|
7025
|
+
|
|
7026
|
+
/**
|
|
7027
|
+
* @fileoverview added by tsickle
|
|
7028
|
+
* Generated from: lib/gov-ui/validators/radio-group.validator.ts
|
|
7029
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7030
|
+
*/
|
|
7031
|
+
/**
|
|
7032
|
+
* @return {?}
|
|
7033
|
+
*/
|
|
7034
|
+
function radioGroupValidator() {
|
|
7035
|
+
return (/**
|
|
7036
|
+
* @param {?} formGroup
|
|
7037
|
+
* @return {?}
|
|
7038
|
+
*/
|
|
7039
|
+
function validate(formGroup) {
|
|
7040
|
+
if (formGroup.controls) {
|
|
7041
|
+
for (const control in formGroup.controls) {
|
|
7042
|
+
if (!formGroup.controls[control].valid) {
|
|
7043
|
+
return {
|
|
7044
|
+
isRadioGroupInvalid: true,
|
|
7045
|
+
};
|
|
7046
|
+
}
|
|
7047
|
+
}
|
|
7048
|
+
}
|
|
7049
|
+
return null;
|
|
7050
|
+
});
|
|
7051
|
+
}
|
|
7052
|
+
|
|
7053
|
+
/**
|
|
7054
|
+
* @fileoverview added by tsickle
|
|
7055
|
+
* Generated from: lib/gov-ui/validators/public_api.ts
|
|
7056
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7057
|
+
*/
|
|
7058
|
+
|
|
7059
|
+
/**
|
|
7060
|
+
* @fileoverview added by tsickle
|
|
7061
|
+
* Generated from: lib/gov-ui/validators/index.ts
|
|
7062
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7063
|
+
*/
|
|
7064
|
+
|
|
7065
|
+
/**
|
|
7066
|
+
* @fileoverview added by tsickle
|
|
7067
|
+
* Generated from: lib/gov-ui/components/public_api.ts
|
|
7068
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7069
|
+
*/
|
|
7070
|
+
|
|
7071
|
+
/**
|
|
7072
|
+
* @fileoverview added by tsickle
|
|
7073
|
+
* Generated from: lib/gov-ui/components/index.ts
|
|
7074
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7075
|
+
*/
|
|
7076
|
+
|
|
7077
|
+
/**
|
|
7078
|
+
* @fileoverview added by tsickle
|
|
7079
|
+
* Generated from: lib/gov-ui/public_api.ts
|
|
7080
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7081
|
+
*/
|
|
7082
|
+
|
|
7083
|
+
/**
|
|
7084
|
+
* @fileoverview added by tsickle
|
|
7085
|
+
* Generated from: lib/gov-ui/index.ts
|
|
7086
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7087
|
+
*/
|
|
7088
|
+
|
|
6667
7089
|
/**
|
|
6668
7090
|
* @fileoverview added by tsickle
|
|
6669
7091
|
* Generated from: lib/services/feature-toggle/feature-toggle.guard.ts
|
|
@@ -7535,268 +7957,6 @@ if (false) {
|
|
|
7535
7957
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7536
7958
|
*/
|
|
7537
7959
|
|
|
7538
|
-
/**
|
|
7539
|
-
* @fileoverview added by tsickle
|
|
7540
|
-
* Generated from: lib/exui-common-lib.module.ts
|
|
7541
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7542
|
-
*/
|
|
7543
|
-
/** @type {?} */
|
|
7544
|
-
const COMMON_COMPONENTS = [
|
|
7545
|
-
ExuiPageWrapperComponent,
|
|
7546
|
-
TermsAndConditionsComponent,
|
|
7547
|
-
TcDisplayHtmlComponent,
|
|
7548
|
-
TcDisplayPlainComponent,
|
|
7549
|
-
TcConfirmComponent,
|
|
7550
|
-
ContactDetailsComponent,
|
|
7551
|
-
FeatureToggleDirective,
|
|
7552
|
-
LetDirective,
|
|
7553
|
-
HmctsSessionDialogComponent,
|
|
7554
|
-
UserListComponent,
|
|
7555
|
-
UserDetailsComponent,
|
|
7556
|
-
InviteUserPermissionComponent,
|
|
7557
|
-
InviteUserFormComponent,
|
|
7558
|
-
ShareCaseComponent,
|
|
7559
|
-
ShareCaseConfirmComponent,
|
|
7560
|
-
SelectedCaseListComponent,
|
|
7561
|
-
SelectedCaseComponent,
|
|
7562
|
-
SelectedCaseConfirmComponent,
|
|
7563
|
-
UserSelectComponent,
|
|
7564
|
-
TabComponent,
|
|
7565
|
-
AccessibilityComponent,
|
|
7566
|
-
DueDateComponent,
|
|
7567
|
-
CheckboxListComponent,
|
|
7568
|
-
ServiceMessageComponent,
|
|
7569
|
-
ServiceMessagesComponent,
|
|
7570
|
-
LoadingSpinnerComponent,
|
|
7571
|
-
GenericFilterComponent,
|
|
7572
|
-
CookieBannerComponent,
|
|
7573
|
-
FindPersonComponent,
|
|
7574
|
-
SearchJudicialsComponent,
|
|
7575
|
-
FindLocationComponent,
|
|
7576
|
-
SearchLocationComponent,
|
|
7577
|
-
SearchVenueComponent,
|
|
7578
|
-
PaginationComponent
|
|
7579
|
-
];
|
|
7580
|
-
/** @type {?} */
|
|
7581
|
-
const GOV_UI_COMPONENTS = [
|
|
7582
|
-
HmctsIdentityBarComponent,
|
|
7583
|
-
HmctsPaginationComponent,
|
|
7584
|
-
HmctsSubNavigationComponent,
|
|
7585
|
-
HmctsPrimaryNavigationComponent,
|
|
7586
|
-
HmctsErrorSummaryComponent,
|
|
7587
|
-
HmctsMainWrapperComponent,
|
|
7588
|
-
HmctsBannerComponent,
|
|
7589
|
-
GovukTableComponent,
|
|
7590
|
-
GovUkInputComponent,
|
|
7591
|
-
GovUkCheckboxComponent,
|
|
7592
|
-
GovUkFormGroupWrapperComponent,
|
|
7593
|
-
GovUkLabelComponent,
|
|
7594
|
-
GovUkErrorMessageComponent,
|
|
7595
|
-
GovUkFieldsetComponent,
|
|
7596
|
-
GovUkDateComponent,
|
|
7597
|
-
GovUkCheckboxesComponent,
|
|
7598
|
-
GovUkRadioComponent,
|
|
7599
|
-
GovUkRadiosComponent,
|
|
7600
|
-
GovUkSelectComponent,
|
|
7601
|
-
GovUkTextareaComponent,
|
|
7602
|
-
GovUkFileUploadComponent,
|
|
7603
|
-
RemoveHostDirective
|
|
7604
|
-
];
|
|
7605
|
-
/** @type {?} */
|
|
7606
|
-
const COMMON_SERVICES = [
|
|
7607
|
-
CaseSharingStateService,
|
|
7608
|
-
CookieService,
|
|
7609
|
-
LaunchDarklyService,
|
|
7610
|
-
FilterService,
|
|
7611
|
-
FindAPersonService,
|
|
7612
|
-
GoogleAnalyticsService,
|
|
7613
|
-
GoogleTagManagerService,
|
|
7614
|
-
LoadingService,
|
|
7615
|
-
LocationService,
|
|
7616
|
-
ManageSessionServices,
|
|
7617
|
-
SessionStorageService,
|
|
7618
|
-
TimeoutNotificationsService
|
|
7619
|
-
];
|
|
7620
|
-
const ɵ0 = windowProvider;
|
|
7621
|
-
class ExuiCommonLibModule {
|
|
7622
|
-
}
|
|
7623
|
-
ExuiCommonLibModule.decorators = [
|
|
7624
|
-
{ type: NgModule, args: [{
|
|
7625
|
-
declarations: [
|
|
7626
|
-
...COMMON_COMPONENTS,
|
|
7627
|
-
...GOV_UI_COMPONENTS
|
|
7628
|
-
],
|
|
7629
|
-
imports: [
|
|
7630
|
-
CommonModule,
|
|
7631
|
-
FormsModule,
|
|
7632
|
-
ReactiveFormsModule,
|
|
7633
|
-
RouterModule.forChild([]),
|
|
7634
|
-
MatAutocompleteModule,
|
|
7635
|
-
MatTabsModule,
|
|
7636
|
-
MatInputModule,
|
|
7637
|
-
NgxPaginationModule
|
|
7638
|
-
],
|
|
7639
|
-
providers: [
|
|
7640
|
-
...COMMON_SERVICES,
|
|
7641
|
-
{ provide: windowToken, useFactory: ɵ0 }
|
|
7642
|
-
],
|
|
7643
|
-
exports: [
|
|
7644
|
-
...COMMON_COMPONENTS,
|
|
7645
|
-
...GOV_UI_COMPONENTS,
|
|
7646
|
-
PaginatePipe
|
|
7647
|
-
]
|
|
7648
|
-
},] }
|
|
7649
|
-
];
|
|
7650
|
-
|
|
7651
|
-
/**
|
|
7652
|
-
* @fileoverview added by tsickle
|
|
7653
|
-
* Generated from: lib/gov-ui/gov-ui.service.ts
|
|
7654
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7655
|
-
*/
|
|
7656
|
-
class GovUiService {
|
|
7657
|
-
constructor() { }
|
|
7658
|
-
}
|
|
7659
|
-
GovUiService.decorators = [
|
|
7660
|
-
{ type: Injectable, args: [{
|
|
7661
|
-
providedIn: 'root'
|
|
7662
|
-
},] }
|
|
7663
|
-
];
|
|
7664
|
-
/** @nocollapse */
|
|
7665
|
-
GovUiService.ctorParameters = () => [];
|
|
7666
|
-
/** @nocollapse */ GovUiService.ngInjectableDef = ɵɵdefineInjectable({ factory: function GovUiService_Factory() { return new GovUiService(); }, token: GovUiService, providedIn: "root" });
|
|
7667
|
-
|
|
7668
|
-
/**
|
|
7669
|
-
* @fileoverview added by tsickle
|
|
7670
|
-
* Generated from: lib/gov-ui/validators/checkboxes-be-checked.validator.ts
|
|
7671
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7672
|
-
*/
|
|
7673
|
-
/**
|
|
7674
|
-
* @param {?=} minRequired
|
|
7675
|
-
* @return {?}
|
|
7676
|
-
*/
|
|
7677
|
-
function checkboxesBeCheckedValidator(minRequired = 1) {
|
|
7678
|
-
return (/**
|
|
7679
|
-
* @param {?} formGroup
|
|
7680
|
-
* @return {?}
|
|
7681
|
-
*/
|
|
7682
|
-
function validate(formGroup) {
|
|
7683
|
-
/** @type {?} */
|
|
7684
|
-
let checked = 0;
|
|
7685
|
-
Object.keys(formGroup.controls).forEach((/**
|
|
7686
|
-
* @param {?} key
|
|
7687
|
-
* @return {?}
|
|
7688
|
-
*/
|
|
7689
|
-
key => {
|
|
7690
|
-
/** @type {?} */
|
|
7691
|
-
const control = formGroup.controls[key];
|
|
7692
|
-
if (control.value === true) {
|
|
7693
|
-
checked++;
|
|
7694
|
-
}
|
|
7695
|
-
}));
|
|
7696
|
-
if (checked < minRequired) {
|
|
7697
|
-
return {
|
|
7698
|
-
requireOneCheckboxToBeChecked: true,
|
|
7699
|
-
};
|
|
7700
|
-
}
|
|
7701
|
-
return null;
|
|
7702
|
-
});
|
|
7703
|
-
}
|
|
7704
|
-
|
|
7705
|
-
/**
|
|
7706
|
-
* @fileoverview added by tsickle
|
|
7707
|
-
* Generated from: lib/gov-ui/validators/date.validator.ts
|
|
7708
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7709
|
-
*/
|
|
7710
|
-
/**
|
|
7711
|
-
* @return {?}
|
|
7712
|
-
*/
|
|
7713
|
-
function dateValidator() {
|
|
7714
|
-
return (/**
|
|
7715
|
-
* @param {?} formGroup
|
|
7716
|
-
* @return {?}
|
|
7717
|
-
*/
|
|
7718
|
-
function validate(formGroup) {
|
|
7719
|
-
/** @type {?} */
|
|
7720
|
-
const d = new Date(parseInt(formGroup.controls.day.value, 10), parseInt(formGroup.controls.month.value, 10) - 1, parseInt(formGroup.controls.year.value, 10) - 1);
|
|
7721
|
-
/**
|
|
7722
|
-
* @param {?} val
|
|
7723
|
-
* @return {?}
|
|
7724
|
-
*/
|
|
7725
|
-
function isValidDate(val) {
|
|
7726
|
-
return val instanceof Date && !isNaN(+d);
|
|
7727
|
-
}
|
|
7728
|
-
if (!isValidDate(d)) {
|
|
7729
|
-
return {
|
|
7730
|
-
dateIsInvalid: true,
|
|
7731
|
-
};
|
|
7732
|
-
}
|
|
7733
|
-
return null;
|
|
7734
|
-
});
|
|
7735
|
-
}
|
|
7736
|
-
|
|
7737
|
-
/**
|
|
7738
|
-
* @fileoverview added by tsickle
|
|
7739
|
-
* Generated from: lib/gov-ui/validators/radio-group.validator.ts
|
|
7740
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7741
|
-
*/
|
|
7742
|
-
/**
|
|
7743
|
-
* @return {?}
|
|
7744
|
-
*/
|
|
7745
|
-
function radioGroupValidator() {
|
|
7746
|
-
return (/**
|
|
7747
|
-
* @param {?} formGroup
|
|
7748
|
-
* @return {?}
|
|
7749
|
-
*/
|
|
7750
|
-
function validate(formGroup) {
|
|
7751
|
-
if (formGroup.controls) {
|
|
7752
|
-
for (const control in formGroup.controls) {
|
|
7753
|
-
if (!formGroup.controls[control].valid) {
|
|
7754
|
-
return {
|
|
7755
|
-
isRadioGroupInvalid: true,
|
|
7756
|
-
};
|
|
7757
|
-
}
|
|
7758
|
-
}
|
|
7759
|
-
}
|
|
7760
|
-
return null;
|
|
7761
|
-
});
|
|
7762
|
-
}
|
|
7763
|
-
|
|
7764
|
-
/**
|
|
7765
|
-
* @fileoverview added by tsickle
|
|
7766
|
-
* Generated from: lib/gov-ui/validators/public_api.ts
|
|
7767
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7768
|
-
*/
|
|
7769
|
-
|
|
7770
|
-
/**
|
|
7771
|
-
* @fileoverview added by tsickle
|
|
7772
|
-
* Generated from: lib/gov-ui/validators/index.ts
|
|
7773
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7774
|
-
*/
|
|
7775
|
-
|
|
7776
|
-
/**
|
|
7777
|
-
* @fileoverview added by tsickle
|
|
7778
|
-
* Generated from: lib/gov-ui/components/public_api.ts
|
|
7779
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7780
|
-
*/
|
|
7781
|
-
|
|
7782
|
-
/**
|
|
7783
|
-
* @fileoverview added by tsickle
|
|
7784
|
-
* Generated from: lib/gov-ui/components/index.ts
|
|
7785
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7786
|
-
*/
|
|
7787
|
-
|
|
7788
|
-
/**
|
|
7789
|
-
* @fileoverview added by tsickle
|
|
7790
|
-
* Generated from: lib/gov-ui/public_api.ts
|
|
7791
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7792
|
-
*/
|
|
7793
|
-
|
|
7794
|
-
/**
|
|
7795
|
-
* @fileoverview added by tsickle
|
|
7796
|
-
* Generated from: lib/gov-ui/index.ts
|
|
7797
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7798
|
-
*/
|
|
7799
|
-
|
|
7800
7960
|
/**
|
|
7801
7961
|
* @fileoverview added by tsickle
|
|
7802
7962
|
* Generated from: public-api.ts
|
|
@@ -7809,5 +7969,5 @@ function radioGroupValidator() {
|
|
|
7809
7969
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7810
7970
|
*/
|
|
7811
7971
|
|
|
7812
|
-
export { AccessibilityComponent, AnonymousFeatureUser, BadgeColour,
|
|
7972
|
+
export { AccessibilityComponent, AnonymousFeatureUser, BadgeColour, BookingCheckType, COMMON_COMPONENTS, CaseSharingStateService, CheckboxListComponent, ContactDetailsComponent, CookieBannerComponent, CookieService, DateBadgeColour, DueDateComponent, ExuiCommonLibModule, FeatureToggleDirective, FeatureToggleGuard, FeatureToggleService, FilterService, FindAPersonService, FindLocationComponent, GOV_UI_COMPONENTS, GenericFilterComponent, GoogleAnalyticsService, GoogleTagManagerService, GovUiService, HasLoadingState, HmctsSessionDialogComponent, HmctsSubNavigationComponent, InviteUserFormComponent, InviteUserPermissionComponent, LaunchDarklyService, LetContext, LetDirective, LoadingService, LoadingSpinnerComponent, LocationService, LoggedInFeatureUser, ManageSessionServices, PaginationComponent, PersonRole, RadioFilterFieldConfig, RoleCategory, RoleGuard, RoleMatching, RoleService, SECONDS_IN_A_DAY, SearchLocationComponent, SelectedCaseComponent, SelectedCaseConfirmComponent, SelectedCaseListComponent, ServiceMessageComponent, ServiceMessagesComponent, SessionStorageService, ShareCaseComponent, ShareCaseConfirmComponent, TabComponent, TcConfirmComponent, TcDisplayHtmlComponent, TcDisplayPlainComponent, TermsAndConditionsComponent, TimeoutNotificationsService, UserDetailsComponent, UserListComponent, checkboxesBeCheckedValidator, dateValidator, radioGroupValidator, windowProvider, windowToken, ExuiPageWrapperComponent as ɵa, TermsAndConditionsComponent as ɵb, ServiceMessageComponent as ɵba, ServiceMessagesComponent as ɵbb, LoadingSpinnerComponent as ɵbc, GenericFilterComponent as ɵbd, FilterService as ɵbe, CookieBannerComponent as ɵbf, CookieService as ɵbg, FindPersonComponent as ɵbh, FindAPersonService as ɵbi, SessionStorageService as ɵbj, SearchJudicialsComponent as ɵbk, FindLocationComponent as ɵbl, SearchLocationComponent as ɵbm, LocationService as ɵbn, SearchVenueComponent as ɵbo, PaginationComponent as ɵbp, HmctsIdentityBarComponent as ɵbq, HmctsPaginationComponent as ɵbr, HmctsSubNavigationComponent as ɵbs, HmctsPrimaryNavigationComponent as ɵbt, HmctsErrorSummaryComponent as ɵbu, HmctsMainWrapperComponent as ɵbv, HmctsBannerComponent as ɵbw, GovukTableComponent as ɵbx, GovUkInputComponent as ɵby, GovUkCheckboxComponent as ɵbz, TcDisplayHtmlComponent as ɵc, GovUkFormGroupWrapperComponent as ɵca, GovUkLabelComponent as ɵcb, GovUkErrorMessageComponent as ɵcc, GovUkFieldsetComponent as ɵcd, GovUkDateComponent as ɵce, GovUkCheckboxesComponent as ɵcf, GovUkRadioComponent as ɵcg, GovUkRadiosComponent as ɵch, GovUkSelectComponent as ɵci, GovUkTextareaComponent as ɵcj, GovUkFileUploadComponent as ɵck, RemoveHostDirective as ɵcl, TcDisplayPlainComponent as ɵd, TcConfirmComponent as ɵe, ContactDetailsComponent as ɵf, FeatureToggleDirective as ɵg, FeatureToggleService as ɵh, LetContext as ɵi, LetDirective as ɵj, HmctsSessionDialogComponent as ɵk, UserListComponent as ɵl, UserDetailsComponent as ɵm, InviteUserPermissionComponent as ɵn, InviteUserFormComponent as ɵo, ShareCaseComponent as ɵp, UserSelectComponent as ɵq, CaseSharingStateService as ɵr, ShareCaseConfirmComponent as ɵs, SelectedCaseListComponent as ɵt, SelectedCaseComponent as ɵu, SelectedCaseConfirmComponent as ɵv, TabComponent as ɵw, AccessibilityComponent as ɵx, DueDateComponent as ɵy, CheckboxListComponent as ɵz };
|
|
7813
7973
|
//# sourceMappingURL=hmcts-rpx-xui-common-lib.js.map
|