@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.
Files changed (38) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +1744 -1556
  2. package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
  3. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
  4. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-rpx-xui-common-lib.js +2 -3
  6. package/esm2015/lib/components/find-location/find-location.component.js +13 -2
  7. package/esm2015/lib/components/generic-filter/generic-filter.component.js +19 -13
  8. package/esm2015/lib/components/search-location/search-location.component.js +32 -3
  9. package/esm2015/lib/exui-common-lib.module.js +1 -18
  10. package/esm2015/lib/models/filter.model.js +3 -1
  11. package/esm2015/lib/models/index.js +2 -1
  12. package/esm2015/lib/models/location.model.js +22 -1
  13. package/esm2015/lib/services/locations/location.service.js +5 -3
  14. package/esm2015/public-api.js +3 -3
  15. package/esm5/hmcts-rpx-xui-common-lib.js +2 -3
  16. package/esm5/lib/components/find-location/find-location.component.js +16 -2
  17. package/esm5/lib/components/generic-filter/generic-filter.component.js +44 -27
  18. package/esm5/lib/components/search-location/search-location.component.js +31 -3
  19. package/esm5/lib/exui-common-lib.module.js +3 -19
  20. package/esm5/lib/models/filter.model.js +3 -1
  21. package/esm5/lib/models/index.js +2 -1
  22. package/esm5/lib/models/location.model.js +22 -1
  23. package/esm5/lib/services/locations/location.service.js +7 -3
  24. package/esm5/public-api.js +3 -3
  25. package/fesm2015/hmcts-rpx-xui-common-lib.js +1528 -1368
  26. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  27. package/fesm5/hmcts-rpx-xui-common-lib.js +1751 -1575
  28. package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
  29. package/hmcts-rpx-xui-common-lib.d.ts +0 -1
  30. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  31. package/lib/components/find-location/find-location.component.d.ts +3 -2
  32. package/lib/components/search-location/search-location.component.d.ts +5 -2
  33. package/lib/exui-common-lib.module.d.ts +0 -2
  34. package/lib/models/filter.model.d.ts +2 -0
  35. package/lib/models/index.d.ts +1 -0
  36. package/lib/models/location.model.d.ts +11 -0
  37. package/lib/services/locations/location.service.d.ts +2 -2
  38. package/package.json +1 -1
