@hmcts/rpx-xui-common-lib 1.7.15 → 1.7.16-welsh-release-part1

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 (42) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +212 -286
  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 +2 -13
  7. package/esm2015/lib/components/generic-filter/generic-filter.component.js +13 -19
  8. package/esm2015/lib/components/search-location/search-location.component.js +3 -32
  9. package/esm2015/lib/exui-common-lib.module.js +4 -2
  10. package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +2 -5
  11. package/esm2015/lib/models/filter.model.js +1 -3
  12. package/esm2015/lib/models/index.js +1 -2
  13. package/esm2015/lib/models/location.model.js +1 -22
  14. package/esm2015/lib/models/person.model.js +1 -3
  15. package/esm2015/lib/services/locations/location.service.js +3 -5
  16. package/esm2015/public-api.js +2 -2
  17. package/esm5/hmcts-rpx-xui-common-lib.js +2 -2
  18. package/esm5/lib/components/find-location/find-location.component.js +2 -16
  19. package/esm5/lib/components/generic-filter/generic-filter.component.js +27 -44
  20. package/esm5/lib/components/search-location/search-location.component.js +3 -31
  21. package/esm5/lib/exui-common-lib.module.js +4 -2
  22. package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +2 -5
  23. package/esm5/lib/models/filter.model.js +1 -3
  24. package/esm5/lib/models/index.js +1 -2
  25. package/esm5/lib/models/location.model.js +1 -22
  26. package/esm5/lib/models/person.model.js +1 -3
  27. package/esm5/lib/services/locations/location.service.js +3 -7
  28. package/esm5/public-api.js +2 -2
  29. package/fesm2015/hmcts-rpx-xui-common-lib.js +186 -238
  30. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  31. package/fesm5/hmcts-rpx-xui-common-lib.js +249 -316
  32. package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
  33. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  34. package/lib/components/find-location/find-location.component.d.ts +2 -3
  35. package/lib/components/search-location/search-location.component.d.ts +2 -5
  36. package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +0 -1
  37. package/lib/models/filter.model.d.ts +0 -2
  38. package/lib/models/index.d.ts +0 -1
  39. package/lib/models/location.model.d.ts +0 -11
  40. package/lib/models/person.model.d.ts +0 -2
  41. package/lib/services/locations/location.service.d.ts +2 -2
  42. package/package.json +3 -2
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/material'), require('@angular/material/autocomplete'), require('ngx-pagination'), require('@angular/common/http'), require('@angular/forms'), require('launchdarkly-js-client-sdk'), require('@angular/common'), require('@angular/platform-browser'), require('@ng-idle/core'), require('@ng-idle/keepalive'), require('@angular/router'), require('@angular/core'), require('rxjs'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@hmcts/rpx-xui-common-lib', ['exports', '@angular/material', '@angular/material/autocomplete', 'ngx-pagination', '@angular/common/http', '@angular/forms', 'launchdarkly-js-client-sdk', '@angular/common', '@angular/platform-browser', '@ng-idle/core', '@ng-idle/keepalive', '@angular/router', '@angular/core', 'rxjs', 'rxjs/operators'], factory) :
4
- (factory((global.hmcts = global.hmcts || {}, global.hmcts['rpx-xui-common-lib'] = {}),global.ng.material,global.ng.material.autocomplete,global.ngxPagination,global.ng.common.http,global.ng.forms,global.LDClient,global.ng.common,global.ng.platformBrowser,global.i1$1,global.i2$1,global.ng.router,global.ng.core,global.rxjs,global.rxjs.operators));
5
- }(this, (function (exports,material,autocomplete,ngxPagination,i1,forms,LDClient,i4,i2,i1$1,i2$1,i2$2,i0,rxjs,operators) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/material'), require('@angular/material/autocomplete'), require('ngx-pagination'), require('rpx-xui-translation'), require('@angular/common/http'), require('@angular/forms'), require('launchdarkly-js-client-sdk'), require('@angular/common'), require('@angular/platform-browser'), require('@ng-idle/core'), require('@ng-idle/keepalive'), require('@angular/router'), require('@angular/core'), require('rxjs'), require('rxjs/operators')) :
3
+ typeof define === 'function' && define.amd ? define('@hmcts/rpx-xui-common-lib', ['exports', '@angular/material', '@angular/material/autocomplete', 'ngx-pagination', 'rpx-xui-translation', '@angular/common/http', '@angular/forms', 'launchdarkly-js-client-sdk', '@angular/common', '@angular/platform-browser', '@ng-idle/core', '@ng-idle/keepalive', '@angular/router', '@angular/core', 'rxjs', 'rxjs/operators'], factory) :
4
+ (factory((global.hmcts = global.hmcts || {}, global.hmcts['rpx-xui-common-lib'] = {}),global.ng.material,global.ng.material.autocomplete,global.ngxPagination,global.rpxXuiTranslation,global.ng.common.http,global.ng.forms,global.LDClient,global.ng.common,global.ng.platformBrowser,global.i1$1,global.i2$1,global.ng.router,global.ng.core,global.rxjs,global.rxjs.operators));
5
+ }(this, (function (exports,material,autocomplete,ngxPagination,rpxXuiTranslation,i1,forms,LDClient,i4,i2,i1$1,i2$1,i1$2,i0,rxjs,operators) { 'use strict';
6
6
 
7
7
  /**
8
8
  * @fileoverview added by tsickle
@@ -1201,7 +1201,6 @@
1201
1201
  * @return {?}
1202
1202
  */
1203
1203
  function (event, form, item, field) {
1204
- var e_3, _a;
1205
1204
  /** @type {?} */
1206
1205
  var isChecked = event.target.checked;
1207
1206
  /** @type {?} */
@@ -1252,41 +1251,19 @@
1252
1251
  else if (hasSelectAllOption && !allChecked && isChecked && isAllCheckedExcludingTheSelectAllOption) {
1253
1252
  formArray.controls[index_1].patchValue(true);
1254
1253
  }
1254
+ return;
1255
1255
  }
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
- }
1275
- }
1276
- catch (e_3_1) {
1277
- e_3 = { error: e_3_1 };
1256
+ formArray.controls.forEach(( /**
1257
+ * @param {?} control
1258
+ * @return {?}
1259
+ */function (control) {
1260
+ if (isChecked) {
1261
+ control.patchValue(true);
1278
1262
  }
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
- }
1263
+ else {
1264
+ control.patchValue(false);
1288
1265
  }
1289
- }
1266
+ }));
1290
1267
  };
