@hmcts/rpx-xui-common-lib 1.7.14 → 1.7.16

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 (37) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +268 -196
  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 -2
  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/models/filter.model.js +3 -1
  10. package/esm2015/lib/models/index.js +2 -1
  11. package/esm2015/lib/models/location.model.js +22 -1
  12. package/esm2015/lib/models/person.model.js +2 -2
  13. package/esm2015/lib/services/locations/location.service.js +5 -3
  14. package/esm2015/public-api.js +2 -2
  15. package/esm5/hmcts-rpx-xui-common-lib.js +2 -2
  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/models/filter.model.js +3 -1
  20. package/esm5/lib/models/index.js +2 -1
  21. package/esm5/lib/models/location.model.js +22 -1
  22. package/esm5/lib/models/person.model.js +2 -2
  23. package/esm5/lib/services/locations/location.service.js +7 -3
  24. package/esm5/public-api.js +2 -2
  25. package/fesm2015/hmcts-rpx-xui-common-lib.js +235 -184
  26. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  27. package/fesm5/hmcts-rpx-xui-common-lib.js +313 -247
  28. package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
  29. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  30. package/lib/components/find-location/find-location.component.d.ts +3 -2
  31. package/lib/components/search-location/search-location.component.d.ts +5 -2
  32. package/lib/models/filter.model.d.ts +2 -0
  33. package/lib/models/index.d.ts +1 -0
  34. package/lib/models/location.model.d.ts +11 -0
  35. package/lib/models/person.model.d.ts +1 -1
  36. package/lib/services/locations/location.service.d.ts +2 -2
  37. package/package.json +1 -1
@@ -1201,6 +1201,7 @@
1201
1201
  * @return {?}
1202
1202
  */
1203
1203
  function (event, form, item, field) {
1204
+ var e_3, _a;
1204
1205
  /** @type {?} */
1205
1206
  var isChecked = event.target.checked;
1206
1207
  /** @type {?} */
@@ -1251,19 +1252,41 @@
1251
1252
  else if (hasSelectAllOption && !allChecked && isChecked && isAllCheckedExcludingTheSelectAllOption) {
1252
1253
  formArray.controls[index_1].patchValue(true);
1253
1254
  }
1254
- return;
1255
1255
  }
1256
- formArray.controls.forEach(( /**
1257
- * @param {?} control
1258
- * @return {?}
1259
- */function (control) {
1260
- if (isChecked) {
1261
- control.patchValue(true);
1256
+ else {
1257
+ formArray.controls.forEach(( /**
1258
+ * @param {?} control
1259
+ * @return {?}
1260
+ */function (control) {
1261
+ if (isChecked) {
1262
+ control.patchValue(true);
1263
+ }
1264
+ else {
1265
+ control.patchValue(false);
1266
+ }
1267
+ }));
1268
+ }
1269
+ if (field.changeResetFields && field.changeResetFields.length) {
1270
+ try {
1271
+ for (var _b = __values(field.changeResetFields), _c = _b.next(); !_c.done; _c = _b.next()) {
1272
+ var resetField = _c.value;
1273
+ this.resetField(resetField, form);
1274
+ }
1262
1275
  }
1263
- else {
1264
- control.patchValue(false);
1276
+ catch (e_3_1) {
1277
+ e_3 = { error: e_3_1 };
1265
1278
  }
1266
- }));
1279
+ finally {
1280
+ try {
1281
+ if (_c && !_c.done && (_a = _b.return))
1282
+ _a.call(_b);
1283
+ }
1284
+ finally {
1285
+ if (e_3)
1286
+ throw e_3.error;
1287
+ }
1288
+ }
1289
+ }
1267
1290
  };
1268
1291
  /**
1269
1292
  * @private
@@ -1278,7 +1301,7 @@
1278
1301
  * @return {?}
1279
1302
  */
1280
1303
  function (resetField, form) {
1281
- var e_3, _a;
1304
+ var e_4, _a;
1282
1305
  /** @type {?} */
1283
1306
  var control = form.get(resetField);
1284
1307
  /** @type {?} */
@@ -1300,8 +1323,8 @@
1300
1323
  this.resetField(key, control);
1301
1324
  }
1302
1325
  }