@@ -7,7 +7,7 @@ import { distinctUntilChanged, map, tap, filter, debounceTime, mergeMap, switchM
7
7
  import { HttpClient } from '@angular/common/http';
8
8
  import { MatTabsModule, MatInputModule } from '@angular/material';
9
9
  import { MatAutocompleteModule } from '@angular/material/autocomplete';
10
- import { Router, NavigationEnd, RouterModule } from '@angular/router';
10
+ import { RouterModule, Router, NavigationEnd } from '@angular/router';
11
11
  import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
12
12
  import { initialize } from 'launchdarkly-js-client-sdk';
13
13
  import { Title } from '@angular/platform-browser';
@@ -1269,6 +1269,7 @@ var GenericFilterComponent = /** @class */ (function () {
1269
1269
  * @return {?}
1270
1270
  */
1271
1271
  function (event, form, item, field) {
1272
+ var e_3, _a;
1272
1273
  /** @type {?} */
1273
1274
  var isChecked = event.target.checked;
1274
1275
  /** @type {?} */
@@ -1324,20 +1325,36 @@ var GenericFilterComponent = /** @class */ (function () {
1324
1325
  else if (hasSelectAllOption && !allChecked && isChecked && isAllCheckedExcludingTheSelectAllOption) {
1325
1326
  formArray.controls[index_1].patchValue(true);
1326
1327
  }
1327
- return;
1328
1328
  }
1329
- formArray.controls.forEach((/**
1330
- * @param {?} control
1331
- * @return {?}
1332
- */
1333
- function (control) {
1334
- if (isChecked) {
1335
- control.patchValue(true);
1329
+ else {
1330
+ formArray.controls.forEach((/**
1331
+ * @param {?} control
1332
+ * @return {?}
1333
+ */
1334
+ function (control) {
1335
+ if (isChecked) {
1336
+ control.patchValue(true);
1337
+ }
1338
+ else {
1339
+ control.patchValue(false);
1340
+ }
1341
+ }));
1342
+ }
1343
+ if (field.changeResetFields && field.changeResetFields.length) {
1344
+ try {
1345
+ for (var _b = __values(field.changeResetFields), _c = _b.next(); !_c.done; _c = _b.next()) {
1346
+ var resetField = _c.value;
1347
+ this.resetField(resetField, form);
1348
+ }
1336
1349
  }
1337
- else {
1338
- control.patchValue(false);
1350
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
1351
+ finally {
1352
+ try {
1353
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1354
+ }
1355
+ finally { if (e_3) throw e_3.error; }
1339
1356
  }
1340
- }));
1357
+ }
1341
1358
  };
1342
1359
  /**
1343
1360
  * @private
@@ -1352,7 +1369,7 @@ var GenericFilterComponent = /** @class */ (function () {
1352
1369
  * @return {?}
1353
1370
  */
1354
1371
  function (resetField, form) {
1355
- var e_3, _a;
1372
+ var e_4, _a;
1356
1373
  /** @type {?} */
1357
1374
  var control = form.get(resetField);
1358
1375
  /** @type {?} */
@@ -1375,12 +1392,12 @@ var GenericFilterComponent = /** @class */ (function () {
1375
1392
  this.resetField(key, control);
1376
1393
  }
1377
1394
  }
1378
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
1395
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
1379
1396
  finally {
1380
1397
  try {
1381
1398
  if (keys_2_1 && !keys_2_1.done && (_a = keys_2.return)) _a.call(keys_2);
1382
1399
  }
1383
- finally { if (e_3) throw e_3.error; }
1400
+ finally { if (e_4) throw e_4.error; }
1384
1401
  }
1385
1402
  }
1386
1403
  else if (control instanceof FormControl) {
@@ -1436,7 +1453,7 @@ var GenericFilterComponent = /** @class */ (function () {
1436
1453
  * @return {?}
1437
1454
  */
1438
1455
  function (config, settings, reset) {
1439
- var e_4, _a;
1456
+ var e_5, _a;
1440
1457
  /** @type {?} */
1441
1458
  var findPersonControl = this.form ? this.form.get('findPersonControl') : null;
1442
1459
  this.form = this.fb.group({});
@@ -1511,12 +1528,12 @@ var GenericFilterComponent = /** @class */ (function () {
1511
1528
  _loop_1(field);
1512
1529
  }
1513
1530
  }
1514
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
1531
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
1515
1532
  finally {
1516
1533
  try {
1517
1534
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1518
1535
  }
1519
- finally { if (e_4) throw e_4.error; }
1536
+ finally { if (e_5) throw e_5.error; }
1520
1537
  }
1521
1538
  };
1522
1539
  /**
@@ -1532,7 +1549,7 @@ var GenericFilterComponent = /** @class */ (function () {
1532
1549
  * @return {?}
1533
1550
  */
1534
1551
  function (field, settings) {
1535
- var e_5, _a;
1552
+ var e_6, _a;
1536
1553
  /** @type {?} */
1537
1554
  var validators = GenericFilterComponent.addFormValidators(field);
1538
1555
  /** @type {?} */
@@ -1564,12 +1581,12 @@ var GenericFilterComponent = /** @class */ (function () {
1564
1581
  _loop_2(option);
1565
1582
  }
1566
1583
  }
1567
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
1584
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
1568
1585
  finally {
1569
1586
  try {
1570
1587
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1571
1588
  }
1572
- finally { if (e_5) throw e_5.error; }
1589
+ finally { if (e_6) throw e_6.error; }
1573
1590
  }
1574
1591
  return formArray;
1575
1592
  };
@@ -1586,7 +1603,7 @@ var GenericFilterComponent = /** @class */ (function () {
1586
1603
  * @return {?}
1587
1604
  */
1588
1605
  function (field, settings) {
1589
- var e_6, _a;
1606
+ var e_7, _a;
1590
1607
  /** @type {?} */
1591
1608
  var validators = GenericFilterComponent.addFormValidators(field);
1592
1609
  /** @type {?} */
@@ -1606,12 +1623,12 @@ var GenericFilterComponent = /** @class */ (function () {
1606
1623
  formArray.push(new FormControl(defaultValue));
1607
1624
  }
1608
1625
  }
1609
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
1626
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
1610
1627
  finally {
1611
1628
  try {
1612
1629
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1613
1630
  }
1614
- finally { if (e_6) throw e_6.error; }
1631
+ finally { if (e_7) throw e_7.error; }
1615
1632
  }
1616
1633
  }
1617
1634
  }
@@ -1667,7 +1684,7 @@ var GenericFilterComponent = /** @class */ (function () {
1667
1684
  * @return {?}
1668
1685
  */
1669
1686
  function (form) {
1670
- var e_7, _a;
1687
+ var e_8, _a;
1671
1688
  /** @type {?} */
1672
1689
  var errors = [];
1673
1690
  try {
@@ -1683,12 +1700,12 @@ var GenericFilterComponent = /** @class */ (function () {
1683
1700
  }
1684
1701
  }
1685
1702
  }
1686
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
1703
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
1687
1704
  finally {
1688
1705
  try {
1689
1706
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1690
1707
  }
1691
- finally { if (e_7) throw e_7.error; }
1708
+ finally { if (e_8) throw e_8.error; }
1692
1709
  }
1693
1710
  if (errors.length) {
1694
1711
  this.filterService.givenErrors.next(errors);
@@ -4078,1118 +4095,303 @@ if (false) {
4078
4095
 
4079
4096
  /**
4080
4097
  * @fileoverview added by tsickle
4081
- * Generated from: lib/services/locations/location.service.ts
4098
+ * Generated from: lib/models/case-share.model.ts
4082
4099
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4083
4100
  */
4084
- var LocationService = /** @class */ (function () {
4085
- function LocationService(http) {
4086
- this.http = http;
4101
+ /**
4102
+ * @record
4103
+ */
4104
+ function SharedCase() { }
4105
+ if (false) {
4106
+ /** @type {?} */
4107
+ SharedCase.prototype.caseId;
4108
+ /** @type {?} */
4109
+ SharedCase.prototype.caseTitle;
4110
+ /** @type {?|undefined} */
4111
+ SharedCase.prototype.caseTypeId;
4112
+ /** @type {?|undefined} */
4113
+ SharedCase.prototype.roles;
4114
+ /** @type {?|undefined} */
4115
+ SharedCase.prototype.sharedWith;
4116
+ /** @type {?|undefined} */
4117
+ SharedCase.prototype.pendingShares;
4118
+ /** @type {?|undefined} */
4119
+ SharedCase.prototype.pendingUnshares;
4120
+ }
4121
+
4122
+ /**
4123
+ * @fileoverview added by tsickle
4124
+ * Generated from: lib/models/contact-details.model.ts
4125
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4126
+ */
4127
+ /** @enum {string} */
4128
+ var BadgeColour = {
4129
+ BADGE_RED: "hmcts-badge--red",
4130
+ BADGE_BLUE: "hmcts-badge--blue",
4131
+ BADGE_GREEN: "hmcts-badge--green",
4132
+ };
4133
+ /**
4134
+ * @record
4135
+ */
4136
+ function ContactDetailsDataModel() { }
4137
+ if (false) {
4138
+ /** @type {?|undefined} */
4139
+ ContactDetailsDataModel.prototype.title;
4140
+ /** @type {?|undefined} */
4141
+ ContactDetailsDataModel.prototype.badgeColour;
4142
+ /** @type {?|undefined} */
4143
+ ContactDetailsDataModel.prototype.badgeText;
4144
+ /** @type {?|undefined} */
4145
+ ContactDetailsDataModel.prototype.email;
4146
+ /** @type {?|undefined} */
4147
+ ContactDetailsDataModel.prototype.phone;
4148
+ /** @type {?|undefined} */
4149
+ ContactDetailsDataModel.prototype.openingTimes;
4150
+ }
4151
+
4152
+ /**
4153
+ * @fileoverview added by tsickle
4154
+ * Generated from: lib/models/feature-user.ts
4155
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4156
+ */
4157
+ var AnonymousFeatureUser = /** @class */ (function () {
4158
+ function AnonymousFeatureUser() {
4087
4159
  }
4088
- /**
4089
- * @description getAllLocations from service Ids/location type/search term
4090
- * @param serviceIds: SSCS | SSCS,IA split with ','
4091
- * @param locationType: optional | hearing | case_management
4092
- * @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
4093
- * @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4094
- */
4095
- /**
4096
- * \@description getAllLocations from service Ids/location type/search term
4097
- * @param {?} serviceIds
4098
- * @param {?} locationType
4099
- * @param {?} searchTerm
4100
- * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4101
- */
4102
- LocationService.prototype.getAllLocations = /**
4103
- * \@description getAllLocations from service Ids/location type/search term
4104
- * @param {?} serviceIds
4105
- * @param {?} locationType
4106
- * @param {?} searchTerm
4107
- * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4108
- */
4109
- function (serviceIds, locationType, searchTerm) {
4110
- return this.http.get("api/locations/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
4111
- };
4112
- /**
4113
- * @description searchLocations from service Ids/location type/search term
4114
- * @param serviceIds: BBA3 | BBA3,BFA1 split with ','
4115
- * @param locationType: optional | hearing | case_management
4116
- * @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
4117
- * @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4118
- */
4119
- /**
4120
- * \@description searchLocations from service Ids/location type/search term
4121
- * @param {?} serviceIds
4122
- * @param {?} locationType
4123
- * @param {?} searchTerm
4124
- * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4125
- */
4126
- LocationService.prototype.searchLocations = /**
4127
- * \@description searchLocations from service Ids/location type/search term
4128
- * @param {?} serviceIds
4129
- * @param {?} locationType
4130
- * @param {?} searchTerm
4131
- * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4132
- */
4133
- function (serviceIds, locationType, searchTerm) {
4134
- return this.http.get("api/prd/location/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
4135
- };
4136
- LocationService.decorators = [
4137
- { type: Injectable, args: [{
4138
- providedIn: 'root'
4139
- },] }
4140
- ];
4141
- /** @nocollapse */
4142
- LocationService.ctorParameters = function () { return [
4143
- { type: HttpClient }
4144
- ]; };
4145
- /** @nocollapse */ LocationService.ngInjectableDef = ɵɵdefineInjectable({ factory: function LocationService_Factory() { return new LocationService(ɵɵinject(HttpClient)); }, token: LocationService, providedIn: "root" });
4146
- return LocationService;
4160
+ return AnonymousFeatureUser;
4147
4161
  }());
4148
4162
  if (false) {
4149
- /**
4150
- * @type {?}
4151
- * @private
4152
- */
4153
- LocationService.prototype.http;
4163
+ /** @type {?} */
4164
+ AnonymousFeatureUser.prototype.anonymous;
4165
+ }
4166
+ var LoggedInFeatureUser = /** @class */ (function () {
4167
+ function LoggedInFeatureUser() {
4168
+ }
4169
+ return LoggedInFeatureUser;
4170
+ }());
4171
+ if (false) {
4172
+ /** @type {?} */
4173
+ LoggedInFeatureUser.prototype.key;
4174
+ /** @type {?} */
4175
+ LoggedInFeatureUser.prototype.custom;
4154
4176
  }
4155
4177
 
4156
4178
  /**
4157
4179
  * @fileoverview added by tsickle
4158
- * Generated from: lib/components/search-location/search-location.component.ts
4180
+ * Generated from: lib/models/idle-config.model.ts
4159
4181
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4160
4182
  */
4161
- var SearchLocationComponent = /** @class */ (function () {
4162
- function SearchLocationComponent(locationService, fb, cd) {
4163
- this.locationService = locationService;
4164
- this.fb = fb;
4165
- this.cd = cd;
4166
- this.disabled = null;
4167
- this.singleMode = false;
4168
- this.locationType = '';
4169
- this.serviceIds = '';
4170
- this.submitted = true;
4171
- this.delay = 500;
4172
- this.showAutocomplete = false;
4173
- this.locations = [];
4174
- this.locationSelected = new EventEmitter();
4175
- this.locationInputChanged = new EventEmitter();
4176
- this.searchLocationChanged = new EventEmitter();
4177
- this.minSearchCharacters = 3;
4178
- this.term = '';
4179
- this.pSelectedLocations = [];
4180
- this.pReset = true;
4181
- this.form = this.fb.group({
4182
- searchTerm: ['']
4183
- });
4184
- }
4185
- Object.defineProperty(SearchLocationComponent.prototype, "reset", {
4186
- get: /**
4187
- * @return {?}
4188
- */
4189
- function () {
4190
- return this.pReset;
4191
- },
4192
- set: /**
4193
- * @param {?} value
4194
- * @return {?}
4195
- */
4196
- function (value) {
4197
- this.pReset = value;
4198
- this.resetSearchTerm();
4199
- },
4200
- enumerable: true,
4201
- configurable: true
4202
- });
4203
- Object.defineProperty(SearchLocationComponent.prototype, "selectedLocations", {
4204
- get: /**
4205
- * @return {?}
4206
- */
4207
- function () {
4208
- return this.pSelectedLocations;
4209
- },
4210
- set: /**
4211
- * @param {?} value
4212
- * @return {?}
4213
- */
4214
- function (value) {
4215
- this.pSelectedLocations = value;
4216
- },
4217
- enumerable: true,
4218
- configurable: true
4219
- });
4220
- /**
4221
- * @return {?}
4222
- */
4223
- SearchLocationComponent.prototype.ngOnInit = /**
4224
- * @return {?}
4225
- */
4226
- function () {
4227
- if (this.singleMode && this.selectedLocations.length > 0) {
4228
- /** @type {?} */
4229
- var location_1 = this.selectedLocations[0];
4230
- this.form.controls.searchTerm.patchValue(location_1.site_name, { emitEvent: false, onlySelf: true });
4231
- }
4232
- this.search();
4233
- };
4234
- /**
4235
- * @param {?} term
4236
- * @return {?}
4237
- */
4238
- SearchLocationComponent.prototype.filter = /**
4239
- * @param {?} term
4240
- * @return {?}
4241
- */
4242
- function (term) {
4243
- var _this = this;
4244
- this.getLocations(term).pipe(map((/**
4245
- * @param {?} locations
4246
- * @return {?}
4247
- */
4248
- function (locations) { return _this.removeSelectedLocations(locations); })));
4249
- };
4250
- /**
4251
- * @param {?} location
4252
- * @return {?}
4253
- */
4254
- SearchLocationComponent.prototype.onSelectionChange = /**
4255
- * @param {?} location
4256
- * @return {?}
4257
- */
4258
- function (location) {
4259
- this.form.controls.searchTerm.patchValue(location.site_name, { emitEvent: false, onlySelf: true });
4260
- this.locationSelected.emit(location);
4261
- };
4262
- /**
4263
- * @return {?}
4264
- */
4265
- SearchLocationComponent.prototype.search = /**
4266
- * @return {?}
4267
- */
4268
- function () {
4269
- var _this = this;
4270
- this.form.controls.searchTerm.valueChanges
4271
- .pipe(tap((/**
4272
- * @param {?} term
4273
- * @return {?}
4274
- */
4275
- function (term) { return _this.locationInputChanged.next(term); })), tap((/**
4276
- * @return {?}
4277
- */
4278
- function () { return _this.locations = []; })), tap((/**
4279
- * @param {?} term
4280
- * @return {?}
4281
- */
4282
- function (term) { return _this.term = term; })), filter((/**
4283
- * @param {?} term
4284
- * @return {?}
4285
- */
4286
- function (term) { return !!term && term.length >= _this.minSearchCharacters; })), debounceTime(this.delay), mergeMap((/**
4287
- * @param {?} value
4288
- * @return {?}
4289
- */
4290
- function (value) { return _this.getLocations(value); })), map((/**
4291
- * @param {?} locations
4292
- * @return {?}
4293
- */
4294
- function (locations) { return _this.removeSelectedLocations(locations); }))).subscribe((/**
4295
- * @param {?} locations
4296
- * @return {?}
4297
- */
4298
- function (locations) {
4299
- _this.locations = locations;
4300
- _this.cd.markForCheck();
4301
- if (locations.length === 1 && _this.term === locations[0].site_name && !_this.singleMode) {
4302
- _this.locationSelected.emit(locations[0]);
4303
- _this.showAutocomplete = false;
4304
- return;
4305
- }
4306
- _this.showAutocomplete = true;
4307
- }));
4308
- };
4309
- /**
4310
- * @return {?}
4311
- */
4312
- SearchLocationComponent.prototype.onInput = /**
4313
- * @return {?}
4314
- */
4315
- function () {
4316
- this.searchLocationChanged.emit();
4317
- };
4318
- /**
4319
- * @param {?} term
4320
- * @return {?}
4321
- */
4322
- SearchLocationComponent.prototype.getLocations = /**
4323
- * @param {?} term
4324
- * @return {?}
4325
- */
4326
- function (term) {
4327
- return this.locationService.getAllLocations(this.serviceIds, this.locationType, term);
4328
- };
4329
- /**
4330
- * @return {?}
4331
- */
4332
- SearchLocationComponent.prototype.resetSearchTerm = /**
4333
- * @return {?}
4334
- */
4335
- function () {
4336
- this.form.controls.searchTerm.patchValue('', { emitEvent: false, onlySelf: true });
4337
- };
4338
- /**
4339
- * @private
4340
- * @param {?} locations
4341
- * @return {?}
4342
- */
4343
- SearchLocationComponent.prototype.removeSelectedLocations = /**
4344
- * @private
4345
- * @param {?} locations
4346
- * @return {?}
4347
- */
4348
- function (locations) {
4349
- var _this = this;
4350
- if (this.singleMode) {
4351
- return locations;
4352
- }
4353
- return locations.filter((/**
4354
- * @param {?} location
4355
- * @return {?}
4356
- */
4357
- function (location) { return !_this.selectedLocations.map((/**
4358
- * @param {?} selectedLocation
4359
- * @return {?}
4360
- */
4361
- function (selectedLocation) { return selectedLocation.epimms_id; })).includes(location.epimms_id) && location.site_name; }));
4362
- };
4363
- SearchLocationComponent.decorators = [
4364
- { type: Component, args: [{
4365
- selector: 'exui-search-location',
4366
- 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",
4367
- 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}"]
4368
- }] }
4369
- ];
4370
- /** @nocollapse */
4371
- SearchLocationComponent.ctorParameters = function () { return [
4372
- { type: LocationService },
4373
- { type: FormBuilder },
4374
- { type: ChangeDetectorRef }
4375
- ]; };
4376
- SearchLocationComponent.propDecorators = {
4377
- control: [{ type: Input }],
4378
- disabled: [{ type: Input }],
4379
- singleMode: [{ type: Input }],
4380
- locationType: [{ type: Input }],
4381
- serviceIds: [{ type: Input }],
4382
- submitted: [{ type: Input }],
4383
- delay: [{ type: Input }],
4384
- form: [{ type: Input }],
4385
- showAutocomplete: [{ type: Input }],
4386
- locations: [{ type: Input }],
4387
- locationSelected: [{ type: Output }],
4388
- locationInputChanged: [{ type: Output }],
4389
- searchLocationChanged: [{ type: Output }],
4390
- reset: [{ type: Input }],
4391
- selectedLocations: [{ type: Input }]
4392
- };
4393
- return SearchLocationComponent;
4394
- }());
4183
+ /**
4184
+ * @record
4185
+ */
4186
+ function IdleConfigModel() { }
4395
4187
  if (false) {
4396
4188
  /** @type {?} */
4397
- SearchLocationComponent.prototype.control;
4398
- /** @type {?} */
4399
- SearchLocationComponent.prototype.disabled;
4189
+ IdleConfigModel.prototype.timeout;
4400
4190
  /** @type {?} */
4401
- SearchLocationComponent.prototype.singleMode;
4191
+ IdleConfigModel.prototype.idleMilliseconds;
4402
4192
  /** @type {?} */
4403
- SearchLocationComponent.prototype.locationType;
4193
+ IdleConfigModel.prototype.keepAliveInSeconds;
4194
+ /** @type {?|undefined} */
4195
+ IdleConfigModel.prototype.idleServiceName;
4196
+ }
4197
+
4198
+ /**
4199
+ * @fileoverview added by tsickle
4200
+ * Generated from: lib/models/location.model.ts
4201
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4202
+ */
4203
+ /**
4204
+ * @record
4205
+ */
4206
+ function LocationModel() { }
4207
+ if (false) {
4404
4208
  /** @type {?} */
4405
- SearchLocationComponent.prototype.serviceIds;
4209
+ LocationModel.prototype.court_venue_id;
4406
4210
  /** @type {?} */
4407
- SearchLocationComponent.prototype.submitted;
4211
+ LocationModel.prototype.site_name;
4212
+ /** @type {?|undefined} */
4213
+ LocationModel.prototype.court_name;
4408
4214
  /** @type {?} */
4409
- SearchLocationComponent.prototype.delay;
4215
+ LocationModel.prototype.epimms_id;
4216
+ /** @type {?|undefined} */
4217
+ LocationModel.prototype.open_for_public;
4410
4218
  /** @type {?} */
4411
- SearchLocationComponent.prototype.form;
4219
+ LocationModel.prototype.court_type_id;
4412
4220
  /** @type {?} */
4413
- SearchLocationComponent.prototype.showAutocomplete;
4221
+ LocationModel.prototype.court_type;
4414
4222
  /** @type {?} */
4415
- SearchLocationComponent.prototype.locations;
4223
+ LocationModel.prototype.region_id;
4416
4224
  /** @type {?} */
4417
- SearchLocationComponent.prototype.locationSelected;
4225
+ LocationModel.prototype.region;
4226
+ /** @type {?|undefined} */
4227
+ LocationModel.prototype.cluster_id;
4228
+ /** @type {?|undefined} */
4229
+ LocationModel.prototype.cluster_name;
4230
+ /** @type {?|undefined} */
4231
+ LocationModel.prototype.court_status;
4232
+ /** @type {?|undefined} */
4233
+ LocationModel.prototype.court_open_date;
4234
+ /** @type {?|undefined} */
4235
+ LocationModel.prototype.closed_date;
4418
4236
  /** @type {?} */
4419
- SearchLocationComponent.prototype.locationInputChanged;
4237
+ LocationModel.prototype.postcode;
4420
4238
  /** @type {?} */
4421
- SearchLocationComponent.prototype.searchLocationChanged;
4239
+ LocationModel.prototype.court_address;
4240
+ /** @type {?|undefined} */
4241
+ LocationModel.prototype.phone_number;
4242
+ /** @type {?|undefined} */
4243
+ LocationModel.prototype.court_location_code;
4244
+ /** @type {?|undefined} */
4245
+ LocationModel.prototype.dx_address;
4246
+ /** @type {?|undefined} */
4247
+ LocationModel.prototype.welsh_site_name;
4248
+ /** @type {?|undefined} */
4249
+ LocationModel.prototype.welsh_court_address;
4250
+ /** @type {?|undefined} */
4251
+ LocationModel.prototype.venue_name;
4422
4252
  /** @type {?} */
4423
- SearchLocationComponent.prototype.minSearchCharacters;
4253
+ LocationModel.prototype.is_case_management_location;
4424
4254
  /** @type {?} */
4425
- SearchLocationComponent.prototype.term;
4426
- /**
4427
- * @type {?}
4428
- * @private
4429
- */
4430
- SearchLocationComponent.prototype.pSelectedLocations;
4431
- /**
4432
- * @type {?}
4433
- * @private
4434
- */
4435
- SearchLocationComponent.prototype.pReset;
4436
- /**
4437
- * @type {?}
4438
- * @private
4439
- */
4440
- SearchLocationComponent.prototype.locationService;
4441
- /**
4442
- * @type {?}
4443
- * @private
4444
- */
4445
- SearchLocationComponent.prototype.fb;
4446
- /**
4447
- * @type {?}
4448
- * @private
4449
- */
4450
- SearchLocationComponent.prototype.cd;
4255
+ LocationModel.prototype.is_hearing_location;
4451
4256
  }
4452
-
4453
4257
  /**
4454
- * @fileoverview added by tsickle
4455
- * Generated from: lib/components/find-location/find-location.component.ts
4456
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4258
+ * @record
4457
4259
  */
4458
- var FindLocationComponent = /** @class */ (function () {
4459
- function FindLocationComponent() {
4460
- this.locationFieldChanged = new EventEmitter();
4461
- this.selectedLocations = [];
4462
- this.submitted = true;
4463
- this.enableAddLocationButton = true;
4464
- this.locationTitle = 'Search for a location by name';
4465
- this.disableInputField = false;
4466
- this.locations = [];
4467
- this.tempSelectedLocation = null;
4468
- this.serviceIds = 'SSCS,IA';
4469
- this.pServices = [];
4470
- this.pDisabled = false;
4471
- }
4472
- Object.defineProperty(FindLocationComponent.prototype, "disabled", {
4473
- get: /**
4474
- * @return {?}
4475
- */
4476
- function () {
4477
- return this.pDisabled;
4478
- },
4479
- set: /**
4480
- * @param {?} value
4481
- * @return {?}
4482
- */
4483
- function (value) {
4484
- if (value) {
4485
- this.searchLocationComponent.resetSearchTerm();
4486
- this.removeSelectedValues();
4487
- }
4488
- this.pDisabled = this.disableInputField === true ? true : null;
4489
- },
4490
- enumerable: true,
4491
- configurable: true
4492
- });
4493
- Object.defineProperty(FindLocationComponent.prototype, "services", {
4494
- get: /**
4495
- * @return {?}
4496
- */
4497
- function () {
4498
- return this.pServices;
4499
- },
4500
- set: /**
4501
- * @param {?} value
4502
- * @return {?}
4503
- */
4504
- function (value) {
4505
- var _this = this;
4506
- this.pServices = value;
4507
- /** @type {?} */
4508
- var field = this.fields.find((/**
4509
- * @param {?} f
4510
- * @return {?}
4511
- */
4512
- function (f) { return f.name === _this.field.findLocationField; }));
4513
- if (field) {
4514
- if (typeof value === 'string') {
4515
- this.serviceIds = value;
4516
- }
4517
- else {
4518
- this.serviceIds = getValues(field.options, value).filter((/**
4519
- * @param {?} x
4520
- * @return {?}
4521
- */
4522
- function (x) { return x !== 'services_all'; })).join(',');
4523
- }
4524
- }
4525
- },
4526
- enumerable: true,
4527
- configurable: true
4528
- });
4529
- /**
4530
- * @return {?}
4531
- */
4532
- FindLocationComponent.prototype.addLocation = /**
4533
- * @return {?}
4534
- */
4535
- function () {
4536
- if (this.tempSelectedLocation) {
4537
- this.selectedLocations = __spread(this.selectedLocations, [this.tempSelectedLocation]);
4538
- this.addSelectedLocationsToForm([this.tempSelectedLocation]);
4539
- this.tempSelectedLocation = null;
4540
- this.locations = [];
4541
- this.searchLocationComponent.resetSearchTerm();
4542
- }
4543
- };
4544
- /**
4545
- * @param {?} location
4546
- * @return {?}
4547
- */
4548
- FindLocationComponent.prototype.removeLocation = /**
4549
- * @param {?} location
4550
- * @return {?}
4551
- */
4552
- function (location) {
4553
- if (location.epimms_id) {
4554
- this.selectedLocations = this.selectedLocations.filter((/**
4555
- * @param {?} selectedLocation
4556
- * @return {?}
4557
- */
4558
- function (selectedLocation) { return selectedLocation.epimms_id !== location.epimms_id; }));
4559
- /** @type {?} */
4560
- var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
4561
- /** @type {?} */
4562
- var index = ((/** @type {?} */ (formArray.value))).findIndex((/**
4563
- * @param {?} selectedLocation
4564
- * @return {?}
4565
- */
4566
- function (selectedLocation) { return selectedLocation.epimms_id === location.epimms_id; }));
4567
- if (index > -1) {
4568
- formArray.removeAt(index);
4569
- }
4570
- }
4571
- };
4572
- /**
4573
- * @param {?} term
4574
- * @return {?}
4575
- */
4576
- FindLocationComponent.prototype.onInputChanged = /**
4577
- * @param {?} term
4578
- * @return {?}
4579
- */
4580
- function (term) {
4581
- // if the filter is in single mode clear the selected locations
4582
- if (typeof term === 'string' && this.field.maxSelected === 1) {
4583
- this.removeSelectedValues();
4584
- }
4585
- };
4586
- /**
4587
- * @return {?}
4588
- */
4589
- FindLocationComponent.prototype.onSearchInputChanged = /**
4590
- * @return {?}
4591
- */
4592
- function () {
4593
- this.locationFieldChanged.emit();
4594
- };
4595
- /**
4596
- * @param {?} location
4597
- * @return {?}
4598
- */
4599
- FindLocationComponent.prototype.onLocationSelected = /**
4600
- * @param {?} location
4601
- * @return {?}
4602
- */
4603
- function (location) {
4604
- if (this.field.maxSelected === 1) {
4605
- this.removeSelectedValues();
4606
- this.addSelectedLocationsToForm([location]);
4607
- }
4608
- else {
4609
- if (!this.selectedLocations.find((/**
4610
- * @param {?} x
4611
- * @return {?}
4612
- */
4613
- function (x) { return x.epimms_id === location.epimms_id; }))) {
4614
- if (location.epimms_id) {
4615
- this.tempSelectedLocation = location;
4616
- }
4617
- }
4618
- }
4619
- };
4620
- /**
4621
- * @private
4622
- * @return {?}
4623
- */
4624
- FindLocationComponent.prototype.removeSelectedValues = /**
4625
- * @private
4626
- * @return {?}
4627
- */
4628
- function () {
4629
- /** @type {?} */
4630
- var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
4631
- for (var i = 0; i < formArray.length; i++) {
4632
- formArray.removeAt(i);
4633
- }
4634
- this.selectedLocations = [];
4635
- };
4636
- /**
4637
- * @private
4638
- * @param {?} locations
4639
- * @return {?}
4640
- */
4641
- FindLocationComponent.prototype.addSelectedLocationsToForm = /**
4642
- * @private
4643
- * @param {?} locations
4644
- * @return {?}
4645
- */
4646
- function (locations) {
4647
- var e_1, _a;
4648
- /** @type {?} */
4649
- var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
4650
- try {
4651
- for (var locations_1 = __values(locations), locations_1_1 = locations_1.next(); !locations_1_1.done; locations_1_1 = locations_1.next()) {
4652
- var location_1 = locations_1_1.value;
4653
- formArray.push(new FormControl(location_1));
4654
- }
4655
- }
4656
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
4657
- finally {
4658
- try {
4659
- if (locations_1_1 && !locations_1_1.done && (_a = locations_1.return)) _a.call(locations_1);
4660
- }
4661
- finally { if (e_1) throw e_1.error; }
4662
- }
4663
- };
4664
- FindLocationComponent.decorators = [
4665
- { type: Component, args: [{
4666
- selector: 'xuilib-find-location',
4667
- 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 [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",
4668
- styles: [""]
4669
- }] }
4670
- ];
4671
- FindLocationComponent.propDecorators = {
4672
- locationFieldChanged: [{ type: Output }],
4673
- selectedLocations: [{ type: Input }],
4674
- submitted: [{ type: Input }],
4675
- enableAddLocationButton: [{ type: Input }],
4676
- form: [{ type: Input }],
4677
- field: [{ type: Input }],
4678
- fields: [{ type: Input }],
4679
- locationTitle: [{ type: Input }],
4680
- disableInputField: [{ type: Input }],
4681
- searchLocationComponent: [{ type: ViewChild, args: [SearchLocationComponent, { static: true },] }],
4682
- disabled: [{ type: Input }],
4683
- services: [{ type: Input }]
4684
- };
4685
- return FindLocationComponent;
4686
- }());
4260
+ function LocationByEPIMMSModel() { }
4687
4261
  if (false) {
4688
4262
  /** @type {?} */
4689
- FindLocationComponent.prototype.locationFieldChanged;
4690
- /** @type {?} */
4691
- FindLocationComponent.prototype.selectedLocations;
4692
- /** @type {?} */
4693
- FindLocationComponent.prototype.submitted;
4694
- /** @type {?} */
4695
- FindLocationComponent.prototype.enableAddLocationButton;
4696
- /** @type {?} */
4697
- FindLocationComponent.prototype.form;
4698
- /** @type {?} */
4699
- FindLocationComponent.prototype.field;
4263
+ LocationByEPIMMSModel.prototype.epimms_id;
4700
4264
  /** @type {?} */
4701
- FindLocationComponent.prototype.fields;
4265
+ LocationByEPIMMSModel.prototype.site_name;
4266
+ /** @type {?|undefined} */
4267
+ LocationByEPIMMSModel.prototype.court_name;
4268
+ /** @type {?|undefined} */
4269
+ LocationByEPIMMSModel.prototype.open_for_public;
4702
4270
  /** @type {?} */
4703
- FindLocationComponent.prototype.locationTitle;
4271
+ LocationByEPIMMSModel.prototype.region_id;
4704
4272
  /** @type {?} */
4705
- FindLocationComponent.prototype.disableInputField;
4273
+ LocationByEPIMMSModel.prototype.region;
4274
+ /** @type {?|undefined} */
4275
+ LocationByEPIMMSModel.prototype.cluster_id;
4276
+ /** @type {?|undefined} */
4277
+ LocationByEPIMMSModel.prototype.cluster_name;
4278
+ /** @type {?|undefined} */
4279
+ LocationByEPIMMSModel.prototype.court_status;
4280
+ /** @type {?|undefined} */
4281
+ LocationByEPIMMSModel.prototype.court_open_date;
4282
+ /** @type {?|undefined} */
4283
+ LocationByEPIMMSModel.prototype.closed_date;
4706
4284
  /** @type {?} */
4707
- FindLocationComponent.prototype.locations;
4285
+ LocationByEPIMMSModel.prototype.postcode;
4708
4286
  /** @type {?} */
4709
- FindLocationComponent.prototype.tempSelectedLocation;
4287
+ LocationByEPIMMSModel.prototype.court_address;
4288
+ /** @type {?|undefined} */
4289
+ LocationByEPIMMSModel.prototype.phone_number;
4290
+ /** @type {?|undefined} */
4291
+ LocationByEPIMMSModel.prototype.court_location_code;
4292
+ /** @type {?|undefined} */
4293
+ LocationByEPIMMSModel.prototype.dx_address;
4294
+ /** @type {?|undefined} */
4295
+ LocationByEPIMMSModel.prototype.welsh_site_name;
4296
+ /** @type {?|undefined} */
4297
+ LocationByEPIMMSModel.prototype.welsh_court_address;
4298
+ /** @type {?|undefined} */
4299
+ LocationByEPIMMSModel.prototype.venue_name;
4710
4300
  /** @type {?} */
4711
- FindLocationComponent.prototype.serviceIds;
4301
+ LocationByEPIMMSModel.prototype.is_case_management_location;
4712
4302
  /** @type {?} */
4713
- FindLocationComponent.prototype.searchLocationComponent;
4714
- /**
4715
- * @type {?}
4716
- * @private
4717
- */
4718
- FindLocationComponent.prototype.pServices;
4719
- /**
4720
- * @type {?}
4721
- * @private
4722
- */
4723
- FindLocationComponent.prototype.pDisabled;
4303
+ LocationByEPIMMSModel.prototype.is_hearing_location;
4724
4304
  }
4725
-
4726
4305
  /**
4727
- * @fileoverview added by tsickle
4728
- * Generated from: lib/components/pagination/pagination.component.ts
4729
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4306
+ * @record
4730
4307
  */
4731
- var PaginationComponent = /** @class */ (function () {
4732
- function PaginationComponent() {
4733
- this.previousPage = new EventEmitter();
4734
- this.nextPage = new EventEmitter();
4735
- }
4736
- /**
4737
- * @return {?}
4738
- */
4739
- PaginationComponent.prototype.onPrevious = /**
4740
- * @return {?}
4741
- */
4742
- function () {
4743
- this.previousPage.emit(null);
4744
- };
4745
- /**
4746
- * @return {?}
4747
- */
4748
- PaginationComponent.prototype.onNext = /**
4749
- * @return {?}
4750
- */
4751
- function () {
4752
- this.nextPage.emit(null);
4753
- };
4754
- PaginationComponent.decorators = [
4755
- { type: Component, args: [{
4756
- selector: 'xuilib-pagination',
4757
- 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",
4758
- styles: ["span.hmcts-pagination__link:hover{color:revert}"]
4759
- }] }
4760
- ];
4761
- /** @nocollapse */
4762
- PaginationComponent.ctorParameters = function () { return []; };
4763
- PaginationComponent.propDecorators = {
4764
- moreItems: [{ type: Input }],
4765
- firstRecord: [{ type: Input }],
4766
- previousPage: [{ type: Output }],
4767
- nextPage: [{ type: Output }]
4768
- };
4769
- return PaginationComponent;
4770
- }());
4308
+ function LocationsByService() { }
4771
4309
  if (false) {
4310
+ /** @type {?|undefined} */
4311
+ LocationsByService.prototype.service;
4312
+ /** @type {?|undefined} */
4313
+ LocationsByService.prototype.serviceCode;
4314
+ /** @type {?|undefined} */
4315
+ LocationsByService.prototype.bookable;
4772
4316
  /** @type {?} */
4773
- PaginationComponent.prototype.moreItems;
4774
- /** @type {?} */
4775
- PaginationComponent.prototype.firstRecord;
4776
- /** @type {?} */
4777
- PaginationComponent.prototype.previousPage;
4778
- /** @type {?} */
4779
- PaginationComponent.prototype.nextPage;
4317
+ LocationsByService.prototype.locations;
4780
4318
  }
4319
+ /** @enum {string} */
4320
+ var BookingCheckType = {
4321
+ NO_CHECK: "NO_CHECK",
4322
+ BOOKINGS_AND_BASE: "BOOKINGS_AND_BASE",
4323
+ POSSIBLE_BOOKINGS: "POSSIBLE_BOOKINGS",
4324
+ };
4781
4325
 
4782
4326
  /**
4783
4327
  * @fileoverview added by tsickle
4784
- * Generated from: lib/components/public_api.ts
4785
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4786
- */
4787
-
4788
- /**
4789
- * @fileoverview added by tsickle
4790
- * Generated from: lib/components/index.ts
4328
+ * Generated from: lib/models/pagination.model.ts
4791
4329
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4792
4330
  */
4793
-
4794
4331
  /**
4795
- * @fileoverview added by tsickle
4796
- * Generated from: lib/directives/feature-toggle/feature-toggle.directive.ts
4797
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4332
+ * @record
4798
4333
  */
4799
- var FeatureToggleDirective = /** @class */ (function () {
4800
- function FeatureToggleDirective(service, viewContainer, templateRef) {
4801
- this.service = service;
4802
- this.viewContainer = viewContainer;
4803
- this.templateRef = templateRef;
4804
- }
4805
- Object.defineProperty(FeatureToggleDirective.prototype, "xuilibFeatureToggle", {
4806
- set: /**
4807
- * @param {?} feature
4808
- * @return {?}
4809
- */
4810
- function (feature) {
4811
- this.feature = feature;
4812
- this.updateSubscription();
4813
- },
4814
- enumerable: true,
4815
- configurable: true
4816
- });
4817
- /**
4818
- * @return {?}
4819
- */
4820
- FeatureToggleDirective.prototype.ngOnDestroy = /**
4821
- * @return {?}
4822
- */
4823
- function () {
4824
- if (this.subscription) {
4825
- this.subscription.unsubscribe();
4826
- }
4827
- };
4828
- /**
4829
- * @private
4830
- * @return {?}
4831
- */
4832
- FeatureToggleDirective.prototype.updateSubscription = /**
4833
- * @private
4834
- * @return {?}
4835
- */
4836
- function () {
4837
- var _this = this;
4838
- this.subscription = this.service.isEnabled(this.feature).subscribe((/**
4839
- * @param {?} enabled
4840
- * @return {?}
4841
- */
4842
- function (enabled) {
4843
- if (enabled) {
4844
- _this.viewContainer.createEmbeddedView(_this.templateRef);
4845
- }
4846
- else {
4847
- _this.viewContainer.clear();
4848
- }
4849
- }));
4850
- };
4851
- FeatureToggleDirective.decorators = [
4852
- { type: Directive, args: [{
4853
- selector: '[xuilibFeatureToggle]'
4854
- },] }
4855
- ];
4856
- /** @nocollapse */
4857
- FeatureToggleDirective.ctorParameters = function () { return [
4858
- { type: FeatureToggleService },
4859
- { type: ViewContainerRef },
4860
- { type: TemplateRef }
4861
- ]; };
4862
- FeatureToggleDirective.propDecorators = {
4863
- xuilibFeatureToggle: [{ type: Input }]
4864
- };
4865
- return FeatureToggleDirective;
4866
- }());
4334
+ function Pagination() { }
4867
4335
  if (false) {
4868
- /**
4869
- * @type {?}
4870
- * @private
4871
- */
4872
- FeatureToggleDirective.prototype.feature;
4873
- /**
4874
- * @type {?}
4875
- * @private
4876
- */
4877
- FeatureToggleDirective.prototype.subscription;
4878
- /**
4879
- * @type {?}
4880
- * @private
4881
- */
4882
- FeatureToggleDirective.prototype.service;
4883
- /**
4884
- * @type {?}
4885
- * @private
4886
- */
4887
- FeatureToggleDirective.prototype.viewContainer;
4888
- /**
4889
- * @type {?}
4890
- * @private
4891
- */
4892
- FeatureToggleDirective.prototype.templateRef;
4336
+ /** @type {?} */
4337
+ Pagination.prototype.itemsPerPage;
4338
+ /** @type {?} */
4339
+ Pagination.prototype.currentPage;
4340
+ /** @type {?} */
4341
+ Pagination.prototype.totalItems;
4893
4342
  }
4894
4343
 
4895
4344
  /**
4896
4345
  * @fileoverview added by tsickle
4897
- * Generated from: lib/directives/let/let.directive.ts
4346
+ * Generated from: lib/models/person.model.ts
4898
4347
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4899
4348
  */
4900
4349
  /**
4901
- * @template T
4350
+ * @record
4902
4351
  */
4903
- var /**
4904
- * @template T
4352
+ function Person() { }
4353
+ if (false) {
4354
+ /** @type {?} */
4355
+ Person.prototype.id;
4356
+ /** @type {?} */
4357
+ Person.prototype.name;
4358
+ /** @type {?|undefined} */
4359
+ Person.prototype.email;
4360
+ /** @type {?} */
4361
+ Person.prototype.domain;
4362
+ /** @type {?|undefined} */
4363
+ Person.prototype.knownAs;
4364
+ }
4365
+ /**
4366
+ * @record
4905
4367
  */
4906
- LetContext = /** @class */ (function () {
4907
- function LetContext() {
4908
- this.$implicit = null;
4909
- this.xuilibLet = null;
4910
- }
4911
- return LetContext;
4912
- }());
4368
+ function JudicialUserModel() { }
4913
4369
  if (false) {
4914
4370
  /** @type {?} */
4915
- LetContext.prototype.$implicit;
4371
+ JudicialUserModel.prototype.emailId;
4916
4372
  /** @type {?} */
4917
- LetContext.prototype.xuilibLet;
4373
+ JudicialUserModel.prototype.fullName;
4374
+ /** @type {?} */
4375
+ JudicialUserModel.prototype.idamId;
4376
+ /** @type {?} */
4377
+ JudicialUserModel.prototype.isJudge;
4378
+ /** @type {?} */
4379
+ JudicialUserModel.prototype.isMagistrate;
4380
+ /** @type {?} */
4381
+ JudicialUserModel.prototype.isPanelMember;
4382
+ /** @type {?} */
4383
+ JudicialUserModel.prototype.knownAs;
4384
+ /** @type {?} */
4385
+ JudicialUserModel.prototype.personalCode;
4386
+ /** @type {?} */
4387
+ JudicialUserModel.prototype.surname;
4388
+ /** @type {?} */
4389
+ JudicialUserModel.prototype.title;
4918
4390
  }
4919
4391
  /**
4920
- * @template T
4392
+ * @record
4921
4393
  */
4922
- var LetDirective = /** @class */ (function () {
4923
- function LetDirective(viewContainer, templateRef) {
4924
- this.viewContainer = viewContainer;
4925
- this.context = new LetContext();
4926
- this.viewContainer.createEmbeddedView(templateRef, this.context);
4927
- }
4928
- Object.defineProperty(LetDirective.prototype, "xuilibLet", {
4929
- set: /**
4930
- * @param {?} condition
4931
- * @return {?}
4932
- */
4933
- function (condition) {
4934
- this.context.$implicit = this.context.xuilibLet = condition;
4935
- },
4936
- enumerable: true,
4937
- configurable: true
4938
- });
4939
- LetDirective.decorators = [
4940
- { type: Directive, args: [{
4941
- selector: '[xuilibLet]'
4942
- },] }
4943
- ];
4944
- /** @nocollapse */
4945
- LetDirective.ctorParameters = function () { return [
4946
- { type: ViewContainerRef },
4947
- { type: TemplateRef }
4948
- ]; };
4949
- LetDirective.propDecorators = {
4950
- xuilibLet: [{ type: Input }]
4951
- };
4952
- return LetDirective;
4953
- }());
4954
- if (false) {
4955
- /**
4956
- * @type {?}
4957
- * @private
4958
- */
4959
- LetDirective.prototype.context;
4960
- /**
4961
- * @type {?}
4962
- * @private
4963
- */
4964
- LetDirective.prototype.viewContainer;
4965
- }
4966
-
4967
- /**
4968
- * @fileoverview added by tsickle
4969
- * Generated from: lib/directives/public-api.ts
4970
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4971
- */
4972
-
4973
- /**
4974
- * @fileoverview added by tsickle
4975
- * Generated from: lib/directives/index.ts
4976
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4977
- */
4978
-
4979
- /**
4980
- * @fileoverview added by tsickle
4981
- * Generated from: lib/components/exui-main-wrapper/exui-page-wrapper.component.ts
4982
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4983
- */
4984
- /**
4985
- * Main Page Wrapper
4986
- * Responsible for:
4987
- * Wrapping content within the gov-uk html elements bellow
4988
- * \@prop showBackLink - switch for back link
4989
- * \@prop appHeaderTitle = appHeaderTitle
4990
- * \@prop appFunctionalTitle = appFunctionalTitle
4991
- * \@prop summaryErrors list of errors
4992
- * \@prop back link, appHeaderTitle (appHeaderTitle), summaryErrors (array of errors)
4993
- */
4994
- var ExuiPageWrapperComponent = /** @class */ (function () {
4995
- function ExuiPageWrapperComponent() {
4996
- }
4997
- ExuiPageWrapperComponent.decorators = [
4998
- { type: Component, args: [{
4999
- selector: 'exui-page-wrapper',
5000
- 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",
5001
- styles: [".page{width:100%}"]
5002
- }] }
5003
- ];
5004
- /** @nocollapse */
5005
- ExuiPageWrapperComponent.ctorParameters = function () { return []; };
5006
- ExuiPageWrapperComponent.propDecorators = {
5007
- backLink: [{ type: Input }],
5008
- title: [{ type: Input }],
5009
- fnTitle: [{ type: Input }]
5010
- };
5011
- return ExuiPageWrapperComponent;
5012
- }());
5013
- if (false) {
5014
- /** @type {?} */
5015
- ExuiPageWrapperComponent.prototype.backLink;
5016
- /** @type {?} */
5017
- ExuiPageWrapperComponent.prototype.title;
5018
- /** @type {?} */
5019
- ExuiPageWrapperComponent.prototype.fnTitle;
5020
- }
5021
-
5022
- /**
5023
- * @fileoverview added by tsickle
5024
- * Generated from: lib/models/case-share.model.ts
5025
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5026
- */
5027
- /**
5028
- * @record
5029
- */
5030
- function SharedCase() { }
5031
- if (false) {
5032
- /** @type {?} */
5033
- SharedCase.prototype.caseId;
5034
- /** @type {?} */
5035
- SharedCase.prototype.caseTitle;
5036
- /** @type {?|undefined} */
5037
- SharedCase.prototype.caseTypeId;
5038
- /** @type {?|undefined} */
5039
- SharedCase.prototype.roles;
5040
- /** @type {?|undefined} */
5041
- SharedCase.prototype.sharedWith;
5042
- /** @type {?|undefined} */
5043
- SharedCase.prototype.pendingShares;
5044
- /** @type {?|undefined} */
5045
- SharedCase.prototype.pendingUnshares;
5046
- }
5047
-
5048
- /**
5049
- * @fileoverview added by tsickle
5050
- * Generated from: lib/models/contact-details.model.ts
5051
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5052
- */
5053
- /** @enum {string} */
5054
- var BadgeColour = {
5055
- BADGE_RED: "hmcts-badge--red",
5056
- BADGE_BLUE: "hmcts-badge--blue",
5057
- BADGE_GREEN: "hmcts-badge--green",
5058
- };
5059
- /**
5060
- * @record
5061
- */
5062
- function ContactDetailsDataModel() { }
5063
- if (false) {
5064
- /** @type {?|undefined} */
5065
- ContactDetailsDataModel.prototype.title;
5066
- /** @type {?|undefined} */
5067
- ContactDetailsDataModel.prototype.badgeColour;
5068
- /** @type {?|undefined} */
5069
- ContactDetailsDataModel.prototype.badgeText;
5070
- /** @type {?|undefined} */
5071
- ContactDetailsDataModel.prototype.email;
5072
- /** @type {?|undefined} */
5073
- ContactDetailsDataModel.prototype.phone;
5074
- /** @type {?|undefined} */
5075
- ContactDetailsDataModel.prototype.openingTimes;
5076
- }
5077
-
5078
- /**
5079
- * @fileoverview added by tsickle
5080
- * Generated from: lib/models/feature-user.ts
5081
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5082
- */
5083
- var AnonymousFeatureUser = /** @class */ (function () {
5084
- function AnonymousFeatureUser() {
5085
- }
5086
- return AnonymousFeatureUser;
5087
- }());
5088
- if (false) {
5089
- /** @type {?} */
5090
- AnonymousFeatureUser.prototype.anonymous;
5091
- }
5092
- var LoggedInFeatureUser = /** @class */ (function () {
5093
- function LoggedInFeatureUser() {
5094
- }
5095
- return LoggedInFeatureUser;
5096
- }());
5097
- if (false) {
5098
- /** @type {?} */
5099
- LoggedInFeatureUser.prototype.key;
5100
- /** @type {?} */
5101
- LoggedInFeatureUser.prototype.custom;
5102
- }
5103
-
5104
- /**
5105
- * @fileoverview added by tsickle
5106
- * Generated from: lib/models/idle-config.model.ts
5107
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5108
- */
5109
- /**
5110
- * @record
5111
- */
5112
- function IdleConfigModel() { }
5113
- if (false) {
5114
- /** @type {?} */
5115
- IdleConfigModel.prototype.timeout;
5116
- /** @type {?} */
5117
- IdleConfigModel.prototype.idleMilliseconds;
5118
- /** @type {?} */
5119
- IdleConfigModel.prototype.keepAliveInSeconds;
5120
- /** @type {?|undefined} */
5121
- IdleConfigModel.prototype.idleServiceName;
5122
- }
5123
-
5124
- /**
5125
- * @fileoverview added by tsickle
5126
- * Generated from: lib/models/pagination.model.ts
5127
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5128
- */
5129
- /**
5130
- * @record
5131
- */
5132
- function Pagination() { }
5133
- if (false) {
5134
- /** @type {?} */
5135
- Pagination.prototype.itemsPerPage;
5136
- /** @type {?} */
5137
- Pagination.prototype.currentPage;
5138
- /** @type {?} */
5139
- Pagination.prototype.totalItems;
5140
- }
5141
-
5142
- /**
5143
- * @fileoverview added by tsickle
5144
- * Generated from: lib/models/person.model.ts
5145
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5146
- */
5147
- /**
5148
- * @record
5149
- */
5150
- function Person() { }
5151
- if (false) {
5152
- /** @type {?} */
5153
- Person.prototype.id;
5154
- /** @type {?} */
5155
- Person.prototype.name;
5156
- /** @type {?|undefined} */
5157
- Person.prototype.email;
5158
- /** @type {?} */
5159
- Person.prototype.domain;
5160
- /** @type {?|undefined} */
5161
- Person.prototype.knownAs;
5162
- }
5163
- /**
5164
- * @record
5165
- */
5166
- function JudicialUserModel() { }
5167
- if (false) {
5168
- /** @type {?} */
5169
- JudicialUserModel.prototype.emailId;
5170
- /** @type {?} */
5171
- JudicialUserModel.prototype.fullName;
5172
- /** @type {?} */
5173
- JudicialUserModel.prototype.idamId;
5174
- /** @type {?} */
5175
- JudicialUserModel.prototype.isJudge;
5176
- /** @type {?} */
5177
- JudicialUserModel.prototype.isMagistrate;
5178
- /** @type {?} */
5179
- JudicialUserModel.prototype.isPanelMember;
5180
- /** @type {?} */
5181
- JudicialUserModel.prototype.knownAs;
5182
- /** @type {?} */
5183
- JudicialUserModel.prototype.personalCode;
5184
- /** @type {?} */
5185
- JudicialUserModel.prototype.surname;
5186
- /** @type {?} */
5187
- JudicialUserModel.prototype.title;
5188
- }
5189
- /**
5190
- * @record
5191
- */
5192
- function CaseworkersByService() { }
4394
+ function CaseworkersByService() { }
5193
4395
  if (false) {
5194
4396
  /** @type {?} */
5195
4397
  CaseworkersByService.prototype.service;
@@ -5283,190 +4485,1272 @@ if (false) {
5283
4485
  function FilterConfig() { }
5284
4486
  if (false) {
5285
4487
  /** @type {?} */
5286
- FilterConfig.prototype.id;
4488
+ FilterConfig.prototype.id;
4489
+ /** @type {?} */
4490
+ FilterConfig.prototype.fields;
4491
+ /** @type {?} */
4492
+ FilterConfig.prototype.persistence;
4493
+ /** @type {?} */
4494
+ FilterConfig.prototype.applyButtonText;
4495
+ /** @type {?} */
4496
+ FilterConfig.prototype.cancelButtonText;
4497
+ /** @type {?|undefined} */
4498
+ FilterConfig.prototype.cancelSetting;
4499
+ /** @type {?|undefined} */
4500
+ FilterConfig.prototype.enableDisabledButton;
4501
+ /** @type {?|undefined} */
4502
+ FilterConfig.prototype.showCancelFilterButton;
4503
+ }
4504
+ /**
4505
+ * @record
4506
+ */
4507
+ function FilterFieldConfig() { }
4508
+ if (false) {
4509
+ /** @type {?} */
4510
+ FilterFieldConfig.prototype.name;
4511
+ /** @type {?} */
4512
+ FilterFieldConfig.prototype.options;
4513
+ /** @type {?} */
4514
+ FilterFieldConfig.prototype.minSelected;
4515
+ /** @type {?} */
4516
+ FilterFieldConfig.prototype.maxSelected;
4517
+ /** @type {?|undefined} */
4518
+ FilterFieldConfig.prototype.minSelectedError;
4519
+ /** @type {?|undefined} */
4520
+ FilterFieldConfig.prototype.maxSelectedError;
4521
+ /** @type {?|undefined} */
4522
+ FilterFieldConfig.prototype.displayMaxSelectedError;
4523
+ /** @type {?|undefined} */
4524
+ FilterFieldConfig.prototype.displayMinSelectedError;
4525
+ /** @type {?|undefined} */
4526
+ FilterFieldConfig.prototype.lineBreakBefore;
4527
+ /** @type {?|undefined} */
4528
+ FilterFieldConfig.prototype.showCondition;
4529
+ /** @type {?|undefined} */
4530
+ FilterFieldConfig.prototype.enableCondition;
4531
+ /** @type {?|undefined} */
4532
+ FilterFieldConfig.prototype.enableAddLocationButton;
4533
+ /** @type {?|undefined} */
4534
+ FilterFieldConfig.prototype.changeResetFields;
4535
+ /** @type {?|undefined} */
4536
+ FilterFieldConfig.prototype.findPersonField;
4537
+ /** @type {?|undefined} */
4538
+ FilterFieldConfig.prototype.findLocationField;
4539
+ /** @type {?|undefined} */
4540
+ FilterFieldConfig.prototype.domainField;
4541
+ /** @type {?|undefined} */
4542
+ FilterFieldConfig.prototype.disable;
4543
+ /** @type {?|undefined} */
4544
+ FilterFieldConfig.prototype.disabledText;
4545
+ /** @type {?} */
4546
+ FilterFieldConfig.prototype.type;
4547
+ /** @type {?|undefined} */
4548
+ FilterFieldConfig.prototype.domain;
4549
+ /** @type {?|undefined} */
4550
+ FilterFieldConfig.prototype.title;
4551
+ /** @type {?|undefined} */
4552
+ FilterFieldConfig.prototype.subTitle;
4553
+ /** @type {?|undefined} */
4554
+ FilterFieldConfig.prototype.locationTitle;
4555
+ /** @type {?|undefined} */
4556
+ FilterFieldConfig.prototype.radioSelectionChange;
4557
+ /** @type {?|undefined} */
4558
+ FilterFieldConfig.prototype.bookingCheckType;
4559
+ }
4560
+ /**
4561
+ * @record
4562
+ */
4563
+ function FilterSetting() { }
4564
+ if (false) {
4565
+ /** @type {?} */
4566
+ FilterSetting.prototype.id;
4567
+ /** @type {?|undefined} */
4568
+ FilterSetting.prototype.reset;
4569
+ /** @type {?} */
4570
+ FilterSetting.prototype.fields;
4571
+ }
4572
+ var RadioFilterFieldConfig = /** @class */ (function () {
4573
+ function RadioFilterFieldConfig() {
4574
+ }
4575
+ return RadioFilterFieldConfig;
4576
+ }());
4577
+ if (false) {
4578
+ /** @type {?} */
4579
+ RadioFilterFieldConfig.prototype.name;
4580
+ /** @type {?} */
4581
+ RadioFilterFieldConfig.prototype.options;
4582
+ /** @type {?} */
4583
+ RadioFilterFieldConfig.prototype.minSelected;
4584
+ /** @type {?} */
4585
+ RadioFilterFieldConfig.prototype.maxSelected;
4586
+ /** @type {?} */
4587
+ RadioFilterFieldConfig.prototype.type;
4588
+ }
4589
+ /**
4590
+ * @record
4591
+ */
4592
+ function FilterError() { }
4593
+ if (false) {
4594
+ /** @type {?} */
4595
+ FilterError.prototype.name;
4596
+ /** @type {?} */
4597
+ FilterError.prototype.error;
4598
+ }
4599
+
4600
+ /**
4601
+ * @fileoverview added by tsickle
4602
+ * Generated from: lib/models/public_api.ts
4603
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4604
+ */
4605
+
4606
+ /**
4607
+ * @fileoverview added by tsickle
4608
+ * Generated from: lib/models/search-options.model.ts
4609
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4610
+ */
4611
+ /**
4612
+ * @record
4613
+ */
4614
+ function SearchOptions() { }
4615
+ if (false) {
4616
+ /** @type {?} */
4617
+ SearchOptions.prototype.searchTerm;
4618
+ /** @type {?} */
4619
+ SearchOptions.prototype.userRole;
4620
+ /** @type {?} */
4621
+ SearchOptions.prototype.services;
4622
+ /** @type {?|undefined} */
4623
+ SearchOptions.prototype.userIncluded;
4624
+ /** @type {?|undefined} */
4625
+ SearchOptions.prototype.assignedUser;
4626
+ }
4627
+
4628
+ /**
4629
+ * @fileoverview added by tsickle
4630
+ * Generated from: lib/models/timeout-notification.model.ts
4631
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4632
+ */
4633
+ /**
4634
+ * @record
4635
+ */
4636
+ function TimeoutNotificationConfig() { }
4637
+ if (false) {
4638
+ /** @type {?} */
4639
+ TimeoutNotificationConfig.prototype.idleModalDisplayTime;
4640
+ /** @type {?} */
4641
+ TimeoutNotificationConfig.prototype.totalIdleTime;
4642
+ /** @type {?|undefined} */
4643
+ TimeoutNotificationConfig.prototype.idleServiceName;
4644
+ }
4645
+
4646
+ /**
4647
+ * @fileoverview added by tsickle
4648
+ * Generated from: lib/models/user-details.model.ts
4649
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4650
+ */
4651
+ /**
4652
+ * @record
4653
+ */
4654
+ function UserDetails() { }
4655
+ if (false) {
4656
+ /** @type {?|undefined} */
4657
+ UserDetails.prototype.caseRoles;
4658
+ /** @type {?} */
4659
+ UserDetails.prototype.email;
4660
+ /** @type {?} */
4661
+ UserDetails.prototype.firstName;
4662
+ /** @type {?} */
4663
+ UserDetails.prototype.idamId;
4664
+ /** @type {?} */
4665
+ UserDetails.prototype.lastName;
4666
+ }
4667
+
4668
+ /**
4669
+ * @fileoverview added by tsickle
4670
+ * Generated from: lib/models/index.ts
4671
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4672
+ */
4673
+
4674
+ /**
4675
+ * @fileoverview added by tsickle
4676
+ * Generated from: lib/services/locations/location.service.ts
4677
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4678
+ */
4679
+ var LocationService = /** @class */ (function () {
4680
+ function LocationService(http) {
4681
+ this.http = http;
4682
+ }
4683
+ /**
4684
+ * @description getAllLocations from service Ids/location type/search term
4685
+ * @param serviceIds: SSCS | SSCS,IA split with ','
4686
+ * @param locationType: optional | hearing | case_management
4687
+ * @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
4688
+ * @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4689
+ */
4690
+ /**
4691
+ * \@description getAllLocations from service Ids/location type/search term
4692
+ * @param {?} serviceIds
4693
+ * @param {?} locationType
4694
+ * @param {?} searchTerm
4695
+ * @param {?} userLocations
4696
+ * @param {?} bookingLocations
4697
+ * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4698
+ */
4699
+ LocationService.prototype.getAllLocations = /**
4700
+ * \@description getAllLocations from service Ids/location type/search term
4701
+ * @param {?} serviceIds
4702
+ * @param {?} locationType
4703
+ * @param {?} searchTerm
4704
+ * @param {?} userLocations
4705
+ * @param {?} bookingLocations
4706
+ * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4707
+ */
4708
+ function (serviceIds, locationType, searchTerm, userLocations, bookingLocations) {
4709
+ return this.http.post("api/locations/getLocations", { serviceIds: serviceIds, locationType: locationType, searchTerm: searchTerm, userLocations: userLocations, bookingLocations: bookingLocations });
4710
+ };
4711
+ /**
4712
+ * @description searchLocations from service Ids/location type/search term
4713
+ * @param serviceIds: BBA3 | BBA3,BFA1 split with ','
4714
+ * @param locationType: optional | hearing | case_management
4715
+ * @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
4716
+ * @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4717
+ */
4718
+ /**
4719
+ * \@description searchLocations from service Ids/location type/search term
4720
+ * @param {?} serviceIds
4721
+ * @param {?} locationType
4722
+ * @param {?} searchTerm
4723
+ * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4724
+ */
4725
+ LocationService.prototype.searchLocations = /**
4726
+ * \@description searchLocations from service Ids/location type/search term
4727
+ * @param {?} serviceIds
4728
+ * @param {?} locationType
4729
+ * @param {?} searchTerm
4730
+ * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4731
+ */
4732
+ function (serviceIds, locationType, searchTerm) {
4733
+ return this.http.get("api/prd/location/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
4734
+ };
4735
+ LocationService.decorators = [
4736
+ { type: Injectable, args: [{
4737
+ providedIn: 'root'
4738
+ },] }
4739
+ ];
4740
+ /** @nocollapse */
4741
+ LocationService.ctorParameters = function () { return [
4742
+ { type: HttpClient }
4743
+ ]; };
4744
+ /** @nocollapse */ LocationService.ngInjectableDef = ɵɵdefineInjectable({ factory: function LocationService_Factory() { return new LocationService(ɵɵinject(HttpClient)); }, token: LocationService, providedIn: "root" });
4745
+ return LocationService;
4746
+ }());
4747
+ if (false) {
4748
+ /**
4749
+ * @type {?}
4750
+ * @private
4751
+ */
4752
+ LocationService.prototype.http;
4753
+ }
4754
+
4755
+ /**
4756
+ * @fileoverview added by tsickle
4757
+ * Generated from: lib/services/session-storage/session-storage.service.ts
4758
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4759
+ */
4760
+ var SessionStorageService = /** @class */ (function () {
4761
+ function SessionStorageService() {
4762
+ }
4763
+ /**
4764
+ * Get an item from the session storage.
4765
+ * If remove is true, the item will be removed once read
4766
+ * @param removeAfterRead removed the key once it has been read
4767
+ */
4768
+ /**
4769
+ * Get an item from the session storage.
4770
+ * If remove is true, the item will be removed once read
4771
+ * @param {?} key
4772
+ * @param {?=} removeAfterRead removed the key once it has been read
4773
+ * @return {?}
4774
+ */
4775
+ SessionStorageService.prototype.getItem = /**
4776
+ * Get an item from the session storage.
4777
+ * If remove is true, the item will be removed once read
4778
+ * @param {?} key
4779
+ * @param {?=} removeAfterRead removed the key once it has been read
4780
+ * @return {?}
4781
+ */
4782
+ function (key, removeAfterRead) {
4783
+ if (removeAfterRead === void 0) { removeAfterRead = false; }
4784
+ /** @type {?} */
4785
+ var item = sessionStorage.getItem(key);
4786
+ if (removeAfterRead) {
4787
+ this.removeItem(key);
4788
+ }
4789
+ return item;
4790
+ };
4791
+ /**
4792
+ * Set an item in the session storage.
4793
+ */
4794
+ /**
4795
+ * Set an item in the session storage.
4796
+ * @param {?} key
4797
+ * @param {?} value
4798
+ * @return {?}
4799
+ */
4800
+ SessionStorageService.prototype.setItem = /**
4801
+ * Set an item in the session storage.
4802
+ * @param {?} key
4803
+ * @param {?} value
4804
+ * @return {?}
4805
+ */
4806
+ function (key, value) {
4807
+ sessionStorage.setItem(key, value);
4808
+ };
4809
+ /**
4810
+ * Remove an item in the session storage.
4811
+ */
4812
+ /**
4813
+ * Remove an item in the session storage.
4814
+ * @param {?} key
4815
+ * @return {?}
4816
+ */
4817
+ SessionStorageService.prototype.removeItem = /**
4818
+ * Remove an item in the session storage.
4819
+ * @param {?} key
4820
+ * @return {?}
4821
+ */
4822
+ function (key) {
4823
+ sessionStorage.removeItem(key);
4824
+ };
4825
+ /**
4826
+ * Clear all the items held in session storage.
4827
+ */
4828
+ /**
4829
+ * Clear all the items held in session storage.
4830
+ * @return {?}
4831
+ */
4832
+ SessionStorageService.prototype.clear = /**
4833
+ * Clear all the items held in session storage.
4834
+ * @return {?}
4835
+ */
4836
+ function () {
4837
+ sessionStorage.clear();
4838
+ };
4839
+ SessionStorageService.decorators = [
4840
+ { type: Injectable, args: [{
4841
+ providedIn: 'root'
4842
+ },] }
4843
+ ];
4844
+ /** @nocollapse */ SessionStorageService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
4845
+ return SessionStorageService;
4846
+ }());
4847
+
4848
+ /**
4849
+ * @fileoverview added by tsickle
4850
+ * Generated from: lib/components/search-location/search-location.component.ts
4851
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4852
+ */
4853
+ var SearchLocationComponent = /** @class */ (function () {
4854
+ function SearchLocationComponent(locationService, sessionStorageService, fb, cd) {
4855
+ this.locationService = locationService;
4856
+ this.sessionStorageService = sessionStorageService;
4857
+ this.fb = fb;
4858
+ this.cd = cd;
4859
+ this.disabled = null;
4860
+ this.singleMode = false;
4861
+ this.locationType = '';
4862
+ this.serviceIds = '';
4863
+ this.submitted = true;
4864
+ this.delay = 500;
4865
+ this.showAutocomplete = false;
4866
+ this.locations = [];
4867
+ this.locationSelected = new EventEmitter();
4868
+ this.locationInputChanged = new EventEmitter();
4869
+ this.searchLocationChanged = new EventEmitter();
4870
+ this.minSearchCharacters = 3;
4871
+ this.term = '';
4872
+ this.pSelectedLocations = [];
4873
+ this.pReset = true;
4874
+ this.form = this.fb.group({
4875
+ searchTerm: ['']
4876
+ });
4877
+ }
4878
+ Object.defineProperty(SearchLocationComponent.prototype, "reset", {
4879
+ get: /**
4880
+ * @return {?}
4881
+ */
4882
+ function () {
4883
+ return this.pReset;
4884
+ },
4885
+ set: /**
4886
+ * @param {?} value
4887
+ * @return {?}
4888
+ */
4889
+ function (value) {
4890
+ this.pReset = value;
4891
+ this.resetSearchTerm();
4892
+ },
4893
+ enumerable: true,
4894
+ configurable: true
4895
+ });
4896
+ Object.defineProperty(SearchLocationComponent.prototype, "selectedLocations", {
4897
+ get: /**
4898
+ * @return {?}
4899
+ */
4900
+ function () {
4901
+ return this.pSelectedLocations;
4902
+ },
4903
+ set: /**
4904
+ * @param {?} value
4905
+ * @return {?}
4906
+ */
4907
+ function (value) {
4908
+ this.pSelectedLocations = value;
4909
+ },
4910
+ enumerable: true,
4911
+ configurable: true
4912
+ });
4913
+ /**
4914
+ * @return {?}
4915
+ */
4916
+ SearchLocationComponent.prototype.ngOnInit = /**
4917
+ * @return {?}
4918
+ */
4919
+ function () {
4920
+ if (this.singleMode && this.selectedLocations.length > 0) {
4921
+ /** @type {?} */
4922
+ var location_1 = this.selectedLocations[0];
4923
+ this.form.controls.searchTerm.patchValue(location_1.site_name, { emitEvent: false, onlySelf: true });
4924
+ }
4925
+ this.search();
4926
+ };
4927
+ /**
4928
+ * @param {?} term
4929
+ * @return {?}
4930
+ */
4931
+ SearchLocationComponent.prototype.filter = /**
4932
+ * @param {?} term
4933
+ * @return {?}
4934
+ */
4935
+ function (term) {
4936
+ var _this = this;
4937
+ this.getLocations(term).pipe(map((/**
4938
+ * @param {?} locations
4939
+ * @return {?}
4940
+ */
4941
+ function (locations) { return _this.removeSelectedLocations(locations); })));
4942
+ };
4943
+ /**
4944
+ * @param {?} location
4945
+ * @return {?}
4946
+ */
4947
+ SearchLocationComponent.prototype.onSelectionChange = /**
4948
+ * @param {?} location
4949
+ * @return {?}
4950
+ */
4951
+ function (location) {
4952
+ this.form.controls.searchTerm.patchValue(location.site_name, { emitEvent: false, onlySelf: true });
4953
+ this.locationSelected.emit(location);
4954
+ };
4955
+ /**
4956
+ * @return {?}
4957
+ */
4958
+ SearchLocationComponent.prototype.search = /**
4959
+ * @return {?}
4960
+ */
4961
+ function () {
4962
+ var _this = this;
4963
+ this.form.controls.searchTerm.valueChanges
4964
+ .pipe(tap((/**
4965
+ * @param {?} term
4966
+ * @return {?}
4967
+ */
4968
+ function (term) { return _this.locationInputChanged.next(term); })), tap((/**
4969
+ * @return {?}
4970
+ */
4971
+ function () { return _this.locations = []; })), tap((/**
4972
+ * @param {?} term
4973
+ * @return {?}
4974
+ */
4975
+ function (term) { return _this.term = term; })), filter((/**
4976
+ * @param {?} term
4977
+ * @return {?}
4978
+ */
4979
+ function (term) { return !!term && term.length >= _this.minSearchCharacters; })), debounceTime(this.delay), mergeMap((/**
4980
+ * @param {?} value
4981
+ * @return {?}
4982
+ */
4983
+ function (value) { return _this.getLocations(value); })), map((/**
4984
+ * @param {?} locations
4985
+ * @return {?}
4986
+ */
4987
+ function (locations) { return _this.removeSelectedLocations(locations); }))).subscribe((/**
4988
+ * @param {?} locations
4989
+ * @return {?}
4990
+ */
4991
+ function (locations) {
4992
+ _this.locations = locations;
4993
+ _this.cd.markForCheck();
4994
+ if (locations.length === 1 && _this.term === locations[0].site_name && !_this.singleMode) {
4995
+ _this.locationSelected.emit(locations[0]);
4996
+ _this.showAutocomplete = false;
4997
+ return;
4998
+ }
4999
+ _this.showAutocomplete = true;
5000
+ }));
5001
+ };
5002
+ /**
5003
+ * @return {?}
5004
+ */
5005
+ SearchLocationComponent.prototype.onInput = /**
5006
+ * @return {?}
5007
+ */
5008
+ function () {
5009
+ this.searchLocationChanged.emit();
5010
+ };
5011
+ /**
5012
+ * @param {?} term
5013
+ * @return {?}
5014
+ */
5015
+ SearchLocationComponent.prototype.getLocations = /**
5016
+ * @param {?} term
5017
+ * @return {?}
5018
+ */
5019
+ function (term) {
5020
+ /** @type {?} */
5021
+ var userLocations;
5022
+ /** @type {?} */
5023
+ var bookingLocations;
5024
+ // Booking type info - can create more
5025
+ // NO_CHECK - All work - Do not filter out locations - Default assumption
5026
+ // ONLY_BOOKINGS - My work - Try to only show base locations/booking locations
5027
+ // POSSIBLE_BOOKINGS - Create booking screen - Show only potential bookings
5028
+ if (this.bookingCheck === BookingCheckType.BOOKINGS_AND_BASE) {
5029
+ userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
5030
+ bookingLocations = JSON.parse(this.sessionStorageService.getItem('bookingLocations'));
5031
+ }
5032
+ else if (this.bookingCheck === BookingCheckType.POSSIBLE_BOOKINGS) {
5033
+ userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
5034
+ this.serviceIds = JSON.parse(this.sessionStorageService.getItem('bookableServices'));
5035
+ }
5036
+ return this.locationService.getAllLocations(this.serviceIds, this.locationType, term, userLocations, bookingLocations);
5037
+ };
5038
+ /**
5039
+ * @return {?}
5040
+ */
5041
+ SearchLocationComponent.prototype.resetSearchTerm = /**
5042
+ * @return {?}
5043
+ */
5044
+ function () {
5045
+ this.form.controls.searchTerm.patchValue('', { emitEvent: false, onlySelf: true });
5046
+ };
5047
+ /**
5048
+ * @private
5049
+ * @param {?} locations
5050
+ * @return {?}
5051
+ */
5052
+ SearchLocationComponent.prototype.removeSelectedLocations = /**
5053
+ * @private
5054
+ * @param {?} locations
5055
+ * @return {?}
5056
+ */
5057
+ function (locations) {
5058
+ var _this = this;
5059
+ if (this.singleMode) {
5060
+ return locations;
5061
+ }
5062
+ return locations.filter((/**
5063
+ * @param {?} location
5064
+ * @return {?}
5065
+ */
5066
+ function (location) { return !_this.selectedLocations.map((/**
5067
+ * @param {?} selectedLocation
5068
+ * @return {?}
5069
+ */
5070
+ function (selectedLocation) { return selectedLocation.epimms_id; })).includes(location.epimms_id) && location.site_name; }));
5071
+ };
5072
+ SearchLocationComponent.decorators = [
5073
+ { type: Component, args: [{
5074
+ selector: 'exui-search-location',
5075
+ 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",
5076
+ 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}"]
5077
+ }] }
5078
+ ];
5079
+ /** @nocollapse */
5080
+ SearchLocationComponent.ctorParameters = function () { return [
5081
+ { type: LocationService },
5082
+ { type: SessionStorageService },
5083
+ { type: FormBuilder },
5084
+ { type: ChangeDetectorRef }
5085
+ ]; };
5086
+ SearchLocationComponent.propDecorators = {
5087
+ control: [{ type: Input }],
5088
+ disabled: [{ type: Input }],
5089
+ singleMode: [{ type: Input }],
5090
+ locationType: [{ type: Input }],
5091
+ serviceIds: [{ type: Input }],
5092
+ submitted: [{ type: Input }],
5093
+ delay: [{ type: Input }],
5094
+ form: [{ type: Input }],
5095
+ showAutocomplete: [{ type: Input }],
5096
+ locations: [{ type: Input }],
5097
+ bookingCheck: [{ type: Input }],
5098
+ locationSelected: [{ type: Output }],
5099
+ locationInputChanged: [{ type: Output }],
5100
+ searchLocationChanged: [{ type: Output }],
5101
+ reset: [{ type: Input }],
5102
+ selectedLocations: [{ type: Input }]
5103
+ };
5104
+ return SearchLocationComponent;
5105
+ }());
5106
+ if (false) {
5107
+ /** @type {?} */
5108
+ SearchLocationComponent.prototype.control;
5109
+ /** @type {?} */
5110
+ SearchLocationComponent.prototype.disabled;
5111
+ /** @type {?} */
5112
+ SearchLocationComponent.prototype.singleMode;
5113
+ /** @type {?} */
5114
+ SearchLocationComponent.prototype.locationType;
5115
+ /** @type {?} */
5116
+ SearchLocationComponent.prototype.serviceIds;
5117
+ /** @type {?} */
5118
+ SearchLocationComponent.prototype.submitted;
5119
+ /** @type {?} */
5120
+ SearchLocationComponent.prototype.delay;
5121
+ /** @type {?} */
5122
+ SearchLocationComponent.prototype.form;
5123
+ /** @type {?} */
5124
+ SearchLocationComponent.prototype.showAutocomplete;
5125
+ /** @type {?} */
5126
+ SearchLocationComponent.prototype.locations;
5127
+ /** @type {?} */
5128
+ SearchLocationComponent.prototype.bookingCheck;
5129
+ /** @type {?} */
5130
+ SearchLocationComponent.prototype.locationSelected;
5131
+ /** @type {?} */
5132
+ SearchLocationComponent.prototype.locationInputChanged;
5133
+ /** @type {?} */
5134
+ SearchLocationComponent.prototype.searchLocationChanged;
5135
+ /** @type {?} */
5136
+ SearchLocationComponent.prototype.minSearchCharacters;
5137
+ /** @type {?} */
5138
+ SearchLocationComponent.prototype.term;
5139
+ /**
5140
+ * @type {?}
5141
+ * @private
5142
+ */
5143
+ SearchLocationComponent.prototype.pSelectedLocations;
5144
+ /**
5145
+ * @type {?}
5146
+ * @private
5147
+ */
5148
+ SearchLocationComponent.prototype.pReset;
5149
+ /**
5150
+ * @type {?}
5151
+ * @private
5152
+ */
5153
+ SearchLocationComponent.prototype.locationService;
5154
+ /**
5155
+ * @type {?}
5156
+ * @private
5157
+ */
5158
+ SearchLocationComponent.prototype.sessionStorageService;
5159
+ /**
5160
+ * @type {?}
5161
+ * @private
5162
+ */
5163
+ SearchLocationComponent.prototype.fb;
5164
+ /**
5165
+ * @type {?}
5166
+ * @private
5167
+ */
5168
+ SearchLocationComponent.prototype.cd;
5169
+ }
5170
+
5171
+ /**
5172
+ * @fileoverview added by tsickle
5173
+ * Generated from: lib/components/find-location/find-location.component.ts
5174
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5175
+ */
5176
+ var FindLocationComponent = /** @class */ (function () {
5177
+ function FindLocationComponent() {
5178
+ this.locationFieldChanged = new EventEmitter();
5179
+ this.selectedLocations = [];
5180
+ this.submitted = true;
5181
+ this.enableAddLocationButton = true;
5182
+ this.locationTitle = 'Search for a location by name';
5183
+ this.disableInputField = false;
5184
+ this.locations = [];
5185
+ this.tempSelectedLocation = null;
5186
+ this.serviceIds = 'SSCS,IA';
5187
+ this.pServices = [];
5188
+ this.pDisabled = false;
5189
+ }
5190
+ Object.defineProperty(FindLocationComponent.prototype, "disabled", {
5191
+ get: /**
5192
+ * @return {?}
5193
+ */
5194
+ function () {
5195
+ return this.pDisabled;
5196
+ },
5197
+ set: /**
5198
+ * @param {?} value
5199
+ * @return {?}
5200
+ */
5201
+ function (value) {
5202
+ if (value) {
5203
+ this.searchLocationComponent.resetSearchTerm();
5204
+ this.removeSelectedValues();
5205
+ }
5206
+ this.pDisabled = this.disableInputField === true ? true : null;
5207
+ },
5208
+ enumerable: true,
5209
+ configurable: true
5210
+ });
5211
+ Object.defineProperty(FindLocationComponent.prototype, "services", {
5212
+ get: /**
5213
+ * @return {?}
5214
+ */
5215
+ function () {
5216
+ return this.pServices;
5217
+ },
5218
+ set: /**
5219
+ * @param {?} value
5220
+ * @return {?}
5221
+ */
5222
+ function (value) {
5223
+ var _this = this;
5224
+ this.pServices = value;
5225
+ /** @type {?} */
5226
+ var field = this.fields.find((/**
5227
+ * @param {?} f
5228
+ * @return {?}
5229
+ */
5230
+ function (f) { return f.name === _this.field.findLocationField; }));
5231
+ if (field) {
5232
+ if (typeof value === 'string') {
5233
+ this.serviceIds = value;
5234
+ }
5235
+ else {
5236
+ this.serviceIds = getValues(field.options, value).filter((/**
5237
+ * @param {?} x
5238
+ * @return {?}
5239
+ */
5240
+ function (x) { return x !== 'services_all'; })).join(',');
5241
+ }
5242
+ }
5243
+ },
5244
+ enumerable: true,
5245
+ configurable: true
5246
+ });
5247
+ /**
5248
+ * @return {?}
5249
+ */
5250
+ FindLocationComponent.prototype.ngOnInit = /**
5251
+ * @return {?}
5252
+ */
5253
+ function () {
5254
+ // implemented to get rid of undefined values
5255
+ this.selectedLocations = this.selectedLocations.filter((/**
5256
+ * @param {?} location
5257
+ * @return {?}
5258
+ */
5259
+ function (location) { return location.epimms_id; }));
5260
+ };
5261
+ /**
5262
+ * @return {?}
5263
+ */
5264
+ FindLocationComponent.prototype.addLocation = /**
5265
+ * @return {?}
5266
+ */
5267
+ function () {
5268
+ if (this.tempSelectedLocation) {
5269
+ this.selectedLocations = __spread(this.selectedLocations, [this.tempSelectedLocation]);
5270
+ this.addSelectedLocationsToForm([this.tempSelectedLocation]);
5271
+ this.tempSelectedLocation = null;
5272
+ this.locations = [];
5273
+ this.searchLocationComponent.resetSearchTerm();
5274
+ }
5275
+ };
5276
+ /**
5277
+ * @param {?} location
5278
+ * @return {?}
5279
+ */
5280
+ FindLocationComponent.prototype.removeLocation = /**
5281
+ * @param {?} location
5282
+ * @return {?}
5283
+ */
5284
+ function (location) {
5285
+ if (location.epimms_id) {
5286
+ this.selectedLocations = this.selectedLocations.filter((/**
5287
+ * @param {?} selectedLocation
5288
+ * @return {?}
5289
+ */
5290
+ function (selectedLocation) { return selectedLocation.epimms_id !== location.epimms_id; }));
5291
+ /** @type {?} */
5292
+ var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
5293
+ /** @type {?} */
5294
+ var index = ((/** @type {?} */ (formArray.value))).findIndex((/**
5295
+ * @param {?} selectedLocation
5296
+ * @return {?}
5297
+ */
5298
+ function (selectedLocation) { return selectedLocation.epimms_id === location.epimms_id; }));
5299
+ if (index > -1) {
5300
+ formArray.removeAt(index);
5301
+ }
5302
+ }
5303
+ };
5304
+ /**
5305
+ * @param {?} term
5306
+ * @return {?}
5307
+ */
5308
+ FindLocationComponent.prototype.onInputChanged = /**
5309
+ * @param {?} term
5310
+ * @return {?}
5311
+ */
5312
+ function (term) {
5313
+ // if the filter is in single mode clear the selected locations
5314
+ if (typeof term === 'string' && this.field.maxSelected === 1) {
5315
+ this.removeSelectedValues();
5316
+ }
5317
+ };
5318
+ /**
5319
+ * @return {?}
5320
+ */
5321
+ FindLocationComponent.prototype.onSearchInputChanged = /**
5322
+ * @return {?}
5323
+ */
5324
+ function () {
5325
+ this.locationFieldChanged.emit();
5326
+ };
5327
+ /**
5328
+ * @param {?} location
5329
+ * @return {?}
5330
+ */
5331
+ FindLocationComponent.prototype.onLocationSelected = /**
5332
+ * @param {?} location
5333
+ * @return {?}
5334
+ */
5335
+ function (location) {
5336
+ if (this.field.maxSelected === 1) {
5337
+ this.removeSelectedValues();
5338
+ this.addSelectedLocationsToForm([location]);
5339
+ }
5340
+ else {
5341
+ if (!this.selectedLocations.find((/**
5342
+ * @param {?} x
5343
+ * @return {?}
5344
+ */
5345
+ function (x) { return x.epimms_id === location.epimms_id; }))) {
5346
+ if (location.epimms_id) {
5347
+ this.tempSelectedLocation = location;
5348
+ }
5349
+ }
5350
+ }
5351
+ };
5352
+ /**
5353
+ * @private
5354
+ * @return {?}
5355
+ */
5356
+ FindLocationComponent.prototype.removeSelectedValues = /**
5357
+ * @private
5358
+ * @return {?}
5359
+ */
5360
+ function () {
5361
+ /** @type {?} */
5362
+ var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
5363
+ for (var i = 0; i < formArray.length; i++) {
5364
+ formArray.removeAt(i);
5365
+ }
5366
+ this.selectedLocations = [];
5367
+ };
5368
+ /**
5369
+ * @private
5370
+ * @param {?} locations
5371
+ * @return {?}
5372
+ */
5373
+ FindLocationComponent.prototype.addSelectedLocationsToForm = /**
5374
+ * @private
5375
+ * @param {?} locations
5376
+ * @return {?}
5377
+ */
5378
+ function (locations) {
5379
+ var e_1, _a;
5380
+ /** @type {?} */
5381
+ var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
5382
+ try {
5383
+ for (var locations_1 = __values(locations), locations_1_1 = locations_1.next(); !locations_1_1.done; locations_1_1 = locations_1.next()) {
5384
+ var location_1 = locations_1_1.value;
5385
+ formArray.push(new FormControl(location_1));
5386
+ }
5387
+ }
5388
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
5389
+ finally {
5390
+ try {
5391
+ if (locations_1_1 && !locations_1_1.done && (_a = locations_1.return)) _a.call(locations_1);
5392
+ }
5393
+ finally { if (e_1) throw e_1.error; }
5394
+ }
5395
+ };
5396
+ FindLocationComponent.decorators = [
5397
+ { type: Component, args: [{
5398
+ selector: 'xuilib-find-location',
5399
+ 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",
5400
+ styles: [""]
5401
+ }] }
5402
+ ];
5403
+ FindLocationComponent.propDecorators = {
5404
+ locationFieldChanged: [{ type: Output }],
5405
+ selectedLocations: [{ type: Input }],
5406
+ submitted: [{ type: Input }],
5407
+ enableAddLocationButton: [{ type: Input }],
5408
+ form: [{ type: Input }],
5409
+ field: [{ type: Input }],
5410
+ fields: [{ type: Input }],
5411
+ locationTitle: [{ type: Input }],
5412
+ disableInputField: [{ type: Input }],
5413
+ searchLocationComponent: [{ type: ViewChild, args: [SearchLocationComponent, { static: true },] }],
5414
+ disabled: [{ type: Input }],
5415
+ services: [{ type: Input }]
5416
+ };
5417
+ return FindLocationComponent;
5418
+ }());
5419
+ if (false) {
5420
+ /** @type {?} */
5421
+ FindLocationComponent.prototype.locationFieldChanged;
5422
+ /** @type {?} */
5423
+ FindLocationComponent.prototype.selectedLocations;
5424
+ /** @type {?} */
5425
+ FindLocationComponent.prototype.submitted;
5426
+ /** @type {?} */
5427
+ FindLocationComponent.prototype.enableAddLocationButton;
5287
5428
  /** @type {?} */
5288
- FilterConfig.prototype.fields;
5429
+ FindLocationComponent.prototype.form;
5289
5430
  /** @type {?} */
5290
- FilterConfig.prototype.persistence;
5431
+ FindLocationComponent.prototype.field;
5291
5432
  /** @type {?} */
5292
- FilterConfig.prototype.applyButtonText;
5433
+ FindLocationComponent.prototype.fields;
5293
5434
  /** @type {?} */
5294
- FilterConfig.prototype.cancelButtonText;
5295
- /** @type {?|undefined} */
5296
- FilterConfig.prototype.cancelSetting;
5297
- /** @type {?|undefined} */
5298
- FilterConfig.prototype.enableDisabledButton;
5299
- /** @type {?|undefined} */
5300
- FilterConfig.prototype.showCancelFilterButton;
5301
- }
5302
- /**
5303
- * @record
5304
- */
5305
- function FilterFieldConfig() { }
5306
- if (false) {
5435
+ FindLocationComponent.prototype.locationTitle;
5307
5436
  /** @type {?} */
5308
- FilterFieldConfig.prototype.name;
5437
+ FindLocationComponent.prototype.disableInputField;
5309
5438
  /** @type {?} */
5310
- FilterFieldConfig.prototype.options;
5439
+ FindLocationComponent.prototype.locations;
5311
5440
  /** @type {?} */
5312
- FilterFieldConfig.prototype.minSelected;
5441
+ FindLocationComponent.prototype.tempSelectedLocation;
5313
5442
  /** @type {?} */
5314
- FilterFieldConfig.prototype.maxSelected;
5315
- /** @type {?|undefined} */
5316
- FilterFieldConfig.prototype.minSelectedError;
5317
- /** @type {?|undefined} */
5318
- FilterFieldConfig.prototype.maxSelectedError;
5319
- /** @type {?|undefined} */
5320
- FilterFieldConfig.prototype.displayMaxSelectedError;
5321
- /** @type {?|undefined} */
5322
- FilterFieldConfig.prototype.displayMinSelectedError;
5323
- /** @type {?|undefined} */
5324
- FilterFieldConfig.prototype.lineBreakBefore;
5325
- /** @type {?|undefined} */
5326
- FilterFieldConfig.prototype.showCondition;
5327
- /** @type {?|undefined} */
5328
- FilterFieldConfig.prototype.enableCondition;
5329
- /** @type {?|undefined} */
5330
- FilterFieldConfig.prototype.enableAddLocationButton;
5331
- /** @type {?|undefined} */
5332
- FilterFieldConfig.prototype.changeResetFields;
5333
- /** @type {?|undefined} */
5334
- FilterFieldConfig.prototype.findPersonField;
5335
- /** @type {?|undefined} */
5336
- FilterFieldConfig.prototype.findLocationField;
5337
- /** @type {?|undefined} */
5338
- FilterFieldConfig.prototype.domainField;
5339
- /** @type {?|undefined} */
5340
- FilterFieldConfig.prototype.disable;
5341
- /** @type {?|undefined} */
5342
- FilterFieldConfig.prototype.disabledText;
5443
+ FindLocationComponent.prototype.serviceIds;
5343
5444
  /** @type {?} */
5344
- FilterFieldConfig.prototype.type;
5345
- /** @type {?|undefined} */
5346
- FilterFieldConfig.prototype.domain;
5347
- /** @type {?|undefined} */
5348
- FilterFieldConfig.prototype.title;
5349
- /** @type {?|undefined} */
5350
- FilterFieldConfig.prototype.subTitle;
5351
- /** @type {?|undefined} */
5352
- FilterFieldConfig.prototype.locationTitle;
5353
- /** @type {?|undefined} */
5354
- FilterFieldConfig.prototype.radioSelectionChange;
5445
+ FindLocationComponent.prototype.searchLocationComponent;
5446
+ /**
5447
+ * @type {?}
5448
+ * @private
5449
+ */
5450
+ FindLocationComponent.prototype.pServices;
5451
+ /**
5452
+ * @type {?}
5453
+ * @private
5454
+ */
5455
+ FindLocationComponent.prototype.pDisabled;
5355
5456
  }
5457
+
5356
5458
  /**
5357
- * @record
5459
+ * @fileoverview added by tsickle
5460
+ * Generated from: lib/components/pagination/pagination.component.ts
5461
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5358
5462
  */
5359
- function FilterSetting() { }
5360
- if (false) {
5361
- /** @type {?} */
5362
- FilterSetting.prototype.id;
5363
- /** @type {?|undefined} */
5364
- FilterSetting.prototype.reset;
5365
- /** @type {?} */
5366
- FilterSetting.prototype.fields;
5367
- }
5368
- var RadioFilterFieldConfig = /** @class */ (function () {
5369
- function RadioFilterFieldConfig() {
5463
+ var PaginationComponent = /** @class */ (function () {
5464
+ function PaginationComponent() {
5465
+ this.previousPage = new EventEmitter();
5466
+ this.nextPage = new EventEmitter();
5370
5467
  }
5371
- return RadioFilterFieldConfig;
5468
+ /**
5469
+ * @return {?}
5470
+ */
5471
+ PaginationComponent.prototype.onPrevious = /**
5472
+ * @return {?}
5473
+ */
5474
+ function () {
5475
+ this.previousPage.emit(null);
5476
+ };
5477
+ /**
5478
+ * @return {?}
5479
+ */
5480
+ PaginationComponent.prototype.onNext = /**
5481
+ * @return {?}
5482
+ */
5483
+ function () {
5484
+ this.nextPage.emit(null);
5485
+ };
5486
+ PaginationComponent.decorators = [
5487
+ { type: Component, args: [{
5488
+ selector: 'xuilib-pagination',
5489
+ 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",
5490
+ styles: ["span.hmcts-pagination__link:hover{color:revert}"]
5491
+ }] }
5492
+ ];
5493
+ /** @nocollapse */
5494
+ PaginationComponent.ctorParameters = function () { return []; };
5495
+ PaginationComponent.propDecorators = {
5496
+ moreItems: [{ type: Input }],
5497
+ firstRecord: [{ type: Input }],
5498
+ previousPage: [{ type: Output }],
5499
+ nextPage: [{ type: Output }]
5500
+ };
5501
+ return PaginationComponent;
5372
5502
  }());
5373
5503
  if (false) {
5374
5504
  /** @type {?} */
5375
- RadioFilterFieldConfig.prototype.name;
5376
- /** @type {?} */
5377
- RadioFilterFieldConfig.prototype.options;
5505
+ PaginationComponent.prototype.moreItems;
5378
5506
  /** @type {?} */
5379
- RadioFilterFieldConfig.prototype.minSelected;
5507
+ PaginationComponent.prototype.firstRecord;
5380
5508
  /** @type {?} */
5381
- RadioFilterFieldConfig.prototype.maxSelected;
5509
+ PaginationComponent.prototype.previousPage;
5382
5510
  /** @type {?} */
5383
- RadioFilterFieldConfig.prototype.type;
5511
+ PaginationComponent.prototype.nextPage;
5384
5512
  }
5513
+
5385
5514
  /**
5386
- * @record
5515
+ * @fileoverview added by tsickle
5516
+ * Generated from: lib/components/public_api.ts
5517
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5387
5518
  */
5388
- function FilterError() { }
5519
+
5520
+ /**
5521
+ * @fileoverview added by tsickle
5522
+ * Generated from: lib/components/index.ts
5523
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5524
+ */
5525
+
5526
+ /**
5527
+ * @fileoverview added by tsickle
5528
+ * Generated from: lib/directives/feature-toggle/feature-toggle.directive.ts
5529
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5530
+ */
5531
+ var FeatureToggleDirective = /** @class */ (function () {
5532
+ function FeatureToggleDirective(service, viewContainer, templateRef) {
5533
+ this.service = service;
5534
+ this.viewContainer = viewContainer;
5535
+ this.templateRef = templateRef;
5536
+ }
5537
+ Object.defineProperty(FeatureToggleDirective.prototype, "xuilibFeatureToggle", {
5538
+ set: /**
5539
+ * @param {?} feature
5540
+ * @return {?}
5541
+ */
5542
+ function (feature) {
5543
+ this.feature = feature;
5544
+ this.updateSubscription();
5545
+ },
5546
+ enumerable: true,
5547
+ configurable: true
5548
+ });
5549
+ /**
5550
+ * @return {?}
5551
+ */
5552
+ FeatureToggleDirective.prototype.ngOnDestroy = /**
5553
+ * @return {?}
5554
+ */
5555
+ function () {
5556
+ if (this.subscription) {
5557
+ this.subscription.unsubscribe();
5558
+ }
5559
+ };
5560
+ /**
5561
+ * @private
5562
+ * @return {?}
5563
+ */
5564
+ FeatureToggleDirective.prototype.updateSubscription = /**
5565
+ * @private
5566
+ * @return {?}
5567
+ */
5568
+ function () {
5569
+ var _this = this;
5570
+ this.subscription = this.service.isEnabled(this.feature).subscribe((/**
5571
+ * @param {?} enabled
5572
+ * @return {?}
5573
+ */
5574
+ function (enabled) {
5575
+ if (enabled) {
5576
+ _this.viewContainer.createEmbeddedView(_this.templateRef);
5577
+ }
5578
+ else {
5579
+ _this.viewContainer.clear();
5580
+ }
5581
+ }));
5582
+ };
5583
+ FeatureToggleDirective.decorators = [
5584
+ { type: Directive, args: [{
5585
+ selector: '[xuilibFeatureToggle]'
5586
+ },] }
5587
+ ];
5588
+ /** @nocollapse */
5589
+ FeatureToggleDirective.ctorParameters = function () { return [
5590
+ { type: FeatureToggleService },
5591
+ { type: ViewContainerRef },
5592
+ { type: TemplateRef }
5593
+ ]; };
5594
+ FeatureToggleDirective.propDecorators = {
5595
+ xuilibFeatureToggle: [{ type: Input }]
5596
+ };
5597
+ return FeatureToggleDirective;
5598
+ }());
5389
5599
  if (false) {
5390
- /** @type {?} */
5391
- FilterError.prototype.name;
5392
- /** @type {?} */
5393
- FilterError.prototype.error;
5600
+ /**
5601
+ * @type {?}
5602
+ * @private
5603
+ */
5604
+ FeatureToggleDirective.prototype.feature;
5605
+ /**
5606
+ * @type {?}
5607
+ * @private
5608
+ */
5609
+ FeatureToggleDirective.prototype.subscription;
5610
+ /**
5611
+ * @type {?}
5612
+ * @private
5613
+ */
5614
+ FeatureToggleDirective.prototype.service;
5615
+ /**
5616
+ * @type {?}
5617
+ * @private
5618
+ */
5619
+ FeatureToggleDirective.prototype.viewContainer;
5620
+ /**
5621
+ * @type {?}
5622
+ * @private
5623
+ */
5624
+ FeatureToggleDirective.prototype.templateRef;
5394
5625
  }
5395
5626
 
5396
5627
  /**
5397
5628
  * @fileoverview added by tsickle
5398
- * Generated from: lib/models/public_api.ts
5629
+ * Generated from: lib/directives/let/let.directive.ts
5399
5630
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5400
5631
  */
5401
-
5402
5632
  /**
5403
- * @fileoverview added by tsickle
5404
- * Generated from: lib/models/search-options.model.ts
5405
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5633
+ * @template T
5406
5634
  */
5407
- /**
5408
- * @record
5635
+ var /**
5636
+ * @template T
5409
5637
  */
5410
- function SearchOptions() { }
5638
+ LetContext = /** @class */ (function () {
5639
+ function LetContext() {
5640
+ this.$implicit = null;
5641
+ this.xuilibLet = null;
5642
+ }
5643
+ return LetContext;
5644
+ }());
5411
5645
  if (false) {
5412
5646
  /** @type {?} */
5413
- SearchOptions.prototype.searchTerm;
5414
- /** @type {?} */
5415
- SearchOptions.prototype.userRole;
5647
+ LetContext.prototype.$implicit;
5416
5648
  /** @type {?} */
5417
- SearchOptions.prototype.services;
5418
- /** @type {?|undefined} */
5419
- SearchOptions.prototype.userIncluded;
5420
- /** @type {?|undefined} */
5421
- SearchOptions.prototype.assignedUser;
5649
+ LetContext.prototype.xuilibLet;
5650
+ }
5651
+ /**
5652
+ * @template T
5653
+ */
5654
+ var LetDirective = /** @class */ (function () {
5655
+ function LetDirective(viewContainer, templateRef) {
5656
+ this.viewContainer = viewContainer;
5657
+ this.context = new LetContext();
5658
+ this.viewContainer.createEmbeddedView(templateRef, this.context);
5659
+ }
5660
+ Object.defineProperty(LetDirective.prototype, "xuilibLet", {
5661
+ set: /**
5662
+ * @param {?} condition
5663
+ * @return {?}
5664
+ */
5665
+ function (condition) {
5666
+ this.context.$implicit = this.context.xuilibLet = condition;
5667
+ },
5668
+ enumerable: true,
5669
+ configurable: true
5670
+ });
5671
+ LetDirective.decorators = [
5672
+ { type: Directive, args: [{
5673
+ selector: '[xuilibLet]'
5674
+ },] }
5675
+ ];
5676
+ /** @nocollapse */
5677
+ LetDirective.ctorParameters = function () { return [
5678
+ { type: ViewContainerRef },
5679
+ { type: TemplateRef }
5680
+ ]; };
5681
+ LetDirective.propDecorators = {
5682
+ xuilibLet: [{ type: Input }]
5683
+ };
5684
+ return LetDirective;
5685
+ }());
5686
+ if (false) {
5687
+ /**
5688
+ * @type {?}
5689
+ * @private
5690
+ */
5691
+ LetDirective.prototype.context;
5692
+ /**
5693
+ * @type {?}
5694
+ * @private
5695
+ */
5696
+ LetDirective.prototype.viewContainer;
5422
5697
  }
5423
5698
 
5424
5699
  /**
5425
5700
  * @fileoverview added by tsickle
5426
- * Generated from: lib/models/timeout-notification.model.ts
5701
+ * Generated from: lib/directives/public-api.ts
5427
5702
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5428
5703
  */
5704
+
5429
5705
  /**
5430
- * @record
5706
+ * @fileoverview added by tsickle
5707
+ * Generated from: lib/directives/index.ts
5708
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5431
5709
  */
5432
- function TimeoutNotificationConfig() { }
5433
- if (false) {
5434
- /** @type {?} */
5435
- TimeoutNotificationConfig.prototype.idleModalDisplayTime;
5436
- /** @type {?} */
5437
- TimeoutNotificationConfig.prototype.totalIdleTime;
5438
- /** @type {?|undefined} */
5439
- TimeoutNotificationConfig.prototype.idleServiceName;
5440
- }
5441
5710
 
5442
5711
  /**
5443
5712
  * @fileoverview added by tsickle
5444
- * Generated from: lib/models/user-details.model.ts
5713
+ * Generated from: lib/components/exui-main-wrapper/exui-page-wrapper.component.ts
5445
5714
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5446
5715
  */
5447
5716
  /**
5448
- * @record
5717
+ * Main Page Wrapper
5718
+ * Responsible for:
5719
+ * Wrapping content within the gov-uk html elements bellow
5720
+ * \@prop showBackLink - switch for back link
5721
+ * \@prop appHeaderTitle = appHeaderTitle
5722
+ * \@prop appFunctionalTitle = appFunctionalTitle
5723
+ * \@prop summaryErrors list of errors
5724
+ * \@prop back link, appHeaderTitle (appHeaderTitle), summaryErrors (array of errors)
5449
5725
  */
5450
- function UserDetails() { }
5726
+ var ExuiPageWrapperComponent = /** @class */ (function () {
5727
+ function ExuiPageWrapperComponent() {
5728
+ }
5729
+ ExuiPageWrapperComponent.decorators = [
5730
+ { type: Component, args: [{
5731
+ selector: 'exui-page-wrapper',
5732
+ 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",
5733
+ styles: [".page{width:100%}"]
5734
+ }] }
5735
+ ];
5736
+ /** @nocollapse */
5737
+ ExuiPageWrapperComponent.ctorParameters = function () { return []; };
5738
+ ExuiPageWrapperComponent.propDecorators = {
5739
+ backLink: [{ type: Input }],
5740
+ title: [{ type: Input }],
5741
+ fnTitle: [{ type: Input }]
5742
+ };
5743
+ return ExuiPageWrapperComponent;
5744
+ }());
5451
5745
  if (false) {
5452
- /** @type {?|undefined} */
5453
- UserDetails.prototype.caseRoles;
5454
- /** @type {?} */
5455
- UserDetails.prototype.email;
5456
5746
  /** @type {?} */
5457
- UserDetails.prototype.firstName;
5747
+ ExuiPageWrapperComponent.prototype.backLink;
5458
5748
  /** @type {?} */
5459
- UserDetails.prototype.idamId;
5749
+ ExuiPageWrapperComponent.prototype.title;
5460
5750
  /** @type {?} */
5461
- UserDetails.prototype.lastName;
5751
+ ExuiPageWrapperComponent.prototype.fnTitle;
5462
5752
  }
5463
5753
 
5464
- /**
5465
- * @fileoverview added by tsickle
5466
- * Generated from: lib/models/index.ts
5467
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5468
- */
5469
-
5470
5754
  /**
5471
5755
  * @fileoverview added by tsickle
5472
5756
  * Generated from: lib/gov-ui/util/session-storage/session-storage-utils.ts
@@ -5505,118 +5789,25 @@ var getCaseworkers = (/**
5505
5789
  */
5506
5790
  function (serviceId, sessionStorageService) {
5507
5791
  /** @type {?} */
5508
- var sessionKey = getSessionStorageKeyForServiceId(serviceId);
5509
- /** @type {?} */
5510
- var value = sessionStorageService.getItem(sessionKey);
5511
- if (value) {
5512
- return (/** @type {?} */ (JSON.parse(value)));
5513
- }
5514
- });
5515
- /** @type {?} */
5516
- var setCaseworkers = (/**
5517
- * @param {?} serviceId
5518
- * @param {?} caseworkers
5519
- * @param {?} sessionStorageService
5520
- * @return {?}
5521
- */
5522
- function (serviceId, caseworkers, sessionStorageService) {
5523
- /** @type {?} */
5524
- var sessionKey = getSessionStorageKeyForServiceId(serviceId);
5525
- sessionStorageService.setItem(sessionKey, JSON.stringify(caseworkers));
5526
- });
5527
-
5528
- /**
5529
- * @fileoverview added by tsickle
5530
- * Generated from: lib/services/session-storage/session-storage.service.ts
5531
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5532
- */
5533
- var SessionStorageService = /** @class */ (function () {
5534
- function SessionStorageService() {
5535
- }
5536
- /**
5537
- * Get an item from the session storage.
5538
- * If remove is true, the item will be removed once read
5539
- * @param removeAfterRead removed the key once it has been read
5540
- */
5541
- /**
5542
- * Get an item from the session storage.
5543
- * If remove is true, the item will be removed once read
5544
- * @param {?} key
5545
- * @param {?=} removeAfterRead removed the key once it has been read
5546
- * @return {?}
5547
- */
5548
- SessionStorageService.prototype.getItem = /**
5549
- * Get an item from the session storage.
5550
- * If remove is true, the item will be removed once read
5551
- * @param {?} key
5552
- * @param {?=} removeAfterRead removed the key once it has been read
5553
- * @return {?}
5554
- */
5555
- function (key, removeAfterRead) {
5556
- if (removeAfterRead === void 0) { removeAfterRead = false; }
5557
- /** @type {?} */
5558
- var item = sessionStorage.getItem(key);
5559
- if (removeAfterRead) {
5560
- this.removeItem(key);
5561
- }
5562
- return item;
5563
- };
5564
- /**
5565
- * Set an item in the session storage.
5566
- */
5567
- /**
5568
- * Set an item in the session storage.
5569
- * @param {?} key
5570
- * @param {?} value
5571
- * @return {?}
5572
- */
5573
- SessionStorageService.prototype.setItem = /**
5574
- * Set an item in the session storage.
5575
- * @param {?} key
5576
- * @param {?} value
5577
- * @return {?}
5578
- */
5579
- function (key, value) {
5580
- sessionStorage.setItem(key, value);
5581
- };
5582
- /**
5583
- * Remove an item in the session storage.
5584
- */
5585
- /**
5586
- * Remove an item in the session storage.
5587
- * @param {?} key
5588
- * @return {?}
5589
- */
5590
- SessionStorageService.prototype.removeItem = /**
5591
- * Remove an item in the session storage.
5592
- * @param {?} key
5593
- * @return {?}
5594
- */
5595
- function (key) {
5596
- sessionStorage.removeItem(key);
5597
- };
5598
- /**
5599
- * Clear all the items held in session storage.
5600
- */
5601
- /**
5602
- * Clear all the items held in session storage.
5603
- * @return {?}
5604
- */
5605
- SessionStorageService.prototype.clear = /**
5606
- * Clear all the items held in session storage.
5607
- * @return {?}
5608
- */
5609
- function () {
5610
- sessionStorage.clear();
5611
- };
5612
- SessionStorageService.decorators = [
5613
- { type: Injectable, args: [{
5614
- providedIn: 'root'
5615
- },] }
5616
- ];
5617
- /** @nocollapse */ SessionStorageService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
5618
- return SessionStorageService;
5619
- }());
5792
+ var sessionKey = getSessionStorageKeyForServiceId(serviceId);
5793
+ /** @type {?} */
5794
+ var value = sessionStorageService.getItem(sessionKey);
5795
+ if (value) {
5796
+ return (/** @type {?} */ (JSON.parse(value)));
5797
+ }
5798
+ });
5799
+ /** @type {?} */
5800
+ var setCaseworkers = (/**
5801
+ * @param {?} serviceId
5802
+ * @param {?} caseworkers
5803
+ * @param {?} sessionStorageService
5804
+ * @return {?}
5805
+ */
5806
+ function (serviceId, caseworkers, sessionStorageService) {
5807
+ /** @type {?} */
5808
+ var sessionKey = getSessionStorageKeyForServiceId(serviceId);
5809
+ sessionStorageService.setItem(sessionKey, JSON.stringify(caseworkers));
5810
+ });
5620
5811
 
5621
5812
  /**
5622
5813
  * @fileoverview added by tsickle
@@ -7958,6 +8149,253 @@ if (false) {
7958
8149
  RemoveHostDirective.prototype.el;
7959
8150
  }
7960
8151
 
8152
+ /**
8153
+ * @fileoverview added by tsickle
8154
+ * Generated from: lib/exui-common-lib.module.ts
8155
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8156
+ */
8157
+ /** @type {?} */
8158
+ var COMMON_COMPONENTS = [
8159
+ ExuiPageWrapperComponent,
8160
+ TermsAndConditionsComponent,
8161
+ TcDisplayHtmlComponent,
8162
+ TcDisplayPlainComponent,
8163
+ TcConfirmComponent,
8164
+ ContactDetailsComponent,
8165
+ FeatureToggleDirective,
8166
+ LetDirective,
8167
+ HmctsSessionDialogComponent,
8168
+ UserListComponent,
8169
+ UserDetailsComponent,
8170
+ InviteUserPermissionComponent,
8171
+ InviteUserFormComponent,
8172
+ ShareCaseComponent,
8173
+ ShareCaseConfirmComponent,
8174
+ SelectedCaseListComponent,
8175
+ SelectedCaseComponent,
8176
+ SelectedCaseConfirmComponent,
8177
+ UserSelectComponent,
8178
+ TabComponent,
8179
+ AccessibilityComponent,
8180
+ DueDateComponent,
8181
+ CheckboxListComponent,
8182
+ ServiceMessageComponent,
8183
+ ServiceMessagesComponent,
8184
+ LoadingSpinnerComponent,
8185
+ GenericFilterComponent,
8186
+ CookieBannerComponent,
8187
+ FindPersonComponent,
8188
+ SearchJudicialsComponent,
8189
+ FindLocationComponent,
8190
+ SearchLocationComponent,
8191
+ SearchVenueComponent,
8192
+ PaginationComponent
8193
+ ];
8194
+ /** @type {?} */
8195
+ var GOV_UI_COMPONENTS = [
8196
+ HmctsIdentityBarComponent,
8197
+ HmctsPaginationComponent,
8198
+ HmctsSubNavigationComponent,
8199
+ HmctsPrimaryNavigationComponent,
8200
+ HmctsErrorSummaryComponent,
8201
+ HmctsMainWrapperComponent,
8202
+ HmctsBannerComponent,
8203
+ GovukTableComponent,
8204
+ GovUkInputComponent,
8205
+ GovUkCheckboxComponent,
8206
+ GovUkFormGroupWrapperComponent,
8207
+ GovUkLabelComponent,
8208
+ GovUkErrorMessageComponent,
8209
+ GovUkFieldsetComponent,
8210
+ GovUkDateComponent,
8211
+ GovUkCheckboxesComponent,
8212
+ GovUkRadioComponent,
8213
+ GovUkRadiosComponent,
8214
+ GovUkSelectComponent,
8215
+ GovUkTextareaComponent,
8216
+ GovUkFileUploadComponent,
8217
+ RemoveHostDirective
8218
+ ];
8219
+ var ɵ0 = windowProvider;
8220
+ var ExuiCommonLibModule = /** @class */ (function () {
8221
+ function ExuiCommonLibModule() {
8222
+ }
8223
+ ExuiCommonLibModule.decorators = [
8224
+ { type: NgModule, args: [{
8225
+ declarations: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS),
8226
+ imports: [
8227
+ CommonModule,
8228
+ FormsModule,
8229
+ ReactiveFormsModule,
8230
+ RouterModule.forChild([]),
8231
+ MatAutocompleteModule,
8232
+ MatTabsModule,
8233
+ MatInputModule,
8234
+ NgxPaginationModule
8235
+ ],
8236
+ providers: [
8237
+ { provide: windowToken, useFactory: ɵ0 }
8238
+ ],
8239
+ exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS, [
8240
+ PaginatePipe
8241
+ ])
8242
+ },] }
8243
+ ];
8244
+ return ExuiCommonLibModule;
8245
+ }());
8246
+
8247
+ /**
8248
+ * @fileoverview added by tsickle
8249
+ * Generated from: lib/gov-ui/gov-ui.service.ts
8250
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8251
+ */
8252
+ var GovUiService = /** @class */ (function () {
8253
+ function GovUiService() {
8254
+ }
8255
+ GovUiService.decorators = [
8256
+ { type: Injectable, args: [{
8257
+ providedIn: 'root'
8258
+ },] }
8259
+ ];
8260
+ /** @nocollapse */
8261
+ GovUiService.ctorParameters = function () { return []; };
8262
+ /** @nocollapse */ GovUiService.ngInjectableDef = ɵɵdefineInjectable({ factory: function GovUiService_Factory() { return new GovUiService(); }, token: GovUiService, providedIn: "root" });
8263
+ return GovUiService;
8264
+ }());
8265
+
8266
+ /**
8267
+ * @fileoverview added by tsickle
8268
+ * Generated from: lib/gov-ui/validators/checkboxes-be-checked.validator.ts
8269
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8270
+ */
8271
+ /**
8272
+ * @param {?=} minRequired
8273
+ * @return {?}
8274
+ */
8275
+ function checkboxesBeCheckedValidator(minRequired) {
8276
+ if (minRequired === void 0) { minRequired = 1; }
8277
+ return (/**
8278
+ * @param {?} formGroup
8279
+ * @return {?}
8280
+ */
8281
+ function validate(formGroup) {
8282
+ /** @type {?} */
8283
+ var checked = 0;
8284
+ Object.keys(formGroup.controls).forEach((/**
8285
+ * @param {?} key
8286
+ * @return {?}
8287
+ */
8288
+ function (key) {
8289
+ /** @type {?} */
8290
+ var control = formGroup.controls[key];
8291
+ if (control.value === true) {
8292
+ checked++;
8293
+ }
8294
+ }));
8295
+ if (checked < minRequired) {
8296
+ return {
8297
+ requireOneCheckboxToBeChecked: true,
8298
+ };
8299
+ }
8300
+ return null;
8301
+ });
8302
+ }
8303
+
8304
+ /**
8305
+ * @fileoverview added by tsickle
8306
+ * Generated from: lib/gov-ui/validators/date.validator.ts
8307
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8308
+ */
8309
+ /**
8310
+ * @return {?}
8311
+ */
8312
+ function dateValidator() {
8313
+ return (/**
8314
+ * @param {?} formGroup
8315
+ * @return {?}
8316
+ */
8317
+ function validate(formGroup) {
8318
+ /** @type {?} */
8319
+ var d = new Date(parseInt(formGroup.controls.day.value, 10), parseInt(formGroup.controls.month.value, 10) - 1, parseInt(formGroup.controls.year.value, 10) - 1);
8320
+ /**
8321
+ * @param {?} val
8322
+ * @return {?}
8323
+ */
8324
+ function isValidDate(val) {
8325
+ return val instanceof Date && !isNaN(+d);
8326
+ }
8327
+ if (!isValidDate(d)) {
8328
+ return {
8329
+ dateIsInvalid: true,
8330
+ };
8331
+ }
8332
+ return null;
8333
+ });
8334
+ }
8335
+
8336
+ /**
8337
+ * @fileoverview added by tsickle
8338
+ * Generated from: lib/gov-ui/validators/radio-group.validator.ts
8339
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8340
+ */
8341
+ /**
8342
+ * @return {?}
8343
+ */
8344
+ function radioGroupValidator() {
8345
+ return (/**
8346
+ * @param {?} formGroup
8347
+ * @return {?}
8348
+ */
8349
+ function validate(formGroup) {
8350
+ if (formGroup.controls) {
8351
+ for (var control in formGroup.controls) {
8352
+ if (!formGroup.controls[control].valid) {
8353
+ return {
8354
+ isRadioGroupInvalid: true,
8355
+ };
8356
+ }
8357
+ }
8358
+ }
8359
+ return null;
8360
+ });
8361
+ }
8362
+
8363
+ /**
8364
+ * @fileoverview added by tsickle
8365
+ * Generated from: lib/gov-ui/validators/public_api.ts
8366
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8367
+ */
8368
+
8369
+ /**
8370
+ * @fileoverview added by tsickle
8371
+ * Generated from: lib/gov-ui/validators/index.ts
8372
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8373
+ */
8374
+
8375
+ /**
8376
+ * @fileoverview added by tsickle
8377
+ * Generated from: lib/gov-ui/components/public_api.ts
8378
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8379
+ */
8380
+
8381
+ /**
8382
+ * @fileoverview added by tsickle
8383
+ * Generated from: lib/gov-ui/components/index.ts
8384
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8385
+ */
8386
+
8387
+ /**
8388
+ * @fileoverview added by tsickle
8389
+ * Generated from: lib/gov-ui/public_api.ts
8390
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8391
+ */
8392
+
8393
+ /**
8394
+ * @fileoverview added by tsickle
8395
+ * Generated from: lib/gov-ui/index.ts
8396
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8397
+ */
8398
+
7961
8399
  /**
7962
8400
  * @fileoverview added by tsickle
7963
8401
  * Generated from: lib/services/feature-toggle/feature-toggle.guard.ts
@@ -8969,268 +9407,6 @@ if (false) {
8969
9407
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8970
9408
  */
8971
9409
 
8972
- /**
8973
- * @fileoverview added by tsickle
8974
- * Generated from: lib/exui-common-lib.module.ts
8975
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8976
- */
8977
- /** @type {?} */
8978
- var COMMON_COMPONENTS = [
8979
- ExuiPageWrapperComponent,
8980
- TermsAndConditionsComponent,
8981
- TcDisplayHtmlComponent,
8982
- TcDisplayPlainComponent,
8983
- TcConfirmComponent,
8984
- ContactDetailsComponent,
8985
- FeatureToggleDirective,
8986
- LetDirective,
8987
- HmctsSessionDialogComponent,
8988
- UserListComponent,
8989
- UserDetailsComponent,
8990
- InviteUserPermissionComponent,
8991
- InviteUserFormComponent,
8992
- ShareCaseComponent,
8993
- ShareCaseConfirmComponent,
8994
- SelectedCaseListComponent,
8995
- SelectedCaseComponent,
8996
- SelectedCaseConfirmComponent,
8997
- UserSelectComponent,
8998
- TabComponent,
8999
- AccessibilityComponent,
9000
- DueDateComponent,
9001
- CheckboxListComponent,
9002
- ServiceMessageComponent,
9003
- ServiceMessagesComponent,
9004
- LoadingSpinnerComponent,
9005
- GenericFilterComponent,
9006
- CookieBannerComponent,
9007
- FindPersonComponent,
9008
- SearchJudicialsComponent,
9009
- FindLocationComponent,
9010
- SearchLocationComponent,
9011
- SearchVenueComponent,
9012
- PaginationComponent
9013
- ];
9014
- /** @type {?} */
9015
- var GOV_UI_COMPONENTS = [
9016
- HmctsIdentityBarComponent,
9017
- HmctsPaginationComponent,
9018
- HmctsSubNavigationComponent,
9019
- HmctsPrimaryNavigationComponent,
9020
- HmctsErrorSummaryComponent,
9021
- HmctsMainWrapperComponent,
9022
- HmctsBannerComponent,
9023
- GovukTableComponent,
9024
- GovUkInputComponent,
9025
- GovUkCheckboxComponent,
9026
- GovUkFormGroupWrapperComponent,
9027
- GovUkLabelComponent,
9028
- GovUkErrorMessageComponent,
9029
- GovUkFieldsetComponent,
9030
- GovUkDateComponent,
9031
- GovUkCheckboxesComponent,
9032
- GovUkRadioComponent,
9033
- GovUkRadiosComponent,
9034
- GovUkSelectComponent,
9035
- GovUkTextareaComponent,
9036
- GovUkFileUploadComponent,
9037
- RemoveHostDirective
9038
- ];
9039
- /** @type {?} */
9040
- var COMMON_SERVICES = [
9041
- CaseSharingStateService,
9042
- CookieService,
9043
- LaunchDarklyService,
9044
- FilterService,
9045
- FindAPersonService,
9046
- GoogleAnalyticsService,
9047
- GoogleTagManagerService,
9048
- LoadingService,
9049
- LocationService,
9050
- ManageSessionServices,
9051
- SessionStorageService,
9052
- TimeoutNotificationsService
9053
- ];
9054
- var ɵ0 = windowProvider;
9055
- var ExuiCommonLibModule = /** @class */ (function () {
9056
- function ExuiCommonLibModule() {
9057
- }
9058
- ExuiCommonLibModule.decorators = [
9059
- { type: NgModule, args: [{
9060
- declarations: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS),
9061
- imports: [
9062
- CommonModule,
9063
- FormsModule,
9064
- ReactiveFormsModule,
9065
- RouterModule.forChild([]),
9066
- MatAutocompleteModule,
9067
- MatTabsModule,
9068
- MatInputModule,
9069
- NgxPaginationModule
9070
- ],
9071
- providers: __spread(COMMON_SERVICES, [
9072
- { provide: windowToken, useFactory: ɵ0 }
9073
- ]),
9074
- exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS, [
9075
- PaginatePipe
9076
- ])
9077
- },] }
9078
- ];
9079
- return ExuiCommonLibModule;
9080
- }());
9081
-
9082
- /**
9083
- * @fileoverview added by tsickle
9084
- * Generated from: lib/gov-ui/gov-ui.service.ts
9085
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9086
- */
9087
- var GovUiService = /** @class */ (function () {
9088
- function GovUiService() {
9089
- }
9090
- GovUiService.decorators = [
9091
- { type: Injectable, args: [{
9092
- providedIn: 'root'
9093
- },] }
9094
- ];
9095
- /** @nocollapse */
9096
- GovUiService.ctorParameters = function () { return []; };
9097
- /** @nocollapse */ GovUiService.ngInjectableDef = ɵɵdefineInjectable({ factory: function GovUiService_Factory() { return new GovUiService(); }, token: GovUiService, providedIn: "root" });
9098
- return GovUiService;
9099
- }());
9100
-
9101
- /**
9102
- * @fileoverview added by tsickle
9103
- * Generated from: lib/gov-ui/validators/checkboxes-be-checked.validator.ts
9104
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9105
- */
9106
- /**
9107
- * @param {?=} minRequired
9108
- * @return {?}
9109
- */
9110
- function checkboxesBeCheckedValidator(minRequired) {
9111
- if (minRequired === void 0) { minRequired = 1; }
9112
- return (/**
9113
- * @param {?} formGroup
9114
- * @return {?}
9115
- */
9116
- function validate(formGroup) {
9117
- /** @type {?} */
9118
- var checked = 0;
9119
- Object.keys(formGroup.controls).forEach((/**
9120
- * @param {?} key
9121
- * @return {?}
9122
- */
9123
- function (key) {
9124
- /** @type {?} */
9125
- var control = formGroup.controls[key];
9126
- if (control.value === true) {
9127
- checked++;
9128
- }
9129
- }));
9130
- if (checked < minRequired) {
9131
- return {
9132
- requireOneCheckboxToBeChecked: true,
9133
- };
9134
- }
9135
- return null;
9136
- });
9137
- }
9138
-
9139
- /**
9140
- * @fileoverview added by tsickle
9141
- * Generated from: lib/gov-ui/validators/date.validator.ts
9142
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9143
- */
9144
- /**
9145
- * @return {?}
9146
- */
9147
- function dateValidator() {
9148
- return (/**
9149
- * @param {?} formGroup
9150
- * @return {?}
9151
- */
9152
- function validate(formGroup) {
9153
- /** @type {?} */
9154
- var d = new Date(parseInt(formGroup.controls.day.value, 10), parseInt(formGroup.controls.month.value, 10) - 1, parseInt(formGroup.controls.year.value, 10) - 1);
9155
- /**
9156
- * @param {?} val
9157
- * @return {?}
9158
- */
9159
- function isValidDate(val) {
9160
- return val instanceof Date && !isNaN(+d);
9161
- }
9162
- if (!isValidDate(d)) {
9163
- return {
9164
- dateIsInvalid: true,
9165
- };
9166
- }
9167
- return null;
9168
- });
9169
- }
9170
-
9171
- /**
9172
- * @fileoverview added by tsickle
9173
- * Generated from: lib/gov-ui/validators/radio-group.validator.ts
9174
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9175
- */
9176
- /**
9177
- * @return {?}
9178
- */
9179
- function radioGroupValidator() {
9180
- return (/**
9181
- * @param {?} formGroup
9182
- * @return {?}
9183
- */
9184
- function validate(formGroup) {
9185
- if (formGroup.controls) {
9186
- for (var control in formGroup.controls) {
9187
- if (!formGroup.controls[control].valid) {
9188
- return {
9189
- isRadioGroupInvalid: true,
9190
- };
9191
- }
9192
- }
9193
- }
9194
- return null;
9195
- });
9196
- }
9197
-
9198
- /**
9199
- * @fileoverview added by tsickle
9200
- * Generated from: lib/gov-ui/validators/public_api.ts
9201
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9202
- */
9203
-
9204
- /**
9205
- * @fileoverview added by tsickle
9206
- * Generated from: lib/gov-ui/validators/index.ts
9207
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9208
- */
9209
-
9210
- /**
9211
- * @fileoverview added by tsickle
9212
- * Generated from: lib/gov-ui/components/public_api.ts
9213
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9214
- */
9215
-
9216
- /**
9217
- * @fileoverview added by tsickle
9218
- * Generated from: lib/gov-ui/components/index.ts
9219
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9220
- */
9221
-
9222
- /**
9223
- * @fileoverview added by tsickle
9224
- * Generated from: lib/gov-ui/public_api.ts
9225
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9226
- */
9227
-
9228
- /**
9229
- * @fileoverview added by tsickle
9230
- * Generated from: lib/gov-ui/index.ts
9231
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9232
- */
9233
-
9234
9410
  /**
9235
9411
  * @fileoverview added by tsickle
9236
9412
  * Generated from: public-api.ts
@@ -9243,5 +9419,5 @@ function radioGroupValidator() {
9243
9419
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9244
9420
  */
9245
9421
 
9246
- export { AccessibilityComponent, AnonymousFeatureUser, BadgeColour, COMMON_COMPONENTS, COMMON_SERVICES, 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, CaseSharingStateService as ɵcm, CookieService as ɵcn, LaunchDarklyService as ɵco, FilterService as ɵcp, FindAPersonService as ɵcq, GoogleAnalyticsService as ɵcr, GoogleTagManagerService as ɵcs, LoadingService as ɵct, LocationService as ɵcu, ManageSessionServices as ɵcv, SessionStorageService as ɵcw, TimeoutNotificationsService as ɵcx, 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 };
9422
+ 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 };
9247
9423
  //# sourceMappingURL=hmcts-rpx-xui-common-lib.js.map