1291
1268
  /**
1292
1269
  * @private
@@ -1301,7 +1278,7 @@
1301
1278
  * @return {?}
1302
1279
  */
1303
1280
  function (resetField, form) {
1304
- var e_4, _a;
1281
+ var e_3, _a;
1305
1282
  /** @type {?} */
1306
1283
  var control = form.get(resetField);
1307
1284
  /** @type {?} */
@@ -1323,8 +1300,8 @@
1323
1300
  this.resetField(key, control);
1324
1301
  }
1325
1302
  }
1326
- catch (e_4_1) {
1327
- e_4 = { error: e_4_1 };
1303
+ catch (e_3_1) {
1304
+ e_3 = { error: e_3_1 };
1328
1305
  }
1329
1306
  finally {
1330
1307
  try {
@@ -1332,8 +1309,8 @@
1332
1309
  _a.call(keys_2);
1333
1310
  }
1334
1311
  finally {
1335
- if (e_4)
1336
- throw e_4.error;
1312
+ if (e_3)
1313
+ throw e_3.error;
1337
1314
  }
1338
1315
  }
1339
1316
  }
@@ -1390,7 +1367,7 @@
1390
1367
  * @return {?}
1391
1368
  */
1392
1369
  function (config, settings, reset) {
1393
- var e_5, _a;
1370
+ var e_4, _a;
1394
1371
  /** @type {?} */
1395
1372
  var findPersonControl = this.form ? this.form.get('findPersonControl') : null;
1396
1373
  this.form = this.fb.group({});
@@ -1463,8 +1440,8 @@
1463
1440
  _loop_1(field);
1464
1441
  }
1465
1442
  }
1466
- catch (e_5_1) {
1467
- e_5 = { error: e_5_1 };
1443
+ catch (e_4_1) {
1444
+ e_4 = { error: e_4_1 };
1468
1445
  }
1469
1446
  finally {
1470
1447
  try {
@@ -1472,8 +1449,8 @@
1472
1449
  _a.call(_b);
1473
1450
  }
1474
1451
  finally {
1475
- if (e_5)
1476
- throw e_5.error;
1452
+ if (e_4)
1453
+ throw e_4.error;
1477
1454
  }
1478
1455
  }
1479
1456
  };
