@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
@@ -1478,6 +1478,7 @@
1478
1478
  * @return {?}
1479
1479
  */
1480
1480
  function (event, form, item, field) {
1481
+ var e_3, _a;
1481
1482
  /** @type {?} */
1482
1483
  var isChecked = event.target.checked;
1483
1484
  /** @type {?} */
@@ -1533,20 +1534,36 @@
1533
1534
  else if (hasSelectAllOption && !allChecked && isChecked && isAllCheckedExcludingTheSelectAllOption) {
1534
1535
  formArray.controls[index_1].patchValue(true);
1535
1536
  }
1536
- return;
1537
1537
  }
1538
- formArray.controls.forEach((/**
1539
- * @param {?} control
1540
- * @return {?}
1541
- */
1542
- function (control) {
1543
- if (isChecked) {
1544
- control.patchValue(true);
1538
+ else {
1539
+ formArray.controls.forEach((/**
1540
+ * @param {?} control
1541
+ * @return {?}
1542
+ */
1543
+ function (control) {
1544
+ if (isChecked) {
1545
+ control.patchValue(true);
1546
+ }
1547
+ else {
1548
+ control.patchValue(false);
1549
+ }
1550
+ }));
1551
+ }
1552
+ if (field.changeResetFields && field.changeResetFields.length) {
1553
+ try {
1554
+ for (var _b = __values(field.changeResetFields), _c = _b.next(); !_c.done; _c = _b.next()) {
1555
+ var resetField = _c.value;
1556
+ this.resetField(resetField, form);
1557
+ }
1545
1558
  }
1546
- else {
1547
- control.patchValue(false);
1559
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
1560
+ finally {
1561
+ try {
1562
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1563
+ }
1564
+ finally { if (e_3) throw e_3.error; }
1548
1565
  }
1549
- }));
1566
+ }
1550
1567
  };
1551
1568
  /**
1552
1569
  * @private
@@ -1561,7 +1578,7 @@
1561
1578
  * @return {?}
1562
1579
  */
1563
1580
  function (resetField, form) {
1564
- var e_3, _a;
1581
+ var e_4, _a;
1565
1582
  /** @type {?} */
1566
1583
  var control = form.get(resetField);
1567
1584
  /** @type {?} */
@@ -1584,12 +1601,12 @@
1584
1601
  this.resetField(key, control);
1585
1602
  }
1586
1603
  }
1587
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
1604
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
1588
1605
  finally {
1589
1606
  try {
1590
1607
  if (keys_2_1 && !keys_2_1.done && (_a = keys_2.return)) _a.call(keys_2);
1591
1608
  }
1592
- finally { if (e_3) throw e_3.error; }
1609
+ finally { if (e_4) throw e_4.error; }
1593
1610
  }
1594
1611
  }
1595
1612
  else if (control instanceof forms.FormControl) {
@@ -1645,7 +1662,7 @@
1645
1662
  * @return {?}
1646
1663
  */
1647
1664
  function (config, settings, reset) {
1648
- var e_4, _a;
1665
+ var e_5, _a;
1649
1666
  /** @type {?} */
1650
1667
  var findPersonControl = this.form ? this.form.get('findPersonControl') : null;
1651
1668
  this.form = this.fb.group({});
@@ -1720,12 +1737,12 @@
1720
1737
  _loop_1(field);
1721
1738
  }
1722
1739
  }
1723
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
1740
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
1724
1741
  finally {
1725
1742
  try {
1726
1743
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1727
1744
  }
1728
- finally { if (e_4) throw e_4.error; }
1745
+ finally { if (e_5) throw e_5.error; }
1729
1746
  }
1730
1747
  };
1731
1748
  /**
@@ -1741,7 +1758,7 @@
1741
1758
  * @return {?}
1742
1759
  */
1743
1760
  function (field, settings) {
1744
- var e_5, _a;
1761
+ var e_6, _a;
1745
1762
  /** @type {?} */
1746
1763
  var validators = GenericFilterComponent.addFormValidators(field);
1747
1764
  /** @type {?} */
@@ -1773,12 +1790,12 @@
1773
1790
  _loop_2(option);
1774
1791
  }
1775
1792
  }
1776
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
1793
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
1777
1794
  finally {
1778
1795
  try {
1779
1796
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1780
1797
  }
1781
- finally { if (e_5) throw e_5.error; }
1798
+ finally { if (e_6) throw e_6.error; }
1782
1799
  }
1783
1800
  return formArray;
1784
1801
  };
@@ -1795,7 +1812,7 @@
1795
1812
  * @return {?}
1796
1813
  */
1797
1814
  function (field, settings) {
1798
- var e_6, _a;
1815
+ var e_7, _a;
1799
1816
  /** @type {?} */
1800
1817
  var validators = GenericFilterComponent.addFormValidators(field);
1801
1818
  /** @type {?} */
@@ -1815,12 +1832,12 @@
1815
1832
  formArray.push(new forms.FormControl(defaultValue));
1816
1833
  }
1817
1834
  }
1818
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
1835
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
1819
1836
  finally {
1820
1837
  try {
1821
1838
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1822
1839
  }
1823
- finally { if (e_6) throw e_6.error; }
1840
+ finally { if (e_7) throw e_7.error; }
1824
1841
  }
1825
1842
  }
1826
1843
  }
@@ -1876,7 +1893,7 @@
1876
1893
  * @return {?}
1877
1894
  */
1878
1895
  function (form) {
1879
- var e_7, _a;
1896
+ var e_8, _a;
1880
1897
  /** @type {?} */
1881
1898
  var errors = [];
1882
1899
  try {
@@ -1892,12 +1909,12 @@
1892
1909
  }
1893
1910
  }
1894
1911
  }
1895
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
1912
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
1896
1913
  finally {
1897
1914
  try {
1898
1915
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1899
1916
  }
1900
- finally { if (e_7) throw e_7.error; }
1917
+ finally { if (e_8) throw e_8.error; }
1901
1918
  }