1303
- catch (e_3_1) {
1304
- e_3 = { error: e_3_1 };
1326
+ catch (e_4_1) {
1327
+ e_4 = { error: e_4_1 };
1305
1328
  }
1306
1329
  finally {
1307
1330
  try {
@@ -1309,8 +1332,8 @@
1309
1332
  _a.call(keys_2);
1310
1333
  }
1311
1334
  finally {
1312
- if (e_3)
1313
- throw e_3.error;
1335
+ if (e_4)
1336
+ throw e_4.error;
1314
1337
  }
1315
1338
  }
1316
1339
  }
@@ -1367,7 +1390,7 @@
1367
1390
  * @return {?}
1368
1391
  */
1369
1392
  function (config, settings, reset) {
1370
- var e_4, _a;
1393
+ var e_5, _a;
1371
1394
  /** @type {?} */
1372
1395
  var findPersonControl = this.form ? this.form.get('findPersonControl') : null;
1373
1396
  this.form = this.fb.group({});
@@ -1440,8 +1463,8 @@
1440
1463
  _loop_1(field);
1441
1464
  }
1442
1465
  }
1443
- catch (e_4_1) {
1444
- e_4 = { error: e_4_1 };
1466
+ catch (e_5_1) {
1467
+ e_5 = { error: e_5_1 };
1445
1468
  }
1446
1469
  finally {
1447
1470
  try {
@@ -1449,8 +1472,8 @@
1449
1472
  _a.call(_b);
1450
1473
  }
1451
1474
  finally {
1452
- if (e_4)
1453
- throw e_4.error;
1475
+ if (e_5)
1476
+ throw e_5.error;
1454
1477
  }
1455
1478
  }
1456
1479
  };
@@ -1467,7 +1490,7 @@
1467
1490
  * @return {?}
1468
1491
  */
1469
1492
  function (field, settings) {
1470
- var e_5, _a;
1493
+ var e_6, _a;
1471
1494
  /** @type {?} */
1472
1495
  var validators = GenericFilterComponent.addFormValidators(field);
1473
1496
  /** @type {?} */
@@ -1497,8 +1520,8 @@
1497
1520
  _loop_2(option);
1498
1521
  }
1499
1522
  }
1500
- catch (e_5_1) {
1501
- e_5 = { error: e_5_1 };
1523
+ catch (e_6_1) {
1524
+ e_6 = { error: e_6_1 };
1502
1525
  }
1503
1526
  finally {
1504
1527
  try {
@@ -1506,8 +1529,8 @@
1506
1529
  _a.call(_b);
1507
1530
  }
1508
1531
  finally {
1509
- if (e_5)
1510
- throw e_5.error;
1532
+ if (e_6)
1533
+ throw e_6.error;
1511
1534
  }
1512
1535
  }
1513
1536
  return formArray;
@@ -1525,7 +1548,7 @@
1525
1548
  * @return {?}
1526
1549
  */
1527
1550
  function (field, settings) {
1528
- var e_6, _a;
1551
+ var e_7, _a;
1529
1552
  /** @type {?} */
1530
1553
  var validators = GenericFilterComponent.addFormValidators(field);
1531
1554
  /** @type {?} */
@@ -1544,8 +1567,8 @@
1544
1567
  formArray.push(new forms.FormControl(defaultValue));
1545
1568
  }
1546
1569
  }