@@ -1490,7 +1467,7 @@
1490
1467
  * @return {?}
1491
1468
  */
1492
1469
  function (field, settings) {
1493
- var e_6, _a;
1470
+ var e_5, _a;
1494
1471
  /** @type {?} */
1495
1472
  var validators = GenericFilterComponent.addFormValidators(field);
1496
1473
  /** @type {?} */
@@ -1520,8 +1497,8 @@
1520
1497
  _loop_2(option);
1521
1498
  }
1522
1499
  }
1523
- catch (e_6_1) {
1524
- e_6 = { error: e_6_1 };
1500
+ catch (e_5_1) {
1501
+ e_5 = { error: e_5_1 };
1525
1502
  }
1526
1503
  finally {
1527
1504
  try {
@@ -1529,8 +1506,8 @@
1529
1506
  _a.call(_b);
1530
1507
  }
1531
1508
  finally {
1532
- if (e_6)
1533
- throw e_6.error;
1509
+ if (e_5)
1510
+ throw e_5.error;
1534
1511
  }
1535
1512
  }
1536
1513
  return formArray;
@@ -1548,7 +1525,7 @@
1548
1525
  * @return {?}
1549
1526
  */
1550
1527
  function (field, settings) {
1551
- var e_7, _a;
1528
+ var e_6, _a;
1552
1529
  /** @type {?} */
1553
1530
  var validators = GenericFilterComponent.addFormValidators(field);
1554
1531
  /** @type {?} */
@@ -1567,8 +1544,8 @@
1567
1544
  formArray.push(new forms.FormControl(defaultValue));
1568
1545
  }
1569
1546
  }
1570
- catch (e_7_1) {
1571
- e_7 = { error: e_7_1 };
1547
+ catch (e_6_1) {
1548
+ e_6 = { error: e_6_1 };
1572
1549
  }
1573
1550
  finally {
1574
1551
  try {
@@ -1576,8 +1553,8 @@
1576
1553
  _a.call(_b);
1577
1554
  }
1578
1555
  finally {
1579
- if (e_7)
1580
- throw e_7.error;
1556
+ if (e_6)
1557
+ throw e_6.error;
1581
1558
  }
1582
1559
  }
1583
1560
  }
@@ -1632,7 +1609,7 @@
1632
1609
  * @return {?}
1633
1610
  */
1634
1611
  function (form) {
1635
- var e_8, _a;
1612
+ var e_7, _a;
1636
1613
  /** @type {?} */
1637
1614
  var errors = [];
1638
1615
  try {
@@ -1648,8 +1625,8 @@
1648
1625
  }
1649
1626
  }
1650
1627
  }
1651
- catch (e_8_1) {
1652
- e_8 = { error: e_8_1 };
1628
+ catch (e_7_1) {
1629
+ e_7 = { error: e_7_1 };
1653
1630
  }
1654
1631
  finally {
1655
1632
  try {
@@ -1657,8 +1634,8 @@
1657
1634
  _a.call(_b);
1658
1635
  }
1659
1636
  finally {
1660
- if (e_8)
1661
- throw e_8.error;
1637
+ if (e_7)
1638
+ throw e_7.error;
1662
1639
  }
1663
1640
  }
1664
1641
  if (errors.length) {
@@ -3783,79 +3760,6 @@
3783
3760
  return CookieBannerComponent;
3784
3761
  }());
3785
3762
 
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",
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
-
3859
3763
  /**
3860
3764
  * @fileoverview added by tsickle
3861
3765
  * Generated from: lib/services/locations/location.service.ts
@@ -3877,8 +3781,6 @@
3877
3781
  * @param {?} serviceIds
3878
3782
  * @param {?} locationType
3879
3783
  * @param {?} searchTerm
3880
- * @param {?} userLocations
3881
- * @param {?} bookingLocations
3882
3784
  * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
3883
3785
  */