1902
1919
  if (errors.length) {
1903
1920
  this.filterService.givenErrors.next(errors);
@@ -4287,450 +4304,817 @@
4287
4304
 
4288
4305
  /**
4289
4306
  * @fileoverview added by tsickle
4290
- * Generated from: lib/services/locations/location.service.ts
4307
+ * Generated from: lib/models/case-share.model.ts
4291
4308
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4292
4309
  */
4293
- var LocationService = /** @class */ (function () {
4294
- function LocationService(http) {
4295
- this.http = http;
4310
+ /**
4311
+ * @record
4312
+ */
4313
+ function SharedCase() { }
4314
+ if (false) {
4315
+ /** @type {?} */
4316
+ SharedCase.prototype.caseId;
4317
+ /** @type {?} */
4318
+ SharedCase.prototype.caseTitle;
4319
+ /** @type {?|undefined} */
4320
+ SharedCase.prototype.caseTypeId;
4321
+ /** @type {?|undefined} */
4322
+ SharedCase.prototype.roles;
4323
+ /** @type {?|undefined} */
4324
+ SharedCase.prototype.sharedWith;
4325
+ /** @type {?|undefined} */
4326
+ SharedCase.prototype.pendingShares;
4327
+ /** @type {?|undefined} */
4328
+ SharedCase.prototype.pendingUnshares;
4329
+ }
4330
+
4331
+ /**
4332
+ * @fileoverview added by tsickle
4333
+ * Generated from: lib/models/contact-details.model.ts
4334
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4335
+ */
4336
+ /** @enum {string} */
4337
+ var BadgeColour = {
4338
+ BADGE_RED: "hmcts-badge--red",
4339
+ BADGE_BLUE: "hmcts-badge--blue",
4340
+ BADGE_GREEN: "hmcts-badge--green",
4341
+ };
4342
+ /**
4343
+ * @record
4344
+ */
4345
+ function ContactDetailsDataModel() { }
4346
+ if (false) {
4347
+ /** @type {?|undefined} */
4348
+ ContactDetailsDataModel.prototype.title;
4349
+ /** @type {?|undefined} */
4350
+ ContactDetailsDataModel.prototype.badgeColour;
4351
+ /** @type {?|undefined} */
4352
+ ContactDetailsDataModel.prototype.badgeText;
4353
+ /** @type {?|undefined} */
4354
+ ContactDetailsDataModel.prototype.email;
4355
+ /** @type {?|undefined} */
4356
+ ContactDetailsDataModel.prototype.phone;
4357
+ /** @type {?|undefined} */
4358
+ ContactDetailsDataModel.prototype.openingTimes;
4359
+ }
4360
+
4361
+ /**
4362
+ * @fileoverview added by tsickle
4363
+ * Generated from: lib/models/feature-user.ts
4364
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4365
+ */
4366
+ var AnonymousFeatureUser = /** @class */ (function () {
4367
+ function AnonymousFeatureUser() {
4296
4368
  }
4297
- /**
4298
- * @description getAllLocations from service Ids/location type/search term
4299
- * @param serviceIds: SSCS | SSCS,IA split with ','
4300
- * @param locationType: optional | hearing | case_management
4301
- * @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
4302
- * @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4303
- */
4304
- /**
4305
- * \@description getAllLocations from service Ids/location type/search term
4306
- * @param {?} serviceIds
4307
- * @param {?} locationType
4308
- * @param {?} searchTerm
4309
- * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4310
- */
4311
- LocationService.prototype.getAllLocations = /**
4312
- * \@description getAllLocations from service Ids/location type/search term
4313
- * @param {?} serviceIds
4314
- * @param {?} locationType
4315
- * @param {?} searchTerm
4316
- * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4317
- */
4318
- function (serviceIds, locationType, searchTerm) {
4319
- return this.http.get("api/locations/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
4320
- };
4321
- /**
4322
- * @description searchLocations from service Ids/location type/search term
4323
- * @param serviceIds: BBA3 | BBA3,BFA1 split with ','
4324
- * @param locationType: optional | hearing | case_management
4325
- * @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
4326
- * @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4327
- */
4328
- /**
4329
- * \@description searchLocations from service Ids/location type/search term
4330
- * @param {?} serviceIds
4331
- * @param {?} locationType
4332
- * @param {?} searchTerm
4333
- * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4334
- */
4335
- LocationService.prototype.searchLocations = /**
4336
- * \@description searchLocations from service Ids/location type/search term
4337
- * @param {?} serviceIds
4338
- * @param {?} locationType
4339
- * @param {?} searchTerm
4340
- * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4341
- */
4342
- function (serviceIds, locationType, searchTerm) {
4343
- return this.http.get("api/prd/location/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
4344
- };
4345
- LocationService.decorators = [
4346
- { type: core.Injectable, args: [{
4347
- providedIn: 'root'
4348
- },] }
4349
- ];
4350
- /** @nocollapse */
4351
- LocationService.ctorParameters = function () { return [
4352
- { type: http.HttpClient }
4353
- ]; };
4354
- /** @nocollapse */ LocationService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function LocationService_Factory() { return new LocationService(core.ɵɵinject(http.HttpClient)); }, token: LocationService, providedIn: "root" });
4355
- return LocationService;
4369
+ return AnonymousFeatureUser;
4356
4370
  }());
4357
4371
  if (false) {
4358
- /**
4359
- * @type {?}
4360
- * @private
4361
- */
4362
- LocationService.prototype.http;
4372
+ /** @type {?} */
4373
+ AnonymousFeatureUser.prototype.anonymous;
4374
+ }
4375
+ var LoggedInFeatureUser = /** @class */ (function () {
4376
+ function LoggedInFeatureUser() {
4377
+ }
4378
+ return LoggedInFeatureUser;
4379
+ }());
4380
+ if (false) {
4381
+ /** @type {?} */
4382
+ LoggedInFeatureUser.prototype.key;
4383
+ /** @type {?} */
4384
+ LoggedInFeatureUser.prototype.custom;
4363
4385
  }
4364
4386
 
4365
4387
  /**
4366
4388
  * @fileoverview added by tsickle
4367
- * Generated from: lib/components/search-location/search-location.component.ts
4389
+ * Generated from: lib/models/idle-config.model.ts
4368
4390
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4369
4391
  */
4370
- var SearchLocationComponent = /** @class */ (function () {
4371
- function SearchLocationComponent(locationService, fb, cd) {
4372
- this.locationService = locationService;
4373
- this.fb = fb;
4374
- this.cd = cd;
4375
- this.disabled = null;
4376
- this.singleMode = false;
4377
- this.locationType = '';
4378
- this.serviceIds = '';
4379
- this.submitted = true;
4380
- this.delay = 500;
4381
- this.showAutocomplete = false;
4382
- this.locations = [];
4383
- this.locationSelected = new core.EventEmitter();
4384
- this.locationInputChanged = new core.EventEmitter();
4385
- this.searchLocationChanged = new core.EventEmitter();
4386
- this.minSearchCharacters = 3;
4387
- this.term = '';
4388
- this.pSelectedLocations = [];
4389
- this.pReset = true;
4390
- this.form = this.fb.group({
4391
- searchTerm: ['']
4392
- });
4393
- }
4394
- Object.defineProperty(SearchLocationComponent.prototype, "reset", {
4395
- get: /**
4396
- * @return {?}
4397
- */
4398
- function () {
4399
- return this.pReset;
4400
- },
4401
- set: /**
4402
- * @param {?} value
4403
- * @return {?}
4404
- */
4405
- function (value) {
4406
- this.pReset = value;
4407
- this.resetSearchTerm();
4408
- },
4409
- enumerable: true,
4410
- configurable: true
4411
- });
4412
- Object.defineProperty(SearchLocationComponent.prototype, "selectedLocations", {
4413
- get: /**
4414
- * @return {?}
4415
- */
4416
- function () {
4417
- return this.pSelectedLocations;
4418
- },
4419
- set: /**
4420
- * @param {?} value
4421
- * @return {?}
4422
- */
4423
- function (value) {
4424
- this.pSelectedLocations = value;
4425
- },
4426
- enumerable: true,
4427
- configurable: true
4428
- });
4429
- /**
4430
- * @return {?}
4431
- */
4432
- SearchLocationComponent.prototype.ngOnInit = /**
4433
- * @return {?}
4434
- */
4435
- function () {
4436
- if (this.singleMode && this.selectedLocations.length > 0) {
4437
- /** @type {?} */
4438
- var location_1 = this.selectedLocations[0];
4439
- this.form.controls.searchTerm.patchValue(location_1.site_name, { emitEvent: false, onlySelf: true });
4440
- }
4441
- this.search();
4442
- };
4443
- /**
4444
- * @param {?} term
4445
- * @return {?}
4446
- */
4447
- SearchLocationComponent.prototype.filter = /**
4448
- * @param {?} term
4449
- * @return {?}
4450
- */
4451
- function (term) {
4452
- var _this = this;
4453
- this.getLocations(term).pipe(operators.map((/**
4454
- * @param {?} locations
4455
- * @return {?}
4456
- */
4457
- function (locations) { return _this.removeSelectedLocations(locations); })));
4458
- };
4459
- /**
4460
- * @param {?} location
4461
- * @return {?}
4462
- */
4463
- SearchLocationComponent.prototype.onSelectionChange = /**
4464
- * @param {?} location
4465
- * @return {?}
4466
- */
4467
- function (location) {
4468
- this.form.controls.searchTerm.patchValue(location.site_name, { emitEvent: false, onlySelf: true });
4469
- this.locationSelected.emit(location);
4470
- };
4471
- /**
4472
- * @return {?}
4473
- */
4474
- SearchLocationComponent.prototype.search = /**
4475
- * @return {?}
4476
- */
4477
- function () {
4478
- var _this = this;
4479
- this.form.controls.searchTerm.valueChanges
4480
- .pipe(operators.tap((/**
4481
- * @param {?} term
4482
- * @return {?}
4483
- */
4484
- function (term) { return _this.locationInputChanged.next(term); })), operators.tap((/**
4485
- * @return {?}
4486
- */
4487
- function () { return _this.locations = []; })), operators.tap((/**
4488
- * @param {?} term
4489
- * @return {?}
4490
- */
4491
- function (term) { return _this.term = term; })), operators.filter((/**
4492
- * @param {?} term
4493
- * @return {?}
4494
- */
4495
- function (term) { return !!term && term.length >= _this.minSearchCharacters; })), operators.debounceTime(this.delay), operators.mergeMap((/**
4496
- * @param {?} value
4497
- * @return {?}
4498
- */
4499
- function (value) { return _this.getLocations(value); })), operators.map((/**
4500
- * @param {?} locations
4501
- * @return {?}
4502
- */
4503
- function (locations) { return _this.removeSelectedLocations(locations); }))).subscribe((/**
4504
- * @param {?} locations
4505
- * @return {?}
4506
- */
4507
- function (locations) {
4508
- _this.locations = locations;
4509
- _this.cd.markForCheck();
4510
- if (locations.length === 1 && _this.term === locations[0].site_name && !_this.singleMode) {
4511
- _this.locationSelected.emit(locations[0]);
4512
- _this.showAutocomplete = false;
4513
- return;
4514
- }
4515
- _this.showAutocomplete = true;
4516
- }));
4517
- };
4518
- /**
4519
- * @return {?}
4520
- */
4521
- SearchLocationComponent.prototype.onInput = /**
4522
- * @return {?}
4523
- */
4524
- function () {
4525
- this.searchLocationChanged.emit();
4526
- };
4527
- /**
4528
- * @param {?} term
4529
- * @return {?}
4530
- */
4531
- SearchLocationComponent.prototype.getLocations = /**
4532
- * @param {?} term
4533
- * @return {?}
4534
- */
4535
- function (term) {
4536
- return this.locationService.getAllLocations(this.serviceIds, this.locationType, term);
4537
- };
4538
- /**
4539
- * @return {?}
4540
- */
4541
- SearchLocationComponent.prototype.resetSearchTerm = /**
4542
- * @return {?}
4543
- */
4544
- function () {
4545
- this.form.controls.searchTerm.patchValue('', { emitEvent: false, onlySelf: true });
4546
- };
4547
- /**
4548
- * @private
4549
- * @param {?} locations
4550
- * @return {?}
4551
- */
4552
- SearchLocationComponent.prototype.removeSelectedLocations = /**
4553
- * @private
4554
- * @param {?} locations
4555
- * @return {?}
4556
- */
4557
- function (locations) {
4558
- var _this = this;
4559
- if (this.singleMode) {
4560
- return locations;
4561
- }
4562
- return locations.filter((/**
4563
- * @param {?} location
4564
- * @return {?}
4565
- */
4566
- function (location) { return !_this.selectedLocations.map((/**
4567
- * @param {?} selectedLocation
4568
- * @return {?}
4569
- */
4570
- function (selectedLocation) { return selectedLocation.epimms_id; })).includes(location.epimms_id) && location.site_name; }));
4571
- };
4572
- SearchLocationComponent.decorators = [
4573
- { type: core.Component, args: [{
4574
- selector: 'exui-search-location',
4575
- 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",
4576
- 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}"]
4577
- }] }
4578
- ];
4579
- /** @nocollapse */
4580
- SearchLocationComponent.ctorParameters = function () { return [
4581
- { type: LocationService },
4582
- { type: forms.FormBuilder },
4583
- { type: core.ChangeDetectorRef }
4584
- ]; };
4585
- SearchLocationComponent.propDecorators = {
4586
- control: [{ type: core.Input }],
4587
- disabled: [{ type: core.Input }],
4588
- singleMode: [{ type: core.Input }],
4589
- locationType: [{ type: core.Input }],
4590
- serviceIds: [{ type: core.Input }],
4591
- submitted: [{ type: core.Input }],
4592
- delay: [{ type: core.Input }],
4593
- form: [{ type: core.Input }],
4594
- showAutocomplete: [{ type: core.Input }],
4595
- locations: [{ type: core.Input }],
4596
- locationSelected: [{ type: core.Output }],
4597
- locationInputChanged: [{ type: core.Output }],
4598
- searchLocationChanged: [{ type: core.Output }],
4599
- reset: [{ type: core.Input }],
4600
- selectedLocations: [{ type: core.Input }]
4601
- };
4602
- return SearchLocationComponent;
4603
- }());
4392
+ /**
4393
+ * @record
4394
+ */
4395
+ function IdleConfigModel() { }
4604
4396
  if (false) {
4605
4397
  /** @type {?} */
4606
- SearchLocationComponent.prototype.control;
4607
- /** @type {?} */
4608
- SearchLocationComponent.prototype.disabled;
4398
+ IdleConfigModel.prototype.timeout;
4609
4399
  /** @type {?} */
4610
- SearchLocationComponent.prototype.singleMode;
4400
+ IdleConfigModel.prototype.idleMilliseconds;
4611
4401
  /** @type {?} */
4612
- SearchLocationComponent.prototype.locationType;
4402
+ IdleConfigModel.prototype.keepAliveInSeconds;
4403
+ /** @type {?|undefined} */
4404
+ IdleConfigModel.prototype.idleServiceName;
4405
+ }
4406
+
4407
+ /**
4408
+ * @fileoverview added by tsickle
4409
+ * Generated from: lib/models/location.model.ts
4410
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4411
+ */
4412
+ /**
4413
+ * @record
4414
+ */
4415
+ function LocationModel() { }
4416
+ if (false) {
4613
4417
  /** @type {?} */
4614
- SearchLocationComponent.prototype.serviceIds;
4418
+ LocationModel.prototype.court_venue_id;
4615
4419
  /** @type {?} */
4616
- SearchLocationComponent.prototype.submitted;
4420
+ LocationModel.prototype.site_name;
4421
+ /** @type {?|undefined} */
4422
+ LocationModel.prototype.court_name;
4617
4423
  /** @type {?} */
4618
- SearchLocationComponent.prototype.delay;
4424
+ LocationModel.prototype.epimms_id;
4425
+ /** @type {?|undefined} */
4426
+ LocationModel.prototype.open_for_public;
4619
4427
  /** @type {?} */
4620
- SearchLocationComponent.prototype.form;
4428
+ LocationModel.prototype.court_type_id;
4621
4429
  /** @type {?} */
4622
- SearchLocationComponent.prototype.showAutocomplete;
4430
+ LocationModel.prototype.court_type;
4623
4431
  /** @type {?} */
4624
- SearchLocationComponent.prototype.locations;
4432
+ LocationModel.prototype.region_id;
4625
4433
  /** @type {?} */
4626
- SearchLocationComponent.prototype.locationSelected;
4434
+ LocationModel.prototype.region;
4435
+ /** @type {?|undefined} */
4436
+ LocationModel.prototype.cluster_id;
4437
+ /** @type {?|undefined} */
4438
+ LocationModel.prototype.cluster_name;
4439
+ /** @type {?|undefined} */
4440
+ LocationModel.prototype.court_status;
4441
+ /** @type {?|undefined} */
4442
+ LocationModel.prototype.court_open_date;
4443
+ /** @type {?|undefined} */
4444
+ LocationModel.prototype.closed_date;
4627
4445
  /** @type {?} */
4628
- SearchLocationComponent.prototype.locationInputChanged;
4446
+ LocationModel.prototype.postcode;
4629
4447
  /** @type {?} */
4630
- SearchLocationComponent.prototype.searchLocationChanged;
4448
+ LocationModel.prototype.court_address;
4449
+ /** @type {?|undefined} */
4450
+ LocationModel.prototype.phone_number;
4451
+ /** @type {?|undefined} */
4452
+ LocationModel.prototype.court_location_code;
4453
+ /** @type {?|undefined} */
4454
+ LocationModel.prototype.dx_address;
4455
+ /** @type {?|undefined} */
4456
+ LocationModel.prototype.welsh_site_name;
4457
+ /** @type {?|undefined} */
4458
+ LocationModel.prototype.welsh_court_address;
4459
+ /** @type {?|undefined} */
4460
+ LocationModel.prototype.venue_name;
4631
4461
  /** @type {?} */
4632
- SearchLocationComponent.prototype.minSearchCharacters;
4462
+ LocationModel.prototype.is_case_management_location;
4633
4463
  /** @type {?} */
4634
- SearchLocationComponent.prototype.term;
4635
- /**
4636
- * @type {?}
4637
- * @private
4638
- */
4639
- SearchLocationComponent.prototype.pSelectedLocations;
4640
- /**
4641
- * @type {?}
4642
- * @private
4643
- */
4644
- SearchLocationComponent.prototype.pReset;
4645
- /**
4646
- * @type {?}
4647
- * @private
4648
- */
4649
- SearchLocationComponent.prototype.locationService;
4650
- /**
4651
- * @type {?}
4652
- * @private
4653
- */
4654
- SearchLocationComponent.prototype.fb;
4655
- /**
4656
- * @type {?}
4657
- * @private
4658
- */
4659
- SearchLocationComponent.prototype.cd;
4464
+ LocationModel.prototype.is_hearing_location;
4660
4465
  }
4661
-
4662
4466
  /**
4663
- * @fileoverview added by tsickle
4664
- * Generated from: lib/components/find-location/find-location.component.ts
4665
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4467
+ * @record
4666
4468
  */
4667
- var FindLocationComponent = /** @class */ (function () {
4668
- function FindLocationComponent() {
4669
- this.locationFieldChanged = new core.EventEmitter();
4670
- this.selectedLocations = [];
4671
- this.submitted = true;
4672
- this.enableAddLocationButton = true;
4673
- this.locationTitle = 'Search for a location by name';
4674
- this.disableInputField = false;
4675
- this.locations = [];
4676
- this.tempSelectedLocation = null;
4677
- this.serviceIds = 'SSCS,IA';
4678
- this.pServices = [];
4679
- this.pDisabled = false;
4680
- }
4681
- Object.defineProperty(FindLocationComponent.prototype, "disabled", {
4469
+ function LocationByEPIMMSModel() { }
4470
+ if (false) {
4471
+ /** @type {?} */
4472
+ LocationByEPIMMSModel.prototype.epimms_id;
4473
+ /** @type {?} */
4474
+ LocationByEPIMMSModel.prototype.site_name;
4475
+ /** @type {?|undefined} */
4476
+ LocationByEPIMMSModel.prototype.court_name;
4477
+ /** @type {?|undefined} */
4478
+ LocationByEPIMMSModel.prototype.open_for_public;
4479
+ /** @type {?} */
4480
+ LocationByEPIMMSModel.prototype.region_id;
4481
+ /** @type {?} */
4482
+ LocationByEPIMMSModel.prototype.region;
4483
+ /** @type {?|undefined} */
4484
+ LocationByEPIMMSModel.prototype.cluster_id;
4485
+ /** @type {?|undefined} */
4486
+ LocationByEPIMMSModel.prototype.cluster_name;
4487
+ /** @type {?|undefined} */
4488
+ LocationByEPIMMSModel.prototype.court_status;
4489
+ /** @type {?|undefined} */
4490
+ LocationByEPIMMSModel.prototype.court_open_date;
4491
+ /** @type {?|undefined} */
4492
+ LocationByEPIMMSModel.prototype.closed_date;
4493
+ /** @type {?} */
4494
+ LocationByEPIMMSModel.prototype.postcode;
4495
+ /** @type {?} */
4496
+ LocationByEPIMMSModel.prototype.court_address;
4497
+ /** @type {?|undefined} */
4498
+ LocationByEPIMMSModel.prototype.phone_number;
4499
+ /** @type {?|undefined} */
4500
+ LocationByEPIMMSModel.prototype.court_location_code;
4501
+ /** @type {?|undefined} */
4502
+ LocationByEPIMMSModel.prototype.dx_address;
4503
+ /** @type {?|undefined} */
4504
+ LocationByEPIMMSModel.prototype.welsh_site_name;
4505
+ /** @type {?|undefined} */
4506
+ LocationByEPIMMSModel.prototype.welsh_court_address;
4507
+ /** @type {?|undefined} */
4508
+ LocationByEPIMMSModel.prototype.venue_name;
4509
+ /** @type {?} */
4510
+ LocationByEPIMMSModel.prototype.is_case_management_location;
4511
+ /** @type {?} */
4512
+ LocationByEPIMMSModel.prototype.is_hearing_location;
4513
+ }
4514
+ /**
4515
+ * @record
4516
+ */
4517
+ function LocationsByService() { }
4518
+ if (false) {
4519
+ /** @type {?|undefined} */
4520
+ LocationsByService.prototype.service;
4521
+ /** @type {?|undefined} */
4522
+ LocationsByService.prototype.serviceCode;
4523
+ /** @type {?|undefined} */
4524
+ LocationsByService.prototype.bookable;
4525
+ /** @type {?} */
4526
+ LocationsByService.prototype.locations;
4527
+ }
4528
+ /** @enum {string} */
4529
+ var BookingCheckType = {
4530
+ NO_CHECK: "NO_CHECK",
4531
+ BOOKINGS_AND_BASE: "BOOKINGS_AND_BASE",
4532
+ POSSIBLE_BOOKINGS: "POSSIBLE_BOOKINGS",
4533
+ };
4534
+
4535
+ /**
4536
+ * @fileoverview added by tsickle
4537
+ * Generated from: lib/models/pagination.model.ts
4538
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4539
+ */
4540
+ /**
4541
+ * @record
4542
+ */
4543
+ function Pagination() { }
4544
+ if (false) {
4545
+ /** @type {?} */
4546
+ Pagination.prototype.itemsPerPage;
4547
+ /** @type {?} */
4548
+ Pagination.prototype.currentPage;
4549
+ /** @type {?} */
4550
+ Pagination.prototype.totalItems;
4551
+ }
4552
+
4553
+ /**
4554
+ * @fileoverview added by tsickle
4555
+ * Generated from: lib/models/person.model.ts
4556
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4557
+ */
4558
+ /**
4559
+ * @record
4560
+ */
4561
+ function Person() { }
4562
+ if (false) {
4563
+ /** @type {?} */
4564
+ Person.prototype.id;
4565
+ /** @type {?} */
4566
+ Person.prototype.name;
4567
+ /** @type {?|undefined} */
4568
+ Person.prototype.email;
4569
+ /** @type {?} */
4570
+ Person.prototype.domain;
4571
+ /** @type {?|undefined} */
4572
+ Person.prototype.knownAs;
4573
+ }
4574
+ /**
4575
+ * @record
4576
+ */
4577
+ function JudicialUserModel() { }
4578
+ if (false) {
4579
+ /** @type {?} */
4580
+ JudicialUserModel.prototype.emailId;
4581
+ /** @type {?} */
4582
+ JudicialUserModel.prototype.fullName;
4583
+ /** @type {?} */
4584
+ JudicialUserModel.prototype.idamId;
4585
+ /** @type {?} */
4586
+ JudicialUserModel.prototype.isJudge;
4587
+ /** @type {?} */
4588
+ JudicialUserModel.prototype.isMagistrate;
4589
+ /** @type {?} */
4590
+ JudicialUserModel.prototype.isPanelMember;
4591
+ /** @type {?} */
4592
+ JudicialUserModel.prototype.knownAs;
4593
+ /** @type {?} */
4594
+ JudicialUserModel.prototype.personalCode;
4595
+ /** @type {?} */
4596
+ JudicialUserModel.prototype.surname;
4597
+ /** @type {?} */
4598
+ JudicialUserModel.prototype.title;
4599
+ }
4600
+ /**
4601
+ * @record
4602
+ */
4603
+ function CaseworkersByService() { }
4604
+ if (false) {
4605
+ /** @type {?} */
4606
+ CaseworkersByService.prototype.service;
4607
+ /** @type {?} */
4608
+ CaseworkersByService.prototype.caseworkers;
4609
+ }
4610
+ /**
4611
+ * @record
4612
+ */
4613
+ function Caseworker() { }
4614
+ if (false) {
4615
+ /** @type {?} */
4616
+ Caseworker.prototype.idamId;
4617
+ /** @type {?} */
4618
+ Caseworker.prototype.firstName;
4619
+ /** @type {?} */
4620
+ Caseworker.prototype.lastName;
4621
+ /** @type {?} */
4622
+ Caseworker.prototype.email;
4623
+ /** @type {?|undefined} */
4624
+ Caseworker.prototype.knownAs;
4625
+ /** @type {?} */
4626
+ Caseworker.prototype.roleCategory;
4627
+ }
4628
+ /** @enum {string} */
4629
+ var PersonRole = {
4630
+ JUDICIAL: "Judicial",
4631
+ CASEWORKER: "Legal Ops",
4632
+ ADMIN: "Admin",
4633
+ ALL: "All",
4634
+ };
4635
+ /** @enum {string} */
4636
+ var RoleCategory = {
4637
+ JUDICIAL: "JUDICIAL",
4638
+ CASEWORKER: "LEGAL_OPERATIONS",
4639
+ ADMIN: "ADMIN",
4640
+ ALL: "ALL",
4641
+ };
4642
+
4643
+ /**
4644
+ * @fileoverview added by tsickle
4645
+ * Generated from: lib/models/tcDocument.model.ts
4646
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4647
+ */
4648
+ /**
4649
+ * @record
4650
+ */
4651
+ function TCDocument() { }
4652
+ if (false) {
4653
+ /** @type {?} */
4654
+ TCDocument.prototype.version;
4655
+ /** @type {?} */
4656
+ TCDocument.prototype.content;
4657
+ /** @type {?} */
4658
+ TCDocument.prototype.mimeType;
4659
+ }
4660
+
4661
+ /**
4662
+ * @fileoverview added by tsickle
4663
+ * Generated from: lib/models/user.model.ts
4664
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4665
+ */
4666
+ /**
4667
+ * @record
4668
+ */
4669
+ function User() { }
4670
+ if (false) {
4671
+ /** @type {?|undefined} */
4672
+ User.prototype.routerLink;
4673
+ /** @type {?|undefined} */
4674
+ User.prototype.routerLinkTitle;
4675
+ /** @type {?|undefined} */
4676
+ User.prototype.fullName;
4677
+ /** @type {?|undefined} */
4678
+ User.prototype.email;
4679
+ /** @type {?|undefined} */
4680
+ User.prototype.status;
4681
+ /** @type {?|undefined} */
4682
+ User.prototype.resendInvite;
4683
+ /* Skipping unhandled member: [key: string]: any;*/
4684
+ }
4685
+
4686
+ /**
4687
+ * @fileoverview added by tsickle
4688
+ * Generated from: lib/models/filter.model.ts
4689
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4690
+ */
4691
+ /**
4692
+ * @record
4693
+ */
4694
+ function FilterConfig() { }
4695
+ if (false) {
4696
+ /** @type {?} */
4697
+ FilterConfig.prototype.id;
4698
+ /** @type {?} */
4699
+ FilterConfig.prototype.fields;
4700
+ /** @type {?} */
4701
+ FilterConfig.prototype.persistence;
4702
+ /** @type {?} */
4703
+ FilterConfig.prototype.applyButtonText;
4704
+ /** @type {?} */
4705
+ FilterConfig.prototype.cancelButtonText;
4706
+ /** @type {?|undefined} */
4707
+ FilterConfig.prototype.cancelSetting;
4708
+ /** @type {?|undefined} */
4709
+ FilterConfig.prototype.enableDisabledButton;
4710
+ /** @type {?|undefined} */
4711
+ FilterConfig.prototype.showCancelFilterButton;
4712
+ }
4713
+ /**
4714
+ * @record
4715
+ */
4716
+ function FilterFieldConfig() { }
4717
+ if (false) {
4718
+ /** @type {?} */
4719
+ FilterFieldConfig.prototype.name;
4720
+ /** @type {?} */
4721
+ FilterFieldConfig.prototype.options;
4722
+ /** @type {?} */
4723
+ FilterFieldConfig.prototype.minSelected;
4724
+ /** @type {?} */
4725
+ FilterFieldConfig.prototype.maxSelected;
4726
+ /** @type {?|undefined} */
4727
+ FilterFieldConfig.prototype.minSelectedError;
4728
+ /** @type {?|undefined} */
4729
+ FilterFieldConfig.prototype.maxSelectedError;
4730
+ /** @type {?|undefined} */
4731
+ FilterFieldConfig.prototype.displayMaxSelectedError;
4732
+ /** @type {?|undefined} */
4733
+ FilterFieldConfig.prototype.displayMinSelectedError;
4734
+ /** @type {?|undefined} */
4735
+ FilterFieldConfig.prototype.lineBreakBefore;
4736
+ /** @type {?|undefined} */
4737
+ FilterFieldConfig.prototype.showCondition;
4738
+ /** @type {?|undefined} */
4739
+ FilterFieldConfig.prototype.enableCondition;
4740
+ /** @type {?|undefined} */
4741
+ FilterFieldConfig.prototype.enableAddLocationButton;
4742
+ /** @type {?|undefined} */
4743
+ FilterFieldConfig.prototype.changeResetFields;
4744
+ /** @type {?|undefined} */
4745
+ FilterFieldConfig.prototype.findPersonField;
4746
+ /** @type {?|undefined} */
4747
+ FilterFieldConfig.prototype.findLocationField;
4748
+ /** @type {?|undefined} */
4749
+ FilterFieldConfig.prototype.domainField;
4750
+ /** @type {?|undefined} */
4751
+ FilterFieldConfig.prototype.disable;
4752
+ /** @type {?|undefined} */
4753
+ FilterFieldConfig.prototype.disabledText;
4754
+ /** @type {?} */
4755
+ FilterFieldConfig.prototype.type;
4756
+ /** @type {?|undefined} */
4757
+ FilterFieldConfig.prototype.domain;
4758
+ /** @type {?|undefined} */
4759
+ FilterFieldConfig.prototype.title;
4760
+ /** @type {?|undefined} */
4761
+ FilterFieldConfig.prototype.subTitle;
4762
+ /** @type {?|undefined} */
4763
+ FilterFieldConfig.prototype.locationTitle;
4764
+ /** @type {?|undefined} */
4765
+ FilterFieldConfig.prototype.radioSelectionChange;
4766
+ /** @type {?|undefined} */
4767
+ FilterFieldConfig.prototype.bookingCheckType;
4768
+ }
4769
+ /**
4770
+ * @record
4771
+ */
4772
+ function FilterSetting() { }
4773
+ if (false) {
4774
+ /** @type {?} */
4775
+ FilterSetting.prototype.id;
4776
+ /** @type {?|undefined} */
4777
+ FilterSetting.prototype.reset;
4778
+ /** @type {?} */
4779
+ FilterSetting.prototype.fields;
4780
+ }
4781
+ var RadioFilterFieldConfig = /** @class */ (function () {
4782
+ function RadioFilterFieldConfig() {
4783
+ }
4784
+ return RadioFilterFieldConfig;
4785
+ }());
4786
+ if (false) {
4787
+ /** @type {?} */
4788
+ RadioFilterFieldConfig.prototype.name;
4789
+ /** @type {?} */
4790
+ RadioFilterFieldConfig.prototype.options;
4791
+ /** @type {?} */
4792
+ RadioFilterFieldConfig.prototype.minSelected;
4793
+ /** @type {?} */
4794
+ RadioFilterFieldConfig.prototype.maxSelected;
4795
+ /** @type {?} */
4796
+ RadioFilterFieldConfig.prototype.type;
4797
+ }
4798
+ /**
4799
+ * @record
4800
+ */
4801
+ function FilterError() { }
4802
+ if (false) {
4803
+ /** @type {?} */
4804
+ FilterError.prototype.name;
4805
+ /** @type {?} */
4806
+ FilterError.prototype.error;
4807
+ }
4808
+
4809
+ /**
4810
+ * @fileoverview added by tsickle
4811
+ * Generated from: lib/models/public_api.ts
4812
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4813
+ */
4814
+
4815
+ /**
4816
+ * @fileoverview added by tsickle
4817
+ * Generated from: lib/models/search-options.model.ts
4818
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4819
+ */
4820
+ /**
4821
+ * @record
4822
+ */
4823
+ function SearchOptions() { }
4824
+ if (false) {
4825
+ /** @type {?} */
4826
+ SearchOptions.prototype.searchTerm;
4827
+ /** @type {?} */
4828
+ SearchOptions.prototype.userRole;
4829
+ /** @type {?} */
4830
+ SearchOptions.prototype.services;
4831
+ /** @type {?|undefined} */
4832
+ SearchOptions.prototype.userIncluded;
4833
+ /** @type {?|undefined} */
4834
+ SearchOptions.prototype.assignedUser;
4835
+ }
4836
+
4837
+ /**
4838
+ * @fileoverview added by tsickle
4839
+ * Generated from: lib/models/timeout-notification.model.ts
4840
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4841
+ */
4842
+ /**
4843
+ * @record
4844
+ */
4845
+ function TimeoutNotificationConfig() { }
4846
+ if (false) {
4847
+ /** @type {?} */
4848
+ TimeoutNotificationConfig.prototype.idleModalDisplayTime;
4849
+ /** @type {?} */
4850
+ TimeoutNotificationConfig.prototype.totalIdleTime;
4851
+ /** @type {?|undefined} */
4852
+ TimeoutNotificationConfig.prototype.idleServiceName;
4853
+ }
4854
+
4855
+ /**
4856
+ * @fileoverview added by tsickle
4857
+ * Generated from: lib/models/user-details.model.ts
4858
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4859
+ */
4860
+ /**
4861
+ * @record
4862
+ */
4863
+ function UserDetails() { }
4864
+ if (false) {
4865
+ /** @type {?|undefined} */
4866
+ UserDetails.prototype.caseRoles;
4867
+ /** @type {?} */
4868
+ UserDetails.prototype.email;
4869
+ /** @type {?} */
4870
+ UserDetails.prototype.firstName;
4871
+ /** @type {?} */
4872
+ UserDetails.prototype.idamId;
4873
+ /** @type {?} */
4874
+ UserDetails.prototype.lastName;
4875
+ }
4876
+
4877
+ /**
4878
+ * @fileoverview added by tsickle
4879
+ * Generated from: lib/models/index.ts
4880
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4881
+ */
4882
+
4883
+ /**
4884
+ * @fileoverview added by tsickle
4885
+ * Generated from: lib/services/locations/location.service.ts
4886
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4887
+ */
4888
+ var LocationService = /** @class */ (function () {
4889
+ function LocationService(http) {
4890
+ this.http = http;
4891
+ }
4892
+ /**
4893
+ * @description getAllLocations from service Ids/location type/search term
4894
+ * @param serviceIds: SSCS | SSCS,IA split with ','
4895
+ * @param locationType: optional | hearing | case_management
4896
+ * @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
4897
+ * @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4898
+ */
4899
+ /**
4900
+ * \@description getAllLocations from service Ids/location type/search term
4901
+ * @param {?} serviceIds
4902
+ * @param {?} locationType
4903
+ * @param {?} searchTerm
4904
+ * @param {?} userLocations
4905
+ * @param {?} bookingLocations
4906
+ * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4907
+ */
4908
+ LocationService.prototype.getAllLocations = /**
4909
+ * \@description getAllLocations from service Ids/location type/search term
4910
+ * @param {?} serviceIds
4911
+ * @param {?} locationType
4912
+ * @param {?} searchTerm
4913
+ * @param {?} userLocations
4914
+ * @param {?} bookingLocations
4915
+ * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4916
+ */
4917
+ function (serviceIds, locationType, searchTerm, userLocations, bookingLocations) {
4918
+ return this.http.post("api/locations/getLocations", { serviceIds: serviceIds, locationType: locationType, searchTerm: searchTerm, userLocations: userLocations, bookingLocations: bookingLocations });
4919
+ };
4920
+ /**
4921
+ * @description searchLocations from service Ids/location type/search term
4922
+ * @param serviceIds: BBA3 | BBA3,BFA1 split with ','
4923
+ * @param locationType: optional | hearing | case_management
4924
+ * @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
4925
+ * @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4926
+ */
4927
+ /**
4928
+ * \@description searchLocations from service Ids/location type/search term
4929
+ * @param {?} serviceIds
4930
+ * @param {?} locationType
4931
+ * @param {?} searchTerm
4932
+ * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4933
+ */
4934
+ LocationService.prototype.searchLocations = /**
4935
+ * \@description searchLocations from service Ids/location type/search term
4936
+ * @param {?} serviceIds
4937
+ * @param {?} locationType
4938
+ * @param {?} searchTerm
4939
+ * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
4940
+ */
4941
+ function (serviceIds, locationType, searchTerm) {
4942
+ return this.http.get("api/prd/location/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
4943
+ };
4944
+ LocationService.decorators = [
4945
+ { type: core.Injectable, args: [{
4946
+ providedIn: 'root'
4947
+ },] }
4948
+ ];
4949
+ /** @nocollapse */
4950
+ LocationService.ctorParameters = function () { return [
4951
+ { type: http.HttpClient }
4952
+ ]; };
4953
+ /** @nocollapse */ LocationService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function LocationService_Factory() { return new LocationService(core.ɵɵinject(http.HttpClient)); }, token: LocationService, providedIn: "root" });
4954
+ return LocationService;
4955
+ }());
4956
+ if (false) {
4957
+ /**
4958
+ * @type {?}
4959
+ * @private
4960
+ */
4961
+ LocationService.prototype.http;
4962
+ }
4963
+
4964
+ /**
4965
+ * @fileoverview added by tsickle
4966
+ * Generated from: lib/services/session-storage/session-storage.service.ts
4967
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4968
+ */
4969
+ var SessionStorageService = /** @class */ (function () {
4970
+ function SessionStorageService() {
4971
+ }
4972
+ /**
4973
+ * Get an item from the session storage.
4974
+ * If remove is true, the item will be removed once read
4975
+ * @param removeAfterRead removed the key once it has been read
4976
+ */
4977
+ /**
4978
+ * Get an item from the session storage.
4979
+ * If remove is true, the item will be removed once read
4980
+ * @param {?} key
4981
+ * @param {?=} removeAfterRead removed the key once it has been read
4982
+ * @return {?}
4983
+ */
4984
+ SessionStorageService.prototype.getItem = /**
4985
+ * Get an item from the session storage.
4986
+ * If remove is true, the item will be removed once read
4987
+ * @param {?} key
4988
+ * @param {?=} removeAfterRead removed the key once it has been read
4989
+ * @return {?}
4990
+ */
4991
+ function (key, removeAfterRead) {
4992
+ if (removeAfterRead === void 0) { removeAfterRead = false; }
4993
+ /** @type {?} */
4994
+ var item = sessionStorage.getItem(key);
4995
+ if (removeAfterRead) {
4996
+ this.removeItem(key);
4997
+ }
4998
+ return item;
4999
+ };
5000
+ /**
5001
+ * Set an item in the session storage.
5002
+ */
5003
+ /**
5004
+ * Set an item in the session storage.
5005
+ * @param {?} key
5006
+ * @param {?} value
5007
+ * @return {?}
5008
+ */
5009
+ SessionStorageService.prototype.setItem = /**
5010
+ * Set an item in the session storage.
5011
+ * @param {?} key
5012
+ * @param {?} value
5013
+ * @return {?}
5014
+ */
5015
+ function (key, value) {
5016
+ sessionStorage.setItem(key, value);
5017
+ };
5018
+ /**
5019
+ * Remove an item in the session storage.
5020
+ */
5021
+ /**
5022
+ * Remove an item in the session storage.
5023
+ * @param {?} key
5024
+ * @return {?}
5025
+ */
5026
+ SessionStorageService.prototype.removeItem = /**
5027
+ * Remove an item in the session storage.
5028
+ * @param {?} key
5029
+ * @return {?}
5030
+ */
5031
+ function (key) {
5032
+ sessionStorage.removeItem(key);
5033
+ };
5034
+ /**
5035
+ * Clear all the items held in session storage.
5036
+ */
5037
+ /**
5038
+ * Clear all the items held in session storage.
5039
+ * @return {?}
5040
+ */
5041
+ SessionStorageService.prototype.clear = /**
5042
+ * Clear all the items held in session storage.
5043
+ * @return {?}
5044
+ */
5045
+ function () {
5046
+ sessionStorage.clear();
5047
+ };
5048
+ SessionStorageService.decorators = [
5049
+ { type: core.Injectable, args: [{
5050
+ providedIn: 'root'
5051
+ },] }
5052
+ ];
5053
+ /** @nocollapse */ SessionStorageService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
5054
+ return SessionStorageService;
5055
+ }());
5056
+
5057
+ /**
5058
+ * @fileoverview added by tsickle
5059
+ * Generated from: lib/components/search-location/search-location.component.ts
5060
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5061
+ */
5062
+ var SearchLocationComponent = /** @class */ (function () {
5063
+ function SearchLocationComponent(locationService, sessionStorageService, fb, cd) {
5064
+ this.locationService = locationService;
5065
+ this.sessionStorageService = sessionStorageService;
5066
+ this.fb = fb;
5067
+ this.cd = cd;
5068
+ this.disabled = null;
5069
+ this.singleMode = false;
5070
+ this.locationType = '';
5071
+ this.serviceIds = '';
5072
+ this.submitted = true;
5073
+ this.delay = 500;
5074
+ this.showAutocomplete = false;
5075
+ this.locations = [];
5076
+ this.locationSelected = new core.EventEmitter();
5077
+ this.locationInputChanged = new core.EventEmitter();
5078
+ this.searchLocationChanged = new core.EventEmitter();
5079
+ this.minSearchCharacters = 3;
5080
+ this.term = '';
5081
+ this.pSelectedLocations = [];
5082
+ this.pReset = true;
5083
+ this.form = this.fb.group({
5084
+ searchTerm: ['']
5085
+ });
5086
+ }
5087
+ Object.defineProperty(SearchLocationComponent.prototype, "reset", {
4682
5088
  get: /**
4683
5089
  * @return {?}
4684
5090
  */
4685
5091
  function () {
4686
- return this.pDisabled;
5092
+ return this.pReset;
4687
5093
  },
4688
5094
  set: /**
4689
5095
  * @param {?} value
4690
5096
  * @return {?}
4691
5097
  */
4692
5098
  function (value) {
4693
- if (value) {
4694
- this.searchLocationComponent.resetSearchTerm();
4695
- this.removeSelectedValues();
4696
- }
4697
- this.pDisabled = this.disableInputField === true ? true : null;
5099
+ this.pReset = value;
5100
+ this.resetSearchTerm();
4698
5101
  },
4699
5102
  enumerable: true,
4700
5103
  configurable: true
4701
5104
  });
4702
- Object.defineProperty(FindLocationComponent.prototype, "services", {
5105
+ Object.defineProperty(SearchLocationComponent.prototype, "selectedLocations", {
4703
5106
  get: /**
4704
5107
  * @return {?}
4705
5108
  */
4706
5109
  function () {
4707
- return this.pServices;
5110
+ return this.pSelectedLocations;
4708
5111
  },
4709
5112
  set: /**
4710
5113
  * @param {?} value
4711
5114
  * @return {?}
4712
5115
  */
4713
5116
  function (value) {
4714
- var _this = this;
4715
- this.pServices = value;
4716
- /** @type {?} */
4717
- var field = this.fields.find((/**
4718
- * @param {?} f
4719
- * @return {?}
4720
- */
4721
- function (f) { return f.name === _this.field.findLocationField; }));
4722
- if (field) {
4723
- if (typeof value === 'string') {
4724
- this.serviceIds = value;
4725
- }
4726
- else {
4727
- this.serviceIds = getValues(field.options, value).filter((/**
4728
- * @param {?} x
4729
- * @return {?}
4730
- */
4731
- function (x) { return x !== 'services_all'; })).join(',');
4732
- }
4733
- }
5117
+ this.pSelectedLocations = value;
4734
5118
  },
4735
5119
  enumerable: true,
4736
5120
  configurable: true
@@ -4738,944 +5122,844 @@
4738
5122
  /**
4739
5123
  * @return {?}
4740
5124
  */
4741
- FindLocationComponent.prototype.addLocation = /**
5125
+ SearchLocationComponent.prototype.ngOnInit = /**
4742
5126
  * @return {?}
4743
5127
  */
4744
5128
  function () {
4745
- if (this.tempSelectedLocation) {
4746
- this.selectedLocations = __spread(this.selectedLocations, [this.tempSelectedLocation]);
4747
- this.addSelectedLocationsToForm([this.tempSelectedLocation]);
4748
- this.tempSelectedLocation = null;
4749
- this.locations = [];
4750
- this.searchLocationComponent.resetSearchTerm();
4751
- }
4752
- };
4753
- /**
4754
- * @param {?} location
4755
- * @return {?}
4756
- */
4757
- FindLocationComponent.prototype.removeLocation = /**
4758
- * @param {?} location
4759
- * @return {?}
4760
- */
4761
- function (location) {
4762
- if (location.epimms_id) {
4763
- this.selectedLocations = this.selectedLocations.filter((/**
4764
- * @param {?} selectedLocation
4765
- * @return {?}
4766
- */
4767
- function (selectedLocation) { return selectedLocation.epimms_id !== location.epimms_id; }));
4768
- /** @type {?} */
4769
- var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
5129
+ if (this.singleMode && this.selectedLocations.length > 0) {
4770
5130
  /** @type {?} */
4771
- var index = ((/** @type {?} */ (formArray.value))).findIndex((/**
4772
- * @param {?} selectedLocation
4773
- * @return {?}
4774
- */
4775
- function (selectedLocation) { return selectedLocation.epimms_id === location.epimms_id; }));
4776
- if (index > -1) {
4777
- formArray.removeAt(index);
4778
- }
5131
+ var location_1 = this.selectedLocations[0];
5132
+ this.form.controls.searchTerm.patchValue(location_1.site_name, { emitEvent: false, onlySelf: true });
4779
5133
  }
5134
+ this.search();
4780
5135
  };
4781
5136
  /**
4782
5137
  * @param {?} term
4783
5138
  * @return {?}
4784
5139
  */
4785
- FindLocationComponent.prototype.onInputChanged = /**
5140
+ SearchLocationComponent.prototype.filter = /**
4786
5141
  * @param {?} term
4787
5142
  * @return {?}
4788
5143
  */
4789
5144
  function (term) {
4790
- // if the filter is in single mode clear the selected locations
4791
- if (typeof term === 'string' && this.field.maxSelected === 1) {
4792
- this.removeSelectedValues();
4793
- }
4794
- };
4795
- /**
4796
- * @return {?}
4797
- */
4798
- FindLocationComponent.prototype.onSearchInputChanged = /**
4799
- * @return {?}
4800
- */
4801
- function () {
4802
- this.locationFieldChanged.emit();
5145
+ var _this = this;
5146
+ this.getLocations(term).pipe(operators.map((/**
5147
+ * @param {?} locations
5148
+ * @return {?}
5149
+ */
5150
+ function (locations) { return _this.removeSelectedLocations(locations); })));
4803
5151
  };
4804
5152
  /**
4805
5153
  * @param {?} location
4806
5154
  * @return {?}
4807
5155
  */
4808
- FindLocationComponent.prototype.onLocationSelected = /**
5156
+ SearchLocationComponent.prototype.onSelectionChange = /**
4809
5157
  * @param {?} location
4810
5158
  * @return {?}
4811
5159
  */
4812
5160
  function (location) {
4813
- if (this.field.maxSelected === 1) {
4814
- this.removeSelectedValues();
4815
- this.addSelectedLocationsToForm([location]);
4816
- }
4817
- else {
4818
- if (!this.selectedLocations.find((/**
4819
- * @param {?} x
4820
- * @return {?}
4821
- */
4822
- function (x) { return x.epimms_id === location.epimms_id; }))) {
4823
- if (location.epimms_id) {
4824
- this.tempSelectedLocation = location;
4825
- }
4826
- }
4827
- }
5161
+ this.form.controls.searchTerm.patchValue(location.site_name, { emitEvent: false, onlySelf: true });
5162
+ this.locationSelected.emit(location);
4828
5163
  };
4829
5164
  /**
4830
- * @private
4831
5165
  * @return {?}
4832
5166
  */
4833
- FindLocationComponent.prototype.removeSelectedValues = /**
4834
- * @private
5167
+ SearchLocationComponent.prototype.search = /**
4835
5168
  * @return {?}
4836
5169
  */
4837
5170
  function () {
4838
- /** @type {?} */
4839
- var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
4840
- for (var i = 0; i < formArray.length; i++) {
4841
- formArray.removeAt(i);
4842
- }
4843
- this.selectedLocations = [];
4844
- };
4845
- /**
4846
- * @private
4847
- * @param {?} locations
4848
- * @return {?}
4849
- */
4850
- FindLocationComponent.prototype.addSelectedLocationsToForm = /**
4851
- * @private
4852
- * @param {?} locations
4853
- * @return {?}
4854
- */
4855
- function (locations) {
4856
- var e_1, _a;
4857
- /** @type {?} */
4858
- var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
4859
- try {
4860
- for (var locations_1 = __values(locations), locations_1_1 = locations_1.next(); !locations_1_1.done; locations_1_1 = locations_1.next()) {
4861
- var location_1 = locations_1_1.value;
4862
- formArray.push(new forms.FormControl(location_1));
4863
- }
4864
- }
4865
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
4866
- finally {
4867
- try {
4868
- if (locations_1_1 && !locations_1_1.done && (_a = locations_1.return)) _a.call(locations_1);
5171
+ var _this = this;
5172
+ this.form.controls.searchTerm.valueChanges
5173
+ .pipe(operators.tap((/**
5174
+ * @param {?} term
5175
+ * @return {?}
5176
+ */
5177
+ function (term) { return _this.locationInputChanged.next(term); })), operators.tap((/**
5178
+ * @return {?}
5179
+ */
5180
+ function () { return _this.locations = []; })), operators.tap((/**
5181
+ * @param {?} term
5182
+ * @return {?}
5183
+ */
5184
+ function (term) { return _this.term = term; })), operators.filter((/**
5185
+ * @param {?} term
5186
+ * @return {?}
5187
+ */
5188
+ function (term) { return !!term && term.length >= _this.minSearchCharacters; })), operators.debounceTime(this.delay), operators.mergeMap((/**
5189
+ * @param {?} value
5190
+ * @return {?}
5191
+ */
5192
+ function (value) { return _this.getLocations(value); })), operators.map((/**
5193
+ * @param {?} locations
5194
+ * @return {?}
5195
+ */
5196
+ function (locations) { return _this.removeSelectedLocations(locations); }))).subscribe((/**
5197
+ * @param {?} locations
5198
+ * @return {?}
5199
+ */
5200
+ function (locations) {
5201
+ _this.locations = locations;
5202
+ _this.cd.markForCheck();
5203
+ if (locations.length === 1 && _this.term === locations[0].site_name && !_this.singleMode) {
5204
+ _this.locationSelected.emit(locations[0]);
5205
+ _this.showAutocomplete = false;
5206
+ return;
4869
5207
  }
4870
- finally { if (e_1) throw e_1.error; }
4871
- }
4872
- };
4873
- FindLocationComponent.decorators = [
4874
- { type: core.Component, args: [{
4875
- selector: 'xuilib-find-location',
4876
- 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",
4877
- styles: [""]
4878
- }] }
4879
- ];
4880
- FindLocationComponent.propDecorators = {
4881
- locationFieldChanged: [{ type: core.Output }],
4882
- selectedLocations: [{ type: core.Input }],
4883
- submitted: [{ type: core.Input }],
4884
- enableAddLocationButton: [{ type: core.Input }],
4885
- form: [{ type: core.Input }],
4886
- field: [{ type: core.Input }],
4887
- fields: [{ type: core.Input }],
4888
- locationTitle: [{ type: core.Input }],
4889
- disableInputField: [{ type: core.Input }],
4890
- searchLocationComponent: [{ type: core.ViewChild, args: [SearchLocationComponent, { static: true },] }],
4891
- disabled: [{ type: core.Input }],
4892
- services: [{ type: core.Input }]
5208
+ _this.showAutocomplete = true;
5209
+ }));
4893
5210
  };
4894
- return FindLocationComponent;
4895
- }());
4896
- if (false) {
4897
- /** @type {?} */
4898
- FindLocationComponent.prototype.locationFieldChanged;
4899
- /** @type {?} */
4900
- FindLocationComponent.prototype.selectedLocations;
4901
- /** @type {?} */
4902
- FindLocationComponent.prototype.submitted;
4903
- /** @type {?} */
4904
- FindLocationComponent.prototype.enableAddLocationButton;
4905
- /** @type {?} */
4906
- FindLocationComponent.prototype.form;
4907
- /** @type {?} */
4908
- FindLocationComponent.prototype.field;
4909
- /** @type {?} */
4910
- FindLocationComponent.prototype.fields;
4911
- /** @type {?} */
4912
- FindLocationComponent.prototype.locationTitle;
4913
- /** @type {?} */
4914
- FindLocationComponent.prototype.disableInputField;
4915
- /** @type {?} */
4916
- FindLocationComponent.prototype.locations;
4917
- /** @type {?} */
4918
- FindLocationComponent.prototype.tempSelectedLocation;
4919
- /** @type {?} */
4920
- FindLocationComponent.prototype.serviceIds;
4921
- /** @type {?} */
4922
- FindLocationComponent.prototype.searchLocationComponent;
4923
- /**
4924
- * @type {?}
4925
- * @private
4926
- */
4927
- FindLocationComponent.prototype.pServices;
4928
- /**
4929
- * @type {?}
4930
- * @private
4931
- */
4932
- FindLocationComponent.prototype.pDisabled;
4933
- }
4934
-
4935
- /**
4936
- * @fileoverview added by tsickle
4937
- * Generated from: lib/components/pagination/pagination.component.ts
4938
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4939
- */
4940
- var PaginationComponent = /** @class */ (function () {
4941
- function PaginationComponent() {
4942
- this.previousPage = new core.EventEmitter();
4943
- this.nextPage = new core.EventEmitter();
4944
- }
4945
5211
  /**
4946
5212
  * @return {?}
4947
5213
  */
4948
- PaginationComponent.prototype.onPrevious = /**
5214
+ SearchLocationComponent.prototype.onInput = /**
4949
5215
  * @return {?}
4950
5216
  */
4951
5217
  function () {
4952
- this.previousPage.emit(null);
5218
+ this.searchLocationChanged.emit();
4953
5219
  };
4954
5220
  /**
5221
+ * @param {?} term
4955
5222
  * @return {?}
4956
5223
  */
4957
- PaginationComponent.prototype.onNext = /**
5224
+ SearchLocationComponent.prototype.getLocations = /**
5225
+ * @param {?} term
4958
5226
  * @return {?}
4959
5227
  */
4960
- function () {
4961
- this.nextPage.emit(null);
4962
- };
4963
- PaginationComponent.decorators = [
4964
- { type: core.Component, args: [{
4965
- selector: 'xuilib-pagination',
4966
- 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",
4967
- styles: ["span.hmcts-pagination__link:hover{color:revert}"]
4968
- }] }
4969
- ];
4970
- /** @nocollapse */
4971
- PaginationComponent.ctorParameters = function () { return []; };
4972
- PaginationComponent.propDecorators = {
4973
- moreItems: [{ type: core.Input }],
4974
- firstRecord: [{ type: core.Input }],
4975
- previousPage: [{ type: core.Output }],
4976
- nextPage: [{ type: core.Output }]
5228
+ function (term) {
5229
+ /** @type {?} */
5230
+ var userLocations;
5231
+ /** @type {?} */
5232
+ var bookingLocations;
5233
+ // Booking type info - can create more
5234
+ // NO_CHECK - All work - Do not filter out locations - Default assumption
5235
+ // ONLY_BOOKINGS - My work - Try to only show base locations/booking locations
5236
+ // POSSIBLE_BOOKINGS - Create booking screen - Show only potential bookings
5237
+ if (this.bookingCheck === BookingCheckType.BOOKINGS_AND_BASE) {
5238
+ userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
5239
+ bookingLocations = JSON.parse(this.sessionStorageService.getItem('bookingLocations'));
5240
+ }
5241
+ else if (this.bookingCheck === BookingCheckType.POSSIBLE_BOOKINGS) {
5242
+ userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
5243
+ this.serviceIds = JSON.parse(this.sessionStorageService.getItem('bookableServices'));
5244
+ }
5245
+ return this.locationService.getAllLocations(this.serviceIds, this.locationType, term, userLocations, bookingLocations);
4977
5246
  };
4978
- return PaginationComponent;
4979
- }());
4980
- if (false) {
4981
- /** @type {?} */
4982
- PaginationComponent.prototype.moreItems;
4983
- /** @type {?} */
4984
- PaginationComponent.prototype.firstRecord;
4985
- /** @type {?} */
4986
- PaginationComponent.prototype.previousPage;
4987
- /** @type {?} */
4988
- PaginationComponent.prototype.nextPage;
4989
- }
4990
-
4991
- /**
4992
- * @fileoverview added by tsickle
4993
- * Generated from: lib/components/public_api.ts
4994
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4995
- */
4996
-
4997
- /**
4998
- * @fileoverview added by tsickle
4999
- * Generated from: lib/components/index.ts
5000
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5001
- */
5002
-
5003
- /**
5004
- * @fileoverview added by tsickle
5005
- * Generated from: lib/directives/feature-toggle/feature-toggle.directive.ts
5006
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5007
- */
5008
- var FeatureToggleDirective = /** @class */ (function () {
5009
- function FeatureToggleDirective(service, viewContainer, templateRef) {
5010
- this.service = service;
5011
- this.viewContainer = viewContainer;
5012
- this.templateRef = templateRef;
5013
- }
5014
- Object.defineProperty(FeatureToggleDirective.prototype, "xuilibFeatureToggle", {
5015
- set: /**
5016
- * @param {?} feature
5017
- * @return {?}
5018
- */
5019
- function (feature) {
5020
- this.feature = feature;
5021
- this.updateSubscription();
5022
- },
5023
- enumerable: true,
5024
- configurable: true
5025
- });
5026
5247
  /**
5027
5248
  * @return {?}
5028
5249
  */
5029
- FeatureToggleDirective.prototype.ngOnDestroy = /**
5250
+ SearchLocationComponent.prototype.resetSearchTerm = /**
5030
5251
  * @return {?}
5031
5252
  */
5032
5253
  function () {
5033
- if (this.subscription) {
5034
- this.subscription.unsubscribe();
5035
- }
5254
+ this.form.controls.searchTerm.patchValue('', { emitEvent: false, onlySelf: true });
5036
5255
  };
5037
5256
  /**
5038
5257
  * @private
5258
+ * @param {?} locations
5039
5259
  * @return {?}
5040
5260
  */
5041
- FeatureToggleDirective.prototype.updateSubscription = /**
5261
+ SearchLocationComponent.prototype.removeSelectedLocations = /**
5042
5262
  * @private
5263
+ * @param {?} locations
5043
5264
  * @return {?}
5044
5265
  */
5045
- function () {
5266
+ function (locations) {
5046
5267
  var _this = this;
5047
- this.subscription = this.service.isEnabled(this.feature).subscribe((/**
5048
- * @param {?} enabled
5268
+ if (this.singleMode) {
5269
+ return locations;
5270
+ }
5271
+ return locations.filter((/**
5272
+ * @param {?} location
5049
5273
  * @return {?}
5050
5274
  */
5051
- function (enabled) {
5052
- if (enabled) {
5053
- _this.viewContainer.createEmbeddedView(_this.templateRef);
5054
- }
5055
- else {
5056
- _this.viewContainer.clear();
5057
- }
5058
- }));
5275
+ function (location) { return !_this.selectedLocations.map((/**
5276
+ * @param {?} selectedLocation
5277
+ * @return {?}
5278
+ */
5279
+ function (selectedLocation) { return selectedLocation.epimms_id; })).includes(location.epimms_id) && location.site_name; }));
5059
5280
  };
5060
- FeatureToggleDirective.decorators = [
5061
- { type: core.Directive, args: [{
5062
- selector: '[xuilibFeatureToggle]'
5063
- },] }
5281
+ SearchLocationComponent.decorators = [
5282
+ { type: core.Component, args: [{
5283
+ selector: 'exui-search-location',
5284
+ 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",
5285
+ 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}"]
5286
+ }] }
5064
5287
  ];
5065
5288
  /** @nocollapse */
5066
- FeatureToggleDirective.ctorParameters = function () { return [
5067
- { type: FeatureToggleService },
5068
- { type: core.ViewContainerRef },
5069
- { type: core.TemplateRef }
5289
+ SearchLocationComponent.ctorParameters = function () { return [
5290
+ { type: LocationService },
5291
+ { type: SessionStorageService },
5292
+ { type: forms.FormBuilder },
5293
+ { type: core.ChangeDetectorRef }
5070
5294
  ]; };
5071
- FeatureToggleDirective.propDecorators = {
5072
- xuilibFeatureToggle: [{ type: core.Input }]
5295
+ SearchLocationComponent.propDecorators = {
5296
+ control: [{ type: core.Input }],
5297
+ disabled: [{ type: core.Input }],
5298
+ singleMode: [{ type: core.Input }],
5299
+ locationType: [{ type: core.Input }],
5300
+ serviceIds: [{ type: core.Input }],
5301
+ submitted: [{ type: core.Input }],
5302
+ delay: [{ type: core.Input }],
5303
+ form: [{ type: core.Input }],
5304
+ showAutocomplete: [{ type: core.Input }],
5305
+ locations: [{ type: core.Input }],
5306
+ bookingCheck: [{ type: core.Input }],
5307
+ locationSelected: [{ type: core.Output }],
5308
+ locationInputChanged: [{ type: core.Output }],
5309
+ searchLocationChanged: [{ type: core.Output }],
5310
+ reset: [{ type: core.Input }],
5311
+ selectedLocations: [{ type: core.Input }]
5073
5312
  };
5074
- return FeatureToggleDirective;
5313
+ return SearchLocationComponent;
5075
5314
  }());
5076
5315
  if (false) {
5316
+ /** @type {?} */
5317
+ SearchLocationComponent.prototype.control;
5318
+ /** @type {?} */
5319
+ SearchLocationComponent.prototype.disabled;
5320
+ /** @type {?} */
5321
+ SearchLocationComponent.prototype.singleMode;
5322
+ /** @type {?} */
5323
+ SearchLocationComponent.prototype.locationType;
5324
+ /** @type {?} */
5325
+ SearchLocationComponent.prototype.serviceIds;
5326
+ /** @type {?} */
5327
+ SearchLocationComponent.prototype.submitted;
5328
+ /** @type {?} */
5329
+ SearchLocationComponent.prototype.delay;
5330
+ /** @type {?} */
5331
+ SearchLocationComponent.prototype.form;
5332
+ /** @type {?} */
5333
+ SearchLocationComponent.prototype.showAutocomplete;
5334
+ /** @type {?} */
5335
+ SearchLocationComponent.prototype.locations;
5336
+ /** @type {?} */
5337
+ SearchLocationComponent.prototype.bookingCheck;
5338
+ /** @type {?} */
5339
+ SearchLocationComponent.prototype.locationSelected;
5340
+ /** @type {?} */
5341
+ SearchLocationComponent.prototype.locationInputChanged;
5342
+ /** @type {?} */
5343
+ SearchLocationComponent.prototype.searchLocationChanged;
5344
+ /** @type {?} */
5345
+ SearchLocationComponent.prototype.minSearchCharacters;
5346
+ /** @type {?} */
5347
+ SearchLocationComponent.prototype.term;
5077
5348
  /**
5078
5349
  * @type {?}
5079
5350
  * @private
5080
5351
  */
5081
- FeatureToggleDirective.prototype.feature;
5352
+ SearchLocationComponent.prototype.pSelectedLocations;
5082
5353
  /**
5083
5354
  * @type {?}
5084
5355
  * @private
5085
5356
  */
5086
- FeatureToggleDirective.prototype.subscription;
5357
+ SearchLocationComponent.prototype.pReset;
5087
5358
  /**
5088
5359
  * @type {?}
5089
5360
  * @private
5090
5361
  */
5091
- FeatureToggleDirective.prototype.service;
5362
+ SearchLocationComponent.prototype.locationService;
5092
5363
  /**
5093
5364
  * @type {?}
5094
5365
  * @private
5095
5366
  */
5096
- FeatureToggleDirective.prototype.viewContainer;
5367
+ SearchLocationComponent.prototype.sessionStorageService;
5097
5368
  /**
5098
5369
  * @type {?}
5099
5370
  * @private
5100
5371
  */
5101
- FeatureToggleDirective.prototype.templateRef;
5372
+ SearchLocationComponent.prototype.fb;
5373
+ /**
5374
+ * @type {?}
5375
+ * @private
5376
+ */
5377
+ SearchLocationComponent.prototype.cd;
5102
5378
  }
5103
5379
 
5104
5380
  /**
5105
5381
  * @fileoverview added by tsickle
5106
- * Generated from: lib/directives/let/let.directive.ts
5382
+ * Generated from: lib/components/find-location/find-location.component.ts
5107
5383
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5108
5384
  */
5109
- /**
5110
- * @template T
5111
- */
5112
- var /**
5113
- * @template T
5114
- */
5115
- LetContext = /** @class */ (function () {
5116
- function LetContext() {
5117
- this.$implicit = null;
5118
- this.xuilibLet = null;
5119
- }
5120
- return LetContext;
5121
- }());
5122
- if (false) {
5123
- /** @type {?} */
5124
- LetContext.prototype.$implicit;
5125
- /** @type {?} */
5126
- LetContext.prototype.xuilibLet;
5127
- }
5128
- /**
5129
- * @template T
5130
- */
5131
- var LetDirective = /** @class */ (function () {
5132
- function LetDirective(viewContainer, templateRef) {
5133
- this.viewContainer = viewContainer;
5134
- this.context = new LetContext();
5135
- this.viewContainer.createEmbeddedView(templateRef, this.context);
5385
+ var FindLocationComponent = /** @class */ (function () {
5386
+ function FindLocationComponent() {
5387
+ this.locationFieldChanged = new core.EventEmitter();
5388
+ this.selectedLocations = [];
5389
+ this.submitted = true;
5390
+ this.enableAddLocationButton = true;
5391
+ this.locationTitle = 'Search for a location by name';
5392
+ this.disableInputField = false;
5393
+ this.locations = [];
5394
+ this.tempSelectedLocation = null;
5395
+ this.serviceIds = 'SSCS,IA';
5396
+ this.pServices = [];
5397
+ this.pDisabled = false;
5136
5398
  }
5137
- Object.defineProperty(LetDirective.prototype, "xuilibLet", {
5399
+ Object.defineProperty(FindLocationComponent.prototype, "disabled", {
5400
+ get: /**
5401
+ * @return {?}
5402
+ */
5403
+ function () {
5404
+ return this.pDisabled;
5405
+ },
5406
+ set: /**
5407
+ * @param {?} value
5408
+ * @return {?}
5409
+ */
5410
+ function (value) {
5411
+ if (value) {
5412
+ this.searchLocationComponent.resetSearchTerm();
5413
+ this.removeSelectedValues();
5414
+ }
5415
+ this.pDisabled = this.disableInputField === true ? true : null;
5416
+ },
5417
+ enumerable: true,
5418
+ configurable: true
5419
+ });
5420
+ Object.defineProperty(FindLocationComponent.prototype, "services", {
5421
+ get: /**
5422
+ * @return {?}
5423
+ */
5424
+ function () {
5425
+ return this.pServices;
5426
+ },
5138
5427
  set: /**
5139
- * @param {?} condition
5428
+ * @param {?} value
5140
5429
  * @return {?}
5141
5430
  */
5142
- function (condition) {
5143
- this.context.$implicit = this.context.xuilibLet = condition;
5431
+ function (value) {
5432
+ var _this = this;
5433
+ this.pServices = value;
5434
+ /** @type {?} */
5435
+ var field = this.fields.find((/**
5436
+ * @param {?} f
5437
+ * @return {?}
5438
+ */
5439
+ function (f) { return f.name === _this.field.findLocationField; }));
5440
+ if (field) {
5441
+ if (typeof value === 'string') {
5442
+ this.serviceIds = value;
5443
+ }
5444
+ else {
5445
+ this.serviceIds = getValues(field.options, value).filter((/**
5446
+ * @param {?} x
5447
+ * @return {?}
5448
+ */
5449
+ function (x) { return x !== 'services_all'; })).join(',');
5450
+ }
5451
+ }
5144
5452
  },
5145
5453
  enumerable: true,
5146
5454
  configurable: true
5147
5455
  });
5148
- LetDirective.decorators = [
5149
- { type: core.Directive, args: [{
5150
- selector: '[xuilibLet]'
5151
- },] }
5152
- ];
5153
- /** @nocollapse */
5154
- LetDirective.ctorParameters = function () { return [
5155
- { type: core.ViewContainerRef },
5156
- { type: core.TemplateRef }
5157
- ]; };
5158
- LetDirective.propDecorators = {
5159
- xuilibLet: [{ type: core.Input }]
5456
+ /**
5457
+ * @return {?}
5458
+ */
5459
+ FindLocationComponent.prototype.ngOnInit = /**
5460
+ * @return {?}
5461
+ */
5462
+ function () {
5463
+ // implemented to get rid of undefined values
5464
+ this.selectedLocations = this.selectedLocations.filter((/**
5465
+ * @param {?} location
5466
+ * @return {?}
5467
+ */
5468
+ function (location) { return location.epimms_id; }));
5160
5469
  };
5161
- return LetDirective;
5162
- }());
5163
- if (false) {
5164
5470
  /**
5165
- * @type {?}
5166
- * @private
5471
+ * @return {?}
5167
5472
  */
5168
- LetDirective.prototype.context;
5473
+ FindLocationComponent.prototype.addLocation = /**
5474
+ * @return {?}
5475
+ */
5476
+ function () {
5477
+ if (this.tempSelectedLocation) {
5478
+ this.selectedLocations = __spread(this.selectedLocations, [this.tempSelectedLocation]);
5479
+ this.addSelectedLocationsToForm([this.tempSelectedLocation]);
5480
+ this.tempSelectedLocation = null;
5481
+ this.locations = [];
5482
+ this.searchLocationComponent.resetSearchTerm();
5483
+ }
5484
+ };
5169
5485
  /**
5170
- * @type {?}
5171
- * @private
5486
+ * @param {?} location
5487
+ * @return {?}
5172
5488
  */
5173
- LetDirective.prototype.viewContainer;
5174
- }
5175
-
5176
- /**
5177
- * @fileoverview added by tsickle
5178
- * Generated from: lib/directives/public-api.ts
5179
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5180
- */
5181
-
5182
- /**
5183
- * @fileoverview added by tsickle
5184
- * Generated from: lib/directives/index.ts
5185
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5186
- */
5187
-
5188
- /**
5189
- * @fileoverview added by tsickle
5190
- * Generated from: lib/components/exui-main-wrapper/exui-page-wrapper.component.ts
5191
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5192
- */
5193
- /**
5194
- * Main Page Wrapper
5195
- * Responsible for:
5196
- * Wrapping content within the gov-uk html elements bellow
5197
- * \@prop showBackLink - switch for back link
5198
- * \@prop appHeaderTitle = appHeaderTitle
5199
- * \@prop appFunctionalTitle = appFunctionalTitle
5200
- * \@prop summaryErrors list of errors
5201
- * \@prop back link, appHeaderTitle (appHeaderTitle), summaryErrors (array of errors)
5202
- */
5203
- var ExuiPageWrapperComponent = /** @class */ (function () {
5204
- function ExuiPageWrapperComponent() {
5205
- }
5206
- ExuiPageWrapperComponent.decorators = [
5207
- { type: core.Component, args: [{
5208
- selector: 'exui-page-wrapper',
5209
- 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",
5210
- styles: [".page{width:100%}"]
5211
- }] }
5212
- ];
5213
- /** @nocollapse */
5214
- ExuiPageWrapperComponent.ctorParameters = function () { return []; };
5215
- ExuiPageWrapperComponent.propDecorators = {
5216
- backLink: [{ type: core.Input }],
5217
- title: [{ type: core.Input }],
5218
- fnTitle: [{ type: core.Input }]
5489
+ FindLocationComponent.prototype.removeLocation = /**
5490
+ * @param {?} location
5491
+ * @return {?}
5492
+ */
5493
+ function (location) {
5494
+ if (location.epimms_id) {
5495
+ this.selectedLocations = this.selectedLocations.filter((/**
5496
+ * @param {?} selectedLocation
5497
+ * @return {?}
5498
+ */
5499
+ function (selectedLocation) { return selectedLocation.epimms_id !== location.epimms_id; }));
5500
+ /** @type {?} */
5501
+ var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
5502
+ /** @type {?} */
5503
+ var index = ((/** @type {?} */ (formArray.value))).findIndex((/**
5504
+ * @param {?} selectedLocation
5505
+ * @return {?}
5506
+ */
5507
+ function (selectedLocation) { return selectedLocation.epimms_id === location.epimms_id; }));
5508
+ if (index > -1) {
5509
+ formArray.removeAt(index);
5510
+ }
5511
+ }
5219
5512
  };
5220
- return ExuiPageWrapperComponent;
5221
- }());
5222
- if (false) {
5223
- /** @type {?} */
5224
- ExuiPageWrapperComponent.prototype.backLink;
5225
- /** @type {?} */
5226
- ExuiPageWrapperComponent.prototype.title;
5227
- /** @type {?} */
5228
- ExuiPageWrapperComponent.prototype.fnTitle;
5229
- }
5230
-
5231
- /**
5232
- * @fileoverview added by tsickle
5233
- * Generated from: lib/models/case-share.model.ts
5234
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5235
- */
5236
- /**
5237
- * @record
5238
- */
5239
- function SharedCase() { }
5240
- if (false) {
5241
- /** @type {?} */
5242
- SharedCase.prototype.caseId;
5243
- /** @type {?} */
5244
- SharedCase.prototype.caseTitle;
5245
- /** @type {?|undefined} */
5246
- SharedCase.prototype.caseTypeId;
5247
- /** @type {?|undefined} */
5248
- SharedCase.prototype.roles;
5249
- /** @type {?|undefined} */
5250
- SharedCase.prototype.sharedWith;
5251
- /** @type {?|undefined} */
5252
- SharedCase.prototype.pendingShares;
5253
- /** @type {?|undefined} */
5254
- SharedCase.prototype.pendingUnshares;
5255
- }
5256
-
5257
- /**
5258
- * @fileoverview added by tsickle
5259
- * Generated from: lib/models/contact-details.model.ts
5260
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5261
- */
5262
- /** @enum {string} */
5263
- var BadgeColour = {
5264
- BADGE_RED: "hmcts-badge--red",
5265
- BADGE_BLUE: "hmcts-badge--blue",
5266
- BADGE_GREEN: "hmcts-badge--green",
5267
- };
5268
- /**
5269
- * @record
5270
- */
5271
- function ContactDetailsDataModel() { }
5272
- if (false) {
5273
- /** @type {?|undefined} */
5274
- ContactDetailsDataModel.prototype.title;
5275
- /** @type {?|undefined} */
5276
- ContactDetailsDataModel.prototype.badgeColour;
5277
- /** @type {?|undefined} */
5278
- ContactDetailsDataModel.prototype.badgeText;
5279
- /** @type {?|undefined} */
5280
- ContactDetailsDataModel.prototype.email;
5281
- /** @type {?|undefined} */
5282
- ContactDetailsDataModel.prototype.phone;
5283
- /** @type {?|undefined} */
5284
- ContactDetailsDataModel.prototype.openingTimes;
5285
- }
5286
-
5287
- /**
5288
- * @fileoverview added by tsickle
5289
- * Generated from: lib/models/feature-user.ts
5290
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5291
- */
5292
- var AnonymousFeatureUser = /** @class */ (function () {
5293
- function AnonymousFeatureUser() {
5294
- }
5295
- return AnonymousFeatureUser;
5296
- }());
5297
- if (false) {
5298
- /** @type {?} */
5299
- AnonymousFeatureUser.prototype.anonymous;
5300
- }
5301
- var LoggedInFeatureUser = /** @class */ (function () {
5302
- function LoggedInFeatureUser() {
5303
- }
5304
- return LoggedInFeatureUser;
5513
+ /**
5514
+ * @param {?} term
5515
+ * @return {?}
5516
+ */
5517
+ FindLocationComponent.prototype.onInputChanged = /**
5518
+ * @param {?} term
5519
+ * @return {?}
5520
+ */
5521
+ function (term) {
5522
+ // if the filter is in single mode clear the selected locations
5523
+ if (typeof term === 'string' && this.field.maxSelected === 1) {
5524
+ this.removeSelectedValues();
5525
+ }
5526
+ };
5527
+ /**
5528
+ * @return {?}
5529
+ */
5530
+ FindLocationComponent.prototype.onSearchInputChanged = /**
5531
+ * @return {?}
5532
+ */
5533
+ function () {
5534
+ this.locationFieldChanged.emit();
5535
+ };
5536
+ /**
5537
+ * @param {?} location
5538
+ * @return {?}
5539
+ */
5540
+ FindLocationComponent.prototype.onLocationSelected = /**
5541
+ * @param {?} location
5542
+ * @return {?}
5543
+ */
5544
+ function (location) {
5545
+ if (this.field.maxSelected === 1) {
5546
+ this.removeSelectedValues();
5547
+ this.addSelectedLocationsToForm([location]);
5548
+ }
5549
+ else {
5550
+ if (!this.selectedLocations.find((/**
5551
+ * @param {?} x
5552
+ * @return {?}
5553
+ */
5554
+ function (x) { return x.epimms_id === location.epimms_id; }))) {
5555
+ if (location.epimms_id) {
5556
+ this.tempSelectedLocation = location;
5557
+ }
5558
+ }
5559
+ }
5560
+ };
5561
+ /**
5562
+ * @private
5563
+ * @return {?}
5564
+ */
5565
+ FindLocationComponent.prototype.removeSelectedValues = /**
5566
+ * @private
5567
+ * @return {?}
5568
+ */
5569
+ function () {
5570
+ /** @type {?} */
5571
+ var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
5572
+ for (var i = 0; i < formArray.length; i++) {
5573
+ formArray.removeAt(i);
5574
+ }
5575
+ this.selectedLocations = [];
5576
+ };
5577
+ /**
5578
+ * @private
5579
+ * @param {?} locations
5580
+ * @return {?}
5581
+ */
5582
+ FindLocationComponent.prototype.addSelectedLocationsToForm = /**
5583
+ * @private
5584
+ * @param {?} locations
5585
+ * @return {?}
5586
+ */
5587
+ function (locations) {
5588
+ var e_1, _a;
5589
+ /** @type {?} */
5590
+ var formArray = (/** @type {?} */ (this.form.get(this.field.name)));
5591
+ try {
5592
+ for (var locations_1 = __values(locations), locations_1_1 = locations_1.next(); !locations_1_1.done; locations_1_1 = locations_1.next()) {
5593
+ var location_1 = locations_1_1.value;
5594
+ formArray.push(new forms.FormControl(location_1));
5595
+ }
5596
+ }
5597
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
5598
+ finally {
5599
+ try {
5600
+ if (locations_1_1 && !locations_1_1.done && (_a = locations_1.return)) _a.call(locations_1);
5601
+ }
5602
+ finally { if (e_1) throw e_1.error; }
5603
+ }
5604
+ };
5605
+ FindLocationComponent.decorators = [
5606
+ { type: core.Component, args: [{
5607
+ selector: 'xuilib-find-location',
5608
+ 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",
5609
+ styles: [""]
5610
+ }] }
5611
+ ];
5612
+ FindLocationComponent.propDecorators = {
5613
+ locationFieldChanged: [{ type: core.Output }],
5614
+ selectedLocations: [{ type: core.Input }],
5615
+ submitted: [{ type: core.Input }],
5616
+ enableAddLocationButton: [{ type: core.Input }],
5617
+ form: [{ type: core.Input }],
5618
+ field: [{ type: core.Input }],
5619
+ fields: [{ type: core.Input }],
5620
+ locationTitle: [{ type: core.Input }],
5621
+ disableInputField: [{ type: core.Input }],
5622
+ searchLocationComponent: [{ type: core.ViewChild, args: [SearchLocationComponent, { static: true },] }],
5623
+ disabled: [{ type: core.Input }],
5624
+ services: [{ type: core.Input }]
5625
+ };
5626
+ return FindLocationComponent;
5305
5627
  }());
5306
5628
  if (false) {
5307
5629
  /** @type {?} */
5308
- LoggedInFeatureUser.prototype.key;
5309
- /** @type {?} */
5310
- LoggedInFeatureUser.prototype.custom;
5311
- }
5312
-
5313
- /**
5314
- * @fileoverview added by tsickle
5315
- * Generated from: lib/models/idle-config.model.ts
5316
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5317
- */
5318
- /**
5319
- * @record
5320
- */
5321
- function IdleConfigModel() { }
5322
- if (false) {
5323
- /** @type {?} */
5324
- IdleConfigModel.prototype.timeout;
5325
- /** @type {?} */
5326
- IdleConfigModel.prototype.idleMilliseconds;
5327
- /** @type {?} */
5328
- IdleConfigModel.prototype.keepAliveInSeconds;
5329
- /** @type {?|undefined} */
5330
- IdleConfigModel.prototype.idleServiceName;
5331
- }
5332
-
5333
- /**
5334
- * @fileoverview added by tsickle
5335
- * Generated from: lib/models/pagination.model.ts
5336
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5337
- */
5338
- /**
5339
- * @record
5340
- */
5341
- function Pagination() { }
5342
- if (false) {
5343
- /** @type {?} */
5344
- Pagination.prototype.itemsPerPage;
5345
- /** @type {?} */
5346
- Pagination.prototype.currentPage;
5347
- /** @type {?} */
5348
- Pagination.prototype.totalItems;
5349
- }
5350
-
5351
- /**
5352
- * @fileoverview added by tsickle
5353
- * Generated from: lib/models/person.model.ts
5354
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5355
- */
5356
- /**
5357
- * @record
5358
- */
5359
- function Person() { }
5360
- if (false) {
5361
- /** @type {?} */
5362
- Person.prototype.id;
5363
- /** @type {?} */
5364
- Person.prototype.name;
5365
- /** @type {?|undefined} */
5366
- Person.prototype.email;
5367
- /** @type {?} */
5368
- Person.prototype.domain;
5369
- /** @type {?|undefined} */
5370
- Person.prototype.knownAs;
5371
- }
5372
- /**
5373
- * @record
5374
- */
5375
- function JudicialUserModel() { }
5376
- if (false) {
5377
- /** @type {?} */
5378
- JudicialUserModel.prototype.emailId;
5379
- /** @type {?} */
5380
- JudicialUserModel.prototype.fullName;
5381
- /** @type {?} */
5382
- JudicialUserModel.prototype.idamId;
5383
- /** @type {?} */
5384
- JudicialUserModel.prototype.isJudge;
5385
- /** @type {?} */
5386
- JudicialUserModel.prototype.isMagistrate;
5630
+ FindLocationComponent.prototype.locationFieldChanged;
5387
5631
  /** @type {?} */
5388
- JudicialUserModel.prototype.isPanelMember;
5632
+ FindLocationComponent.prototype.selectedLocations;
5389
5633
  /** @type {?} */
5390
- JudicialUserModel.prototype.knownAs;
5634
+ FindLocationComponent.prototype.submitted;
5391
5635
  /** @type {?} */
5392
- JudicialUserModel.prototype.personalCode;
5636
+ FindLocationComponent.prototype.enableAddLocationButton;
5393
5637
  /** @type {?} */
5394
- JudicialUserModel.prototype.surname;
5638
+ FindLocationComponent.prototype.form;
5395
5639
  /** @type {?} */
5396
- JudicialUserModel.prototype.title;
5397
- }
5398
- /**
5399
- * @record
5400
- */
5401
- function CaseworkersByService() { }
5402
- if (false) {
5640
+ FindLocationComponent.prototype.field;
5403
5641
  /** @type {?} */
5404
- CaseworkersByService.prototype.service;
5642
+ FindLocationComponent.prototype.fields;
5405
5643
  /** @type {?} */
5406
- CaseworkersByService.prototype.caseworkers;
5407
- }
5408
- /**
5409
- * @record
5410
- */
5411
- function Caseworker() { }
5412
- if (false) {
5644
+ FindLocationComponent.prototype.locationTitle;
5413
5645
  /** @type {?} */
5414
- Caseworker.prototype.idamId;
5646
+ FindLocationComponent.prototype.disableInputField;
5415
5647
  /** @type {?} */
5416
- Caseworker.prototype.firstName;
5648
+ FindLocationComponent.prototype.locations;
5417
5649
  /** @type {?} */
5418
- Caseworker.prototype.lastName;
5650
+ FindLocationComponent.prototype.tempSelectedLocation;
5419
5651
  /** @type {?} */
5420
- Caseworker.prototype.email;
5421
- /** @type {?|undefined} */
5422
- Caseworker.prototype.knownAs;
5652
+ FindLocationComponent.prototype.serviceIds;
5423
5653
  /** @type {?} */
5424
- Caseworker.prototype.roleCategory;
5654
+ FindLocationComponent.prototype.searchLocationComponent;
5655
+ /**
5656
+ * @type {?}
5657
+ * @private
5658
+ */
5659
+ FindLocationComponent.prototype.pServices;
5660
+ /**
5661
+ * @type {?}
5662
+ * @private
5663
+ */
5664
+ FindLocationComponent.prototype.pDisabled;
5425
5665
  }
5426
- /** @enum {string} */
5427
- var PersonRole = {
5428
- JUDICIAL: "Judicial",
5429
- CASEWORKER: "Legal Ops",
5430
- ADMIN: "Admin",
5431
- ALL: "All",
5432
- };
5433
- /** @enum {string} */
5434
- var RoleCategory = {
5435
- JUDICIAL: "JUDICIAL",
5436
- CASEWORKER: "LEGAL_OPERATIONS",
5437
- ADMIN: "ADMIN",
5438
- ALL: "ALL",
5439
- };
5440
5666
 
5441
5667
  /**
5442
5668
  * @fileoverview added by tsickle
5443
- * Generated from: lib/models/tcDocument.model.ts
5669
+ * Generated from: lib/components/pagination/pagination.component.ts
5444
5670
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5445
5671
  */
5446
- /**
5447
- * @record
5448
- */
5449
- function TCDocument() { }
5672
+ var PaginationComponent = /** @class */ (function () {
5673
+ function PaginationComponent() {
5674
+ this.previousPage = new core.EventEmitter();
5675
+ this.nextPage = new core.EventEmitter();
5676
+ }
5677
+ /**
5678
+ * @return {?}
5679
+ */
5680
+ PaginationComponent.prototype.onPrevious = /**
5681
+ * @return {?}
5682
+ */
5683
+ function () {
5684
+ this.previousPage.emit(null);
5685
+ };
5686
+ /**
5687
+ * @return {?}
5688
+ */
5689
+ PaginationComponent.prototype.onNext = /**
5690
+ * @return {?}
5691
+ */
5692
+ function () {
5693
+ this.nextPage.emit(null);
5694
+ };
5695
+ PaginationComponent.decorators = [
5696
+ { type: core.Component, args: [{
5697
+ selector: 'xuilib-pagination',
5698
+ 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",
5699
+ styles: ["span.hmcts-pagination__link:hover{color:revert}"]
5700
+ }] }
5701
+ ];
5702
+ /** @nocollapse */
5703
+ PaginationComponent.ctorParameters = function () { return []; };
5704
+ PaginationComponent.propDecorators = {
5705
+ moreItems: [{ type: core.Input }],
5706
+ firstRecord: [{ type: core.Input }],
5707
+ previousPage: [{ type: core.Output }],
5708
+ nextPage: [{ type: core.Output }]
5709
+ };
5710
+ return PaginationComponent;
5711
+ }());
5450
5712
  if (false) {
5451
5713
  /** @type {?} */
5452
- TCDocument.prototype.version;
5714
+ PaginationComponent.prototype.moreItems;
5453
5715
  /** @type {?} */
5454
- TCDocument.prototype.content;
5716
+ PaginationComponent.prototype.firstRecord;
5455
5717
  /** @type {?} */
5456
- TCDocument.prototype.mimeType;
5718
+ PaginationComponent.prototype.previousPage;
5719
+ /** @type {?} */
5720
+ PaginationComponent.prototype.nextPage;
5457
5721
  }
5458
5722
 
5459
5723
  /**
5460
5724
  * @fileoverview added by tsickle
5461
- * Generated from: lib/models/user.model.ts
5725
+ * Generated from: lib/components/public_api.ts
5462
5726
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5463
5727
  */
5464
- /**
5465
- * @record
5466
- */
5467
- function User() { }
5468
- if (false) {
5469
- /** @type {?|undefined} */
5470
- User.prototype.routerLink;
5471
- /** @type {?|undefined} */
5472
- User.prototype.routerLinkTitle;
5473
- /** @type {?|undefined} */
5474
- User.prototype.fullName;
5475
- /** @type {?|undefined} */
5476
- User.prototype.email;
5477
- /** @type {?|undefined} */
5478
- User.prototype.status;
5479
- /** @type {?|undefined} */
5480
- User.prototype.resendInvite;
5481
- /* Skipping unhandled member: [key: string]: any;*/
5482
- }
5483
5728
 
5484
5729
  /**
5485
5730
  * @fileoverview added by tsickle
5486
- * Generated from: lib/models/filter.model.ts
5731
+ * Generated from: lib/components/index.ts
5487
5732
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5488
5733
  */
5734
+
5489
5735
  /**
5490
- * @record
5736
+ * @fileoverview added by tsickle
5737
+ * Generated from: lib/directives/feature-toggle/feature-toggle.directive.ts
5738
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5491
5739
  */
5492
- function FilterConfig() { }
5740
+ var FeatureToggleDirective = /** @class */ (function () {
5741
+ function FeatureToggleDirective(service, viewContainer, templateRef) {
5742
+ this.service = service;
5743
+ this.viewContainer = viewContainer;
5744
+ this.templateRef = templateRef;
5745
+ }
5746
+ Object.defineProperty(FeatureToggleDirective.prototype, "xuilibFeatureToggle", {
5747
+ set: /**
5748
+ * @param {?} feature
5749
+ * @return {?}
5750
+ */
5751
+ function (feature) {
5752
+ this.feature = feature;
5753
+ this.updateSubscription();
5754
+ },
5755
+ enumerable: true,
5756
+ configurable: true
5757
+ });
5758
+ /**
5759
+ * @return {?}
5760
+ */
5761
+ FeatureToggleDirective.prototype.ngOnDestroy = /**
5762
+ * @return {?}
5763
+ */
5764
+ function () {
5765
+ if (this.subscription) {
5766
+ this.subscription.unsubscribe();
5767
+ }
5768
+ };
5769
+ /**
5770
+ * @private
5771
+ * @return {?}
5772
+ */
5773
+ FeatureToggleDirective.prototype.updateSubscription = /**
5774
+ * @private
5775
+ * @return {?}
5776
+ */
5777
+ function () {
5778
+ var _this = this;
5779
+ this.subscription = this.service.isEnabled(this.feature).subscribe((/**
5780
+ * @param {?} enabled
5781
+ * @return {?}
5782
+ */
5783
+ function (enabled) {
5784
+ if (enabled) {
5785
+ _this.viewContainer.createEmbeddedView(_this.templateRef);
5786
+ }
5787
+ else {
5788
+ _this.viewContainer.clear();
5789
+ }
5790
+ }));
5791
+ };
5792
+ FeatureToggleDirective.decorators = [
5793
+ { type: core.Directive, args: [{
5794
+ selector: '[xuilibFeatureToggle]'
5795
+ },] }
5796
+ ];
5797
+ /** @nocollapse */
5798
+ FeatureToggleDirective.ctorParameters = function () { return [
5799
+ { type: FeatureToggleService },
5800
+ { type: core.ViewContainerRef },
5801
+ { type: core.TemplateRef }
5802
+ ]; };
5803
+ FeatureToggleDirective.propDecorators = {
5804
+ xuilibFeatureToggle: [{ type: core.Input }]
5805
+ };
5806
+ return FeatureToggleDirective;
5807
+ }());
5493
5808
  if (false) {
5494
- /** @type {?} */
5495
- FilterConfig.prototype.id;
5496
- /** @type {?} */
5497
- FilterConfig.prototype.fields;
5498
- /** @type {?} */
5499
- FilterConfig.prototype.persistence;
5500
- /** @type {?} */
5501
- FilterConfig.prototype.applyButtonText;
5502
- /** @type {?} */
5503
- FilterConfig.prototype.cancelButtonText;
5504
- /** @type {?|undefined} */
5505
- FilterConfig.prototype.cancelSetting;
5506
- /** @type {?|undefined} */
5507
- FilterConfig.prototype.enableDisabledButton;
5508
- /** @type {?|undefined} */
5509
- FilterConfig.prototype.showCancelFilterButton;
5809
+ /**
5810
+ * @type {?}
5811
+ * @private
5812
+ */
5813
+ FeatureToggleDirective.prototype.feature;
5814
+ /**
5815
+ * @type {?}
5816
+ * @private
5817
+ */
5818
+ FeatureToggleDirective.prototype.subscription;
5819
+ /**
5820
+ * @type {?}
5821
+ * @private
5822
+ */
5823
+ FeatureToggleDirective.prototype.service;
5824
+ /**
5825
+ * @type {?}
5826
+ * @private
5827
+ */
5828
+ FeatureToggleDirective.prototype.viewContainer;
5829
+ /**
5830
+ * @type {?}
5831
+ * @private
5832
+ */
5833
+ FeatureToggleDirective.prototype.templateRef;
5510
5834
  }
5835
+
5511
5836
  /**
5512
- * @record
5837
+ * @fileoverview added by tsickle
5838
+ * Generated from: lib/directives/let/let.directive.ts
5839
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5513
5840
  */
5514
- function FilterFieldConfig() { }
5515
- if (false) {
5516
- /** @type {?} */
5517
- FilterFieldConfig.prototype.name;
5518
- /** @type {?} */
5519
- FilterFieldConfig.prototype.options;
5520
- /** @type {?} */
5521
- FilterFieldConfig.prototype.minSelected;
5522
- /** @type {?} */
5523
- FilterFieldConfig.prototype.maxSelected;
5524
- /** @type {?|undefined} */
5525
- FilterFieldConfig.prototype.minSelectedError;
5526
- /** @type {?|undefined} */
5527
- FilterFieldConfig.prototype.maxSelectedError;
5528
- /** @type {?|undefined} */
5529
- FilterFieldConfig.prototype.displayMaxSelectedError;
5530
- /** @type {?|undefined} */
5531
- FilterFieldConfig.prototype.displayMinSelectedError;
5532
- /** @type {?|undefined} */
5533
- FilterFieldConfig.prototype.lineBreakBefore;
5534
- /** @type {?|undefined} */
5535
- FilterFieldConfig.prototype.showCondition;
5536
- /** @type {?|undefined} */
5537
- FilterFieldConfig.prototype.enableCondition;
5538
- /** @type {?|undefined} */
5539
- FilterFieldConfig.prototype.enableAddLocationButton;
5540
- /** @type {?|undefined} */
5541
- FilterFieldConfig.prototype.changeResetFields;
5542
- /** @type {?|undefined} */
5543
- FilterFieldConfig.prototype.findPersonField;
5544
- /** @type {?|undefined} */
5545
- FilterFieldConfig.prototype.findLocationField;
5546
- /** @type {?|undefined} */
5547
- FilterFieldConfig.prototype.domainField;
5548
- /** @type {?|undefined} */
5549
- FilterFieldConfig.prototype.disable;
5550
- /** @type {?|undefined} */
5551
- FilterFieldConfig.prototype.disabledText;
5552
- /** @type {?} */
5553
- FilterFieldConfig.prototype.type;
5554
- /** @type {?|undefined} */
5555
- FilterFieldConfig.prototype.domain;
5556
- /** @type {?|undefined} */
5557
- FilterFieldConfig.prototype.title;
5558
- /** @type {?|undefined} */
5559
- FilterFieldConfig.prototype.subTitle;
5560
- /** @type {?|undefined} */
5561
- FilterFieldConfig.prototype.locationTitle;
5562
- /** @type {?|undefined} */
5563
- FilterFieldConfig.prototype.radioSelectionChange;
5564
- }
5565
5841
  /**
5566
- * @record
5842
+ * @template T
5567
5843
  */
5568
- function FilterSetting() { }
5569
- if (false) {
5570
- /** @type {?} */
5571
- FilterSetting.prototype.id;
5572
- /** @type {?|undefined} */
5573
- FilterSetting.prototype.reset;
5574
- /** @type {?} */
5575
- FilterSetting.prototype.fields;
5576
- }
5577
- var RadioFilterFieldConfig = /** @class */ (function () {
5578
- function RadioFilterFieldConfig() {
5579
- }
5580
- return RadioFilterFieldConfig;
5581
- }());
5582
- if (false) {
5583
- /** @type {?} */
5584
- RadioFilterFieldConfig.prototype.name;
5585
- /** @type {?} */
5586
- RadioFilterFieldConfig.prototype.options;
5587
- /** @type {?} */
5588
- RadioFilterFieldConfig.prototype.minSelected;
5589
- /** @type {?} */
5590
- RadioFilterFieldConfig.prototype.maxSelected;
5591
- /** @type {?} */
5592
- RadioFilterFieldConfig.prototype.type;
5593
- }
5594
- /**
5595
- * @record
5844
+ var /**
5845
+ * @template T
5596
5846
  */
5597
- function FilterError() { }
5847
+ LetContext = /** @class */ (function () {
5848
+ function LetContext() {
5849
+ this.$implicit = null;
5850
+ this.xuilibLet = null;
5851
+ }
5852
+ return LetContext;
5853
+ }());
5598
5854
  if (false) {
5599
5855
  /** @type {?} */
5600
- FilterError.prototype.name;
5856
+ LetContext.prototype.$implicit;
5601
5857
  /** @type {?} */
5602
- FilterError.prototype.error;
5858
+ LetContext.prototype.xuilibLet;
5603
5859
  }
5604
-
5605
5860
  /**
5606
- * @fileoverview added by tsickle
5607
- * Generated from: lib/models/public_api.ts
5608
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5861
+ * @template T
5609
5862
  */
5863
+ var LetDirective = /** @class */ (function () {
5864
+ function LetDirective(viewContainer, templateRef) {
5865
+ this.viewContainer = viewContainer;
5866
+ this.context = new LetContext();
5867
+ this.viewContainer.createEmbeddedView(templateRef, this.context);
5868
+ }
5869
+ Object.defineProperty(LetDirective.prototype, "xuilibLet", {
5870
+ set: /**
5871
+ * @param {?} condition
5872
+ * @return {?}
5873
+ */
5874
+ function (condition) {
5875
+ this.context.$implicit = this.context.xuilibLet = condition;
5876
+ },
5877
+ enumerable: true,
5878
+ configurable: true
5879
+ });
5880
+ LetDirective.decorators = [
5881
+ { type: core.Directive, args: [{
5882
+ selector: '[xuilibLet]'
5883
+ },] }
5884
+ ];
5885
+ /** @nocollapse */
5886
+ LetDirective.ctorParameters = function () { return [
5887
+ { type: core.ViewContainerRef },
5888
+ { type: core.TemplateRef }
5889
+ ]; };
5890
+ LetDirective.propDecorators = {
5891
+ xuilibLet: [{ type: core.Input }]
5892
+ };
5893
+ return LetDirective;
5894
+ }());
5895
+ if (false) {
5896
+ /**
5897
+ * @type {?}
5898
+ * @private
5899
+ */
5900
+ LetDirective.prototype.context;
5901
+ /**
5902
+ * @type {?}
5903
+ * @private
5904
+ */
5905
+ LetDirective.prototype.viewContainer;
5906
+ }
5610
5907
 
5611
5908
  /**
5612
5909
  * @fileoverview added by tsickle
5613
- * Generated from: lib/models/search-options.model.ts
5910
+ * Generated from: lib/directives/public-api.ts
5614
5911
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5615
5912
  */
5616
- /**
5617
- * @record
5618
- */
5619
- function SearchOptions() { }
5620
- if (false) {
5621
- /** @type {?} */
5622
- SearchOptions.prototype.searchTerm;
5623
- /** @type {?} */
5624
- SearchOptions.prototype.userRole;
5625
- /** @type {?} */
5626
- SearchOptions.prototype.services;
5627
- /** @type {?|undefined} */
5628
- SearchOptions.prototype.userIncluded;
5629
- /** @type {?|undefined} */
5630
- SearchOptions.prototype.assignedUser;
5631
- }
5632
5913
 
5633
5914
  /**
5634
5915
  * @fileoverview added by tsickle
5635
- * Generated from: lib/models/timeout-notification.model.ts
5916
+ * Generated from: lib/directives/index.ts
5636
5917
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5637
5918
  */
5638
- /**
5639
- * @record
5640
- */
5641
- function TimeoutNotificationConfig() { }
5642
- if (false) {
5643
- /** @type {?} */
5644
- TimeoutNotificationConfig.prototype.idleModalDisplayTime;
5645
- /** @type {?} */
5646
- TimeoutNotificationConfig.prototype.totalIdleTime;
5647
- /** @type {?|undefined} */
5648
- TimeoutNotificationConfig.prototype.idleServiceName;
5649
- }
5650
5919
 
5651
5920
  /**
5652
5921
  * @fileoverview added by tsickle
5653
- * Generated from: lib/models/user-details.model.ts
5922
+ * Generated from: lib/components/exui-main-wrapper/exui-page-wrapper.component.ts
5654
5923
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5655
5924
  */
5656
5925
  /**
5657
- * @record
5926
+ * Main Page Wrapper
5927
+ * Responsible for:
5928
+ * Wrapping content within the gov-uk html elements bellow
5929
+ * \@prop showBackLink - switch for back link
5930
+ * \@prop appHeaderTitle = appHeaderTitle
5931
+ * \@prop appFunctionalTitle = appFunctionalTitle
5932
+ * \@prop summaryErrors list of errors
5933
+ * \@prop back link, appHeaderTitle (appHeaderTitle), summaryErrors (array of errors)
5658
5934
  */
5659
- function UserDetails() { }
5935
+ var ExuiPageWrapperComponent = /** @class */ (function () {
5936
+ function ExuiPageWrapperComponent() {
5937
+ }
5938
+ ExuiPageWrapperComponent.decorators = [
5939
+ { type: core.Component, args: [{
5940
+ selector: 'exui-page-wrapper',
5941
+ 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",
5942
+ styles: [".page{width:100%}"]
5943
+ }] }
5944
+ ];
5945
+ /** @nocollapse */
5946
+ ExuiPageWrapperComponent.ctorParameters = function () { return []; };
5947
+ ExuiPageWrapperComponent.propDecorators = {
5948
+ backLink: [{ type: core.Input }],
5949
+ title: [{ type: core.Input }],
5950
+ fnTitle: [{ type: core.Input }]
5951
+ };
5952
+ return ExuiPageWrapperComponent;
5953
+ }());
5660
5954
  if (false) {
5661
- /** @type {?|undefined} */
5662
- UserDetails.prototype.caseRoles;
5663
5955
  /** @type {?} */
5664
- UserDetails.prototype.email;
5665
- /** @type {?} */
5666
- UserDetails.prototype.firstName;
5956
+ ExuiPageWrapperComponent.prototype.backLink;
5667
5957
  /** @type {?} */
5668
- UserDetails.prototype.idamId;
5958
+ ExuiPageWrapperComponent.prototype.title;
5669
5959
  /** @type {?} */
5670
- UserDetails.prototype.lastName;
5960
+ ExuiPageWrapperComponent.prototype.fnTitle;
5671
5961
  }
5672
5962
 
5673
- /**
5674
- * @fileoverview added by tsickle
5675
- * Generated from: lib/models/index.ts
5676
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5677
- */
5678
-
5679
5963
  /**
5680
5964
  * @fileoverview added by tsickle
5681
5965
  * Generated from: lib/gov-ui/util/session-storage/session-storage-utils.ts
@@ -5693,139 +5977,46 @@
5693
5977
  * @param {?} caseworkerListByService
5694
5978
  * @return {?}
5695
5979
  */
5696
- function (caseworkerListByService) {
5697
- allCaseworkers = allCaseworkers.concat(caseworkerListByService.caseworkers);
5698
- }));
5699
- return allCaseworkers;
5700
- });
5701
- /** @type {?} */
5702
- var getSessionStorageKeyForServiceId = (/**
5703
- * @param {?} serviceId
5704
- * @return {?}
5705
- */
5706
- function (serviceId) {
5707
- return serviceId + "-caseworkers";
5708
- });
5709
- /** @type {?} */
5710
- var getCaseworkers = (/**
5711
- * @param {?} serviceId
5712
- * @param {?} sessionStorageService
5713
- * @return {?}
5714
- */
5715
- function (serviceId, sessionStorageService) {
5716
- /** @type {?} */
5717
- var sessionKey = getSessionStorageKeyForServiceId(serviceId);
5718
- /** @type {?} */
5719
- var value = sessionStorageService.getItem(sessionKey);
5720
- if (value) {
5721
- return (/** @type {?} */ (JSON.parse(value)));
5722
- }
5723
- });
5724
- /** @type {?} */
5725
- var setCaseworkers = (/**
5726
- * @param {?} serviceId
5727
- * @param {?} caseworkers
5728
- * @param {?} sessionStorageService
5729
- * @return {?}
5730
- */
5731
- function (serviceId, caseworkers, sessionStorageService) {
5732
- /** @type {?} */
5733
- var sessionKey = getSessionStorageKeyForServiceId(serviceId);
5734
- sessionStorageService.setItem(sessionKey, JSON.stringify(caseworkers));
5735
- });
5736
-
5737
- /**
5738
- * @fileoverview added by tsickle
5739
- * Generated from: lib/services/session-storage/session-storage.service.ts
5740
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5741
- */
5742
- var SessionStorageService = /** @class */ (function () {
5743
- function SessionStorageService() {
5744
- }
5745
- /**
5746
- * Get an item from the session storage.
5747
- * If remove is true, the item will be removed once read
5748
- * @param removeAfterRead removed the key once it has been read
5749
- */
5750
- /**
5751
- * Get an item from the session storage.
5752
- * If remove is true, the item will be removed once read
5753
- * @param {?} key
5754
- * @param {?=} removeAfterRead removed the key once it has been read
5755
- * @return {?}
5756
- */
5757
- SessionStorageService.prototype.getItem = /**
5758
- * Get an item from the session storage.
5759
- * If remove is true, the item will be removed once read
5760
- * @param {?} key
5761
- * @param {?=} removeAfterRead removed the key once it has been read
5762
- * @return {?}
5763
- */
5764
- function (key, removeAfterRead) {
5765
- if (removeAfterRead === void 0) { removeAfterRead = false; }
5766
- /** @type {?} */
5767
- var item = sessionStorage.getItem(key);
5768
- if (removeAfterRead) {
5769
- this.removeItem(key);
5770
- }
5771
- return item;
5772
- };
5773
- /**
5774
- * Set an item in the session storage.
5775
- */
5776
- /**
5777
- * Set an item in the session storage.
5778
- * @param {?} key
5779
- * @param {?} value
5780
- * @return {?}
5781
- */
5782
- SessionStorageService.prototype.setItem = /**
5783
- * Set an item in the session storage.
5784
- * @param {?} key
5785
- * @param {?} value
5786
- * @return {?}
5787
- */
5788
- function (key, value) {
5789
- sessionStorage.setItem(key, value);
5790
- };
5791
- /**
5792
- * Remove an item in the session storage.
5793
- */
5794
- /**
5795
- * Remove an item in the session storage.
5796
- * @param {?} key
5797
- * @return {?}
5798
- */
5799
- SessionStorageService.prototype.removeItem = /**
5800
- * Remove an item in the session storage.
5801
- * @param {?} key
5802
- * @return {?}
5803
- */
5804
- function (key) {
5805
- sessionStorage.removeItem(key);
5806
- };
5807
- /**
5808
- * Clear all the items held in session storage.
5809
- */
5810
- /**
5811
- * Clear all the items held in session storage.
5812
- * @return {?}
5813
- */
5814
- SessionStorageService.prototype.clear = /**
5815
- * Clear all the items held in session storage.
5816
- * @return {?}
5817
- */
5818
- function () {
5819
- sessionStorage.clear();
5820
- };
5821
- SessionStorageService.decorators = [
5822
- { type: core.Injectable, args: [{
5823
- providedIn: 'root'
5824
- },] }
5825
- ];
5826
- /** @nocollapse */ SessionStorageService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
5827
- return SessionStorageService;
5828
- }());
5980
+ function (caseworkerListByService) {
5981
+ allCaseworkers = allCaseworkers.concat(caseworkerListByService.caseworkers);
5982
+ }));
5983
+ return allCaseworkers;
5984
+ });
5985
+ /** @type {?} */
5986
+ var getSessionStorageKeyForServiceId = (/**
5987
+ * @param {?} serviceId
5988
+ * @return {?}
5989
+ */
5990
+ function (serviceId) {
5991
+ return serviceId + "-caseworkers";
5992
+ });
5993
+ /** @type {?} */
5994
+ var getCaseworkers = (/**
5995
+ * @param {?} serviceId
5996
+ * @param {?} sessionStorageService
5997
+ * @return {?}
5998
+ */
5999
+ function (serviceId, sessionStorageService) {
6000
+ /** @type {?} */
6001
+ var sessionKey = getSessionStorageKeyForServiceId(serviceId);
6002
+ /** @type {?} */
6003
+ var value = sessionStorageService.getItem(sessionKey);
6004
+ if (value) {
6005
+ return (/** @type {?} */ (JSON.parse(value)));
6006
+ }
6007
+ });
6008
+ /** @type {?} */
6009
+ var setCaseworkers = (/**
6010
+ * @param {?} serviceId
6011
+ * @param {?} caseworkers
6012
+ * @param {?} sessionStorageService
6013
+ * @return {?}
6014
+ */
6015
+ function (serviceId, caseworkers, sessionStorageService) {
6016
+ /** @type {?} */
6017
+ var sessionKey = getSessionStorageKeyForServiceId(serviceId);
6018
+ sessionStorageService.setItem(sessionKey, JSON.stringify(caseworkers));
6019
+ });
5829
6020
 
5830
6021
  /**
5831
6022
  * @fileoverview added by tsickle
@@ -8167,6 +8358,253 @@
8167
8358
  RemoveHostDirective.prototype.el;
8168
8359
  }
8169
8360
 
8361
+ /**
8362
+ * @fileoverview added by tsickle
8363
+ * Generated from: lib/exui-common-lib.module.ts
8364
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8365
+ */
8366
+ /** @type {?} */
8367
+ var COMMON_COMPONENTS = [
8368
+ ExuiPageWrapperComponent,
8369
+ TermsAndConditionsComponent,
8370
+ TcDisplayHtmlComponent,
8371
+ TcDisplayPlainComponent,
8372
+ TcConfirmComponent,
8373
+ ContactDetailsComponent,
8374
+ FeatureToggleDirective,
8375
+ LetDirective,
8376
+ HmctsSessionDialogComponent,
8377
+ UserListComponent,
8378
+ UserDetailsComponent,
8379
+ InviteUserPermissionComponent,
8380
+ InviteUserFormComponent,
8381
+ ShareCaseComponent,
8382
+ ShareCaseConfirmComponent,
8383
+ SelectedCaseListComponent,
8384
+ SelectedCaseComponent,
8385
+ SelectedCaseConfirmComponent,
8386
+ UserSelectComponent,
8387
+ TabComponent,
8388
+ AccessibilityComponent,
8389
+ DueDateComponent,
8390
+ CheckboxListComponent,
8391
+ ServiceMessageComponent,
8392
+ ServiceMessagesComponent,
8393
+ LoadingSpinnerComponent,
8394
+ GenericFilterComponent,
8395
+ CookieBannerComponent,
8396
+ FindPersonComponent,
8397
+ SearchJudicialsComponent,
8398
+ FindLocationComponent,
8399
+ SearchLocationComponent,
8400
+ SearchVenueComponent,
8401
+ PaginationComponent
8402
+ ];
8403
+ /** @type {?} */
8404
+ var GOV_UI_COMPONENTS = [
8405
+ HmctsIdentityBarComponent,
8406
+ HmctsPaginationComponent,
8407
+ HmctsSubNavigationComponent,
8408
+ HmctsPrimaryNavigationComponent,
8409
+ HmctsErrorSummaryComponent,
8410
+ HmctsMainWrapperComponent,
8411
+ HmctsBannerComponent,
8412
+ GovukTableComponent,
8413
+ GovUkInputComponent,
8414
+ GovUkCheckboxComponent,
8415
+ GovUkFormGroupWrapperComponent,
8416
+ GovUkLabelComponent,
8417
+ GovUkErrorMessageComponent,
8418
+ GovUkFieldsetComponent,
8419
+ GovUkDateComponent,
8420
+ GovUkCheckboxesComponent,
8421
+ GovUkRadioComponent,
8422
+ GovUkRadiosComponent,
8423
+ GovUkSelectComponent,
8424
+ GovUkTextareaComponent,
8425
+ GovUkFileUploadComponent,
8426
+ RemoveHostDirective
8427
+ ];
8428
+ var ɵ0 = windowProvider;
8429
+ var ExuiCommonLibModule = /** @class */ (function () {
8430
+ function ExuiCommonLibModule() {
8431
+ }
8432
+ ExuiCommonLibModule.decorators = [
8433
+ { type: core.NgModule, args: [{
8434
+ declarations: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS),
8435
+ imports: [
8436
+ common.CommonModule,
8437
+ forms.FormsModule,
8438
+ forms.ReactiveFormsModule,
8439
+ router.RouterModule.forChild([]),
8440
+ autocomplete.MatAutocompleteModule,
8441
+ material.MatTabsModule,
8442
+ material.MatInputModule,
8443
+ ngxPagination.NgxPaginationModule
8444
+ ],
8445
+ providers: [
8446
+ { provide: windowToken, useFactory: ɵ0 }
8447
+ ],
8448
+ exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS, [
8449
+ ngxPagination.PaginatePipe
8450
+ ])
8451
+ },] }
8452
+ ];
8453
+ return ExuiCommonLibModule;
8454
+ }());
8455
+
8456
+ /**
8457
+ * @fileoverview added by tsickle
8458
+ * Generated from: lib/gov-ui/gov-ui.service.ts
8459
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8460
+ */
8461
+ var GovUiService = /** @class */ (function () {
8462
+ function GovUiService() {
8463
+ }
8464
+ GovUiService.decorators = [
8465
+ { type: core.Injectable, args: [{
8466
+ providedIn: 'root'
8467
+ },] }
8468
+ ];
8469
+ /** @nocollapse */
8470
+ GovUiService.ctorParameters = function () { return []; };
8471
+ /** @nocollapse */ GovUiService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function GovUiService_Factory() { return new GovUiService(); }, token: GovUiService, providedIn: "root" });
8472
+ return GovUiService;
8473
+ }());
8474
+
8475
+ /**
8476
+ * @fileoverview added by tsickle
8477
+ * Generated from: lib/gov-ui/validators/checkboxes-be-checked.validator.ts
8478
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8479
+ */
8480
+ /**
8481
+ * @param {?=} minRequired
8482
+ * @return {?}
8483
+ */
8484
+ function checkboxesBeCheckedValidator(minRequired) {
8485
+ if (minRequired === void 0) { minRequired = 1; }
8486
+ return (/**
8487
+ * @param {?} formGroup
8488
+ * @return {?}
8489
+ */
8490
+ function validate(formGroup) {
8491
+ /** @type {?} */
8492
+ var checked = 0;
8493
+ Object.keys(formGroup.controls).forEach((/**
8494
+ * @param {?} key
8495
+ * @return {?}
8496
+ */
8497
+ function (key) {
8498
+ /** @type {?} */
8499
+ var control = formGroup.controls[key];
8500
+ if (control.value === true) {
8501
+ checked++;
8502
+ }
8503
+ }));
8504
+ if (checked < minRequired) {
8505
+ return {
8506
+ requireOneCheckboxToBeChecked: true,
8507
+ };
8508
+ }
8509
+ return null;
8510
+ });
8511
+ }
8512
+
8513
+ /**
8514
+ * @fileoverview added by tsickle
8515
+ * Generated from: lib/gov-ui/validators/date.validator.ts
8516
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8517
+ */
8518
+ /**
8519
+ * @return {?}
8520
+ */
8521
+ function dateValidator() {
8522
+ return (/**
8523
+ * @param {?} formGroup
8524
+ * @return {?}
8525
+ */
8526
+ function validate(formGroup) {
8527
+ /** @type {?} */
8528
+ var d = new Date(parseInt(formGroup.controls.day.value, 10), parseInt(formGroup.controls.month.value, 10) - 1, parseInt(formGroup.controls.year.value, 10) - 1);
8529
+ /**
8530
+ * @param {?} val
8531
+ * @return {?}
8532
+ */
8533
+ function isValidDate(val) {
8534
+ return val instanceof Date && !isNaN(+d);
8535
+ }
8536
+ if (!isValidDate(d)) {
8537
+ return {
8538
+ dateIsInvalid: true,
8539
+ };
8540
+ }
8541
+ return null;
8542
+ });
8543
+ }
8544
+
8545
+ /**
8546
+ * @fileoverview added by tsickle
8547
+ * Generated from: lib/gov-ui/validators/radio-group.validator.ts
8548
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8549
+ */
8550
+ /**
8551
+ * @return {?}
8552
+ */
8553
+ function radioGroupValidator() {
8554
+ return (/**
8555
+ * @param {?} formGroup
8556
+ * @return {?}
8557
+ */
8558
+ function validate(formGroup) {
8559
+ if (formGroup.controls) {
8560
+ for (var control in formGroup.controls) {
8561
+ if (!formGroup.controls[control].valid) {
8562
+ return {
8563
+ isRadioGroupInvalid: true,
8564
+ };
8565
+ }
8566
+ }
8567
+ }
8568
+ return null;
8569
+ });
8570
+ }
8571
+
8572
+ /**
8573
+ * @fileoverview added by tsickle
8574
+ * Generated from: lib/gov-ui/validators/public_api.ts
8575
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8576
+ */
8577
+
8578
+ /**
8579
+ * @fileoverview added by tsickle
8580
+ * Generated from: lib/gov-ui/validators/index.ts
8581
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8582
+ */
8583
+
8584
+ /**
8585
+ * @fileoverview added by tsickle
8586
+ * Generated from: lib/gov-ui/components/public_api.ts
8587
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8588
+ */
8589
+
8590
+ /**
8591
+ * @fileoverview added by tsickle
8592
+ * Generated from: lib/gov-ui/components/index.ts
8593
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8594
+ */
8595
+
8596
+ /**
8597
+ * @fileoverview added by tsickle
8598
+ * Generated from: lib/gov-ui/public_api.ts
8599
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8600
+ */
8601
+
8602
+ /**
8603
+ * @fileoverview added by tsickle
8604
+ * Generated from: lib/gov-ui/index.ts
8605
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8606
+ */
8607
+
8170
8608
  /**
8171
8609
  * @fileoverview added by tsickle
8172
8610
  * Generated from: lib/services/feature-toggle/feature-toggle.guard.ts
@@ -9166,249 +9604,11 @@
9166
9604
  LoadingService.prototype.loading;
9167
9605
  }
9168
9606
 
9169
- /**
9170
- * @fileoverview added by tsickle
9171
- * Generated from: lib/services/public-api.ts
9172
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9173
- */
9174
-
9175
- /**
9176
- * @fileoverview added by tsickle
9177
- * Generated from: lib/services/index.ts
9178
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9179
- */
9180
-
9181
- /**
9182
- * @fileoverview added by tsickle
9183
- * Generated from: lib/exui-common-lib.module.ts
9184
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9185
- */
9186
- /** @type {?} */
9187
- var COMMON_COMPONENTS = [
9188
- ExuiPageWrapperComponent,
9189
- TermsAndConditionsComponent,
9190
- TcDisplayHtmlComponent,
9191
- TcDisplayPlainComponent,
9192
- TcConfirmComponent,
9193
- ContactDetailsComponent,
9194
- FeatureToggleDirective,
9195
- LetDirective,
9196
- HmctsSessionDialogComponent,
9197
- UserListComponent,
9198
- UserDetailsComponent,
9199
- InviteUserPermissionComponent,
9200
- InviteUserFormComponent,
9201
- ShareCaseComponent,
9202
- ShareCaseConfirmComponent,
9203
- SelectedCaseListComponent,
9204
- SelectedCaseComponent,
9205
- SelectedCaseConfirmComponent,
9206
- UserSelectComponent,
9207
- TabComponent,
9208
- AccessibilityComponent,
9209
- DueDateComponent,
9210
- CheckboxListComponent,
9211
- ServiceMessageComponent,
9212
- ServiceMessagesComponent,
9213
- LoadingSpinnerComponent,
9214
- GenericFilterComponent,
9215
- CookieBannerComponent,
9216
- FindPersonComponent,
9217
- SearchJudicialsComponent,
9218
- FindLocationComponent,
9219
- SearchLocationComponent,
9220
- SearchVenueComponent,
9221
- PaginationComponent
9222
- ];
9223
- /** @type {?} */
9224
- var GOV_UI_COMPONENTS = [
9225
- HmctsIdentityBarComponent,
9226
- HmctsPaginationComponent,
9227
- HmctsSubNavigationComponent,
9228
- HmctsPrimaryNavigationComponent,
9229
- HmctsErrorSummaryComponent,
9230
- HmctsMainWrapperComponent,
9231
- HmctsBannerComponent,
9232
- GovukTableComponent,
9233
- GovUkInputComponent,
9234
- GovUkCheckboxComponent,
9235
- GovUkFormGroupWrapperComponent,
9236
- GovUkLabelComponent,
9237
- GovUkErrorMessageComponent,
9238
- GovUkFieldsetComponent,
9239
- GovUkDateComponent,
9240
- GovUkCheckboxesComponent,
9241
- GovUkRadioComponent,
9242
- GovUkRadiosComponent,
9243
- GovUkSelectComponent,
9244
- GovUkTextareaComponent,
9245
- GovUkFileUploadComponent,
9246
- RemoveHostDirective
9247
- ];
9248
- /** @type {?} */
9249
- var COMMON_SERVICES = [
9250
- CaseSharingStateService,
9251
- CookieService,
9252
- LaunchDarklyService,
9253
- FilterService,
9254
- FindAPersonService,
9255
- GoogleAnalyticsService,
9256
- GoogleTagManagerService,
9257
- LoadingService,
9258
- LocationService,
9259
- ManageSessionServices,
9260
- SessionStorageService,
9261
- TimeoutNotificationsService
9262
- ];
9263
- var ɵ0 = windowProvider;
9264
- var ExuiCommonLibModule = /** @class */ (function () {
9265
- function ExuiCommonLibModule() {
9266
- }
9267
- ExuiCommonLibModule.decorators = [
9268
- { type: core.NgModule, args: [{
9269
- declarations: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS),
9270
- imports: [
9271
- common.CommonModule,
9272
- forms.FormsModule,
9273
- forms.ReactiveFormsModule,
9274
- router.RouterModule.forChild([]),
9275
- autocomplete.MatAutocompleteModule,
9276
- material.MatTabsModule,
9277
- material.MatInputModule,
9278
- ngxPagination.NgxPaginationModule
9279
- ],
9280
- providers: __spread(COMMON_SERVICES, [
9281
- { provide: windowToken, useFactory: ɵ0 }
9282
- ]),
9283
- exports: __spread(COMMON_COMPONENTS, GOV_UI_COMPONENTS, [
9284
- ngxPagination.PaginatePipe
9285
- ])
9286
- },] }
9287
- ];
9288
- return ExuiCommonLibModule;
9289
- }());
9290
-
9291
- /**
9292
- * @fileoverview added by tsickle
9293
- * Generated from: lib/gov-ui/gov-ui.service.ts
9294
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9295
- */
9296
- var GovUiService = /** @class */ (function () {
9297
- function GovUiService() {
9298
- }
9299
- GovUiService.decorators = [
9300
- { type: core.Injectable, args: [{
9301
- providedIn: 'root'
9302
- },] }
9303
- ];
9304
- /** @nocollapse */
9305
- GovUiService.ctorParameters = function () { return []; };
9306
- /** @nocollapse */ GovUiService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function GovUiService_Factory() { return new GovUiService(); }, token: GovUiService, providedIn: "root" });
9307
- return GovUiService;
9308
- }());
9309
-
9310
- /**
9311
- * @fileoverview added by tsickle
9312
- * Generated from: lib/gov-ui/validators/checkboxes-be-checked.validator.ts
9313
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9314
- */
9315
- /**
9316
- * @param {?=} minRequired
9317
- * @return {?}
9318
- */
9319
- function checkboxesBeCheckedValidator(minRequired) {
9320
- if (minRequired === void 0) { minRequired = 1; }
9321
- return (/**
9322
- * @param {?} formGroup
9323
- * @return {?}
9324
- */
9325
- function validate(formGroup) {
9326
- /** @type {?} */
9327
- var checked = 0;
9328
- Object.keys(formGroup.controls).forEach((/**
9329
- * @param {?} key
9330
- * @return {?}
9331
- */
9332
- function (key) {
9333
- /** @type {?} */
9334
- var control = formGroup.controls[key];
9335
- if (control.value === true) {
9336
- checked++;
9337
- }
9338
- }));
9339
- if (checked < minRequired) {
9340
- return {
9341
- requireOneCheckboxToBeChecked: true,
9342
- };
9343
- }
9344
- return null;
9345
- });
9346
- }
9347
-
9348
- /**
9349
- * @fileoverview added by tsickle
9350
- * Generated from: lib/gov-ui/validators/date.validator.ts
9351
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9352
- */
9353
- /**
9354
- * @return {?}
9355
- */
9356
- function dateValidator() {
9357
- return (/**
9358
- * @param {?} formGroup
9359
- * @return {?}
9360
- */
9361
- function validate(formGroup) {
9362
- /** @type {?} */
9363
- var d = new Date(parseInt(formGroup.controls.day.value, 10), parseInt(formGroup.controls.month.value, 10) - 1, parseInt(formGroup.controls.year.value, 10) - 1);
9364
- /**
9365
- * @param {?} val
9366
- * @return {?}
9367
- */
9368
- function isValidDate(val) {
9369
- return val instanceof Date && !isNaN(+d);
9370
- }
9371
- if (!isValidDate(d)) {
9372
- return {
9373
- dateIsInvalid: true,
9374
- };
9375
- }
9376
- return null;
9377
- });
9378
- }
9379
-
9380
- /**
9381
- * @fileoverview added by tsickle
9382
- * Generated from: lib/gov-ui/validators/radio-group.validator.ts
9383
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9384
- */
9385
- /**
9386
- * @return {?}
9387
- */
9388
- function radioGroupValidator() {
9389
- return (/**
9390
- * @param {?} formGroup
9391
- * @return {?}
9392
- */
9393
- function validate(formGroup) {
9394
- if (formGroup.controls) {
9395
- for (var control in formGroup.controls) {
9396
- if (!formGroup.controls[control].valid) {
9397
- return {
9398
- isRadioGroupInvalid: true,
9399
- };
9400
- }
9401
- }
9402
- }
9403
- return null;
9404
- });
9405
- }
9406
-
9407
9607
  exports.AccessibilityComponent = AccessibilityComponent;
9408
9608
  exports.AnonymousFeatureUser = AnonymousFeatureUser;
9409
9609
  exports.BadgeColour = BadgeColour;
9610
+ exports.BookingCheckType = BookingCheckType;
9410
9611
  exports.COMMON_COMPONENTS = COMMON_COMPONENTS;
9411
- exports.COMMON_SERVICES = COMMON_SERVICES;
9412
9612
  exports.CaseSharingStateService = CaseSharingStateService;
9413
9613
  exports.CheckboxListComponent = CheckboxListComponent;
9414
9614
  exports.ContactDetailsComponent = ContactDetailsComponent;
@@ -9512,18 +9712,6 @@
9512
9712
  exports.ɵcj = GovUkTextareaComponent;
9513
9713
  exports.ɵck = GovUkFileUploadComponent;
9514
9714
  exports.ɵcl = RemoveHostDirective;
9515
- exports.ɵcm = CaseSharingStateService;
9516
- exports.ɵcn = CookieService;
9517
- exports.ɵco = LaunchDarklyService;
9518
- exports.ɵcp = FilterService;
9519
- exports.ɵcq = FindAPersonService;
9520
- exports.ɵcr = GoogleAnalyticsService;
9521
- exports.ɵcs = GoogleTagManagerService;
9522
- exports.ɵct = LoadingService;
9523
- exports.ɵcu = LocationService;
9524
- exports.ɵcv = ManageSessionServices;
9525
- exports.ɵcw = SessionStorageService;
9526
- exports.ɵcx = TimeoutNotificationsService;
9527
9715
  exports.ɵd = TcDisplayPlainComponent;
9528
9716
  exports.ɵe = TcConfirmComponent;
9529
9717
  exports.ɵf = ContactDetailsComponent;