@hmcts/rpx-xui-common-lib 1.9.0-consume-jrd-e-links-api-new-version-v3 → 1.9.0-error-message-change
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-rpx-xui-common-lib.umd.js +494 -104
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/hmcts-rpx-xui-common-lib.js +27 -24
- package/esm2015/lib/components/cookie-banner/cookie-banner.component.js +2 -2
- package/esm2015/lib/components/find-service/find-service.component.js +2 -2
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +2 -2
- package/esm2015/lib/components/public_api.js +3 -1
- package/esm2015/lib/components/selected-case-confirm/selected-case-confirm.component.js +2 -2
- package/esm2015/lib/components/share-case/share-case.component.js +2 -2
- package/esm2015/lib/components/write-address/write-address.component.js +182 -0
- package/esm2015/lib/components/write-address-inputs/write-address-inputs.component.js +30 -0
- package/esm2015/lib/exui-common-lib.module.js +6 -2
- package/esm2015/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +2 -2
- package/esm2015/lib/models/address-message.enum.js +11 -0
- package/esm2015/lib/models/address-option.model.js +21 -0
- package/esm2015/lib/models/address.model.js +4 -0
- package/esm2015/lib/models/index.js +4 -1
- package/esm2015/lib/models/person.model.js +1 -1
- package/esm2015/lib/services/address/address-parser.js +76 -0
- package/esm2015/lib/services/address/address-type.enum.js +7 -0
- package/esm2015/lib/services/address/address.service.js +50 -0
- package/esm2015/lib/services/feature-toggle/feature-toggle.guard.js +3 -2
- package/esm2015/lib/services/public-api.js +2 -1
- package/fesm2015/hmcts-rpx-xui-common-lib.js +428 -59
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +26 -23
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/public_api.d.ts +2 -0
- package/lib/components/write-address/write-address.component.d.ts +42 -0
- package/lib/components/write-address-inputs/write-address-inputs.component.d.ts +13 -0
- package/lib/exui-common-lib.module.d.ts +2 -1
- package/lib/models/address-message.enum.d.ts +9 -0
- package/lib/models/address-option.model.d.ts +9 -0
- package/lib/models/address.model.d.ts +9 -0
- package/lib/models/index.d.ts +3 -0
- package/lib/models/person.model.d.ts +8 -7
- package/lib/services/address/address-parser.d.ts +17 -0
- package/lib/services/address/address-type.enum.d.ts +5 -0
- package/lib/services/address/address.service.d.ts +12 -0
- package/lib/services/feature-toggle/feature-toggle.guard.d.ts +1 -0
- package/lib/services/public-api.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('rxjs'), require('@angular/router'), require('rxjs/operators'), require('launchdarkly-js-client-sdk'), require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@hmcts/rpx-xui-common-lib', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'rxjs', '@angular/router', 'rxjs/operators', 'launchdarkly-js-client-sdk', '@angular/platform-browser', '@ng-idle/core', '@ng-idle/keepalive', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["rpx-xui-common-lib"] = {}), global.ng.core, global.ng.common, global.ng.forms, global.rxjs, global.ng.router, global.rxjs.operators, global.LDClient, global.ng.platformBrowser, global.i1$
|
|
5
|
-
})(this, (function (exports, i0, i4, forms, rxjs, i1, operators, LDClient,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('rxjs'), require('@angular/router'), require('rxjs/operators'), require('launchdarkly-js-client-sdk'), require('@angular/common/http'), require('@angular/platform-browser'), require('@ng-idle/core'), require('@ng-idle/keepalive'), require('rxjs/internal/observable/of'), require('@angular/material/autocomplete'), require('@angular/material/input'), require('@angular/material/tabs'), require('ngx-pagination'), require('rpx-xui-translation')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@hmcts/rpx-xui-common-lib', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'rxjs', '@angular/router', 'rxjs/operators', 'launchdarkly-js-client-sdk', '@angular/common/http', '@angular/platform-browser', '@ng-idle/core', '@ng-idle/keepalive', 'rxjs/internal/observable/of', '@angular/material/autocomplete', '@angular/material/input', '@angular/material/tabs', 'ngx-pagination', 'rpx-xui-translation'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["rpx-xui-common-lib"] = {}), global.ng.core, global.ng.common, global.ng.forms, global.rxjs, global.ng.router, global.rxjs.operators, global.LDClient, global.ng.common.http, global.ng.platformBrowser, global.i1$2, global.i2$1, global.rxjs["internal/observable/of"], global.ng.material.autocomplete, global.ng.material.input, global.ng.material.tabs, global.ngxPagination, global.rpxXuiTranslation));
|
|
5
|
+
})(this, (function (exports, i0, i4, forms, rxjs, i1, operators, LDClient, i1$1, i2, i1$2, i2$1, of, autocomplete, input, tabs, ngxPagination, rpxXuiTranslation) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
27
27
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
28
28
|
var LDClient__namespace = /*#__PURE__*/_interopNamespace(LDClient);
|
|
29
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
29
30
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
30
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$
|
|
31
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
31
32
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
32
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
33
33
|
|
|
34
34
|
var AccessibilityComponent = /** @class */ (function () {
|
|
35
35
|
function AccessibilityComponent() {
|
|
@@ -779,11 +779,12 @@
|
|
|
779
779
|
* in the data array for the route:
|
|
780
780
|
* - needsFeaturesEnabled: An array of feature keys that need to be enabled for this route
|
|
781
781
|
* - featureDisabledRedirect: the URL to redirect to when the this route is not accessible due to disabled features
|
|
782
|
+
* - expectFeatureEnabled: Sets whether a route should be enabled/disabled based on whether feature is present
|
|
782
783
|
* @param route Automatically provided by Angular
|
|
783
784
|
*/
|
|
784
785
|
FeatureToggleGuard.prototype.canActivate = function (route) {
|
|
785
786
|
var _this = this;
|
|
786
|
-
return rxjs.combineLatest
|
|
787
|
+
return rxjs.combineLatest(__spread(route.data.needsFeaturesEnabled.map(function (feature) { return _this.featureToggleService.getValueOnce(feature, false); }))).pipe(operators.map(function (featureStatuses) { return featureStatuses.every(function (status) { return status; }); }), operators.map(function (status) { return (route.data.expectFeatureEnabled !== false && status) || (route.data.expectFeatureEnabled === false && !status) || _this.router.parseUrl(route.data.featureDisabledRedirect); }));
|
|
787
788
|
};
|
|
788
789
|
return FeatureToggleGuard;
|
|
789
790
|
}());
|
|
@@ -857,6 +858,235 @@
|
|
|
857
858
|
},] }
|
|
858
859
|
];
|
|
859
860
|
|
|
861
|
+
exports.AddressMessageEnum = void 0;
|
|
862
|
+
(function (AddressMessageEnum) {
|
|
863
|
+
AddressMessageEnum["NO_OPTION_SELECTED"] = "Select an option";
|
|
864
|
+
AddressMessageEnum["NO_STREET_SELECTED"] = "Enter building and street";
|
|
865
|
+
AddressMessageEnum["NO_CITY_SELECTED"] = "Enter town or city";
|
|
866
|
+
AddressMessageEnum["NO_COUNTRY_SELECTED"] = "Enter country";
|
|
867
|
+
AddressMessageEnum["NO_POSTCODE_SELECTED"] = "Enter a valid postcode";
|
|
868
|
+
AddressMessageEnum["SELECT_ADDRESS"] = "Select an address";
|
|
869
|
+
AddressMessageEnum["INVALID_POSTCODE"] = "Enter valid postcode";
|
|
870
|
+
})(exports.AddressMessageEnum || (exports.AddressMessageEnum = {}));
|
|
871
|
+
|
|
872
|
+
var AddressOption = /** @class */ (function () {
|
|
873
|
+
function AddressOption(addressModel, description) {
|
|
874
|
+
if (description === null) {
|
|
875
|
+
this.value = addressModel;
|
|
876
|
+
this.description = this.getDescription();
|
|
877
|
+
}
|
|
878
|
+
else {
|
|
879
|
+
this.description = description;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
AddressOption.prototype.getDescription = function () {
|
|
883
|
+
return this.removeInitialCommaIfPresent("" + (this.value.addressLine1 === undefined ? '' : this.value.addressLine1) + this.prefixWithCommaIfPresent(this.value.addressLine2) + this.prefixWithCommaIfPresent(this.value.addressLine3) + ", " + this.value.postTown);
|
|
884
|
+
};
|
|
885
|
+
AddressOption.prototype.prefixWithCommaIfPresent = function (value) {
|
|
886
|
+
return value ? ", " + value : value;
|
|
887
|
+
};
|
|
888
|
+
AddressOption.prototype.removeInitialCommaIfPresent = function (value) {
|
|
889
|
+
return value.replace(new RegExp('^,', 'gi'), '');
|
|
890
|
+
};
|
|
891
|
+
return AddressOption;
|
|
892
|
+
}());
|
|
893
|
+
|
|
894
|
+
// tslint:disable:variable-name
|
|
895
|
+
var AddressModel = /** @class */ (function () {
|
|
896
|
+
function AddressModel() {
|
|
897
|
+
}
|
|
898
|
+
return AddressModel;
|
|
899
|
+
}());
|
|
900
|
+
|
|
901
|
+
exports.SharedCaseErrorMessages = void 0;
|
|
902
|
+
(function (SharedCaseErrorMessages) {
|
|
903
|
+
SharedCaseErrorMessages["OneCaseMustBeSelected"] = "At least one case must be selected";
|
|
904
|
+
SharedCaseErrorMessages["NoChangesRequested"] = "You have not requested any changes to case sharing";
|
|
905
|
+
SharedCaseErrorMessages["OnePersonMustBeAssigned"] = "At least one person must be assigned to each case";
|
|
906
|
+
})(exports.SharedCaseErrorMessages || (exports.SharedCaseErrorMessages = {}));
|
|
907
|
+
|
|
908
|
+
exports.BadgeColour = void 0;
|
|
909
|
+
(function (BadgeColour) {
|
|
910
|
+
BadgeColour["BADGE_RED"] = "hmcts-badge--red";
|
|
911
|
+
BadgeColour["BADGE_BLUE"] = "hmcts-badge--blue";
|
|
912
|
+
BadgeColour["BADGE_GREEN"] = "hmcts-badge--green";
|
|
913
|
+
})(exports.BadgeColour || (exports.BadgeColour = {}));
|
|
914
|
+
|
|
915
|
+
var AnonymousFeatureUser = /** @class */ (function () {
|
|
916
|
+
function AnonymousFeatureUser() {
|
|
917
|
+
}
|
|
918
|
+
return AnonymousFeatureUser;
|
|
919
|
+
}());
|
|
920
|
+
var LoggedInFeatureUser = /** @class */ (function () {
|
|
921
|
+
function LoggedInFeatureUser() {
|
|
922
|
+
}
|
|
923
|
+
return LoggedInFeatureUser;
|
|
924
|
+
}());
|
|
925
|
+
|
|
926
|
+
var RadioFilterFieldConfig = /** @class */ (function () {
|
|
927
|
+
function RadioFilterFieldConfig() {
|
|
928
|
+
}
|
|
929
|
+
return RadioFilterFieldConfig;
|
|
930
|
+
}());
|
|
931
|
+
|
|
932
|
+
exports.BookingCheckType = void 0;
|
|
933
|
+
(function (BookingCheckType) {
|
|
934
|
+
BookingCheckType["NO_CHECK"] = "NO_CHECK";
|
|
935
|
+
BookingCheckType["BOOKINGS_AND_BASE"] = "BOOKINGS_AND_BASE";
|
|
936
|
+
BookingCheckType["POSSIBLE_BOOKINGS"] = "POSSIBLE_BOOKINGS";
|
|
937
|
+
})(exports.BookingCheckType || (exports.BookingCheckType = {}));
|
|
938
|
+
|
|
939
|
+
exports.PersonRole = void 0;
|
|
940
|
+
(function (PersonRole) {
|
|
941
|
+
PersonRole["JUDICIAL"] = "Judicial";
|
|
942
|
+
PersonRole["CASEWORKER"] = "Legal Ops";
|
|
943
|
+
PersonRole["ADMIN"] = "Admin";
|
|
944
|
+
PersonRole["CTSC"] = "CTSC";
|
|
945
|
+
PersonRole["ALL"] = "All";
|
|
946
|
+
})(exports.PersonRole || (exports.PersonRole = {}));
|
|
947
|
+
// Note: RoleCategory could replace PersonRole possibly
|
|
948
|
+
// However a lot of webapp logic is based on current PersonRole understanding
|
|
949
|
+
exports.RoleCategory = void 0;
|
|
950
|
+
(function (RoleCategory) {
|
|
951
|
+
RoleCategory["JUDICIAL"] = "JUDICIAL";
|
|
952
|
+
RoleCategory["CASEWORKER"] = "LEGAL_OPERATIONS";
|
|
953
|
+
RoleCategory["ADMIN"] = "ADMIN";
|
|
954
|
+
RoleCategory["CTSC"] = "CTSC";
|
|
955
|
+
RoleCategory["ALL"] = "ALL";
|
|
956
|
+
})(exports.RoleCategory || (exports.RoleCategory = {}));
|
|
957
|
+
|
|
958
|
+
var AddressType;
|
|
959
|
+
(function (AddressType) {
|
|
960
|
+
AddressType["DPA"] = "DPA";
|
|
961
|
+
AddressType["UK"] = "United Kingdom";
|
|
962
|
+
AddressType["RD06"] = "RD06";
|
|
963
|
+
})(AddressType || (AddressType = {}));
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Moving all this logic here into Address Parser class, so that it
|
|
967
|
+
* will be easier for us when we move this parsing logic to into
|
|
968
|
+
* `Shim` java service.
|
|
969
|
+
*/
|
|
970
|
+
var AddressParser = /** @class */ (function () {
|
|
971
|
+
function AddressParser() {
|
|
972
|
+
}
|
|
973
|
+
AddressParser.prototype.parse = function (address) {
|
|
974
|
+
var classification = "" + address.CLASSIFICATION_CODE;
|
|
975
|
+
var addressModel = new AddressModel();
|
|
976
|
+
addressModel.addressLine1 = this.parseAddressLine1(classification, address);
|
|
977
|
+
addressModel.addressLine2 = this.parseAddressLine2(classification, address);
|
|
978
|
+
addressModel.addressLine3 = this.parseAddressLine3(classification, address);
|
|
979
|
+
addressModel.postCode = address.POSTCODE;
|
|
980
|
+
addressModel.postTown = address.POST_TOWN;
|
|
981
|
+
addressModel.country = AddressType.UK;
|
|
982
|
+
return addressModel;
|
|
983
|
+
};
|
|
984
|
+
AddressParser.prototype.parseAddressLine1 = function (classification, address) {
|
|
985
|
+
var addressLine;
|
|
986
|
+
if (classification === AddressType.RD06) {
|
|
987
|
+
addressLine =
|
|
988
|
+
address.SUB_BUILDING_NAME + " " + address.ORGANISATION_NAME + " " + address.DEPARTMENT_NAME + " " + address.PO_BOX_NUMBER;
|
|
989
|
+
}
|
|
990
|
+
else {
|
|
991
|
+
addressLine =
|
|
992
|
+
"" + address.ORGANISATION_NAME + this.prefixWithCommaIfPresent(address.BUILDING_NAME) +
|
|
993
|
+
(address.DEPARTMENT_NAME + " " + address.PO_BOX_NUMBER);
|
|
994
|
+
}
|
|
995
|
+
return this.removeNonAddressValues(addressLine);
|
|
996
|
+
};
|
|
997
|
+
AddressParser.prototype.parseAddressLine2 = function (classification, address) {
|
|
998
|
+
var addressLine;
|
|
999
|
+
if (classification === AddressType.RD06) {
|
|
1000
|
+
addressLine = address.BUILDING_NAME + " ";
|
|
1001
|
+
}
|
|
1002
|
+
else {
|
|
1003
|
+
addressLine =
|
|
1004
|
+
address.SUB_BUILDING_NAME + " " + address.BUILDING_NUMBER + " " + address.THOROUGHFARE_NAME;
|
|
1005
|
+
}
|
|
1006
|
+
return this.removeNonAddressValues(addressLine);
|
|
1007
|
+
};
|
|
1008
|
+
AddressParser.prototype.parseAddressLine3 = function (classification, address) {
|
|
1009
|
+
var addressLine;
|
|
1010
|
+
if (classification === AddressType.RD06) {
|
|
1011
|
+
addressLine =
|
|
1012
|
+
address.BUILDING_NUMBER + " " + address.THOROUGHFARE_NAME;
|
|
1013
|
+
}
|
|
1014
|
+
else {
|
|
1015
|
+
addressLine =
|
|
1016
|
+
address.DEPENDENT_LOCALITY + " " + address.DOUBLE_DEPENDENT_LOCALITY + " " + address.DEPENDENT_THOROUGHFARE_NAME;
|
|
1017
|
+
}
|
|
1018
|
+
return this.removeNonAddressValues(addressLine);
|
|
1019
|
+
};
|
|
1020
|
+
AddressParser.prototype.removeNonAddressValues = function (line) {
|
|
1021
|
+
line = line.replace(' null', ' ').replace('null ', ' ');
|
|
1022
|
+
line = this.removeUndefinedString(line);
|
|
1023
|
+
line = this.removeInitialComma(line);
|
|
1024
|
+
line = this.removeEmptySpaces(line);
|
|
1025
|
+
return line;
|
|
1026
|
+
};
|
|
1027
|
+
AddressParser.prototype.removeUndefinedString = function (value) {
|
|
1028
|
+
return value.replace(new RegExp('undefined', 'gi'), '');
|
|
1029
|
+
};
|
|
1030
|
+
AddressParser.prototype.removeEmptySpaces = function (value) {
|
|
1031
|
+
return value.replace(new RegExp(' +', 'gi'), ' ').trim();
|
|
1032
|
+
};
|
|
1033
|
+
AddressParser.prototype.removeInitialComma = function (value) {
|
|
1034
|
+
return value.replace(new RegExp('^,', 'gi'), '');
|
|
1035
|
+
};
|
|
1036
|
+
AddressParser.prototype.prefixWithCommaIfPresent = function (value) {
|
|
1037
|
+
return value ? ", " + value : value;
|
|
1038
|
+
};
|
|
1039
|
+
return AddressParser;
|
|
1040
|
+
}());
|
|
1041
|
+
|
|
1042
|
+
var AddressService = /** @class */ (function () {
|
|
1043
|
+
function AddressService(http) {
|
|
1044
|
+
this.http = http;
|
|
1045
|
+
}
|
|
1046
|
+
AddressService.prototype.getAddressesForPostcode = function (postcode) {
|
|
1047
|
+
var _this = this;
|
|
1048
|
+
return this.http
|
|
1049
|
+
.get('/external/addresses?postcode=${postcode}'.replace('${postcode}', postcode), undefined)
|
|
1050
|
+
.pipe(operators.map(function (res) { return res.results; }))
|
|
1051
|
+
.pipe(operators.map(function (output) { return output ? output.map(function (addresses) { return _this.format(new AddressParser().parse(addresses[AddressType.DPA])); }) : []; }));
|
|
1052
|
+
};
|
|
1053
|
+
AddressService.prototype.format = function (addressModel) {
|
|
1054
|
+
return this.formatAddressLines(this.shiftAddressLinesUp(addressModel));
|
|
1055
|
+
};
|
|
1056
|
+
AddressService.prototype.formatAddressLines = function (addressModel) {
|
|
1057
|
+
var _this = this;
|
|
1058
|
+
['addressLine1', 'addressLine2', 'addressLine3', 'postTown'].forEach(function (value) {
|
|
1059
|
+
addressModel[value] = _this.toCapitalCase(addressModel[value]);
|
|
1060
|
+
});
|
|
1061
|
+
return addressModel;
|
|
1062
|
+
};
|
|
1063
|
+
AddressService.prototype.shiftAddressLinesUp = function (addressModel) {
|
|
1064
|
+
if (addressModel.addressLine2 === '') {
|
|
1065
|
+
addressModel.addressLine2 = addressModel.addressLine3;
|
|
1066
|
+
addressModel.addressLine3 = '';
|
|
1067
|
+
}
|
|
1068
|
+
if (addressModel.addressLine1 === '') {
|
|
1069
|
+
addressModel.addressLine1 = addressModel.addressLine2;
|
|
1070
|
+
addressModel.addressLine2 = '';
|
|
1071
|
+
}
|
|
1072
|
+
return addressModel;
|
|
1073
|
+
};
|
|
1074
|
+
AddressService.prototype.toCapitalCase = function (sentence) {
|
|
1075
|
+
sentence = sentence.toLowerCase();
|
|
1076
|
+
sentence.split(' ').forEach(function (value) {
|
|
1077
|
+
sentence = sentence.replace(value, value.charAt(0).toUpperCase() + value.substr(1));
|
|
1078
|
+
});
|
|
1079
|
+
return sentence;
|
|
1080
|
+
};
|
|
1081
|
+
return AddressService;
|
|
1082
|
+
}());
|
|
1083
|
+
AddressService.decorators = [
|
|
1084
|
+
{ type: i0.Injectable }
|
|
1085
|
+
];
|
|
1086
|
+
AddressService.ctorParameters = function () { return [
|
|
1087
|
+
{ type: i1$1.HttpClient }
|
|
1088
|
+
]; };
|
|
1089
|
+
|
|
860
1090
|
var windowToken = new i0.InjectionToken('Window');
|
|
861
1091
|
function windowProvider() { return window; }
|
|
862
1092
|
|
|
@@ -988,7 +1218,7 @@
|
|
|
988
1218
|
var _this = this;
|
|
989
1219
|
this.idle.setIdleName(idleConfig.idleServiceName);
|
|
990
1220
|
this.idle.setTimeout(idleConfig.timeout);
|
|
991
|
-
var interrupt = new i1$
|
|
1221
|
+
var interrupt = new i1$2.DocumentInterruptSource('mousedown keydown DOMMouseScroll mousewheel touchstart touchmove scroll');
|
|
992
1222
|
this.idle.setInterrupts([interrupt]);
|
|
993
1223
|
// adding delay so that user can click on sign out before the modal shuts
|
|
994
1224
|
this.idle.onIdleEnd.pipe(operators.delay(250)).subscribe(function () {
|
|
@@ -1020,7 +1250,7 @@
|
|
|
1020
1250
|
},] }
|
|
1021
1251
|
];
|
|
1022
1252
|
ManageSessionServices.ctorParameters = function () { return [
|
|
1023
|
-
{ type: i1$
|
|
1253
|
+
{ type: i1$2.Idle },
|
|
1024
1254
|
{ type: i2$1.Keepalive }
|
|
1025
1255
|
]; };
|
|
1026
1256
|
|
|
@@ -1077,8 +1307,8 @@
|
|
|
1077
1307
|
var idleModalDisplayTimeInSeconds = this.millisecondsToSeconds(idleModalDisplayTime);
|
|
1078
1308
|
var totalIdleTimeInSeconds = this.millisecondsToSeconds(totalIdleTime);
|
|
1079
1309
|
this.idle.setTimeout(idleModalDisplayTimeInSeconds);
|
|
1080
|
-
var docInterrupts = new i1$
|
|
1081
|
-
var windowInterrupts = new i1$
|
|
1310
|
+
var docInterrupts = new i1$2.DocumentInterruptSource(DOCUMENT_INTERRUPTS);
|
|
1311
|
+
var windowInterrupts = new i1$2.WindowInterruptSource(DOCUMENT_INTERRUPTS);
|
|
1082
1312
|
this.idle.setInterrupts([docInterrupts, windowInterrupts]);
|
|
1083
1313
|
this.subs.push(this.idle.onTimeout.subscribe(function () {
|
|
1084
1314
|
_this.eventEmitter.next({ eventType: SIGNOUT_EVENT });
|
|
@@ -1119,7 +1349,7 @@
|
|
|
1119
1349
|
},] }
|
|
1120
1350
|
];
|
|
1121
1351
|
TimeoutNotificationsService.ctorParameters = function () { return [
|
|
1122
|
-
{ type: i1$
|
|
1352
|
+
{ type: i1$2.Idle },
|
|
1123
1353
|
{ type: i2$1.Keepalive }
|
|
1124
1354
|
]; };
|
|
1125
1355
|
|
|
@@ -1373,7 +1603,7 @@
|
|
|
1373
1603
|
return this.http.get(RefDataDataAccessService.refDataUrl + "/regions");
|
|
1374
1604
|
};
|
|
1375
1605
|
RefDataDataAccessService.prototype.getLocationsByServiceCode = function (serviceCode) {
|
|
1376
|
-
var httpParams = new i1$
|
|
1606
|
+
var httpParams = new i1$1.HttpParams()
|
|
1377
1607
|
.append('service_code', serviceCode);
|
|
1378
1608
|
return this.http.get(RefDataDataAccessService.refDataUrl + "/locations-by-service-code", { params: httpParams });
|
|
1379
1609
|
};
|
|
@@ -1390,7 +1620,7 @@
|
|
|
1390
1620
|
},] }
|
|
1391
1621
|
];
|
|
1392
1622
|
RefDataDataAccessService.ctorParameters = function () { return [
|
|
1393
|
-
{ type: i1$
|
|
1623
|
+
{ type: i1$1.HttpClient }
|
|
1394
1624
|
]; };
|
|
1395
1625
|
|
|
1396
1626
|
var RefDataService = /** @class */ (function () {
|
|
@@ -2176,7 +2406,7 @@
|
|
|
2176
2406
|
GenericFilterComponent.decorators = [
|
|
2177
2407
|
{ type: i0.Component, args: [{
|
|
2178
2408
|
selector: 'xuilib-generic-filter',
|
|
2179
|
-
template: "<form [formGroup]=\"form\" (ngSubmit)=\"applyFilter(form)\">\n <div class=\"contain-classes\" *ngFor=\"let field of config.fields\">\n <hr *ngIf=\"field.lineBreakBefore\" class=\"govuk-section-break govuk-section-break--visible elevated-break\">\n <ng-container [ngSwitch]=\"field.type\">\n <ng-container *ngSwitchCase=\"'group-title'\">\n <div [class]=\"field.titleClasses ? field.titleClasses: 'govuk-label govuk-label--m govuk-!-margin-bottom-4'\">\n {{ field.name | capitalize }}\n </div>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <div class=\"govuk-form-group xui-generic-filter\"\n [hidden]=\"hidden(field, form)\"\n [id]=\"field.name\"\n [ngClass]=\"{'form-group-error': submitted && (form.get(field.name).errors?.required || form.get(field.name).errors?.minlength || form.get(field.name).errors?.maxLength)}\">\n <div *ngIf=\"field.title\" class=\"xui-generic-filter__field-title\">\n <h3 [class]=\"field.titleClasses ? field.titleClasses : 'govuk-heading-s'\" style=\"margin-bottom: 0!important\">\n {{field.title | capitalize}}\n </h3>\n <div *ngIf=\"field?.titleHint\" class=\"govuk-!-margin-left-2\">\n {{ field.titleHint }}\n </div>\n </div>\n <p class=\"govuk-body\" *ngIf=\"field.subTitle\">{{field.subTitle}}</p>\n <div *ngIf=\"field.hintText\"\n [id]=\"field.hintText + '-hint'\" class=\"govuk-hint\">\n {{ field.hintText | rpxTranslate }}\n </div>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMinSelectedError && submitted && (form.get(field.name).errors?.required || form.get(field.name).errors?.minlength)\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate}}</span> {{field.minSelectedError | rpxTranslate }}\n </span>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMaxSelectedError && submitted && form.get(field.name).errors?.maxLength\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate}}</span> {{field.maxSelectedError | rpxTranslate }}\n </span>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\"\n *ngIf=\"field.emailError && submitted && form.get(field.name).errors?.email\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }}</span> {{field.emailError | rpxTranslate }}\n </span>\n <div class=\"govuk-body\" [class.govuk-body--maxWidth480px]=\"field.maxWidth480px\" [ngSwitch]=\"field.type\">\n <ng-container *ngSwitchCase=\"'select'\">\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n <option *ngIf=\"field.defaultOption\" [attr.selected]=\"true\" [value]=\"field.defaultOption.key\">{{field.defaultOption.label}}</option>\n <option class=\"govuk-radios__item\" *ngFor=\"let item of field.options\" [value]=\"item.key\">{{item.label}}</option>\n </select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'group-select'\">\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n <option *ngIf=\"field.defaultOption\" selected [value]=\"field.defaultOption.key\">{{field.defaultOption.label}}</option>\n <optgroup *ngFor = 'let grp of filteredSkillsByServices' label=\"{{grp.group | titlecase}}\">\n <option *ngFor = 'let item of grp.options' [value]=\"item.key\">{{item.label}}</option>\n </optgroup>\n </select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'nested-checkbox'\">\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of filteredSkillsByServicesCheckbox; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'nested-checkbox'\">\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of filteredSkillsByServicesCheckbox; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label | rpxTranslate}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox-large'\">\n <div class=\"govuk-checkboxes\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label | rpxTranslate}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'radio'\">\n <div class=\"govuk-radios\">\n <div *ngFor=\"let item of field.options\" class=\"govuk-radios__item\">\n <input type=\"radio\"\n [formControlName]=\"field.name\"\n [id]=\"'radio_' + item.key\"\n [attr.disabled]=\"disabled(field, form)\"\n [checked]=\"item.key === form.get(field.name).value\"\n class=\"govuk-radios__input\"\n [value]=\"item.key\"\n (change)=\"fieldChanged(field, form)\"\n />\n <label [for]=\"'radio_' + item.key\" class=\"govuk-label govuk-radios__label\">{{item.label | rpxTranslate}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-person'\">\n <xuilib-find-person subTitle=\"\" (personSelected)=\"updatePersonControls($event, field)\"\n (personFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findPersonGroup]=\"form\"\n [selectedPerson]=\"form.get(field.name)?.value?.email\"\n [userIncluded]=\"false\"\n [placeholderContent]=\"field.placeholderContent ? field.placeholderContent : ''\"\n [services]=\"form.get(field.servicesField)?.value\"\n ></xuilib-find-person>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-location'\">\n <xuilib-find-location (locationFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [fields]=\"config.fields\"\n [locationTitle]=\"field.locationTitle\"\n [enableAddLocationButton]=\"field.enableAddButton\"\n [disabled]=\"disabled(field, form)\"\n [disableInputField]=\"field.disable\"\n [submitted]=\"submitted\"\n [field]=\"field\"\n [services]=\"form.get(field.findLocationField)?.value\"\n [formSubmissionEvent$]=\"formSubmissionEvent$\"\n ></xuilib-find-location>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-task-name'\">\n <xuilib-find-task-name subTitle=\"\" (taskNameSelected)=\"updateTaskNameControls($event, field)\"\n (taskNameFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findTaskNameGroup]=\"form\"\n [selectedTaskName]=\"form.get(field.name)?.value?.task_type_name\"\n [placeholderContent]=\"field.placeholderContent ? field.placeholderContent : ''\"\n [services]=\"form.get(field.servicesField)?.value\"\n ></xuilib-find-task-name>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-service'\">\n <xuilib-find-service (serviceFieldChanged)=\"inputServiceChanged(field)\"\n [field]=\"field\"\n [form]=\"form\"\n [formSubmissionEvent$]=\"formSubmissionEvent$\"\n [disabled]=\"disabled(field, form)\">\n </xuilib-find-service>\n </ng-container>\n <ng-container *ngSwitchCase=\"'text-input'\">\n <input class=\"govuk-input\" type=\"text\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n [attr.maxlength]=\"field.maxlength ? field.maxlength : null\"\n [readonly]=\"field.readonly\"\n />\n </ng-container>\n <ng-container *ngSwitchCase=\"'email-input'\">\n <input class=\"govuk-input\" type=\"email\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n [readonly]=\"field.readonly\"\n />\n </ng-container>\n </div>\n </div>\n </ng-container>\n</ng-container>\n </div>\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\"/>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <button\n class=\"govuk-button govuk-!-margin-right-1 govuk-!-margin-bottom-0\"\n type=\"submit\"\n id=\"applyFilter\"\n [disabled]=\"config.enableDisabledButton && form.invalid\"\n >{{(config.applyButtonText || 'Apply') | rpxTranslate}}</button>\n <button *ngIf=\"config.showCancelFilterButton\"\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\"\n type=\"button\"\n id=\"cancelFilter\"\n (click)=\"cancelFilter()\">{{ (config.cancelButtonText || 'Cancel') | rpxTranslate}}</button>\n </div>\n </div>\n</form>\n",
|
|
2409
|
+
template: "<form [formGroup]=\"form\" (ngSubmit)=\"applyFilter(form)\">\n <div class=\"contain-classes\" *ngFor=\"let field of config.fields\">\n <hr *ngIf=\"field.lineBreakBefore\" class=\"govuk-section-break govuk-section-break--visible elevated-break\">\n <ng-container [ngSwitch]=\"field.type\">\n <ng-container *ngSwitchCase=\"'group-title'\">\n <div [class]=\"field.titleClasses ? field.titleClasses: 'govuk-label govuk-label--m govuk-!-margin-bottom-4'\">\n {{ field.name | capitalize }}\n </div>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <div class=\"govuk-form-group xui-generic-filter\"\n [hidden]=\"hidden(field, form)\"\n [id]=\"field.name\"\n [ngClass]=\"{'form-group-error': submitted && (form.get(field.name).errors?.required || form.get(field.name).errors?.minlength || form.get(field.name).errors?.maxLength)}\">\n <div *ngIf=\"field.title\" class=\"xui-generic-filter__field-title\">\n <h3 [class]=\"field.titleClasses ? field.titleClasses : 'govuk-heading-s'\" style=\"margin-bottom: 0!important\">\n {{field.title | capitalize}}\n </h3>\n <div *ngIf=\"field?.titleHint\" class=\"govuk-!-margin-left-2\">\n {{ field.titleHint }}\n </div>\n </div>\n <p class=\"govuk-body\" *ngIf=\"field.subTitle\">{{field.subTitle}}</p>\n <div *ngIf=\"field.hintText\"\n [id]=\"field.hintText + '-hint'\" class=\"govuk-hint\">\n {{ field.hintText | rpxTranslate }}\n </div>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMinSelectedError && submitted && (form.get(field.name).errors?.required || form.get(field.name).errors?.minlength)\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate}}</span> {{field.minSelectedError | rpxTranslate }}\n </span>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\" *ngIf=\"field.displayMaxSelectedError && submitted && form.get(field.name).errors?.maxLength\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate}}</span> {{field.maxSelectedError | rpxTranslate }}\n </span>\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\"\n *ngIf=\"field.emailError && submitted && form.get(field.name).errors?.email\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }}</span> {{field.emailError | rpxTranslate }}\n </span>\n <div class=\"govuk-body\" [class.govuk-body--maxWidth480px]=\"field.maxWidth480px\" [ngSwitch]=\"field.type\">\n <ng-container *ngSwitchCase=\"'select'\">\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n <option *ngIf=\"field.defaultOption\" [attr.selected]=\"true\" [value]=\"field.defaultOption.key\">{{field.defaultOption.label}}</option>\n <option class=\"govuk-radios__item\" *ngFor=\"let item of field.options\" [value]=\"item.key\">{{item.label}}</option>\n </select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'group-select'\">\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n <option *ngIf=\"field.defaultOption\" selected [value]=\"field.defaultOption.key\">{{field.defaultOption.label}}</option>\n <optgroup *ngFor = 'let grp of filteredSkillsByServices' label=\"{{grp.group | titlecase}}\">\n <option *ngFor = 'let item of grp.options' [value]=\"item.key\">{{item.label}}</option>\n </optgroup>\n </select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'nested-checkbox'\">\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of filteredSkillsByServicesCheckbox; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label | rpxTranslate}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'checkbox-large'\">\n <div class=\"govuk-checkboxes\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n <div *ngFor=\"let item of field.options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label | rpxTranslate}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'radio'\">\n <div class=\"govuk-radios\">\n <div *ngFor=\"let item of field.options\" class=\"govuk-radios__item\">\n <input type=\"radio\"\n [formControlName]=\"field.name\"\n [id]=\"'radio_' + item.key\"\n [attr.disabled]=\"disabled(field, form)\"\n [checked]=\"item.key === form.get(field.name).value\"\n class=\"govuk-radios__input\"\n [value]=\"item.key\"\n (change)=\"fieldChanged(field, form)\"\n />\n <label [for]=\"'radio_' + item.key\" class=\"govuk-label govuk-radios__label\">{{item.label | rpxTranslate}}</label>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-person'\">\n <xuilib-find-person subTitle=\"\" (personSelected)=\"updatePersonControls($event, field)\"\n (personFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findPersonGroup]=\"form\"\n [selectedPerson]=\"form.get(field.name)?.value?.email\"\n [userIncluded]=\"false\"\n [placeholderContent]=\"field.placeholderContent ? field.placeholderContent : ''\"\n [services]=\"form.get(field.servicesField)?.value\"\n ></xuilib-find-person>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-location'\">\n <xuilib-find-location (locationFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [fields]=\"config.fields\"\n [locationTitle]=\"field.locationTitle\"\n [enableAddLocationButton]=\"field.enableAddButton\"\n [disabled]=\"disabled(field, form)\"\n [disableInputField]=\"field.disable\"\n [submitted]=\"submitted\"\n [field]=\"field\"\n [services]=\"form.get(field.findLocationField)?.value\"\n [formSubmissionEvent$]=\"formSubmissionEvent$\"\n ></xuilib-find-location>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-task-name'\">\n <xuilib-find-task-name subTitle=\"\" (taskNameSelected)=\"updateTaskNameControls($event, field)\"\n (taskNameFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findTaskNameGroup]=\"form\"\n [selectedTaskName]=\"form.get(field.name)?.value?.task_type_name\"\n [placeholderContent]=\"field.placeholderContent ? field.placeholderContent : ''\"\n [services]=\"form.get(field.servicesField)?.value\"\n ></xuilib-find-task-name>\n </ng-container>\n <ng-container *ngSwitchCase=\"'find-service'\">\n <xuilib-find-service (serviceFieldChanged)=\"inputServiceChanged(field)\"\n [field]=\"field\"\n [form]=\"form\"\n [formSubmissionEvent$]=\"formSubmissionEvent$\"\n [disabled]=\"disabled(field, form)\">\n </xuilib-find-service>\n </ng-container>\n <ng-container *ngSwitchCase=\"'text-input'\">\n <input class=\"govuk-input\" type=\"text\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n [attr.maxlength]=\"field.maxlength ? field.maxlength : null\"\n [readonly]=\"field.readonly\"\n />\n </ng-container>\n <ng-container *ngSwitchCase=\"'email-input'\">\n <input class=\"govuk-input\" type=\"email\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n [readonly]=\"field.readonly\"\n />\n </ng-container>\n </div>\n </div>\n </ng-container>\n</ng-container>\n </div>\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\"/>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <button\n class=\"govuk-button govuk-!-margin-right-1 govuk-!-margin-bottom-0\"\n type=\"submit\"\n id=\"applyFilter\"\n [disabled]=\"config.enableDisabledButton && form.invalid\"\n >{{(config.applyButtonText || 'Apply') | rpxTranslate}}</button>\n <button *ngIf=\"config.showCancelFilterButton\"\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\"\n type=\"button\"\n id=\"cancelFilter\"\n (click)=\"cancelFilter()\">{{ (config.cancelButtonText || 'Cancel') | rpxTranslate}}</button>\n </div>\n </div>\n</form>\n",
|
|
2180
2410
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2181
2411
|
encapsulation: i0.ViewEncapsulation.None,
|
|
2182
2412
|
styles: [".contain-classes .elevated-break{margin-bottom:20px}@media (min-width:40.0625em){.contain-classes .elevated-break{margin-bottom:30px}}.contain-classes .govuk-body--maxWidth480px{max-width:480px}.contain-classes .xui-generic-filter .select-all{margin-bottom:10px}.contain-classes .xui-generic-filter .govuk-checkboxes{display:flex;flex-direction:column;flex-wrap:wrap}.contain-classes .xui-generic-filter .govuk-checkboxes>div{flex-grow:1;flex-shrink:0}.contain-classes .xui-generic-filter__field-title{display:flex;align-items:center;margin-bottom:10px}.contain-classes .govuk-select{width:100%}"]
|
|
@@ -2512,7 +2742,7 @@
|
|
|
2512
2742
|
SelectedCaseConfirmComponent.decorators = [
|
|
2513
2743
|
{ type: i0.Component, args: [{
|
|
2514
2744
|
selector: 'xuilib-selected-case-confirm',
|
|
2515
|
-
template: "<div id=\"user-access-block-{{ sharedCase.caseId }}\" *ngIf=\"showUserAccessBlock()\">\n <h2 class=\"govuk-heading-m case-share-confirm__title\">{{ sharedCase.caseTitle }}</h2>\n <div class=\"case-share-confirm__caption-area\">\n <div class=\"govuk-caption-m case-share-confirm__caption\">\n {{ sharedCase.caseId }}\n </div>\n <a [routerLink]=\"changeLink\" class=\"case-share-confirm__change-link govuk-link govuk-!-font-size-19\"
|
|
2745
|
+
template: "<div id=\"user-access-block-{{ sharedCase.caseId }}\" *ngIf=\"showUserAccessBlock()\">\n <h2 class=\"govuk-heading-m case-share-confirm__title\">{{ sharedCase.caseTitle }}</h2>\n <div class=\"case-share-confirm__caption-area\">\n <div class=\"govuk-caption-m case-share-confirm__caption\">\n {{ sharedCase.caseId }}\n </div>\n <a [routerLink]=\"changeLink\" class=\"case-share-confirm__change-link govuk-link govuk-!-font-size-19\">{{'Change' | rpxTranslate}}</a>\n </div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">{{'Name' | rpxTranslate}}</th>\n <th class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">{{'Email address' | rpxTranslate}}</th>\n <th class=\"govuk-table__header govuk-table-column-actions\" scope=\"col\">{{'Actions' | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let user of sharedCase.pendingShares; trackBy: trackByUserId\">\n <td class=\"govuk-table__cell\">{{ user.firstName + ' ' + user.lastName }}</td>\n <td class=\"govuk-table__cell\">{{ user.email }}</td>\n <td class=\"govuk-table__cell\">\n <span class=\"hmcts-badge\">{{'To be added' | rpxTranslate}}</span>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngFor=\"let user of sharedCase.pendingUnshares; trackBy: trackByUserId\">\n <td class=\"govuk-table__cell\">{{ user.firstName + ' ' + user.lastName }}</td>\n <td class=\"govuk-table__cell\">{{ user.email }}</td>\n <td class=\"govuk-table__cell\">\n <span class=\"hmcts-badge hmcts-badge--red\">\n {{'To be removed' | rpxTranslate}}\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n",
|
|
2516
2746
|
styles: [".case-share-confirm__title{margin-bottom:0}.case-share-confirm__caption-area{border-bottom:1px solid #b1b4b6;padding-bottom:10px;display:inline-block;width:100%;clear:both}.case-share-confirm__caption{float:left}.case-share-confirm__change-link{float:right}.govuk-table-column-header{width:45%}.govuk-table-column-actions{width:10%}"]
|
|
2517
2747
|
},] }
|
|
2518
2748
|
];
|
|
@@ -2875,13 +3105,6 @@
|
|
|
2875
3105
|
completeLink: [{ type: i0.Input }]
|
|
2876
3106
|
};
|
|
2877
3107
|
|
|
2878
|
-
exports.SharedCaseErrorMessages = void 0;
|
|
2879
|
-
(function (SharedCaseErrorMessages) {
|
|
2880
|
-
SharedCaseErrorMessages["OneCaseMustBeSelected"] = "At least one case must be selected";
|
|
2881
|
-
SharedCaseErrorMessages["NoChangesRequested"] = "You have not requested any changes to case sharing";
|
|
2882
|
-
SharedCaseErrorMessages["OnePersonMustBeAssigned"] = "At least one person must be assigned to each case";
|
|
2883
|
-
})(exports.SharedCaseErrorMessages || (exports.SharedCaseErrorMessages = {}));
|
|
2884
|
-
|
|
2885
3108
|
var UserSelectComponent = /** @class */ (function () {
|
|
2886
3109
|
function UserSelectComponent() {
|
|
2887
3110
|
this.selected = new i0.EventEmitter();
|
|
@@ -3139,7 +3362,7 @@
|
|
|
3139
3362
|
ShareCaseComponent.decorators = [
|
|
3140
3363
|
{ type: i0.Component, args: [{
|
|
3141
3364
|
selector: 'xuilib-share-case',
|
|
3142
|
-
template: "<xuilib-hmcts-error-summary\n [errorMessages]=\"validationErrors\"\n [header]=\"'There is a problem'\"\n></xuilib-hmcts-error-summary>\n<h1 *ngIf=\"title\" class=\"govuk-heading-xl govuk-!-margin-top-2\">\n <span *ngIf=\"fnTitle\" class=\"govuk-caption-xl\">{{fnTitle | rpxTranslate}}</span>\n {{title | rpxTranslate}}\n</h1>\n<div id=\"add-user\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-!-font-weight-bold\" for=\"add-user-input\">{{addUserLabel | rpxTranslate}}</label>\n <span id=\"add-user-hint\" class=\"govuk-hint\">\n {{'Search by name or email address. You can share access with as many people as you need.' | rpxTranslate}}\n </span>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <xuilib-user-select\n id=\"add-user-input\"\n aria-describedby=\"add-user-hint\"\n [users]=\"users\"\n (selected)=\"onSelectedUser($event)\">\n </xuilib-user-select>\n </div>\n <div class=\"govuk-grid-column-one-thirds\">\n <button id=\"btn-add-user\" (click)=\"addUser()\"\n class=\"govuk-button govuk-button--secondary\" [disabled]=\"isDisabledAdd()\"\n title=\"{{'Add user to selected cases' | rpxTranslate}}\">\n {{'Add' | rpxTranslate}}\n
|
|
3365
|
+
template: "<xuilib-hmcts-error-summary\n [errorMessages]=\"validationErrors\"\n [header]=\"'There is a problem'\"\n></xuilib-hmcts-error-summary>\n<h1 *ngIf=\"title\" class=\"govuk-heading-xl govuk-!-margin-top-2\">\n <span *ngIf=\"fnTitle\" class=\"govuk-caption-xl\">{{fnTitle | rpxTranslate}}</span>\n {{title | rpxTranslate}}\n</h1>\n<div id=\"add-user\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-!-font-weight-bold\" for=\"add-user-input\">{{addUserLabel | rpxTranslate}}</label>\n <span id=\"add-user-hint\" class=\"govuk-hint\">\n {{'Search by name or email address. You can share access with as many people as you need.' | rpxTranslate}}\n </span>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <xuilib-user-select\n id=\"add-user-input\"\n aria-describedby=\"add-user-hint\"\n [users]=\"users\"\n (selected)=\"onSelectedUser($event)\">\n </xuilib-user-select>\n </div>\n <div class=\"govuk-grid-column-one-thirds\">\n <button id=\"btn-add-user\" (click)=\"addUser()\"\n class=\"govuk-button govuk-button--secondary\" [disabled]=\"isDisabledAdd()\"\n title=\"{{'Add user to selected cases' | rpxTranslate}}\">\n {{'Add' | rpxTranslate}}\n </button>\n </div>\n </div>\n <details id=\"add-user-help\" class=\"govuk-details\" data-module=\"govuk-details\">\n <summary class=\"govuk-details__summary\">\n <span id=\"content-why-can-not-find-email\" class=\"govuk-details__summary-text\">\n {{\"Can't find an email address?\" | rpxTranslate}}\n </span>\n </summary>\n <div id=\"content-reason-can-not-find-email\" class=\"govuk-details__text\">\n {{\"If you can't find your colleague's email address, they will need to complete their registration. Contact your administrator for help.\" | rpxTranslate}}\n </div>\n </details>\n </div>\n <div class=\"govuk-form-group\" *ngIf=\"showRemoveUsers\">\n <label class=\"govuk-label govuk-!-font-weight-bold\" for=\"remove-user-input\">\n {{'Remove a person from all cases' | rpxTranslate}}\n </label>\n <span id=\"remove-user-hint\" class=\"govuk-hint\">\n {{'Select a person to remove them from all selected cases.' | rpxTranslate}}\n </span>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <select [(ngModel)]=\"selectedUserToRemove\" class=\"govuk-select\" id=\"remove-user-input\" aria-describedby=\"remove-user-hint\">\n <option [ngValue]=\"null\" selected>Select a person</option>\n <option *ngFor=\"let user of assignedUsers\" [ngValue]=\"user\">{{user.firstName}} {{user.lastName}} - {{user.email}}</option>\n </select>\n </div>\n <div class=\"govuk-grid-column-one-thirds\">\n <button id=\"btn-remove-user\" (click)=\"removeUser()\" class=\"govuk-button govuk-button--secondary\" title=\"{{'Remove user from selected cases' | rpxTranslate}}\">\n {{'Remove' | rpxTranslate}}\n </button>\n </div>\n </div>\n </div>\n</div>\n\n<div id=\"cases\" [ngClass]=\"{'govuk-form-group--error': shareCaseErrorMessage.messages && shareCaseErrorMessage.messages.length > 0}\">\n <h3 id=\"title-selected-cases\" class=\"govuk-heading-m\">\n {{'Selected cases' | rpxTranslate}}\n </h3>\n <xuilib-gov-uk-error-message [config]=\"selectedCasesErrorMessageConfig\" [errorMessage]=\"shareCaseErrorMessage\"></xuilib-gov-uk-error-message>\n <div *ngIf=\"shareCases && shareCases.length > 0\" class=\"govuk-accordion\" data-module=\"govuk-accordion\" id=\"accordion-with-summary-sections\">\n <xuilib-selected-case-list\n [shareCases$]=\"shareCases$\"\n [removeUserFromCaseToggleOn]=\"removeUserFromCaseToggleOn\"\n (unselect)=\"onUnselect($event)\"\n (synchronizeStore)=\"onSynchronizeStore($event)\"\n >\n </xuilib-selected-case-list>\n </div>\n\n <div id=\"noCaseDisplay\" *ngIf=\"shareCases && shareCases.length === 0\" class=\"govuk-hint\"\n [ngClass]=\"{'govuk-form-group--error': shareCaseErrorMessage.messages && shareCaseErrorMessage.messages.length > 0}\">\n {{'No cases to display.' | rpxTranslate}}\n </div>\n\n</div>\n\n<div id=\"share-case-nav\" class=\"govuk-button-group\">\n <button id=\"btn-continue\" class=\"govuk-button\" data-module=\"govuk-button\" (click)=\"onContinue()\" title=\"{{'Continue' | rpxTranslate}}\">\n {{'Continue' | rpxTranslate}}\n </button>\n <button id=\"btn-cancel\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\" title=\"{{'Cancel' | rpxTranslate}}\" [routerLink]=\"cancelLink\">\n {{'Cancel' | rpxTranslate}}\n </button>\n</div>\n",
|
|
3143
3366
|
styles: ["select{width:100%}"]
|
|
3144
3367
|
},] }
|
|
3145
3368
|
];
|
|
@@ -3377,7 +3600,7 @@
|
|
|
3377
3600
|
CookieBannerComponent.decorators = [
|
|
3378
3601
|
{ type: i0.Component, args: [{
|
|
3379
3602
|
selector: 'xuilib-cookie-banner',
|
|
3380
|
-
template: "<div class=\"govuk-cookie-banner \" role=\"region\" attr.aria-label=\"'Cookies on {{appName}}'\" *ngIf=\"isCookieBannerVisible\">\n <div class=\"govuk-cookie-banner__message govuk-width-container\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h2 class=\"govuk-cookie-banner__heading govuk-heading-m\">{{'Cookies on' | rpxTranslate}} {{appName | rpxTranslate}}</h2>\n\n <div class=\"govuk-cookie-banner__content\">\n <p>{{'We use some essential cookies to make this service work.' | rpxTranslate}}</p>\n <p>{{'We
|
|
3603
|
+
template: "<div class=\"govuk-cookie-banner \" role=\"region\" attr.aria-label=\"'Cookies on {{appName}}'\" *ngIf=\"isCookieBannerVisible\">\n <div class=\"govuk-cookie-banner__message govuk-width-container\">\n\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h2 class=\"govuk-cookie-banner__heading govuk-heading-m\">{{'Cookies on' | rpxTranslate}} {{appName | rpxTranslate}}</h2>\n\n <div class=\"govuk-cookie-banner__content\">\n <p>{{'We use some essential cookies to make this service work.' | rpxTranslate}}</p>\n <p>{{'We\\\u2019d also like to use analytics cookies so we can understand how you use the service and make improvements.' | rpxTranslate}}</p>\n </div>\n </div>\n </div>\n\n <div class=\"govuk-button-group\">\n <button value=\"accept\" type=\"button\" name=\"cookies\" class=\"govuk-button\" data-module=\"govuk-button\" (click)=\"acceptCookie()\">\n {{'Accept analytics cookies' | rpxTranslate}}\n </button>\n <button value=\"reject\" type=\"button\" name=\"cookies\" class=\"govuk-button\" data-module=\"govuk-button\" (click)=\"rejectCookie()\">\n {{'Reject analytics cookies' | rpxTranslate}}\n </button>\n <a class=\"govuk-link\" routerLink=\"/cookies\">{{'View cookies' | rpxTranslate}}</a>\n </div>\n </div>\n</div>\n"
|
|
3381
3604
|
},] }
|
|
3382
3605
|
];
|
|
3383
3606
|
CookieBannerComponent.ctorParameters = function () { return [
|
|
@@ -3540,7 +3763,7 @@
|
|
|
3540
3763
|
FindServiceComponent.decorators = [
|
|
3541
3764
|
{ type: i0.Component, args: [{
|
|
3542
3765
|
selector: 'xuilib-find-service',
|
|
3543
|
-
template: "<div class=\"service-picker-custom\">\n <div class=\"search-service\">\n <div class=\"govuk-body\">\n <label id=\"selectServiceSearch-label\" for=\"serviceSearch__select\" *ngIf=\"serviceTitle\">\n {{ serviceTitle | rpxTranslate}}\n </label>\n </div>\n <div class=\"search-service__input-container\">\n <exui-search-service class=\"search-service__input\"\n [options]=\"field.options\"\n [selectedOptions]=\"selectedServices\"\n [disabled]=\"disabled\"\n (optionChanged)=\"onOptionSelected($event)\">\n </exui-search-service>\n <a href=\"javascript:void(0)\" (click)=\"addOption(tempSelectedService)\"\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\" data-module=\"govuk-button\"\n *ngIf=\"field?.enableAddButton\" id=\"add-service\">\n {{ 'Add' | rpxTranslate}}\n
|
|
3766
|
+
template: "<div class=\"service-picker-custom\">\n <div class=\"search-service\">\n <div class=\"govuk-body\">\n <label id=\"selectServiceSearch-label\" for=\"serviceSearch__select\" *ngIf=\"serviceTitle\">\n {{ serviceTitle | rpxTranslate}}\n </label>\n </div>\n <div class=\"search-service__input-container\">\n <exui-search-service class=\"search-service__input\"\n [options]=\"field.options\"\n [selectedOptions]=\"selectedServices\"\n [disabled]=\"disabled\"\n (optionChanged)=\"onOptionSelected($event)\">\n </exui-search-service>\n <a href=\"javascript:void(0)\" (click)=\"addOption(tempSelectedService)\"\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\" data-module=\"govuk-button\"\n *ngIf=\"field?.enableAddButton\" id=\"add-service\">\n {{ 'Add' | rpxTranslate}}\n </a>\n </div>\n </div>\n <ul class=\"hmcts-filter-tags selection-container\" *ngIf=\"field.maxSelected != 1\">\n <li class=\"location-selection\" *ngFor=\"let selection of selectedServices\">\n <a class=\"hmcts-filter__tag\" (click)=\"removeOption(selection)\" href=\"javascript:void(0)\">\n {{ selection.label | rpxTranslate }}\n </a>\n </li>\n </ul>\n</div>\n",
|
|
3544
3767
|
styles: ["#add-service{background-color:#ddd}"]
|
|
3545
3768
|
},] }
|
|
3546
3769
|
];
|
|
@@ -3554,56 +3777,6 @@
|
|
|
3554
3777
|
serviceFieldChanged: [{ type: i0.Output }]
|
|
3555
3778
|
};
|
|
3556
3779
|
|
|
3557
|
-
exports.BadgeColour = void 0;
|
|
3558
|
-
(function (BadgeColour) {
|
|
3559
|
-
BadgeColour["BADGE_RED"] = "hmcts-badge--red";
|
|
3560
|
-
BadgeColour["BADGE_BLUE"] = "hmcts-badge--blue";
|
|
3561
|
-
BadgeColour["BADGE_GREEN"] = "hmcts-badge--green";
|
|
3562
|
-
})(exports.BadgeColour || (exports.BadgeColour = {}));
|
|
3563
|
-
|
|
3564
|
-
var AnonymousFeatureUser = /** @class */ (function () {
|
|
3565
|
-
function AnonymousFeatureUser() {
|
|
3566
|
-
}
|
|
3567
|
-
return AnonymousFeatureUser;
|
|
3568
|
-
}());
|
|
3569
|
-
var LoggedInFeatureUser = /** @class */ (function () {
|
|
3570
|
-
function LoggedInFeatureUser() {
|
|
3571
|
-
}
|
|
3572
|
-
return LoggedInFeatureUser;
|
|
3573
|
-
}());
|
|
3574
|
-
|
|
3575
|
-
var RadioFilterFieldConfig = /** @class */ (function () {
|
|
3576
|
-
function RadioFilterFieldConfig() {
|
|
3577
|
-
}
|
|
3578
|
-
return RadioFilterFieldConfig;
|
|
3579
|
-
}());
|
|
3580
|
-
|
|
3581
|
-
exports.BookingCheckType = void 0;
|
|
3582
|
-
(function (BookingCheckType) {
|
|
3583
|
-
BookingCheckType["NO_CHECK"] = "NO_CHECK";
|
|
3584
|
-
BookingCheckType["BOOKINGS_AND_BASE"] = "BOOKINGS_AND_BASE";
|
|
3585
|
-
BookingCheckType["POSSIBLE_BOOKINGS"] = "POSSIBLE_BOOKINGS";
|
|
3586
|
-
})(exports.BookingCheckType || (exports.BookingCheckType = {}));
|
|
3587
|
-
|
|
3588
|
-
exports.PersonRole = void 0;
|
|
3589
|
-
(function (PersonRole) {
|
|
3590
|
-
PersonRole["JUDICIAL"] = "Judicial";
|
|
3591
|
-
PersonRole["CASEWORKER"] = "Legal Ops";
|
|
3592
|
-
PersonRole["ADMIN"] = "Admin";
|
|
3593
|
-
PersonRole["CTSC"] = "CTSC";
|
|
3594
|
-
PersonRole["ALL"] = "All";
|
|
3595
|
-
})(exports.PersonRole || (exports.PersonRole = {}));
|
|
3596
|
-
// Note: RoleCategory could replace PersonRole possibly
|
|
3597
|
-
// However a lot of webapp logic is based on current PersonRole understanding
|
|
3598
|
-
exports.RoleCategory = void 0;
|
|
3599
|
-
(function (RoleCategory) {
|
|
3600
|
-
RoleCategory["JUDICIAL"] = "JUDICIAL";
|
|
3601
|
-
RoleCategory["CASEWORKER"] = "LEGAL_OPERATIONS";
|
|
3602
|
-
RoleCategory["ADMIN"] = "ADMIN";
|
|
3603
|
-
RoleCategory["CTSC"] = "CTSC";
|
|
3604
|
-
RoleCategory["ALL"] = "ALL";
|
|
3605
|
-
})(exports.RoleCategory || (exports.RoleCategory = {}));
|
|
3606
|
-
|
|
3607
3780
|
var LocationService = /** @class */ (function () {
|
|
3608
3781
|
function LocationService(http) {
|
|
3609
3782
|
this.http = http;
|
|
@@ -3637,7 +3810,7 @@
|
|
|
3637
3810
|
},] }
|
|
3638
3811
|
];
|
|
3639
3812
|
LocationService.ctorParameters = function () { return [
|
|
3640
|
-
{ type: i1$
|
|
3813
|
+
{ type: i1$1.HttpClient }
|
|
3641
3814
|
]; };
|
|
3642
3815
|
|
|
3643
3816
|
var SessionStorageService = /** @class */ (function () {
|
|
@@ -4269,7 +4442,7 @@
|
|
|
4269
4442
|
},] }
|
|
4270
4443
|
];
|
|
4271
4444
|
FindAPersonService.ctorParameters = function () { return [
|
|
4272
|
-
{ type: i1$
|
|
4445
|
+
{ type: i1$1.HttpClient },
|
|
4273
4446
|
{ type: SessionStorageService }
|
|
4274
4447
|
]; };
|
|
4275
4448
|
|
|
@@ -4551,7 +4724,7 @@
|
|
|
4551
4724
|
},] }
|
|
4552
4725
|
];
|
|
4553
4726
|
TaskNameService.ctorParameters = function () { return [
|
|
4554
|
-
{ type: i1$
|
|
4727
|
+
{ type: i1$1.HttpClient },
|
|
4555
4728
|
{ type: SessionStorageService }
|
|
4556
4729
|
]; };
|
|
4557
4730
|
|
|
@@ -4678,6 +4851,213 @@
|
|
|
4678
4851
|
fnTitle: [{ type: i0.Input }]
|
|
4679
4852
|
};
|
|
4680
4853
|
|
|
4854
|
+
var WriteAddressFieldComponent = /** @class */ (function () {
|
|
4855
|
+
function WriteAddressFieldComponent(addressesService) {
|
|
4856
|
+
this.addressesService = addressesService;
|
|
4857
|
+
this.internationalMode = false;
|
|
4858
|
+
this.submissionAttempted = false;
|
|
4859
|
+
this.addressChosen = false;
|
|
4860
|
+
this.postcodeOptionSelected = new i0.EventEmitter();
|
|
4861
|
+
this.internationalModeStart = new i0.EventEmitter();
|
|
4862
|
+
this.ukAddressOptionSelected = new i0.EventEmitter();
|
|
4863
|
+
// indicated what error to display to user
|
|
4864
|
+
this.canSelectAddress = new i0.EventEmitter();
|
|
4865
|
+
// tells parent to reset submission attempted field
|
|
4866
|
+
// only relevant to when user re-clicks find address
|
|
4867
|
+
this.resetSubmission = new i0.EventEmitter();
|
|
4868
|
+
this.addressField = {
|
|
4869
|
+
addressLine1: '',
|
|
4870
|
+
addressLine2: '',
|
|
4871
|
+
addressLine3: '',
|
|
4872
|
+
postCode: '',
|
|
4873
|
+
postTown: '',
|
|
4874
|
+
country: '',
|
|
4875
|
+
county: ''
|
|
4876
|
+
};
|
|
4877
|
+
this.optionErrorsPresent = false;
|
|
4878
|
+
this.addressSelectable = false;
|
|
4879
|
+
this.missingPostcode = false;
|
|
4880
|
+
this.optionErrorMessage = exports.AddressMessageEnum.NO_OPTION_SELECTED;
|
|
4881
|
+
this.postcodeErrorMessage = exports.AddressMessageEnum.NO_POSTCODE_SELECTED;
|
|
4882
|
+
this.selectErrorMessage = exports.AddressMessageEnum.SELECT_ADDRESS;
|
|
4883
|
+
}
|
|
4884
|
+
WriteAddressFieldComponent.prototype.ngOnInit = function () {
|
|
4885
|
+
if (!this.formGroup.get('address')) {
|
|
4886
|
+
this.formGroup.addControl('address', new forms.FormControl({}));
|
|
4887
|
+
}
|
|
4888
|
+
// set the form group relevant to only the external parent component
|
|
4889
|
+
this.addressFormGroup = new forms.FormGroup({
|
|
4890
|
+
// relevant to international mode
|
|
4891
|
+
ukAddress: new forms.FormControl(this.isInternational !== undefined ? (this.isInternational ? 'no' : 'yes') : null),
|
|
4892
|
+
// relevant to postocode lookup
|
|
4893
|
+
postcode: new forms.FormControl(''),
|
|
4894
|
+
addressList: new forms.FormControl('')
|
|
4895
|
+
});
|
|
4896
|
+
this.setPostcodeForm();
|
|
4897
|
+
};
|
|
4898
|
+
WriteAddressFieldComponent.prototype.findAddress = function () {
|
|
4899
|
+
var _this = this;
|
|
4900
|
+
this.resetSubmission.emit();
|
|
4901
|
+
if (!this.addressFormGroup.get('postcode').value) {
|
|
4902
|
+
this.missingPostcode = true;
|
|
4903
|
+
this.canSelectAddress.emit(false);
|
|
4904
|
+
}
|
|
4905
|
+
else {
|
|
4906
|
+
this.missingPostcode = false;
|
|
4907
|
+
this.addressField = null;
|
|
4908
|
+
var postcode_1 = this.addressFormGroup.get('postcode').value;
|
|
4909
|
+
this.addressOptions = [];
|
|
4910
|
+
this.addressesService.getAddressesForPostcode(postcode_1.replace(' ', '').toUpperCase()).subscribe(function (result) {
|
|
4911
|
+
result.forEach(function (address) {
|
|
4912
|
+
_this.addressOptions.push(new AddressOption(address, null));
|
|
4913
|
+
});
|
|
4914
|
+
_this.addressOptions.unshift(new AddressOption(undefined, _this.defaultLabel(_this.addressOptions.length)));
|
|
4915
|
+
}, function (error) {
|
|
4916
|
+
// Edited this so that errors not produced if there are no results for a postcode
|
|
4917
|
+
console.log("An error occurred retrieving addresses for postcode " + postcode_1 + ". " + error);
|
|
4918
|
+
_this.addressOptions.unshift(new AddressOption(undefined, _this.defaultLabel(_this.addressOptions.length)));
|
|
4919
|
+
});
|
|
4920
|
+
this.addressFormGroup.get('addressList').setValue(undefined);
|
|
4921
|
+
}
|
|
4922
|
+
};
|
|
4923
|
+
WriteAddressFieldComponent.prototype.blankAddress = function () {
|
|
4924
|
+
this.setFormValue();
|
|
4925
|
+
this.resetSubmission.emit();
|
|
4926
|
+
if (this.internationalMode) {
|
|
4927
|
+
this.internationalModeStart.emit();
|
|
4928
|
+
}
|
|
4929
|
+
};
|
|
4930
|
+
WriteAddressFieldComponent.prototype.shouldShowDetailFields = function () {
|
|
4931
|
+
if (!this.formGroup.get('address')) {
|
|
4932
|
+
return false;
|
|
4933
|
+
}
|
|
4934
|
+
var address = this.formGroup.get('address').value;
|
|
4935
|
+
var hasAddress = false;
|
|
4936
|
+
if (address) {
|
|
4937
|
+
Object.keys(address).forEach(function (key) {
|
|
4938
|
+
if (address[key] !== null) {
|
|
4939
|
+
hasAddress = true;
|
|
4940
|
+
}
|
|
4941
|
+
});
|
|
4942
|
+
}
|
|
4943
|
+
return hasAddress;
|
|
4944
|
+
};
|
|
4945
|
+
WriteAddressFieldComponent.prototype.addressSelected = function () {
|
|
4946
|
+
this.missingPostcode = false;
|
|
4947
|
+
this.addressField = this.addressFormGroup.get('addressList').value;
|
|
4948
|
+
this.addressChosen = true;
|
|
4949
|
+
this.setFormValue();
|
|
4950
|
+
this.postcodeOptionSelected.emit();
|
|
4951
|
+
};
|
|
4952
|
+
WriteAddressFieldComponent.prototype.ngOnChanges = function (changes) {
|
|
4953
|
+
var addressChange = changes['addressField'];
|
|
4954
|
+
var internationalChange = changes['isInternational'];
|
|
4955
|
+
if (addressChange) {
|
|
4956
|
+
this.setFormValue();
|
|
4957
|
+
}
|
|
4958
|
+
if (internationalChange && this.addressFormGroup && this.addressFormGroup.get('ukAddress')) {
|
|
4959
|
+
this.addressFormGroup.get('ukAddress').patchValue(this.isInternational ? 'no' : 'yes');
|
|
4960
|
+
}
|
|
4961
|
+
if (!this.addressChosen && this.addressFormGroup && this.addressFormGroup.get('addressList')) {
|
|
4962
|
+
// resets address options on internal back
|
|
4963
|
+
this.addressFormGroup.get('addressList').patchValue(undefined);
|
|
4964
|
+
}
|
|
4965
|
+
this.checkIfErrorsNeeded();
|
|
4966
|
+
};
|
|
4967
|
+
WriteAddressFieldComponent.prototype.checkIfErrorsNeeded = function () {
|
|
4968
|
+
if (this.submissionAttempted && this.internationalMode && !this.postcodeLookupVisible()) {
|
|
4969
|
+
// ensure errors present when submission attmempted on international radio buttons
|
|
4970
|
+
this.optionErrorsPresent = true;
|
|
4971
|
+
this.optionErrorMessage = exports.AddressMessageEnum.NO_OPTION_SELECTED;
|
|
4972
|
+
}
|
|
4973
|
+
else {
|
|
4974
|
+
this.optionErrorsPresent = false;
|
|
4975
|
+
}
|
|
4976
|
+
if (this.optionErrorsPresent && (this.addressChosen || this.isInternational !== undefined)) {
|
|
4977
|
+
// ensure parent errors not present when the child form group is present
|
|
4978
|
+
this.optionErrorsPresent = false;
|
|
4979
|
+
}
|
|
4980
|
+
};
|
|
4981
|
+
WriteAddressFieldComponent.prototype.setInternationalAddress = function (isInternational) {
|
|
4982
|
+
this.isInternational = isInternational;
|
|
4983
|
+
this.ukAddressOptionSelected.emit(this.isInternational);
|
|
4984
|
+
};
|
|
4985
|
+
WriteAddressFieldComponent.prototype.postcodeErrorPresent = function (isPostcodeField) {
|
|
4986
|
+
var checkForField = isPostcodeField ? !this.addressSelectable : this.addressSelectable;
|
|
4987
|
+
return this.submissionAttempted && checkForField;
|
|
4988
|
+
};
|
|
4989
|
+
WriteAddressFieldComponent.prototype.postcodeLookupVisible = function () {
|
|
4990
|
+
return !this.shouldShowDetailFields() || (!this.startedInternational && !this.addressChosen);
|
|
4991
|
+
};
|
|
4992
|
+
WriteAddressFieldComponent.prototype.defaultLabel = function (numberOfAddresses) {
|
|
4993
|
+
this.addressSelectable = numberOfAddresses > 0 ? true : false;
|
|
4994
|
+
this.canSelectAddress.emit(this.addressSelectable);
|
|
4995
|
+
return numberOfAddresses === 0 ? 'No address found'
|
|
4996
|
+
: "" + numberOfAddresses + (numberOfAddresses === 1 ? ' address ' : ' addresses ') + "found";
|
|
4997
|
+
};
|
|
4998
|
+
WriteAddressFieldComponent.prototype.setFormValue = function () {
|
|
4999
|
+
if (this.formGroup) {
|
|
5000
|
+
this.formGroup.get('address').patchValue(this.addressField);
|
|
5001
|
+
}
|
|
5002
|
+
};
|
|
5003
|
+
WriteAddressFieldComponent.prototype.setPostcodeForm = function () {
|
|
5004
|
+
var postcodeNeeded = this.isInternational === undefined && this.formGroup.get('address') && this.formGroup.get('address').get('postCode');
|
|
5005
|
+
this.addressFormGroup.get('postcode').patchValue(postcodeNeeded ? this.formGroup.get('address').get('postCode').value : '');
|
|
5006
|
+
};
|
|
5007
|
+
return WriteAddressFieldComponent;
|
|
5008
|
+
}());
|
|
5009
|
+
WriteAddressFieldComponent.decorators = [
|
|
5010
|
+
{ type: i0.Component, args: [{
|
|
5011
|
+
selector: 'xuilib-write-address-field',
|
|
5012
|
+
template: "<div class=\"govuk-form-group\" [formGroup]=\"addressFormGroup\" [ngClass]=\"{'govuk-form-group--error': optionErrorsPresent}\">\n <p class=\"govuk-error-message\" *ngIf=\"optionErrorsPresent\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{optionErrorMessage}}\n </p>\n <div *ngIf=\"postcodeLookupVisible()\">\n <span class=\"govuk-label\"><b>Provide address details</b></span>\n <div class=\"govuk-body postcodeLookup\" id=\"addressLookup\" [ngClass]=\"{'govuk-form-group--error': missingPostcode || postcodeErrorPresent(true)}\">\n <p class=\"govuk-error-message\" *ngIf=\"missingPostcode || postcodeErrorPresent(true)\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{postcodeErrorMessage}}\n </p>\n <label for=\"postcodeInput\">\n <span class=\"govuk-hint\">Enter a UK postcode</span>\n </label>\n <div class=\"govuk-body\">\n <input type=\"text\" [ngClass]=\"{'govuk-input--error': missingPostcode}\" id=\"postcodeInput\" name=\"postcode\"\n class=\"govuk-input govuk-!-width-two-thirds postcodeinput inline-block\" formControlName=\"postcode\">\n <button type=\"button\" class=\"govuk-button\" (click)=\"findAddress()\">Find address</button>\n </div>\n </div>\n\n <div class=\"govuk-body\"\n *ngIf=\"addressOptions\" id=\"selectAddress\">\n <div class=\"govuk-body\"\n [ngClass]=\"{'govuk-form-group--error': postcodeErrorPresent(false)}\">\n <p class=\"govuk-error-message\" *ngIf=\"postcodeErrorPresent(false)\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{selectErrorMessage}}\n </p>\n <label class=\"govuk-label\" for=\"addressList\">\n <span class=\"form-label\">Select an address</span>\n </label>\n <select class=\"form-control govuk-select ccd-dropdown addressList\" id=\"addressList\" name=\"address\"\n formControlName=\"addressList\" (change)=\"addressSelected()\" focusElement>\n <option *ngFor=\"let addressOption of addressOptions\" [ngValue]=\"addressOption.value\">\n {{addressOption.description}}\n </option>\n </select>\n </div>\n </div>\n\n <a class=\"manual-link govuk-link\" *ngIf=\"!shouldShowDetailFields() || (!startedInternational && !addressChosen)\" (click)=\"blankAddress()\"\n href=\"javascript:void(0)\">I can't enter a UK postcode</a>\n </div>\n\n <div id=\"govuk-radios\" class=\"govuk-radios\" data-module=\"govuk-radios\"\n *ngIf=\"shouldShowDetailFields() && internationalMode && startedInternational && !addressChosen\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"yes\" value=\"yes\" name=\"ukAddress\" type=\"radio\" data-aria-controls=\"address-fields\"\n (click)=\"setInternationalAddress(false)\" formControlName=\"ukAddress\">\n <label class=\"govuk-label govuk-radios__label\" for=\"yes\">\n Yes\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"no\" value=\"no\" name=\"ukAddress\" type=\"radio\" data-aria-controls=\"address-fields\"\n (click)=\"setInternationalAddress(true)\" formControlName=\"ukAddress\">\n <label class=\"govuk-label govuk-radios__label\" for=\"no\">\n No\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"address-fields\">\n <xuilib-write-address-inputs *ngIf=\"isInternational !== undefined\" [formGroup]=\"formGroup\" [isInternational]=\"isInternational\"\n [submissionAttempted]=\"submissionAttempted\">\n </xuilib-write-address-inputs>\n </div>\n </div>\n\n <xuilib-write-address-inputs *ngIf=\"shouldShowDetailFields() && (addressChosen || !internationalMode)\"\n [formGroup]=\"formGroup\" [isInternational]=\"false\" [submissionAttempted]=\"submissionAttempted\"></xuilib-write-address-inputs>\n\n</div>",
|
|
5013
|
+
styles: [".manual-link{cursor:pointer;text-decoration:underline;margin-top:10px}.manual-link,:host{display:block}"]
|
|
5014
|
+
},] }
|
|
5015
|
+
];
|
|
5016
|
+
WriteAddressFieldComponent.ctorParameters = function () { return [
|
|
5017
|
+
{ type: AddressService }
|
|
5018
|
+
]; };
|
|
5019
|
+
WriteAddressFieldComponent.propDecorators = {
|
|
5020
|
+
formGroup: [{ type: i0.Input }],
|
|
5021
|
+
internationalMode: [{ type: i0.Input }],
|
|
5022
|
+
isInternational: [{ type: i0.Input }],
|
|
5023
|
+
submissionAttempted: [{ type: i0.Input }],
|
|
5024
|
+
startedInternational: [{ type: i0.Input }],
|
|
5025
|
+
addressChosen: [{ type: i0.Input }],
|
|
5026
|
+
postcodeOptionSelected: [{ type: i0.Output }],
|
|
5027
|
+
internationalModeStart: [{ type: i0.Output }],
|
|
5028
|
+
ukAddressOptionSelected: [{ type: i0.Output }],
|
|
5029
|
+
canSelectAddress: [{ type: i0.Output }],
|
|
5030
|
+
resetSubmission: [{ type: i0.Output }]
|
|
5031
|
+
};
|
|
5032
|
+
|
|
5033
|
+
var WriteAddressInputsComponent = /** @class */ (function () {
|
|
5034
|
+
function WriteAddressInputsComponent() {
|
|
5035
|
+
this.MESSAGE_ENUM = exports.AddressMessageEnum;
|
|
5036
|
+
this.isInternational = false;
|
|
5037
|
+
this.submissionAttempted = false;
|
|
5038
|
+
this.missingPostcode = false;
|
|
5039
|
+
this.errorsPresent = false;
|
|
5040
|
+
}
|
|
5041
|
+
WriteAddressInputsComponent.prototype.ngOnChanges = function () {
|
|
5042
|
+
var addressGroup = this.formGroup.get('address');
|
|
5043
|
+
// if there is an issue with the formgroup, ensure error styling is displayed
|
|
5044
|
+
this.errorsPresent = !addressGroup.valid;
|
|
5045
|
+
};
|
|
5046
|
+
return WriteAddressInputsComponent;
|
|
5047
|
+
}());
|
|
5048
|
+
WriteAddressInputsComponent.decorators = [
|
|
5049
|
+
{ type: i0.Component, args: [{
|
|
5050
|
+
selector: 'xuilib-write-address-inputs',
|
|
5051
|
+
template: "<ng-container>\n <form [formGroup]=\"formGroup\">\n <div class=\"govuk-body\" formGroupName=\"address\" [ngClass]=\"{'govuk-form-group--error': submissionAttempted && errorsPresent}\">\n <label class=\"govuk-label govuk-!-font-weight-bold\">\n Enter address details\n </label>\n\n <div class=\"govuk-body\">\n <label class=\"govuk-label\" for=\"addressLine1\">\n Building and Street\n </label>\n <p class=\"govuk-error-message\" *ngIf=\"submissionAttempted && !formGroup.get('address').get('addressLine1').valid\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{MESSAGE_ENUM.NO_STREET_SELECTED}}\n </p>\n <input class=\"govuk-input govuk-!-width-full\" id=\"addressLine1\" name=\"addressLine1\" type=\"text\"\n formControlName=\"addressLine1\">\n </div>\n\n <div class=\"govuk-body\">\n <label class=\"govuk-label\" for=\"addressLine2\">\n Address line 2 (Optional)\n </label>\n <input class=\"govuk-input govuk-!-width-full\" id=\"addressLine2\" name=\"addressLine2\" type=\"text\"\n formControlName=\"addressLine2\">\n </div>\n\n <div class=\"govuk-body\">\n <label class=\"govuk-label\" for=\"addressLine3\">\n Address line 3 (Optional)\n </label>\n <input class=\"govuk-input govuk-!-width-full\" id=\"addressLine3\" name=\"addressLine3\" type=\"text\"\n formControlName=\"addressLine3\">\n </div>\n\n <div class=\"govuk-body\">\n <label class=\"govuk-label\" for=\"postTown\">\n Town or City\n </label>\n <p class=\"govuk-error-message\" *ngIf=\"submissionAttempted && !formGroup.get('address').get('postTown').valid\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{MESSAGE_ENUM.NO_CITY_SELECTED}}\n </p>\n <input class=\"govuk-input govuk-!-width-two-thirds\" id=\"postTown\" name=\"postTown\" type=\"text\"\n formControlName=\"postTown\">\n </div>\n\n <div class=\"govuk-body\">\n <label class=\"govuk-label\" for=\"county\">\n County{{this.isInternational ? '/ State/ Province' : ''}} (Optional)\n </label>\n <input class=\"govuk-input govuk-!-width-two-thirds\" id=\"county\" name=\"county\" type=\"text\"\n formControlName=\"county\">\n </div>\n\n <div *ngIf=\"isInternational\" class=\"govuk-body\">\n <label class=\"govuk-label\" for=\"country\">\n Country\n </label>\n <p class=\"govuk-error-message\" *ngIf=\"submissionAttempted && !formGroup.get('address').get('country').valid\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{MESSAGE_ENUM.NO_COUNTRY_SELECTED}}\n </p>\n <input class=\"govuk-input govuk-!-width-two-thirds\" id=\"country\" name=\"country\" type=\"text\"\n formControlName=\"country\">\n </div>\n\n <div class=\"govuk-body\">\n <label class=\"govuk-label\" for=\"postCode\">\n Postcode{{this.isInternational ? ' (Optional)' : ''}}\n </label>\n <p class=\"govuk-error-message\" *ngIf=\"submissionAttempted && !isInternational && this.formGroup.get('address').get('postCode').hasError('required')\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{MESSAGE_ENUM.NO_POSTCODE_SELECTED}}\n </p>\n <p class=\"govuk-error-message\" *ngIf=\"submissionAttempted && !isInternational && this.formGroup.get('address').get('postCode').hasError('invalidPostcode')\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{MESSAGE_ENUM.INVALID_POSTCODE}}\n </p>\n <input class=\"govuk-input govuk-!-width-one-third\" id=\"postCode\" name=\"postCode\" type=\"text\"\n formControlName=\"postCode\">\n </div>\n </div>\n</form>\n</ng-container>"
|
|
5052
|
+
},] }
|
|
5053
|
+
];
|
|
5054
|
+
WriteAddressInputsComponent.ctorParameters = function () { return []; };
|
|
5055
|
+
WriteAddressInputsComponent.propDecorators = {
|
|
5056
|
+
formGroup: [{ type: i0.Input }],
|
|
5057
|
+
isInternational: [{ type: i0.Input }],
|
|
5058
|
+
submissionAttempted: [{ type: i0.Input }]
|
|
5059
|
+
};
|
|
5060
|
+
|
|
4681
5061
|
var FeatureToggleDirective = /** @class */ (function () {
|
|
4682
5062
|
function FeatureToggleDirective(service, viewContainer, templateRef) {
|
|
4683
5063
|
this.service = service;
|
|
@@ -5340,7 +5720,7 @@
|
|
|
5340
5720
|
HmctsIdentityBarComponent.decorators = [
|
|
5341
5721
|
{ type: i0.Component, args: [{
|
|
5342
5722
|
selector: 'xuilib-hmcts-identity-bar',
|
|
5343
|
-
template: "<div class=\"hmcts-identity-bar\" *ngIf=\"value\">\n
|
|
5723
|
+
template: "<div class=\"hmcts-identity-bar\" *ngIf=\"value\">\n\n <div class=\"hmcts-identity-bar__container\">\n\n <div class=\"hmcts-identity-bar__details\">\n\n <span class=\"hmcts-identity-bar__title\">{{value | rpxTranslate}}</span>\n\n </div>\n\n </div>\n\n</div>\n",
|
|
5344
5724
|
styles: [""]
|
|
5345
5725
|
},] }
|
|
5346
5726
|
];
|
|
@@ -5545,7 +5925,9 @@
|
|
|
5545
5925
|
FindServiceComponent,
|
|
5546
5926
|
SearchServiceComponent,
|
|
5547
5927
|
SearchVenueComponent,
|
|
5548
|
-
PaginationComponent
|
|
5928
|
+
PaginationComponent,
|
|
5929
|
+
WriteAddressFieldComponent,
|
|
5930
|
+
WriteAddressInputsComponent
|
|
5549
5931
|
];
|
|
5550
5932
|
var GOV_UI_COMPONENTS = [
|
|
5551
5933
|
HmctsIdentityBarComponent,
|
|
@@ -5682,6 +6064,9 @@
|
|
|
5682
6064
|
*/
|
|
5683
6065
|
|
|
5684
6066
|
exports.AccessibilityComponent = AccessibilityComponent;
|
|
6067
|
+
exports.AddressModel = AddressModel;
|
|
6068
|
+
exports.AddressOption = AddressOption;
|
|
6069
|
+
exports.AddressService = AddressService;
|
|
5685
6070
|
exports.AnonymousFeatureUser = AnonymousFeatureUser;
|
|
5686
6071
|
exports.COMMON_COMPONENTS = COMMON_COMPONENTS;
|
|
5687
6072
|
exports.CapitalizePipe = CapitalizePipe;
|
|
@@ -5765,6 +6150,8 @@
|
|
|
5765
6150
|
exports.UserDetailsComponent = UserDetailsComponent;
|
|
5766
6151
|
exports.UserListComponent = UserListComponent;
|
|
5767
6152
|
exports.UserSelectComponent = UserSelectComponent;
|
|
6153
|
+
exports.WriteAddressFieldComponent = WriteAddressFieldComponent;
|
|
6154
|
+
exports.WriteAddressInputsComponent = WriteAddressInputsComponent;
|
|
5768
6155
|
exports.checkboxesBeCheckedValidator = checkboxesBeCheckedValidator;
|
|
5769
6156
|
exports.dateValidator = dateValidator;
|
|
5770
6157
|
exports.radioGroupValidator = radioGroupValidator;
|
|
@@ -5794,30 +6181,33 @@
|
|
|
5794
6181
|
exports["ɵbs"] = SearchServiceComponent;
|
|
5795
6182
|
exports["ɵbt"] = SearchVenueComponent;
|
|
5796
6183
|
exports["ɵbu"] = PaginationComponent;
|
|
5797
|
-
exports["ɵbv"] =
|
|
5798
|
-
exports["ɵbw"] =
|
|
5799
|
-
exports["ɵbx"] =
|
|
5800
|
-
exports["ɵby"] =
|
|
5801
|
-
exports["ɵbz"] =
|
|
6184
|
+
exports["ɵbv"] = WriteAddressFieldComponent;
|
|
6185
|
+
exports["ɵbw"] = AddressService;
|
|
6186
|
+
exports["ɵbx"] = WriteAddressInputsComponent;
|
|
6187
|
+
exports["ɵby"] = HmctsIdentityBarComponent;
|
|
6188
|
+
exports["ɵbz"] = HmctsPaginationComponent;
|
|
5802
6189
|
exports["ɵc"] = TcDisplayHtmlComponent;
|
|
5803
|
-
exports["ɵca"] =
|
|
5804
|
-
exports["ɵcb"] =
|
|
5805
|
-
exports["ɵcc"] =
|
|
5806
|
-
exports["ɵcd"] =
|
|
5807
|
-
exports["ɵce"] =
|
|
5808
|
-
exports["ɵcf"] =
|
|
5809
|
-
exports["ɵcg"] =
|
|
5810
|
-
exports["ɵch"] =
|
|
5811
|
-
exports["ɵci"] =
|
|
5812
|
-
exports["ɵcj"] =
|
|
5813
|
-
exports["ɵck"] =
|
|
5814
|
-
exports["ɵcl"] =
|
|
5815
|
-
exports["ɵcm"] =
|
|
5816
|
-
exports["ɵcn"] =
|
|
5817
|
-
exports["ɵco"] =
|
|
5818
|
-
exports["ɵcp"] =
|
|
5819
|
-
exports["ɵcq"] =
|
|
5820
|
-
exports["ɵcr"] =
|
|
6190
|
+
exports["ɵca"] = HmctsSubNavigationComponent;
|
|
6191
|
+
exports["ɵcb"] = HmctsPrimaryNavigationComponent;
|
|
6192
|
+
exports["ɵcc"] = HmctsErrorSummaryComponent;
|
|
6193
|
+
exports["ɵcd"] = HmctsMainWrapperComponent;
|
|
6194
|
+
exports["ɵce"] = HmctsBannerComponent;
|
|
6195
|
+
exports["ɵcf"] = GovukTableComponent;
|
|
6196
|
+
exports["ɵcg"] = GovUkInputComponent;
|
|
6197
|
+
exports["ɵch"] = GovUkCheckboxComponent;
|
|
6198
|
+
exports["ɵci"] = GovUkFormGroupWrapperComponent;
|
|
6199
|
+
exports["ɵcj"] = GovUkLabelComponent;
|
|
6200
|
+
exports["ɵck"] = GovUkErrorMessageComponent;
|
|
6201
|
+
exports["ɵcl"] = GovUkFieldsetComponent;
|
|
6202
|
+
exports["ɵcm"] = GovUkDateComponent;
|
|
6203
|
+
exports["ɵcn"] = GovUkCheckboxesComponent;
|
|
6204
|
+
exports["ɵco"] = GovUkRadioComponent;
|
|
6205
|
+
exports["ɵcp"] = GovUkRadiosComponent;
|
|
6206
|
+
exports["ɵcq"] = GovUkSelectComponent;
|
|
6207
|
+
exports["ɵcr"] = GovUkTextareaComponent;
|
|
6208
|
+
exports["ɵcs"] = GovUkFileUploadComponent;
|
|
6209
|
+
exports["ɵct"] = RemoveHostDirective;
|
|
6210
|
+
exports["ɵcu"] = CapitalizePipe;
|
|
5821
6211
|
exports["ɵd"] = TcDisplayPlainComponent;
|
|
5822
6212
|
exports["ɵe"] = TcConfirmComponent;
|
|
5823
6213
|
exports["ɵf"] = ContactDetailsComponent;
|