3884
3786
  LocationService.prototype.getAllLocations = /**
@@ -3886,12 +3788,10 @@
3886
3788
  * @param {?} serviceIds
3887
3789
  * @param {?} locationType
3888
3790
  * @param {?} searchTerm
3889
- * @param {?} userLocations
3890
- * @param {?} bookingLocations
3891
3791
  * @return {?} Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
3892
3792
  */
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 });
3793
+ function (serviceIds, locationType, searchTerm) {
3794
+ return this.http.get("api/locations/getLocations?serviceIds=" + serviceIds + "&locationType=" + locationType + "&searchTerm=" + searchTerm);
3895
3795
  };
3896
3796
  /**
3897
3797
  * @description searchLocations from service Ids/location type/search term
@@ -3932,110 +3832,14 @@
3932
3832
  return LocationService;
3933
3833
  }());
3934
3834
 
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
-
4030
3835
  /**
4031
3836
  * @fileoverview added by tsickle
4032
3837
  * Generated from: lib/components/search-location/search-location.component.ts
4033
3838
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4034
3839
  */
4035
3840
  var SearchLocationComponent = /** @class */ (function () {
4036
- function SearchLocationComponent(locationService, sessionStorageService, fb, cd) {
3841
+ function SearchLocationComponent(locationService, fb, cd) {
4037
3842
  this.locationService = locationService;
4038
- this.sessionStorageService = sessionStorageService;
4039
3843
  this.fb = fb;
4040
3844
  this.cd = cd;
4041
3845
  this.disabled = null;
@@ -4187,23 +3991,7 @@
4187
3991
  * @return {?}
4188
3992
  */
4189
3993
  function (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);
3994
+ return this.locationService.getAllLocations(this.serviceIds, this.locationType, term);
4207
3995
  };
4208
3996
  /**
4209
3997
  * @return {?}
@@ -4250,7 +4038,6 @@
4250
4038
  SearchLocationComponent.ctorParameters = function () {
4251
4039
  return [
4252
4040
  { type: LocationService },
4253
- { type: SessionStorageService },
4254
4041
  { type: forms.FormBuilder },
4255
4042
  { type: i0.ChangeDetectorRef }
4256
4043
  ];
@@ -4266,7 +4053,6 @@
4266
4053
  form: [{ type: i0.Input }],
4267
4054
  showAutocomplete: [{ type: i0.Input }],
4268
4055
  locations: [{ type: i0.Input }],
4269
- bookingCheck: [{ type: i0.Input }],
4270
4056
  locationSelected: [{ type: i0.Output }],
4271
4057
  locationInputChanged: [{ type: i0.Output }],
4272
4058
  searchLocationChanged: [{ type: i0.Output }],
@@ -4346,19 +4132,6 @@
4346
4132
  enumerable: true,
4347
4133
  configurable: true
4348
4134
  });
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
- };
4362
4135
  /**
4363
4136
  * @return {?}
4364
4137
  */
@@ -4500,7 +4273,7 @@
4500
4273
  FindLocationComponent.decorators = [
4501
4274
  { type: i0.Component, args: [{
4502
4275
  selector: 'xuilib-find-location',
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",
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",
4504
4277
  styles: [""]
4505
4278
  }] }
4506
4279
  ];
@@ -4754,6 +4527,65 @@
4754
4527
  return ExuiPageWrapperComponent;
4755
4528
  }());
4756
4529
 
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
+ ALL: "All",
4569
+ };
4570
+ /** @enum {string} */
4571
+ var RoleCategory = {
4572
+ JUDICIAL: "JUDICIAL",
4573
+ CASEWORKER: "LEGAL_OPERATIONS",
4574
+ ADMIN: "ADMIN",
4575
+ ALL: "ALL",
4576
+ };
4577
+
4578
+ /**
4579
+ * @fileoverview added by tsickle
4580
+ * Generated from: lib/models/filter.model.ts
4581
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4582
+ */
4583
+ var RadioFilterFieldConfig = /** @class */ (function () {
4584
+ function RadioFilterFieldConfig() {
4585
+ }
4586
+ return RadioFilterFieldConfig;
4587
+ }());
4588
+
4757
4589
  /**
4758
4590
  * @fileoverview added by tsickle
4759
4591
  * Generated from: lib/gov-ui/util/session-storage/session-storage-utils.ts
@@ -4793,6 +4625,101 @@
4793
4625
  sessionStorageService.setItem(sessionKey, JSON.stringify(caseworkers));
4794
4626
  });
4795
4627
 
4628
+ /**
4629
+ * @fileoverview added by tsickle
4630
+ * Generated from: lib/services/session-storage/session-storage.service.ts
4631
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4632
+ */
4633
+ var SessionStorageService = /** @class */ (function () {
4634
+ function SessionStorageService() {
4635
+ }
4636
+ /**
4637
+ * Get an item from the session storage.
4638
+ * If remove is true, the item will be removed once read
4639
+ * @param removeAfterRead removed the key once it has been read
4640
+ */
4641
+ /**
4642
+ * Get an item from the session storage.
4643
+ * If remove is true, the item will be removed once read
4644
+ * @param {?} key
4645
+ * @param {?=} removeAfterRead removed the key once it has been read
4646
+ * @return {?}
4647
+ */
4648
+ SessionStorageService.prototype.getItem = /**
4649
+ * Get an item from the session storage.
4650
+ * If remove is true, the item will be removed once read
4651
+ * @param {?} key
4652
+ * @param {?=} removeAfterRead removed the key once it has been read
4653
+ * @return {?}
4654
+ */
4655
+ function (key, removeAfterRead) {
4656
+ if (removeAfterRead === void 0) {
4657
+ removeAfterRead = false;
4658
+ }
4659
+ /** @type {?} */
4660
+ var item = sessionStorage.getItem(key);
4661
+ if (removeAfterRead) {
4662
+ this.removeItem(key);
4663
+ }
4664
+ return item;
4665
+ };
4666
+ /**
4667
+ * Set an item in the session storage.
4668
+ */
4669
+ /**
4670
+ * Set an item in the session storage.
4671
+ * @param {?} key
4672
+ * @param {?} value
4673
+ * @return {?}
4674
+ */
4675
+ SessionStorageService.prototype.setItem = /**
4676
+ * Set an item in the session storage.
4677
+ * @param {?} key
4678
+ * @param {?} value
4679
+ * @return {?}
4680
+ */
4681
+ function (key, value) {
4682
+ sessionStorage.setItem(key, value);
4683
+ };
4684
+ /**
4685
+ * Remove an item in the session storage.
4686
+ */
4687
+ /**
4688
+ * Remove an item in the session storage.
4689
+ * @param {?} key
4690
+ * @return {?}
4691
+ */
4692
+ SessionStorageService.prototype.removeItem = /**
4693
+ * Remove an item in the session storage.
4694
+ * @param {?} key
4695
+ * @return {?}
4696
+ */
4697
+ function (key) {
4698
+ sessionStorage.removeItem(key);
4699
+ };
4700
+ /**
4701
+ * Clear all the items held in session storage.
4702
+ */
4703
+ /**
4704
+ * Clear all the items held in session storage.
4705
+ * @return {?}
4706
+ */
4707
+ SessionStorageService.prototype.clear = /**
4708
+ * Clear all the items held in session storage.
4709
+ * @return {?}
4710
+ */
4711
+ function () {
4712
+ sessionStorage.clear();
4713
+ };
4714
+ SessionStorageService.decorators = [
4715
+ { type: i0.Injectable, args: [{
4716
+ providedIn: 'root'
4717
+ },] }
4718
+ ];
4719
+ /** @nocollapse */ SessionStorageService.ngInjectableDef = i0.defineInjectable({ factory: function SessionStorageService_Factory() { return new SessionStorageService(); }, token: SessionStorageService, providedIn: "root" });
4720
+ return SessionStorageService;
4721
+ }());
4722
+
4796
4723
  /**
4797
4724
  * @fileoverview added by tsickle
4798
4725
  * Generated from: lib/services/find-person/find-person.service.ts
@@ -6660,8 +6587,7 @@
6660
6587
  HmctsSubNavigationComponent.decorators = [
6661
6588
  { type: i0.Component, args: [{
6662
6589
  selector: 'xuilib-hmcts-sub-navigation',
6663
- template: "<nav class=\"hmcts-sub-navigation\" attr.aria-label=\"{{label}}\" role=\"navigation\" *ngIf=\"items\">\n <ul class=\"hmcts-sub-navigation__list\">\n <li class=\"hmcts-sub-navigation__item\" *ngFor=\"let item of items\">\n <a data-selector=\"sub-nav-link\" class=\"hmcts-sub-navigation__link\" [routerLink]=\"item.href\"\n [attr.aria-current]=\"item.active ? 'page' : null\">\n {{item.text}}\n\n <span *ngIf=\"item.roundel && item.roundel > 0 \" class=\"xui-alert-link__number\"> {{item.roundel}} </span>\n </a>\n </li>\n </ul>\n</nav>\n",
6664
- styles: [".xui-alert-link__number{font-family:nta,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:.875rem;line-height:1.78571;border-radius:50%;background-color:#1d70b8;color:#fff;font-weight:700;width:25px;height:25px;margin-left:5px;text-align:center;display:inline-block;text-decoration:none}"]
6590
+ template: "<nav class=\"hmcts-sub-navigation\" attr.aria-label=\"{{label}}\" role=\"navigation\" *ngIf=\"items\">\n <ul class=\"hmcts-sub-navigation__list\">\n <li class=\"hmcts-sub-navigation__item\" *ngFor=\"let item of items\">\n <a data-selector=\"sub-nav-link\" class=\"hmcts-sub-navigation__link\" [routerLink]=\"item.href\"\n [attr.aria-current]=\"item.active ? 'page' : null\">\n {{item.text}}\n </a>\n </li>\n </ul>\n</nav>\n"
6665
6591
  }] }
6666
6592
  ];
6667
6593
  HmctsSubNavigationComponent.propDecorators = {
@@ -6794,11 +6720,12 @@
6794
6720
  i4.CommonModule,
6795
6721
  forms.FormsModule,
6796
6722
  forms.ReactiveFormsModule,
6797
- i2$2.RouterModule.forChild([]),
6723
+ i1$2.RouterModule.forChild([]),
6798
6724
  autocomplete.MatAutocompleteModule,
6799
6725
  material.MatTabsModule,
6800
6726
  material.MatInputModule,
6801
- ngxPagination.NgxPaginationModule
6727
+ ngxPagination.NgxPaginationModule,
6728
+ rpxXuiTranslation.RpxTranslationModule.forChild()
6802
6729
  ],
6803
6730
  providers: [
6804
6731
  { provide: windowToken, useFactory: ɵ0 }
@@ -7021,10 +6948,10 @@
7021
6948
  FeatureToggleGuard.ctorParameters = function () {
7022
6949
  return [
7023
6950
  { type: FeatureToggleService },
7024
- { type: i2$2.Router }
6951
+ { type: i1$2.Router }
7025
6952
  ];
7026
6953
  };
7027
- /** @nocollapse */ FeatureToggleGuard.ngInjectableDef = i0.defineInjectable({ factory: function FeatureToggleGuard_Factory() { return new FeatureToggleGuard(i0.inject(FeatureToggleService), i0.inject(i2$2.Router)); }, token: FeatureToggleGuard, providedIn: "root" });
6954
+ /** @nocollapse */ FeatureToggleGuard.ngInjectableDef = i0.defineInjectable({ factory: function FeatureToggleGuard_Factory() { return new FeatureToggleGuard(i0.inject(FeatureToggleService), i0.inject(i1$2.Router)); }, token: FeatureToggleGuard, providedIn: "root" });
7028
6955
  return FeatureToggleGuard;
