@hmcts/rpx-xui-common-lib 2.0.25 → 2.0.26-banner-message-date-error-handling
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/esm2022/lib/components/search-location/search-location.component.mjs +6 -3
- package/esm2022/lib/components/service-message/service-message.component.mjs +25 -14
- package/esm2022/lib/components/service-messages/service-messages.component.mjs +86 -25
- package/esm2022/lib/models/service-message.model.mjs +2 -0
- package/fesm2022/hmcts-rpx-xui-common-lib.mjs +110 -36
- package/fesm2022/hmcts-rpx-xui-common-lib.mjs.map +1 -1
- package/lib/components/service-message/service-message.component.d.ts +7 -5
- package/lib/components/service-messages/service-messages.component.d.ts +9 -5
- package/lib/models/service-message.model.d.ts +8 -0
- package/package.json +1 -1
|
@@ -2581,7 +2581,10 @@ class SearchLocationComponent {
|
|
|
2581
2581
|
else {
|
|
2582
2582
|
this.filteredList$ = searchInputChanges$.pipe(
|
|
2583
2583
|
// Debounce needed to prevent multiple API calls being made
|
|
2584
|
-
debounceTime(this.debounceTimeInput), switchMap((term) => iif(() => (!!term && term.length >= this.minSearchCharacters), this.getLocations(term).pipe(map((locations) => this.filterUnselectedLocations(locations, this.selectedLocations, this.singleMode))
|
|
2584
|
+
debounceTime(this.debounceTimeInput), switchMap((term) => iif(() => (!!term && term.length >= this.minSearchCharacters), this.getLocations(term).pipe(map((locations) => this.filterUnselectedLocations(locations, this.selectedLocations, this.singleMode)), catchError(() => {
|
|
2585
|
+
// returns false so the user is not shown the no results found message
|
|
2586
|
+
return of$1(false);
|
|
2587
|
+
})), of$1(false))));
|
|
2585
2588
|
}
|
|
2586
2589
|
if (this.singleMode && this.selectedLocations.length > 0) {
|
|
2587
2590
|
const location = this.selectedLocations[0];
|
|
@@ -5937,6 +5940,12 @@ class SelectedCaseListComponent {
|
|
|
5937
5940
|
}] }); })();
|
|
5938
5941
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectedCaseListComponent, { className: "SelectedCaseListComponent", filePath: "lib/components/selected-case-list/selected-case-list.component.ts", lineNumber: 11 }); })();
|
|
5939
5942
|
|
|
5943
|
+
function ServiceMessageComponent_h2_8_Template(rf, ctx) { if (rf & 1) {
|
|
5944
|
+
i0.ɵɵelement(0, "h2", 5);
|
|
5945
|
+
} if (rf & 2) {
|
|
5946
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
5947
|
+
i0.ɵɵproperty("innerHTML", ctx_r0.message_cy, i0.ɵɵsanitizeHtml);
|
|
5948
|
+
} }
|
|
5940
5949
|
class ServiceMessageComponent {
|
|
5941
5950
|
constructor() {
|
|
5942
5951
|
this.hideMessage = new EventEmitter();
|
|
@@ -5945,7 +5954,7 @@ class ServiceMessageComponent {
|
|
|
5945
5954
|
this.hideMessage.emit(key);
|
|
5946
5955
|
}
|
|
5947
5956
|
static { this.ɵfac = function ServiceMessageComponent_Factory(t) { return new (t || ServiceMessageComponent)(); }; }
|
|
5948
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ServiceMessageComponent, selectors: [["xuilib-service-message"]], inputs: {
|
|
5957
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ServiceMessageComponent, selectors: [["xuilib-service-message"]], inputs: { message_en: "message_en", message_cy: "message_cy", key: "key" }, outputs: { hideMessage: "hideMessage" }, decls: 12, vars: 8, consts: [[1, "hmcts-banner", "hmcts-banner--warning"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], [1, "govuk-heading-s", 3, "innerHTML"], ["class", "govuk-heading-s", 3, "innerHTML", 4, "ngIf"], [1, "govuk-link--no-visited-state", 3, "click", "routerLink"]], template: function ServiceMessageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5949
5958
|
i0.ɵɵelementStart(0, "div", 0);
|
|
5950
5959
|
i0.ɵɵnamespaceSVG();
|
|
5951
5960
|
i0.ɵɵelementStart(1, "svg", 1);
|
|
@@ -5957,57 +5966,94 @@ class ServiceMessageComponent {
|
|
|
5957
5966
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
5958
5967
|
i0.ɵɵelementEnd();
|
|
5959
5968
|
i0.ɵɵelement(7, "h2", 5);
|
|
5960
|
-
i0.ɵɵ
|
|
5961
|
-
i0.ɵɵelementStart(9, "a",
|
|
5969
|
+
i0.ɵɵtemplate(8, ServiceMessageComponent_h2_8_Template, 1, 1, "h2", 6);
|
|
5970
|
+
i0.ɵɵelementStart(9, "a", 7);
|
|
5962
5971
|
i0.ɵɵlistener("click", function ServiceMessageComponent_Template_a_click_9_listener() { return ctx.onHideMessageEvent(ctx.key); });
|
|
5963
5972
|
i0.ɵɵtext(10);
|
|
5964
5973
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
5965
5974
|
i0.ɵɵelementEnd()()();
|
|
5966
5975
|
} if (rf & 2) {
|
|
5967
5976
|
i0.ɵɵadvance(5);
|
|
5968
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6,
|
|
5977
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Warning"));
|
|
5969
5978
|
i0.ɵɵadvance(2);
|
|
5970
|
-
i0.ɵɵproperty("innerHTML",
|
|
5971
|
-
i0.ɵɵadvance(
|
|
5972
|
-
i0.ɵɵ
|
|
5973
|
-
|
|
5979
|
+
i0.ɵɵproperty("innerHTML", ctx.message_en, i0.ɵɵsanitizeHtml);
|
|
5980
|
+
i0.ɵɵadvance();
|
|
5981
|
+
i0.ɵɵproperty("ngIf", ctx.message_cy);
|
|
5982
|
+
i0.ɵɵadvance(2);
|
|
5983
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 6, "Hide message"));
|
|
5984
|
+
} }, dependencies: [i1.NgIf, i2$1.RouterLink, i2.RpxTranslatePipe], styles: [".govuk-link--no-visited-state[_ngcontent-%COMP%]{cursor:pointer}"] }); }
|
|
5974
5985
|
}
|
|
5975
5986
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ServiceMessageComponent, [{
|
|
5976
5987
|
type: Component,
|
|
5977
|
-
args: [{ selector: 'xuilib-service-message', template: "<div class=\"hmcts-banner hmcts-banner--warning\">\n\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\" />\n </svg>\n\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">{{'Warning' | rpxTranslate}}</span>\n <h2 class=\"govuk-heading-s\" [innerHTML]=\"
|
|
5978
|
-
}], () => [], {
|
|
5988
|
+
args: [{ selector: 'xuilib-service-message', template: "<div class=\"hmcts-banner hmcts-banner--warning\">\n\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\" />\n </svg>\n\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">{{'Warning' | rpxTranslate}}</span>\n <h2 class=\"govuk-heading-s\" [innerHTML]=\"message_en\"></h2>\n <h2 *ngIf=\"message_cy\" class=\"govuk-heading-s\" [innerHTML]=\"message_cy\"></h2>\n <a [routerLink]=\"\" class=\"govuk-link--no-visited-state\" (click)=\"onHideMessageEvent(key)\">{{'Hide message' | rpxTranslate}}</a>\n </div>\n\n</div>", styles: [".govuk-link--no-visited-state{cursor:pointer}\n"] }]
|
|
5989
|
+
}], () => [], { message_en: [{
|
|
5990
|
+
type: Input
|
|
5991
|
+
}], message_cy: [{
|
|
5979
5992
|
type: Input
|
|
5980
5993
|
}], key: [{
|
|
5981
5994
|
type: Input
|
|
5982
5995
|
}], hideMessage: [{
|
|
5983
5996
|
type: Output
|
|
5984
5997
|
}] }); })();
|
|
5985
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ServiceMessageComponent, { className: "ServiceMessageComponent", filePath: "lib/components/service-message/service-message.component.ts", lineNumber:
|
|
5998
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ServiceMessageComponent, { className: "ServiceMessageComponent", filePath: "lib/components/service-message/service-message.component.ts", lineNumber: 9 }); })();
|
|
5986
5999
|
|
|
5987
|
-
function
|
|
5988
|
-
|
|
5989
|
-
i0.ɵɵ
|
|
5990
|
-
i0.ɵɵ
|
|
5991
|
-
i0.ɵɵ
|
|
6000
|
+
function ServiceMessagesComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
6001
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
6002
|
+
i0.ɵɵnamespaceSVG();
|
|
6003
|
+
i0.ɵɵelementStart(1, "svg", 4);
|
|
6004
|
+
i0.ɵɵelement(2, "path", 5);
|
|
6005
|
+
i0.ɵɵelementEnd();
|
|
6006
|
+
i0.ɵɵnamespaceHTML();
|
|
6007
|
+
i0.ɵɵelementStart(3, "div", 6)(4, "span", 7);
|
|
6008
|
+
i0.ɵɵtext(5);
|
|
6009
|
+
i0.ɵɵpipe(6, "rpxTranslate");
|
|
5992
6010
|
i0.ɵɵelementEnd();
|
|
6011
|
+
i0.ɵɵelementStart(7, "h2", 8);
|
|
6012
|
+
i0.ɵɵtext(8, "Error:");
|
|
6013
|
+
i0.ɵɵelementEnd();
|
|
6014
|
+
i0.ɵɵelement(9, "p", 9);
|
|
6015
|
+
i0.ɵɵelementEnd()();
|
|
5993
6016
|
} if (rf & 2) {
|
|
5994
|
-
const
|
|
5995
|
-
i0.ɵɵ
|
|
6017
|
+
const errMsg_r1 = ctx.$implicit;
|
|
6018
|
+
i0.ɵɵadvance(5);
|
|
6019
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 2, "Warning"));
|
|
6020
|
+
i0.ɵɵadvance(4);
|
|
6021
|
+
i0.ɵɵproperty("innerHTML", errMsg_r1.message, i0.ɵɵsanitizeHtml);
|
|
5996
6022
|
} }
|
|
5997
6023
|
function ServiceMessagesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
5998
6024
|
i0.ɵɵelementStart(0, "div", 1);
|
|
5999
|
-
i0.ɵɵtemplate(1,
|
|
6000
|
-
i0.ɵɵ
|
|
6025
|
+
i0.ɵɵtemplate(1, ServiceMessagesComponent_div_0_div_1_Template, 10, 4, "div", 2);
|
|
6026
|
+
i0.ɵɵelementEnd();
|
|
6027
|
+
} if (rf & 2) {
|
|
6028
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
6029
|
+
i0.ɵɵadvance();
|
|
6030
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.bannerErrorMsgs);
|
|
6031
|
+
} }
|
|
6032
|
+
function ServiceMessagesComponent_div_1_xuilib_service_message_1_Template(rf, ctx) { if (rf & 1) {
|
|
6033
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
6034
|
+
i0.ɵɵelementStart(0, "xuilib-service-message", 11);
|
|
6035
|
+
i0.ɵɵpipe(1, "rpxTranslate");
|
|
6036
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
6037
|
+
i0.ɵɵlistener("hideMessage", function ServiceMessagesComponent_div_1_xuilib_service_message_1_Template_xuilib_service_message_hideMessage_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.hideMessage($event)); });
|
|
6038
|
+
i0.ɵɵelementEnd();
|
|
6039
|
+
} if (rf & 2) {
|
|
6040
|
+
const message_r4 = ctx.$implicit;
|
|
6041
|
+
i0.ɵɵproperty("key", message_r4)("message_en", i0.ɵɵpipeBind1(1, 3, message_r4 == null ? null : message_r4.message_en))("message_cy", i0.ɵɵpipeBind1(2, 5, message_r4 == null ? null : message_r4.message_cy));
|
|
6042
|
+
} }
|
|
6043
|
+
function ServiceMessagesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
6044
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
6045
|
+
i0.ɵɵtemplate(1, ServiceMessagesComponent_div_1_xuilib_service_message_1_Template, 3, 7, "xuilib-service-message", 10);
|
|
6001
6046
|
i0.ɵɵelementEnd();
|
|
6002
6047
|
} if (rf & 2) {
|
|
6003
6048
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
6004
6049
|
i0.ɵɵadvance();
|
|
6005
|
-
i0.ɵɵproperty("ngForOf",
|
|
6050
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.filteredMessages);
|
|
6006
6051
|
} }
|
|
6007
6052
|
class ServiceMessagesComponent {
|
|
6008
6053
|
constructor(featureToggleService) {
|
|
6009
6054
|
this.featureToggleService = featureToggleService;
|
|
6010
|
-
this.filteredMessages =
|
|
6055
|
+
this.filteredMessages = [];
|
|
6056
|
+
this.bannerErrorMsgs = [];
|
|
6011
6057
|
}
|
|
6012
6058
|
ngOnInit() {
|
|
6013
6059
|
this.getServiceMessages();
|
|
@@ -6022,28 +6068,56 @@ class ServiceMessagesComponent {
|
|
|
6022
6068
|
}
|
|
6023
6069
|
createFilteredMessages(messages) {
|
|
6024
6070
|
this.hiddenBanners = JSON.parse(window.sessionStorage.getItem(this.serviceMessageCookie)) || [];
|
|
6025
|
-
|
|
6026
|
-
const regEx = new RegExp(key);
|
|
6027
|
-
if (this.userRoles.some(e => regEx.test(e))
|
|
6028
|
-
this.filteredMessages.
|
|
6071
|
+
messages.forEach(key => {
|
|
6072
|
+
const regEx = new RegExp(key.roles);
|
|
6073
|
+
if (this.userRoles.some(e => regEx.test(e))) {
|
|
6074
|
+
this.filteredMessages = messages.filter(msg => !this.hiddenBanners.includes(msg.message_en)
|
|
6075
|
+
&& this.compareDates(msg));
|
|
6029
6076
|
}
|
|
6030
6077
|
});
|
|
6031
6078
|
}
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6079
|
+
compareDates(msg) {
|
|
6080
|
+
let currentDateTime = new Date();
|
|
6081
|
+
let beginDate = null;
|
|
6082
|
+
let endDate = null;
|
|
6083
|
+
const findUnique = this.bannerErrorMsgs.filter(rst => rst.index === msg.index);
|
|
6084
|
+
if (!isNaN(Date.parse(msg.begin))) {
|
|
6085
|
+
beginDate = new Date(msg.begin);
|
|
6086
|
+
}
|
|
6087
|
+
if (!isNaN(Date.parse(msg.end))) {
|
|
6088
|
+
endDate = new Date(msg.end);
|
|
6089
|
+
}
|
|
6090
|
+
if (!isNaN(Date.parse(msg.begin)) && !isNaN(Date.parse(msg.end)) && !(beginDate > endDate)) {
|
|
6091
|
+
this.bannerErrorMsgs = this.bannerErrorMsgs.filter(ind => ind.index !== msg.index);
|
|
6092
|
+
}
|
|
6093
|
+
if ((!isNaN(Date.parse(msg.begin)) && !isNaN(Date.parse(msg.end)) && beginDate > endDate)
|
|
6094
|
+
|| (isNaN(Date.parse(msg.begin)) || isNaN(Date.parse(msg.end)))) {
|
|
6095
|
+
this.isBannerError = true;
|
|
6096
|
+
if (findUnique.length === 0) {
|
|
6097
|
+
this.bannerErrorMsgs = [...this.bannerErrorMsgs, { message: `Invalid start/end date OR The start date is greater than the end date. Message index: ${msg.index}`, index: msg.index }];
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
6100
|
+
const beginDateOK = !msg.begin || (beginDate && beginDate < currentDateTime);
|
|
6101
|
+
const endDateOK = !msg.end || (endDate && endDate >= currentDateTime);
|
|
6102
|
+
return beginDateOK && endDateOK;
|
|
6103
|
+
}
|
|
6104
|
+
hideMessage(msg) {
|
|
6105
|
+
this.filteredMessages = this.filteredMessages.filter(f => f.index !== msg.index);
|
|
6106
|
+
this.hiddenBanners.push(msg.message_en);
|
|
6035
6107
|
window.sessionStorage.setItem(this.serviceMessageCookie, JSON.stringify(this.hiddenBanners));
|
|
6036
6108
|
}
|
|
6037
6109
|
static { this.ɵfac = function ServiceMessagesComponent_Factory(t) { return new (t || ServiceMessagesComponent)(i0.ɵɵdirectiveInject(FeatureToggleService)); }; }
|
|
6038
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ServiceMessagesComponent, selectors: [["xuilib-service-messages"]], inputs: { userRoles: "userRoles", featureToggleKey: "featureToggleKey", serviceMessageCookie: "serviceMessageCookie" }, decls:
|
|
6039
|
-
i0.ɵɵtemplate(0, ServiceMessagesComponent_div_0_Template,
|
|
6110
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ServiceMessagesComponent, selectors: [["xuilib-service-messages"]], inputs: { userRoles: "userRoles", featureToggleKey: "featureToggleKey", serviceMessageCookie: "serviceMessageCookie" }, decls: 2, vars: 2, consts: [["class", "govuk-width-container govuk-!-margin-top-6", 4, "ngIf"], [1, "govuk-width-container", "govuk-!-margin-top-6"], ["class", "hmcts-banner hmcts-banner--warning", 4, "ngFor", "ngForOf"], [1, "hmcts-banner", "hmcts-banner--warning"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], [1, "govuk-heading-s"], [3, "innerHTML"], [3, "key", "message_en", "message_cy", "hideMessage", 4, "ngFor", "ngForOf"], [3, "hideMessage", "key", "message_en", "message_cy"]], template: function ServiceMessagesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6111
|
+
i0.ɵɵtemplate(0, ServiceMessagesComponent_div_0_Template, 2, 1, "div", 0)(1, ServiceMessagesComponent_div_1_Template, 2, 1, "div", 0);
|
|
6040
6112
|
} if (rf & 2) {
|
|
6041
|
-
i0.ɵɵproperty("ngIf",
|
|
6042
|
-
|
|
6113
|
+
i0.ɵɵproperty("ngIf", ctx.isBannerError);
|
|
6114
|
+
i0.ɵɵadvance();
|
|
6115
|
+
i0.ɵɵproperty("ngIf", (ctx.filteredMessages == null ? null : ctx.filteredMessages.length) > 0);
|
|
6116
|
+
} }, dependencies: [i1.NgForOf, i1.NgIf, ServiceMessageComponent, i2.RpxTranslatePipe], encapsulation: 2 }); }
|
|
6043
6117
|
}
|
|
6044
6118
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ServiceMessagesComponent, [{
|
|
6045
6119
|
type: Component,
|
|
6046
|
-
args: [{ selector: 'xuilib-service-messages', template: "<div *ngIf=\"filteredMessages?.
|
|
6120
|
+
args: [{ selector: 'xuilib-service-messages', template: "<div *ngIf=\"isBannerError\" class=\"govuk-width-container govuk-!-margin-top-6\">\n <div class=\"hmcts-banner hmcts-banner--warning\" *ngFor=\"let errMsg of bannerErrorMsgs\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\" />\n </svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">{{'Warning' | rpxTranslate}}</span>\n <h2 class=\"govuk-heading-s\">Error:</h2>\n <p [innerHTML]=\"errMsg.message\"></p>\n </div>\n </div>\n</div>\n<div *ngIf=\"filteredMessages?.length > 0\" class=\"govuk-width-container govuk-!-margin-top-6\">\n <xuilib-service-message *ngFor=\"let message of filteredMessages\" [key]=\"message\"\n [message_en]=\"message?.message_en | rpxTranslate\" \n [message_cy]=\"message?.message_cy | rpxTranslate\"\n (hideMessage)=\"hideMessage($event)\">\n </xuilib-service-message>\n</div>" }]
|
|
6047
6121
|
}], () => [{ type: FeatureToggleService }], { userRoles: [{
|
|
6048
6122
|
type: Input
|
|
6049
6123
|
}], featureToggleKey: [{
|
|
@@ -6051,7 +6125,7 @@ class ServiceMessagesComponent {
|
|
|
6051
6125
|
}], serviceMessageCookie: [{
|
|
6052
6126
|
type: Input
|
|
6053
6127
|
}] }); })();
|
|
6054
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ServiceMessagesComponent, { className: "ServiceMessagesComponent", filePath: "lib/components/service-messages/service-messages.component.ts", lineNumber:
|
|
6128
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ServiceMessagesComponent, { className: "ServiceMessagesComponent", filePath: "lib/components/service-messages/service-messages.component.ts", lineNumber: 10 }); })();
|
|
6055
6129
|
|
|
6056
6130
|
function ShareCaseConfirmComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
6057
6131
|
i0.ɵɵelementStart(0, "div", 5);
|