@hmcts/ccd-case-ui-toolkit 6.14.6-date-grey-bar → 6.15.0-6.16-rc-3
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 +1194 -1009
- 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/shared/commons/case-edit-data/case-edit-data.service.js +5 -8
- package/esm2015/lib/shared/components/case-editor/case-edit/case-edit.component.js +264 -13
- package/esm2015/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.js +3 -3
- package/esm2015/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.js +80 -0
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +180 -156
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +160 -409
- package/esm2015/lib/shared/components/case-editor/case-editor.module.js +9 -5
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +31 -18
- package/esm2015/lib/shared/components/error/callback-errors.component.js +1 -6
- package/esm2015/lib/shared/components/palette/base-field/field-read-label.component.js +1 -1
- package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +79 -29
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +22 -17
- package/esm2015/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js +1 -1
- package/esm2015/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.js +45 -22
- 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 +3 -3
- package/esm2015/lib/shared/domain/case-edit/case-edit.model.js +2 -0
- package/esm2015/lib/shared/domain/case-edit/index.js +2 -0
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +1 -1
- package/esm2015/lib/shared/domain/index.js +2 -1
- package/esm2015/lib/shared/services/fields/fields.utils.js +8 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +1099 -925
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.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/case-edit.component.d.ts +64 -10
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts +0 -1
- package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.d.ts +8 -0
- package/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +9 -7
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +6 -56
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-editor.module.d.ts +14 -13
- package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +6 -2
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/error/callback-errors.component.d.ts +2 -3
- package/lib/shared/components/error/callback-errors.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +9 -7
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +4 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.d.ts +10 -9
- package/lib/shared/components/palette/judicial-user/write-judicial-user-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/domain/case-edit/case-edit.model.d.ts +26 -0
- package/lib/shared/domain/case-edit/case-edit.model.d.ts.map +1 -0
- package/lib/shared/domain/case-edit/index.d.ts +2 -0
- package/lib/shared/domain/case-edit/index.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +1 -0
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
- package/lib/shared/domain/index.d.ts +1 -0
- package/lib/shared/domain/index.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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('ngx-md'), require('@hmcts/media-viewer'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', 'ngx-md', '@hmcts/media-viewer', '@angular/cdk/portal', 'ngx-pagination', '@angular/material/tabs'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global["ngx-md"], global.i11, global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
|
|
5
|
-
})(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$1,
|
|
5
|
+
})(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$1, i4, i5, i3, i1$4, i7, i3$1, i4$1, momentAdapter, i5$1, i6, i1$5, i11, i6$1, i1$6, i9) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
35
35
|
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
36
36
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
37
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
37
38
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
38
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
39
39
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
40
40
|
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
41
41
|
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
42
42
|
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
43
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
43
|
+
var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
|
|
44
44
|
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
45
|
-
var i6__namespace
|
|
45
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
46
46
|
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
47
47
|
var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
|
|
48
|
-
var i6__namespace$
|
|
48
|
+
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
49
49
|
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
50
50
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
51
51
|
|
|
@@ -4136,6 +4136,13 @@
|
|
|
4136
4136
|
}
|
|
4137
4137
|
return caseField.field_type.type === 'ComponentLauncher';
|
|
4138
4138
|
};
|
|
4139
|
+
FieldsUtils.isLinkedCasesCaseField = function (caseField) {
|
|
4140
|
+
return FieldsUtils.isComponentLauncherCaseField(caseField) &&
|
|
4141
|
+
caseField.id === 'LinkedCasesComponentLauncher';
|
|
4142
|
+
};
|
|
4143
|
+
FieldsUtils.containsLinkedCasesCaseField = function (caseFields) {
|
|
4144
|
+
return caseFields === null || caseFields === void 0 ? void 0 : caseFields.some(function (caseField) { return FieldsUtils.isLinkedCasesCaseField(caseField); });
|
|
4145
|
+
};
|
|
4139
4146
|
FieldsUtils.isFlagsFieldType = function (fieldType) {
|
|
4140
4147
|
if (!fieldType) {
|
|
4141
4148
|
return false;
|
|
@@ -8744,44 +8751,48 @@
|
|
|
8744
8751
|
}] });
|
|
8745
8752
|
})();
|
|
8746
8753
|
|
|
8747
|
-
var
|
|
8748
|
-
function
|
|
8749
|
-
this.
|
|
8750
|
-
this.
|
|
8754
|
+
var Confirmation = /** @class */ (function () {
|
|
8755
|
+
function Confirmation(caseId, status, header, body) {
|
|
8756
|
+
this.caseId = caseId;
|
|
8757
|
+
this.status = status;
|
|
8758
|
+
this.header = header;
|
|
8759
|
+
this.body = body;
|
|
8751
8760
|
}
|
|
8752
|
-
|
|
8753
|
-
this.
|
|
8761
|
+
Confirmation.prototype.getCaseId = function () {
|
|
8762
|
+
return this.caseId;
|
|
8754
8763
|
};
|
|
8755
|
-
|
|
8756
|
-
return this.
|
|
8764
|
+
Confirmation.prototype.getStatus = function () {
|
|
8765
|
+
return this.status;
|
|
8757
8766
|
};
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
var queryParams = urls[1];
|
|
8761
|
-
var queryParamObj = {};
|
|
8762
|
-
if (queryParams) {
|
|
8763
|
-
var queryParam = queryParams.split('&');
|
|
8764
|
-
if (queryParam[0]) {
|
|
8765
|
-
// tslint:disable-next-line: prefer-for-of
|
|
8766
|
-
for (var i = 0; i < queryParam.length; i++) {
|
|
8767
|
-
var param = queryParam[i].split('=');
|
|
8768
|
-
queryParamObj[param[0]] = param[1];
|
|
8769
|
-
}
|
|
8770
|
-
}
|
|
8771
|
-
}
|
|
8772
|
-
this.router.navigate([urls[0]], {
|
|
8773
|
-
queryParams: queryParamObj && (Object.keys(queryParamObj).length) ? queryParamObj : ''
|
|
8774
|
-
});
|
|
8767
|
+
Confirmation.prototype.getHeader = function () {
|
|
8768
|
+
return this.header;
|
|
8775
8769
|
};
|
|
8776
|
-
|
|
8770
|
+
Confirmation.prototype.getBody = function () {
|
|
8771
|
+
return this.body;
|
|
8772
|
+
};
|
|
8773
|
+
return Confirmation;
|
|
8777
8774
|
}());
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
(function () {
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
})();
|
|
8775
|
+
|
|
8776
|
+
exports.EventCompletionReturnStates = void 0;
|
|
8777
|
+
(function (EventCompletionReturnStates) {
|
|
8778
|
+
EventCompletionReturnStates["InProgress"] = "in-progress";
|
|
8779
|
+
EventCompletionReturnStates["CompleteEvent"] = "complete-event";
|
|
8780
|
+
EventCompletionReturnStates["CancelEvent"] = "cancel-event";
|
|
8781
|
+
})(exports.EventCompletionReturnStates || (exports.EventCompletionReturnStates = {}));
|
|
8782
|
+
|
|
8783
|
+
exports.EventCompletionStates = void 0;
|
|
8784
|
+
(function (EventCompletionStates) {
|
|
8785
|
+
EventCompletionStates["CheckTasksCanBeCompleted"] = "check-tasks-can-be-completed";
|
|
8786
|
+
EventCompletionStates["CompleteEventAndTask"] = "complete-event-and-task";
|
|
8787
|
+
EventCompletionStates["CancelEvent"] = "cancel-event";
|
|
8788
|
+
EventCompletionStates["CompleteEventNotTask"] = "complete-event-not-task";
|
|
8789
|
+
EventCompletionStates["TaskCompetedOrCancelled"] = "task-completed-or-cancelled";
|
|
8790
|
+
EventCompletionStates["TaskAssignedToAnotherUser"] = "task-assigned-to-another-user";
|
|
8791
|
+
EventCompletionStates["TaskReassignToUser"] = "task-reassign-to-user";
|
|
8792
|
+
EventCompletionStates["TaskAssignToUser"] = "task-assign-to-user";
|
|
8793
|
+
EventCompletionStates["TaskUnassigned"] = "task-unassigned";
|
|
8794
|
+
EventCompletionStates["Final"] = "final";
|
|
8795
|
+
})(exports.EventCompletionStates || (exports.EventCompletionStates = {}));
|
|
8785
8796
|
|
|
8786
8797
|
var Wizard = /** @class */ (function () {
|
|
8787
8798
|
function Wizard(wizardPages) {
|
|
@@ -8840,6 +8851,45 @@
|
|
|
8840
8851
|
return Wizard;
|
|
8841
8852
|
}());
|
|
8842
8853
|
|
|
8854
|
+
var ConvertHrefToRouterService = /** @class */ (function () {
|
|
8855
|
+
function ConvertHrefToRouterService(router) {
|
|
8856
|
+
this.router = router;
|
|
8857
|
+
this.hrefMarkdownLinkContent = new rxjs.BehaviorSubject('Default');
|
|
8858
|
+
}
|
|
8859
|
+
ConvertHrefToRouterService.prototype.updateHrefLink = function (content) {
|
|
8860
|
+
this.hrefMarkdownLinkContent.next(content);
|
|
8861
|
+
};
|
|
8862
|
+
ConvertHrefToRouterService.prototype.getHrefMarkdownLinkContent = function () {
|
|
8863
|
+
return this.hrefMarkdownLinkContent.asObservable();
|
|
8864
|
+
};
|
|
8865
|
+
ConvertHrefToRouterService.prototype.callAngularRouter = function (hrefMarkdownLinkContent) {
|
|
8866
|
+
var urls = hrefMarkdownLinkContent.split('?');
|
|
8867
|
+
var queryParams = urls[1];
|
|
8868
|
+
var queryParamObj = {};
|
|
8869
|
+
if (queryParams) {
|
|
8870
|
+
var queryParam = queryParams.split('&');
|
|
8871
|
+
if (queryParam[0]) {
|
|
8872
|
+
// tslint:disable-next-line: prefer-for-of
|
|
8873
|
+
for (var i = 0; i < queryParam.length; i++) {
|
|
8874
|
+
var param = queryParam[i].split('=');
|
|
8875
|
+
queryParamObj[param[0]] = param[1];
|
|
8876
|
+
}
|
|
8877
|
+
}
|
|
8878
|
+
}
|
|
8879
|
+
this.router.navigate([urls[0]], {
|
|
8880
|
+
queryParams: queryParamObj && (Object.keys(queryParamObj).length) ? queryParamObj : ''
|
|
8881
|
+
});
|
|
8882
|
+
};
|
|
8883
|
+
return ConvertHrefToRouterService;
|
|
8884
|
+
}());
|
|
8885
|
+
ConvertHrefToRouterService.ɵfac = function ConvertHrefToRouterService_Factory(t) { return new (t || ConvertHrefToRouterService)(i0__namespace.ɵɵinject(i1__namespace$1.Router)); };
|
|
8886
|
+
ConvertHrefToRouterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ConvertHrefToRouterService, factory: ConvertHrefToRouterService.ɵfac });
|
|
8887
|
+
(function () {
|
|
8888
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ConvertHrefToRouterService, [{
|
|
8889
|
+
type: i0.Injectable
|
|
8890
|
+
}], function () { return [{ type: i1__namespace$1.Router }]; }, null);
|
|
8891
|
+
})();
|
|
8892
|
+
|
|
8843
8893
|
var WizardFactoryService = /** @class */ (function () {
|
|
8844
8894
|
function WizardFactoryService() {
|
|
8845
8895
|
}
|
|
@@ -9032,20 +9082,6 @@
|
|
|
9032
9082
|
EventCompletionPortalTypes[EventCompletionPortalTypes["TaskReassigned"] = 1] = "TaskReassigned";
|
|
9033
9083
|
})(EventCompletionPortalTypes || (EventCompletionPortalTypes = {}));
|
|
9034
9084
|
|
|
9035
|
-
exports.EventCompletionStates = void 0;
|
|
9036
|
-
(function (EventCompletionStates) {
|
|
9037
|
-
EventCompletionStates["CheckTasksCanBeCompleted"] = "check-tasks-can-be-completed";
|
|
9038
|
-
EventCompletionStates["CompleteEventAndTask"] = "complete-event-and-task";
|
|
9039
|
-
EventCompletionStates["CancelEvent"] = "cancel-event";
|
|
9040
|
-
EventCompletionStates["CompleteEventNotTask"] = "complete-event-not-task";
|
|
9041
|
-
EventCompletionStates["TaskCompetedOrCancelled"] = "task-completed-or-cancelled";
|
|
9042
|
-
EventCompletionStates["TaskAssignedToAnotherUser"] = "task-assigned-to-another-user";
|
|
9043
|
-
EventCompletionStates["TaskReassignToUser"] = "task-reassign-to-user";
|
|
9044
|
-
EventCompletionStates["TaskAssignToUser"] = "task-assign-to-user";
|
|
9045
|
-
EventCompletionStates["TaskUnassigned"] = "task-unassigned";
|
|
9046
|
-
EventCompletionStates["Final"] = "final";
|
|
9047
|
-
})(exports.EventCompletionStates || (exports.EventCompletionStates = {}));
|
|
9048
|
-
|
|
9049
9085
|
var EVENT_COMPLETION_STATE_MACHINE = 'EVENT COMPLETION STATE MACHINE';
|
|
9050
9086
|
var EventCompletionStateMachineService = /** @class */ (function () {
|
|
9051
9087
|
function EventCompletionStateMachineService() {
|
|
@@ -9491,8 +9527,9 @@
|
|
|
9491
9527
|
})();
|
|
9492
9528
|
|
|
9493
9529
|
var CaseEditComponent = /** @class */ (function () {
|
|
9494
|
-
function CaseEditComponent(fb, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService) {
|
|
9530
|
+
function CaseEditComponent(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService) {
|
|
9495
9531
|
this.fb = fb;
|
|
9532
|
+
this.caseNotifier = caseNotifier;
|
|
9496
9533
|
this.router = router;
|
|
9497
9534
|
this.route = route;
|
|
9498
9535
|
this.fieldsUtils = fieldsUtils;
|
|
@@ -9501,8 +9538,15 @@
|
|
|
9501
9538
|
this.wizardFactory = wizardFactory;
|
|
9502
9539
|
this.sessionStorageService = sessionStorageService;
|
|
9503
9540
|
this.windowsService = windowsService;
|
|
9541
|
+
this.formValueService = formValueService;
|
|
9542
|
+
this.formErrorService = formErrorService;
|
|
9504
9543
|
this.cancelled = new i0.EventEmitter();
|
|
9505
9544
|
this.submitted = new i0.EventEmitter();
|
|
9545
|
+
this.isEventCompletionChecksRequired = false;
|
|
9546
|
+
this.isCaseFlagSubmission = false;
|
|
9547
|
+
this.ignoreWarning = false;
|
|
9548
|
+
this.isLinkedCasesSubmission = false;
|
|
9549
|
+
this.callbackErrorsSubject = new rxjs.Subject();
|
|
9506
9550
|
}
|
|
9507
9551
|
CaseEditComponent.prototype.ngOnInit = function () {
|
|
9508
9552
|
var _this = this;
|
|
@@ -9510,6 +9554,7 @@
|
|
|
9510
9554
|
this.initialUrl = this.sessionStorageService.getItem('eventUrl');
|
|
9511
9555
|
this.isPageRefreshed = JSON.parse(this.sessionStorageService.getItem('isPageRefreshed'));
|
|
9512
9556
|
this.checkPageRefresh();
|
|
9557
|
+
/* istanbul ignore else */
|
|
9513
9558
|
if (this.router.url && !this.isPageRefreshed) {
|
|
9514
9559
|
this.sessionStorageService.setItem('eventUrl', this.router.url);
|
|
9515
9560
|
}
|
|
@@ -9525,6 +9570,12 @@
|
|
|
9525
9570
|
_this.navigationOrigin = params[CaseEditComponent.ORIGIN_QUERY_PARAM];
|
|
9526
9571
|
});
|
|
9527
9572
|
};
|
|
9573
|
+
CaseEditComponent.prototype.ngOnDestroy = function () {
|
|
9574
|
+
/* istanbul ignore else */
|
|
9575
|
+
if (this.callbackErrorsSubject) {
|
|
9576
|
+
this.callbackErrorsSubject.unsubscribe();
|
|
9577
|
+
}
|
|
9578
|
+
};
|
|
9528
9579
|
CaseEditComponent.prototype.checkPageRefresh = function () {
|
|
9529
9580
|
if (this.isPageRefreshed && this.initialUrl) {
|
|
9530
9581
|
this.sessionStorageService.removeItem('eventUrl');
|
|
@@ -9547,20 +9598,37 @@
|
|
|
9547
9598
|
};
|
|
9548
9599
|
CaseEditComponent.prototype.next = function (currentPageId) {
|
|
9549
9600
|
this.initialUrl = this.sessionStorageService.getItem('eventUrl');
|
|
9601
|
+
/* istanbul ignore else */
|
|
9550
9602
|
if (this.router.url && !this.initialUrl) {
|
|
9551
9603
|
this.sessionStorageService.setItem('eventUrl', this.router.url);
|
|
9552
9604
|
}
|
|
9553
9605
|
this.fieldsPurger.clearHiddenFields(this.form, this.wizard, this.eventTrigger, currentPageId);
|
|
9606
|
+
var nextPage = this.getNextPage({
|
|
9607
|
+
currentPageId: currentPageId,
|
|
9608
|
+
wizard: this.wizard,
|
|
9609
|
+
eventTrigger: this.eventTrigger,
|
|
9610
|
+
form: this.form,
|
|
9611
|
+
});
|
|
9612
|
+
/* istanbul ignore else */
|
|
9613
|
+
if (!nextPage && !this.eventTrigger.show_summary) {
|
|
9614
|
+
this.submitForm({
|
|
9615
|
+
eventTrigger: this.eventTrigger,
|
|
9616
|
+
form: this.form,
|
|
9617
|
+
submit: this.submit,
|
|
9618
|
+
caseDetails: this.caseDetails,
|
|
9619
|
+
});
|
|
9620
|
+
return;
|
|
9621
|
+
}
|
|
9554
9622
|
this.registrarService.reset();
|
|
9555
9623
|
var theQueryParams = {};
|
|
9556
9624
|
theQueryParams[CaseEditComponent.ORIGIN_QUERY_PARAM] = this.navigationOrigin;
|
|
9557
|
-
var nextPage = this.wizard.nextPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(this.eventTrigger, this.form));
|
|
9558
9625
|
return this.router.navigate([nextPage ? nextPage.id : 'submit'], { queryParams: theQueryParams, relativeTo: this.route });
|
|
9559
9626
|
};
|
|
9560
9627
|
CaseEditComponent.prototype.previous = function (currentPageId) {
|
|
9561
9628
|
this.fieldsPurger.clearHiddenFields(this.form, this.wizard, this.eventTrigger, currentPageId);
|
|
9562
9629
|
this.registrarService.reset();
|
|
9563
9630
|
var previousPage = this.wizard.previousPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(this.eventTrigger, this.form));
|
|
9631
|
+
/* istanbul ignore else */
|
|
9564
9632
|
if (!previousPage) {
|
|
9565
9633
|
return Promise.resolve(false);
|
|
9566
9634
|
}
|
|
@@ -9574,119 +9642,342 @@
|
|
|
9574
9642
|
CaseEditComponent.prototype.cancel = function () {
|
|
9575
9643
|
this.cancelled.emit();
|
|
9576
9644
|
};
|
|
9645
|
+
CaseEditComponent.prototype.emitSubmitted = function (response) {
|
|
9646
|
+
this.submitted.emit({ caseId: response['id'], status: this.getStatus(response) });
|
|
9647
|
+
};
|
|
9648
|
+
CaseEditComponent.prototype.getNextPage = function (_a) {
|
|
9649
|
+
var wizard = _a.wizard, currentPageId = _a.currentPageId, eventTrigger = _a.eventTrigger, form = _a.form;
|
|
9650
|
+
return wizard.nextPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(eventTrigger, form));
|
|
9651
|
+
};
|
|
9577
9652
|
CaseEditComponent.prototype.confirm = function (confirmation) {
|
|
9578
9653
|
this.confirmation = confirmation;
|
|
9579
9654
|
return this.router.navigate(['confirm'], { relativeTo: this.route });
|
|
9580
9655
|
};
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9656
|
+
CaseEditComponent.prototype.submitForm = function (_a) {
|
|
9657
|
+
var eventTrigger = _a.eventTrigger, form = _a.form, caseDetails = _a.caseDetails, submit = _a.submit;
|
|
9658
|
+
this.isSubmitting = true;
|
|
9659
|
+
// We have to run the event completion checks if task in session storage
|
|
9660
|
+
// and if the task is in session storage, then is it associated to the case
|
|
9661
|
+
var taskInSessionStorage;
|
|
9662
|
+
var taskStr = this.sessionStorageService.getItem('taskToComplete');
|
|
9663
|
+
if (taskStr) {
|
|
9664
|
+
taskInSessionStorage = JSON.parse(taskStr);
|
|
9589
9665
|
}
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
}
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
}
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9666
|
+
if (taskInSessionStorage && taskInSessionStorage.case_id === this.getCaseId(caseDetails)) {
|
|
9667
|
+
// Show event completion component to perform event completion checks
|
|
9668
|
+
this.eventCompletionParams = ({
|
|
9669
|
+
caseId: this.getCaseId(caseDetails),
|
|
9670
|
+
eventId: this.getEventId(form),
|
|
9671
|
+
task: taskInSessionStorage
|
|
9672
|
+
});
|
|
9673
|
+
this.isEventCompletionChecksRequired = true;
|
|
9674
|
+
}
|
|
9675
|
+
else {
|
|
9676
|
+
// Task not in session storage, proceed to submit
|
|
9677
|
+
var caseEventData = this.generateCaseEventData({
|
|
9678
|
+
eventTrigger: eventTrigger,
|
|
9679
|
+
form: form
|
|
9680
|
+
});
|
|
9681
|
+
this.caseSubmit({ form: form,
|
|
9682
|
+
caseEventData: caseEventData,
|
|
9683
|
+
submit: submit });
|
|
9684
|
+
}
|
|
9685
|
+
};
|
|
9686
|
+
CaseEditComponent.prototype.getCaseId = function (caseDetails) {
|
|
9687
|
+
return (caseDetails ? caseDetails.case_id : '');
|
|
9688
|
+
};
|
|
9689
|
+
CaseEditComponent.prototype.getEventId = function (form) {
|
|
9690
|
+
return form.value.event.id;
|
|
9691
|
+
};
|
|
9692
|
+
CaseEditComponent.prototype.generateCaseEventData = function (_a) {
|
|
9693
|
+
var eventTrigger = _a.eventTrigger, form = _a.form;
|
|
9694
|
+
var caseEventData = {
|
|
9695
|
+
data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(this.replaceHiddenFormValuesWithOriginalCaseData(form.get('data'), eventTrigger.case_fields))),
|
|
9696
|
+
event: form.value.event
|
|
9697
|
+
};
|
|
9698
|
+
this.formValueService.clearNonCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
9699
|
+
this.formValueService.removeNullLabels(caseEventData.data, eventTrigger.case_fields);
|
|
9700
|
+
this.formValueService.removeEmptyDocuments(caseEventData.data, eventTrigger.case_fields);
|
|
9701
|
+
// Remove collection fields that have "min" validation of greater than zero set on the FieldType but are empty;
|
|
9702
|
+
// these will fail validation
|
|
9703
|
+
this.formValueService.removeEmptyCollectionsWithMinValidation(caseEventData.data, eventTrigger.case_fields);
|
|
9704
|
+
// If this is a Case Flag submission (and thus a FlagLauncher field is present in the event trigger), the flag
|
|
9705
|
+
// details data needs populating for each Flags field, then the FlagLauncher field needs removing
|
|
9706
|
+
if (this.isCaseFlagSubmission) {
|
|
9707
|
+
this.formValueService.populateFlagDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
9708
|
+
this.formValueService.removeFlagLauncherField(caseEventData.data, eventTrigger.case_fields);
|
|
9709
|
+
}
|
|
9710
|
+
if (this.isLinkedCasesSubmission) {
|
|
9711
|
+
this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
9712
|
+
this.formValueService.removeComponentLauncherField(caseEventData.data, eventTrigger.case_fields);
|
|
9713
|
+
}
|
|
9714
|
+
caseEventData.event_token = eventTrigger.event_token;
|
|
9715
|
+
caseEventData.ignore_warning = this.ignoreWarning;
|
|
9716
|
+
if (this.confirmation) {
|
|
9717
|
+
caseEventData.data = {};
|
|
9718
|
+
}
|
|
9719
|
+
return caseEventData;
|
|
9720
|
+
};
|
|
9721
|
+
/**
|
|
9722
|
+
* Replaces non-array value objects with `null` for any Complex-type fields whose value is effectively empty, i.e.
|
|
9723
|
+
* all its sub-fields and descendants are `null` or `undefined`.
|
|
9724
|
+
*
|
|
9725
|
+
* @param data The object tree representing all the form field data
|
|
9726
|
+
* @returns The form field data modified accordingly
|
|
9727
|
+
*/
|
|
9728
|
+
CaseEditComponent.prototype.replaceEmptyComplexFieldValues = function (data) {
|
|
9729
|
+
Object.keys(data).forEach(function (key) {
|
|
9730
|
+
if (!Array.isArray(data[key]) && typeof data[key] === 'object' && !FieldsUtils.containsNonEmptyValues(data[key])) {
|
|
9731
|
+
data[key] = null;
|
|
9732
|
+
}
|
|
9733
|
+
});
|
|
9734
|
+
return data;
|
|
9735
|
+
};
|
|
9736
|
+
/**
|
|
9737
|
+
* Traverse *all* values of a {@link FormGroup}, including those for disabled fields (i.e. hidden ones), replacing the
|
|
9738
|
+
* value of any that are hidden AND have `retain_hidden_value` set to `true` in the corresponding `CaseField`, with
|
|
9739
|
+
* the *original* value held in the `CaseField` object.
|
|
9740
|
+
*
|
|
9741
|
+
* This is as per design in EUI-3622, where any user-driven updates to hidden fields with `retain_hidden_value` =
|
|
9742
|
+
* `true` are ignored (thus retaining the value displayed originally).
|
|
9743
|
+
*
|
|
9744
|
+
* * For Complex field types, the replacement above is performed recursively for all hidden sub-fields with
|
|
9745
|
+
* `retain_hidden_value` = `true`.
|
|
9746
|
+
*
|
|
9747
|
+
* * For Collection field types, including collections of Complex and Document field types, the replacement is
|
|
9748
|
+
* performed for all fields in the collection.
|
|
9749
|
+
*
|
|
9750
|
+
* @param formGroup The `FormGroup` instance whose raw values are to be traversed
|
|
9751
|
+
* @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `formGroup`
|
|
9752
|
+
* @param parentField Reference to the parent `CaseField`. Used for retrieving the sub-field values of a Complex field
|
|
9753
|
+
* to perform recursive replacement - the sub-field `CaseField`s themselves do *not* contain any values
|
|
9754
|
+
* @returns An object with the *raw* form value data (as key-value pairs), with any value replacements as necessary
|
|
9755
|
+
*/
|
|
9756
|
+
CaseEditComponent.prototype.replaceHiddenFormValuesWithOriginalCaseData = function (formGroup, caseFields, parentField) {
|
|
9757
|
+
var _this = this;
|
|
9758
|
+
// Get the raw form value data, which includes the values of any disabled controls, as key-value pairs
|
|
9759
|
+
var rawFormValueData = formGroup.getRawValue();
|
|
9760
|
+
// Place all case fields in a lookup object, so they can be retrieved by id
|
|
9761
|
+
var caseFieldsLookup = {};
|
|
9762
|
+
for (var i = 0, len = caseFields.length; i < len; i++) {
|
|
9763
|
+
caseFieldsLookup[caseFields[i].id] = caseFields[i];
|
|
9764
|
+
}
|
|
9765
|
+
/**
|
|
9766
|
+
* Replace any form value with the original, where its CaseField is hidden AND has the retain_hidden_value flag set
|
|
9767
|
+
* to true.
|
|
9768
|
+
*
|
|
9769
|
+
* If the CaseField's `hidden` attribute is null or undefined, then check this attribute in the parent CaseField (if
|
|
9770
|
+
* one exists). This is occurring (and is possibly a bug) when a CaseField is a sub-field of a Complex type, or an
|
|
9771
|
+
* item in a Collection type.
|
|
9772
|
+
*
|
|
9773
|
+
* If the field is a Complex type with retain_hidden_value = true, perform a recursive replacement for all (hidden)
|
|
9774
|
+
* sub-fields with retain_hidden_value = true, using their original CaseField values (from the `formatted_value`
|
|
9775
|
+
* attribute).
|
|
9776
|
+
*
|
|
9777
|
+
* If the field is a Collection type with retain_hidden_value = true, the entire collection is replaced with the
|
|
9778
|
+
* original from `formatted_value`. This applies to *all* types of Collections.
|
|
9779
|
+
*/
|
|
9780
|
+
/* istanbul ignore next */
|
|
9781
|
+
Object.keys(rawFormValueData).forEach(function (key) {
|
|
9782
|
+
var caseField = caseFieldsLookup[key];
|
|
9783
|
+
// If caseField.hidden is NOT truthy and also NOT equal to false, then it must be null/undefined (remember that
|
|
9784
|
+
// both null and undefined are equal to *neither false nor true*)
|
|
9785
|
+
if (caseField && caseField.retain_hidden_value &&
|
|
9786
|
+
(caseField.hidden || (caseField.hidden !== false && parentField && parentField.hidden))) {
|
|
9787
|
+
if (caseField.field_type.type === 'Complex') {
|
|
9788
|
+
// Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
|
|
9789
|
+
// handle both null and undefined values
|
|
9790
|
+
if (caseField.value != null) {
|
|
9791
|
+
// Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
|
|
9792
|
+
// CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
|
|
9793
|
+
// parent)
|
|
9794
|
+
// Update rawFormValueData for this field
|
|
9795
|
+
// creating form group and adding control into it in case caseField is of complext type and and part of formGroup
|
|
9796
|
+
var form_1 = new i2.FormGroup({});
|
|
9797
|
+
if (formGroup.controls[key].value) {
|
|
9798
|
+
Object.keys(formGroup.controls[key].value).forEach(function (item) {
|
|
9799
|
+
form_1.addControl(item, new i2.FormControl(formGroup.controls[key].value[item]));
|
|
9800
|
+
});
|
|
9801
|
+
}
|
|
9802
|
+
rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
|
|
9803
|
+
}
|
|
9804
|
+
}
|
|
9805
|
+
else {
|
|
9806
|
+
// Default case also handles collections of *all* types; the entire collection in rawFormValueData will be
|
|
9807
|
+
// replaced with the original from formatted_value
|
|
9808
|
+
// Use the CaseField's existing *formatted_value* from the parent, if available. (This is necessary for
|
|
9809
|
+
// Complex fields, whose sub-fields do not hold any values in the model.) Otherwise, use formatted_value
|
|
9810
|
+
// from the CaseField itself.
|
|
9811
|
+
if (parentField && parentField.formatted_value) {
|
|
9812
|
+
rawFormValueData[key] = parentField.formatted_value[caseField.id];
|
|
9813
|
+
}
|
|
9814
|
+
else {
|
|
9815
|
+
rawFormValueData[key] = caseField.formatted_value;
|
|
9816
|
+
}
|
|
9817
|
+
}
|
|
9818
|
+
}
|
|
9819
|
+
});
|
|
9820
|
+
return rawFormValueData;
|
|
9821
|
+
};
|
|
9822
|
+
CaseEditComponent.prototype.caseSubmit = function (_a) {
|
|
9823
|
+
var _this = this;
|
|
9824
|
+
var form = _a.form, caseEventData = _a.caseEventData, submit = _a.submit;
|
|
9825
|
+
submit(caseEventData)
|
|
9826
|
+
.subscribe(function (response) {
|
|
9827
|
+
_this.caseNotifier.cachedCaseView = null;
|
|
9828
|
+
_this.sessionStorageService.removeItem('eventUrl');
|
|
9829
|
+
var confirmation = _this.buildConfirmation(response);
|
|
9830
|
+
if (confirmation && (confirmation.getHeader() || confirmation.getBody())) {
|
|
9831
|
+
_this.confirm(confirmation);
|
|
9832
|
+
}
|
|
9833
|
+
else {
|
|
9834
|
+
_this.emitSubmitted(response);
|
|
9835
|
+
}
|
|
9836
|
+
}, function (error) {
|
|
9837
|
+
_this.error = error;
|
|
9838
|
+
_this.callbackErrorsSubject.next(error);
|
|
9839
|
+
/* istanbul ignore else */
|
|
9840
|
+
if (_this.error.details) {
|
|
9841
|
+
_this.formErrorService
|
|
9842
|
+
.mapFieldErrors(_this.error.details.field_errors, form.controls['data'], 'validation');
|
|
9843
|
+
}
|
|
9844
|
+
_this.isSubmitting = false;
|
|
9845
|
+
});
|
|
9846
|
+
};
|
|
9847
|
+
CaseEditComponent.prototype.buildConfirmation = function (response) {
|
|
9848
|
+
if (response['after_submit_callback_response']) {
|
|
9849
|
+
return new Confirmation(response['id'], response['callback_response_status'], response['after_submit_callback_response']['confirmation_header'], response['after_submit_callback_response']['confirmation_body']);
|
|
9850
|
+
}
|
|
9851
|
+
else {
|
|
9852
|
+
return null;
|
|
9853
|
+
}
|
|
9854
|
+
};
|
|
9855
|
+
CaseEditComponent.prototype.onEventCanBeCompleted = function (_a) {
|
|
9856
|
+
var eventTrigger = _a.eventTrigger, eventCanBeCompleted = _a.eventCanBeCompleted, caseDetails = _a.caseDetails, form = _a.form, submit = _a.submit;
|
|
9857
|
+
if (eventCanBeCompleted) {
|
|
9858
|
+
// Submit
|
|
9859
|
+
var caseEventData = this.generateCaseEventData({ eventTrigger: eventTrigger, form: form });
|
|
9860
|
+
this.caseSubmit({ form: form, caseEventData: caseEventData, submit: submit });
|
|
9861
|
+
}
|
|
9862
|
+
else {
|
|
9863
|
+
// Navigate to tasks tab on case details page
|
|
9864
|
+
this.router.navigate(["/cases/case-details/" + this.getCaseId(caseDetails) + "/tasks"], { relativeTo: this.route });
|
|
9865
|
+
}
|
|
9866
|
+
};
|
|
9867
|
+
CaseEditComponent.prototype.getStatus = function (response) {
|
|
9868
|
+
return this.hasCallbackFailed(response) ? response['callback_response_status'] : response['delete_draft_response_status'];
|
|
9869
|
+
};
|
|
9870
|
+
CaseEditComponent.prototype.hasCallbackFailed = function (response) {
|
|
9871
|
+
return response['callback_response_status'] !== 'CALLBACK_COMPLETED';
|
|
9872
|
+
};
|
|
9873
|
+
return CaseEditComponent;
|
|
9874
|
+
}());
|
|
9875
|
+
CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
9876
|
+
CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
|
|
9877
|
+
CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(FieldsPurger), i0__namespace.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0__namespace.ɵɵdirectiveInject(WizardFactoryService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService)); };
|
|
9878
|
+
CaseEditComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditComponent, selectors: [["ccd-case-edit"]], inputs: { eventTrigger: "eventTrigger", submit: "submit", validate: "validate", saveDraft: "saveDraft", caseDetails: "caseDetails" }, outputs: { cancelled: "cancelled", submitted: "submitted" }, features: [i0__namespace.ɵɵProvidersFeature([GreyBarService])], decls: 1, vars: 0, template: function CaseEditComponent_Template(rf, ctx) {
|
|
9879
|
+
if (rf & 1) {
|
|
9880
|
+
i0__namespace.ɵɵelement(0, "router-outlet");
|
|
9881
|
+
}
|
|
9882
|
+
}, directives: [i1__namespace$1.RouterOutlet], styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:1px solid #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:0}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
|
|
9883
|
+
(function () {
|
|
9884
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEditComponent, [{
|
|
9885
|
+
type: i0.Component,
|
|
9886
|
+
args: [{
|
|
9887
|
+
selector: 'ccd-case-edit',
|
|
9888
|
+
templateUrl: 'case-edit.component.html',
|
|
9889
|
+
styleUrls: ['../case-edit.scss'],
|
|
9890
|
+
providers: [GreyBarService]
|
|
9891
|
+
}]
|
|
9892
|
+
}], function () { return [{ type: i2__namespace.FormBuilder }, { type: CaseNotifier }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }, { type: FormValueService }, { type: FormErrorService }]; }, { eventTrigger: [{
|
|
9893
|
+
type: i0.Input
|
|
9894
|
+
}], submit: [{
|
|
9895
|
+
type: i0.Input
|
|
9896
|
+
}], validate: [{
|
|
9897
|
+
type: i0.Input
|
|
9898
|
+
}], saveDraft: [{
|
|
9899
|
+
type: i0.Input
|
|
9900
|
+
}], caseDetails: [{
|
|
9901
|
+
type: i0.Input
|
|
9902
|
+
}], cancelled: [{
|
|
9903
|
+
type: i0.Output
|
|
9904
|
+
}], submitted: [{
|
|
9905
|
+
type: i0.Output
|
|
9906
|
+
}] });
|
|
9907
|
+
})();
|
|
9908
|
+
|
|
9909
|
+
function CaseEditConfirmComponent_div_2_Template(rf, ctx) {
|
|
9910
|
+
if (rf & 1) {
|
|
9911
|
+
i0__namespace.ɵɵelement(0, "div");
|
|
9912
|
+
}
|
|
9913
|
+
}
|
|
9914
|
+
function CaseEditConfirmComponent_ng_template_3_Template(rf, ctx) {
|
|
9915
|
+
if (rf & 1) {
|
|
9916
|
+
i0__namespace.ɵɵelement(0, "ccd-markdown", 8);
|
|
9917
|
+
i0__namespace.ɵɵpipe(1, "ccdCaseTitle");
|
|
9918
|
+
}
|
|
9919
|
+
if (rf & 2) {
|
|
9920
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
9921
|
+
i0__namespace.ɵɵproperty("content", i0__namespace.ɵɵpipeBind3(1, 1, ctx_r2.getCaseTitle(), ctx_r2.caseFields, ctx_r2.editForm.controls["data"]));
|
|
9922
|
+
}
|
|
9923
|
+
}
|
|
9924
|
+
function CaseEditConfirmComponent_ng_template_5_h2_0_Template(rf, ctx) {
|
|
9925
|
+
if (rf & 1) {
|
|
9926
|
+
i0__namespace.ɵɵelementStart(0, "h2", 10);
|
|
9927
|
+
i0__namespace.ɵɵtext(1);
|
|
9928
|
+
i0__namespace.ɵɵpipe(2, "ccdCaseReference");
|
|
9929
|
+
i0__namespace.ɵɵelementEnd();
|
|
9930
|
+
}
|
|
9931
|
+
if (rf & 2) {
|
|
9932
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
9933
|
+
i0__namespace.ɵɵadvance(1);
|
|
9934
|
+
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r7.getCaseId()), "");
|
|
9935
|
+
}
|
|
9936
|
+
}
|
|
9937
|
+
function CaseEditConfirmComponent_ng_template_5_Template(rf, ctx) {
|
|
9938
|
+
if (rf & 1) {
|
|
9939
|
+
i0__namespace.ɵɵtemplate(0, CaseEditConfirmComponent_ng_template_5_h2_0_Template, 3, 3, "h2", 9);
|
|
9940
|
+
}
|
|
9941
|
+
if (rf & 2) {
|
|
9942
|
+
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
9943
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r4.getCaseId());
|
|
9944
|
+
}
|
|
9945
|
+
}
|
|
9946
|
+
function CaseEditConfirmComponent_div_8_Template(rf, ctx) {
|
|
9947
|
+
if (rf & 1) {
|
|
9948
|
+
i0__namespace.ɵɵelementStart(0, "div", 11);
|
|
9949
|
+
i0__namespace.ɵɵelement(1, "ccd-markdown", 8);
|
|
9950
|
+
i0__namespace.ɵɵelementEnd();
|
|
9951
|
+
}
|
|
9952
|
+
if (rf & 2) {
|
|
9953
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext();
|
|
9954
|
+
i0__namespace.ɵɵadvance(1);
|
|
9955
|
+
i0__namespace.ɵɵproperty("content", ctx_r5.confirmation.getHeader());
|
|
9956
|
+
}
|
|
9957
|
+
}
|
|
9958
|
+
function CaseEditConfirmComponent_div_9_Template(rf, ctx) {
|
|
9959
|
+
if (rf & 1) {
|
|
9960
|
+
i0__namespace.ɵɵelementStart(0, "div", 12);
|
|
9961
|
+
i0__namespace.ɵɵelement(1, "ccd-markdown", 8);
|
|
9962
|
+
i0__namespace.ɵɵelementEnd();
|
|
9963
|
+
}
|
|
9964
|
+
if (rf & 2) {
|
|
9965
|
+
var ctx_r6 = i0__namespace.ɵɵnextContext();
|
|
9966
|
+
i0__namespace.ɵɵadvance(1);
|
|
9967
|
+
i0__namespace.ɵɵproperty("content", ctx_r6.confirmation.getBody());
|
|
9968
|
+
}
|
|
9969
|
+
}
|
|
9970
|
+
var CaseEditConfirmComponent = /** @class */ (function () {
|
|
9971
|
+
function CaseEditConfirmComponent(caseEdit, router) {
|
|
9972
|
+
this.caseEdit = caseEdit;
|
|
9973
|
+
this.router = router;
|
|
9974
|
+
this.triggerText = 'Close and Return to case details';
|
|
9975
|
+
this.formGroup = new i2.FormControl();
|
|
9976
|
+
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
9685
9977
|
this.editForm = this.caseEdit.form;
|
|
9686
9978
|
this.caseFields = this.getCaseFields();
|
|
9687
9979
|
if (this.caseEdit.confirmation) {
|
|
9688
9980
|
this.confirmation = this.caseEdit.confirmation;
|
|
9689
|
-
this.caseId = this.caseEdit.confirmation.getCaseId();
|
|
9690
9981
|
}
|
|
9691
9982
|
else {
|
|
9692
9983
|
this.router.navigate(['/']);
|
|
@@ -9696,7 +9987,8 @@
|
|
|
9696
9987
|
this.caseEdit.submitted.emit({ caseId: this.confirmation.getCaseId(), status: this.confirmation.getStatus() });
|
|
9697
9988
|
};
|
|
9698
9989
|
CaseEditConfirmComponent.prototype.getCaseId = function () {
|
|
9699
|
-
|
|
9990
|
+
var _a, _b;
|
|
9991
|
+
return ((_b = (_a = this.caseEdit) === null || _a === void 0 ? void 0 : _a.caseDetails) === null || _b === void 0 ? void 0 : _b.case_id) || '';
|
|
9700
9992
|
};
|
|
9701
9993
|
CaseEditConfirmComponent.prototype.getCaseTitle = function () {
|
|
9702
9994
|
return (this.caseEdit.caseDetails && this.caseEdit.caseDetails.state &&
|
|
@@ -9992,14 +10284,14 @@
|
|
|
9992
10284
|
this.title$ = new rxjs.BehaviorSubject(null);
|
|
9993
10285
|
this.formValidationErrors$ = new rxjs.BehaviorSubject([]);
|
|
9994
10286
|
this.editForm$ = new rxjs.BehaviorSubject(null);
|
|
9995
|
-
this.
|
|
10287
|
+
this.isLinkedCasesJourneyAtFinalStep$ = new rxjs.BehaviorSubject(null);
|
|
9996
10288
|
this.eventTriggerName$ = new rxjs.BehaviorSubject(null);
|
|
9997
10289
|
this.triggerSubmitEvent$ = new rxjs.BehaviorSubject(null);
|
|
9998
10290
|
this.caseDetails$ = this.details$.asObservable();
|
|
9999
10291
|
this.caseTitle$ = this.title$.asObservable();
|
|
10000
10292
|
this.caseEditForm$ = this.editForm$.asObservable();
|
|
10001
10293
|
this.caseFormValidationErrors$ = this.formValidationErrors$.asObservable();
|
|
10002
|
-
this.
|
|
10294
|
+
this.caseIsLinkedCasesJourneyAtFinalStep$ = this.isLinkedCasesJourneyAtFinalStep$.asObservable();
|
|
10003
10295
|
this.caseEventTriggerName$ = this.eventTriggerName$.asObservable();
|
|
10004
10296
|
this.caseTriggerSubmitEvent$ = this.triggerSubmitEvent$.asObservable();
|
|
10005
10297
|
}
|
|
@@ -10012,9 +10304,6 @@
|
|
|
10012
10304
|
CaseEditDataService.prototype.setCaseEventTriggerName = function (triggerName) {
|
|
10013
10305
|
this.eventTriggerName$.next(triggerName);
|
|
10014
10306
|
};
|
|
10015
|
-
CaseEditDataService.prototype.setCaseLinkError = function (error) {
|
|
10016
|
-
this.linkError$.next(error);
|
|
10017
|
-
};
|
|
10018
10307
|
CaseEditDataService.prototype.setFormValidationErrors = function (validationErrors) {
|
|
10019
10308
|
this.formValidationErrors$.next(validationErrors);
|
|
10020
10309
|
};
|
|
@@ -10024,8 +10313,8 @@
|
|
|
10024
10313
|
CaseEditDataService.prototype.clearFormValidationErrors = function () {
|
|
10025
10314
|
this.formValidationErrors$.next([]);
|
|
10026
10315
|
};
|
|
10027
|
-
CaseEditDataService.prototype.
|
|
10028
|
-
this.
|
|
10316
|
+
CaseEditDataService.prototype.setLinkedCasesJourneyAtFinalStep = function (isAtFinalStep) {
|
|
10317
|
+
this.isLinkedCasesJourneyAtFinalStep$.next(isAtFinalStep);
|
|
10029
10318
|
};
|
|
10030
10319
|
CaseEditDataService.prototype.addFormValidationError = function (validationError) {
|
|
10031
10320
|
this.formValidationErrors$.next(this.formValidationErrors$.getValue().concat([validationError]));
|
|
@@ -10064,39 +10353,39 @@
|
|
|
10064
10353
|
}
|
|
10065
10354
|
function CaseEditPageComponent_ng_container_1_h1_1_Template(rf, ctx) {
|
|
10066
10355
|
if (rf & 1) {
|
|
10067
|
-
i0__namespace.ɵɵelementStart(0, "h1",
|
|
10356
|
+
i0__namespace.ɵɵelementStart(0, "h1", 11);
|
|
10068
10357
|
i0__namespace.ɵɵtext(1);
|
|
10069
10358
|
i0__namespace.ɵɵelementEnd();
|
|
10070
10359
|
}
|
|
10071
10360
|
if (rf & 2) {
|
|
10072
|
-
var
|
|
10361
|
+
var ctx_r10 = i0__namespace.ɵɵnextContext(2);
|
|
10073
10362
|
i0__namespace.ɵɵadvance(1);
|
|
10074
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10363
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r10.eventTrigger.name);
|
|
10075
10364
|
}
|
|
10076
10365
|
}
|
|
10077
10366
|
function CaseEditPageComponent_ng_container_1_ng_container_2_Template(rf, ctx) {
|
|
10078
10367
|
if (rf & 1) {
|
|
10079
10368
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
10080
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
10369
|
+
i0__namespace.ɵɵelementStart(1, "span", 12);
|
|
10081
10370
|
i0__namespace.ɵɵtext(2);
|
|
10082
10371
|
i0__namespace.ɵɵelementEnd();
|
|
10083
|
-
i0__namespace.ɵɵelementStart(3, "h1",
|
|
10372
|
+
i0__namespace.ɵɵelementStart(3, "h1", 11);
|
|
10084
10373
|
i0__namespace.ɵɵtext(4);
|
|
10085
10374
|
i0__namespace.ɵɵelementEnd();
|
|
10086
10375
|
i0__namespace.ɵɵelementContainerEnd();
|
|
10087
10376
|
}
|
|
10088
10377
|
if (rf & 2) {
|
|
10089
|
-
var
|
|
10378
|
+
var ctx_r11 = i0__namespace.ɵɵnextContext(2);
|
|
10090
10379
|
i0__namespace.ɵɵadvance(2);
|
|
10091
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10380
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r11.eventTrigger.name);
|
|
10092
10381
|
i0__namespace.ɵɵadvance(2);
|
|
10093
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10382
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r11.currentPage.label);
|
|
10094
10383
|
}
|
|
10095
10384
|
}
|
|
10096
10385
|
function CaseEditPageComponent_ng_container_1_Template(rf, ctx) {
|
|
10097
10386
|
if (rf & 1) {
|
|
10098
10387
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
10099
|
-
i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_h1_1_Template, 2, 1, "h1",
|
|
10388
|
+
i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_h1_1_Template, 2, 1, "h1", 10);
|
|
10100
10389
|
i0__namespace.ɵɵtemplate(2, CaseEditPageComponent_ng_container_1_ng_container_2_Template, 5, 2, "ng-container", 0);
|
|
10101
10390
|
i0__namespace.ɵɵelementContainerEnd();
|
|
10102
10391
|
}
|
|
@@ -10115,7 +10404,7 @@
|
|
|
10115
10404
|
}
|
|
10116
10405
|
function CaseEditPageComponent_ng_template_3_Template(rf, ctx) {
|
|
10117
10406
|
if (rf & 1) {
|
|
10118
|
-
i0__namespace.ɵɵelement(0, "ccd-markdown",
|
|
10407
|
+
i0__namespace.ɵɵelement(0, "ccd-markdown", 13);
|
|
10119
10408
|
i0__namespace.ɵɵpipe(1, "ccdCaseTitle");
|
|
10120
10409
|
}
|
|
10121
10410
|
if (rf & 2) {
|
|
@@ -10125,20 +10414,20 @@
|
|
|
10125
10414
|
}
|
|
10126
10415
|
function CaseEditPageComponent_ng_template_5_h2_0_Template(rf, ctx) {
|
|
10127
10416
|
if (rf & 1) {
|
|
10128
|
-
i0__namespace.ɵɵelementStart(0, "h2",
|
|
10417
|
+
i0__namespace.ɵɵelementStart(0, "h2", 15);
|
|
10129
10418
|
i0__namespace.ɵɵtext(1);
|
|
10130
10419
|
i0__namespace.ɵɵpipe(2, "ccdCaseReference");
|
|
10131
10420
|
i0__namespace.ɵɵelementEnd();
|
|
10132
10421
|
}
|
|
10133
10422
|
if (rf & 2) {
|
|
10134
|
-
var
|
|
10423
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(2);
|
|
10135
10424
|
i0__namespace.ɵɵadvance(1);
|
|
10136
|
-
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1,
|
|
10425
|
+
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r12.getCaseId()), "");
|
|
10137
10426
|
}
|
|
10138
10427
|
}
|
|
10139
10428
|
function CaseEditPageComponent_ng_template_5_Template(rf, ctx) {
|
|
10140
10429
|
if (rf & 1) {
|
|
10141
|
-
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_template_5_h2_0_Template, 3, 3, "h2",
|
|
10430
|
+
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_template_5_h2_0_Template, 3, 3, "h2", 14);
|
|
10142
10431
|
}
|
|
10143
10432
|
if (rf & 2) {
|
|
10144
10433
|
var ctx_r6 = i0__namespace.ɵɵnextContext();
|
|
@@ -10147,12 +10436,12 @@
|
|
|
10147
10436
|
}
|
|
10148
10437
|
function CaseEditPageComponent_div_7_div_3_Template(rf, ctx) {
|
|
10149
10438
|
if (rf & 1) {
|
|
10150
|
-
var
|
|
10151
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
10152
|
-
i0__namespace.ɵɵelementStart(1, "ul",
|
|
10439
|
+
var _r16_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10440
|
+
i0__namespace.ɵɵelementStart(0, "div", 19);
|
|
10441
|
+
i0__namespace.ɵɵelementStart(1, "ul", 20);
|
|
10153
10442
|
i0__namespace.ɵɵelementStart(2, "li");
|
|
10154
|
-
i0__namespace.ɵɵelementStart(3, "a",
|
|
10155
|
-
i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_div_7_div_3_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(
|
|
10443
|
+
i0__namespace.ɵɵelementStart(3, "a", 21);
|
|
10444
|
+
i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_div_7_div_3_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r16_1); var validationError_r14 = ctx.$implicit; var ctx_r15 = i0__namespace.ɵɵnextContext(2); return ctx_r15.navigateToErrorElement(validationError_r14.id); });
|
|
10156
10445
|
i0__namespace.ɵɵtext(4);
|
|
10157
10446
|
i0__namespace.ɵɵelementEnd();
|
|
10158
10447
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -10160,18 +10449,18 @@
|
|
|
10160
10449
|
i0__namespace.ɵɵelementEnd();
|
|
10161
10450
|
}
|
|
10162
10451
|
if (rf & 2) {
|
|
10163
|
-
var
|
|
10452
|
+
var validationError_r14 = ctx.$implicit;
|
|
10164
10453
|
i0__namespace.ɵɵadvance(4);
|
|
10165
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10454
|
+
i0__namespace.ɵɵtextInterpolate(validationError_r14.message);
|
|
10166
10455
|
}
|
|
10167
10456
|
}
|
|
10168
10457
|
function CaseEditPageComponent_div_7_Template(rf, ctx) {
|
|
10169
10458
|
if (rf & 1) {
|
|
10170
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
10171
|
-
i0__namespace.ɵɵelementStart(1, "h2",
|
|
10459
|
+
i0__namespace.ɵɵelementStart(0, "div", 16);
|
|
10460
|
+
i0__namespace.ɵɵelementStart(1, "h2", 17);
|
|
10172
10461
|
i0__namespace.ɵɵtext(2, " There is a problem ");
|
|
10173
10462
|
i0__namespace.ɵɵelementEnd();
|
|
10174
|
-
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_div_7_div_3_Template, 5, 1, "div",
|
|
10463
|
+
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_div_7_div_3_Template, 5, 1, "div", 18);
|
|
10175
10464
|
i0__namespace.ɵɵelementEnd();
|
|
10176
10465
|
}
|
|
10177
10466
|
if (rf & 2) {
|
|
@@ -10180,144 +10469,92 @@
|
|
|
10180
10469
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r7.validationErrors);
|
|
10181
10470
|
}
|
|
10182
10471
|
}
|
|
10183
|
-
function
|
|
10184
|
-
if (rf & 1) {
|
|
10185
|
-
i0__namespace.ɵɵelementStart(0, "div", 21);
|
|
10186
|
-
i0__namespace.ɵɵelementStart(1, "h1", 22);
|
|
10187
|
-
i0__namespace.ɵɵtext(2, " Something went wrong ");
|
|
10188
|
-
i0__namespace.ɵɵelementEnd();
|
|
10189
|
-
i0__namespace.ɵɵelementStart(3, "div", 23);
|
|
10190
|
-
i0__namespace.ɵɵelementStart(4, "p");
|
|
10191
|
-
i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
|
|
10192
|
-
i0__namespace.ɵɵelementEnd();
|
|
10193
|
-
i0__namespace.ɵɵelementStart(6, "p");
|
|
10194
|
-
i0__namespace.ɵɵelementStart(7, "a", 24);
|
|
10195
|
-
i0__namespace.ɵɵtext(8, "Contact us");
|
|
10196
|
-
i0__namespace.ɵɵelementEnd();
|
|
10197
|
-
i0__namespace.ɵɵtext(9, " if you're still having problems.");
|
|
10198
|
-
i0__namespace.ɵɵelementEnd();
|
|
10199
|
-
i0__namespace.ɵɵelementEnd();
|
|
10200
|
-
i0__namespace.ɵɵelementEnd();
|
|
10201
|
-
}
|
|
10202
|
-
}
|
|
10203
|
-
function CaseEditPageComponent_div_9_ul_5_li_1_Template(rf, ctx) {
|
|
10204
|
-
if (rf & 1) {
|
|
10205
|
-
i0__namespace.ɵɵelementStart(0, "li", 29);
|
|
10206
|
-
i0__namespace.ɵɵtext(1);
|
|
10207
|
-
i0__namespace.ɵɵelementEnd();
|
|
10208
|
-
}
|
|
10209
|
-
if (rf & 2) {
|
|
10210
|
-
var fieldError_r20 = ctx.$implicit;
|
|
10211
|
-
i0__namespace.ɵɵadvance(1);
|
|
10212
|
-
i0__namespace.ɵɵtextInterpolate(fieldError_r20.message);
|
|
10213
|
-
}
|
|
10214
|
-
}
|
|
10215
|
-
function CaseEditPageComponent_div_9_ul_5_Template(rf, ctx) {
|
|
10216
|
-
if (rf & 1) {
|
|
10217
|
-
i0__namespace.ɵɵelementStart(0, "ul", 27);
|
|
10218
|
-
i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_div_9_ul_5_li_1_Template, 2, 1, "li", 28);
|
|
10219
|
-
i0__namespace.ɵɵelementEnd();
|
|
10220
|
-
}
|
|
10221
|
-
if (rf & 2) {
|
|
10222
|
-
var ctx_r18 = i0__namespace.ɵɵnextContext(2);
|
|
10223
|
-
i0__namespace.ɵɵadvance(1);
|
|
10224
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r18.error.details.field_errors);
|
|
10225
|
-
}
|
|
10226
|
-
}
|
|
10227
|
-
function CaseEditPageComponent_div_9_Template(rf, ctx) {
|
|
10228
|
-
if (rf & 1) {
|
|
10229
|
-
i0__namespace.ɵɵelementStart(0, "div", 21);
|
|
10230
|
-
i0__namespace.ɵɵelementStart(1, "h3", 25);
|
|
10231
|
-
i0__namespace.ɵɵtext(2, " The event could not be created ");
|
|
10232
|
-
i0__namespace.ɵɵelementEnd();
|
|
10233
|
-
i0__namespace.ɵɵelementStart(3, "p");
|
|
10234
|
-
i0__namespace.ɵɵtext(4);
|
|
10235
|
-
i0__namespace.ɵɵelementEnd();
|
|
10236
|
-
i0__namespace.ɵɵtemplate(5, CaseEditPageComponent_div_9_ul_5_Template, 2, 1, "ul", 26);
|
|
10237
|
-
i0__namespace.ɵɵelementEnd();
|
|
10238
|
-
}
|
|
10239
|
-
if (rf & 2) {
|
|
10240
|
-
var ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
10241
|
-
i0__namespace.ɵɵadvance(4);
|
|
10242
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r9.error.message);
|
|
10243
|
-
i0__namespace.ɵɵadvance(1);
|
|
10244
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r9.error.details == null ? null : ctx_r9.error.details.field_errors);
|
|
10245
|
-
}
|
|
10246
|
-
}
|
|
10247
|
-
function CaseEditPageComponent_form_12_ccd_case_edit_form_3_Template(rf, ctx) {
|
|
10472
|
+
function CaseEditPageComponent_form_11_ccd_case_edit_form_3_Template(rf, ctx) {
|
|
10248
10473
|
if (rf & 1) {
|
|
10249
|
-
var
|
|
10250
|
-
i0__namespace.ɵɵelementStart(0, "ccd-case-edit-form",
|
|
10251
|
-
i0__namespace.ɵɵlistener("valuesChanged", function
|
|
10474
|
+
var _r20_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10475
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-edit-form", 32);
|
|
10476
|
+
i0__namespace.ɵɵlistener("valuesChanged", function CaseEditPageComponent_form_11_ccd_case_edit_form_3_Template_ccd_case_edit_form_valuesChanged_0_listener($event) { i0__namespace.ɵɵrestoreView(_r20_1); var ctx_r19 = i0__namespace.ɵɵnextContext(2); return ctx_r19.applyValuesChanged($event); });
|
|
10252
10477
|
i0__namespace.ɵɵelementEnd();
|
|
10253
10478
|
}
|
|
10254
10479
|
if (rf & 2) {
|
|
10255
|
-
var
|
|
10256
|
-
i0__namespace.ɵɵproperty("fields",
|
|
10480
|
+
var ctx_r17 = i0__namespace.ɵɵnextContext(2);
|
|
10481
|
+
i0__namespace.ɵɵproperty("fields", ctx_r17.currentPage.getCol1Fields())("formGroup", ctx_r17.editForm.controls["data"])("caseFields", ctx_r17.caseFields)("pageChangeSubject", ctx_r17.pageChangeSubject);
|
|
10257
10482
|
}
|
|
10258
10483
|
}
|
|
10259
|
-
function
|
|
10484
|
+
function CaseEditPageComponent_form_11_div_4_Template(rf, ctx) {
|
|
10260
10485
|
if (rf & 1) {
|
|
10261
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
10262
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
10263
|
-
i0__namespace.ɵɵelement(2, "ccd-case-edit-form",
|
|
10486
|
+
i0__namespace.ɵɵelementStart(0, "div", 33);
|
|
10487
|
+
i0__namespace.ɵɵelementStart(1, "div", 34);
|
|
10488
|
+
i0__namespace.ɵɵelement(2, "ccd-case-edit-form", 35);
|
|
10264
10489
|
i0__namespace.ɵɵelementEnd();
|
|
10265
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
10266
|
-
i0__namespace.ɵɵelement(4, "ccd-case-edit-form",
|
|
10490
|
+
i0__namespace.ɵɵelementStart(3, "div", 36);
|
|
10491
|
+
i0__namespace.ɵɵelement(4, "ccd-case-edit-form", 37);
|
|
10267
10492
|
i0__namespace.ɵɵelementEnd();
|
|
10268
10493
|
i0__namespace.ɵɵelementEnd();
|
|
10269
10494
|
}
|
|
10270
10495
|
if (rf & 2) {
|
|
10271
|
-
var
|
|
10496
|
+
var ctx_r18 = i0__namespace.ɵɵnextContext(2);
|
|
10272
10497
|
i0__namespace.ɵɵadvance(2);
|
|
10273
|
-
i0__namespace.ɵɵproperty("fields",
|
|
10498
|
+
i0__namespace.ɵɵproperty("fields", ctx_r18.currentPage.getCol1Fields())("formGroup", ctx_r18.editForm.controls["data"])("caseFields", ctx_r18.caseFields);
|
|
10274
10499
|
i0__namespace.ɵɵadvance(2);
|
|
10275
|
-
i0__namespace.ɵɵproperty("fields",
|
|
10500
|
+
i0__namespace.ɵɵproperty("fields", ctx_r18.currentPage.getCol2Fields())("formGroup", ctx_r18.editForm.controls["data"])("caseFields", ctx_r18.caseFields);
|
|
10276
10501
|
}
|
|
10277
10502
|
}
|
|
10278
|
-
function
|
|
10503
|
+
function CaseEditPageComponent_form_11_Template(rf, ctx) {
|
|
10279
10504
|
if (rf & 1) {
|
|
10280
|
-
var
|
|
10281
|
-
i0__namespace.ɵɵelementStart(0, "form",
|
|
10282
|
-
i0__namespace.ɵɵlistener("submit", function
|
|
10283
|
-
i0__namespace.ɵɵelementStart(1, "fieldset",
|
|
10284
|
-
i0__namespace.ɵɵelement(2, "legend",
|
|
10285
|
-
i0__namespace.ɵɵtemplate(3,
|
|
10286
|
-
i0__namespace.ɵɵtemplate(4,
|
|
10287
|
-
i0__namespace.ɵɵelementEnd();
|
|
10288
|
-
i0__namespace.ɵɵelementStart(5, "div",
|
|
10289
|
-
i0__namespace.ɵɵelementStart(6, "button",
|
|
10290
|
-
i0__namespace.ɵɵlistener("click", function
|
|
10505
|
+
var _r22_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10506
|
+
i0__namespace.ɵɵelementStart(0, "form", 22);
|
|
10507
|
+
i0__namespace.ɵɵlistener("submit", function CaseEditPageComponent_form_11_Template_form_submit_0_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var ctx_r21 = i0__namespace.ɵɵnextContext(); return ctx_r21.submit(); });
|
|
10508
|
+
i0__namespace.ɵɵelementStart(1, "fieldset", 23);
|
|
10509
|
+
i0__namespace.ɵɵelement(2, "legend", 24);
|
|
10510
|
+
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_form_11_ccd_case_edit_form_3_Template, 1, 4, "ccd-case-edit-form", 25);
|
|
10511
|
+
i0__namespace.ɵɵtemplate(4, CaseEditPageComponent_form_11_div_4_Template, 5, 6, "div", 26);
|
|
10512
|
+
i0__namespace.ɵɵelementEnd();
|
|
10513
|
+
i0__namespace.ɵɵelementStart(5, "div", 27);
|
|
10514
|
+
i0__namespace.ɵɵelementStart(6, "button", 28);
|
|
10515
|
+
i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_form_11_Template_button_click_6_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var ctx_r23 = i0__namespace.ɵɵnextContext(); return ctx_r23.toPreviousPage(); });
|
|
10291
10516
|
i0__namespace.ɵɵpipe(7, "async");
|
|
10292
10517
|
i0__namespace.ɵɵtext(8, " Previous ");
|
|
10293
10518
|
i0__namespace.ɵɵelementEnd();
|
|
10294
|
-
i0__namespace.ɵɵelementStart(9, "button",
|
|
10519
|
+
i0__namespace.ɵɵelementStart(9, "button", 29);
|
|
10295
10520
|
i0__namespace.ɵɵtext(10);
|
|
10296
10521
|
i0__namespace.ɵɵelementEnd();
|
|
10297
10522
|
i0__namespace.ɵɵelementEnd();
|
|
10298
|
-
i0__namespace.ɵɵelementStart(11, "p",
|
|
10299
|
-
i0__namespace.ɵɵelementStart(12, "a",
|
|
10300
|
-
i0__namespace.ɵɵlistener("click", function
|
|
10523
|
+
i0__namespace.ɵɵelementStart(11, "p", 30);
|
|
10524
|
+
i0__namespace.ɵɵelementStart(12, "a", 31);
|
|
10525
|
+
i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_form_11_Template_a_click_12_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var ctx_r24 = i0__namespace.ɵɵnextContext(); return ctx_r24.cancel(); });
|
|
10301
10526
|
i0__namespace.ɵɵtext(13);
|
|
10302
10527
|
i0__namespace.ɵɵelementEnd();
|
|
10303
10528
|
i0__namespace.ɵɵelementEnd();
|
|
10304
10529
|
i0__namespace.ɵɵelementEnd();
|
|
10305
10530
|
}
|
|
10306
10531
|
if (rf & 2) {
|
|
10307
|
-
var
|
|
10308
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
10532
|
+
var ctx_r8 = i0__namespace.ɵɵnextContext();
|
|
10533
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r8.editForm);
|
|
10309
10534
|
i0__namespace.ɵɵadvance(3);
|
|
10310
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
10535
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r8.currentPage.isMultiColumn());
|
|
10311
10536
|
i0__namespace.ɵɵadvance(1);
|
|
10312
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
10537
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r8.currentPage.isMultiColumn());
|
|
10313
10538
|
i0__namespace.ɵɵadvance(2);
|
|
10314
|
-
i0__namespace.ɵɵproperty("disabled", !i0__namespace.ɵɵpipeBind1(7, 7,
|
|
10539
|
+
i0__namespace.ɵɵproperty("disabled", !i0__namespace.ɵɵpipeBind1(7, 7, ctx_r8.hasPreviousPage$));
|
|
10315
10540
|
i0__namespace.ɵɵadvance(3);
|
|
10316
|
-
i0__namespace.ɵɵproperty("disabled",
|
|
10541
|
+
i0__namespace.ɵɵproperty("disabled", ctx_r8.submitting());
|
|
10317
10542
|
i0__namespace.ɵɵadvance(1);
|
|
10318
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10543
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r8.triggerText);
|
|
10319
10544
|
i0__namespace.ɵɵadvance(3);
|
|
10320
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10545
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r8.getCancelText());
|
|
10546
|
+
}
|
|
10547
|
+
}
|
|
10548
|
+
function CaseEditPageComponent_ccd_case_event_completion_12_Template(rf, ctx) {
|
|
10549
|
+
if (rf & 1) {
|
|
10550
|
+
var _r26_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10551
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 38);
|
|
10552
|
+
i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_12_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r26_1); var ctx_r25 = i0__namespace.ɵɵnextContext(); return ctx_r25.onEventCanBeCompleted($event); });
|
|
10553
|
+
i0__namespace.ɵɵelementEnd();
|
|
10554
|
+
}
|
|
10555
|
+
if (rf & 2) {
|
|
10556
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
10557
|
+
i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r9.caseEdit.eventCompletionParams);
|
|
10321
10558
|
}
|
|
10322
10559
|
}
|
|
10323
10560
|
var CaseEditPageComponent = /** @class */ (function () {
|
|
@@ -10331,15 +10568,13 @@
|
|
|
10331
10568
|
this.dialog = dialog;
|
|
10332
10569
|
this.caseFieldService = caseFieldService;
|
|
10333
10570
|
this.caseEditDataService = caseEditDataService;
|
|
10334
|
-
this.callbackErrorsSubject = new rxjs.Subject();
|
|
10335
|
-
this.ignoreWarning = false;
|
|
10336
10571
|
this.triggerTextStart = CaseEditPageComponent.TRIGGER_TEXT_START;
|
|
10337
10572
|
this.triggerTextIgnoreWarnings = CaseEditPageComponent.TRIGGER_TEXT_CONTINUE;
|
|
10338
|
-
this.isSubmitting = false;
|
|
10339
10573
|
this.formValuesChanged = false;
|
|
10340
10574
|
this.pageChangeSubject = new rxjs.Subject();
|
|
10341
10575
|
this.validationErrors = [];
|
|
10342
10576
|
this.hasPreviousPage$ = new rxjs.BehaviorSubject(false);
|
|
10577
|
+
this.callbackErrorsSubject = new rxjs.Subject();
|
|
10343
10578
|
}
|
|
10344
10579
|
CaseEditPageComponent.scrollToTop = function () {
|
|
10345
10580
|
window.scrollTo(0, 0);
|
|
@@ -10357,12 +10592,13 @@
|
|
|
10357
10592
|
this.editForm = this.caseEdit.form;
|
|
10358
10593
|
this.wizard = this.caseEdit.wizard;
|
|
10359
10594
|
this.caseFields = this.getCaseFields();
|
|
10360
|
-
this.triggerText = this.getTriggerText();
|
|
10361
10595
|
this.syncCaseEditDataService();
|
|
10362
10596
|
this.route.params
|
|
10363
10597
|
.subscribe(function (params) {
|
|
10598
|
+
var _a, _b;
|
|
10364
10599
|
var pageId = params['page'];
|
|
10365
|
-
|
|
10600
|
+
/* istanbul ignore else */
|
|
10601
|
+
if (!_this.currentPage || pageId !== ((_a = _this.currentPage) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
10366
10602
|
var page = _this.caseEdit.getPage(pageId);
|
|
10367
10603
|
if (page) {
|
|
10368
10604
|
_this.currentPage = page;
|
|
@@ -10375,13 +10611,16 @@
|
|
|
10375
10611
|
return _this.first();
|
|
10376
10612
|
}
|
|
10377
10613
|
}
|
|
10378
|
-
_this.hasPreviousPage$.next(_this.caseEdit.hasPrevious(_this.currentPage.id));
|
|
10614
|
+
_this.hasPreviousPage$.next(_this.caseEdit.hasPrevious((_b = _this.currentPage) === null || _b === void 0 ? void 0 : _b.id));
|
|
10379
10615
|
}
|
|
10380
10616
|
});
|
|
10381
10617
|
CaseEditPageComponent.setFocusToTop();
|
|
10382
10618
|
this.caseEditDataService.caseEditForm$.subscribe({
|
|
10383
10619
|
next: function (editForm) { return _this.editForm = editForm; }
|
|
10384
10620
|
});
|
|
10621
|
+
this.caseEditDataService.caseIsLinkedCasesJourneyAtFinalStep$.subscribe({
|
|
10622
|
+
next: function (isLinkedCasesJourneyAtFinalStep) { return _this.isLinkedCasesJourneyAtFinalStep = isLinkedCasesJourneyAtFinalStep; }
|
|
10623
|
+
});
|
|
10385
10624
|
this.caseEditDataService.caseTriggerSubmitEvent$.subscribe({
|
|
10386
10625
|
next: function (state) {
|
|
10387
10626
|
if (state) {
|
|
@@ -10390,6 +10629,7 @@
|
|
|
10390
10629
|
}
|
|
10391
10630
|
}
|
|
10392
10631
|
});
|
|
10632
|
+
this.triggerText = this.getTriggerText();
|
|
10393
10633
|
};
|
|
10394
10634
|
CaseEditPageComponent.prototype.ngAfterViewChecked = function () {
|
|
10395
10635
|
this.cdRef.detectChanges();
|
|
@@ -10401,7 +10641,11 @@
|
|
|
10401
10641
|
return this.caseEdit.first();
|
|
10402
10642
|
};
|
|
10403
10643
|
CaseEditPageComponent.prototype.currentPageIsNotValid = function () {
|
|
10404
|
-
return !this.pageValidationService.isPageValid(this.currentPage, this.editForm)
|
|
10644
|
+
return !this.pageValidationService.isPageValid(this.currentPage, this.editForm) ||
|
|
10645
|
+
(this.isLinkedCasesJourney() && !this.isLinkedCasesJourneyAtFinalStep);
|
|
10646
|
+
};
|
|
10647
|
+
CaseEditPageComponent.prototype.isLinkedCasesJourney = function () {
|
|
10648
|
+
return FieldsUtils.containsLinkedCasesCaseField(this.currentPage.case_fields);
|
|
10405
10649
|
};
|
|
10406
10650
|
/**
|
|
10407
10651
|
* caseEventData.event_data contains all the values from the previous pages so we set caseEventData.data = caseEventData.event_data
|
|
@@ -10489,8 +10733,10 @@
|
|
|
10489
10733
|
CaseEditPageComponent.scrollToTop();
|
|
10490
10734
|
};
|
|
10491
10735
|
CaseEditPageComponent.prototype.navigateToErrorElement = function (elementId) {
|
|
10736
|
+
/* istanbul ignore else */
|
|
10492
10737
|
if (elementId) {
|
|
10493
10738
|
var htmlElement = document.getElementById(elementId);
|
|
10739
|
+
/* istanbul ignore else */
|
|
10494
10740
|
if (htmlElement) {
|
|
10495
10741
|
htmlElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
10496
10742
|
htmlElement.focus();
|
|
@@ -10501,20 +10747,29 @@
|
|
|
10501
10747
|
var _this = this;
|
|
10502
10748
|
this.caseEditDataService.clearFormValidationErrors();
|
|
10503
10749
|
if (this.currentPageIsNotValid()) {
|
|
10504
|
-
|
|
10750
|
+
// The generateErrorMessage method filters out the hidden fields.
|
|
10751
|
+
// The error message for LinkedCases journey will never get displayed because the
|
|
10752
|
+
// LinkedCases is configured with ComponentLauncher field as visible and caseLinks field as hidden.
|
|
10753
|
+
if (this.isLinkedCasesJourney()) {
|
|
10754
|
+
this.validationErrors.push({ id: 'next-button', message: 'Please select Next to go to the next page' });
|
|
10755
|
+
CaseEditPageComponent.scrollToTop();
|
|
10756
|
+
}
|
|
10757
|
+
else {
|
|
10758
|
+
this.generateErrorMessage(this.currentPage.case_fields);
|
|
10759
|
+
}
|
|
10505
10760
|
}
|
|
10506
|
-
if (!this.isSubmitting && !this.currentPageIsNotValid()) {
|
|
10507
|
-
this.isSubmitting = true;
|
|
10508
|
-
this.error = null;
|
|
10761
|
+
if (!this.caseEdit.isSubmitting && !this.currentPageIsNotValid()) {
|
|
10762
|
+
this.caseEdit.isSubmitting = true;
|
|
10763
|
+
this.caseEdit.error = null;
|
|
10509
10764
|
var caseEventData = this.buildCaseEventData();
|
|
10510
10765
|
this.showSpinner = true;
|
|
10511
10766
|
this.caseEdit.validate(caseEventData, this.currentPage.id)
|
|
10512
10767
|
.subscribe(function (jsonData) {
|
|
10768
|
+
/* istanbul ignore else */
|
|
10513
10769
|
if (jsonData) {
|
|
10514
10770
|
_this.updateFormData(jsonData);
|
|
10515
10771
|
}
|
|
10516
10772
|
_this.saveDraft();
|
|
10517
|
-
_this.showSpinner = false;
|
|
10518
10773
|
_this.next();
|
|
10519
10774
|
}, function (error) {
|
|
10520
10775
|
_this.showSpinner = false;
|
|
@@ -10525,10 +10780,11 @@
|
|
|
10525
10780
|
CaseEditPageComponent.setFocusToTop();
|
|
10526
10781
|
};
|
|
10527
10782
|
CaseEditPageComponent.prototype.updateFormData = function (jsonData) {
|
|
10528
|
-
var e_1,
|
|
10783
|
+
var e_1, _c;
|
|
10529
10784
|
try {
|
|
10530
|
-
for (var
|
|
10531
|
-
var caseFieldId =
|
|
10785
|
+
for (var _d = __values(Object.keys(jsonData.data)), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
10786
|
+
var caseFieldId = _e.value;
|
|
10787
|
+
/* istanbul ignore else */
|
|
10532
10788
|
if (this.pageWithFieldExists(caseFieldId)) {
|
|
10533
10789
|
this.updateEventTriggerCaseFields(caseFieldId, jsonData, this.caseEdit.eventTrigger);
|
|
10534
10790
|
this.updateFormControlsValue(this.editForm, caseFieldId, jsonData.data[caseFieldId]);
|
|
@@ -10538,7 +10794,7 @@
|
|
|
10538
10794
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
10539
10795
|
finally {
|
|
10540
10796
|
try {
|
|
10541
|
-
if (
|
|
10797
|
+
if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
|
|
10542
10798
|
}
|
|
10543
10799
|
finally { if (e_1) throw e_1.error; }
|
|
10544
10800
|
}
|
|
@@ -10548,12 +10804,36 @@
|
|
|
10548
10804
|
return this.wizard.findWizardPage(caseFieldId);
|
|
10549
10805
|
};
|
|
10550
10806
|
CaseEditPageComponent.prototype.updateEventTriggerCaseFields = function (caseFieldId, jsonData, eventTrigger) {
|
|
10551
|
-
|
|
10807
|
+
var _this = this;
|
|
10808
|
+
/* istanbul ignore else */
|
|
10809
|
+
if (eventTrigger === null || eventTrigger === void 0 ? void 0 : eventTrigger.case_fields) {
|
|
10552
10810
|
eventTrigger.case_fields
|
|
10553
10811
|
.filter(function (element) { return element.id === caseFieldId; })
|
|
10554
|
-
.forEach(function (element) {
|
|
10812
|
+
.forEach(function (element) {
|
|
10813
|
+
if (_this.isAnObject(element.value)) {
|
|
10814
|
+
var updatedJsonDataObject = _this.updateJsonDataObject(caseFieldId, jsonData, element);
|
|
10815
|
+
element.value = Object.assign(Object.assign({}, element.value), updatedJsonDataObject);
|
|
10816
|
+
}
|
|
10817
|
+
else {
|
|
10818
|
+
element.value = jsonData.data[caseFieldId];
|
|
10819
|
+
}
|
|
10820
|
+
});
|
|
10555
10821
|
}
|
|
10556
10822
|
};
|
|
10823
|
+
CaseEditPageComponent.prototype.updateJsonDataObject = function (caseFieldId, jsonData, element) {
|
|
10824
|
+
var _this = this;
|
|
10825
|
+
return Object.keys(jsonData.data[caseFieldId]).reduce(function (acc, key) {
|
|
10826
|
+
var _c;
|
|
10827
|
+
var elementValue = element.value[key];
|
|
10828
|
+
var jsonDataValue = jsonData.data[caseFieldId][key];
|
|
10829
|
+
var hasElementGotValueProperty = _this.isAnObject(elementValue) && elementValue.value !== undefined;
|
|
10830
|
+
var jsonDataOrElementValue = (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== null && (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== undefined ? jsonDataValue : elementValue;
|
|
10831
|
+
return Object.assign(Object.assign({}, acc), (_c = {}, _c["" + key] = hasElementGotValueProperty ? jsonDataOrElementValue : jsonDataValue, _c));
|
|
10832
|
+
}, {});
|
|
10833
|
+
};
|
|
10834
|
+
CaseEditPageComponent.prototype.isAnObject = function (property) {
|
|
10835
|
+
return typeof property === 'object' && !Array.isArray(property) && property !== null;
|
|
10836
|
+
};
|
|
10557
10837
|
CaseEditPageComponent.prototype.updateFormControlsValue = function (formGroup, caseFieldId, value) {
|
|
10558
10838
|
var theControl = formGroup.controls['data'].get(caseFieldId);
|
|
10559
10839
|
if (theControl && theControl['status'] !== 'DISABLED') {
|
|
@@ -10569,12 +10849,15 @@
|
|
|
10569
10849
|
}
|
|
10570
10850
|
};
|
|
10571
10851
|
CaseEditPageComponent.prototype.callbackErrorsNotify = function (errorContext) {
|
|
10572
|
-
this.ignoreWarning = errorContext.ignoreWarning;
|
|
10852
|
+
this.caseEdit.ignoreWarning = errorContext.ignoreWarning;
|
|
10573
10853
|
this.triggerText = errorContext.triggerText;
|
|
10574
10854
|
};
|
|
10575
10855
|
CaseEditPageComponent.prototype.next = function () {
|
|
10856
|
+
if (this.canNavigateToSummaryPage()) {
|
|
10857
|
+
this.showSpinner = false;
|
|
10858
|
+
this.caseEdit.isSubmitting = false;
|
|
10859
|
+
}
|
|
10576
10860
|
this.resetErrors();
|
|
10577
|
-
this.isSubmitting = false;
|
|
10578
10861
|
this.formValuesChanged = false;
|
|
10579
10862
|
this.pageChangeSubject.next(true);
|
|
10580
10863
|
return this.caseEdit.next(this.currentPage.id);
|
|
@@ -10618,7 +10901,7 @@
|
|
|
10618
10901
|
}
|
|
10619
10902
|
};
|
|
10620
10903
|
CaseEditPageComponent.prototype.submitting = function () {
|
|
10621
|
-
return this.isSubmitting;
|
|
10904
|
+
return this.caseEdit.isSubmitting;
|
|
10622
10905
|
};
|
|
10623
10906
|
CaseEditPageComponent.prototype.getCaseId = function () {
|
|
10624
10907
|
return (this.caseEdit.caseDetails ? this.caseEdit.caseDetails.case_id : '');
|
|
@@ -10630,10 +10913,23 @@
|
|
|
10630
10913
|
CaseEditPageComponent.prototype.getCancelText = function () {
|
|
10631
10914
|
return this.eventTrigger.can_save_draft ? 'Return to case list' : 'Cancel';
|
|
10632
10915
|
};
|
|
10916
|
+
CaseEditPageComponent.prototype.canNavigateToSummaryPage = function () {
|
|
10917
|
+
var _a;
|
|
10918
|
+
var nextPage = this.caseEdit.getNextPage({
|
|
10919
|
+
currentPageId: (_a = this.currentPage) === null || _a === void 0 ? void 0 : _a.id,
|
|
10920
|
+
wizard: this.wizard,
|
|
10921
|
+
eventTrigger: this.eventTrigger,
|
|
10922
|
+
form: this.editForm
|
|
10923
|
+
});
|
|
10924
|
+
return this.eventTrigger.show_summary || !!nextPage;
|
|
10925
|
+
};
|
|
10633
10926
|
CaseEditPageComponent.prototype.getTriggerText = function () {
|
|
10634
|
-
|
|
10927
|
+
var textBasedOnCanSaveDraft = this.eventTrigger && this.eventTrigger.can_save_draft
|
|
10635
10928
|
? CaseEditPageComponent.TRIGGER_TEXT_SAVE
|
|
10636
10929
|
: CaseEditPageComponent.TRIGGER_TEXT_START;
|
|
10930
|
+
return this.canNavigateToSummaryPage()
|
|
10931
|
+
? textBasedOnCanSaveDraft
|
|
10932
|
+
: 'Submit';
|
|
10637
10933
|
};
|
|
10638
10934
|
CaseEditPageComponent.prototype.discard = function () {
|
|
10639
10935
|
if (this.route.snapshot.queryParamMap.get(CaseEditComponent.ORIGIN_QUERY_PARAM) === 'viewDraft') {
|
|
@@ -10644,26 +10940,29 @@
|
|
|
10644
10940
|
}
|
|
10645
10941
|
};
|
|
10646
10942
|
CaseEditPageComponent.prototype.handleError = function (error) {
|
|
10647
|
-
|
|
10648
|
-
this.
|
|
10649
|
-
this.
|
|
10650
|
-
|
|
10943
|
+
var _a, _b;
|
|
10944
|
+
this.caseEdit.isSubmitting = false;
|
|
10945
|
+
this.caseEdit.error = error;
|
|
10946
|
+
this.caseEdit.callbackErrorsSubject.next(this.caseEdit.error);
|
|
10947
|
+
this.callbackErrorsSubject.next(this.caseEdit.error);
|
|
10948
|
+
/* istanbul ignore else */
|
|
10949
|
+
if (this.caseEdit.error.details) {
|
|
10651
10950
|
this.formErrorService
|
|
10652
|
-
.mapFieldErrors(this.error.details.field_errors, this.editForm.controls['data'], 'validation');
|
|
10951
|
+
.mapFieldErrors(this.caseEdit.error.details.field_errors, (_b = (_a = this.editForm) === null || _a === void 0 ? void 0 : _a.controls) === null || _b === void 0 ? void 0 : _b['data'], 'validation');
|
|
10653
10952
|
}
|
|
10654
10953
|
};
|
|
10655
10954
|
CaseEditPageComponent.prototype.resetErrors = function () {
|
|
10656
|
-
this.error = null;
|
|
10657
|
-
this.ignoreWarning = false;
|
|
10955
|
+
this.caseEdit.error = null;
|
|
10956
|
+
this.caseEdit.ignoreWarning = false;
|
|
10658
10957
|
this.triggerText = this.getTriggerText();
|
|
10659
|
-
this.callbackErrorsSubject.next(null);
|
|
10958
|
+
this.caseEdit.callbackErrorsSubject.next(null);
|
|
10660
10959
|
};
|
|
10661
10960
|
CaseEditPageComponent.prototype.saveDraft = function () {
|
|
10662
10961
|
var _this = this;
|
|
10663
10962
|
if (this.eventTrigger.can_save_draft) {
|
|
10664
10963
|
var draftCaseEventData = this.formValueService.sanitise(this.editForm.value);
|
|
10665
10964
|
draftCaseEventData.event_token = this.eventTrigger.event_token;
|
|
10666
|
-
draftCaseEventData.ignore_warning = this.ignoreWarning;
|
|
10965
|
+
draftCaseEventData.ignore_warning = this.caseEdit.ignoreWarning;
|
|
10667
10966
|
this.caseEdit.saveDraft(draftCaseEventData).subscribe(function (draft) { return _this.eventTrigger.case_id = DRAFT_PREFIX + draft.id; }, function (error) { return _this.handleError(error); });
|
|
10668
10967
|
}
|
|
10669
10968
|
};
|
|
@@ -10696,7 +10995,7 @@
|
|
|
10696
10995
|
pageEventData.event_data = formEventData.data;
|
|
10697
10996
|
// Finalise the CaseEventData object.
|
|
10698
10997
|
pageEventData.event_token = this.eventTrigger.event_token;
|
|
10699
|
-
pageEventData.ignore_warning = this.ignoreWarning;
|
|
10998
|
+
pageEventData.ignore_warning = this.caseEdit.ignoreWarning;
|
|
10700
10999
|
// Finally, try to set up the case_reference.
|
|
10701
11000
|
if (this.caseEdit.caseDetails) {
|
|
10702
11001
|
pageEventData.case_reference = this.caseEdit.caseDetails.case_id;
|
|
@@ -10736,6 +11035,15 @@
|
|
|
10736
11035
|
next: function (validationErrors) { return _this.validationErrors = validationErrors; }
|
|
10737
11036
|
});
|
|
10738
11037
|
};
|
|
11038
|
+
CaseEditPageComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
|
|
11039
|
+
this.caseEdit.onEventCanBeCompleted({
|
|
11040
|
+
eventTrigger: this.eventTrigger,
|
|
11041
|
+
eventCanBeCompleted: eventCanBeCompleted,
|
|
11042
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
11043
|
+
form: this.editForm,
|
|
11044
|
+
submit: this.caseEdit.submit,
|
|
11045
|
+
});
|
|
11046
|
+
};
|
|
10739
11047
|
return CaseEditPageComponent;
|
|
10740
11048
|
}());
|
|
10741
11049
|
CaseEditPageComponent.RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
|
|
@@ -10746,7 +11054,7 @@
|
|
|
10746
11054
|
CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
|
|
10747
11055
|
CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
|
|
10748
11056
|
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
10749
|
-
CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 13, vars: 12, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [
|
|
11057
|
+
CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 13, vars: 12, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditPageComponent_Template(rf, ctx) {
|
|
10750
11058
|
if (rf & 1) {
|
|
10751
11059
|
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
|
|
10752
11060
|
i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_Template, 3, 2, "ng-container", 0);
|
|
@@ -10754,14 +11062,14 @@
|
|
|
10754
11062
|
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_ng_template_3_Template, 2, 5, "ng-template", null, 2, i0__namespace.ɵɵtemplateRefExtractor);
|
|
10755
11063
|
i0__namespace.ɵɵtemplate(5, CaseEditPageComponent_ng_template_5_Template, 1, 1, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
|
|
10756
11064
|
i0__namespace.ɵɵtemplate(7, CaseEditPageComponent_div_7_Template, 4, 1, "div", 4);
|
|
10757
|
-
i0__namespace.ɵɵ
|
|
10758
|
-
i0__namespace.ɵɵ
|
|
10759
|
-
i0__namespace.ɵɵ
|
|
10760
|
-
i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
11065
|
+
i0__namespace.ɵɵelement(8, "ccd-case-edit-generic-errors", 5);
|
|
11066
|
+
i0__namespace.ɵɵelementStart(9, "ccd-callback-errors", 6);
|
|
11067
|
+
i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_9_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
10761
11068
|
i0__namespace.ɵɵelementEnd();
|
|
10762
|
-
i0__namespace.ɵɵelementStart(
|
|
10763
|
-
i0__namespace.ɵɵtemplate(
|
|
11069
|
+
i0__namespace.ɵɵelementStart(10, "div", 7);
|
|
11070
|
+
i0__namespace.ɵɵtemplate(11, CaseEditPageComponent_form_11_Template, 14, 9, "form", 8);
|
|
10764
11071
|
i0__namespace.ɵɵelementEnd();
|
|
11072
|
+
i0__namespace.ɵɵtemplate(12, CaseEditPageComponent_ccd_case_event_completion_12_Template, 1, 1, "ccd-case-event-completion", 9);
|
|
10765
11073
|
}
|
|
10766
11074
|
if (rf & 2) {
|
|
10767
11075
|
var _r3 = i0__namespace.ɵɵreference(4);
|
|
@@ -10774,13 +11082,13 @@
|
|
|
10774
11082
|
i0__namespace.ɵɵadvance(5);
|
|
10775
11083
|
i0__namespace.ɵɵproperty("ngIf", ctx.validationErrors.length > 0);
|
|
10776
11084
|
i0__namespace.ɵɵadvance(1);
|
|
10777
|
-
i0__namespace.ɵɵproperty("
|
|
10778
|
-
i0__namespace.ɵɵadvance(1);
|
|
10779
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.error && ctx.error.details);
|
|
11085
|
+
i0__namespace.ɵɵproperty("error", ctx.caseEdit.error);
|
|
10780
11086
|
i0__namespace.ɵɵadvance(1);
|
|
10781
|
-
i0__namespace.ɵɵproperty("triggerTextContinue", ctx.triggerTextStart)("triggerTextIgnore", ctx.triggerTextIgnoreWarnings)("callbackErrorsSubject", ctx.callbackErrorsSubject);
|
|
11087
|
+
i0__namespace.ɵɵproperty("triggerTextContinue", ctx.triggerTextStart)("triggerTextIgnore", ctx.triggerTextIgnoreWarnings)("callbackErrorsSubject", ctx.caseEdit.callbackErrorsSubject);
|
|
10782
11088
|
i0__namespace.ɵɵadvance(2);
|
|
10783
11089
|
i0__namespace.ɵɵproperty("ngIf", ctx.currentPage);
|
|
11090
|
+
i0__namespace.ɵɵadvance(1);
|
|
11091
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
|
|
10784
11092
|
}
|
|
10785
11093
|
}, styles: [".rightBorderSeparator[_ngcontent-%COMP%]{border-right:4px solid #ffcc02}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
|
|
10786
11094
|
(function () {
|
|
@@ -10898,11 +11206,6 @@
|
|
|
10898
11206
|
}
|
|
10899
11207
|
});
|
|
10900
11208
|
};
|
|
10901
|
-
CallbackErrorsComponent.prototype.ngOnDestroy = function () {
|
|
10902
|
-
if (this.callbackErrorsSubject) {
|
|
10903
|
-
this.callbackErrorsSubject.unsubscribe();
|
|
10904
|
-
}
|
|
10905
|
-
};
|
|
10906
11209
|
CallbackErrorsComponent.prototype.hasErrors = function () {
|
|
10907
11210
|
return this.error
|
|
10908
11211
|
&& this.error.callbackErrors
|
|
@@ -11293,56 +11596,93 @@
|
|
|
11293
11596
|
DisplayContextCustomParameter["LinkedCases"] = "LinkedCases";
|
|
11294
11597
|
})(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
|
|
11295
11598
|
|
|
11296
|
-
function
|
|
11599
|
+
function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) {
|
|
11297
11600
|
if (rf & 1) {
|
|
11298
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
11299
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
11601
|
+
i0__namespace.ɵɵelementStart(0, "li");
|
|
11602
|
+
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
11603
|
+
i0__namespace.ɵɵtext(2);
|
|
11604
|
+
i0__namespace.ɵɵelementEnd();
|
|
11605
|
+
i0__namespace.ɵɵelementEnd();
|
|
11606
|
+
}
|
|
11607
|
+
if (rf & 2) {
|
|
11608
|
+
var errorMessage_r4 = ctx.$implicit;
|
|
11609
|
+
i0__namespace.ɵɵadvance(2);
|
|
11610
|
+
i0__namespace.ɵɵtextInterpolate(errorMessage_r4);
|
|
11611
|
+
}
|
|
11612
|
+
}
|
|
11613
|
+
function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) {
|
|
11614
|
+
if (rf & 1) {
|
|
11615
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
11616
|
+
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
11617
|
+
i0__namespace.ɵɵelementStart(2, "div", 3);
|
|
11618
|
+
i0__namespace.ɵɵelementStart(3, "h2", 4);
|
|
11619
|
+
i0__namespace.ɵɵtext(4, " There is a problem ");
|
|
11620
|
+
i0__namespace.ɵɵelementEnd();
|
|
11621
|
+
i0__namespace.ɵɵelementStart(5, "div", 5);
|
|
11622
|
+
i0__namespace.ɵɵelementStart(6, "ul", 6);
|
|
11623
|
+
i0__namespace.ɵɵtemplate(7, CaseFileViewFieldComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
|
|
11624
|
+
i0__namespace.ɵɵelementEnd();
|
|
11625
|
+
i0__namespace.ɵɵelementEnd();
|
|
11626
|
+
i0__namespace.ɵɵelementEnd();
|
|
11627
|
+
i0__namespace.ɵɵelementEnd();
|
|
11628
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
11629
|
+
}
|
|
11630
|
+
if (rf & 2) {
|
|
11631
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
11632
|
+
i0__namespace.ɵɵadvance(7);
|
|
11633
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
11634
|
+
}
|
|
11635
|
+
}
|
|
11636
|
+
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
11637
|
+
if (rf & 1) {
|
|
11638
|
+
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
11639
|
+
i0__namespace.ɵɵelementStart(1, "h1", 10);
|
|
11300
11640
|
i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
11301
11641
|
i0__namespace.ɵɵelementEnd();
|
|
11302
|
-
i0__namespace.ɵɵelementStart(3, "p",
|
|
11642
|
+
i0__namespace.ɵɵelementStart(3, "p", 11);
|
|
11303
11643
|
i0__namespace.ɵɵtext(4, "Try again later.");
|
|
11304
11644
|
i0__namespace.ɵɵelementEnd();
|
|
11305
11645
|
i0__namespace.ɵɵelementEnd();
|
|
11306
11646
|
}
|
|
11307
11647
|
}
|
|
11308
|
-
function
|
|
11648
|
+
function CaseFileViewFieldComponent_div_2_ng_container_8_Template(rf, ctx) {
|
|
11309
11649
|
if (rf & 1) {
|
|
11310
11650
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
11311
|
-
i0__namespace.ɵɵelement(1, "mv-media-viewer",
|
|
11651
|
+
i0__namespace.ɵɵelement(1, "mv-media-viewer", 18);
|
|
11312
11652
|
i0__namespace.ɵɵelementContainerEnd();
|
|
11313
11653
|
}
|
|
11314
11654
|
if (rf & 2) {
|
|
11315
|
-
var
|
|
11655
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
11316
11656
|
i0__namespace.ɵɵadvance(1);
|
|
11317
|
-
i0__namespace.ɵɵproperty("url",
|
|
11657
|
+
i0__namespace.ɵɵproperty("url", ctx_r5.currentDocument.document_binary_url)("downloadFileName", ctx_r5.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r5.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
|
|
11318
11658
|
}
|
|
11319
11659
|
}
|
|
11320
|
-
function
|
|
11660
|
+
function CaseFileViewFieldComponent_div_2_Template(rf, ctx) {
|
|
11321
11661
|
if (rf & 1) {
|
|
11322
|
-
var
|
|
11662
|
+
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11323
11663
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
11324
|
-
i0__namespace.ɵɵelementStart(1, "h2",
|
|
11664
|
+
i0__namespace.ɵɵelementStart(1, "h2", 12);
|
|
11325
11665
|
i0__namespace.ɵɵtext(2, "Case file");
|
|
11326
11666
|
i0__namespace.ɵɵelementEnd();
|
|
11327
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
11328
|
-
i0__namespace.ɵɵelementStart(4, "div",
|
|
11329
|
-
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder",
|
|
11330
|
-
i0__namespace.ɵɵlistener("clickedDocument", function
|
|
11667
|
+
i0__namespace.ɵɵelementStart(3, "div", 13);
|
|
11668
|
+
i0__namespace.ɵɵelementStart(4, "div", 14);
|
|
11669
|
+
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 15);
|
|
11670
|
+
i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldComponent_div_2_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); ctx_r6.setMediaViewerFile($event); return ctx_r6.resetErrorMessages(); })("moveDocument", function CaseFileViewFieldComponent_div_2_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.moveDocument($event); });
|
|
11331
11671
|
i0__namespace.ɵɵelementEnd();
|
|
11332
11672
|
i0__namespace.ɵɵelementEnd();
|
|
11333
|
-
i0__namespace.ɵɵelement(6, "div",
|
|
11334
|
-
i0__namespace.ɵɵelementStart(7, "div",
|
|
11335
|
-
i0__namespace.ɵɵtemplate(8,
|
|
11673
|
+
i0__namespace.ɵɵelement(6, "div", 16);
|
|
11674
|
+
i0__namespace.ɵɵelementStart(7, "div", 17);
|
|
11675
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 7, "ng-container", 0);
|
|
11336
11676
|
i0__namespace.ɵɵelementEnd();
|
|
11337
11677
|
i0__namespace.ɵɵelementEnd();
|
|
11338
11678
|
i0__namespace.ɵɵelementEnd();
|
|
11339
11679
|
}
|
|
11340
11680
|
if (rf & 2) {
|
|
11341
|
-
var
|
|
11681
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
11342
11682
|
i0__namespace.ɵɵadvance(5);
|
|
11343
|
-
i0__namespace.ɵɵproperty("categoriesAndDocuments",
|
|
11683
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r2.categoriesAndDocuments$)("allowMoving", ctx_r2.allowMoving);
|
|
11344
11684
|
i0__namespace.ɵɵadvance(3);
|
|
11345
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
11685
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.currentDocument);
|
|
11346
11686
|
}
|
|
11347
11687
|
}
|
|
11348
11688
|
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
@@ -11355,6 +11695,7 @@
|
|
|
11355
11695
|
this.sessionStorageService = sessionStorageService;
|
|
11356
11696
|
this.allowMoving = true;
|
|
11357
11697
|
this.getCategoriesAndDocumentsError = false;
|
|
11698
|
+
this.errorMessages = [];
|
|
11358
11699
|
}
|
|
11359
11700
|
CaseFileViewFieldComponent.prototype.ngOnInit = function () {
|
|
11360
11701
|
var _this = this;
|
|
@@ -11406,11 +11747,26 @@
|
|
|
11406
11747
|
var _this = this;
|
|
11407
11748
|
var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
11408
11749
|
var loadingToken = this.loadingService.register();
|
|
11409
|
-
this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory)
|
|
11410
|
-
|
|
11750
|
+
this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory)
|
|
11751
|
+
.pipe(operators.finalize(function () {
|
|
11411
11752
|
_this.loadingService.unregister(loadingToken);
|
|
11753
|
+
}), operators.catchError(function () {
|
|
11754
|
+
_this.errorMessages = ['You do not have permission to move this document to the selected folder.'];
|
|
11755
|
+
return rxjs.of(null);
|
|
11756
|
+
}))
|
|
11757
|
+
.subscribe(function (res) {
|
|
11758
|
+
if (res) {
|
|
11759
|
+
_this.resetErrorMessages();
|
|
11760
|
+
_this.reloadPage();
|
|
11761
|
+
}
|
|
11412
11762
|
});
|
|
11413
11763
|
};
|
|
11764
|
+
CaseFileViewFieldComponent.prototype.reloadPage = function () {
|
|
11765
|
+
location.reload();
|
|
11766
|
+
};
|
|
11767
|
+
CaseFileViewFieldComponent.prototype.resetErrorMessages = function () {
|
|
11768
|
+
this.errorMessages = [];
|
|
11769
|
+
};
|
|
11414
11770
|
CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
|
|
11415
11771
|
if (this.categoriesAndDocumentsSubscription) {
|
|
11416
11772
|
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
@@ -11420,12 +11776,15 @@
|
|
|
11420
11776
|
}());
|
|
11421
11777
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
11422
11778
|
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(LoadingService), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
11423
|
-
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls:
|
|
11779
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["id", "case-file-view-field-errors", "data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
11424
11780
|
if (rf & 1) {
|
|
11425
|
-
i0__namespace.ɵɵtemplate(0,
|
|
11426
|
-
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template,
|
|
11781
|
+
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_ng_container_0_Template, 8, 1, "ng-container", 0);
|
|
11782
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 5, 0, "div", 1);
|
|
11783
|
+
i0__namespace.ɵɵtemplate(2, CaseFileViewFieldComponent_div_2_Template, 9, 3, "div", 0);
|
|
11427
11784
|
}
|
|
11428
11785
|
if (rf & 2) {
|
|
11786
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
|
|
11787
|
+
i0__namespace.ɵɵadvance(1);
|
|
11429
11788
|
i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
11430
11789
|
i0__namespace.ɵɵadvance(1);
|
|
11431
11790
|
i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
@@ -15353,12 +15712,11 @@
|
|
|
15353
15712
|
}
|
|
15354
15713
|
var WriteJudicialUserFieldComponent = /** @class */ (function (_super) {
|
|
15355
15714
|
__extends(WriteJudicialUserFieldComponent, _super);
|
|
15356
|
-
function WriteJudicialUserFieldComponent(
|
|
15715
|
+
function WriteJudicialUserFieldComponent(jurisdictionService, sessionStorageService, caseFlagRefDataService) {
|
|
15357
15716
|
var _this = _super.call(this) || this;
|
|
15358
|
-
_this.route = route;
|
|
15359
|
-
_this.cd = cd;
|
|
15360
15717
|
_this.jurisdictionService = jurisdictionService;
|
|
15361
|
-
_this.
|
|
15718
|
+
_this.sessionStorageService = sessionStorageService;
|
|
15719
|
+
_this.caseFlagRefDataService = caseFlagRefDataService;
|
|
15362
15720
|
_this.MINIMUM_SEARCH_CHARACTERS = 2;
|
|
15363
15721
|
_this.IDAM_ID = 'idamId';
|
|
15364
15722
|
_this.PERSONAL_CODE = 'personalCode';
|
|
@@ -15368,18 +15726,46 @@
|
|
|
15368
15726
|
}
|
|
15369
15727
|
WriteJudicialUserFieldComponent.prototype.ngOnInit = function () {
|
|
15370
15728
|
var _this = this;
|
|
15371
|
-
|
|
15729
|
+
var _a;
|
|
15372
15730
|
this.judicialUserFormGroup = this.registerControl(new i2.FormGroup({}), true);
|
|
15373
15731
|
this.idamIdFormControl = new i2.FormControl('');
|
|
15374
15732
|
this.judicialUserFormGroup.addControl(this.IDAM_ID, this.idamIdFormControl);
|
|
15375
15733
|
this.personalCodeFormControl = new i2.FormControl('');
|
|
15376
15734
|
this.judicialUserFormGroup.addControl(this.PERSONAL_CODE, this.personalCodeFormControl);
|
|
15377
|
-
this.
|
|
15735
|
+
this.setJurisdictionAndCaseType();
|
|
15736
|
+
this.sub = this.idamIdFormControl.valueChanges.pipe(operators.tap(function () { return _this.showAutocomplete = false; }), operators.tap(function () { return _this.filteredJudicialUsers = []; }), operators.debounceTime(300), operators.filter(function (searchTerm) { return searchTerm && searchTerm.length > _this.MINIMUM_SEARCH_CHARACTERS; }), operators.switchMap(function (searchTerm) { return _this.filterJudicialUsers(searchTerm).pipe(operators.tap(function () { return _this.showAutocomplete = true; }), operators.catchError(function () { return _this.filteredJudicialUsers = []; })); })).subscribe(function (judicialUsers) {
|
|
15378
15737
|
_this.filteredJudicialUsers = judicialUsers;
|
|
15379
15738
|
});
|
|
15739
|
+
if ((_a = this.caseField.value) === null || _a === void 0 ? void 0 : _a.personalCode) {
|
|
15740
|
+
this.loadJudicialUser(this.caseField.value.personalCode);
|
|
15741
|
+
}
|
|
15742
|
+
};
|
|
15743
|
+
WriteJudicialUserFieldComponent.prototype.filterJudicialUsers = function (searchTerm) {
|
|
15744
|
+
var _this = this;
|
|
15745
|
+
return this.caseFlagRefDataService.getHmctsServiceDetailsByCaseType(this.caseType).pipe(
|
|
15746
|
+
// If an error occurs retrieving HMCTS service details by case type ID, try by service name instead
|
|
15747
|
+
operators.catchError(function (_) { return _this.caseFlagRefDataService.getHmctsServiceDetailsByServiceName(_this.jurisdiction); }),
|
|
15748
|
+
// Use switchMap to return an inner Observable of the flag types data, having received the service details
|
|
15749
|
+
// including service_code. This avoids having nested `subscribe`s, which is an anti-pattern!
|
|
15750
|
+
operators.switchMap(function (serviceDetails) { return _this.jurisdictionService.searchJudicialUsers(searchTerm, serviceDetails[0].service_code); }));
|
|
15751
|
+
};
|
|
15752
|
+
WriteJudicialUserFieldComponent.prototype.loadJudicialUser = function (personalCode) {
|
|
15753
|
+
var _this = this;
|
|
15754
|
+
if (personalCode) {
|
|
15755
|
+
this.jurisdictionService.searchJudicialUsersByPersonalCodes([personalCode]).subscribe(function (judicialUsers) {
|
|
15756
|
+
var judicialUser = judicialUsers[0];
|
|
15757
|
+
_this.idamIdFormControl.setValue(judicialUser.fullName + " (" + judicialUser.emailId + ")");
|
|
15758
|
+
_this.personalCodeFormControl.setValue(judicialUser.personalCode);
|
|
15759
|
+
});
|
|
15760
|
+
}
|
|
15380
15761
|
};
|
|
15381
|
-
WriteJudicialUserFieldComponent.prototype.
|
|
15382
|
-
|
|
15762
|
+
WriteJudicialUserFieldComponent.prototype.setJurisdictionAndCaseType = function () {
|
|
15763
|
+
var caseInfoStr = this.sessionStorageService.getItem('caseInfo');
|
|
15764
|
+
if (caseInfoStr) {
|
|
15765
|
+
var caseInfo = JSON.parse(caseInfoStr);
|
|
15766
|
+
this.jurisdiction = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.jurisdiction;
|
|
15767
|
+
this.caseType = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.caseType;
|
|
15768
|
+
}
|
|
15383
15769
|
};
|
|
15384
15770
|
WriteJudicialUserFieldComponent.prototype.onSelectionChange = function (judicialUser) {
|
|
15385
15771
|
this.idamIdFormControl.setValue(judicialUser.fullName + " (" + judicialUser.emailId + ")");
|
|
@@ -15392,7 +15778,7 @@
|
|
|
15392
15778
|
};
|
|
15393
15779
|
return WriteJudicialUserFieldComponent;
|
|
15394
15780
|
}(AbstractFieldWriteComponent));
|
|
15395
|
-
WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
15781
|
+
WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(JurisdictionService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
|
|
15396
15782
|
WriteJudicialUserFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteJudicialUserFieldComponent, selectors: [["ccd-write-judicial-user-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 9, vars: 9, consts: [[1, "form-group", 3, "formGroup"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], [1, "form-control", "bottom-30", 3, "id", "formControl", "matAutocomplete"], ["autoActiveFirstOption", ""], ["autoComplete", "matAutocomplete"], ["class", "select-option", 3, "ngClass", "value", "onSelectionChange", 4, "ngFor", "ngForOf"], ["class", "select-option", 4, "ngIf"], [1, "form-label"], [1, "form-hint"], [1, "select-option", 3, "ngClass", "value", "onSelectionChange"], [1, "select-option"]], template: function WriteJudicialUserFieldComponent_Template(rf, ctx) {
|
|
15397
15783
|
if (rf & 1) {
|
|
15398
15784
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -15423,7 +15809,7 @@
|
|
|
15423
15809
|
i0__namespace.ɵɵadvance(1);
|
|
15424
15810
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.filteredJudicialUsers == null ? null : ctx.filteredJudicialUsers.length) && ctx.showAutocomplete);
|
|
15425
15811
|
}
|
|
15426
|
-
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor,
|
|
15812
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i4__namespace.MatAutocompleteTrigger, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i4__namespace.MatAutocomplete, i1__namespace.NgForOf, i5__namespace.MatOption, i1__namespace.NgClass], pipes: [FieldLabelPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
|
|
15427
15813
|
(function () {
|
|
15428
15814
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
|
|
15429
15815
|
type: i0.Component,
|
|
@@ -15432,7 +15818,7 @@
|
|
|
15432
15818
|
styleUrls: ['./write-judicial-user-field.component.scss'],
|
|
15433
15819
|
templateUrl: './write-judicial-user-field.component.html'
|
|
15434
15820
|
}]
|
|
15435
|
-
}], function () { return [{ type:
|
|
15821
|
+
}], function () { return [{ type: JurisdictionService }, { type: SessionStorageService }, { type: CaseFlagRefdataService }]; }, null);
|
|
15436
15822
|
})();
|
|
15437
15823
|
|
|
15438
15824
|
var LabelFieldComponent = /** @class */ (function () {
|
|
@@ -17122,6 +17508,7 @@
|
|
|
17122
17508
|
searchCases.forEach(function (response) {
|
|
17123
17509
|
casesResponse.push(_this.mapResponse(response));
|
|
17124
17510
|
});
|
|
17511
|
+
casesResponse = _this.sortReasonCodes(casesResponse);
|
|
17125
17512
|
_this.linkedCasesFromResponse = _this.sortLinkedCasesByReasonCode(casesResponse);
|
|
17126
17513
|
_this.isLoaded = true;
|
|
17127
17514
|
var caseLinks = _this.linkedCasesFromResponse.map(function (item) {
|
|
@@ -17147,6 +17534,30 @@
|
|
|
17147
17534
|
});
|
|
17148
17535
|
}
|
|
17149
17536
|
};
|
|
17537
|
+
LinkedCasesToTableComponent.prototype.sortReasonCodes = function (searchCasesResponse) {
|
|
17538
|
+
var _this = this;
|
|
17539
|
+
searchCasesResponse.forEach(function (item) {
|
|
17540
|
+
var _a;
|
|
17541
|
+
if ((_a = item === null || item === void 0 ? void 0 : item.reasons) === null || _a === void 0 ? void 0 : _a.length) {
|
|
17542
|
+
item.reasons.forEach(function (reason) {
|
|
17543
|
+
reason.sortOrder = _this.getReasonSortOrder(reason.value.Reason);
|
|
17544
|
+
});
|
|
17545
|
+
item.reasons = item.reasons.sort(function (a, b) { return a.sortOrder - b.sortOrder; });
|
|
17546
|
+
item.sortOrder = item.reasons[0].sortOrder;
|
|
17547
|
+
}
|
|
17548
|
+
});
|
|
17549
|
+
searchCasesResponse = searchCasesResponse === null || searchCasesResponse === void 0 ? void 0 : searchCasesResponse.sort(function (a, b) { return a.sortOrder - b.sortOrder; });
|
|
17550
|
+
return searchCasesResponse;
|
|
17551
|
+
};
|
|
17552
|
+
LinkedCasesToTableComponent.prototype.getReasonSortOrder = function (reasonCode) {
|
|
17553
|
+
if (reasonCode === LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE) {
|
|
17554
|
+
return 1;
|
|
17555
|
+
}
|
|
17556
|
+
else if (reasonCode === LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE) {
|
|
17557
|
+
return 2;
|
|
17558
|
+
}
|
|
17559
|
+
return 3;
|
|
17560
|
+
};
|
|
17150
17561
|
LinkedCasesToTableComponent.prototype.searchCasesByCaseIds = function (searchCasesResponse) {
|
|
17151
17562
|
return rxjs.forkJoin(searchCasesResponse);
|
|
17152
17563
|
};
|
|
@@ -17779,87 +18190,52 @@
|
|
|
17779
18190
|
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: LinkedCasesService }, { type: AbstractAppConfig }, { type: CommonDataService }]; }, null);
|
|
17780
18191
|
})();
|
|
17781
18192
|
|
|
17782
|
-
function
|
|
17783
|
-
if (rf & 1) {
|
|
17784
|
-
var _r9_1 = i0__namespace.ɵɵgetCurrentView();
|
|
17785
|
-
i0__namespace.ɵɵelementStart(0, "div", 7);
|
|
17786
|
-
i0__namespace.ɵɵelementStart(1, "ul", 8);
|
|
17787
|
-
i0__namespace.ɵɵelementStart(2, "li");
|
|
17788
|
-
i0__namespace.ɵɵelementStart(3, "a", 9);
|
|
17789
|
-
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); });
|
|
17790
|
-
i0__namespace.ɵɵtext(4);
|
|
17791
|
-
i0__namespace.ɵɵelementEnd();
|
|
17792
|
-
i0__namespace.ɵɵelementEnd();
|
|
17793
|
-
i0__namespace.ɵɵelementEnd();
|
|
17794
|
-
i0__namespace.ɵɵelementEnd();
|
|
17795
|
-
}
|
|
17796
|
-
if (rf & 2) {
|
|
17797
|
-
var errorMessage_r7 = ctx.$implicit;
|
|
17798
|
-
i0__namespace.ɵɵadvance(4);
|
|
17799
|
-
i0__namespace.ɵɵtextInterpolate(errorMessage_r7.description);
|
|
17800
|
-
}
|
|
17801
|
-
}
|
|
17802
|
-
function WriteLinkedCasesFieldComponent_div_0_Template(rf, ctx) {
|
|
18193
|
+
function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) {
|
|
17803
18194
|
if (rf & 1) {
|
|
17804
|
-
i0__namespace.ɵɵ
|
|
17805
|
-
i0__namespace.ɵɵ
|
|
17806
|
-
i0__namespace.ɵɵ
|
|
17807
|
-
i0__namespace.ɵɵ
|
|
17808
|
-
i0__namespace.ɵɵtemplate(3, WriteLinkedCasesFieldComponent_div_0_div_3_Template, 5, 1, "div", 6);
|
|
18195
|
+
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18196
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
18197
|
+
i0__namespace.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 3);
|
|
18198
|
+
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); });
|
|
17809
18199
|
i0__namespace.ɵɵelementEnd();
|
|
17810
|
-
|
|
17811
|
-
if (rf & 2) {
|
|
17812
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
17813
|
-
i0__namespace.ɵɵadvance(3);
|
|
17814
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
18200
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
17815
18201
|
}
|
|
17816
18202
|
}
|
|
17817
18203
|
function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) {
|
|
17818
18204
|
if (rf & 1) {
|
|
17819
|
-
var
|
|
18205
|
+
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
17820
18206
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
17821
|
-
i0__namespace.ɵɵelementStart(1, "ccd-linked-cases
|
|
17822
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function
|
|
18207
|
+
i0__namespace.ɵɵelementStart(1, "ccd-no-linked-cases", 3);
|
|
18208
|
+
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); });
|
|
17823
18209
|
i0__namespace.ɵɵelementEnd();
|
|
17824
18210
|
i0__namespace.ɵɵelementContainerEnd();
|
|
17825
18211
|
}
|
|
17826
18212
|
}
|
|
17827
18213
|
function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) {
|
|
17828
18214
|
if (rf & 1) {
|
|
17829
|
-
var
|
|
18215
|
+
var _r10_1 = i0__namespace.ɵɵgetCurrentView();
|
|
17830
18216
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
17831
|
-
i0__namespace.ɵɵelementStart(1, "ccd-
|
|
17832
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function
|
|
18217
|
+
i0__namespace.ɵɵelementStart(1, "ccd-link-cases", 3);
|
|
18218
|
+
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); });
|
|
17833
18219
|
i0__namespace.ɵɵelementEnd();
|
|
17834
18220
|
i0__namespace.ɵɵelementContainerEnd();
|
|
17835
18221
|
}
|
|
17836
18222
|
}
|
|
17837
18223
|
function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) {
|
|
17838
18224
|
if (rf & 1) {
|
|
17839
|
-
var
|
|
18225
|
+
var _r12_1 = i0__namespace.ɵɵgetCurrentView();
|
|
17840
18226
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
17841
|
-
i0__namespace.ɵɵelementStart(1, "ccd-
|
|
17842
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function
|
|
18227
|
+
i0__namespace.ɵɵelementStart(1, "ccd-unlink-cases", 3);
|
|
18228
|
+
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); });
|
|
17843
18229
|
i0__namespace.ɵɵelementEnd();
|
|
17844
18230
|
i0__namespace.ɵɵelementContainerEnd();
|
|
17845
18231
|
}
|
|
17846
18232
|
}
|
|
17847
18233
|
function WriteLinkedCasesFieldComponent_ng_container_6_Template(rf, ctx) {
|
|
17848
18234
|
if (rf & 1) {
|
|
17849
|
-
var
|
|
17850
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
17851
|
-
i0__namespace.ɵɵelementStart(1, "ccd-unlink-cases", 10);
|
|
17852
|
-
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); });
|
|
17853
|
-
i0__namespace.ɵɵelementEnd();
|
|
17854
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
17855
|
-
}
|
|
17856
|
-
}
|
|
17857
|
-
function WriteLinkedCasesFieldComponent_ng_container_7_Template(rf, ctx) {
|
|
17858
|
-
if (rf & 1) {
|
|
17859
|
-
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18235
|
+
var _r14_1 = i0__namespace.ɵɵgetCurrentView();
|
|
17860
18236
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
17861
|
-
i0__namespace.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers",
|
|
17862
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function
|
|
18237
|
+
i0__namespace.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 3);
|
|
18238
|
+
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); });
|
|
17863
18239
|
i0__namespace.ɵɵelementEnd();
|
|
17864
18240
|
i0__namespace.ɵɵelementContainerEnd();
|
|
17865
18241
|
}
|
|
@@ -17876,11 +18252,13 @@
|
|
|
17876
18252
|
_this.linkedCasesPages = exports.LinkedCasesPages;
|
|
17877
18253
|
_this.linkedCasesEventTriggers = exports.LinkedCasesEventTriggers;
|
|
17878
18254
|
_this.linkedCases = [];
|
|
17879
|
-
_this.errorMessages = [];
|
|
17880
18255
|
return _this;
|
|
17881
18256
|
}
|
|
17882
18257
|
WriteLinkedCasesFieldComponent.prototype.ngOnInit = function () {
|
|
17883
18258
|
var _this = this;
|
|
18259
|
+
// This is required to enable Continue button validation
|
|
18260
|
+
// Continue button should be enabled only at check your answers page
|
|
18261
|
+
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(false);
|
|
17884
18262
|
// Clear validation errors
|
|
17885
18263
|
this.caseEditDataService.clearFormValidationErrors();
|
|
17886
18264
|
// Get linked case reasons from ref data
|
|
@@ -17917,11 +18295,10 @@
|
|
|
17917
18295
|
};
|
|
17918
18296
|
WriteLinkedCasesFieldComponent.prototype.onLinkedCasesStateEmitted = function (linkedCasesState) {
|
|
17919
18297
|
var _this = this;
|
|
17920
|
-
|
|
18298
|
+
// Clear validation errors
|
|
17921
18299
|
this.caseEditDataService.clearFormValidationErrors();
|
|
17922
18300
|
if (linkedCasesState.navigateToNextPage) {
|
|
17923
18301
|
this.linkedCasesPage = this.getNextPage(linkedCasesState);
|
|
17924
|
-
this.setContinueButtonValidationErrorMessage();
|
|
17925
18302
|
this.proceedToNextPage();
|
|
17926
18303
|
}
|
|
17927
18304
|
else {
|
|
@@ -17945,27 +18322,19 @@
|
|
|
17945
18322
|
}
|
|
17946
18323
|
});
|
|
17947
18324
|
};
|
|
17948
|
-
WriteLinkedCasesFieldComponent.prototype.setContinueButtonValidationErrorMessage = function () {
|
|
17949
|
-
var errorMessage = this.linkedCasesService.isLinkedCasesEventTrigger
|
|
17950
|
-
? exports.LinkedCasesErrorMessages.LinkCasesNavigationError
|
|
17951
|
-
: exports.LinkedCasesErrorMessages.UnlinkCasesNavigationError;
|
|
17952
|
-
var buttonId = this.linkedCasesService.linkedCases.length === 0
|
|
17953
|
-
? 'back-button'
|
|
17954
|
-
: 'next-button';
|
|
17955
|
-
this.caseEditDataService.setCaseLinkError({
|
|
17956
|
-
componentId: buttonId,
|
|
17957
|
-
errorMessage: errorMessage
|
|
17958
|
-
});
|
|
17959
|
-
};
|
|
17960
18325
|
WriteLinkedCasesFieldComponent.prototype.proceedToNextPage = function () {
|
|
17961
18326
|
if (this.isAtFinalPage()) {
|
|
17962
18327
|
// Continue button event must be allowed in final page
|
|
17963
|
-
this.caseEditDataService.
|
|
18328
|
+
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(true);
|
|
17964
18329
|
// Trigger validation to clear the "notAtFinalPage" error if now at the final state
|
|
17965
18330
|
this.formGroup.updateValueAndValidity();
|
|
17966
18331
|
// update form value
|
|
17967
18332
|
this.submitLinkedCases();
|
|
17968
18333
|
}
|
|
18334
|
+
else {
|
|
18335
|
+
// Continue button event must not be allowed if not in final page
|
|
18336
|
+
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(false);
|
|
18337
|
+
}
|
|
17969
18338
|
};
|
|
17970
18339
|
WriteLinkedCasesFieldComponent.prototype.submitLinkedCases = function () {
|
|
17971
18340
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
@@ -18009,38 +18378,24 @@
|
|
|
18009
18378
|
&& !_this.linkedCasesService.serverLinkedApiError)
|
|
18010
18379
|
? exports.LinkedCasesPages.BEFORE_YOU_START
|
|
18011
18380
|
: exports.LinkedCasesPages.NO_LINKED_CASES;
|
|
18012
|
-
// Initialise the error to be displayed when clicked on Continue button
|
|
18013
|
-
_this.setContinueButtonValidationErrorMessage();
|
|
18014
18381
|
});
|
|
18015
18382
|
};
|
|
18016
|
-
WriteLinkedCasesFieldComponent.prototype.navigateToErrorElement = function (elementId) {
|
|
18017
|
-
if (elementId) {
|
|
18018
|
-
var htmlElement = document.getElementById(elementId);
|
|
18019
|
-
if (htmlElement) {
|
|
18020
|
-
htmlElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
18021
|
-
htmlElement.focus();
|
|
18022
|
-
}
|
|
18023
|
-
}
|
|
18024
|
-
};
|
|
18025
18383
|
return WriteLinkedCasesFieldComponent;
|
|
18026
18384
|
}(AbstractFieldWriteComponent));
|
|
18027
18385
|
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)); };
|
|
18028
|
-
WriteLinkedCasesFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteLinkedCasesFieldComponent, selectors: [["ccd-write-linked-cases-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls:
|
|
18386
|
+
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) {
|
|
18029
18387
|
if (rf & 1) {
|
|
18030
|
-
i0__namespace.ɵɵ
|
|
18388
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
18031
18389
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
18032
|
-
i0__namespace.ɵɵ
|
|
18033
|
-
i0__namespace.ɵɵtemplate(3, WriteLinkedCasesFieldComponent_ng_container_3_Template, 2, 0, "ng-container",
|
|
18034
|
-
i0__namespace.ɵɵtemplate(4, WriteLinkedCasesFieldComponent_ng_container_4_Template, 2, 0, "ng-container",
|
|
18035
|
-
i0__namespace.ɵɵtemplate(5, WriteLinkedCasesFieldComponent_ng_container_5_Template, 2, 0, "ng-container",
|
|
18036
|
-
i0__namespace.ɵɵtemplate(6, WriteLinkedCasesFieldComponent_ng_container_6_Template, 2, 0, "ng-container",
|
|
18037
|
-
i0__namespace.ɵɵtemplate(7, WriteLinkedCasesFieldComponent_ng_container_7_Template, 2, 0, "ng-container", 3);
|
|
18390
|
+
i0__namespace.ɵɵtemplate(2, WriteLinkedCasesFieldComponent_ng_container_2_Template, 2, 0, "ng-container", 2);
|
|
18391
|
+
i0__namespace.ɵɵtemplate(3, WriteLinkedCasesFieldComponent_ng_container_3_Template, 2, 0, "ng-container", 2);
|
|
18392
|
+
i0__namespace.ɵɵtemplate(4, WriteLinkedCasesFieldComponent_ng_container_4_Template, 2, 0, "ng-container", 2);
|
|
18393
|
+
i0__namespace.ɵɵtemplate(5, WriteLinkedCasesFieldComponent_ng_container_5_Template, 2, 0, "ng-container", 2);
|
|
18394
|
+
i0__namespace.ɵɵtemplate(6, WriteLinkedCasesFieldComponent_ng_container_6_Template, 2, 0, "ng-container", 2);
|
|
18038
18395
|
i0__namespace.ɵɵelementEnd();
|
|
18039
18396
|
i0__namespace.ɵɵelementEnd();
|
|
18040
18397
|
}
|
|
18041
18398
|
if (rf & 2) {
|
|
18042
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
|
|
18043
|
-
i0__namespace.ɵɵadvance(1);
|
|
18044
18399
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
18045
18400
|
i0__namespace.ɵɵadvance(1);
|
|
18046
18401
|
i0__namespace.ɵɵproperty("ngSwitch", ctx.linkedCasesPage);
|
|
@@ -20249,7 +20604,7 @@
|
|
|
20249
20604
|
i0__namespace.ɵɵclassProp("grey-bar", ctx.canHaveGreyBar && !ctx.caseField.hiddenCannotChange);
|
|
20250
20605
|
i0__namespace.ɵɵproperty("hidden", ctx.caseField.hidden);
|
|
20251
20606
|
}
|
|
20252
|
-
}, styles: [".form [_nghost-%COMP%] .grey-bar
|
|
20607
|
+
}, styles: [".form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
20253
20608
|
(function () {
|
|
20254
20609
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FieldWriteComponent, [{
|
|
20255
20610
|
type: i0.Component,
|
|
@@ -20349,7 +20704,7 @@
|
|
|
20349
20704
|
i0__namespace.ɵɵadvance(1);
|
|
20350
20705
|
i0__namespace.ɵɵproperty("ngIf", ctx.withLabel && !ctx.isLabel() && (!ctx.isComplex() || ctx.isCaseLink()))("ngIfElse", _r1);
|
|
20351
20706
|
}
|
|
20352
|
-
}, directives: [i1__namespace.NgIf, i1__namespace.NgTemplateOutlet], styles: [".case-field[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.case-field[_ngcontent-%COMP%]{box-sizing:border-box;margin-bottom:15px}@media (min-width:641px){.case-field[_ngcontent-%COMP%]{margin-bottom:30px}}.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.form [_nghost-%COMP%] .grey-bar
|
|
20707
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgTemplateOutlet], styles: [".case-field[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.case-field[_ngcontent-%COMP%]{box-sizing:border-box;margin-bottom:15px}@media (min-width:641px){.case-field[_ngcontent-%COMP%]{margin-bottom:30px}}.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
20353
20708
|
var ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(FieldReadLabelComponent);
|
|
20354
20709
|
(function () {
|
|
20355
20710
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FieldReadLabelComponent, [{
|
|
@@ -20660,7 +21015,7 @@
|
|
|
20660
21015
|
i0__namespace.ɵɵadvance(4);
|
|
20661
21016
|
i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
20662
21017
|
}
|
|
20663
|
-
}, directives: [i1__namespace$4.CdkOverlayOrigin, i1__namespace$4.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-
|
|
21018
|
+
}, directives: [i1__namespace$4.CdkOverlayOrigin, i1__namespace$4.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
|
|
20664
21019
|
(function () {
|
|
20665
21020
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
20666
21021
|
type: i0.Component,
|
|
@@ -21274,21 +21629,21 @@
|
|
|
21274
21629
|
i0__namespace.ɵɵelementEnd();
|
|
21275
21630
|
}
|
|
21276
21631
|
}
|
|
21277
|
-
function
|
|
21632
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
|
|
21278
21633
|
if (rf & 1) {
|
|
21279
21634
|
i0__namespace.ɵɵelementStart(0, "strong", 19);
|
|
21280
21635
|
i0__namespace.ɵɵtext(1, "Active");
|
|
21281
21636
|
i0__namespace.ɵɵelementEnd();
|
|
21282
21637
|
}
|
|
21283
21638
|
}
|
|
21284
|
-
function
|
|
21639
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template(rf, ctx) {
|
|
21285
21640
|
if (rf & 1) {
|
|
21286
21641
|
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
21287
21642
|
i0__namespace.ɵɵtext(1, "Inactive");
|
|
21288
21643
|
i0__namespace.ɵɵelementEnd();
|
|
21289
21644
|
}
|
|
21290
21645
|
}
|
|
21291
|
-
function
|
|
21646
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_19_Template(rf, ctx) {
|
|
21292
21647
|
if (rf & 1) {
|
|
21293
21648
|
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
21294
21649
|
i0__namespace.ɵɵtext(1, "Requested");
|
|
@@ -21305,22 +21660,25 @@
|
|
|
21305
21660
|
i0__namespace.ɵɵelementStart(4, "div");
|
|
21306
21661
|
i0__namespace.ɵɵtext(5);
|
|
21307
21662
|
i0__namespace.ɵɵelementEnd();
|
|
21308
|
-
i0__namespace.ɵɵ
|
|
21309
|
-
i0__namespace.ɵɵelementStart(6, "td", 16);
|
|
21663
|
+
i0__namespace.ɵɵelementStart(6, "div");
|
|
21310
21664
|
i0__namespace.ɵɵtext(7);
|
|
21311
21665
|
i0__namespace.ɵɵelementEnd();
|
|
21666
|
+
i0__namespace.ɵɵelementEnd();
|
|
21312
21667
|
i0__namespace.ɵɵelementStart(8, "td", 16);
|
|
21313
21668
|
i0__namespace.ɵɵtext(9);
|
|
21314
|
-
i0__namespace.ɵɵpipe(10, "date");
|
|
21315
21669
|
i0__namespace.ɵɵelementEnd();
|
|
21316
|
-
i0__namespace.ɵɵelementStart(
|
|
21317
|
-
i0__namespace.ɵɵtext(
|
|
21318
|
-
i0__namespace.ɵɵpipe(
|
|
21670
|
+
i0__namespace.ɵɵelementStart(10, "td", 16);
|
|
21671
|
+
i0__namespace.ɵɵtext(11);
|
|
21672
|
+
i0__namespace.ɵɵpipe(12, "date");
|
|
21673
|
+
i0__namespace.ɵɵelementEnd();
|
|
21674
|
+
i0__namespace.ɵɵelementStart(13, "td", 16);
|
|
21675
|
+
i0__namespace.ɵɵtext(14);
|
|
21676
|
+
i0__namespace.ɵɵpipe(15, "date");
|
|
21319
21677
|
i0__namespace.ɵɵelementEnd();
|
|
21320
|
-
i0__namespace.ɵɵelementStart(
|
|
21321
|
-
i0__namespace.ɵɵtemplate(
|
|
21322
|
-
i0__namespace.ɵɵtemplate(
|
|
21323
|
-
i0__namespace.ɵɵtemplate(
|
|
21678
|
+
i0__namespace.ɵɵelementStart(16, "td", 16);
|
|
21679
|
+
i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 17);
|
|
21680
|
+
i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template, 2, 0, "strong", 18);
|
|
21681
|
+
i0__namespace.ɵɵtemplate(19, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_19_Template, 2, 0, "strong", 18);
|
|
21324
21682
|
i0__namespace.ɵɵelementEnd();
|
|
21325
21683
|
i0__namespace.ɵɵelementEnd();
|
|
21326
21684
|
}
|
|
@@ -21332,11 +21690,13 @@
|
|
|
21332
21690
|
i0__namespace.ɵɵadvance(2);
|
|
21333
21691
|
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.otherDescription);
|
|
21334
21692
|
i0__namespace.ɵɵadvance(2);
|
|
21693
|
+
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.subTypeValue);
|
|
21694
|
+
i0__namespace.ɵɵadvance(2);
|
|
21335
21695
|
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
|
|
21336
21696
|
i0__namespace.ɵɵadvance(2);
|
|
21337
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(
|
|
21697
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(12, 9, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
|
|
21338
21698
|
i0__namespace.ɵɵadvance(3);
|
|
21339
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(
|
|
21699
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(15, 12, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
|
|
21340
21700
|
i0__namespace.ɵɵadvance(3);
|
|
21341
21701
|
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
|
|
21342
21702
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -21348,7 +21708,7 @@
|
|
|
21348
21708
|
function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
|
|
21349
21709
|
if (rf & 1) {
|
|
21350
21710
|
i0__namespace.ɵɵelementStart(0, "tbody", 10);
|
|
21351
|
-
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template,
|
|
21711
|
+
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 20, 15, "tr", 14);
|
|
21352
21712
|
i0__namespace.ɵɵelementEnd();
|
|
21353
21713
|
}
|
|
21354
21714
|
if (rf & 2) {
|
|
@@ -22011,7 +22371,7 @@
|
|
|
22011
22371
|
i0__namespace.ɵɵadvance(1);
|
|
22012
22372
|
i0__namespace.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
|
|
22013
22373
|
}
|
|
22014
|
-
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i3__namespace$1.MatInput, i2__namespace.DefaultValueAccessor,
|
|
22374
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i3__namespace$1.MatInput, i2__namespace.DefaultValueAccessor, i4__namespace.MatAutocompleteTrigger, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i4__namespace.MatAutocomplete, i1__namespace.NgForOf, i5__namespace.MatOption], pipes: [i1__namespace.AsyncPipe], styles: [".autocomplete__input--show-all-values[_ngcontent-%COMP%]{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down[_ngcontent-%COMP%]{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible[_ngcontent-%COMP%]{display:block}.autocomplete__menu--hidden[_ngcontent-%COMP%]{display:none}.autocomplete__menu--overlay[_ngcontent-%COMP%]{box-shadow:0 2px 6px rgba(0,0,0,.256863);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline[_ngcontent-%COMP%]{position:relative}.autocomplete__option[_ngcontent-%COMP%]{border-left-width:0;border-bottom:1px solid #b1b4b6;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:none}.autocomplete__option[_ngcontent-%COMP%]:first-of-type{border-top-width:0}.autocomplete__option[_ngcontent-%COMP%]:last-of-type{border-bottom-width:0}.autocomplete__option--odd[_ngcontent-%COMP%]{background-color:#fafafa}.autocomplete__option--focused[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results[_ngcontent-%COMP%]{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.25}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{padding:5px}@media (min-width:641px){.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.31579}}.div-action[_ngcontent-%COMP%]{display:inline-block}.add-location[_ngcontent-%COMP%]{display:inline}.remove-location-button[_ngcontent-%COMP%]{margin:5px}.hide-autocomplete[_ngcontent-%COMP%]{display:none}.auto-complete-container[_ngcontent-%COMP%]{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input[_ngcontent-%COMP%]{line-height:24px;font-size:19px}.hidden[_ngcontent-%COMP%]{display:none}.search-language__input[_ngcontent-%COMP%]{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}"] });
|
|
22015
22375
|
(function () {
|
|
22016
22376
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
|
|
22017
22377
|
type: i0.Component,
|
|
@@ -23931,7 +24291,7 @@
|
|
|
23931
24291
|
};
|
|
23932
24292
|
return DatetimePickerComponent;
|
|
23933
24293
|
}(AbstractFormFieldComponent));
|
|
23934
|
-
DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4.NGX_MAT_DATE_FORMATS)); };
|
|
24294
|
+
DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4$1.NGX_MAT_DATE_FORMATS)); };
|
|
23935
24295
|
DatetimePickerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) {
|
|
23936
24296
|
if (rf & 1) {
|
|
23937
24297
|
i0__namespace.ɵɵviewQuery(_c0$i, 1);
|
|
@@ -23943,10 +24303,10 @@
|
|
|
23943
24303
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
23944
24304
|
}
|
|
23945
24305
|
}, inputs: { dateControl: "dateControl" }, features: [i0__namespace.ɵɵProvidersFeature([
|
|
23946
|
-
{ provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
23947
|
-
{ provide: i4.NgxMatDateAdapter,
|
|
24306
|
+
{ provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24307
|
+
{ provide: i4$1.NgxMatDateAdapter,
|
|
23948
24308
|
useClass: momentAdapter.NgxMatMomentAdapter,
|
|
23949
|
-
deps: [
|
|
24309
|
+
deps: [i5.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
23950
24310
|
},
|
|
23951
24311
|
{ provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
23952
24312
|
]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 14, vars: 26, consts: [[1, "govuk-form-group", "bottom-30", 3, "id", "ngClass"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "datepicker-container"], ["ng-model-options", "{timezone:'utc'}", 1, "govuk-input", 3, "min", "max", "formControl", "ngxMatDatetimePicker", "focusin", "focusout", "dateChange"], ["input", ""], ["matSuffix", "", "id", "pickerOpener", 3, "for"], [3, "color", "touchUi", "hideTime", "startView", "stepHour", "stepSecond", "stepMinute", "showSeconds", "showSpinners", "disableMinute", "enableMeridian", "yearSelected", "monthSelected", "opened"], ["picker", ""], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function DatetimePickerComponent_Template(rf, ctx) {
|
|
@@ -23993,7 +24353,7 @@
|
|
|
23993
24353
|
i0__namespace.ɵɵadvance(1);
|
|
23994
24354
|
i0__namespace.ɵɵproperty("color", ctx.color)("touchUi", ctx.touchUi)("hideTime", ctx.hideTime)("startView", ctx.startView)("stepHour", ctx.stepHour)("stepSecond", ctx.stepSecond)("stepMinute", ctx.stepMinute)("showSeconds", ctx.showSeconds)("showSpinners", ctx.showSpinners)("disableMinute", ctx.disableMinute)("enableMeridian", ctx.enableMeridian);
|
|
23995
24355
|
}
|
|
23996
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i4__namespace.NgxMatDatetimeInput, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i5__namespace$1.MatDatepickerToggle, i6__namespace$1.MatSuffix, i4__namespace.NgxMatDatetimePicker], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #fd0;border:1px solid #000}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #fd0}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid #000;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:first-of-type:after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:first-of-type{visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:last-child [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child.ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \u25B2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\u25BC\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid #000;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px 0 #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}"], encapsulation: 2 });
|
|
24356
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i4__namespace$1.NgxMatDatetimeInput, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i5__namespace$1.MatDatepickerToggle, i6__namespace.MatSuffix, i4__namespace$1.NgxMatDatetimePicker], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #fd0;border:1px solid #000}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #fd0}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid #000;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:first-of-type:after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:first-of-type{visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:last-child [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child.ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \u25B2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\u25BC\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid #000;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px 0 #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}"], encapsulation: 2 });
|
|
23997
24357
|
(function () {
|
|
23998
24358
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimePickerComponent, [{
|
|
23999
24359
|
type: i0.Component,
|
|
@@ -24003,10 +24363,10 @@
|
|
|
24003
24363
|
styleUrls: ['./datetime-picker.component.scss'],
|
|
24004
24364
|
encapsulation: i0.ViewEncapsulation.None,
|
|
24005
24365
|
providers: [
|
|
24006
|
-
{ provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24007
|
-
{ provide: i4.NgxMatDateAdapter,
|
|
24366
|
+
{ provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24367
|
+
{ provide: i4$1.NgxMatDateAdapter,
|
|
24008
24368
|
useClass: momentAdapter.NgxMatMomentAdapter,
|
|
24009
|
-
deps: [
|
|
24369
|
+
deps: [i5.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
24010
24370
|
},
|
|
24011
24371
|
{ provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
24012
24372
|
]
|
|
@@ -24014,7 +24374,7 @@
|
|
|
24014
24374
|
}], function () {
|
|
24015
24375
|
return [{ type: FormatTranslatorService }, { type: undefined, decorators: [{
|
|
24016
24376
|
type: i0.Inject,
|
|
24017
|
-
args: [i4.NGX_MAT_DATE_FORMATS]
|
|
24377
|
+
args: [i4$1.NGX_MAT_DATE_FORMATS]
|
|
24018
24378
|
}] }];
|
|
24019
24379
|
}, { datetimePicker: [{
|
|
24020
24380
|
type: i0.ViewChild,
|
|
@@ -25642,7 +26002,7 @@
|
|
|
25642
26002
|
LinkedCasesService,
|
|
25643
26003
|
CommonDataService,
|
|
25644
26004
|
JurisdictionService,
|
|
25645
|
-
{ provide:
|
|
26005
|
+
{ provide: i5.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
25646
26006
|
], imports: [[
|
|
25647
26007
|
i1.CommonModule,
|
|
25648
26008
|
i1$1.RouterModule,
|
|
@@ -25659,13 +26019,13 @@
|
|
|
25659
26019
|
TabsModule,
|
|
25660
26020
|
LabelSubstitutorModule,
|
|
25661
26021
|
i1$5.NgxMdModule,
|
|
25662
|
-
i4.NgxMatDatetimePickerModule,
|
|
25663
|
-
i4.NgxMatTimepickerModule,
|
|
25664
|
-
i4.NgxMatNativeDateModule,
|
|
25665
|
-
i6
|
|
26022
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26023
|
+
i4$1.NgxMatTimepickerModule,
|
|
26024
|
+
i4$1.NgxMatNativeDateModule,
|
|
26025
|
+
i6.MatFormFieldModule,
|
|
25666
26026
|
i3$1.MatInputModule,
|
|
25667
26027
|
i5$1.MatDatepickerModule,
|
|
25668
|
-
|
|
26028
|
+
i4.MatAutocompleteModule,
|
|
25669
26029
|
i7.CdkTreeModule,
|
|
25670
26030
|
i1$4.OverlayModule,
|
|
25671
26031
|
i3.PaymentLibModule,
|
|
@@ -25673,9 +26033,9 @@
|
|
|
25673
26033
|
i1$3.MatDialogModule,
|
|
25674
26034
|
i11.MediaViewerModule,
|
|
25675
26035
|
LoadingModule
|
|
25676
|
-
], i4.NgxMatDatetimePickerModule,
|
|
25677
|
-
i4.NgxMatNativeDateModule,
|
|
25678
|
-
i4.NgxMatTimepickerModule,
|
|
26036
|
+
], i4$1.NgxMatDatetimePickerModule,
|
|
26037
|
+
i4$1.NgxMatNativeDateModule,
|
|
26038
|
+
i4$1.NgxMatTimepickerModule,
|
|
25679
26039
|
TabsModule,
|
|
25680
26040
|
PaletteUtilsModule,
|
|
25681
26041
|
PipesModule] });
|
|
@@ -25802,20 +26162,20 @@
|
|
|
25802
26162
|
TabsModule,
|
|
25803
26163
|
LabelSubstitutorModule,
|
|
25804
26164
|
i1$5.NgxMdModule,
|
|
25805
|
-
i4.NgxMatDatetimePickerModule,
|
|
25806
|
-
i4.NgxMatTimepickerModule,
|
|
25807
|
-
i4.NgxMatNativeDateModule,
|
|
25808
|
-
i6
|
|
26165
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26166
|
+
i4$1.NgxMatTimepickerModule,
|
|
26167
|
+
i4$1.NgxMatNativeDateModule,
|
|
26168
|
+
i6.MatFormFieldModule,
|
|
25809
26169
|
i3$1.MatInputModule,
|
|
25810
26170
|
i5$1.MatDatepickerModule,
|
|
25811
|
-
|
|
26171
|
+
i4.MatAutocompleteModule,
|
|
25812
26172
|
i7.CdkTreeModule,
|
|
25813
26173
|
i1$4.OverlayModule,
|
|
25814
26174
|
i3.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
|
|
25815
26175
|
i11.MediaViewerModule,
|
|
25816
|
-
LoadingModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
25817
|
-
i4.NgxMatNativeDateModule,
|
|
25818
|
-
i4.NgxMatTimepickerModule,
|
|
26176
|
+
LoadingModule], exports: [i4$1.NgxMatDatetimePickerModule,
|
|
26177
|
+
i4$1.NgxMatNativeDateModule,
|
|
26178
|
+
i4$1.NgxMatTimepickerModule,
|
|
25819
26179
|
TabsModule,
|
|
25820
26180
|
PaletteUtilsModule,
|
|
25821
26181
|
PipesModule, UnsupportedFieldComponent,
|
|
@@ -25935,13 +26295,13 @@
|
|
|
25935
26295
|
TabsModule,
|
|
25936
26296
|
LabelSubstitutorModule,
|
|
25937
26297
|
i1$5.NgxMdModule,
|
|
25938
|
-
i4.NgxMatDatetimePickerModule,
|
|
25939
|
-
i4.NgxMatTimepickerModule,
|
|
25940
|
-
i4.NgxMatNativeDateModule,
|
|
25941
|
-
i6
|
|
26298
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26299
|
+
i4$1.NgxMatTimepickerModule,
|
|
26300
|
+
i4$1.NgxMatNativeDateModule,
|
|
26301
|
+
i6.MatFormFieldModule,
|
|
25942
26302
|
i3$1.MatInputModule,
|
|
25943
26303
|
i5$1.MatDatepickerModule,
|
|
25944
|
-
|
|
26304
|
+
i4.MatAutocompleteModule,
|
|
25945
26305
|
i7.CdkTreeModule,
|
|
25946
26306
|
i1$4.OverlayModule,
|
|
25947
26307
|
i3.PaymentLibModule,
|
|
@@ -25966,9 +26326,9 @@
|
|
|
25966
26326
|
CaseFlagSummaryListComponent
|
|
25967
26327
|
], PALETTE_COMPONENTS),
|
|
25968
26328
|
exports: __spread([
|
|
25969
|
-
i4.NgxMatDatetimePickerModule,
|
|
25970
|
-
i4.NgxMatNativeDateModule,
|
|
25971
|
-
i4.NgxMatTimepickerModule,
|
|
26329
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26330
|
+
i4$1.NgxMatNativeDateModule,
|
|
26331
|
+
i4$1.NgxMatTimepickerModule,
|
|
25972
26332
|
TabsModule,
|
|
25973
26333
|
PaletteUtilsModule,
|
|
25974
26334
|
PipesModule
|
|
@@ -25986,7 +26346,7 @@
|
|
|
25986
26346
|
LinkedCasesService,
|
|
25987
26347
|
CommonDataService,
|
|
25988
26348
|
JurisdictionService,
|
|
25989
|
-
{ provide:
|
|
26349
|
+
{ provide: i5.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
25990
26350
|
],
|
|
25991
26351
|
entryComponents: [CaseFileViewFolderSelectorComponent]
|
|
25992
26352
|
}]
|
|
@@ -26020,7 +26380,7 @@
|
|
|
26020
26380
|
AddCommentsComponent,
|
|
26021
26381
|
ManageCaseFlagsComponent,
|
|
26022
26382
|
UpdateFlagComponent], []);
|
|
26023
|
-
i0__namespace.ɵɵsetComponentScope(WriteLinkedCasesFieldComponent, [
|
|
26383
|
+
i0__namespace.ɵɵsetComponentScope(WriteLinkedCasesFieldComponent, [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, BeforeYouStartComponent,
|
|
26024
26384
|
NoLinkedCasesComponent,
|
|
26025
26385
|
LinkCasesComponent,
|
|
26026
26386
|
UnLinkCasesComponent,
|
|
@@ -26032,41 +26392,12 @@
|
|
|
26032
26392
|
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
26033
26393
|
i0__namespace.ɵɵsetComponentScope(
|
|
26034
26394
|
// ComponentLauncher web components
|
|
26035
|
-
CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
|
|
26395
|
+
CaseFileViewFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
|
|
26036
26396
|
i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26037
26397
|
i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
|
|
26038
26398
|
i0__namespace.ɵɵsetComponentScope(LinkCasesComponent, [i1__namespace.NgIf, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i2__namespace.FormArrayName, i1__namespace.NgForOf, i2__namespace.FormGroupName, i2__namespace.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26039
26399
|
i0__namespace.ɵɵsetComponentScope(CheckYourAnswersComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26040
26400
|
|
|
26041
|
-
var Confirmation = /** @class */ (function () {
|
|
26042
|
-
function Confirmation(caseId, status, header, body) {
|
|
26043
|
-
this.caseId = caseId;
|
|
26044
|
-
this.status = status;
|
|
26045
|
-
this.header = header;
|
|
26046
|
-
this.body = body;
|
|
26047
|
-
}
|
|
26048
|
-
Confirmation.prototype.getCaseId = function () {
|
|
26049
|
-
return this.caseId;
|
|
26050
|
-
};
|
|
26051
|
-
Confirmation.prototype.getStatus = function () {
|
|
26052
|
-
return this.status;
|
|
26053
|
-
};
|
|
26054
|
-
Confirmation.prototype.getHeader = function () {
|
|
26055
|
-
return this.header;
|
|
26056
|
-
};
|
|
26057
|
-
Confirmation.prototype.getBody = function () {
|
|
26058
|
-
return this.body;
|
|
26059
|
-
};
|
|
26060
|
-
return Confirmation;
|
|
26061
|
-
}());
|
|
26062
|
-
|
|
26063
|
-
exports.EventCompletionReturnStates = void 0;
|
|
26064
|
-
(function (EventCompletionReturnStates) {
|
|
26065
|
-
EventCompletionReturnStates["InProgress"] = "in-progress";
|
|
26066
|
-
EventCompletionReturnStates["CompleteEvent"] = "complete-event";
|
|
26067
|
-
EventCompletionReturnStates["CancelEvent"] = "cancel-event";
|
|
26068
|
-
})(exports.EventCompletionReturnStates || (exports.EventCompletionReturnStates = {}));
|
|
26069
|
-
|
|
26070
26401
|
function CaseEditSubmitComponent_div_0_div_3_Template(rf, ctx) {
|
|
26071
26402
|
if (rf & 1) {
|
|
26072
26403
|
i0__namespace.ɵɵelement(0, "div");
|
|
@@ -26090,9 +26421,9 @@
|
|
|
26090
26421
|
i0__namespace.ɵɵelementEnd();
|
|
26091
26422
|
}
|
|
26092
26423
|
if (rf & 2) {
|
|
26093
|
-
var
|
|
26424
|
+
var ctx_r10 = i0__namespace.ɵɵnextContext(3);
|
|
26094
26425
|
i0__namespace.ɵɵadvance(1);
|
|
26095
|
-
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1,
|
|
26426
|
+
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r10.getCaseId()), "");
|
|
26096
26427
|
}
|
|
26097
26428
|
}
|
|
26098
26429
|
function CaseEditSubmitComponent_div_0_ng_template_6_Template(rf, ctx) {
|
|
@@ -26104,343 +26435,278 @@
|
|
|
26104
26435
|
i0__namespace.ɵɵproperty("ngIf", ctx_r6.getCaseId());
|
|
26105
26436
|
}
|
|
26106
26437
|
}
|
|
26107
|
-
function
|
|
26108
|
-
if (rf & 1) {
|
|
26109
|
-
i0__namespace.ɵɵelementStart(0, "div", 17);
|
|
26110
|
-
i0__namespace.ɵɵelementStart(1, "h1", 18);
|
|
26111
|
-
i0__namespace.ɵɵtext(2, " Something went wrong ");
|
|
26112
|
-
i0__namespace.ɵɵelementEnd();
|
|
26113
|
-
i0__namespace.ɵɵelementStart(3, "div", 19);
|
|
26114
|
-
i0__namespace.ɵɵelementStart(4, "p");
|
|
26115
|
-
i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
|
|
26116
|
-
i0__namespace.ɵɵelementEnd();
|
|
26117
|
-
i0__namespace.ɵɵelementStart(6, "p");
|
|
26118
|
-
i0__namespace.ɵɵelementStart(7, "a", 20);
|
|
26119
|
-
i0__namespace.ɵɵtext(8, "Contact us");
|
|
26120
|
-
i0__namespace.ɵɵelementEnd();
|
|
26121
|
-
i0__namespace.ɵɵtext(9, " if you're still having problems.");
|
|
26122
|
-
i0__namespace.ɵɵelementEnd();
|
|
26123
|
-
i0__namespace.ɵɵelementEnd();
|
|
26124
|
-
i0__namespace.ɵɵelementEnd();
|
|
26125
|
-
}
|
|
26126
|
-
}
|
|
26127
|
-
function CaseEditSubmitComponent_div_0_div_9_ul_5_li_1_Template(rf, ctx) {
|
|
26128
|
-
if (rf & 1) {
|
|
26129
|
-
i0__namespace.ɵɵelementStart(0, "li", 25);
|
|
26130
|
-
i0__namespace.ɵɵtext(1);
|
|
26131
|
-
i0__namespace.ɵɵelementEnd();
|
|
26132
|
-
}
|
|
26133
|
-
if (rf & 2) {
|
|
26134
|
-
var fieldError_r15 = ctx.$implicit;
|
|
26135
|
-
i0__namespace.ɵɵadvance(1);
|
|
26136
|
-
i0__namespace.ɵɵtextInterpolate(fieldError_r15.message);
|
|
26137
|
-
}
|
|
26138
|
-
}
|
|
26139
|
-
function CaseEditSubmitComponent_div_0_div_9_ul_5_Template(rf, ctx) {
|
|
26140
|
-
if (rf & 1) {
|
|
26141
|
-
i0__namespace.ɵɵelementStart(0, "ul", 23);
|
|
26142
|
-
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_div_9_ul_5_li_1_Template, 2, 1, "li", 24);
|
|
26143
|
-
i0__namespace.ɵɵelementEnd();
|
|
26144
|
-
}
|
|
26145
|
-
if (rf & 2) {
|
|
26146
|
-
var ctx_r13 = i0__namespace.ɵɵnextContext(3);
|
|
26147
|
-
i0__namespace.ɵɵadvance(1);
|
|
26148
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r13.error.details.field_errors);
|
|
26149
|
-
}
|
|
26150
|
-
}
|
|
26151
|
-
function CaseEditSubmitComponent_div_0_div_9_Template(rf, ctx) {
|
|
26152
|
-
if (rf & 1) {
|
|
26153
|
-
i0__namespace.ɵɵelementStart(0, "div", 17);
|
|
26154
|
-
i0__namespace.ɵɵelementStart(1, "h3", 21);
|
|
26155
|
-
i0__namespace.ɵɵtext(2, " The event could not be created ");
|
|
26156
|
-
i0__namespace.ɵɵelementEnd();
|
|
26157
|
-
i0__namespace.ɵɵelementStart(3, "p");
|
|
26158
|
-
i0__namespace.ɵɵtext(4);
|
|
26159
|
-
i0__namespace.ɵɵelementEnd();
|
|
26160
|
-
i0__namespace.ɵɵtemplate(5, CaseEditSubmitComponent_div_0_div_9_ul_5_Template, 2, 1, "ul", 22);
|
|
26161
|
-
i0__namespace.ɵɵelementEnd();
|
|
26162
|
-
}
|
|
26163
|
-
if (rf & 2) {
|
|
26164
|
-
var ctx_r8 = i0__namespace.ɵɵnextContext(2);
|
|
26165
|
-
i0__namespace.ɵɵadvance(4);
|
|
26166
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r8.error.message);
|
|
26167
|
-
i0__namespace.ɵɵadvance(1);
|
|
26168
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r8.error.details == null ? null : ctx_r8.error.details.field_errors);
|
|
26169
|
-
}
|
|
26170
|
-
}
|
|
26171
|
-
function CaseEditSubmitComponent_div_0_ng_container_12_span_3_Template(rf, ctx) {
|
|
26438
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_span_3_Template(rf, ctx) {
|
|
26172
26439
|
if (rf & 1) {
|
|
26173
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
26440
|
+
i0__namespace.ɵɵelementStart(0, "span", 20);
|
|
26174
26441
|
i0__namespace.ɵɵtext(1, "Check the information below carefully.");
|
|
26175
26442
|
i0__namespace.ɵɵelementEnd();
|
|
26176
26443
|
}
|
|
26177
26444
|
}
|
|
26178
|
-
function
|
|
26445
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template(rf, ctx) {
|
|
26179
26446
|
if (rf & 1) {
|
|
26180
|
-
i0__namespace.ɵɵelementStart(0, "th",
|
|
26181
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
26447
|
+
i0__namespace.ɵɵelementStart(0, "th", 27);
|
|
26448
|
+
i0__namespace.ɵɵelementStart(1, "span", 20);
|
|
26182
26449
|
i0__namespace.ɵɵtext(2);
|
|
26183
26450
|
i0__namespace.ɵɵelementEnd();
|
|
26184
26451
|
i0__namespace.ɵɵelementEnd();
|
|
26185
26452
|
}
|
|
26186
26453
|
if (rf & 2) {
|
|
26187
|
-
var
|
|
26454
|
+
var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
26188
26455
|
i0__namespace.ɵɵadvance(2);
|
|
26189
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26456
|
+
i0__namespace.ɵɵtextInterpolate(field_r16.label);
|
|
26190
26457
|
}
|
|
26191
26458
|
}
|
|
26192
|
-
function
|
|
26459
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template(rf, ctx) {
|
|
26193
26460
|
if (rf & 1) {
|
|
26194
|
-
var
|
|
26461
|
+
var _r23_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26195
26462
|
i0__namespace.ɵɵelementStart(0, "a", 13);
|
|
26196
|
-
i0__namespace.ɵɵlistener("click", function
|
|
26197
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
26463
|
+
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r23_1); var page_r13 = i0__namespace.ɵɵnextContext(4).$implicit; var ctx_r21 = i0__namespace.ɵɵnextContext(3); return ctx_r21.navigateToPage(page_r13.id); });
|
|
26464
|
+
i0__namespace.ɵɵelementStart(1, "span", 20);
|
|
26198
26465
|
i0__namespace.ɵɵtext(2, "Change");
|
|
26199
26466
|
i0__namespace.ɵɵelementEnd();
|
|
26200
26467
|
i0__namespace.ɵɵelementEnd();
|
|
26201
26468
|
}
|
|
26202
26469
|
if (rf & 2) {
|
|
26203
|
-
var
|
|
26470
|
+
var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
26204
26471
|
i0__namespace.ɵɵadvance(1);
|
|
26205
|
-
i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ",
|
|
26472
|
+
i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ", field_r16.label, "");
|
|
26206
26473
|
}
|
|
26207
26474
|
}
|
|
26208
|
-
function
|
|
26475
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
26209
26476
|
if (rf & 1) {
|
|
26210
26477
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26211
|
-
i0__namespace.ɵɵelementStart(1, "tr",
|
|
26212
|
-
i0__namespace.ɵɵtemplate(2,
|
|
26213
|
-
i0__namespace.ɵɵelementStart(3, "td",
|
|
26214
|
-
i0__namespace.ɵɵelement(4, "ccd-field-read",
|
|
26478
|
+
i0__namespace.ɵɵelementStart(1, "tr", 21);
|
|
26479
|
+
i0__namespace.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template, 3, 1, "th", 22);
|
|
26480
|
+
i0__namespace.ɵɵelementStart(3, "td", 23);
|
|
26481
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 24);
|
|
26215
26482
|
i0__namespace.ɵɵelementEnd();
|
|
26216
|
-
i0__namespace.ɵɵelementStart(5, "td",
|
|
26217
|
-
i0__namespace.ɵɵtemplate(6,
|
|
26483
|
+
i0__namespace.ɵɵelementStart(5, "td", 25);
|
|
26484
|
+
i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template, 3, 1, "a", 26);
|
|
26218
26485
|
i0__namespace.ɵɵelementEnd();
|
|
26219
26486
|
i0__namespace.ɵɵelementEnd();
|
|
26220
26487
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26221
26488
|
}
|
|
26222
26489
|
if (rf & 2) {
|
|
26223
|
-
var
|
|
26224
|
-
var
|
|
26490
|
+
var field_r16 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26491
|
+
var ctx_r17 = i0__namespace.ɵɵnextContext(5);
|
|
26225
26492
|
i0__namespace.ɵɵadvance(1);
|
|
26226
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26493
|
+
i0__namespace.ɵɵproperty("caseField", field_r16)("hidden", field_r16.hidden)("formGroup", ctx_r17.editForm.controls["data"])("contextFields", ctx_r17.contextFields);
|
|
26227
26494
|
i0__namespace.ɵɵadvance(1);
|
|
26228
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
26495
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r17.isLabel(field_r16) && !ctx_r17.caseEdit.isCaseFlagSubmission);
|
|
26229
26496
|
i0__namespace.ɵɵadvance(1);
|
|
26230
|
-
i0__namespace.ɵɵattribute("colspan",
|
|
26497
|
+
i0__namespace.ɵɵattribute("colspan", ctx_r17.isLabel(field_r16) ? "2" : "1");
|
|
26231
26498
|
i0__namespace.ɵɵadvance(1);
|
|
26232
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26499
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r17.editForm.controls["data"])("topLevelFormGroup", ctx_r17.editForm.controls["data"])("caseField", ctx_r17.summaryCaseField(field_r16))("context", ctx_r17.paletteContext)("caseFields", ctx_r17.contextFields);
|
|
26233
26500
|
i0__namespace.ɵɵadvance(2);
|
|
26234
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26501
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r17.isChangeAllowed(field_r16));
|
|
26235
26502
|
}
|
|
26236
26503
|
}
|
|
26237
|
-
function
|
|
26504
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
26238
26505
|
if (rf & 1) {
|
|
26239
26506
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26240
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26507
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template, 7, 12, "ng-container", 0);
|
|
26241
26508
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26242
26509
|
}
|
|
26243
26510
|
if (rf & 2) {
|
|
26244
|
-
var
|
|
26245
|
-
var
|
|
26511
|
+
var field_r16 = ctx.$implicit;
|
|
26512
|
+
var ctx_r15 = i0__namespace.ɵɵnextContext(5);
|
|
26246
26513
|
i0__namespace.ɵɵadvance(1);
|
|
26247
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26514
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r15.canShowFieldInCYA(field_r16));
|
|
26248
26515
|
}
|
|
26249
26516
|
}
|
|
26250
26517
|
var _c0$f = function (a0, a4) { return [a0, false, undefined, true, a4]; };
|
|
26251
|
-
function
|
|
26518
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_Template(rf, ctx) {
|
|
26252
26519
|
if (rf & 1) {
|
|
26253
26520
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26254
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26521
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_Template, 2, 1, "ng-container", 19);
|
|
26255
26522
|
i0__namespace.ɵɵpipe(2, "ccdCYAPageLabelFilter");
|
|
26256
26523
|
i0__namespace.ɵɵpipe(3, "ccdReadFieldsFilter");
|
|
26257
26524
|
i0__namespace.ɵɵpipe(4, "ccdPageFields");
|
|
26258
26525
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26259
26526
|
}
|
|
26260
26527
|
if (rf & 2) {
|
|
26261
|
-
var
|
|
26262
|
-
var
|
|
26528
|
+
var page_r13 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26529
|
+
var ctx_r14 = i0__namespace.ɵɵnextContext(3);
|
|
26263
26530
|
i0__namespace.ɵɵadvance(1);
|
|
26264
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$f, i0__namespace.ɵɵpipeBind2(4, 9,
|
|
26531
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$f, i0__namespace.ɵɵpipeBind2(4, 9, page_r13, ctx_r14.editForm), ctx_r14.editForm.controls["data"]))));
|
|
26265
26532
|
}
|
|
26266
26533
|
}
|
|
26267
|
-
function
|
|
26534
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_Template(rf, ctx) {
|
|
26268
26535
|
if (rf & 1) {
|
|
26269
26536
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26270
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26537
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_Template, 5, 15, "ng-container", 0);
|
|
26271
26538
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26272
26539
|
}
|
|
26273
26540
|
if (rf & 2) {
|
|
26274
|
-
var
|
|
26275
|
-
var
|
|
26541
|
+
var page_r13 = ctx.$implicit;
|
|
26542
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(3);
|
|
26276
26543
|
i0__namespace.ɵɵadvance(1);
|
|
26277
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26544
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r12.isShown(page_r13));
|
|
26278
26545
|
}
|
|
26279
26546
|
}
|
|
26280
|
-
function
|
|
26547
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_Template(rf, ctx) {
|
|
26281
26548
|
if (rf & 1) {
|
|
26282
26549
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26283
26550
|
i0__namespace.ɵɵelementStart(1, "h2", 16);
|
|
26284
26551
|
i0__namespace.ɵɵtext(2);
|
|
26285
26552
|
i0__namespace.ɵɵelementEnd();
|
|
26286
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26287
|
-
i0__namespace.ɵɵelementStart(4, "table",
|
|
26553
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_11_span_3_Template, 2, 0, "span", 17);
|
|
26554
|
+
i0__namespace.ɵɵelementStart(4, "table", 18);
|
|
26288
26555
|
i0__namespace.ɵɵelementStart(5, "tbody");
|
|
26289
|
-
i0__namespace.ɵɵtemplate(6,
|
|
26556
|
+
i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_Template, 2, 1, "ng-container", 19);
|
|
26290
26557
|
i0__namespace.ɵɵelementEnd();
|
|
26291
26558
|
i0__namespace.ɵɵelementEnd();
|
|
26292
26559
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26293
26560
|
}
|
|
26294
26561
|
if (rf & 2) {
|
|
26295
|
-
var
|
|
26562
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
26296
26563
|
i0__namespace.ɵɵadvance(2);
|
|
26297
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26564
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r7.pageTitle);
|
|
26298
26565
|
i0__namespace.ɵɵadvance(1);
|
|
26299
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
26566
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r7.caseEdit.isCaseFlagSubmission);
|
|
26300
26567
|
i0__namespace.ɵɵadvance(3);
|
|
26301
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
26568
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r7.wizard.pages);
|
|
26302
26569
|
}
|
|
26303
26570
|
}
|
|
26304
|
-
function
|
|
26571
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template(rf, ctx) {
|
|
26305
26572
|
if (rf & 1) {
|
|
26306
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
26307
|
-
i0__namespace.ɵɵelementStart(1, "th",
|
|
26573
|
+
i0__namespace.ɵɵelementStart(0, "tr", 32);
|
|
26574
|
+
i0__namespace.ɵɵelementStart(1, "th", 33);
|
|
26308
26575
|
i0__namespace.ɵɵtext(2);
|
|
26309
26576
|
i0__namespace.ɵɵelementEnd();
|
|
26310
|
-
i0__namespace.ɵɵelementStart(3, "td",
|
|
26311
|
-
i0__namespace.ɵɵelement(4, "ccd-field-read",
|
|
26577
|
+
i0__namespace.ɵɵelementStart(3, "td", 34);
|
|
26578
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 35);
|
|
26312
26579
|
i0__namespace.ɵɵelementEnd();
|
|
26313
26580
|
i0__namespace.ɵɵelementEnd();
|
|
26314
26581
|
}
|
|
26315
26582
|
if (rf & 2) {
|
|
26316
|
-
var
|
|
26317
|
-
var
|
|
26318
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26583
|
+
var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26584
|
+
var ctx_r29 = i0__namespace.ɵɵnextContext(3);
|
|
26585
|
+
i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r29.editForm.controls["data"])("contextFields", ctx_r29.contextFields);
|
|
26319
26586
|
i0__namespace.ɵɵadvance(2);
|
|
26320
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26587
|
+
i0__namespace.ɵɵtextInterpolate(field_r28.label);
|
|
26321
26588
|
i0__namespace.ɵɵadvance(2);
|
|
26322
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26589
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r29.editForm.controls["data"])("caseField", ctx_r29.summaryCaseField(field_r28));
|
|
26323
26590
|
}
|
|
26324
26591
|
}
|
|
26325
|
-
function
|
|
26592
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template(rf, ctx) {
|
|
26326
26593
|
if (rf & 1) {
|
|
26327
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
26328
|
-
i0__namespace.ɵɵelementStart(1, "td",
|
|
26329
|
-
i0__namespace.ɵɵelement(2, "ccd-field-read",
|
|
26594
|
+
i0__namespace.ɵɵelementStart(0, "tr", 36);
|
|
26595
|
+
i0__namespace.ɵɵelementStart(1, "td", 37);
|
|
26596
|
+
i0__namespace.ɵɵelement(2, "ccd-field-read", 38);
|
|
26330
26597
|
i0__namespace.ɵɵelementEnd();
|
|
26331
26598
|
i0__namespace.ɵɵelementEnd();
|
|
26332
26599
|
}
|
|
26333
26600
|
if (rf & 2) {
|
|
26334
|
-
var
|
|
26335
|
-
var
|
|
26336
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26601
|
+
var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26602
|
+
var ctx_r30 = i0__namespace.ɵɵnextContext(3);
|
|
26603
|
+
i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r30.editForm.controls["data"])("contextFields", ctx_r30.contextFields);
|
|
26337
26604
|
i0__namespace.ɵɵadvance(2);
|
|
26338
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26605
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r30.editForm.controls["data"])("caseField", ctx_r30.summaryCaseField(field_r28))("caseFields", ctx_r30.contextFields);
|
|
26339
26606
|
}
|
|
26340
26607
|
}
|
|
26341
|
-
function
|
|
26608
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template(rf, ctx) {
|
|
26342
26609
|
if (rf & 1) {
|
|
26343
26610
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26344
|
-
i0__namespace.ɵɵelementContainerStart(1,
|
|
26611
|
+
i0__namespace.ɵɵelementContainerStart(1, 29);
|
|
26345
26612
|
i0__namespace.ɵɵpipe(2, "ccdIsCompound");
|
|
26346
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26347
|
-
i0__namespace.ɵɵtemplate(4,
|
|
26613
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template, 5, 6, "tr", 30);
|
|
26614
|
+
i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template, 3, 6, "tr", 31);
|
|
26348
26615
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26349
26616
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26350
26617
|
}
|
|
26351
26618
|
if (rf & 2) {
|
|
26352
|
-
var
|
|
26619
|
+
var field_r28 = ctx.$implicit;
|
|
26353
26620
|
i0__namespace.ɵɵadvance(1);
|
|
26354
|
-
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3,
|
|
26621
|
+
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r28));
|
|
26355
26622
|
i0__namespace.ɵɵadvance(2);
|
|
26356
26623
|
i0__namespace.ɵɵproperty("ngSwitchCase", true);
|
|
26357
26624
|
i0__namespace.ɵɵadvance(1);
|
|
26358
26625
|
i0__namespace.ɵɵproperty("ngSwitchCase", false);
|
|
26359
26626
|
}
|
|
26360
26627
|
}
|
|
26361
|
-
function
|
|
26628
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_Template(rf, ctx) {
|
|
26362
26629
|
if (rf & 1) {
|
|
26363
26630
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26364
|
-
i0__namespace.ɵɵelementStart(1, "table",
|
|
26631
|
+
i0__namespace.ɵɵelementStart(1, "table", 28);
|
|
26365
26632
|
i0__namespace.ɵɵelementStart(2, "tbody");
|
|
26366
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26633
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template, 5, 5, "ng-container", 19);
|
|
26367
26634
|
i0__namespace.ɵɵelementEnd();
|
|
26368
26635
|
i0__namespace.ɵɵelementEnd();
|
|
26369
26636
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26370
26637
|
}
|
|
26371
26638
|
if (rf & 2) {
|
|
26372
|
-
var
|
|
26639
|
+
var ctx_r8 = i0__namespace.ɵɵnextContext(2);
|
|
26373
26640
|
i0__namespace.ɵɵadvance(3);
|
|
26374
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
26641
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
|
|
26375
26642
|
}
|
|
26376
26643
|
}
|
|
26377
|
-
function
|
|
26644
|
+
function CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template(rf, ctx) {
|
|
26378
26645
|
if (rf & 1) {
|
|
26379
|
-
i0__namespace.ɵɵelementStart(0, "fieldset",
|
|
26380
|
-
i0__namespace.ɵɵelement(1, "legend",
|
|
26381
|
-
i0__namespace.ɵɵelementStart(2, "div",
|
|
26382
|
-
i0__namespace.ɵɵelementStart(3, "label",
|
|
26646
|
+
i0__namespace.ɵɵelementStart(0, "fieldset", 40);
|
|
26647
|
+
i0__namespace.ɵɵelement(1, "legend", 41);
|
|
26648
|
+
i0__namespace.ɵɵelementStart(2, "div", 42);
|
|
26649
|
+
i0__namespace.ɵɵelementStart(3, "label", 43);
|
|
26383
26650
|
i0__namespace.ɵɵtext(4, " Event summary (optional) ");
|
|
26384
|
-
i0__namespace.ɵɵelementStart(5, "span",
|
|
26651
|
+
i0__namespace.ɵɵelementStart(5, "span", 44);
|
|
26385
26652
|
i0__namespace.ɵɵtext(6, "A few words describing the purpose of the event.");
|
|
26386
26653
|
i0__namespace.ɵɵelementEnd();
|
|
26387
26654
|
i0__namespace.ɵɵelementEnd();
|
|
26388
|
-
i0__namespace.ɵɵelement(7, "input",
|
|
26655
|
+
i0__namespace.ɵɵelement(7, "input", 45);
|
|
26389
26656
|
i0__namespace.ɵɵelementEnd();
|
|
26390
|
-
i0__namespace.ɵɵelementStart(8, "div",
|
|
26391
|
-
i0__namespace.ɵɵelementStart(9, "label",
|
|
26657
|
+
i0__namespace.ɵɵelementStart(8, "div", 42);
|
|
26658
|
+
i0__namespace.ɵɵelementStart(9, "label", 46);
|
|
26392
26659
|
i0__namespace.ɵɵtext(10, "Event description (optional)");
|
|
26393
26660
|
i0__namespace.ɵɵelementEnd();
|
|
26394
|
-
i0__namespace.ɵɵelement(11, "textarea",
|
|
26661
|
+
i0__namespace.ɵɵelement(11, "textarea", 47);
|
|
26395
26662
|
i0__namespace.ɵɵelementEnd();
|
|
26396
26663
|
i0__namespace.ɵɵelementEnd();
|
|
26397
26664
|
}
|
|
26398
26665
|
}
|
|
26399
|
-
function
|
|
26666
|
+
function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
|
|
26400
26667
|
if (rf & 1) {
|
|
26401
26668
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26402
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26669
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template, 12, 0, "fieldset", 39);
|
|
26403
26670
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26404
26671
|
}
|
|
26405
26672
|
if (rf & 2) {
|
|
26406
|
-
var
|
|
26673
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext(2);
|
|
26407
26674
|
i0__namespace.ɵɵadvance(1);
|
|
26408
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26675
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r9.profile && !ctx_r9.isSolicitor());
|
|
26409
26676
|
}
|
|
26410
26677
|
}
|
|
26411
26678
|
function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
|
|
26412
26679
|
if (rf & 1) {
|
|
26413
|
-
var
|
|
26680
|
+
var _r35_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26414
26681
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
26415
26682
|
i0__namespace.ɵɵelementStart(1, "h1", 2);
|
|
26416
26683
|
i0__namespace.ɵɵtext(2);
|
|
26417
26684
|
i0__namespace.ɵɵelementEnd();
|
|
26418
|
-
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_div_3_Template, 1, 0, "div", 3);
|
|
26419
|
-
i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_template_4_Template, 2, 5, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
|
|
26420
|
-
i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_template_6_Template, 1, 1, "ng-template", null, 5, i0__namespace.ɵɵtemplateRefExtractor);
|
|
26421
|
-
i0__namespace.ɵɵ
|
|
26422
|
-
i0__namespace.ɵɵ
|
|
26423
|
-
i0__namespace.ɵɵ
|
|
26424
|
-
i0__namespace.ɵɵ
|
|
26425
|
-
i0__namespace.ɵɵ
|
|
26426
|
-
i0__namespace.ɵɵ
|
|
26427
|
-
i0__namespace.ɵɵ
|
|
26428
|
-
i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template,
|
|
26429
|
-
i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template,
|
|
26430
|
-
i0__namespace.ɵɵ
|
|
26431
|
-
i0__namespace.ɵɵelementStart(15, "
|
|
26432
|
-
i0__namespace.ɵɵ
|
|
26433
|
-
i0__namespace.ɵɵ
|
|
26434
|
-
i0__namespace.ɵɵ
|
|
26435
|
-
i0__namespace.ɵɵ
|
|
26436
|
-
i0__namespace.ɵɵ
|
|
26437
|
-
i0__namespace.ɵɵ
|
|
26438
|
-
i0__namespace.ɵɵelementEnd();
|
|
26439
|
-
i0__namespace.ɵɵ
|
|
26440
|
-
i0__namespace.ɵɵelementStart(20, "
|
|
26441
|
-
i0__namespace.ɵɵ
|
|
26442
|
-
i0__namespace.ɵɵ
|
|
26443
|
-
i0__namespace.ɵɵtext(22);
|
|
26685
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_div_3_Template, 1, 0, "div", 3);
|
|
26686
|
+
i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_template_4_Template, 2, 5, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
|
|
26687
|
+
i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_template_6_Template, 1, 1, "ng-template", null, 5, i0__namespace.ɵɵtemplateRefExtractor);
|
|
26688
|
+
i0__namespace.ɵɵelement(8, "ccd-case-edit-generic-errors", 6);
|
|
26689
|
+
i0__namespace.ɵɵelementStart(9, "ccd-callback-errors", 7);
|
|
26690
|
+
i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_9_listener($event) { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r34 = i0__namespace.ɵɵnextContext(); return ctx_r34.callbackErrorsNotify($event); });
|
|
26691
|
+
i0__namespace.ɵɵelementEnd();
|
|
26692
|
+
i0__namespace.ɵɵelementStart(10, "form", 8);
|
|
26693
|
+
i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_10_listener() { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r36 = i0__namespace.ɵɵnextContext(); return ctx_r36.submit(); });
|
|
26694
|
+
i0__namespace.ɵɵtemplate(11, CaseEditSubmitComponent_div_0_ng_container_11_Template, 7, 3, "ng-container", 0);
|
|
26695
|
+
i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 4, 1, "ng-container", 0);
|
|
26696
|
+
i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 2, 1, "ng-container", 0);
|
|
26697
|
+
i0__namespace.ɵɵelementStart(14, "div", 9);
|
|
26698
|
+
i0__namespace.ɵɵelementStart(15, "button", 10);
|
|
26699
|
+
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_15_listener() { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r37 = i0__namespace.ɵɵnextContext(); return ctx_r37.previous(); });
|
|
26700
|
+
i0__namespace.ɵɵtext(16, "Previous");
|
|
26701
|
+
i0__namespace.ɵɵelementEnd();
|
|
26702
|
+
i0__namespace.ɵɵelementStart(17, "button", 11);
|
|
26703
|
+
i0__namespace.ɵɵtext(18);
|
|
26704
|
+
i0__namespace.ɵɵelementEnd();
|
|
26705
|
+
i0__namespace.ɵɵelementEnd();
|
|
26706
|
+
i0__namespace.ɵɵelementStart(19, "p", 12);
|
|
26707
|
+
i0__namespace.ɵɵelementStart(20, "a", 13);
|
|
26708
|
+
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_20_listener() { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r38 = i0__namespace.ɵɵnextContext(); return ctx_r38.cancel(); });
|
|
26709
|
+
i0__namespace.ɵɵtext(21);
|
|
26444
26710
|
i0__namespace.ɵɵelementEnd();
|
|
26445
26711
|
i0__namespace.ɵɵelementEnd();
|
|
26446
26712
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -26455,11 +26721,9 @@
|
|
|
26455
26721
|
i0__namespace.ɵɵadvance(1);
|
|
26456
26722
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.getCaseTitle())("ngIfThen", _r3)("ngIfElse", _r5);
|
|
26457
26723
|
i0__namespace.ɵɵadvance(5);
|
|
26458
|
-
i0__namespace.ɵɵproperty("
|
|
26724
|
+
i0__namespace.ɵɵproperty("error", ctx_r0.caseEdit.error);
|
|
26459
26725
|
i0__namespace.ɵɵadvance(1);
|
|
26460
|
-
i0__namespace.ɵɵproperty("
|
|
26461
|
-
i0__namespace.ɵɵadvance(1);
|
|
26462
|
-
i0__namespace.ɵɵproperty("callbackErrorsSubject", ctx_r0.callbackErrorsSubject);
|
|
26726
|
+
i0__namespace.ɵɵproperty("callbackErrorsSubject", ctx_r0.caseEdit.callbackErrorsSubject);
|
|
26463
26727
|
i0__namespace.ɵɵadvance(1);
|
|
26464
26728
|
i0__namespace.ɵɵproperty("formGroup", ctx_r0.editForm);
|
|
26465
26729
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -26469,49 +26733,39 @@
|
|
|
26469
26733
|
i0__namespace.ɵɵadvance(1);
|
|
26470
26734
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.showEventNotes());
|
|
26471
26735
|
i0__namespace.ɵɵadvance(2);
|
|
26472
|
-
i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.isSubmitting);
|
|
26736
|
+
i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.caseEdit.isSubmitting);
|
|
26473
26737
|
i0__namespace.ɵɵadvance(2);
|
|
26474
26738
|
i0__namespace.ɵɵproperty("disabled", ctx_r0.isDisabled);
|
|
26475
26739
|
i0__namespace.ɵɵadvance(1);
|
|
26476
26740
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.triggerText);
|
|
26477
26741
|
i0__namespace.ɵɵadvance(2);
|
|
26478
|
-
i0__namespace.ɵɵclassProp("disabled", ctx_r0.isSubmitting);
|
|
26742
|
+
i0__namespace.ɵɵclassProp("disabled", ctx_r0.caseEdit.isSubmitting);
|
|
26479
26743
|
i0__namespace.ɵɵadvance(1);
|
|
26480
26744
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.getCancelText());
|
|
26481
26745
|
}
|
|
26482
26746
|
}
|
|
26483
26747
|
function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
|
|
26484
26748
|
if (rf & 1) {
|
|
26485
|
-
var
|
|
26486
|
-
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion",
|
|
26487
|
-
i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
26749
|
+
var _r40_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26750
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 48);
|
|
26751
|
+
i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r39 = i0__namespace.ɵɵnextContext(); return ctx_r39.onEventCanBeCompleted($event); });
|
|
26488
26752
|
i0__namespace.ɵɵelementEnd();
|
|
26489
26753
|
}
|
|
26490
26754
|
if (rf & 2) {
|
|
26491
26755
|
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
26492
|
-
i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r1.eventCompletionParams);
|
|
26756
|
+
i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r1.caseEdit.eventCompletionParams);
|
|
26493
26757
|
}
|
|
26494
26758
|
}
|
|
26495
26759
|
// @dynamic
|
|
26496
26760
|
var CaseEditSubmitComponent = /** @class */ (function () {
|
|
26497
|
-
function CaseEditSubmitComponent(caseEdit,
|
|
26761
|
+
function CaseEditSubmitComponent(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier) {
|
|
26498
26762
|
this.caseEdit = caseEdit;
|
|
26499
|
-
this.formValueService = formValueService;
|
|
26500
|
-
this.formErrorService = formErrorService;
|
|
26501
26763
|
this.fieldsUtils = fieldsUtils;
|
|
26502
26764
|
this.caseFieldService = caseFieldService;
|
|
26503
26765
|
this.route = route;
|
|
26504
|
-
this.router = router;
|
|
26505
26766
|
this.orderService = orderService;
|
|
26506
26767
|
this.profileNotifier = profileNotifier;
|
|
26507
|
-
this.sessionStorageService = sessionStorageService;
|
|
26508
|
-
this.caseNotifier = caseNotifier;
|
|
26509
|
-
this.callbackErrorsSubject = new rxjs.Subject();
|
|
26510
|
-
this.ignoreWarning = false;
|
|
26511
26768
|
this.paletteContext = exports.PaletteContext.CHECK_YOUR_ANSWER;
|
|
26512
|
-
this.eventCompletionChecksRequired = false;
|
|
26513
|
-
this.isCaseFlagSubmission = false;
|
|
26514
|
-
this.isLinkedCasesSubmission = false;
|
|
26515
26769
|
}
|
|
26516
26770
|
Object.defineProperty(CaseEditSubmitComponent.prototype, "isDisabled", {
|
|
26517
26771
|
get: function () {
|
|
@@ -26519,7 +26773,7 @@
|
|
|
26519
26773
|
// We don't need to check the validity of the editForm as it is readonly.
|
|
26520
26774
|
// This was causing issues with hidden fields that aren't wanted but have
|
|
26521
26775
|
// not been disabled.
|
|
26522
|
-
return this.isSubmitting || this.hasErrors;
|
|
26776
|
+
return this.caseEdit.isSubmitting || this.hasErrors;
|
|
26523
26777
|
},
|
|
26524
26778
|
enumerable: false,
|
|
26525
26779
|
configurable: true
|
|
@@ -26532,216 +26786,42 @@
|
|
|
26532
26786
|
this.editForm = this.caseEdit.form;
|
|
26533
26787
|
this.wizard = this.caseEdit.wizard;
|
|
26534
26788
|
this.showSummaryFields = this.sortFieldsByShowSummaryContent(this.eventTrigger.case_fields);
|
|
26535
|
-
this.isSubmitting = false;
|
|
26789
|
+
this.caseEdit.isSubmitting = false;
|
|
26536
26790
|
this.contextFields = this.getCaseFields();
|
|
26537
26791
|
// Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
|
|
26538
26792
|
// a FlagLauncher field in the event trigger
|
|
26539
|
-
this.isCaseFlagSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); });
|
|
26540
|
-
this.
|
|
26541
|
-
|
|
26793
|
+
this.caseEdit.isCaseFlagSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); });
|
|
26794
|
+
this.caseEdit.isLinkedCasesSubmission =
|
|
26795
|
+
this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isComponentLauncherCaseField(caseField); });
|
|
26796
|
+
this.pageTitle = this.caseEdit.isCaseFlagSubmission ? 'Review flag details' : 'Check your answers';
|
|
26542
26797
|
};
|
|
26543
26798
|
CaseEditSubmitComponent.prototype.ngOnDestroy = function () {
|
|
26799
|
+
/* istanbul ignore else */
|
|
26544
26800
|
if (this.profileSubscription) {
|
|
26545
26801
|
this.profileSubscription.unsubscribe();
|
|
26546
26802
|
}
|
|
26547
26803
|
};
|
|
26548
26804
|
CaseEditSubmitComponent.prototype.submit = function () {
|
|
26549
|
-
this.
|
|
26550
|
-
|
|
26551
|
-
|
|
26552
|
-
|
|
26553
|
-
|
|
26554
|
-
if (taskStr) {
|
|
26555
|
-
taskInSessionStorage = JSON.parse(taskStr);
|
|
26556
|
-
}
|
|
26557
|
-
if (taskInSessionStorage && taskInSessionStorage.case_id === this.getCaseId()) {
|
|
26558
|
-
// Show event completion component to perform event completion checks
|
|
26559
|
-
this.eventCompletionParams = {
|
|
26560
|
-
caseId: this.getCaseId(),
|
|
26561
|
-
eventId: this.getEventId(),
|
|
26562
|
-
task: taskInSessionStorage
|
|
26563
|
-
};
|
|
26564
|
-
this.eventCompletionChecksRequired = true;
|
|
26565
|
-
}
|
|
26566
|
-
else {
|
|
26567
|
-
// Task not in session storage, proceed to submit
|
|
26568
|
-
var caseEventData = this.generateCaseEventData();
|
|
26569
|
-
this.caseSubmit(caseEventData);
|
|
26570
|
-
}
|
|
26571
|
-
};
|
|
26572
|
-
CaseEditSubmitComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
|
|
26573
|
-
if (eventCanBeCompleted) {
|
|
26574
|
-
// Submit
|
|
26575
|
-
var caseEventData = this.generateCaseEventData();
|
|
26576
|
-
this.caseSubmit(caseEventData);
|
|
26577
|
-
}
|
|
26578
|
-
else {
|
|
26579
|
-
// Navigate to tasks tab on case details page
|
|
26580
|
-
this.router.navigate(["/cases/case-details/" + this.getCaseId() + "/tasks"], { relativeTo: this.route });
|
|
26581
|
-
}
|
|
26582
|
-
};
|
|
26583
|
-
CaseEditSubmitComponent.prototype.generateCaseEventData = function () {
|
|
26584
|
-
var caseEventData = {
|
|
26585
|
-
data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(this.replaceHiddenFormValuesWithOriginalCaseData(this.editForm.get('data'), this.eventTrigger.case_fields))),
|
|
26586
|
-
event: this.editForm.value.event
|
|
26587
|
-
};
|
|
26588
|
-
this.formValueService.clearNonCaseFields(caseEventData.data, this.eventTrigger.case_fields);
|
|
26589
|
-
this.formValueService.removeNullLabels(caseEventData.data, this.eventTrigger.case_fields);
|
|
26590
|
-
this.formValueService.removeEmptyDocuments(caseEventData.data, this.eventTrigger.case_fields);
|
|
26591
|
-
// Remove collection fields that have "min" validation of greater than zero set on the FieldType but are empty;
|
|
26592
|
-
// these will fail validation
|
|
26593
|
-
this.formValueService.removeEmptyCollectionsWithMinValidation(caseEventData.data, this.eventTrigger.case_fields);
|
|
26594
|
-
// If this is a Case Flag submission (and thus a FlagLauncher field is present in the event trigger), the flag
|
|
26595
|
-
// details data needs populating for each Flags field, then the FlagLauncher field needs removing
|
|
26596
|
-
if (this.isCaseFlagSubmission) {
|
|
26597
|
-
this.formValueService.populateFlagDetailsFromCaseFields(caseEventData.data, this.eventTrigger.case_fields);
|
|
26598
|
-
this.formValueService.removeFlagLauncherField(caseEventData.data, this.eventTrigger.case_fields);
|
|
26599
|
-
}
|
|
26600
|
-
if (this.isLinkedCasesSubmission) {
|
|
26601
|
-
this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, this.eventTrigger.case_fields);
|
|
26602
|
-
this.formValueService.removeComponentLauncherField(caseEventData.data, this.eventTrigger.case_fields);
|
|
26603
|
-
}
|
|
26604
|
-
caseEventData.event_token = this.eventTrigger.event_token;
|
|
26605
|
-
caseEventData.ignore_warning = this.ignoreWarning;
|
|
26606
|
-
if (this.caseEdit.confirmation) {
|
|
26607
|
-
caseEventData.data = {};
|
|
26608
|
-
}
|
|
26609
|
-
return caseEventData;
|
|
26610
|
-
};
|
|
26611
|
-
CaseEditSubmitComponent.prototype.caseSubmit = function (caseEventData) {
|
|
26612
|
-
var _this = this;
|
|
26613
|
-
this.caseEdit.submit(caseEventData)
|
|
26614
|
-
.subscribe(function (response) {
|
|
26615
|
-
_this.caseNotifier.cachedCaseView = null;
|
|
26616
|
-
_this.sessionStorageService.removeItem('eventUrl');
|
|
26617
|
-
var confirmation = _this.buildConfirmation(response);
|
|
26618
|
-
if (confirmation && (confirmation.getHeader() || confirmation.getBody())) {
|
|
26619
|
-
_this.caseEdit.confirm(confirmation);
|
|
26620
|
-
}
|
|
26621
|
-
else {
|
|
26622
|
-
_this.caseEdit.submitted.emit({ caseId: response['id'], status: _this.getStatus(response) });
|
|
26623
|
-
}
|
|
26624
|
-
}, function (error) {
|
|
26625
|
-
_this.error = error;
|
|
26626
|
-
_this.callbackErrorsSubject.next(_this.error);
|
|
26627
|
-
if (_this.error.details) {
|
|
26628
|
-
_this.formErrorService
|
|
26629
|
-
.mapFieldErrors(_this.error.details.field_errors, _this.editForm.controls['data'], 'validation');
|
|
26630
|
-
}
|
|
26631
|
-
_this.isSubmitting = false;
|
|
26632
|
-
});
|
|
26633
|
-
};
|
|
26634
|
-
/**
|
|
26635
|
-
* Traverse *all* values of a {@link FormGroup}, including those for disabled fields (i.e. hidden ones), replacing the
|
|
26636
|
-
* value of any that are hidden AND have `retain_hidden_value` set to `true` in the corresponding `CaseField`, with
|
|
26637
|
-
* the *original* value held in the `CaseField` object.
|
|
26638
|
-
*
|
|
26639
|
-
* This is as per design in EUI-3622, where any user-driven updates to hidden fields with `retain_hidden_value` =
|
|
26640
|
-
* `true` are ignored (thus retaining the value displayed originally).
|
|
26641
|
-
*
|
|
26642
|
-
* * For Complex field types, the replacement above is performed recursively for all hidden sub-fields with
|
|
26643
|
-
* `retain_hidden_value` = `true`.
|
|
26644
|
-
*
|
|
26645
|
-
* * For Collection field types, including collections of Complex and Document field types, the replacement is
|
|
26646
|
-
* performed for all fields in the collection.
|
|
26647
|
-
*
|
|
26648
|
-
* @param formGroup The `FormGroup` instance whose raw values are to be traversed
|
|
26649
|
-
* @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `formGroup`
|
|
26650
|
-
* @param parentField Reference to the parent `CaseField`. Used for retrieving the sub-field values of a Complex field
|
|
26651
|
-
* to perform recursive replacement - the sub-field `CaseField`s themselves do *not* contain any values
|
|
26652
|
-
* @returns An object with the *raw* form value data (as key-value pairs), with any value replacements as necessary
|
|
26653
|
-
*/
|
|
26654
|
-
CaseEditSubmitComponent.prototype.replaceHiddenFormValuesWithOriginalCaseData = function (formGroup, caseFields, parentField) {
|
|
26655
|
-
var _this = this;
|
|
26656
|
-
// Get the raw form value data, which includes the values of any disabled controls, as key-value pairs
|
|
26657
|
-
var rawFormValueData = formGroup.getRawValue();
|
|
26658
|
-
// Place all case fields in a lookup object, so they can be retrieved by id
|
|
26659
|
-
var caseFieldsLookup = {};
|
|
26660
|
-
for (var i = 0, len = caseFields.length; i < len; i++) {
|
|
26661
|
-
caseFieldsLookup[caseFields[i].id] = caseFields[i];
|
|
26662
|
-
}
|
|
26663
|
-
/**
|
|
26664
|
-
* Replace any form value with the original, where its CaseField is hidden AND has the retain_hidden_value flag set
|
|
26665
|
-
* to true.
|
|
26666
|
-
*
|
|
26667
|
-
* If the CaseField's `hidden` attribute is null or undefined, then check this attribute in the parent CaseField (if
|
|
26668
|
-
* one exists). This is occurring (and is possibly a bug) when a CaseField is a sub-field of a Complex type, or an
|
|
26669
|
-
* item in a Collection type.
|
|
26670
|
-
*
|
|
26671
|
-
* If the field is a Complex type with retain_hidden_value = true, perform a recursive replacement for all (hidden)
|
|
26672
|
-
* sub-fields with retain_hidden_value = true, using their original CaseField values (from the `formatted_value`
|
|
26673
|
-
* attribute).
|
|
26674
|
-
*
|
|
26675
|
-
* If the field is a Collection type with retain_hidden_value = true, the entire collection is replaced with the
|
|
26676
|
-
* original from `formatted_value`. This applies to *all* types of Collections.
|
|
26677
|
-
*/
|
|
26678
|
-
Object.keys(rawFormValueData).forEach(function (key) {
|
|
26679
|
-
var caseField = caseFieldsLookup[key];
|
|
26680
|
-
// If caseField.hidden is NOT truthy and also NOT equal to false, then it must be null/undefined (remember that
|
|
26681
|
-
// both null and undefined are equal to *neither false nor true*)
|
|
26682
|
-
if (caseField && caseField.retain_hidden_value &&
|
|
26683
|
-
(caseField.hidden || (caseField.hidden !== false && parentField && parentField.hidden))) {
|
|
26684
|
-
if (caseField.field_type.type === 'Complex') {
|
|
26685
|
-
// Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
|
|
26686
|
-
// handle both null and undefined values
|
|
26687
|
-
if (caseField.value !== null) {
|
|
26688
|
-
// Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
|
|
26689
|
-
// CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
|
|
26690
|
-
// parent)
|
|
26691
|
-
// Update rawFormValueData for this field
|
|
26692
|
-
// creating form group and adding control into it in case caseField is of complext type and and part of formGroup
|
|
26693
|
-
var form_1 = new i2.FormGroup({});
|
|
26694
|
-
if (formGroup.controls[key].value) {
|
|
26695
|
-
Object.keys(formGroup.controls[key].value).forEach(function (item) {
|
|
26696
|
-
form_1.addControl(item, new i2.FormControl(formGroup.controls[key].value[item]));
|
|
26697
|
-
});
|
|
26698
|
-
}
|
|
26699
|
-
rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
|
|
26700
|
-
}
|
|
26701
|
-
}
|
|
26702
|
-
else {
|
|
26703
|
-
// Default case also handles collections of *all* types; the entire collection in rawFormValueData will be
|
|
26704
|
-
// replaced with the original from formatted_value
|
|
26705
|
-
// Use the CaseField's existing *formatted_value* from the parent, if available. (This is necessary for
|
|
26706
|
-
// Complex fields, whose sub-fields do not hold any values in the model.) Otherwise, use formatted_value
|
|
26707
|
-
// from the CaseField itself.
|
|
26708
|
-
if (parentField && parentField.formatted_value) {
|
|
26709
|
-
rawFormValueData[key] = parentField.formatted_value[caseField.id];
|
|
26710
|
-
}
|
|
26711
|
-
else {
|
|
26712
|
-
rawFormValueData[key] = caseField.formatted_value;
|
|
26713
|
-
}
|
|
26714
|
-
}
|
|
26715
|
-
}
|
|
26805
|
+
this.caseEdit.submitForm({
|
|
26806
|
+
eventTrigger: this.eventTrigger,
|
|
26807
|
+
form: this.editForm,
|
|
26808
|
+
submit: this.caseEdit.submit,
|
|
26809
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
26716
26810
|
});
|
|
26717
|
-
return rawFormValueData;
|
|
26718
26811
|
};
|
|
26719
|
-
|
|
26720
|
-
|
|
26721
|
-
|
|
26722
|
-
|
|
26723
|
-
|
|
26724
|
-
|
|
26725
|
-
|
|
26726
|
-
CaseEditSubmitComponent.prototype.replaceEmptyComplexFieldValues = function (data) {
|
|
26727
|
-
Object.keys(data).forEach(function (key) {
|
|
26728
|
-
if (!Array.isArray(data[key]) && typeof data[key] === 'object' && !FieldsUtils.containsNonEmptyValues(data[key])) {
|
|
26729
|
-
data[key] = null;
|
|
26730
|
-
}
|
|
26812
|
+
CaseEditSubmitComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
|
|
26813
|
+
this.caseEdit.onEventCanBeCompleted({
|
|
26814
|
+
eventTrigger: this.eventTrigger,
|
|
26815
|
+
eventCanBeCompleted: eventCanBeCompleted,
|
|
26816
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
26817
|
+
form: this.editForm,
|
|
26818
|
+
submit: this.caseEdit.submit,
|
|
26731
26819
|
});
|
|
26732
|
-
return data;
|
|
26733
|
-
};
|
|
26734
|
-
CaseEditSubmitComponent.prototype.getStatus = function (response) {
|
|
26735
|
-
return this.hasCallbackFailed(response) ? response['callback_response_status'] : response['delete_draft_response_status'];
|
|
26736
|
-
};
|
|
26737
|
-
CaseEditSubmitComponent.prototype.hasCallbackFailed = function (response) {
|
|
26738
|
-
return response['callback_response_status'] !== 'CALLBACK_COMPLETED';
|
|
26739
26820
|
};
|
|
26740
26821
|
Object.defineProperty(CaseEditSubmitComponent.prototype, "hasErrors", {
|
|
26741
26822
|
get: function () {
|
|
26742
|
-
|
|
26743
|
-
|
|
26744
|
-
&& this.error.callbackErrors.length;
|
|
26823
|
+
var _a, _b, _c;
|
|
26824
|
+
return (_c = (_b = (_a = this.caseEdit) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.callbackErrors) === null || _c === void 0 ? void 0 : _c.length;
|
|
26745
26825
|
},
|
|
26746
26826
|
enumerable: false,
|
|
26747
26827
|
configurable: true
|
|
@@ -26750,10 +26830,11 @@
|
|
|
26750
26830
|
this.caseEdit.navigateToPage(pageId);
|
|
26751
26831
|
};
|
|
26752
26832
|
CaseEditSubmitComponent.prototype.callbackErrorsNotify = function (errorContext) {
|
|
26753
|
-
this.ignoreWarning = errorContext.ignoreWarning;
|
|
26833
|
+
this.caseEdit.ignoreWarning = errorContext.ignoreWarning;
|
|
26754
26834
|
this.triggerText = errorContext.triggerText;
|
|
26755
26835
|
};
|
|
26756
26836
|
CaseEditSubmitComponent.prototype.summaryCaseField = function (field) {
|
|
26837
|
+
/* istanbul ignore else */
|
|
26757
26838
|
if (null === this.editForm.get('data').get(field.id)) {
|
|
26758
26839
|
// If not in form, return field itself
|
|
26759
26840
|
return field;
|
|
@@ -26782,17 +26863,20 @@
|
|
|
26782
26863
|
return !this.caseFieldService.isReadOnly(field);
|
|
26783
26864
|
};
|
|
26784
26865
|
CaseEditSubmitComponent.prototype.checkYourAnswerFieldsToDisplayExists = function () {
|
|
26785
|
-
var e_1,
|
|
26866
|
+
var e_1, _d, e_2, _e;
|
|
26867
|
+
/* istanbul ignore else */
|
|
26786
26868
|
if (!this.eventTrigger.show_summary) {
|
|
26787
26869
|
return false;
|
|
26788
26870
|
}
|
|
26789
26871
|
try {
|
|
26790
|
-
for (var
|
|
26791
|
-
var page =
|
|
26872
|
+
for (var _f = __values(this.wizard.pages), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
26873
|
+
var page = _g.value;
|
|
26874
|
+
/* istanbul ignore else */
|
|
26792
26875
|
if (this.isShown(page)) {
|
|
26793
26876
|
try {
|
|
26794
|
-
for (var
|
|
26795
|
-
var field =
|
|
26877
|
+
for (var _h = (e_2 = void 0, __values(page.case_fields)), _j = _h.next(); !_j.done; _j = _h.next()) {
|
|
26878
|
+
var field = _j.value;
|
|
26879
|
+
/* istanbul ignore else */
|
|
26796
26880
|
if (this.canShowFieldInCYA(field)) {
|
|
26797
26881
|
// at least one field needs showing
|
|
26798
26882
|
return true;
|
|
@@ -26802,7 +26886,7 @@
|
|
|
26802
26886
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
26803
26887
|
finally {
|
|
26804
26888
|
try {
|
|
26805
|
-
if (
|
|
26889
|
+
if (_j && !_j.done && (_e = _h.return)) _e.call(_h);
|
|
26806
26890
|
}
|
|
26807
26891
|
finally { if (e_2) throw e_2.error; }
|
|
26808
26892
|
}
|
|
@@ -26812,7 +26896,7 @@
|
|
|
26812
26896
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
26813
26897
|
finally {
|
|
26814
26898
|
try {
|
|
26815
|
-
if (
|
|
26899
|
+
if (_g && !_g.done && (_d = _f.return)) _d.call(_f);
|
|
26816
26900
|
}
|
|
26817
26901
|
finally { if (e_1) throw e_1.error; }
|
|
26818
26902
|
}
|
|
@@ -26837,6 +26921,7 @@
|
|
|
26837
26921
|
return lastPage;
|
|
26838
26922
|
};
|
|
26839
26923
|
CaseEditSubmitComponent.prototype.previous = function () {
|
|
26924
|
+
/* istanbul ignore else */
|
|
26840
26925
|
if (this.hasPrevious()) {
|
|
26841
26926
|
this.navigateToPage(this.getLastPageShown().id);
|
|
26842
26927
|
}
|
|
@@ -26855,14 +26940,6 @@
|
|
|
26855
26940
|
CaseEditSubmitComponent.prototype.isSolicitor = function () {
|
|
26856
26941
|
return this.profile.isSolicitor();
|
|
26857
26942
|
};
|
|
26858
|
-
CaseEditSubmitComponent.prototype.buildConfirmation = function (response) {
|
|
26859
|
-
if (response['after_submit_callback_response']) {
|
|
26860
|
-
return new Confirmation(response['id'], response['callback_response_status'], response['after_submit_callback_response']['confirmation_header'], response['after_submit_callback_response']['confirmation_body']);
|
|
26861
|
-
}
|
|
26862
|
-
else {
|
|
26863
|
-
return null;
|
|
26864
|
-
}
|
|
26865
|
-
};
|
|
26866
26943
|
CaseEditSubmitComponent.prototype.sortFieldsByShowSummaryContent = function (fields) {
|
|
26867
26944
|
return this.orderService
|
|
26868
26945
|
.sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
|
|
@@ -26875,10 +26952,7 @@
|
|
|
26875
26952
|
return this.eventTrigger.case_fields;
|
|
26876
26953
|
};
|
|
26877
26954
|
CaseEditSubmitComponent.prototype.getCaseId = function () {
|
|
26878
|
-
return
|
|
26879
|
-
};
|
|
26880
|
-
CaseEditSubmitComponent.prototype.getEventId = function () {
|
|
26881
|
-
return this.editForm.value.event.id;
|
|
26955
|
+
return this.caseEdit.getCaseId(this.caseEdit.caseDetails);
|
|
26882
26956
|
};
|
|
26883
26957
|
CaseEditSubmitComponent.prototype.getCaseTitle = function () {
|
|
26884
26958
|
return (this.caseEdit.caseDetails && this.caseEdit.caseDetails.state &&
|
|
@@ -26905,16 +26979,16 @@
|
|
|
26905
26979
|
}
|
|
26906
26980
|
return a.show_summary_content_option - b.show_summary_content_option;
|
|
26907
26981
|
};
|
|
26908
|
-
CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(
|
|
26909
|
-
CaseEditSubmitComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], [
|
|
26982
|
+
CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
26983
|
+
CaseEditSubmitComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], [3, "error"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], [1, "valign-top", "case-field-label"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event", 4, "ngIf"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) {
|
|
26910
26984
|
if (rf & 1) {
|
|
26911
|
-
i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template,
|
|
26985
|
+
i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 22, 16, "div", 0);
|
|
26912
26986
|
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
|
|
26913
26987
|
}
|
|
26914
26988
|
if (rf & 2) {
|
|
26915
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.
|
|
26989
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.caseEdit.isEventCompletionChecksRequired);
|
|
26916
26990
|
i0__namespace.ɵɵadvance(1);
|
|
26917
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.
|
|
26991
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
|
|
26918
26992
|
}
|
|
26919
26993
|
}, styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:1px solid #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:0}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
|
|
26920
26994
|
(function () {
|
|
@@ -26925,7 +26999,7 @@
|
|
|
26925
26999
|
templateUrl: 'case-edit-submit.html',
|
|
26926
27000
|
styleUrls: ['../case-edit.scss']
|
|
26927
27001
|
}]
|
|
26928
|
-
}], function () { return [{ type: CaseEditComponent }, { type:
|
|
27002
|
+
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1__namespace$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null);
|
|
26929
27003
|
})();
|
|
26930
27004
|
|
|
26931
27005
|
function CaseProgressComponent_div_0_Template(rf, ctx) {
|
|
@@ -27112,6 +27186,101 @@
|
|
|
27112
27186
|
}], null, null);
|
|
27113
27187
|
})();
|
|
27114
27188
|
|
|
27189
|
+
function CaseEditGenericErrorsComponent_div_0_Template(rf, ctx) {
|
|
27190
|
+
if (rf & 1) {
|
|
27191
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
27192
|
+
i0__namespace.ɵɵelementStart(1, "h1", 2);
|
|
27193
|
+
i0__namespace.ɵɵtext(2, " Something went wrong ");
|
|
27194
|
+
i0__namespace.ɵɵelementEnd();
|
|
27195
|
+
i0__namespace.ɵɵelementStart(3, "div", 3);
|
|
27196
|
+
i0__namespace.ɵɵelementStart(4, "p");
|
|
27197
|
+
i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
|
|
27198
|
+
i0__namespace.ɵɵelementEnd();
|
|
27199
|
+
i0__namespace.ɵɵelementStart(6, "p");
|
|
27200
|
+
i0__namespace.ɵɵelementStart(7, "a", 4);
|
|
27201
|
+
i0__namespace.ɵɵtext(8, "Contact us");
|
|
27202
|
+
i0__namespace.ɵɵelementEnd();
|
|
27203
|
+
i0__namespace.ɵɵtext(9, " if you're still having problems.");
|
|
27204
|
+
i0__namespace.ɵɵelementEnd();
|
|
27205
|
+
i0__namespace.ɵɵelementEnd();
|
|
27206
|
+
i0__namespace.ɵɵelementEnd();
|
|
27207
|
+
}
|
|
27208
|
+
}
|
|
27209
|
+
function CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template(rf, ctx) {
|
|
27210
|
+
if (rf & 1) {
|
|
27211
|
+
i0__namespace.ɵɵelementStart(0, "li", 9);
|
|
27212
|
+
i0__namespace.ɵɵtext(1);
|
|
27213
|
+
i0__namespace.ɵɵelementEnd();
|
|
27214
|
+
}
|
|
27215
|
+
if (rf & 2) {
|
|
27216
|
+
var fieldError_r4 = ctx.$implicit;
|
|
27217
|
+
i0__namespace.ɵɵadvance(1);
|
|
27218
|
+
i0__namespace.ɵɵtextInterpolate(fieldError_r4.message);
|
|
27219
|
+
}
|
|
27220
|
+
}
|
|
27221
|
+
function CaseEditGenericErrorsComponent_div_1_ul_5_Template(rf, ctx) {
|
|
27222
|
+
if (rf & 1) {
|
|
27223
|
+
i0__namespace.ɵɵelementStart(0, "ul", 7);
|
|
27224
|
+
i0__namespace.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template, 2, 1, "li", 8);
|
|
27225
|
+
i0__namespace.ɵɵelementEnd();
|
|
27226
|
+
}
|
|
27227
|
+
if (rf & 2) {
|
|
27228
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
27229
|
+
i0__namespace.ɵɵadvance(1);
|
|
27230
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r2.error.details.field_errors);
|
|
27231
|
+
}
|
|
27232
|
+
}
|
|
27233
|
+
function CaseEditGenericErrorsComponent_div_1_Template(rf, ctx) {
|
|
27234
|
+
if (rf & 1) {
|
|
27235
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
27236
|
+
i0__namespace.ɵɵelementStart(1, "h3", 5);
|
|
27237
|
+
i0__namespace.ɵɵtext(2, " The event could not be created ");
|
|
27238
|
+
i0__namespace.ɵɵelementEnd();
|
|
27239
|
+
i0__namespace.ɵɵelementStart(3, "p");
|
|
27240
|
+
i0__namespace.ɵɵtext(4);
|
|
27241
|
+
i0__namespace.ɵɵelementEnd();
|
|
27242
|
+
i0__namespace.ɵɵtemplate(5, CaseEditGenericErrorsComponent_div_1_ul_5_Template, 2, 1, "ul", 6);
|
|
27243
|
+
i0__namespace.ɵɵelementEnd();
|
|
27244
|
+
}
|
|
27245
|
+
if (rf & 2) {
|
|
27246
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
27247
|
+
i0__namespace.ɵɵadvance(4);
|
|
27248
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r1.error.message);
|
|
27249
|
+
i0__namespace.ɵɵadvance(1);
|
|
27250
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.error.details == null ? null : ctx_r1.error.details.field_errors);
|
|
27251
|
+
}
|
|
27252
|
+
}
|
|
27253
|
+
var CaseEditGenericErrorsComponent = /** @class */ (function () {
|
|
27254
|
+
function CaseEditGenericErrorsComponent() {
|
|
27255
|
+
}
|
|
27256
|
+
return CaseEditGenericErrorsComponent;
|
|
27257
|
+
}());
|
|
27258
|
+
CaseEditGenericErrorsComponent.ɵfac = function CaseEditGenericErrorsComponent_Factory(t) { return new (t || CaseEditGenericErrorsComponent)(); };
|
|
27259
|
+
CaseEditGenericErrorsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditGenericErrorsComponent, selectors: [["ccd-case-edit-generic-errors"]], inputs: { error: "error" }, features: [i0__namespace.ɵɵProvidersFeature([])], decls: 2, vars: 2, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"]], template: function CaseEditGenericErrorsComponent_Template(rf, ctx) {
|
|
27260
|
+
if (rf & 1) {
|
|
27261
|
+
i0__namespace.ɵɵtemplate(0, CaseEditGenericErrorsComponent_div_0_Template, 10, 0, "div", 0);
|
|
27262
|
+
i0__namespace.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_Template, 6, 2, "div", 0);
|
|
27263
|
+
}
|
|
27264
|
+
if (rf & 2) {
|
|
27265
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.error && (!(ctx.error.callbackErrors || ctx.error.callbackWarnings || ctx.error.details) && !ctx.error.message));
|
|
27266
|
+
i0__namespace.ɵɵadvance(1);
|
|
27267
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.error && (ctx.error.details || ctx.error.message));
|
|
27268
|
+
}
|
|
27269
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf], styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:1px solid #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:0}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
|
|
27270
|
+
(function () {
|
|
27271
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEditGenericErrorsComponent, [{
|
|
27272
|
+
type: i0.Component,
|
|
27273
|
+
args: [{
|
|
27274
|
+
selector: 'ccd-case-edit-generic-errors',
|
|
27275
|
+
templateUrl: 'case-edit-generic-errors.component.html',
|
|
27276
|
+
styleUrls: ['../case-edit.scss'],
|
|
27277
|
+
providers: []
|
|
27278
|
+
}]
|
|
27279
|
+
}], null, { error: [{
|
|
27280
|
+
type: i0.Input
|
|
27281
|
+
}] });
|
|
27282
|
+
})();
|
|
27283
|
+
|
|
27115
27284
|
var _c0$e = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
|
|
27116
27285
|
var CaseEventCompletionTaskCancelledComponent = /** @class */ (function () {
|
|
27117
27286
|
function CaseEventCompletionTaskCancelledComponent(parentComponent) {
|
|
@@ -27386,10 +27555,10 @@
|
|
|
27386
27555
|
// tslint:disable-next-line:switch-default
|
|
27387
27556
|
switch (portalType) {
|
|
27388
27557
|
case EventCompletionPortalTypes.TaskCancelled:
|
|
27389
|
-
this.selectedComponentPortal = new i6$
|
|
27558
|
+
this.selectedComponentPortal = new i6$1.ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
|
|
27390
27559
|
break;
|
|
27391
27560
|
case EventCompletionPortalTypes.TaskReassigned:
|
|
27392
|
-
this.selectedComponentPortal = new i6$
|
|
27561
|
+
this.selectedComponentPortal = new i6$1.ComponentPortal(CaseEventCompletionTaskReassignedComponent, null, injector);
|
|
27393
27562
|
break;
|
|
27394
27563
|
}
|
|
27395
27564
|
};
|
|
@@ -27403,7 +27572,7 @@
|
|
|
27403
27572
|
if (rf & 2) {
|
|
27404
27573
|
i0__namespace.ɵɵproperty("cdkPortalOutlet", ctx.selectedComponentPortal);
|
|
27405
27574
|
}
|
|
27406
|
-
}, directives: [i6__namespace$
|
|
27575
|
+
}, directives: [i6__namespace$1.CdkPortalOutlet], encapsulation: 2 });
|
|
27407
27576
|
(function () {
|
|
27408
27577
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEventCompletionComponent, [{
|
|
27409
27578
|
type: i0.Component,
|
|
@@ -27463,7 +27632,7 @@
|
|
|
27463
27632
|
LabelSubstitutorModule,
|
|
27464
27633
|
ConditionalShowModule,
|
|
27465
27634
|
ErrorsModule,
|
|
27466
|
-
i6$
|
|
27635
|
+
i6$1.PortalModule,
|
|
27467
27636
|
LoadingSpinnerModule,
|
|
27468
27637
|
BannersModule
|
|
27469
27638
|
]] });
|
|
@@ -27477,7 +27646,8 @@
|
|
|
27477
27646
|
CaseEventCompletionTaskCancelledComponent,
|
|
27478
27647
|
CaseEventCompletionTaskReassignedComponent,
|
|
27479
27648
|
CaseCreateComponent,
|
|
27480
|
-
CaseProgressComponent
|
|
27649
|
+
CaseProgressComponent,
|
|
27650
|
+
CaseEditGenericErrorsComponent], imports: [i1.CommonModule,
|
|
27481
27651
|
i1$1.RouterModule,
|
|
27482
27652
|
i2.FormsModule,
|
|
27483
27653
|
i2.ReactiveFormsModule,
|
|
@@ -27486,7 +27656,7 @@
|
|
|
27486
27656
|
LabelSubstitutorModule,
|
|
27487
27657
|
ConditionalShowModule,
|
|
27488
27658
|
ErrorsModule,
|
|
27489
|
-
i6$
|
|
27659
|
+
i6$1.PortalModule,
|
|
27490
27660
|
LoadingSpinnerModule,
|
|
27491
27661
|
BannersModule], exports: [CaseEditConfirmComponent,
|
|
27492
27662
|
CaseEditComponent,
|
|
@@ -27511,7 +27681,7 @@
|
|
|
27511
27681
|
LabelSubstitutorModule,
|
|
27512
27682
|
ConditionalShowModule,
|
|
27513
27683
|
ErrorsModule,
|
|
27514
|
-
i6$
|
|
27684
|
+
i6$1.PortalModule,
|
|
27515
27685
|
LoadingSpinnerModule,
|
|
27516
27686
|
BannersModule
|
|
27517
27687
|
],
|
|
@@ -27525,7 +27695,8 @@
|
|
|
27525
27695
|
CaseEventCompletionTaskCancelledComponent,
|
|
27526
27696
|
CaseEventCompletionTaskReassignedComponent,
|
|
27527
27697
|
CaseCreateComponent,
|
|
27528
|
-
CaseProgressComponent
|
|
27698
|
+
CaseProgressComponent,
|
|
27699
|
+
CaseEditGenericErrorsComponent
|
|
27529
27700
|
],
|
|
27530
27701
|
exports: [
|
|
27531
27702
|
CaseEditConfirmComponent,
|
|
@@ -27570,9 +27741,10 @@
|
|
|
27570
27741
|
}], null, null);
|
|
27571
27742
|
})();
|
|
27572
27743
|
i0__namespace.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1__namespace.NgIf, MarkdownComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [CcdCaseTitlePipe, CaseReferencePipe]);
|
|
27573
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf, LoadingSpinnerComponent, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, CaseEditFormComponent
|
|
27744
|
+
i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf, LoadingSpinnerComponent, MarkdownComponent, i1__namespace.NgForOf, CaseEditGenericErrorsComponent, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, CaseEditFormComponent,
|
|
27745
|
+
CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1__namespace.AsyncPipe]);
|
|
27574
27746
|
i0__namespace.ɵɵsetComponentScope(CaseEditFormComponent, [i1__namespace.NgForOf, ConditionalShowFormDirective, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, LabelSubstitutorDirective, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, i1__namespace.NgIf, FieldWriteComponent], [IsReadOnlyAndNotCollectionPipe, IsCompoundPipe]);
|
|
27575
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent,
|
|
27747
|
+
i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent, CaseEditGenericErrorsComponent, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgForOf, LabelSubstitutorDirective, FieldReadComponent, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i2__namespace.FormGroupName, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i2__namespace.MaxLengthValidator, CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, IsCompoundPipe]);
|
|
27576
27748
|
i0__namespace.ɵɵsetComponentScope(CaseCreateComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
27577
27749
|
i0__namespace.ɵɵsetComponentScope(CaseProgressComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
27578
27750
|
|
|
@@ -30691,7 +30863,7 @@
|
|
|
30691
30863
|
var _r34_1 = i0__namespace.ɵɵgetCurrentView();
|
|
30692
30864
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
30693
30865
|
i0__namespace.ɵɵelementStart(1, "mat-tab-group", 23, 24);
|
|
30694
|
-
i0__namespace.ɵɵlistener("
|
|
30866
|
+
i0__namespace.ɵɵlistener("selectedIndexChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedIndexChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r34_1); var ctx_r33 = i0__namespace.ɵɵnextContext(); return ctx_r33.tabChanged($event); });
|
|
30695
30867
|
i0__namespace.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template, 1, 2, "mat-tab", 25);
|
|
30696
30868
|
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template, 2, 2, "mat-tab", 25);
|
|
30697
30869
|
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template, 1, 2, "mat-tab", 25);
|
|
@@ -30729,6 +30901,7 @@
|
|
|
30729
30901
|
this.location = location;
|
|
30730
30902
|
this.crf = crf;
|
|
30731
30903
|
this.sessionStorageService = sessionStorageService;
|
|
30904
|
+
this.HEARINGS_TAB_LABEL = 'Hearings';
|
|
30732
30905
|
this.hasPrint = true;
|
|
30733
30906
|
this.hasEventSelector = true;
|
|
30734
30907
|
this.prependedTabs = [];
|
|
@@ -30740,6 +30913,7 @@
|
|
|
30740
30913
|
this.ignoreWarning = false;
|
|
30741
30914
|
this.selectedTabIndex = 0;
|
|
30742
30915
|
this.activeCaseFlags = false;
|
|
30916
|
+
this.subs = [];
|
|
30743
30917
|
this.callbackErrorsSubject = new rxjs.Subject();
|
|
30744
30918
|
}
|
|
30745
30919
|
CaseFullAccessViewComponent.prototype.ngOnInit = function () {
|
|
@@ -30792,6 +30966,7 @@
|
|
|
30792
30966
|
this.unsubscribe(this.callbackErrorsSubject);
|
|
30793
30967
|
this.unsubscribe(this.errorSubscription);
|
|
30794
30968
|
this.unsubscribe(this.subscription);
|
|
30969
|
+
this.subs.forEach(function (s) { return s.unsubscribe(); });
|
|
30795
30970
|
};
|
|
30796
30971
|
CaseFullAccessViewComponent.prototype.unsubscribe = function (subscription) {
|
|
30797
30972
|
if (subscription) {
|
|
@@ -30800,7 +30975,7 @@
|
|
|
30800
30975
|
};
|
|
30801
30976
|
CaseFullAccessViewComponent.prototype.checkRouteAndSetCaseViewTab = function () {
|
|
30802
30977
|
var _this = this;
|
|
30803
|
-
this.router.events
|
|
30978
|
+
this.subs.push(this.router.events
|
|
30804
30979
|
.pipe(operators.filter(function (event) { return event instanceof i1$1.NavigationEnd; }))
|
|
30805
30980
|
.subscribe(function (event) {
|
|
30806
30981
|
var url = event && event.url;
|
|
@@ -30812,8 +30987,9 @@
|
|
|
30812
30987
|
_this.tabGroup.selectedIndex = matTab.position;
|
|
30813
30988
|
}
|
|
30814
30989
|
}
|
|
30815
|
-
});
|
|
30990
|
+
}));
|
|
30816
30991
|
};
|
|
30992
|
+
;
|
|
30817
30993
|
CaseFullAccessViewComponent.prototype.postViewActivity = function () {
|
|
30818
30994
|
return this.activityPollingService.postViewActivity(this.caseDetails.case_id);
|
|
30819
30995
|
};
|
|
@@ -30936,22 +31112,25 @@
|
|
|
30936
31112
|
}
|
|
30937
31113
|
}
|
|
30938
31114
|
};
|
|
30939
|
-
|
|
30940
|
-
|
|
30941
|
-
this.
|
|
30942
|
-
var
|
|
30943
|
-
|
|
30944
|
-
//
|
|
30945
|
-
|
|
30946
|
-
|
|
30947
|
-
|
|
31115
|
+
// Refactored under EXUI-110 to address infinite tab loop to use tabIndexChanged instead
|
|
31116
|
+
CaseFullAccessViewComponent.prototype.tabChanged = function (tabIndexChanged) {
|
|
31117
|
+
var matTab = this.tabGroup._tabs.find(function (tab) { return tab.isActive; });
|
|
31118
|
+
var tabLabel = matTab.textLabel;
|
|
31119
|
+
// sortedTabs are fragments
|
|
31120
|
+
// appended/prepepended tabs use router navigation
|
|
31121
|
+
if ((tabIndexChanged <= 1 && this.prependedTabs && this.prependedTabs.length) ||
|
|
31122
|
+
(this.appendedTabs && this.appendedTabs.length && tabLabel === this.HEARINGS_TAB_LABEL)) {
|
|
31123
|
+
// Hack to get ID from tab as it's not easily achieved through Angular Material Tabs
|
|
31124
|
+
var tab = matTab['_viewContainerRef'];
|
|
31125
|
+
var id = tab.element.nativeElement.id;
|
|
31126
|
+
// cases/case-details/:caseId/hearings
|
|
31127
|
+
// cases/case-details/:caseId/roles-and-access
|
|
30948
31128
|
this.router.navigate([id], { relativeTo: this.route });
|
|
30949
31129
|
}
|
|
30950
31130
|
else {
|
|
30951
|
-
|
|
30952
|
-
|
|
30953
|
-
|
|
30954
|
-
});
|
|
31131
|
+
// Routing here is based on tab label, not ideal
|
|
31132
|
+
// cases/case-details/:caseId#tabLabel
|
|
31133
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: tabLabel });
|
|
30955
31134
|
}
|
|
30956
31135
|
};
|
|
30957
31136
|
CaseFullAccessViewComponent.prototype.onLinkClicked = function (triggerOutputEventText) {
|
|
@@ -31049,6 +31228,12 @@
|
|
|
31049
31228
|
this.callbackErrorsSubject.next(null);
|
|
31050
31229
|
this.alertService.clear();
|
|
31051
31230
|
};
|
|
31231
|
+
CaseFullAccessViewComponent.prototype.getUrlFragment = function (url) {
|
|
31232
|
+
return url.split('#')[url.split('#').length - 1];
|
|
31233
|
+
};
|
|
31234
|
+
CaseFullAccessViewComponent.prototype.getTabIndexByTabLabel = function (tabGroup, tabLabel) {
|
|
31235
|
+
return tabGroup._tabs.toArray().findIndex(function (t) { return t.textLabel.toLowerCase() === tabLabel.toLowerCase(); });
|
|
31236
|
+
};
|
|
31052
31237
|
return CaseFullAccessViewComponent;
|
|
31053
31238
|
}());
|
|
31054
31239
|
CaseFullAccessViewComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
@@ -31065,7 +31250,7 @@
|
|
|
31065
31250
|
var _t = void 0;
|
|
31066
31251
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
31067
31252
|
}
|
|
31068
|
-
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "
|
|
31253
|
+
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "selectedIndexChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
|
|
31069
31254
|
if (rf & 1) {
|
|
31070
31255
|
i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
|
|
31071
31256
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
|