7029
6956
  }());
7030
6957
 
@@ -7230,7 +7157,7 @@
7230
7157
  * @param {?} event
7231
7158
  * @return {?}
7232
7159
  */function (event) {
7233
- if (event instanceof i2$2.NavigationEnd) {
7160
+ if (event instanceof i1$2.NavigationEnd) {
7234
7161
  (( /** @type {?} */(_this.window))).gtag('config', _this.googleAnalyticsKey, {
7235
7162
  page_path: event.urlAfterRedirects,
7236
7163
  page_title: _this.title.getTitle(),
@@ -7260,13 +7187,13 @@
7260
7187
  /** @nocollapse */
7261
7188
  GoogleAnalyticsService.ctorParameters = function () {
7262
7189
  return [
7263
- { type: i2$2.Router },
7190
+ { type: i1$2.Router },
7264
7191
  { type: i2.Title },
7265
7192
  { type: undefined, decorators: [{ type: i0.Inject, args: [windowToken,] }] },
7266
7193
  { type: undefined, decorators: [{ type: i0.Inject, args: [i4.DOCUMENT,] }] }
7267
7194
  ];
7268
7195
  };
7269
- /** @nocollapse */ GoogleAnalyticsService.ngInjectableDef = i0.defineInjectable({ factory: function GoogleAnalyticsService_Factory() { return new GoogleAnalyticsService(i0.inject(i2$2.Router), i0.inject(i2.Title), i0.inject(windowToken), i0.inject(i4.DOCUMENT)); }, token: GoogleAnalyticsService, providedIn: "root" });
7196
+ /** @nocollapse */ GoogleAnalyticsService.ngInjectableDef = i0.defineInjectable({ factory: function GoogleAnalyticsService_Factory() { return new GoogleAnalyticsService(i0.inject(i1$2.Router), i0.inject(i2.Title), i0.inject(windowToken), i0.inject(i4.DOCUMENT)); }, token: GoogleAnalyticsService, providedIn: "root" });
7270
7197
  return GoogleAnalyticsService;
7271
7198
  }());
7272
7199
 
@@ -7325,7 +7252,7 @@
7325
7252
  * @param {?} event
7326
7253
  * @return {?}
7327
7254
  */function (event) {
7328
- if (event instanceof i2$2.NavigationEnd) {
7255
+ if (event instanceof i1$2.NavigationEnd) {
7329
7256
  (( /** @type {?} */(_this.window))).dataLayer.push({
7330
7257
  event: 'pageview',
7331
7258
  page: {
@@ -7361,13 +7288,13 @@
7361
7288
  /** @nocollapse */
7362
7289
  GoogleTagManagerService.ctorParameters = function () {
7363
7290
  return [
7364
- { type: i2$2.Router },
7291
+ { type: i1$2.Router },
7365
7292
  { type: i2.Title },
7366
7293
  { type: undefined, decorators: [{ type: i0.Inject, args: [windowToken,] }] },
7367
7294
  { type: undefined, decorators: [{ type: i0.Inject, args: [i4.DOCUMENT,] }] }
7368
7295
  ];
7369
7296
  };
7370
- /** @nocollapse */ GoogleTagManagerService.ngInjectableDef = i0.defineInjectable({ factory: function GoogleTagManagerService_Factory() { return new GoogleTagManagerService(i0.inject(i2$2.Router), i0.inject(i2.Title), i0.inject(windowToken), i0.inject(i4.DOCUMENT)); }, token: GoogleTagManagerService, providedIn: "root" });
7297
+ /** @nocollapse */ GoogleTagManagerService.ngInjectableDef = i0.defineInjectable({ factory: function GoogleTagManagerService_Factory() { return new GoogleTagManagerService(i0.inject(i1$2.Router), i0.inject(i2.Title), i0.inject(windowToken), i0.inject(i4.DOCUMENT)); }, token: GoogleTagManagerService, providedIn: "root" });
7371
7298
  return GoogleTagManagerService;
7372
7299
  }());
7373
7300
 
@@ -7693,10 +7620,10 @@
7693
7620
  RoleGuard.ctorParameters = function () {
7694
7621
  return [
7695
7622
  { type: RoleService },
7696
- { type: i2$2.Router }
7623
+ { type: i1$2.Router }
7697
7624
  ];
7698
7625
  };
7699
- /** @nocollapse */ RoleGuard.ngInjectableDef = i0.defineInjectable({ factory: function RoleGuard_Factory() { return new RoleGuard(i0.inject(RoleService), i0.inject(i2$2.Router)); }, token: RoleGuard, providedIn: "root" });
7626
+ /** @nocollapse */ RoleGuard.ngInjectableDef = i0.defineInjectable({ factory: function RoleGuard_Factory() { return new RoleGuard(i0.inject(RoleService), i0.inject(i1$2.Router)); }, token: RoleGuard, providedIn: "root" });
7700
7627
  return RoleGuard;
7701
7628
  }());
7702
7629
 
@@ -7852,7 +7779,6 @@
7852
7779
  exports.SECONDS_IN_A_DAY = SECONDS_IN_A_DAY;
7853
7780
  exports.AnonymousFeatureUser = AnonymousFeatureUser;
7854
7781
  exports.LoggedInFeatureUser = LoggedInFeatureUser;
7855
- exports.BookingCheckType = BookingCheckType;
7856
7782
  exports.PersonRole = PersonRole;
7857
7783
  exports.RoleCategory = RoleCategory;
7858
7784
  exports.RadioFilterFieldConfig = RadioFilterFieldConfig;