1547
- catch (e_6_1) {
1548
- e_6 = { error: e_6_1 };
1570
+ catch (e_7_1) {
1571
+ e_7 = { error: e_7_1 };
1549
1572
  }
1550
1573
  finally {
1551
1574
  try {
@@ -1553,8 +1576,8 @@
1553
1576
  _a.call(_b);
1554
1577
  }
1555
1578
  finally {
1556
- if (e_6)
1557
- throw e_6.error;
1579
+ if (e_7)
1580
+ throw e_7.error;
1558
1581
  }
1559
1582
  }
1560
1583
  }
@@ -1609,7 +1632,7 @@
1609
1632
  * @return {?}
1610
1633
  */
1611
1634
  function (form) {
1612
- var e_7, _a;
1635
+ var e_8, _a;
1613
1636
  /** @type {?} */
1614
1637
  var errors = [];
1615
1638
  try {
@@ -1625,8 +1648,8 @@
1625
1648
  }
1626
1649
  }
1627
1650
  }
1628
- catch (e_7_1) {
1629
- e_7 = { error: e_7_1 };
1651
+ catch (e_8_1) {
1652
+ e_8 = { error: e_8_1 };
1630
1653
  }
1631
1654
  finally {
1632
1655
  try {
@@ -1634,8 +1657,8 @@
1634
1657
  _a.call(_b);
1635
1658
  }
1636
1659
  finally {
1637
- if (e_7)
1638
- throw e_7.error;
1660
+ if (e_8)
1661
+ throw e_8.error;
1639
1662
  }
1640
1663
  }
1641
1664
  if (errors.length) {
@@ -3760,6 +3783,79 @@
3760
3783
  return CookieBannerComponent;
3761
3784
  }());
3762
3785
 
3786
+ /**
3787
+ * @fileoverview added by tsickle
3788
+ * Generated from: lib/models/contact-details.model.ts
3789
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3790
+ */
3791
+ /** @enum {string} */
3792
+ var BadgeColour = {
3793
+ BADGE_RED: "hmcts-badge--red",
3794
+ BADGE_BLUE: "hmcts-badge--blue",
3795
+ BADGE_GREEN: "hmcts-badge--green",
3796
+ };
3797
+
3798
+ /**
3799
+ * @fileoverview added by tsickle
3800
+ * Generated from: lib/models/feature-user.ts
3801
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3802
+ */
3803
+ var AnonymousFeatureUser = /** @class */ (function () {
3804
+ function AnonymousFeatureUser() {
3805
+ }
3806
+ return AnonymousFeatureUser;
3807
+ }());
3808
+ var LoggedInFeatureUser = /** @class */ (function () {
3809
+ function LoggedInFeatureUser() {
3810
+ }
3811
+ return LoggedInFeatureUser;
3812
+ }());
3813
+
3814
+ /**
3815
+ * @fileoverview added by tsickle
3816
+ * Generated from: lib/models/location.model.ts
3817
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3818
+ */
3819
+ /** @enum {string} */
3820
+ var BookingCheckType = {
3821
+ NO_CHECK: "NO_CHECK",
3822
+ BOOKINGS_AND_BASE: "BOOKINGS_AND_BASE",
3823
+ POSSIBLE_BOOKINGS: "POSSIBLE_BOOKINGS",
3824
+ };
3825
+
3826
+ /**
3827
+ * @fileoverview added by tsickle
3828
+ * Generated from: lib/models/person.model.ts
3829
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3830
+ */
3831
+ /** @enum {string} */
3832
+ var PersonRole = {
3833
+ JUDICIAL: "Judicial",
3834
+ CASEWORKER: "Legal Ops",
3835
+ ADMIN: "Admin",
3836
+ CTSC: "CTSC User",
3837
+ ALL: "All",
3838
+ };
3839
+ /** @enum {string} */
3840
+ var RoleCategory = {
3841
+ JUDICIAL: "JUDICIAL",
3842
+ CASEWORKER: "LEGAL_OPERATIONS",
3843
+ ADMIN: "ADMIN",
3844
+ CTSC: "CTSC",
3845
+ ALL: "ALL",
3846
+ };
3847
+
3848
+ /**
3849
+ * @fileoverview added by tsickle
3850
+ * Generated from: lib/models/filter.model.ts
3851
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3852
+ */
3853
+ var RadioFilterFieldConfig = /** @class */ (function () {
3854
+ function RadioFilterFieldConfig() {
3855
+ }
3856
+ return RadioFilterFieldConfig;
3857
+ }());
3858
+
3763
3859
  /**
3764
3860
  * @fileoverview added by tsickle
3765
3861
  * Generated from: lib/services/locations/location.service.ts
@@ -3781,6 +3877,8 @@
3781
3877
  * @param {?} serviceIds
3782
3878
  * @param {?} locationType
3783
3879
  * @param {?} searchTerm
3880
+ * @param {?} userLocations
3881
+ * @param {?} bookingLocations
3784
3882
  * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
3785
3883
  */
