@hmcts/ccd-case-ui-toolkit 6.13.11-welsh-release-v3 → 6.13.11-welsh-release-v5
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-ccd-case-ui-toolkit.umd.js +123 -118
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/app.config.js +1 -1
- package/esm2015/lib/components/header/headers.module.js +1 -1
- package/esm2015/lib/shared/commons/case-edit-data/case-edit-data.service.js +5 -8
- package/esm2015/lib/shared/components/case-editor/case-create/case-create.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +19 -3
- package/esm2015/lib/shared/components/case-editor/case-progress/case-progress.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/services/case-edit-wizard.guard.js +3 -2
- package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +2 -2
- package/esm2015/lib/shared/components/case-timeline/case-timeline.component.js +2 -2
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +12 -4
- package/esm2015/lib/shared/components/palette/base-field/payment-field.component.js +4 -1
- package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +26 -2
- package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases-state.model.js +1 -1
- package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +36 -86
- package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
- package/esm2015/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.js +3 -3
- package/esm2015/lib/shared/components/palette/waystopay/waystopay-field.component.js +4 -4
- package/esm2015/lib/shared/services/alert/alert.service.js +8 -5
- package/esm2015/lib/shared/services/fields/fields.utils.js +8 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +121 -112
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +2 -0
- package/lib/app.config.d.ts.map +1 -1
- package/lib/components/header/headers.module.d.ts.map +1 -1
- package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts +3 -5
- package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +2 -0
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/case-edit-wizard.guard.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts +1 -0
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.d.ts +2 -0
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/domain/linked-cases-state.model.d.ts +0 -4
- package/lib/shared/components/palette/linked-cases/domain/linked-cases-state.model.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts +0 -4
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/services/alert/alert.service.d.ts +4 -3
- package/lib/shared/services/alert/alert.service.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.utils.d.ts +2 -0
- package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4225,6 +4225,13 @@
|
|
|
4225
4225
|
}
|
|
4226
4226
|
return caseField.field_type.type === 'ComponentLauncher';
|
|
4227
4227
|
};
|
|
4228
|
+
FieldsUtils.isLinkedCasesCaseField = function (caseField) {
|
|
4229
|
+
return FieldsUtils.isComponentLauncherCaseField(caseField) &&
|
|
4230
|
+
caseField.id === 'LinkedCasesComponentLauncher';
|
|
4231
|
+
};
|
|
4232
|
+
FieldsUtils.containsLinkedCasesCaseField = function (caseFields) {
|
|
4233
|
+
return caseFields === null || caseFields === void 0 ? void 0 : caseFields.some(function (caseField) { return FieldsUtils.isLinkedCasesCaseField(caseField); });
|
|
4234
|
+
};
|
|
4228
4235
|
FieldsUtils.isFlagsFieldType = function (fieldType) {
|
|
4229
4236
|
if (!fieldType) {
|
|
4230
4237
|
return false;
|
|
@@ -7036,25 +7043,30 @@
|
|
|
7036
7043
|
this.alertObserver.next(null);
|
|
7037
7044
|
this.message = '';
|
|
7038
7045
|
};
|
|
7039
|
-
AlertService.prototype.error = function (
|
|
7046
|
+
AlertService.prototype.error = function (_a) {
|
|
7047
|
+
var phrase = _a.phrase, replacements = _a.replacements;
|
|
7048
|
+
var message = this.getTranslationWithReplacements(phrase, replacements);
|
|
7040
7049
|
this.preservedError = this.preserveMessages(message);
|
|
7041
7050
|
var alert = { level: 'error', message: message };
|
|
7042
7051
|
this.errorObserver.next(alert);
|
|
7043
7052
|
// EUI-3381.
|
|
7044
7053
|
this.push(alert);
|
|
7045
7054
|
};
|
|
7046
|
-
AlertService.prototype.warning = function (
|
|
7055
|
+
AlertService.prototype.warning = function (_a) {
|
|
7056
|
+
var phrase = _a.phrase, replacements = _a.replacements;
|
|
7057
|
+
var message = this.getTranslationWithReplacements(phrase, replacements);
|
|
7047
7058
|
this.preservedWarning = this.preserveMessages(message);
|
|
7048
7059
|
var alert = { level: 'warning', message: message };
|
|
7049
7060
|
this.warningObserver.next(alert);
|
|
7050
7061
|
// EUI-3381.
|
|
7051
7062
|
this.push(alert);
|
|
7052
7063
|
};
|
|
7053
|
-
AlertService.prototype.success = function (
|
|
7054
|
-
|
|
7055
|
-
|
|
7064
|
+
AlertService.prototype.success = function (_a) {
|
|
7065
|
+
var preserve = _a.preserve, phrase = _a.phrase, replacements = _a.replacements;
|
|
7066
|
+
var message = this.getTranslationWithReplacements(phrase, replacements);
|
|
7056
7067
|
this.preserveAlerts = preserve || this.preserveAlerts;
|
|
7057
7068
|
var alert = { level: 'success', message: message };
|
|
7069
|
+
this.preservedSuccess = this.preserveMessages(message);
|
|
7058
7070
|
this.successObserver.next(alert);
|
|
7059
7071
|
// EUI-3381.
|
|
7060
7072
|
this.push(alert);
|
|
@@ -8792,7 +8804,7 @@
|
|
|
8792
8804
|
_this.eventTriggerService.announceEventTrigger(eventTrigger);
|
|
8793
8805
|
})
|
|
8794
8806
|
.catch(function (error) {
|
|
8795
|
-
_this.alertService.error(error.message);
|
|
8807
|
+
_this.alertService.error({ phrase: error.message });
|
|
8796
8808
|
return rxjs.throwError(error);
|
|
8797
8809
|
});
|
|
8798
8810
|
};
|
|
@@ -8997,7 +9009,8 @@
|
|
|
8997
9009
|
if (!wizard.hasPage(pageId)) {
|
|
8998
9010
|
this.goToFirst(wizard, canShowPredicate, route)
|
|
8999
9011
|
.then(function () {
|
|
9000
|
-
|
|
9012
|
+
var replacements = { PAGEID: pageId };
|
|
9013
|
+
_this.alertService.error({ phrase: 'No page could be found for %PAGEID%', replacements: replacements });
|
|
9001
9014
|
});
|
|
9002
9015
|
return Promise.resolve(false);
|
|
9003
9016
|
}
|
|
@@ -9514,7 +9527,7 @@
|
|
|
9514
9527
|
if (this.userIsCaseworker(userDetails.userInfo.roles)) {
|
|
9515
9528
|
// when submitting the completion of task if not yet rendered cases/case confirm then preserve the alert for re-rendering
|
|
9516
9529
|
this.alertService.setPreserveAlerts(true, ['cases/case', 'submit']);
|
|
9517
|
-
this.alertService.warning('A task could not be completed successfully. Please complete the task associated with the case manually.');
|
|
9530
|
+
this.alertService.warning({ phrase: 'A task could not be completed successfully. Please complete the task associated with the case manually.' });
|
|
9518
9531
|
}
|
|
9519
9532
|
};
|
|
9520
9533
|
/**
|
|
@@ -10120,14 +10133,14 @@
|
|
|
10120
10133
|
this.title$ = new rxjs.BehaviorSubject(null);
|
|
10121
10134
|
this.formValidationErrors$ = new rxjs.BehaviorSubject([]);
|
|
10122
10135
|
this.editForm$ = new rxjs.BehaviorSubject(null);
|
|
10123
|
-
this.
|
|
10136
|
+
this.isLinkedCasesJourneyAtFinalStep$ = new rxjs.BehaviorSubject(null);
|
|
10124
10137
|
this.eventTriggerName$ = new rxjs.BehaviorSubject(null);
|
|
10125
10138
|
this.triggerSubmitEvent$ = new rxjs.BehaviorSubject(null);
|
|
10126
10139
|
this.caseDetails$ = this.details$.asObservable();
|
|
10127
10140
|
this.caseTitle$ = this.title$.asObservable();
|
|
10128
10141
|
this.caseEditForm$ = this.editForm$.asObservable();
|
|
10129
10142
|
this.caseFormValidationErrors$ = this.formValidationErrors$.asObservable();
|
|
10130
|
-
this.
|
|
10143
|
+
this.caseIsLinkedCasesJourneyAtFinalStep$ = this.isLinkedCasesJourneyAtFinalStep$.asObservable();
|
|
10131
10144
|
this.caseEventTriggerName$ = this.eventTriggerName$.asObservable();
|
|
10132
10145
|
this.caseTriggerSubmitEvent$ = this.triggerSubmitEvent$.asObservable();
|
|
10133
10146
|
}
|
|
@@ -10140,9 +10153,6 @@
|
|
|
10140
10153
|
CaseEditDataService.prototype.setCaseEventTriggerName = function (triggerName) {
|
|
10141
10154
|
this.eventTriggerName$.next(triggerName);
|
|
10142
10155
|
};
|
|
10143
|
-
CaseEditDataService.prototype.setCaseLinkError = function (error) {
|
|
10144
|
-
this.linkError$.next(error);
|
|
10145
|
-
};
|
|
10146
10156
|
CaseEditDataService.prototype.setFormValidationErrors = function (validationErrors) {
|
|
10147
10157
|
this.formValidationErrors$.next(validationErrors);
|
|
10148
10158
|
};
|
|
@@ -10152,8 +10162,8 @@
|
|
|
10152
10162
|
CaseEditDataService.prototype.clearFormValidationErrors = function () {
|
|
10153
10163
|
this.formValidationErrors$.next([]);
|
|
10154
10164
|
};
|
|
10155
|
-
CaseEditDataService.prototype.
|
|
10156
|
-
this.
|
|
10165
|
+
CaseEditDataService.prototype.setLinkedCasesJourneyAtFinalStep = function (isAtFinalStep) {
|
|
10166
|
+
this.isLinkedCasesJourneyAtFinalStep$.next(isAtFinalStep);
|
|
10157
10167
|
};
|
|
10158
10168
|
CaseEditDataService.prototype.addFormValidationError = function (validationError) {
|
|
10159
10169
|
this.formValidationErrors$.next(this.formValidationErrors$.getValue().concat([validationError]));
|
|
@@ -10539,6 +10549,9 @@
|
|
|
10539
10549
|
this.caseEditDataService.caseEditForm$.subscribe({
|
|
10540
10550
|
next: function (editForm) { return _this.editForm = editForm; }
|
|
10541
10551
|
});
|
|
10552
|
+
this.caseEditDataService.caseIsLinkedCasesJourneyAtFinalStep$.subscribe({
|
|
10553
|
+
next: function (isLinkedCasesJourneyAtFinalStep) { return _this.isLinkedCasesJourneyAtFinalStep = isLinkedCasesJourneyAtFinalStep; }
|
|
10554
|
+
});
|
|
10542
10555
|
this.caseEditDataService.caseTriggerSubmitEvent$.subscribe({
|
|
10543
10556
|
next: function (state) {
|
|
10544
10557
|
if (state) {
|
|
@@ -10558,7 +10571,11 @@
|
|
|
10558
10571
|
return this.caseEdit.first();
|
|
10559
10572
|
};
|
|
10560
10573
|
CaseEditPageComponent.prototype.currentPageIsNotValid = function () {
|
|
10561
|
-
return !this.pageValidationService.isPageValid(this.currentPage, this.editForm)
|
|
10574
|
+
return !this.pageValidationService.isPageValid(this.currentPage, this.editForm) ||
|
|
10575
|
+
(this.isLinkedCasesJourney() && !this.isLinkedCasesJourneyAtFinalStep);
|
|
10576
|
+
};
|
|
10577
|
+
CaseEditPageComponent.prototype.isLinkedCasesJourney = function () {
|
|
10578
|
+
return FieldsUtils.containsLinkedCasesCaseField(this.currentPage.case_fields);
|
|
10562
10579
|
};
|
|
10563
10580
|
/**
|
|
10564
10581
|
* caseEventData.event_data contains all the values from the previous pages so we set caseEventData.data = caseEventData.event_data
|
|
@@ -10658,7 +10675,16 @@
|
|
|
10658
10675
|
var _this = this;
|
|
10659
10676
|
this.caseEditDataService.clearFormValidationErrors();
|
|
10660
10677
|
if (this.currentPageIsNotValid()) {
|
|
10661
|
-
|
|
10678
|
+
// The generateErrorMessage method filters out the hidden fields.
|
|
10679
|
+
// The error message for LinkedCases journey will never get displayed because the
|
|
10680
|
+
// LinkedCases is configured with ComponentLauncher field as visible and caseLinks field as hidden.
|
|
10681
|
+
if (this.isLinkedCasesJourney()) {
|
|
10682
|
+
this.validationErrors.push({ id: 'next-button', message: 'Please select Next to go to the next page' });
|
|
10683
|
+
CaseEditPageComponent.scrollToTop();
|
|
10684
|
+
}
|
|
10685
|
+
else {
|
|
10686
|
+
this.generateErrorMessage(this.currentPage.case_fields);
|
|
10687
|
+
}
|
|
10662
10688
|
}
|
|
10663
10689
|
if (!this.isSubmitting && !this.currentPageIsNotValid()) {
|
|
10664
10690
|
this.isSubmitting = true;
|
|
@@ -17428,6 +17454,7 @@
|
|
|
17428
17454
|
searchCases.forEach(function (response) {
|
|
17429
17455
|
casesResponse.push(_this.mapResponse(response));
|
|
17430
17456
|
});
|
|
17457
|
+
casesResponse = _this.sortReasonCodes(casesResponse);
|
|
17431
17458
|
_this.linkedCasesFromResponse = _this.sortLinkedCasesByReasonCode(casesResponse);
|
|
17432
17459
|
_this.isLoaded = true;
|
|
17433
17460
|
var caseLinks = _this.linkedCasesFromResponse.map(function (item) {
|
|
@@ -17453,6 +17480,30 @@
|
|
|
17453
17480
|
});
|
|
17454
17481
|
}
|
|
17455
17482
|
};
|
|
17483
|
+
LinkedCasesToTableComponent.prototype.sortReasonCodes = function (searchCasesResponse) {
|
|
17484
|
+
var _this = this;
|
|
17485
|
+
searchCasesResponse.forEach(function (item) {
|
|
17486
|
+
var _a;
|
|
17487
|
+
if ((_a = item === null || item === void 0 ? void 0 : item.reasons) === null || _a === void 0 ? void 0 : _a.length) {
|
|
17488
|
+
item.reasons.forEach(function (reason) {
|
|
17489
|
+
reason.sortOrder = _this.getReasonSortOrder(reason.value.Reason);
|
|
17490
|
+
});
|
|
17491
|
+
item.reasons = item.reasons.sort(function (a, b) { return a.sortOrder - b.sortOrder; });
|
|
17492
|
+
item.sortOrder = item.reasons[0].sortOrder;
|
|
17493
|
+
}
|
|
17494
|
+
});
|
|
17495
|
+
searchCasesResponse = searchCasesResponse === null || searchCasesResponse === void 0 ? void 0 : searchCasesResponse.sort(function (a, b) { return a.sortOrder - b.sortOrder; });
|
|
17496
|
+
return searchCasesResponse;
|
|
17497
|
+
};
|
|
17498
|
+
LinkedCasesToTableComponent.prototype.getReasonSortOrder = function (reasonCode) {
|
|
17499
|
+
if (reasonCode === LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE) {
|
|
17500
|
+
return 1;
|
|
17501
|
+
}
|
|
17502
|
+
else if (reasonCode === LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE) {
|
|
17503
|
+
return 2;
|
|
17504
|
+
}
|
|
17505
|
+
return 3;
|
|
17506
|
+
};
|
|
17456
17507
|
LinkedCasesToTableComponent.prototype.searchCasesByCaseIds = function (searchCasesResponse) {
|
|
17457
17508
|
return rxjs.forkJoin(searchCasesResponse);
|
|
17458
17509
|
};
|
|
@@ -18085,87 +18136,52 @@
|
|
|
18085
18136
|
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: LinkedCasesService }, { type: AbstractAppConfig }, { type: CommonDataService }]; }, null);
|
|
18086
18137
|
})();
|
|
18087
18138
|
|
|
18088
|
-
function
|
|
18139
|
+
function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) {
|
|
18089
18140
|
if (rf & 1) {
|
|
18090
|
-
var
|
|
18091
|
-
i0__namespace.ɵɵ
|
|
18092
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
18093
|
-
i0__namespace.ɵɵ
|
|
18094
|
-
i0__namespace.ɵɵelementStart(3, "a", 9);
|
|
18095
|
-
i0__namespace.ɵɵlistener("click", function WriteLinkedCasesFieldComponent_div_0_div_3_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var errorMessage_r7 = ctx.$implicit; var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.navigateToErrorElement(errorMessage_r7.fieldId); });
|
|
18096
|
-
i0__namespace.ɵɵtext(4);
|
|
18097
|
-
i0__namespace.ɵɵelementEnd();
|
|
18098
|
-
i0__namespace.ɵɵelementEnd();
|
|
18099
|
-
i0__namespace.ɵɵelementEnd();
|
|
18100
|
-
i0__namespace.ɵɵelementEnd();
|
|
18101
|
-
}
|
|
18102
|
-
if (rf & 2) {
|
|
18103
|
-
var errorMessage_r7 = ctx.$implicit;
|
|
18104
|
-
i0__namespace.ɵɵadvance(4);
|
|
18105
|
-
i0__namespace.ɵɵtextInterpolate(errorMessage_r7.description);
|
|
18106
|
-
}
|
|
18107
|
-
}
|
|
18108
|
-
function WriteLinkedCasesFieldComponent_div_0_Template(rf, ctx) {
|
|
18109
|
-
if (rf & 1) {
|
|
18110
|
-
i0__namespace.ɵɵelementStart(0, "div", 4);
|
|
18111
|
-
i0__namespace.ɵɵelementStart(1, "h2", 5);
|
|
18112
|
-
i0__namespace.ɵɵtext(2, " There is a problem ");
|
|
18113
|
-
i0__namespace.ɵɵelementEnd();
|
|
18114
|
-
i0__namespace.ɵɵtemplate(3, WriteLinkedCasesFieldComponent_div_0_div_3_Template, 5, 1, "div", 6);
|
|
18141
|
+
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18142
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
18143
|
+
i0__namespace.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 3);
|
|
18144
|
+
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_2_Template_ccd_linked_cases_before_you_start_linkedCasesStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.onLinkedCasesStateEmitted($event); });
|
|
18115
18145
|
i0__namespace.ɵɵelementEnd();
|
|
18116
|
-
|
|
18117
|
-
if (rf & 2) {
|
|
18118
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
18119
|
-
i0__namespace.ɵɵadvance(3);
|
|
18120
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
18146
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
18121
18147
|
}
|
|
18122
18148
|
}
|
|
18123
18149
|
function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) {
|
|
18124
18150
|
if (rf & 1) {
|
|
18125
|
-
var
|
|
18151
|
+
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18126
18152
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
18127
|
-
i0__namespace.ɵɵelementStart(1, "ccd-linked-cases
|
|
18128
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function
|
|
18153
|
+
i0__namespace.ɵɵelementStart(1, "ccd-no-linked-cases", 3);
|
|
18154
|
+
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_3_Template_ccd_no_linked_cases_linkedCasesStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.onLinkedCasesStateEmitted($event); });
|
|
18129
18155
|
i0__namespace.ɵɵelementEnd();
|
|
18130
18156
|
i0__namespace.ɵɵelementContainerEnd();
|
|
18131
18157
|
}
|
|
18132
18158
|
}
|
|
18133
18159
|
function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) {
|
|
18134
18160
|
if (rf & 1) {
|
|
18135
|
-
var
|
|
18161
|
+
var _r10_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18136
18162
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
18137
|
-
i0__namespace.ɵɵelementStart(1, "ccd-
|
|
18138
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function
|
|
18163
|
+
i0__namespace.ɵɵelementStart(1, "ccd-link-cases", 3);
|
|
18164
|
+
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_4_Template_ccd_link_cases_linkedCasesStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(); return ctx_r9.onLinkedCasesStateEmitted($event); });
|
|
18139
18165
|
i0__namespace.ɵɵelementEnd();
|
|
18140
18166
|
i0__namespace.ɵɵelementContainerEnd();
|
|
18141
18167
|
}
|
|
18142
18168
|
}
|
|
18143
18169
|
function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) {
|
|
18144
18170
|
if (rf & 1) {
|
|
18145
|
-
var
|
|
18171
|
+
var _r12_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18146
18172
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
18147
|
-
i0__namespace.ɵɵelementStart(1, "ccd-
|
|
18148
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function
|
|
18173
|
+
i0__namespace.ɵɵelementStart(1, "ccd-unlink-cases", 3);
|
|
18174
|
+
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_5_Template_ccd_unlink_cases_linkedCasesStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(); return ctx_r11.onLinkedCasesStateEmitted($event); });
|
|
18149
18175
|
i0__namespace.ɵɵelementEnd();
|
|
18150
18176
|
i0__namespace.ɵɵelementContainerEnd();
|
|
18151
18177
|
}
|
|
18152
18178
|
}
|
|
18153
18179
|
function WriteLinkedCasesFieldComponent_ng_container_6_Template(rf, ctx) {
|
|
18154
18180
|
if (rf & 1) {
|
|
18155
|
-
var
|
|
18156
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
18157
|
-
i0__namespace.ɵɵelementStart(1, "ccd-unlink-cases", 10);
|
|
18158
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_6_Template_ccd_unlink_cases_linkedCasesStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.onLinkedCasesStateEmitted($event); });
|
|
18159
|
-
i0__namespace.ɵɵelementEnd();
|
|
18160
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
18161
|
-
}
|
|
18162
|
-
}
|
|
18163
|
-
function WriteLinkedCasesFieldComponent_ng_container_7_Template(rf, ctx) {
|
|
18164
|
-
if (rf & 1) {
|
|
18165
|
-
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18181
|
+
var _r14_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18166
18182
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
18167
|
-
i0__namespace.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers",
|
|
18168
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function
|
|
18183
|
+
i0__namespace.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 3);
|
|
18184
|
+
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_6_Template_ccd_linked_cases_check_your_answers_linkedCasesStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(); return ctx_r13.onLinkedCasesStateEmitted($event); });
|
|
18169
18185
|
i0__namespace.ɵɵelementEnd();
|
|
18170
18186
|
i0__namespace.ɵɵelementContainerEnd();
|
|
18171
18187
|
}
|
|
@@ -18182,11 +18198,13 @@
|
|
|
18182
18198
|
_this.linkedCasesPages = exports.LinkedCasesPages;
|
|
18183
18199
|
_this.linkedCasesEventTriggers = exports.LinkedCasesEventTriggers;
|
|
18184
18200
|
_this.linkedCases = [];
|
|
18185
|
-
_this.errorMessages = [];
|
|
18186
18201
|
return _this;
|
|
18187
18202
|
}
|
|
18188
18203
|
WriteLinkedCasesFieldComponent.prototype.ngOnInit = function () {
|
|
18189
18204
|
var _this = this;
|
|
18205
|
+
// This is required to enable Continue button validation
|
|
18206
|
+
// Continue button should be enabled only at check your answers page
|
|
18207
|
+
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(false);
|
|
18190
18208
|
// Clear validation errors
|
|
18191
18209
|
this.caseEditDataService.clearFormValidationErrors();
|
|
18192
18210
|
// Get linked case reasons from ref data
|
|
@@ -18223,11 +18241,10 @@
|
|
|
18223
18241
|
};
|
|
18224
18242
|
WriteLinkedCasesFieldComponent.prototype.onLinkedCasesStateEmitted = function (linkedCasesState) {
|
|
18225
18243
|
var _this = this;
|
|
18226
|
-
|
|
18244
|
+
// Clear validation errors
|
|
18227
18245
|
this.caseEditDataService.clearFormValidationErrors();
|
|
18228
18246
|
if (linkedCasesState.navigateToNextPage) {
|
|
18229
18247
|
this.linkedCasesPage = this.getNextPage(linkedCasesState);
|
|
18230
|
-
this.setContinueButtonValidationErrorMessage();
|
|
18231
18248
|
this.proceedToNextPage();
|
|
18232
18249
|
}
|
|
18233
18250
|
else {
|
|
@@ -18251,27 +18268,19 @@
|
|
|
18251
18268
|
}
|
|
18252
18269
|
});
|
|
18253
18270
|
};
|
|
18254
|
-
WriteLinkedCasesFieldComponent.prototype.setContinueButtonValidationErrorMessage = function () {
|
|
18255
|
-
var errorMessage = this.linkedCasesService.isLinkedCasesEventTrigger
|
|
18256
|
-
? exports.LinkedCasesErrorMessages.LinkCasesNavigationError
|
|
18257
|
-
: exports.LinkedCasesErrorMessages.UnlinkCasesNavigationError;
|
|
18258
|
-
var buttonId = this.linkedCasesService.linkedCases.length === 0
|
|
18259
|
-
? 'back-button'
|
|
18260
|
-
: 'next-button';
|
|
18261
|
-
this.caseEditDataService.setCaseLinkError({
|
|
18262
|
-
componentId: buttonId,
|
|
18263
|
-
errorMessage: errorMessage
|
|
18264
|
-
});
|
|
18265
|
-
};
|
|
18266
18271
|
WriteLinkedCasesFieldComponent.prototype.proceedToNextPage = function () {
|
|
18267
18272
|
if (this.isAtFinalPage()) {
|
|
18268
18273
|
// Continue button event must be allowed in final page
|
|
18269
|
-
this.caseEditDataService.
|
|
18274
|
+
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(true);
|
|
18270
18275
|
// Trigger validation to clear the "notAtFinalPage" error if now at the final state
|
|
18271
18276
|
this.formGroup.updateValueAndValidity();
|
|
18272
18277
|
// update form value
|
|
18273
18278
|
this.submitLinkedCases();
|
|
18274
18279
|
}
|
|
18280
|
+
else {
|
|
18281
|
+
// Continue button event must not be allowed if not in final page
|
|
18282
|
+
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(false);
|
|
18283
|
+
}
|
|
18275
18284
|
};
|
|
18276
18285
|
WriteLinkedCasesFieldComponent.prototype.submitLinkedCases = function () {
|
|
18277
18286
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
@@ -18315,38 +18324,24 @@
|
|
|
18315
18324
|
&& !_this.linkedCasesService.serverLinkedApiError)
|
|
18316
18325
|
? exports.LinkedCasesPages.BEFORE_YOU_START
|
|
18317
18326
|
: exports.LinkedCasesPages.NO_LINKED_CASES;
|
|
18318
|
-
// Initialise the error to be displayed when clicked on Continue button
|
|
18319
|
-
_this.setContinueButtonValidationErrorMessage();
|
|
18320
18327
|
});
|
|
18321
18328
|
};
|
|
18322
|
-
WriteLinkedCasesFieldComponent.prototype.navigateToErrorElement = function (elementId) {
|
|
18323
|
-
if (elementId) {
|
|
18324
|
-
var htmlElement = document.getElementById(elementId);
|
|
18325
|
-
if (htmlElement) {
|
|
18326
|
-
htmlElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
18327
|
-
htmlElement.focus();
|
|
18328
|
-
}
|
|
18329
|
-
}
|
|
18330
|
-
};
|
|
18331
18329
|
return WriteLinkedCasesFieldComponent;
|
|
18332
18330
|
}(AbstractFieldWriteComponent));
|
|
18333
18331
|
WriteLinkedCasesFieldComponent.ɵfac = function WriteLinkedCasesFieldComponent_Factory(t) { return new (t || WriteLinkedCasesFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CommonDataService), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(LinkedCasesService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
18334
|
-
WriteLinkedCasesFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteLinkedCasesFieldComponent, selectors: [["ccd-write-linked-cases-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls:
|
|
18332
|
+
WriteLinkedCasesFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteLinkedCasesFieldComponent, selectors: [["ccd-write-linked-cases-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 7, vars: 7, consts: [[1, "form-group", "govuk-!-margin-bottom-2", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], [3, "linkedCasesStateEmitter"]], template: function WriteLinkedCasesFieldComponent_Template(rf, ctx) {
|
|
18335
18333
|
if (rf & 1) {
|
|
18336
|
-
i0__namespace.ɵɵ
|
|
18334
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
18337
18335
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
18338
|
-
i0__namespace.ɵɵ
|
|
18339
|
-
i0__namespace.ɵɵtemplate(3, WriteLinkedCasesFieldComponent_ng_container_3_Template, 2, 0, "ng-container",
|
|
18340
|
-
i0__namespace.ɵɵtemplate(4, WriteLinkedCasesFieldComponent_ng_container_4_Template, 2, 0, "ng-container",
|
|
18341
|
-
i0__namespace.ɵɵtemplate(5, WriteLinkedCasesFieldComponent_ng_container_5_Template, 2, 0, "ng-container",
|
|
18342
|
-
i0__namespace.ɵɵtemplate(6, WriteLinkedCasesFieldComponent_ng_container_6_Template, 2, 0, "ng-container",
|
|
18343
|
-
i0__namespace.ɵɵtemplate(7, WriteLinkedCasesFieldComponent_ng_container_7_Template, 2, 0, "ng-container", 3);
|
|
18336
|
+
i0__namespace.ɵɵtemplate(2, WriteLinkedCasesFieldComponent_ng_container_2_Template, 2, 0, "ng-container", 2);
|
|
18337
|
+
i0__namespace.ɵɵtemplate(3, WriteLinkedCasesFieldComponent_ng_container_3_Template, 2, 0, "ng-container", 2);
|
|
18338
|
+
i0__namespace.ɵɵtemplate(4, WriteLinkedCasesFieldComponent_ng_container_4_Template, 2, 0, "ng-container", 2);
|
|
18339
|
+
i0__namespace.ɵɵtemplate(5, WriteLinkedCasesFieldComponent_ng_container_5_Template, 2, 0, "ng-container", 2);
|
|
18340
|
+
i0__namespace.ɵɵtemplate(6, WriteLinkedCasesFieldComponent_ng_container_6_Template, 2, 0, "ng-container", 2);
|
|
18344
18341
|
i0__namespace.ɵɵelementEnd();
|
|
18345
18342
|
i0__namespace.ɵɵelementEnd();
|
|
18346
18343
|
}
|
|
18347
18344
|
if (rf & 2) {
|
|
18348
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
|
|
18349
|
-
i0__namespace.ɵɵadvance(1);
|
|
18350
18345
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
18351
18346
|
i0__namespace.ɵɵadvance(1);
|
|
18352
18347
|
i0__namespace.ɵɵproperty("ngSwitch", ctx.linkedCasesPage);
|
|
@@ -19692,6 +19687,9 @@
|
|
|
19692
19687
|
PaymentField.prototype.getRefundsUrl = function () {
|
|
19693
19688
|
return this.appConfig.getRefundsUrl();
|
|
19694
19689
|
};
|
|
19690
|
+
PaymentField.prototype.getNotificationUrl = function () {
|
|
19691
|
+
return this.appConfig.getNotificationUrl();
|
|
19692
|
+
};
|
|
19695
19693
|
PaymentField.prototype.getUserRoles = function () {
|
|
19696
19694
|
var userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
|
|
19697
19695
|
if (!userDetails || !userDetails.hasOwnProperty('roles')) {
|
|
@@ -19717,12 +19715,12 @@
|
|
|
19717
19715
|
return CasePaymentHistoryViewerFieldComponent;
|
|
19718
19716
|
}(PaymentField));
|
|
19719
19717
|
CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
19720
|
-
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
19718
|
+
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 16, consts: [[3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) {
|
|
19721
19719
|
if (rf & 1) {
|
|
19722
19720
|
i0__namespace.ɵɵelement(0, "ccpay-payment-lib", 0);
|
|
19723
19721
|
}
|
|
19724
19722
|
if (rf & 2) {
|
|
19725
|
-
i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
19723
|
+
i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx.getNotificationUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
19726
19724
|
}
|
|
19727
19725
|
}, directives: [i3__namespace.PaymentLibComponent], encapsulation: 2 });
|
|
19728
19726
|
(function () {
|
|
@@ -20141,7 +20139,7 @@
|
|
|
20141
20139
|
}
|
|
20142
20140
|
if (rf & 2) {
|
|
20143
20141
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
20144
|
-
i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
20142
|
+
i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx_r0.getNotificationUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
20145
20143
|
}
|
|
20146
20144
|
}
|
|
20147
20145
|
var WaysToPayFieldComponent = /** @class */ (function (_super) {
|
|
@@ -20155,9 +20153,9 @@
|
|
|
20155
20153
|
return WaysToPayFieldComponent;
|
|
20156
20154
|
}(PaymentField));
|
|
20157
20155
|
WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
20158
|
-
WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
|
|
20156
|
+
WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
|
|
20159
20157
|
if (rf & 1) {
|
|
20160
|
-
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1,
|
|
20158
|
+
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
|
|
20161
20159
|
}
|
|
20162
20160
|
if (rf & 2) {
|
|
20163
20161
|
i0__namespace.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
|
|
@@ -26516,7 +26514,7 @@
|
|
|
26516
26514
|
AddCommentsComponent,
|
|
26517
26515
|
ManageCaseFlagsComponent,
|
|
26518
26516
|
UpdateFlagComponent], []);
|
|
26519
|
-
i0__namespace.ɵɵsetComponentScope(WriteLinkedCasesFieldComponent, [i2__namespace
|
|
26517
|
+
i0__namespace.ɵɵsetComponentScope(WriteLinkedCasesFieldComponent, [i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective, i2__namespace.NgSwitch, i2__namespace.NgSwitchCase, BeforeYouStartComponent,
|
|
26520
26518
|
NoLinkedCasesComponent,
|
|
26521
26519
|
LinkCasesComponent,
|
|
26522
26520
|
UnLinkCasesComponent,
|
|
@@ -27511,7 +27509,7 @@
|
|
|
27511
27509
|
_this.eventTrigger = eventTrigger;
|
|
27512
27510
|
})
|
|
27513
27511
|
.catch(function (error) {
|
|
27514
|
-
_this.alertService.error(error.message);
|
|
27512
|
+
_this.alertService.error({ phrase: error.message });
|
|
27515
27513
|
return rxjs.throwError(error);
|
|
27516
27514
|
});
|
|
27517
27515
|
};
|
|
@@ -30303,7 +30301,7 @@
|
|
|
30303
30301
|
}))
|
|
30304
30302
|
.toPromise()
|
|
30305
30303
|
.catch(function (error) {
|
|
30306
|
-
_this.alertService.error(error.message);
|
|
30304
|
+
_this.alertService.error({ phrase: error.message });
|
|
30307
30305
|
return rxjs.throwError(error);
|
|
30308
30306
|
});
|
|
30309
30307
|
};
|
|
@@ -30661,12 +30659,19 @@
|
|
|
30661
30659
|
.navigate([this.parentUrl])
|
|
30662
30660
|
.then(function () {
|
|
30663
30661
|
var caseReference = _this.caseReferencePipe.transform(_this.caseDetails.case_id.toString());
|
|
30662
|
+
var replacements = { CASEREFERENCE: caseReference, NAME: _this.eventTrigger.name };
|
|
30664
30663
|
if (EventStatusService.isIncomplete(eventStatus)) {
|
|
30665
|
-
_this.alertService.warning(
|
|
30666
|
-
|
|
30664
|
+
_this.alertService.warning({
|
|
30665
|
+
phrase: "Case #%CASEREFERENCE% has been updated with event: %NAME%\n but the callback service cannot be completed",
|
|
30666
|
+
replacements: replacements
|
|
30667
|
+
});
|
|
30667
30668
|
}
|
|
30668
30669
|
else {
|
|
30669
|
-
_this.alertService.success(
|
|
30670
|
+
_this.alertService.success({
|
|
30671
|
+
phrase: 'Case #%CASEREFERENCE% has been updated with event: %NAME%',
|
|
30672
|
+
replacements: replacements,
|
|
30673
|
+
preserve: true
|
|
30674
|
+
});
|
|
30670
30675
|
}
|
|
30671
30676
|
});
|
|
30672
30677
|
};
|