3786
3884
  LocationService.prototype.getAllLocations = /**
@@ -3788,10 +3886,12 @@
3788
3886
  * @param {?} serviceIds
3789
3887
  * @param {?} locationType
3790
3888
  * @param {?} searchTerm
3889
+ * @param {?} userLocations
3890
+ * @param {?} bookingLocations
3791
3891
  * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
3792
3892
  */
3793
- function (serviceIds, locationType, searchTerm) {
3794
- return this.http.get("api/locations/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
3893
+ function (serviceIds, locationType, searchTerm, userLocations, bookingLocations) {
3894
+ return this.http.post("api/locations/getLocations", { serviceIds: serviceIds, locationType: locationType, searchTerm: searchTerm, userLocations: userLocations, bookingLocations: bookingLocations });
3795
3895
  };
3796
3896
  /**
3797
3897
  * @description searchLocations from service Ids/location type/search term
@@ -3832,14 +3932,110 @@
3832
3932
  return LocationService;
3833
3933
  }());
3834
3934
 
3935
+ /**
3936
+ * @fileoverview added by tsickle
3937
+ * Generated from: lib/services/session-storage/session-storage.service.ts
3938
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3939
+ */
3940
+ var SessionStorageService = /** @class */ (function () {
3941
+ function SessionStorageService() {
3942
+ }
3943
+ /**
3944
+ * Get an item from the session storage.
3945
+ * If remove is true, the item will be removed once read
3946
+ * @param removeAfterRead removed the key once it has been read
3947
+ */
3948
+ /**
3949
+ * Get an item from the session storage.
3950
+ * If remove is true, the item will be removed once read
3951
+ * @param {?} key
3952
+ * @param {?=} removeAfterRead removed the key once it has been read
3953
+ * @return {?}
3954
+ */
3955
+ SessionStorageService.prototype.getItem = /**
3956
+ * Get an item from the session storage.
3957
+ * If remove is true, the item will be removed once read
3958
+ * @param {?} key
3959
+ * @param {?=} removeAfterRead removed the key once it has been read
3960
+ * @return {?}
3961
+ */
3962
+ function (key, removeAfterRead) {
3963
+ if (removeAfterRead === void 0) {
3964
+ removeAfterRead = false;
3965
+ }
3966
+ /** @type {?} */
3967
+ var item = sessionStorage.getItem(key);
3968
+ if (removeAfterRead) {
3969
+ this.removeItem(key);
3970
+ }
3971
+ return item;
3972
+ };
3973
+ /**
3974
+ * Set an item in the session storage.
3975
+ */
3976
+ /**
3977
+ * Set an item in the session storage.
3978
+ * @param {?} key
3979
+ * @param {?} value
3980
+ * @return {?}
3981
+ */
3982
+ SessionStorageService.prototype.setItem = /**
3983
+ * Set an item in the session storage.
3984
+ * @param {?} key
3985
+ * @param {?} value
3986
+ * @return {?}
3987
+ */
3988
+ function (key, value) {
3989
+ sessionStorage.setItem(key, value);
3990
+ };
3991
+ /**
3992
+ * Remove an item in the session storage.
3993
+ */
3994
+ /**
3995
+ * Remove an item in the session storage.
3996
+ * @param {?} key
3997
+ * @return {?}
3998
+ */
3999
+ SessionStorageService.prototype.removeItem = /**
4000
+ * Remove an item in the session storage.
4001
+ * @param {?} key
4002
+ * @return {?}
4003
+ */
4004
+ function (key) {
4005
+ sessionStorage.removeItem(key);
4006
+ };
4007
+ /**
4008
+ * Clear all the items held in session storage.
4009
+ */
4010
+ /**
4011
+ * Clear all the items held in session storage.
4012
+ * @return {?}
4013
+ */
4014
+ SessionStorageService.prototype.clear = /**
4015
+ * Clear all the items held in session storage.
4016
+ * @return {?}
4017
+ */
4018
+ function () {
4019
+ sessionStorage.clear();
4020
+ };
4021
+ SessionStorageService.decorators = [
4022
+ { type: i0.Injectable, args: [{
4023
+ providedIn: 'root'
4024
+ },] }
4025
+ ];
4026
+ /** @nocollapse */ SessionStorageService.ngInjectableDef = i0.defineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
4027
+ return SessionStorageService;
4028
+ }());
4029
+
3835
4030
  /**
3836
4031
  * @fileoverview added by tsickle
3837
4032
  * Generated from: lib/components/search-location/search-location.component.ts
3838
4033
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3839
4034
  */
3840
4035
  var SearchLocationComponent = /** @class */ (function () {
3841
- function SearchLocationComponent(locationService, fb, cd) {
4036
+ function SearchLocationComponent(locationService, sessionStorageService, fb, cd) {
3842
4037
  this.locationService = locationService;
4038
+ this.sessionStorageService = sessionStorageService;
3843
4039
  this.fb = fb;
3844
4040
  this.cd = cd;
3845
4041
  this.disabled = null;
@@ -3991,7 +4187,23 @@
3991
4187
  * @return {?}
3992
4188
  */
3993
4189
  function (term) {
3994
- return this.locationService.getAllLocations(this.serviceIds, this.locationType, term);
4190
+ /** @type {?} */
4191
+ var userLocations;
4192
+ /** @type {?} */
4193
+ var bookingLocations;
4194
+ // Booking type info - can create more
4195
+ // NO_CHECK - All work - Do not filter out locations - Default assumption
4196
+ // ONLY_BOOKINGS - My work - Try to only show base locations/booking locations
4197
+ // POSSIBLE_BOOKINGS - Create booking screen - Show only potential bookings
4198
+ if (this.bookingCheck === BookingCheckType.BOOKINGS_AND_BASE) {
4199
+ userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
4200
+ bookingLocations = JSON.parse(this.sessionStorageService.getItem('bookingLocations'));
4201
+ }
4202
+ else if (this.bookingCheck === BookingCheckType.POSSIBLE_BOOKINGS) {
4203
+ userLocations = JSON.parse(this.sessionStorageService.getItem('userLocations'));
4204
+ this.serviceIds = JSON.parse(this.sessionStorageService.getItem('bookableServices'));
4205
+ }
4206
+ return this.locationService.getAllLocations(this.serviceIds, this.locationType, term, userLocations, bookingLocations);
3995
4207
  };
3996
4208
  /**
3997
4209
  * @return {?}
@@ -4038,6 +4250,7 @@
4038
4250
  SearchLocationComponent.ctorParameters = function () {
4039
4251
  return [
4040
4252
  { type: LocationService },
4253
+ { type: SessionStorageService },
4041
4254
  { type: forms.FormBuilder },
4042
4255
  { type: i0.ChangeDetectorRef }
4043
4256
  ];
@@ -4053,6 +4266,7 @@
4053
4266
  form: [{ type: i0.Input }],
4054
4267
  showAutocomplete: [{ type: i0.Input }],
4055
4268
  locations: [{ type: i0.Input }],
4269
+ bookingCheck: [{ type: i0.Input }],
4056
4270
  locationSelected: [{ type: i0.Output }],
4057
4271
  locationInputChanged: [{ type: i0.Output }],
4058
4272
  searchLocationChanged: [{ type: i0.Output }],
@@ -4132,6 +4346,19 @@
4132
4346
  enumerable: true,
4133
4347
  configurable: true
4134
4348
  });
4349
+ /**
4350
+ * @return {?}
4351
+ */
4352
+ FindLocationComponent.prototype.ngOnInit = /**
4353
+ * @return {?}
4354
+ */
4355
+ function () {
4356
+ // implemented to get rid of undefined values
4357
+ this.selectedLocations = this.selectedLocations.filter(( /**
4358
+ * @param {?} location
4359
+ * @return {?}
4360
+ */function (location) { return location.epimms_id; }));
4361
+ };
4135
4362
  /**
4136
4363
  * @return {?}
4137
4364
  */
@@ -4273,7 +4500,7 @@
4273
4500
  FindLocationComponent.decorators = [
4274
4501
  { type: i0.Component, args: [{
4275
4502
  selector: 'xuilib-find-location',
4276
- 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",
4503
+ 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",
4277
4504
  styles: [""]
4278
4505
  }] }
4279
4506
  ];
@@ -4527,67 +4754,6 @@
4527
4754
  return ExuiPageWrapperComponent;
4528
4755
  }());
4529
4756
 
4530
- /**
4531
- * @fileoverview added by tsickle
4532
- * Generated from: lib/models/contact-details.model.ts
4533
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4534
- */
4535
- /** @enum {string} */
4536
- var BadgeColour = {
4537
- BADGE_RED: "hmcts-badge--red",
4538
- BADGE_BLUE: "hmcts-badge--blue",
4539
- BADGE_GREEN: "hmcts-badge--green",
4540
- };
4541
-
4542
- /**
4543
- * @fileoverview added by tsickle
4544
- * Generated from: lib/models/feature-user.ts
4545
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4546
- */
4547
- var AnonymousFeatureUser = /** @class */ (function () {
4548
- function AnonymousFeatureUser() {
4549
- }
4550
- return AnonymousFeatureUser;
4551
- }());
4552
- var LoggedInFeatureUser = /** @class */ (function () {
4553
- function LoggedInFeatureUser() {
4554
- }
4555
- return LoggedInFeatureUser;
4556
- }());
4557
-
4558
- /**
4559
- * @fileoverview added by tsickle
4560
- * Generated from: lib/models/person.model.ts
4561
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4562
- */
4563
- /** @enum {string} */
4564
- var PersonRole = {
4565
- JUDICIAL: "Judicial",
4566
- CASEWORKER: "Legal Ops",
4567
- ADMIN: "Admin",
4568
- CTSC: "CTSC",
4569
- ALL: "All",
4570
- };
4571
- /** @enum {string} */
4572
- var RoleCategory = {
4573
- JUDICIAL: "JUDICIAL",
4574
- CASEWORKER: "LEGAL_OPERATIONS",
4575
- ADMIN: "ADMIN",
4576
- CTSC: "CTSC",
4577
- ALL: "ALL",
4578
- };
4579
-
4580
- /**
4581
- * @fileoverview added by tsickle
4582
- * Generated from: lib/models/filter.model.ts
4583
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4584
- */
4585
- var RadioFilterFieldConfig = /** @class */ (function () {
4586
- function RadioFilterFieldConfig() {
4587
- }
4588
- return RadioFilterFieldConfig;
4589
- }());
4590
-
4591
4757
  /**
4592
4758
  * @fileoverview added by tsickle
4593
4759
  * Generated from: lib/gov-ui/util/session-storage/session-storage-utils.ts
@@ -4627,101 +4793,6 @@
4627
4793
  sessionStorageService.setItem(sessionKey, JSON.stringify(caseworkers));
4628
4794
  });
4629
4795
 
4630
- /**
4631
- * @fileoverview added by tsickle
4632
- * Generated from: lib/services/session-storage/session-storage.service.ts
4633
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4634
- */
4635
- var SessionStorageService = /** @class */ (function () {
4636
- function SessionStorageService() {
4637
- }
4638
- /**
4639
- * Get an item from the session storage.
4640
- * If remove is true, the item will be removed once read
4641
- * @param removeAfterRead removed the key once it has been read
4642
- */
4643
- /**
4644
- * Get an item from the session storage.
4645
- * If remove is true, the item will be removed once read
4646
- * @param {?} key
4647
- * @param {?=} removeAfterRead removed the key once it has been read
4648
- * @return {?}
4649
- */
4650
- SessionStorageService.prototype.getItem = /**
4651
- * Get an item from the session storage.
4652
- * If remove is true, the item will be removed once read
4653
- * @param {?} key
4654
- * @param {?=} removeAfterRead removed the key once it has been read
4655
- * @return {?}
4656
- */
4657
- function (key, removeAfterRead) {
4658
- if (removeAfterRead === void 0) {
4659
- removeAfterRead = false;
4660
- }
4661
- /** @type {?} */
4662
- var item = sessionStorage.getItem(key);
4663
- if (removeAfterRead) {
4664
- this.removeItem(key);
4665
- }
4666
- return item;
4667
- };
4668
- /**
4669
- * Set an item in the session storage.
4670
- */
4671
- /**
4672
- * Set an item in the session storage.
4673
- * @param {?} key
4674
- * @param {?} value
4675
- * @return {?}
4676
- */
4677
- SessionStorageService.prototype.setItem = /**
4678
- * Set an item in the session storage.
4679
- * @param {?} key
4680
- * @param {?} value
4681
- * @return {?}
4682
- */
4683
- function (key, value) {
4684
- sessionStorage.setItem(key, value);
4685
- };
4686
- /**
4687
- * Remove an item in the session storage.
4688
- */
4689
- /**
4690
- * Remove an item in the session storage.
4691
- * @param {?} key
4692
- * @return {?}
4693
- */
4694
- SessionStorageService.prototype.removeItem = /**
4695
- * Remove an item in the session storage.
4696
- * @param {?} key
4697
- * @return {?}
4698
- */
4699
- function (key) {
4700
- sessionStorage.removeItem(key);
4701
- };
4702
- /**
4703
- * Clear all the items held in session storage.
4704
- */
4705
- /**
4706
- * Clear all the items held in session storage.
4707
- * @return {?}
4708
- */
4709
- SessionStorageService.prototype.clear = /**
4710
- * Clear all the items held in session storage.
4711
- * @return {?}
4712
- */
4713
- function () {
4714
- sessionStorage.clear();
4715
- };
4716
- SessionStorageService.decorators = [
4717
- { type: i0.Injectable, args: [{
4718
- providedIn: 'root'
4719
- },] }
4720
- ];
4721
- /** @nocollapse */ SessionStorageService.ngInjectableDef = i0.defineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
4722
- return SessionStorageService;
4723
- }());
4724
-
4725
4796
  /**
4726
4797
  * @fileoverview added by tsickle
4727
4798
  * Generated from: lib/services/find-person/find-person.service.ts
@@ -7781,6 +7852,7 @@
7781
7852
  exports.SECONDS_IN_A_DAY = SECONDS_IN_A_DAY;
7782
7853
  exports.AnonymousFeatureUser = AnonymousFeatureUser;
7783
7854
  exports.LoggedInFeatureUser = LoggedInFeatureUser;
7855
+ exports.BookingCheckType = BookingCheckType;
7784
7856
  exports.PersonRole = PersonRole;
7785
7857
  exports.RoleCategory = RoleCategory;
7786
7858
  exports.RadioFilterFieldConfig = RadioFilterFieldConfig;