@hmcts/ccd-case-ui-toolkit 6.14.5-duplicate-tabs → 6.15.0-b
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 +1132 -938
- 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/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 +162 -154
- 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-event-trigger/case-event-trigger.component.js +4 -2
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +25 -23
- package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +15 -13
- package/esm2015/lib/shared/components/error/callback-errors.component.js +1 -6
- 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/before-you-start/before-you-start.component.js +4 -2
- package/esm2015/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.js +4 -2
- package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +4 -2
- package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
- 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/fesm2015/hmcts-ccd-case-ui-toolkit.js +925 -747
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.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 +7 -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-event-trigger/case-event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-viewer.component.d.ts +2 -2
- package/lib/shared/components/case-viewer/case-viewer.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/before-you-start/before-you-start.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/read-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/package.json +2 -2
|
@@ -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
|
|
|
@@ -8994,44 +8994,48 @@
|
|
|
8994
8994
|
}] });
|
|
8995
8995
|
})();
|
|
8996
8996
|
|
|
8997
|
-
var
|
|
8998
|
-
function
|
|
8999
|
-
this.
|
|
9000
|
-
this.
|
|
8997
|
+
var Confirmation = /** @class */ (function () {
|
|
8998
|
+
function Confirmation(caseId, status, header, body) {
|
|
8999
|
+
this.caseId = caseId;
|
|
9000
|
+
this.status = status;
|
|
9001
|
+
this.header = header;
|
|
9002
|
+
this.body = body;
|
|
9001
9003
|
}
|
|
9002
|
-
|
|
9003
|
-
this.
|
|
9004
|
+
Confirmation.prototype.getCaseId = function () {
|
|
9005
|
+
return this.caseId;
|
|
9004
9006
|
};
|
|
9005
|
-
|
|
9006
|
-
return this.
|
|
9007
|
+
Confirmation.prototype.getStatus = function () {
|
|
9008
|
+
return this.status;
|
|
9007
9009
|
};
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
var queryParams = urls[1];
|
|
9011
|
-
var queryParamObj = {};
|
|
9012
|
-
if (queryParams) {
|
|
9013
|
-
var queryParam = queryParams.split('&');
|
|
9014
|
-
if (queryParam[0]) {
|
|
9015
|
-
// tslint:disable-next-line: prefer-for-of
|
|
9016
|
-
for (var i = 0; i < queryParam.length; i++) {
|
|
9017
|
-
var param = queryParam[i].split('=');
|
|
9018
|
-
queryParamObj[param[0]] = param[1];
|
|
9019
|
-
}
|
|
9020
|
-
}
|
|
9021
|
-
}
|
|
9022
|
-
this.router.navigate([urls[0]], {
|
|
9023
|
-
queryParams: queryParamObj && (Object.keys(queryParamObj).length) ? queryParamObj : ''
|
|
9024
|
-
});
|
|
9010
|
+
Confirmation.prototype.getHeader = function () {
|
|
9011
|
+
return this.header;
|
|
9025
9012
|
};
|
|
9026
|
-
|
|
9013
|
+
Confirmation.prototype.getBody = function () {
|
|
9014
|
+
return this.body;
|
|
9015
|
+
};
|
|
9016
|
+
return Confirmation;
|
|
9027
9017
|
}());
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
(function () {
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
})();
|
|
9018
|
+
|
|
9019
|
+
exports.EventCompletionReturnStates = void 0;
|
|
9020
|
+
(function (EventCompletionReturnStates) {
|
|
9021
|
+
EventCompletionReturnStates["InProgress"] = "in-progress";
|
|
9022
|
+
EventCompletionReturnStates["CompleteEvent"] = "complete-event";
|
|
9023
|
+
EventCompletionReturnStates["CancelEvent"] = "cancel-event";
|
|
9024
|
+
})(exports.EventCompletionReturnStates || (exports.EventCompletionReturnStates = {}));
|
|
9025
|
+
|
|
9026
|
+
exports.EventCompletionStates = void 0;
|
|
9027
|
+
(function (EventCompletionStates) {
|
|
9028
|
+
EventCompletionStates["CheckTasksCanBeCompleted"] = "check-tasks-can-be-completed";
|
|
9029
|
+
EventCompletionStates["CompleteEventAndTask"] = "complete-event-and-task";
|
|
9030
|
+
EventCompletionStates["CancelEvent"] = "cancel-event";
|
|
9031
|
+
EventCompletionStates["CompleteEventNotTask"] = "complete-event-not-task";
|
|
9032
|
+
EventCompletionStates["TaskCompetedOrCancelled"] = "task-completed-or-cancelled";
|
|
9033
|
+
EventCompletionStates["TaskAssignedToAnotherUser"] = "task-assigned-to-another-user";
|
|
9034
|
+
EventCompletionStates["TaskReassignToUser"] = "task-reassign-to-user";
|
|
9035
|
+
EventCompletionStates["TaskAssignToUser"] = "task-assign-to-user";
|
|
9036
|
+
EventCompletionStates["TaskUnassigned"] = "task-unassigned";
|
|
9037
|
+
EventCompletionStates["Final"] = "final";
|
|
9038
|
+
})(exports.EventCompletionStates || (exports.EventCompletionStates = {}));
|
|
9035
9039
|
|
|
9036
9040
|
var Wizard = /** @class */ (function () {
|
|
9037
9041
|
function Wizard(wizardPages) {
|
|
@@ -9090,6 +9094,45 @@
|
|
|
9090
9094
|
return Wizard;
|
|
9091
9095
|
}());
|
|
9092
9096
|
|
|
9097
|
+
var ConvertHrefToRouterService = /** @class */ (function () {
|
|
9098
|
+
function ConvertHrefToRouterService(router) {
|
|
9099
|
+
this.router = router;
|
|
9100
|
+
this.hrefMarkdownLinkContent = new rxjs.BehaviorSubject('Default');
|
|
9101
|
+
}
|
|
9102
|
+
ConvertHrefToRouterService.prototype.updateHrefLink = function (content) {
|
|
9103
|
+
this.hrefMarkdownLinkContent.next(content);
|
|
9104
|
+
};
|
|
9105
|
+
ConvertHrefToRouterService.prototype.getHrefMarkdownLinkContent = function () {
|
|
9106
|
+
return this.hrefMarkdownLinkContent.asObservable();
|
|
9107
|
+
};
|
|
9108
|
+
ConvertHrefToRouterService.prototype.callAngularRouter = function (hrefMarkdownLinkContent) {
|
|
9109
|
+
var urls = hrefMarkdownLinkContent.split('?');
|
|
9110
|
+
var queryParams = urls[1];
|
|
9111
|
+
var queryParamObj = {};
|
|
9112
|
+
if (queryParams) {
|
|
9113
|
+
var queryParam = queryParams.split('&');
|
|
9114
|
+
if (queryParam[0]) {
|
|
9115
|
+
// tslint:disable-next-line: prefer-for-of
|
|
9116
|
+
for (var i = 0; i < queryParam.length; i++) {
|
|
9117
|
+
var param = queryParam[i].split('=');
|
|
9118
|
+
queryParamObj[param[0]] = param[1];
|
|
9119
|
+
}
|
|
9120
|
+
}
|
|
9121
|
+
}
|
|
9122
|
+
this.router.navigate([urls[0]], {
|
|
9123
|
+
queryParams: queryParamObj && (Object.keys(queryParamObj).length) ? queryParamObj : ''
|
|
9124
|
+
});
|
|
9125
|
+
};
|
|
9126
|
+
return ConvertHrefToRouterService;
|
|
9127
|
+
}());
|
|
9128
|
+
ConvertHrefToRouterService.ɵfac = function ConvertHrefToRouterService_Factory(t) { return new (t || ConvertHrefToRouterService)(i0__namespace.ɵɵinject(i1__namespace$1.Router)); };
|
|
9129
|
+
ConvertHrefToRouterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ConvertHrefToRouterService, factory: ConvertHrefToRouterService.ɵfac });
|
|
9130
|
+
(function () {
|
|
9131
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ConvertHrefToRouterService, [{
|
|
9132
|
+
type: i0.Injectable
|
|
9133
|
+
}], function () { return [{ type: i1__namespace$1.Router }]; }, null);
|
|
9134
|
+
})();
|
|
9135
|
+
|
|
9093
9136
|
var WizardFactoryService = /** @class */ (function () {
|
|
9094
9137
|
function WizardFactoryService() {
|
|
9095
9138
|
}
|
|
@@ -9282,20 +9325,6 @@
|
|
|
9282
9325
|
EventCompletionPortalTypes[EventCompletionPortalTypes["TaskReassigned"] = 1] = "TaskReassigned";
|
|
9283
9326
|
})(EventCompletionPortalTypes || (EventCompletionPortalTypes = {}));
|
|
9284
9327
|
|
|
9285
|
-
exports.EventCompletionStates = void 0;
|
|
9286
|
-
(function (EventCompletionStates) {
|
|
9287
|
-
EventCompletionStates["CheckTasksCanBeCompleted"] = "check-tasks-can-be-completed";
|
|
9288
|
-
EventCompletionStates["CompleteEventAndTask"] = "complete-event-and-task";
|
|
9289
|
-
EventCompletionStates["CancelEvent"] = "cancel-event";
|
|
9290
|
-
EventCompletionStates["CompleteEventNotTask"] = "complete-event-not-task";
|
|
9291
|
-
EventCompletionStates["TaskCompetedOrCancelled"] = "task-completed-or-cancelled";
|
|
9292
|
-
EventCompletionStates["TaskAssignedToAnotherUser"] = "task-assigned-to-another-user";
|
|
9293
|
-
EventCompletionStates["TaskReassignToUser"] = "task-reassign-to-user";
|
|
9294
|
-
EventCompletionStates["TaskAssignToUser"] = "task-assign-to-user";
|
|
9295
|
-
EventCompletionStates["TaskUnassigned"] = "task-unassigned";
|
|
9296
|
-
EventCompletionStates["Final"] = "final";
|
|
9297
|
-
})(exports.EventCompletionStates || (exports.EventCompletionStates = {}));
|
|
9298
|
-
|
|
9299
9328
|
var EVENT_COMPLETION_STATE_MACHINE = 'EVENT COMPLETION STATE MACHINE';
|
|
9300
9329
|
var EventCompletionStateMachineService = /** @class */ (function () {
|
|
9301
9330
|
function EventCompletionStateMachineService() {
|
|
@@ -9532,8 +9561,9 @@
|
|
|
9532
9561
|
})();
|
|
9533
9562
|
|
|
9534
9563
|
var CaseEditComponent = /** @class */ (function () {
|
|
9535
|
-
function CaseEditComponent(fb, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService) {
|
|
9564
|
+
function CaseEditComponent(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService) {
|
|
9536
9565
|
this.fb = fb;
|
|
9566
|
+
this.caseNotifier = caseNotifier;
|
|
9537
9567
|
this.router = router;
|
|
9538
9568
|
this.route = route;
|
|
9539
9569
|
this.fieldsUtils = fieldsUtils;
|
|
@@ -9542,8 +9572,15 @@
|
|
|
9542
9572
|
this.wizardFactory = wizardFactory;
|
|
9543
9573
|
this.sessionStorageService = sessionStorageService;
|
|
9544
9574
|
this.windowsService = windowsService;
|
|
9575
|
+
this.formValueService = formValueService;
|
|
9576
|
+
this.formErrorService = formErrorService;
|
|
9545
9577
|
this.cancelled = new i0.EventEmitter();
|
|
9546
9578
|
this.submitted = new i0.EventEmitter();
|
|
9579
|
+
this.isEventCompletionChecksRequired = false;
|
|
9580
|
+
this.isCaseFlagSubmission = false;
|
|
9581
|
+
this.ignoreWarning = false;
|
|
9582
|
+
this.isLinkedCasesSubmission = false;
|
|
9583
|
+
this.callbackErrorsSubject = new rxjs.Subject();
|
|
9547
9584
|
}
|
|
9548
9585
|
CaseEditComponent.prototype.ngOnInit = function () {
|
|
9549
9586
|
var _this = this;
|
|
@@ -9551,6 +9588,7 @@
|
|
|
9551
9588
|
this.initialUrl = this.sessionStorageService.getItem('eventUrl');
|
|
9552
9589
|
this.isPageRefreshed = JSON.parse(this.sessionStorageService.getItem('isPageRefreshed'));
|
|
9553
9590
|
this.checkPageRefresh();
|
|
9591
|
+
/* istanbul ignore else */
|
|
9554
9592
|
if (this.router.url && !this.isPageRefreshed) {
|
|
9555
9593
|
this.sessionStorageService.setItem('eventUrl', this.router.url);
|
|
9556
9594
|
}
|
|
@@ -9566,6 +9604,12 @@
|
|
|
9566
9604
|
_this.navigationOrigin = params[CaseEditComponent.ORIGIN_QUERY_PARAM];
|
|
9567
9605
|
});
|
|
9568
9606
|
};
|
|
9607
|
+
CaseEditComponent.prototype.ngOnDestroy = function () {
|
|
9608
|
+
/* istanbul ignore else */
|
|
9609
|
+
if (this.callbackErrorsSubject) {
|
|
9610
|
+
this.callbackErrorsSubject.unsubscribe();
|
|
9611
|
+
}
|
|
9612
|
+
};
|
|
9569
9613
|
CaseEditComponent.prototype.checkPageRefresh = function () {
|
|
9570
9614
|
if (this.isPageRefreshed && this.initialUrl) {
|
|
9571
9615
|
this.sessionStorageService.removeItem('eventUrl');
|
|
@@ -9588,20 +9632,37 @@
|
|
|
9588
9632
|
};
|
|
9589
9633
|
CaseEditComponent.prototype.next = function (currentPageId) {
|
|
9590
9634
|
this.initialUrl = this.sessionStorageService.getItem('eventUrl');
|
|
9635
|
+
/* istanbul ignore else */
|
|
9591
9636
|
if (this.router.url && !this.initialUrl) {
|
|
9592
9637
|
this.sessionStorageService.setItem('eventUrl', this.router.url);
|
|
9593
9638
|
}
|
|
9594
9639
|
this.fieldsPurger.clearHiddenFields(this.form, this.wizard, this.eventTrigger, currentPageId);
|
|
9640
|
+
var nextPage = this.getNextPage({
|
|
9641
|
+
currentPageId: currentPageId,
|
|
9642
|
+
wizard: this.wizard,
|
|
9643
|
+
eventTrigger: this.eventTrigger,
|
|
9644
|
+
form: this.form,
|
|
9645
|
+
});
|
|
9646
|
+
/* istanbul ignore else */
|
|
9647
|
+
if (!nextPage && !this.eventTrigger.show_summary) {
|
|
9648
|
+
this.submitForm({
|
|
9649
|
+
eventTrigger: this.eventTrigger,
|
|
9650
|
+
form: this.form,
|
|
9651
|
+
submit: this.submit,
|
|
9652
|
+
caseDetails: this.caseDetails,
|
|
9653
|
+
});
|
|
9654
|
+
return;
|
|
9655
|
+
}
|
|
9595
9656
|
this.registrarService.reset();
|
|
9596
9657
|
var theQueryParams = {};
|
|
9597
9658
|
theQueryParams[CaseEditComponent.ORIGIN_QUERY_PARAM] = this.navigationOrigin;
|
|
9598
|
-
var nextPage = this.wizard.nextPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(this.eventTrigger, this.form));
|
|
9599
9659
|
return this.router.navigate([nextPage ? nextPage.id : 'submit'], { queryParams: theQueryParams, relativeTo: this.route });
|
|
9600
9660
|
};
|
|
9601
9661
|
CaseEditComponent.prototype.previous = function (currentPageId) {
|
|
9602
9662
|
this.fieldsPurger.clearHiddenFields(this.form, this.wizard, this.eventTrigger, currentPageId);
|
|
9603
9663
|
this.registrarService.reset();
|
|
9604
9664
|
var previousPage = this.wizard.previousPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(this.eventTrigger, this.form));
|
|
9665
|
+
/* istanbul ignore else */
|
|
9605
9666
|
if (!previousPage) {
|
|
9606
9667
|
return Promise.resolve(false);
|
|
9607
9668
|
}
|
|
@@ -9615,119 +9676,342 @@
|
|
|
9615
9676
|
CaseEditComponent.prototype.cancel = function () {
|
|
9616
9677
|
this.cancelled.emit();
|
|
9617
9678
|
};
|
|
9679
|
+
CaseEditComponent.prototype.emitSubmitted = function (response) {
|
|
9680
|
+
this.submitted.emit({ caseId: response['id'], status: this.getStatus(response) });
|
|
9681
|
+
};
|
|
9682
|
+
CaseEditComponent.prototype.getNextPage = function (_a) {
|
|
9683
|
+
var wizard = _a.wizard, currentPageId = _a.currentPageId, eventTrigger = _a.eventTrigger, form = _a.form;
|
|
9684
|
+
return wizard.nextPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(eventTrigger, form));
|
|
9685
|
+
};
|
|
9618
9686
|
CaseEditComponent.prototype.confirm = function (confirmation) {
|
|
9619
9687
|
this.confirmation = confirmation;
|
|
9620
9688
|
return this.router.navigate(['confirm'], { relativeTo: this.route });
|
|
9621
9689
|
};
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9690
|
+
CaseEditComponent.prototype.submitForm = function (_a) {
|
|
9691
|
+
var eventTrigger = _a.eventTrigger, form = _a.form, caseDetails = _a.caseDetails, submit = _a.submit;
|
|
9692
|
+
this.isSubmitting = true;
|
|
9693
|
+
// We have to run the event completion checks if task in session storage
|
|
9694
|
+
// and if the task is in session storage, then is it associated to the case
|
|
9695
|
+
var taskInSessionStorage;
|
|
9696
|
+
var taskStr = this.sessionStorageService.getItem('taskToComplete');
|
|
9697
|
+
if (taskStr) {
|
|
9698
|
+
taskInSessionStorage = JSON.parse(taskStr);
|
|
9630
9699
|
}
|
|
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
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
}
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9700
|
+
if (taskInSessionStorage && taskInSessionStorage.case_id === this.getCaseId(caseDetails)) {
|
|
9701
|
+
// Show event completion component to perform event completion checks
|
|
9702
|
+
this.eventCompletionParams = ({
|
|
9703
|
+
caseId: this.getCaseId(caseDetails),
|
|
9704
|
+
eventId: this.getEventId(form),
|
|
9705
|
+
task: taskInSessionStorage
|
|
9706
|
+
});
|
|
9707
|
+
this.isEventCompletionChecksRequired = true;
|
|
9708
|
+
}
|
|
9709
|
+
else {
|
|
9710
|
+
// Task not in session storage, proceed to submit
|
|
9711
|
+
var caseEventData = this.generateCaseEventData({
|
|
9712
|
+
eventTrigger: eventTrigger,
|
|
9713
|
+
form: form
|
|
9714
|
+
});
|
|
9715
|
+
this.caseSubmit({ form: form,
|
|
9716
|
+
caseEventData: caseEventData,
|
|
9717
|
+
submit: submit });
|
|
9718
|
+
}
|
|
9719
|
+
};
|
|
9720
|
+
CaseEditComponent.prototype.getCaseId = function (caseDetails) {
|
|
9721
|
+
return (caseDetails ? caseDetails.case_id : '');
|
|
9722
|
+
};
|
|
9723
|
+
CaseEditComponent.prototype.getEventId = function (form) {
|
|
9724
|
+
return form.value.event.id;
|
|
9725
|
+
};
|
|
9726
|
+
CaseEditComponent.prototype.generateCaseEventData = function (_a) {
|
|
9727
|
+
var eventTrigger = _a.eventTrigger, form = _a.form;
|
|
9728
|
+
var caseEventData = {
|
|
9729
|
+
data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(this.replaceHiddenFormValuesWithOriginalCaseData(form.get('data'), eventTrigger.case_fields))),
|
|
9730
|
+
event: form.value.event
|
|
9731
|
+
};
|
|
9732
|
+
this.formValueService.clearNonCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
9733
|
+
this.formValueService.removeNullLabels(caseEventData.data, eventTrigger.case_fields);
|
|
9734
|
+
this.formValueService.removeEmptyDocuments(caseEventData.data, eventTrigger.case_fields);
|
|
9735
|
+
// Remove collection fields that have "min" validation of greater than zero set on the FieldType but are empty;
|
|
9736
|
+
// these will fail validation
|
|
9737
|
+
this.formValueService.removeEmptyCollectionsWithMinValidation(caseEventData.data, eventTrigger.case_fields);
|
|
9738
|
+
// If this is a Case Flag submission (and thus a FlagLauncher field is present in the event trigger), the flag
|
|
9739
|
+
// details data needs populating for each Flags field, then the FlagLauncher field needs removing
|
|
9740
|
+
if (this.isCaseFlagSubmission) {
|
|
9741
|
+
this.formValueService.populateFlagDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
9742
|
+
this.formValueService.removeFlagLauncherField(caseEventData.data, eventTrigger.case_fields);
|
|
9743
|
+
}
|
|
9744
|
+
if (this.isLinkedCasesSubmission) {
|
|
9745
|
+
this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
9746
|
+
this.formValueService.removeComponentLauncherField(caseEventData.data, eventTrigger.case_fields);
|
|
9747
|
+
}
|
|
9748
|
+
caseEventData.event_token = eventTrigger.event_token;
|
|
9749
|
+
caseEventData.ignore_warning = this.ignoreWarning;
|
|
9750
|
+
if (this.confirmation) {
|
|
9751
|
+
caseEventData.data = {};
|
|
9752
|
+
}
|
|
9753
|
+
return caseEventData;
|
|
9754
|
+
};
|
|
9755
|
+
/**
|
|
9756
|
+
* Replaces non-array value objects with `null` for any Complex-type fields whose value is effectively empty, i.e.
|
|
9757
|
+
* all its sub-fields and descendants are `null` or `undefined`.
|
|
9758
|
+
*
|
|
9759
|
+
* @param data The object tree representing all the form field data
|
|
9760
|
+
* @returns The form field data modified accordingly
|
|
9761
|
+
*/
|
|
9762
|
+
CaseEditComponent.prototype.replaceEmptyComplexFieldValues = function (data) {
|
|
9763
|
+
Object.keys(data).forEach(function (key) {
|
|
9764
|
+
if (!Array.isArray(data[key]) && typeof data[key] === 'object' && !FieldsUtils.containsNonEmptyValues(data[key])) {
|
|
9765
|
+
data[key] = null;
|
|
9766
|
+
}
|
|
9767
|
+
});
|
|
9768
|
+
return data;
|
|
9769
|
+
};
|
|
9770
|
+
/**
|
|
9771
|
+
* Traverse *all* values of a {@link FormGroup}, including those for disabled fields (i.e. hidden ones), replacing the
|
|
9772
|
+
* value of any that are hidden AND have `retain_hidden_value` set to `true` in the corresponding `CaseField`, with
|
|
9773
|
+
* the *original* value held in the `CaseField` object.
|
|
9774
|
+
*
|
|
9775
|
+
* This is as per design in EUI-3622, where any user-driven updates to hidden fields with `retain_hidden_value` =
|
|
9776
|
+
* `true` are ignored (thus retaining the value displayed originally).
|
|
9777
|
+
*
|
|
9778
|
+
* * For Complex field types, the replacement above is performed recursively for all hidden sub-fields with
|
|
9779
|
+
* `retain_hidden_value` = `true`.
|
|
9780
|
+
*
|
|
9781
|
+
* * For Collection field types, including collections of Complex and Document field types, the replacement is
|
|
9782
|
+
* performed for all fields in the collection.
|
|
9783
|
+
*
|
|
9784
|
+
* @param formGroup The `FormGroup` instance whose raw values are to be traversed
|
|
9785
|
+
* @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `formGroup`
|
|
9786
|
+
* @param parentField Reference to the parent `CaseField`. Used for retrieving the sub-field values of a Complex field
|
|
9787
|
+
* to perform recursive replacement - the sub-field `CaseField`s themselves do *not* contain any values
|
|
9788
|
+
* @returns An object with the *raw* form value data (as key-value pairs), with any value replacements as necessary
|
|
9789
|
+
*/
|
|
9790
|
+
CaseEditComponent.prototype.replaceHiddenFormValuesWithOriginalCaseData = function (formGroup, caseFields, parentField) {
|
|
9791
|
+
var _this = this;
|
|
9792
|
+
// Get the raw form value data, which includes the values of any disabled controls, as key-value pairs
|
|
9793
|
+
var rawFormValueData = formGroup.getRawValue();
|
|
9794
|
+
// Place all case fields in a lookup object, so they can be retrieved by id
|
|
9795
|
+
var caseFieldsLookup = {};
|
|
9796
|
+
for (var i = 0, len = caseFields.length; i < len; i++) {
|
|
9797
|
+
caseFieldsLookup[caseFields[i].id] = caseFields[i];
|
|
9798
|
+
}
|
|
9799
|
+
/**
|
|
9800
|
+
* Replace any form value with the original, where its CaseField is hidden AND has the retain_hidden_value flag set
|
|
9801
|
+
* to true.
|
|
9802
|
+
*
|
|
9803
|
+
* If the CaseField's `hidden` attribute is null or undefined, then check this attribute in the parent CaseField (if
|
|
9804
|
+
* one exists). This is occurring (and is possibly a bug) when a CaseField is a sub-field of a Complex type, or an
|
|
9805
|
+
* item in a Collection type.
|
|
9806
|
+
*
|
|
9807
|
+
* If the field is a Complex type with retain_hidden_value = true, perform a recursive replacement for all (hidden)
|
|
9808
|
+
* sub-fields with retain_hidden_value = true, using their original CaseField values (from the `formatted_value`
|
|
9809
|
+
* attribute).
|
|
9810
|
+
*
|
|
9811
|
+
* If the field is a Collection type with retain_hidden_value = true, the entire collection is replaced with the
|
|
9812
|
+
* original from `formatted_value`. This applies to *all* types of Collections.
|
|
9813
|
+
*/
|
|
9814
|
+
/* istanbul ignore next */
|
|
9815
|
+
Object.keys(rawFormValueData).forEach(function (key) {
|
|
9816
|
+
var caseField = caseFieldsLookup[key];
|
|
9817
|
+
// If caseField.hidden is NOT truthy and also NOT equal to false, then it must be null/undefined (remember that
|
|
9818
|
+
// both null and undefined are equal to *neither false nor true*)
|
|
9819
|
+
if (caseField && caseField.retain_hidden_value &&
|
|
9820
|
+
(caseField.hidden || (caseField.hidden !== false && parentField && parentField.hidden))) {
|
|
9821
|
+
if (caseField.field_type.type === 'Complex') {
|
|
9822
|
+
// Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
|
|
9823
|
+
// handle both null and undefined values
|
|
9824
|
+
if (caseField.value != null) {
|
|
9825
|
+
// Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
|
|
9826
|
+
// CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
|
|
9827
|
+
// parent)
|
|
9828
|
+
// Update rawFormValueData for this field
|
|
9829
|
+
// creating form group and adding control into it in case caseField is of complext type and and part of formGroup
|
|
9830
|
+
var form_1 = new i2.FormGroup({});
|
|
9831
|
+
if (formGroup.controls[key].value) {
|
|
9832
|
+
Object.keys(formGroup.controls[key].value).forEach(function (item) {
|
|
9833
|
+
form_1.addControl(item, new i2.FormControl(formGroup.controls[key].value[item]));
|
|
9834
|
+
});
|
|
9835
|
+
}
|
|
9836
|
+
rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
|
|
9837
|
+
}
|
|
9838
|
+
}
|
|
9839
|
+
else {
|
|
9840
|
+
// Default case also handles collections of *all* types; the entire collection in rawFormValueData will be
|
|
9841
|
+
// replaced with the original from formatted_value
|
|
9842
|
+
// Use the CaseField's existing *formatted_value* from the parent, if available. (This is necessary for
|
|
9843
|
+
// Complex fields, whose sub-fields do not hold any values in the model.) Otherwise, use formatted_value
|
|
9844
|
+
// from the CaseField itself.
|
|
9845
|
+
if (parentField && parentField.formatted_value) {
|
|
9846
|
+
rawFormValueData[key] = parentField.formatted_value[caseField.id];
|
|
9847
|
+
}
|
|
9848
|
+
else {
|
|
9849
|
+
rawFormValueData[key] = caseField.formatted_value;
|
|
9850
|
+
}
|
|
9851
|
+
}
|
|
9852
|
+
}
|
|
9853
|
+
});
|
|
9854
|
+
return rawFormValueData;
|
|
9855
|
+
};
|
|
9856
|
+
CaseEditComponent.prototype.caseSubmit = function (_a) {
|
|
9857
|
+
var _this = this;
|
|
9858
|
+
var form = _a.form, caseEventData = _a.caseEventData, submit = _a.submit;
|
|
9859
|
+
submit(caseEventData)
|
|
9860
|
+
.subscribe(function (response) {
|
|
9861
|
+
_this.caseNotifier.cachedCaseView = null;
|
|
9862
|
+
_this.sessionStorageService.removeItem('eventUrl');
|
|
9863
|
+
var confirmation = _this.buildConfirmation(response);
|
|
9864
|
+
if (confirmation && (confirmation.getHeader() || confirmation.getBody())) {
|
|
9865
|
+
_this.confirm(confirmation);
|
|
9866
|
+
}
|
|
9867
|
+
else {
|
|
9868
|
+
_this.emitSubmitted(response);
|
|
9869
|
+
}
|
|
9870
|
+
}, function (error) {
|
|
9871
|
+
_this.error = error;
|
|
9872
|
+
_this.callbackErrorsSubject.next(error);
|
|
9873
|
+
/* istanbul ignore else */
|
|
9874
|
+
if (_this.error.details) {
|
|
9875
|
+
_this.formErrorService
|
|
9876
|
+
.mapFieldErrors(_this.error.details.field_errors, form.controls['data'], 'validation');
|
|
9877
|
+
}
|
|
9878
|
+
_this.isSubmitting = false;
|
|
9879
|
+
});
|
|
9880
|
+
};
|
|
9881
|
+
CaseEditComponent.prototype.buildConfirmation = function (response) {
|
|
9882
|
+
if (response['after_submit_callback_response']) {
|
|
9883
|
+
return new Confirmation(response['id'], response['callback_response_status'], response['after_submit_callback_response']['confirmation_header'], response['after_submit_callback_response']['confirmation_body']);
|
|
9884
|
+
}
|
|
9885
|
+
else {
|
|
9886
|
+
return null;
|
|
9887
|
+
}
|
|
9888
|
+
};
|
|
9889
|
+
CaseEditComponent.prototype.onEventCanBeCompleted = function (_a) {
|
|
9890
|
+
var eventTrigger = _a.eventTrigger, eventCanBeCompleted = _a.eventCanBeCompleted, caseDetails = _a.caseDetails, form = _a.form, submit = _a.submit;
|
|
9891
|
+
if (eventCanBeCompleted) {
|
|
9892
|
+
// Submit
|
|
9893
|
+
var caseEventData = this.generateCaseEventData({ eventTrigger: eventTrigger, form: form });
|
|
9894
|
+
this.caseSubmit({ form: form, caseEventData: caseEventData, submit: submit });
|
|
9895
|
+
}
|
|
9896
|
+
else {
|
|
9897
|
+
// Navigate to tasks tab on case details page
|
|
9898
|
+
this.router.navigate(["/cases/case-details/" + this.getCaseId(caseDetails) + "/tasks"], { relativeTo: this.route });
|
|
9899
|
+
}
|
|
9900
|
+
};
|
|
9901
|
+
CaseEditComponent.prototype.getStatus = function (response) {
|
|
9902
|
+
return this.hasCallbackFailed(response) ? response['callback_response_status'] : response['delete_draft_response_status'];
|
|
9903
|
+
};
|
|
9904
|
+
CaseEditComponent.prototype.hasCallbackFailed = function (response) {
|
|
9905
|
+
return response['callback_response_status'] !== 'CALLBACK_COMPLETED';
|
|
9906
|
+
};
|
|
9907
|
+
return CaseEditComponent;
|
|
9908
|
+
}());
|
|
9909
|
+
CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
9910
|
+
CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
|
|
9911
|
+
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)); };
|
|
9912
|
+
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) {
|
|
9913
|
+
if (rf & 1) {
|
|
9914
|
+
i0__namespace.ɵɵelement(0, "router-outlet");
|
|
9915
|
+
}
|
|
9916
|
+
}, 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%}"] });
|
|
9917
|
+
(function () {
|
|
9918
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEditComponent, [{
|
|
9919
|
+
type: i0.Component,
|
|
9920
|
+
args: [{
|
|
9921
|
+
selector: 'ccd-case-edit',
|
|
9922
|
+
templateUrl: 'case-edit.component.html',
|
|
9923
|
+
styleUrls: ['../case-edit.scss'],
|
|
9924
|
+
providers: [GreyBarService]
|
|
9925
|
+
}]
|
|
9926
|
+
}], 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: [{
|
|
9927
|
+
type: i0.Input
|
|
9928
|
+
}], submit: [{
|
|
9929
|
+
type: i0.Input
|
|
9930
|
+
}], validate: [{
|
|
9931
|
+
type: i0.Input
|
|
9932
|
+
}], saveDraft: [{
|
|
9933
|
+
type: i0.Input
|
|
9934
|
+
}], caseDetails: [{
|
|
9935
|
+
type: i0.Input
|
|
9936
|
+
}], cancelled: [{
|
|
9937
|
+
type: i0.Output
|
|
9938
|
+
}], submitted: [{
|
|
9939
|
+
type: i0.Output
|
|
9940
|
+
}] });
|
|
9941
|
+
})();
|
|
9942
|
+
|
|
9943
|
+
function CaseEditConfirmComponent_div_2_Template(rf, ctx) {
|
|
9944
|
+
if (rf & 1) {
|
|
9945
|
+
i0__namespace.ɵɵelement(0, "div");
|
|
9946
|
+
}
|
|
9947
|
+
}
|
|
9948
|
+
function CaseEditConfirmComponent_ng_template_3_Template(rf, ctx) {
|
|
9949
|
+
if (rf & 1) {
|
|
9950
|
+
i0__namespace.ɵɵelement(0, "ccd-markdown", 8);
|
|
9951
|
+
i0__namespace.ɵɵpipe(1, "ccdCaseTitle");
|
|
9952
|
+
}
|
|
9953
|
+
if (rf & 2) {
|
|
9954
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
9955
|
+
i0__namespace.ɵɵproperty("content", i0__namespace.ɵɵpipeBind3(1, 1, ctx_r2.getCaseTitle(), ctx_r2.caseFields, ctx_r2.editForm.controls["data"]));
|
|
9956
|
+
}
|
|
9957
|
+
}
|
|
9958
|
+
function CaseEditConfirmComponent_ng_template_5_h2_0_Template(rf, ctx) {
|
|
9959
|
+
if (rf & 1) {
|
|
9960
|
+
i0__namespace.ɵɵelementStart(0, "h2", 10);
|
|
9961
|
+
i0__namespace.ɵɵtext(1);
|
|
9962
|
+
i0__namespace.ɵɵpipe(2, "ccdCaseReference");
|
|
9963
|
+
i0__namespace.ɵɵelementEnd();
|
|
9964
|
+
}
|
|
9965
|
+
if (rf & 2) {
|
|
9966
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
9967
|
+
i0__namespace.ɵɵadvance(1);
|
|
9968
|
+
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r7.getCaseId()), "");
|
|
9969
|
+
}
|
|
9970
|
+
}
|
|
9971
|
+
function CaseEditConfirmComponent_ng_template_5_Template(rf, ctx) {
|
|
9972
|
+
if (rf & 1) {
|
|
9973
|
+
i0__namespace.ɵɵtemplate(0, CaseEditConfirmComponent_ng_template_5_h2_0_Template, 3, 3, "h2", 9);
|
|
9974
|
+
}
|
|
9975
|
+
if (rf & 2) {
|
|
9976
|
+
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
9977
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r4.getCaseId());
|
|
9978
|
+
}
|
|
9979
|
+
}
|
|
9980
|
+
function CaseEditConfirmComponent_div_8_Template(rf, ctx) {
|
|
9981
|
+
if (rf & 1) {
|
|
9982
|
+
i0__namespace.ɵɵelementStart(0, "div", 11);
|
|
9983
|
+
i0__namespace.ɵɵelement(1, "ccd-markdown", 8);
|
|
9984
|
+
i0__namespace.ɵɵelementEnd();
|
|
9985
|
+
}
|
|
9986
|
+
if (rf & 2) {
|
|
9987
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext();
|
|
9988
|
+
i0__namespace.ɵɵadvance(1);
|
|
9989
|
+
i0__namespace.ɵɵproperty("content", ctx_r5.confirmation.getHeader());
|
|
9990
|
+
}
|
|
9991
|
+
}
|
|
9992
|
+
function CaseEditConfirmComponent_div_9_Template(rf, ctx) {
|
|
9993
|
+
if (rf & 1) {
|
|
9994
|
+
i0__namespace.ɵɵelementStart(0, "div", 12);
|
|
9995
|
+
i0__namespace.ɵɵelement(1, "ccd-markdown", 8);
|
|
9996
|
+
i0__namespace.ɵɵelementEnd();
|
|
9997
|
+
}
|
|
9998
|
+
if (rf & 2) {
|
|
9999
|
+
var ctx_r6 = i0__namespace.ɵɵnextContext();
|
|
10000
|
+
i0__namespace.ɵɵadvance(1);
|
|
10001
|
+
i0__namespace.ɵɵproperty("content", ctx_r6.confirmation.getBody());
|
|
10002
|
+
}
|
|
10003
|
+
}
|
|
10004
|
+
var CaseEditConfirmComponent = /** @class */ (function () {
|
|
10005
|
+
function CaseEditConfirmComponent(caseEdit, router) {
|
|
10006
|
+
this.caseEdit = caseEdit;
|
|
10007
|
+
this.router = router;
|
|
10008
|
+
this.triggerText = 'Close and Return to case details';
|
|
10009
|
+
this.formGroup = new i2.FormControl();
|
|
10010
|
+
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
10011
|
+
this.editForm = this.caseEdit.form;
|
|
10012
|
+
this.caseFields = this.getCaseFields();
|
|
9728
10013
|
if (this.caseEdit.confirmation) {
|
|
9729
10014
|
this.confirmation = this.caseEdit.confirmation;
|
|
9730
|
-
this.caseId = this.caseEdit.confirmation.getCaseId();
|
|
9731
10015
|
}
|
|
9732
10016
|
else {
|
|
9733
10017
|
this.router.navigate(['/']);
|
|
@@ -9737,7 +10021,8 @@
|
|
|
9737
10021
|
this.caseEdit.submitted.emit({ caseId: this.confirmation.getCaseId(), status: this.confirmation.getStatus() });
|
|
9738
10022
|
};
|
|
9739
10023
|
CaseEditConfirmComponent.prototype.getCaseId = function () {
|
|
9740
|
-
|
|
10024
|
+
var _a, _b;
|
|
10025
|
+
return ((_b = (_a = this.caseEdit) === null || _a === void 0 ? void 0 : _a.caseDetails) === null || _b === void 0 ? void 0 : _b.case_id) || '';
|
|
9741
10026
|
};
|
|
9742
10027
|
CaseEditConfirmComponent.prototype.getCaseTitle = function () {
|
|
9743
10028
|
return (this.caseEdit.caseDetails && this.caseEdit.caseDetails.state &&
|
|
@@ -10105,39 +10390,39 @@
|
|
|
10105
10390
|
}
|
|
10106
10391
|
function CaseEditPageComponent_ng_container_1_h1_1_Template(rf, ctx) {
|
|
10107
10392
|
if (rf & 1) {
|
|
10108
|
-
i0__namespace.ɵɵelementStart(0, "h1",
|
|
10393
|
+
i0__namespace.ɵɵelementStart(0, "h1", 11);
|
|
10109
10394
|
i0__namespace.ɵɵtext(1);
|
|
10110
10395
|
i0__namespace.ɵɵelementEnd();
|
|
10111
10396
|
}
|
|
10112
10397
|
if (rf & 2) {
|
|
10113
|
-
var
|
|
10398
|
+
var ctx_r10 = i0__namespace.ɵɵnextContext(2);
|
|
10114
10399
|
i0__namespace.ɵɵadvance(1);
|
|
10115
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10400
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r10.eventTrigger.name);
|
|
10116
10401
|
}
|
|
10117
10402
|
}
|
|
10118
10403
|
function CaseEditPageComponent_ng_container_1_ng_container_2_Template(rf, ctx) {
|
|
10119
10404
|
if (rf & 1) {
|
|
10120
10405
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
10121
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
10406
|
+
i0__namespace.ɵɵelementStart(1, "span", 12);
|
|
10122
10407
|
i0__namespace.ɵɵtext(2);
|
|
10123
10408
|
i0__namespace.ɵɵelementEnd();
|
|
10124
|
-
i0__namespace.ɵɵelementStart(3, "h1",
|
|
10409
|
+
i0__namespace.ɵɵelementStart(3, "h1", 11);
|
|
10125
10410
|
i0__namespace.ɵɵtext(4);
|
|
10126
10411
|
i0__namespace.ɵɵelementEnd();
|
|
10127
10412
|
i0__namespace.ɵɵelementContainerEnd();
|
|
10128
10413
|
}
|
|
10129
10414
|
if (rf & 2) {
|
|
10130
|
-
var
|
|
10415
|
+
var ctx_r11 = i0__namespace.ɵɵnextContext(2);
|
|
10131
10416
|
i0__namespace.ɵɵadvance(2);
|
|
10132
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10417
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r11.eventTrigger.name);
|
|
10133
10418
|
i0__namespace.ɵɵadvance(2);
|
|
10134
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10419
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r11.currentPage.label);
|
|
10135
10420
|
}
|
|
10136
10421
|
}
|
|
10137
10422
|
function CaseEditPageComponent_ng_container_1_Template(rf, ctx) {
|
|
10138
10423
|
if (rf & 1) {
|
|
10139
10424
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
10140
|
-
i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_h1_1_Template, 2, 1, "h1",
|
|
10425
|
+
i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_h1_1_Template, 2, 1, "h1", 10);
|
|
10141
10426
|
i0__namespace.ɵɵtemplate(2, CaseEditPageComponent_ng_container_1_ng_container_2_Template, 5, 2, "ng-container", 0);
|
|
10142
10427
|
i0__namespace.ɵɵelementContainerEnd();
|
|
10143
10428
|
}
|
|
@@ -10156,7 +10441,7 @@
|
|
|
10156
10441
|
}
|
|
10157
10442
|
function CaseEditPageComponent_ng_template_3_Template(rf, ctx) {
|
|
10158
10443
|
if (rf & 1) {
|
|
10159
|
-
i0__namespace.ɵɵelement(0, "ccd-markdown",
|
|
10444
|
+
i0__namespace.ɵɵelement(0, "ccd-markdown", 13);
|
|
10160
10445
|
i0__namespace.ɵɵpipe(1, "ccdCaseTitle");
|
|
10161
10446
|
}
|
|
10162
10447
|
if (rf & 2) {
|
|
@@ -10166,20 +10451,20 @@
|
|
|
10166
10451
|
}
|
|
10167
10452
|
function CaseEditPageComponent_ng_template_5_h2_0_Template(rf, ctx) {
|
|
10168
10453
|
if (rf & 1) {
|
|
10169
|
-
i0__namespace.ɵɵelementStart(0, "h2",
|
|
10454
|
+
i0__namespace.ɵɵelementStart(0, "h2", 15);
|
|
10170
10455
|
i0__namespace.ɵɵtext(1);
|
|
10171
10456
|
i0__namespace.ɵɵpipe(2, "ccdCaseReference");
|
|
10172
10457
|
i0__namespace.ɵɵelementEnd();
|
|
10173
10458
|
}
|
|
10174
10459
|
if (rf & 2) {
|
|
10175
|
-
var
|
|
10460
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(2);
|
|
10176
10461
|
i0__namespace.ɵɵadvance(1);
|
|
10177
|
-
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1,
|
|
10462
|
+
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r12.getCaseId()), "");
|
|
10178
10463
|
}
|
|
10179
10464
|
}
|
|
10180
10465
|
function CaseEditPageComponent_ng_template_5_Template(rf, ctx) {
|
|
10181
10466
|
if (rf & 1) {
|
|
10182
|
-
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_template_5_h2_0_Template, 3, 3, "h2",
|
|
10467
|
+
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_template_5_h2_0_Template, 3, 3, "h2", 14);
|
|
10183
10468
|
}
|
|
10184
10469
|
if (rf & 2) {
|
|
10185
10470
|
var ctx_r6 = i0__namespace.ɵɵnextContext();
|
|
@@ -10188,177 +10473,125 @@
|
|
|
10188
10473
|
}
|
|
10189
10474
|
function CaseEditPageComponent_div_7_div_3_Template(rf, ctx) {
|
|
10190
10475
|
if (rf & 1) {
|
|
10191
|
-
var
|
|
10192
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
10193
|
-
i0__namespace.ɵɵelementStart(1, "ul",
|
|
10476
|
+
var _r16_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10477
|
+
i0__namespace.ɵɵelementStart(0, "div", 19);
|
|
10478
|
+
i0__namespace.ɵɵelementStart(1, "ul", 20);
|
|
10194
10479
|
i0__namespace.ɵɵelementStart(2, "li");
|
|
10195
|
-
i0__namespace.ɵɵelementStart(3, "a",
|
|
10196
|
-
i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_div_7_div_3_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(
|
|
10197
|
-
i0__namespace.ɵɵtext(4);
|
|
10198
|
-
i0__namespace.ɵɵelementEnd();
|
|
10199
|
-
i0__namespace.ɵɵelementEnd();
|
|
10200
|
-
i0__namespace.ɵɵelementEnd();
|
|
10201
|
-
i0__namespace.ɵɵelementEnd();
|
|
10202
|
-
}
|
|
10203
|
-
if (rf & 2) {
|
|
10204
|
-
var validationError_r15 = ctx.$implicit;
|
|
10205
|
-
i0__namespace.ɵɵadvance(4);
|
|
10206
|
-
i0__namespace.ɵɵtextInterpolate(validationError_r15.message);
|
|
10207
|
-
}
|
|
10208
|
-
}
|
|
10209
|
-
function CaseEditPageComponent_div_7_Template(rf, ctx) {
|
|
10210
|
-
if (rf & 1) {
|
|
10211
|
-
i0__namespace.ɵɵelementStart(0, "div", 15);
|
|
10212
|
-
i0__namespace.ɵɵelementStart(1, "h2", 16);
|
|
10213
|
-
i0__namespace.ɵɵtext(2, " There is a problem ");
|
|
10214
|
-
i0__namespace.ɵɵelementEnd();
|
|
10215
|
-
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_div_7_div_3_Template, 5, 1, "div", 17);
|
|
10216
|
-
i0__namespace.ɵɵelementEnd();
|
|
10217
|
-
}
|
|
10218
|
-
if (rf & 2) {
|
|
10219
|
-
var ctx_r7 = i0__namespace.ɵɵnextContext();
|
|
10220
|
-
i0__namespace.ɵɵadvance(3);
|
|
10221
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r7.validationErrors);
|
|
10222
|
-
}
|
|
10223
|
-
}
|
|
10224
|
-
function CaseEditPageComponent_div_8_Template(rf, ctx) {
|
|
10225
|
-
if (rf & 1) {
|
|
10226
|
-
i0__namespace.ɵɵelementStart(0, "div", 21);
|
|
10227
|
-
i0__namespace.ɵɵelementStart(1, "h1", 22);
|
|
10228
|
-
i0__namespace.ɵɵtext(2, " Something went wrong ");
|
|
10229
|
-
i0__namespace.ɵɵelementEnd();
|
|
10230
|
-
i0__namespace.ɵɵelementStart(3, "div", 23);
|
|
10231
|
-
i0__namespace.ɵɵelementStart(4, "p");
|
|
10232
|
-
i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
|
|
10233
|
-
i0__namespace.ɵɵelementEnd();
|
|
10234
|
-
i0__namespace.ɵɵelementStart(6, "p");
|
|
10235
|
-
i0__namespace.ɵɵelementStart(7, "a", 24);
|
|
10236
|
-
i0__namespace.ɵɵtext(8, "Contact us");
|
|
10237
|
-
i0__namespace.ɵɵelementEnd();
|
|
10238
|
-
i0__namespace.ɵɵtext(9, " if you're still having problems.");
|
|
10239
|
-
i0__namespace.ɵɵelementEnd();
|
|
10240
|
-
i0__namespace.ɵɵelementEnd();
|
|
10241
|
-
i0__namespace.ɵɵelementEnd();
|
|
10242
|
-
}
|
|
10243
|
-
}
|
|
10244
|
-
function CaseEditPageComponent_div_9_ul_5_li_1_Template(rf, ctx) {
|
|
10245
|
-
if (rf & 1) {
|
|
10246
|
-
i0__namespace.ɵɵelementStart(0, "li", 29);
|
|
10247
|
-
i0__namespace.ɵɵtext(1);
|
|
10248
|
-
i0__namespace.ɵɵelementEnd();
|
|
10249
|
-
}
|
|
10250
|
-
if (rf & 2) {
|
|
10251
|
-
var fieldError_r20 = ctx.$implicit;
|
|
10252
|
-
i0__namespace.ɵɵadvance(1);
|
|
10253
|
-
i0__namespace.ɵɵtextInterpolate(fieldError_r20.message);
|
|
10254
|
-
}
|
|
10255
|
-
}
|
|
10256
|
-
function CaseEditPageComponent_div_9_ul_5_Template(rf, ctx) {
|
|
10257
|
-
if (rf & 1) {
|
|
10258
|
-
i0__namespace.ɵɵelementStart(0, "ul", 27);
|
|
10259
|
-
i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_div_9_ul_5_li_1_Template, 2, 1, "li", 28);
|
|
10480
|
+
i0__namespace.ɵɵelementStart(3, "a", 21);
|
|
10481
|
+
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); });
|
|
10482
|
+
i0__namespace.ɵɵtext(4);
|
|
10483
|
+
i0__namespace.ɵɵelementEnd();
|
|
10484
|
+
i0__namespace.ɵɵelementEnd();
|
|
10485
|
+
i0__namespace.ɵɵelementEnd();
|
|
10260
10486
|
i0__namespace.ɵɵelementEnd();
|
|
10261
10487
|
}
|
|
10262
10488
|
if (rf & 2) {
|
|
10263
|
-
var
|
|
10264
|
-
i0__namespace.ɵɵadvance(
|
|
10265
|
-
i0__namespace.ɵɵ
|
|
10489
|
+
var validationError_r14 = ctx.$implicit;
|
|
10490
|
+
i0__namespace.ɵɵadvance(4);
|
|
10491
|
+
i0__namespace.ɵɵtextInterpolate(validationError_r14.message);
|
|
10266
10492
|
}
|
|
10267
10493
|
}
|
|
10268
|
-
function
|
|
10494
|
+
function CaseEditPageComponent_div_7_Template(rf, ctx) {
|
|
10269
10495
|
if (rf & 1) {
|
|
10270
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
10271
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
10272
|
-
i0__namespace.ɵɵtext(2, "
|
|
10273
|
-
i0__namespace.ɵɵelementEnd();
|
|
10274
|
-
i0__namespace.ɵɵelementStart(3, "p");
|
|
10275
|
-
i0__namespace.ɵɵtext(4);
|
|
10496
|
+
i0__namespace.ɵɵelementStart(0, "div", 16);
|
|
10497
|
+
i0__namespace.ɵɵelementStart(1, "h2", 17);
|
|
10498
|
+
i0__namespace.ɵɵtext(2, " There is a problem ");
|
|
10276
10499
|
i0__namespace.ɵɵelementEnd();
|
|
10277
|
-
i0__namespace.ɵɵtemplate(
|
|
10500
|
+
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_div_7_div_3_Template, 5, 1, "div", 18);
|
|
10278
10501
|
i0__namespace.ɵɵelementEnd();
|
|
10279
10502
|
}
|
|
10280
10503
|
if (rf & 2) {
|
|
10281
|
-
var
|
|
10282
|
-
i0__namespace.ɵɵadvance(
|
|
10283
|
-
i0__namespace.ɵɵ
|
|
10284
|
-
i0__namespace.ɵɵadvance(1);
|
|
10285
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r9.error.details == null ? null : ctx_r9.error.details.field_errors);
|
|
10504
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext();
|
|
10505
|
+
i0__namespace.ɵɵadvance(3);
|
|
10506
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r7.validationErrors);
|
|
10286
10507
|
}
|
|
10287
10508
|
}
|
|
10288
|
-
function
|
|
10509
|
+
function CaseEditPageComponent_form_11_ccd_case_edit_form_3_Template(rf, ctx) {
|
|
10289
10510
|
if (rf & 1) {
|
|
10290
|
-
var
|
|
10291
|
-
i0__namespace.ɵɵelementStart(0, "ccd-case-edit-form",
|
|
10292
|
-
i0__namespace.ɵɵlistener("valuesChanged", function
|
|
10511
|
+
var _r20_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10512
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-edit-form", 32);
|
|
10513
|
+
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); });
|
|
10293
10514
|
i0__namespace.ɵɵelementEnd();
|
|
10294
10515
|
}
|
|
10295
10516
|
if (rf & 2) {
|
|
10296
|
-
var
|
|
10297
|
-
i0__namespace.ɵɵproperty("fields",
|
|
10517
|
+
var ctx_r17 = i0__namespace.ɵɵnextContext(2);
|
|
10518
|
+
i0__namespace.ɵɵproperty("fields", ctx_r17.currentPage.getCol1Fields())("formGroup", ctx_r17.editForm.controls["data"])("caseFields", ctx_r17.caseFields)("pageChangeSubject", ctx_r17.pageChangeSubject);
|
|
10298
10519
|
}
|
|
10299
10520
|
}
|
|
10300
|
-
function
|
|
10521
|
+
function CaseEditPageComponent_form_11_div_4_Template(rf, ctx) {
|
|
10301
10522
|
if (rf & 1) {
|
|
10302
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
10303
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
10304
|
-
i0__namespace.ɵɵelement(2, "ccd-case-edit-form",
|
|
10523
|
+
i0__namespace.ɵɵelementStart(0, "div", 33);
|
|
10524
|
+
i0__namespace.ɵɵelementStart(1, "div", 34);
|
|
10525
|
+
i0__namespace.ɵɵelement(2, "ccd-case-edit-form", 35);
|
|
10305
10526
|
i0__namespace.ɵɵelementEnd();
|
|
10306
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
10307
|
-
i0__namespace.ɵɵelement(4, "ccd-case-edit-form",
|
|
10527
|
+
i0__namespace.ɵɵelementStart(3, "div", 36);
|
|
10528
|
+
i0__namespace.ɵɵelement(4, "ccd-case-edit-form", 37);
|
|
10308
10529
|
i0__namespace.ɵɵelementEnd();
|
|
10309
10530
|
i0__namespace.ɵɵelementEnd();
|
|
10310
10531
|
}
|
|
10311
10532
|
if (rf & 2) {
|
|
10312
|
-
var
|
|
10533
|
+
var ctx_r18 = i0__namespace.ɵɵnextContext(2);
|
|
10313
10534
|
i0__namespace.ɵɵadvance(2);
|
|
10314
|
-
i0__namespace.ɵɵproperty("fields",
|
|
10535
|
+
i0__namespace.ɵɵproperty("fields", ctx_r18.currentPage.getCol1Fields())("formGroup", ctx_r18.editForm.controls["data"])("caseFields", ctx_r18.caseFields);
|
|
10315
10536
|
i0__namespace.ɵɵadvance(2);
|
|
10316
|
-
i0__namespace.ɵɵproperty("fields",
|
|
10537
|
+
i0__namespace.ɵɵproperty("fields", ctx_r18.currentPage.getCol2Fields())("formGroup", ctx_r18.editForm.controls["data"])("caseFields", ctx_r18.caseFields);
|
|
10317
10538
|
}
|
|
10318
10539
|
}
|
|
10319
|
-
function
|
|
10540
|
+
function CaseEditPageComponent_form_11_Template(rf, ctx) {
|
|
10320
10541
|
if (rf & 1) {
|
|
10321
|
-
var
|
|
10322
|
-
i0__namespace.ɵɵelementStart(0, "form",
|
|
10323
|
-
i0__namespace.ɵɵlistener("submit", function
|
|
10324
|
-
i0__namespace.ɵɵelementStart(1, "fieldset",
|
|
10325
|
-
i0__namespace.ɵɵelement(2, "legend",
|
|
10326
|
-
i0__namespace.ɵɵtemplate(3,
|
|
10327
|
-
i0__namespace.ɵɵtemplate(4,
|
|
10328
|
-
i0__namespace.ɵɵelementEnd();
|
|
10329
|
-
i0__namespace.ɵɵelementStart(5, "div",
|
|
10330
|
-
i0__namespace.ɵɵelementStart(6, "button",
|
|
10331
|
-
i0__namespace.ɵɵlistener("click", function
|
|
10542
|
+
var _r22_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10543
|
+
i0__namespace.ɵɵelementStart(0, "form", 22);
|
|
10544
|
+
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(); });
|
|
10545
|
+
i0__namespace.ɵɵelementStart(1, "fieldset", 23);
|
|
10546
|
+
i0__namespace.ɵɵelement(2, "legend", 24);
|
|
10547
|
+
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_form_11_ccd_case_edit_form_3_Template, 1, 4, "ccd-case-edit-form", 25);
|
|
10548
|
+
i0__namespace.ɵɵtemplate(4, CaseEditPageComponent_form_11_div_4_Template, 5, 6, "div", 26);
|
|
10549
|
+
i0__namespace.ɵɵelementEnd();
|
|
10550
|
+
i0__namespace.ɵɵelementStart(5, "div", 27);
|
|
10551
|
+
i0__namespace.ɵɵelementStart(6, "button", 28);
|
|
10552
|
+
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(); });
|
|
10332
10553
|
i0__namespace.ɵɵpipe(7, "async");
|
|
10333
10554
|
i0__namespace.ɵɵtext(8, " Previous ");
|
|
10334
10555
|
i0__namespace.ɵɵelementEnd();
|
|
10335
|
-
i0__namespace.ɵɵelementStart(9, "button",
|
|
10556
|
+
i0__namespace.ɵɵelementStart(9, "button", 29);
|
|
10336
10557
|
i0__namespace.ɵɵtext(10);
|
|
10337
10558
|
i0__namespace.ɵɵelementEnd();
|
|
10338
10559
|
i0__namespace.ɵɵelementEnd();
|
|
10339
|
-
i0__namespace.ɵɵelementStart(11, "p",
|
|
10340
|
-
i0__namespace.ɵɵelementStart(12, "a",
|
|
10341
|
-
i0__namespace.ɵɵlistener("click", function
|
|
10560
|
+
i0__namespace.ɵɵelementStart(11, "p", 30);
|
|
10561
|
+
i0__namespace.ɵɵelementStart(12, "a", 31);
|
|
10562
|
+
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(); });
|
|
10342
10563
|
i0__namespace.ɵɵtext(13);
|
|
10343
10564
|
i0__namespace.ɵɵelementEnd();
|
|
10344
10565
|
i0__namespace.ɵɵelementEnd();
|
|
10345
10566
|
i0__namespace.ɵɵelementEnd();
|
|
10346
10567
|
}
|
|
10347
10568
|
if (rf & 2) {
|
|
10348
|
-
var
|
|
10349
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
10569
|
+
var ctx_r8 = i0__namespace.ɵɵnextContext();
|
|
10570
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r8.editForm);
|
|
10350
10571
|
i0__namespace.ɵɵadvance(3);
|
|
10351
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
10572
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r8.currentPage.isMultiColumn());
|
|
10352
10573
|
i0__namespace.ɵɵadvance(1);
|
|
10353
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
10574
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r8.currentPage.isMultiColumn());
|
|
10354
10575
|
i0__namespace.ɵɵadvance(2);
|
|
10355
|
-
i0__namespace.ɵɵproperty("disabled", !i0__namespace.ɵɵpipeBind1(7, 7,
|
|
10576
|
+
i0__namespace.ɵɵproperty("disabled", !i0__namespace.ɵɵpipeBind1(7, 7, ctx_r8.hasPreviousPage$));
|
|
10356
10577
|
i0__namespace.ɵɵadvance(3);
|
|
10357
|
-
i0__namespace.ɵɵproperty("disabled",
|
|
10578
|
+
i0__namespace.ɵɵproperty("disabled", ctx_r8.submitting());
|
|
10358
10579
|
i0__namespace.ɵɵadvance(1);
|
|
10359
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10580
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r8.triggerText);
|
|
10360
10581
|
i0__namespace.ɵɵadvance(3);
|
|
10361
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10582
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r8.getCancelText());
|
|
10583
|
+
}
|
|
10584
|
+
}
|
|
10585
|
+
function CaseEditPageComponent_ccd_case_event_completion_12_Template(rf, ctx) {
|
|
10586
|
+
if (rf & 1) {
|
|
10587
|
+
var _r26_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10588
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 38);
|
|
10589
|
+
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); });
|
|
10590
|
+
i0__namespace.ɵɵelementEnd();
|
|
10591
|
+
}
|
|
10592
|
+
if (rf & 2) {
|
|
10593
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
10594
|
+
i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r9.caseEdit.eventCompletionParams);
|
|
10362
10595
|
}
|
|
10363
10596
|
}
|
|
10364
10597
|
var CaseEditPageComponent = /** @class */ (function () {
|
|
@@ -10372,15 +10605,13 @@
|
|
|
10372
10605
|
this.dialog = dialog;
|
|
10373
10606
|
this.caseFieldService = caseFieldService;
|
|
10374
10607
|
this.caseEditDataService = caseEditDataService;
|
|
10375
|
-
this.callbackErrorsSubject = new rxjs.Subject();
|
|
10376
|
-
this.ignoreWarning = false;
|
|
10377
10608
|
this.triggerTextStart = CaseEditPageComponent.TRIGGER_TEXT_START;
|
|
10378
10609
|
this.triggerTextIgnoreWarnings = CaseEditPageComponent.TRIGGER_TEXT_CONTINUE;
|
|
10379
|
-
this.isSubmitting = false;
|
|
10380
10610
|
this.formValuesChanged = false;
|
|
10381
10611
|
this.pageChangeSubject = new rxjs.Subject();
|
|
10382
10612
|
this.validationErrors = [];
|
|
10383
10613
|
this.hasPreviousPage$ = new rxjs.BehaviorSubject(false);
|
|
10614
|
+
this.callbackErrorsSubject = new rxjs.Subject();
|
|
10384
10615
|
}
|
|
10385
10616
|
CaseEditPageComponent.scrollToTop = function () {
|
|
10386
10617
|
window.scrollTo(0, 0);
|
|
@@ -10398,12 +10629,13 @@
|
|
|
10398
10629
|
this.editForm = this.caseEdit.form;
|
|
10399
10630
|
this.wizard = this.caseEdit.wizard;
|
|
10400
10631
|
this.caseFields = this.getCaseFields();
|
|
10401
|
-
this.triggerText = this.getTriggerText();
|
|
10402
10632
|
this.syncCaseEditDataService();
|
|
10403
10633
|
this.route.params
|
|
10404
10634
|
.subscribe(function (params) {
|
|
10635
|
+
var _a, _b;
|
|
10405
10636
|
var pageId = params['page'];
|
|
10406
|
-
|
|
10637
|
+
/* istanbul ignore else */
|
|
10638
|
+
if (!_this.currentPage || pageId !== ((_a = _this.currentPage) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
10407
10639
|
var page = _this.caseEdit.getPage(pageId);
|
|
10408
10640
|
if (page) {
|
|
10409
10641
|
_this.currentPage = page;
|
|
@@ -10416,7 +10648,7 @@
|
|
|
10416
10648
|
return _this.first();
|
|
10417
10649
|
}
|
|
10418
10650
|
}
|
|
10419
|
-
_this.hasPreviousPage$.next(_this.caseEdit.hasPrevious(_this.currentPage.id));
|
|
10651
|
+
_this.hasPreviousPage$.next(_this.caseEdit.hasPrevious((_b = _this.currentPage) === null || _b === void 0 ? void 0 : _b.id));
|
|
10420
10652
|
}
|
|
10421
10653
|
});
|
|
10422
10654
|
CaseEditPageComponent.setFocusToTop();
|
|
@@ -10431,6 +10663,7 @@
|
|
|
10431
10663
|
}
|
|
10432
10664
|
}
|
|
10433
10665
|
});
|
|
10666
|
+
this.triggerText = this.getTriggerText();
|
|
10434
10667
|
};
|
|
10435
10668
|
CaseEditPageComponent.prototype.ngAfterViewChecked = function () {
|
|
10436
10669
|
this.cdRef.detectChanges();
|
|
@@ -10530,8 +10763,10 @@
|
|
|
10530
10763
|
CaseEditPageComponent.scrollToTop();
|
|
10531
10764
|
};
|
|
10532
10765
|
CaseEditPageComponent.prototype.navigateToErrorElement = function (elementId) {
|
|
10766
|
+
/* istanbul ignore else */
|
|
10533
10767
|
if (elementId) {
|
|
10534
10768
|
var htmlElement = document.getElementById(elementId);
|
|
10769
|
+
/* istanbul ignore else */
|
|
10535
10770
|
if (htmlElement) {
|
|
10536
10771
|
htmlElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
10537
10772
|
htmlElement.focus();
|
|
@@ -10544,18 +10779,18 @@
|
|
|
10544
10779
|
if (this.currentPageIsNotValid()) {
|
|
10545
10780
|
this.generateErrorMessage(this.currentPage.case_fields);
|
|
10546
10781
|
}
|
|
10547
|
-
if (!this.isSubmitting && !this.currentPageIsNotValid()) {
|
|
10548
|
-
this.isSubmitting = true;
|
|
10549
|
-
this.error = null;
|
|
10782
|
+
if (!this.caseEdit.isSubmitting && !this.currentPageIsNotValid()) {
|
|
10783
|
+
this.caseEdit.isSubmitting = true;
|
|
10784
|
+
this.caseEdit.error = null;
|
|
10550
10785
|
var caseEventData = this.buildCaseEventData();
|
|
10551
10786
|
this.showSpinner = true;
|
|
10552
10787
|
this.caseEdit.validate(caseEventData, this.currentPage.id)
|
|
10553
10788
|
.subscribe(function (jsonData) {
|
|
10789
|
+
/* istanbul ignore else */
|
|
10554
10790
|
if (jsonData) {
|
|
10555
10791
|
_this.updateFormData(jsonData);
|
|
10556
10792
|
}
|
|
10557
10793
|
_this.saveDraft();
|
|
10558
|
-
_this.showSpinner = false;
|
|
10559
10794
|
_this.next();
|
|
10560
10795
|
}, function (error) {
|
|
10561
10796
|
_this.showSpinner = false;
|
|
@@ -10566,10 +10801,11 @@
|
|
|
10566
10801
|
CaseEditPageComponent.setFocusToTop();
|
|
10567
10802
|
};
|
|
10568
10803
|
CaseEditPageComponent.prototype.updateFormData = function (jsonData) {
|
|
10569
|
-
var e_1,
|
|
10804
|
+
var e_1, _c;
|
|
10570
10805
|
try {
|
|
10571
|
-
for (var
|
|
10572
|
-
var caseFieldId =
|
|
10806
|
+
for (var _d = __values(Object.keys(jsonData.data)), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
10807
|
+
var caseFieldId = _e.value;
|
|
10808
|
+
/* istanbul ignore else */
|
|
10573
10809
|
if (this.pageWithFieldExists(caseFieldId)) {
|
|
10574
10810
|
this.updateEventTriggerCaseFields(caseFieldId, jsonData, this.caseEdit.eventTrigger);
|
|
10575
10811
|
this.updateFormControlsValue(this.editForm, caseFieldId, jsonData.data[caseFieldId]);
|
|
@@ -10579,7 +10815,7 @@
|
|
|
10579
10815
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
10580
10816
|
finally {
|
|
10581
10817
|
try {
|
|
10582
|
-
if (
|
|
10818
|
+
if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
|
|
10583
10819
|
}
|
|
10584
10820
|
finally { if (e_1) throw e_1.error; }
|
|
10585
10821
|
}
|
|
@@ -10589,12 +10825,36 @@
|
|
|
10589
10825
|
return this.wizard.findWizardPage(caseFieldId);
|
|
10590
10826
|
};
|
|
10591
10827
|
CaseEditPageComponent.prototype.updateEventTriggerCaseFields = function (caseFieldId, jsonData, eventTrigger) {
|
|
10592
|
-
|
|
10828
|
+
var _this = this;
|
|
10829
|
+
/* istanbul ignore else */
|
|
10830
|
+
if (eventTrigger === null || eventTrigger === void 0 ? void 0 : eventTrigger.case_fields) {
|
|
10593
10831
|
eventTrigger.case_fields
|
|
10594
10832
|
.filter(function (element) { return element.id === caseFieldId; })
|
|
10595
|
-
.forEach(function (element) {
|
|
10833
|
+
.forEach(function (element) {
|
|
10834
|
+
if (_this.isAnObject(element.value)) {
|
|
10835
|
+
var updatedJsonDataObject = _this.updateJsonDataObject(caseFieldId, jsonData, element);
|
|
10836
|
+
element.value = Object.assign(Object.assign({}, element.value), updatedJsonDataObject);
|
|
10837
|
+
}
|
|
10838
|
+
else {
|
|
10839
|
+
element.value = jsonData.data[caseFieldId];
|
|
10840
|
+
}
|
|
10841
|
+
});
|
|
10596
10842
|
}
|
|
10597
10843
|
};
|
|
10844
|
+
CaseEditPageComponent.prototype.updateJsonDataObject = function (caseFieldId, jsonData, element) {
|
|
10845
|
+
var _this = this;
|
|
10846
|
+
return Object.keys(jsonData.data[caseFieldId]).reduce(function (acc, key) {
|
|
10847
|
+
var _c;
|
|
10848
|
+
var elementValue = element.value[key];
|
|
10849
|
+
var jsonDataValue = jsonData.data[caseFieldId][key];
|
|
10850
|
+
var hasElementGotValueProperty = _this.isAnObject(elementValue) && elementValue.value !== undefined;
|
|
10851
|
+
var jsonDataOrElementValue = (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== null && (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== undefined ? jsonDataValue : elementValue;
|
|
10852
|
+
return Object.assign(Object.assign({}, acc), (_c = {}, _c["" + key] = hasElementGotValueProperty ? jsonDataOrElementValue : jsonDataValue, _c));
|
|
10853
|
+
}, {});
|
|
10854
|
+
};
|
|
10855
|
+
CaseEditPageComponent.prototype.isAnObject = function (property) {
|
|
10856
|
+
return typeof property === 'object' && !Array.isArray(property) && property !== null;
|
|
10857
|
+
};
|
|
10598
10858
|
CaseEditPageComponent.prototype.updateFormControlsValue = function (formGroup, caseFieldId, value) {
|
|
10599
10859
|
var theControl = formGroup.controls['data'].get(caseFieldId);
|
|
10600
10860
|
if (theControl && theControl['status'] !== 'DISABLED') {
|
|
@@ -10610,12 +10870,15 @@
|
|
|
10610
10870
|
}
|
|
10611
10871
|
};
|
|
10612
10872
|
CaseEditPageComponent.prototype.callbackErrorsNotify = function (errorContext) {
|
|
10613
|
-
this.ignoreWarning = errorContext.ignore_warning;
|
|
10873
|
+
this.caseEdit.ignoreWarning = errorContext.ignore_warning;
|
|
10614
10874
|
this.triggerText = errorContext.trigger_text;
|
|
10615
10875
|
};
|
|
10616
10876
|
CaseEditPageComponent.prototype.next = function () {
|
|
10877
|
+
if (this.canNavigateToSummaryPage()) {
|
|
10878
|
+
this.showSpinner = false;
|
|
10879
|
+
this.caseEdit.isSubmitting = false;
|
|
10880
|
+
}
|
|
10617
10881
|
this.resetErrors();
|
|
10618
|
-
this.isSubmitting = false;
|
|
10619
10882
|
this.formValuesChanged = false;
|
|
10620
10883
|
this.pageChangeSubject.next(true);
|
|
10621
10884
|
return this.caseEdit.next(this.currentPage.id);
|
|
@@ -10659,7 +10922,7 @@
|
|
|
10659
10922
|
}
|
|
10660
10923
|
};
|
|
10661
10924
|
CaseEditPageComponent.prototype.submitting = function () {
|
|
10662
|
-
return this.isSubmitting;
|
|
10925
|
+
return this.caseEdit.isSubmitting;
|
|
10663
10926
|
};
|
|
10664
10927
|
CaseEditPageComponent.prototype.getCaseId = function () {
|
|
10665
10928
|
return (this.caseEdit.caseDetails ? this.caseEdit.caseDetails.case_id : '');
|
|
@@ -10671,10 +10934,23 @@
|
|
|
10671
10934
|
CaseEditPageComponent.prototype.getCancelText = function () {
|
|
10672
10935
|
return this.eventTrigger.can_save_draft ? 'Return to case list' : 'Cancel';
|
|
10673
10936
|
};
|
|
10937
|
+
CaseEditPageComponent.prototype.canNavigateToSummaryPage = function () {
|
|
10938
|
+
var _a;
|
|
10939
|
+
var nextPage = this.caseEdit.getNextPage({
|
|
10940
|
+
currentPageId: (_a = this.currentPage) === null || _a === void 0 ? void 0 : _a.id,
|
|
10941
|
+
wizard: this.wizard,
|
|
10942
|
+
eventTrigger: this.eventTrigger,
|
|
10943
|
+
form: this.editForm
|
|
10944
|
+
});
|
|
10945
|
+
return this.eventTrigger.show_summary || !!nextPage;
|
|
10946
|
+
};
|
|
10674
10947
|
CaseEditPageComponent.prototype.getTriggerText = function () {
|
|
10675
|
-
|
|
10948
|
+
var textBasedOnCanSaveDraft = this.eventTrigger && this.eventTrigger.can_save_draft
|
|
10676
10949
|
? CaseEditPageComponent.TRIGGER_TEXT_SAVE
|
|
10677
10950
|
: CaseEditPageComponent.TRIGGER_TEXT_START;
|
|
10951
|
+
return this.canNavigateToSummaryPage()
|
|
10952
|
+
? textBasedOnCanSaveDraft
|
|
10953
|
+
: 'Submit';
|
|
10678
10954
|
};
|
|
10679
10955
|
CaseEditPageComponent.prototype.discard = function () {
|
|
10680
10956
|
if (this.route.snapshot.queryParamMap.get(CaseEditComponent.ORIGIN_QUERY_PARAM) === 'viewDraft') {
|
|
@@ -10685,26 +10961,29 @@
|
|
|
10685
10961
|
}
|
|
10686
10962
|
};
|
|
10687
10963
|
CaseEditPageComponent.prototype.handleError = function (error) {
|
|
10688
|
-
|
|
10689
|
-
this.
|
|
10690
|
-
this.
|
|
10691
|
-
|
|
10964
|
+
var _a, _b;
|
|
10965
|
+
this.caseEdit.isSubmitting = false;
|
|
10966
|
+
this.caseEdit.error = error;
|
|
10967
|
+
this.caseEdit.callbackErrorsSubject.next(this.caseEdit.error);
|
|
10968
|
+
this.callbackErrorsSubject.next(this.caseEdit.error);
|
|
10969
|
+
/* istanbul ignore else */
|
|
10970
|
+
if (this.caseEdit.error.details) {
|
|
10692
10971
|
this.formErrorService
|
|
10693
|
-
.mapFieldErrors(this.error.details.field_errors, this.editForm.controls['data'], 'validation');
|
|
10972
|
+
.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');
|
|
10694
10973
|
}
|
|
10695
10974
|
};
|
|
10696
10975
|
CaseEditPageComponent.prototype.resetErrors = function () {
|
|
10697
|
-
this.error = null;
|
|
10698
|
-
this.ignoreWarning = false;
|
|
10976
|
+
this.caseEdit.error = null;
|
|
10977
|
+
this.caseEdit.ignoreWarning = false;
|
|
10699
10978
|
this.triggerText = this.getTriggerText();
|
|
10700
|
-
this.callbackErrorsSubject.next(null);
|
|
10979
|
+
this.caseEdit.callbackErrorsSubject.next(null);
|
|
10701
10980
|
};
|
|
10702
10981
|
CaseEditPageComponent.prototype.saveDraft = function () {
|
|
10703
10982
|
var _this = this;
|
|
10704
10983
|
if (this.eventTrigger.can_save_draft) {
|
|
10705
10984
|
var draftCaseEventData = this.formValueService.sanitise(this.editForm.value);
|
|
10706
10985
|
draftCaseEventData.event_token = this.eventTrigger.event_token;
|
|
10707
|
-
draftCaseEventData.ignore_warning = this.ignoreWarning;
|
|
10986
|
+
draftCaseEventData.ignore_warning = this.caseEdit.ignoreWarning;
|
|
10708
10987
|
this.caseEdit.saveDraft(draftCaseEventData).subscribe(function (draft) { return _this.eventTrigger.case_id = DRAFT_PREFIX + draft.id; }, function (error) { return _this.handleError(error); });
|
|
10709
10988
|
}
|
|
10710
10989
|
};
|
|
@@ -10737,7 +11016,7 @@
|
|
|
10737
11016
|
pageEventData.event_data = formEventData.data;
|
|
10738
11017
|
// Finalise the CaseEventData object.
|
|
10739
11018
|
pageEventData.event_token = this.eventTrigger.event_token;
|
|
10740
|
-
pageEventData.ignore_warning = this.ignoreWarning;
|
|
11019
|
+
pageEventData.ignore_warning = this.caseEdit.ignoreWarning;
|
|
10741
11020
|
// Finally, try to set up the case_reference.
|
|
10742
11021
|
if (this.caseEdit.caseDetails) {
|
|
10743
11022
|
pageEventData.case_reference = this.caseEdit.caseDetails.case_id;
|
|
@@ -10777,6 +11056,15 @@
|
|
|
10777
11056
|
next: function (validationErrors) { return _this.validationErrors = validationErrors; }
|
|
10778
11057
|
});
|
|
10779
11058
|
};
|
|
11059
|
+
CaseEditPageComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
|
|
11060
|
+
this.caseEdit.onEventCanBeCompleted({
|
|
11061
|
+
eventTrigger: this.eventTrigger,
|
|
11062
|
+
eventCanBeCompleted: eventCanBeCompleted,
|
|
11063
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
11064
|
+
form: this.editForm,
|
|
11065
|
+
submit: this.caseEdit.submit,
|
|
11066
|
+
});
|
|
11067
|
+
};
|
|
10780
11068
|
return CaseEditPageComponent;
|
|
10781
11069
|
}());
|
|
10782
11070
|
CaseEditPageComponent.RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
|
|
@@ -10787,7 +11075,7 @@
|
|
|
10787
11075
|
CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
|
|
10788
11076
|
CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
|
|
10789
11077
|
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)); };
|
|
10790
|
-
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"], [
|
|
11078
|
+
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) {
|
|
10791
11079
|
if (rf & 1) {
|
|
10792
11080
|
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
|
|
10793
11081
|
i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_Template, 3, 2, "ng-container", 0);
|
|
@@ -10795,14 +11083,14 @@
|
|
|
10795
11083
|
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_ng_template_3_Template, 2, 5, "ng-template", null, 2, i0__namespace.ɵɵtemplateRefExtractor);
|
|
10796
11084
|
i0__namespace.ɵɵtemplate(5, CaseEditPageComponent_ng_template_5_Template, 1, 1, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
|
|
10797
11085
|
i0__namespace.ɵɵtemplate(7, CaseEditPageComponent_div_7_Template, 4, 1, "div", 4);
|
|
10798
|
-
i0__namespace.ɵɵ
|
|
10799
|
-
i0__namespace.ɵɵ
|
|
10800
|
-
i0__namespace.ɵɵ
|
|
10801
|
-
i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
11086
|
+
i0__namespace.ɵɵelement(8, "ccd-case-edit-generic-errors", 5);
|
|
11087
|
+
i0__namespace.ɵɵelementStart(9, "ccd-callback-errors", 6);
|
|
11088
|
+
i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_9_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
10802
11089
|
i0__namespace.ɵɵelementEnd();
|
|
10803
|
-
i0__namespace.ɵɵelementStart(
|
|
10804
|
-
i0__namespace.ɵɵtemplate(
|
|
11090
|
+
i0__namespace.ɵɵelementStart(10, "div", 7);
|
|
11091
|
+
i0__namespace.ɵɵtemplate(11, CaseEditPageComponent_form_11_Template, 14, 9, "form", 8);
|
|
10805
11092
|
i0__namespace.ɵɵelementEnd();
|
|
11093
|
+
i0__namespace.ɵɵtemplate(12, CaseEditPageComponent_ccd_case_event_completion_12_Template, 1, 1, "ccd-case-event-completion", 9);
|
|
10806
11094
|
}
|
|
10807
11095
|
if (rf & 2) {
|
|
10808
11096
|
var _r3 = i0__namespace.ɵɵreference(4);
|
|
@@ -10815,13 +11103,13 @@
|
|
|
10815
11103
|
i0__namespace.ɵɵadvance(5);
|
|
10816
11104
|
i0__namespace.ɵɵproperty("ngIf", ctx.validationErrors.length > 0);
|
|
10817
11105
|
i0__namespace.ɵɵadvance(1);
|
|
10818
|
-
i0__namespace.ɵɵproperty("
|
|
10819
|
-
i0__namespace.ɵɵadvance(1);
|
|
10820
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.error && ctx.error.details);
|
|
11106
|
+
i0__namespace.ɵɵproperty("error", ctx.caseEdit.error);
|
|
10821
11107
|
i0__namespace.ɵɵadvance(1);
|
|
10822
|
-
i0__namespace.ɵɵproperty("triggerTextContinue", ctx.triggerTextStart)("triggerTextIgnore", ctx.triggerTextIgnoreWarnings)("callbackErrorsSubject", ctx.callbackErrorsSubject);
|
|
11108
|
+
i0__namespace.ɵɵproperty("triggerTextContinue", ctx.triggerTextStart)("triggerTextIgnore", ctx.triggerTextIgnoreWarnings)("callbackErrorsSubject", ctx.caseEdit.callbackErrorsSubject);
|
|
10823
11109
|
i0__namespace.ɵɵadvance(2);
|
|
10824
11110
|
i0__namespace.ɵɵproperty("ngIf", ctx.currentPage);
|
|
11111
|
+
i0__namespace.ɵɵadvance(1);
|
|
11112
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
|
|
10825
11113
|
}
|
|
10826
11114
|
}, styles: [".rightBorderSeparator[_ngcontent-%COMP%]{border-right:4px solid #ffcc02}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
|
|
10827
11115
|
(function () {
|
|
@@ -10939,11 +11227,6 @@
|
|
|
10939
11227
|
}
|
|
10940
11228
|
});
|
|
10941
11229
|
};
|
|
10942
|
-
CallbackErrorsComponent.prototype.ngOnDestroy = function () {
|
|
10943
|
-
if (this.callbackErrorsSubject) {
|
|
10944
|
-
this.callbackErrorsSubject.unsubscribe();
|
|
10945
|
-
}
|
|
10946
|
-
};
|
|
10947
11230
|
CallbackErrorsComponent.prototype.hasErrors = function () {
|
|
10948
11231
|
return this.error
|
|
10949
11232
|
&& this.error.callbackErrors
|
|
@@ -11337,56 +11620,93 @@
|
|
|
11337
11620
|
DisplayContextCustomParameter["LinkedCases"] = "LinkedCases";
|
|
11338
11621
|
})(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
|
|
11339
11622
|
|
|
11340
|
-
function
|
|
11623
|
+
function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) {
|
|
11341
11624
|
if (rf & 1) {
|
|
11342
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
11343
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
11625
|
+
i0__namespace.ɵɵelementStart(0, "li");
|
|
11626
|
+
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
11627
|
+
i0__namespace.ɵɵtext(2);
|
|
11628
|
+
i0__namespace.ɵɵelementEnd();
|
|
11629
|
+
i0__namespace.ɵɵelementEnd();
|
|
11630
|
+
}
|
|
11631
|
+
if (rf & 2) {
|
|
11632
|
+
var errorMessage_r4 = ctx.$implicit;
|
|
11633
|
+
i0__namespace.ɵɵadvance(2);
|
|
11634
|
+
i0__namespace.ɵɵtextInterpolate(errorMessage_r4);
|
|
11635
|
+
}
|
|
11636
|
+
}
|
|
11637
|
+
function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) {
|
|
11638
|
+
if (rf & 1) {
|
|
11639
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
11640
|
+
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
11641
|
+
i0__namespace.ɵɵelementStart(2, "div", 3);
|
|
11642
|
+
i0__namespace.ɵɵelementStart(3, "h2", 4);
|
|
11643
|
+
i0__namespace.ɵɵtext(4, " There is a problem ");
|
|
11644
|
+
i0__namespace.ɵɵelementEnd();
|
|
11645
|
+
i0__namespace.ɵɵelementStart(5, "div", 5);
|
|
11646
|
+
i0__namespace.ɵɵelementStart(6, "ul", 6);
|
|
11647
|
+
i0__namespace.ɵɵtemplate(7, CaseFileViewFieldComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
|
|
11648
|
+
i0__namespace.ɵɵelementEnd();
|
|
11649
|
+
i0__namespace.ɵɵelementEnd();
|
|
11650
|
+
i0__namespace.ɵɵelementEnd();
|
|
11651
|
+
i0__namespace.ɵɵelementEnd();
|
|
11652
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
11653
|
+
}
|
|
11654
|
+
if (rf & 2) {
|
|
11655
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
11656
|
+
i0__namespace.ɵɵadvance(7);
|
|
11657
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
11658
|
+
}
|
|
11659
|
+
}
|
|
11660
|
+
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
11661
|
+
if (rf & 1) {
|
|
11662
|
+
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
11663
|
+
i0__namespace.ɵɵelementStart(1, "h1", 10);
|
|
11344
11664
|
i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
11345
11665
|
i0__namespace.ɵɵelementEnd();
|
|
11346
|
-
i0__namespace.ɵɵelementStart(3, "p",
|
|
11666
|
+
i0__namespace.ɵɵelementStart(3, "p", 11);
|
|
11347
11667
|
i0__namespace.ɵɵtext(4, "Try again later.");
|
|
11348
11668
|
i0__namespace.ɵɵelementEnd();
|
|
11349
11669
|
i0__namespace.ɵɵelementEnd();
|
|
11350
11670
|
}
|
|
11351
11671
|
}
|
|
11352
|
-
function
|
|
11672
|
+
function CaseFileViewFieldComponent_div_2_ng_container_8_Template(rf, ctx) {
|
|
11353
11673
|
if (rf & 1) {
|
|
11354
11674
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
11355
|
-
i0__namespace.ɵɵelement(1, "mv-media-viewer",
|
|
11675
|
+
i0__namespace.ɵɵelement(1, "mv-media-viewer", 18);
|
|
11356
11676
|
i0__namespace.ɵɵelementContainerEnd();
|
|
11357
11677
|
}
|
|
11358
11678
|
if (rf & 2) {
|
|
11359
|
-
var
|
|
11679
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
11360
11680
|
i0__namespace.ɵɵadvance(1);
|
|
11361
|
-
i0__namespace.ɵɵproperty("url",
|
|
11681
|
+
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");
|
|
11362
11682
|
}
|
|
11363
11683
|
}
|
|
11364
|
-
function
|
|
11684
|
+
function CaseFileViewFieldComponent_div_2_Template(rf, ctx) {
|
|
11365
11685
|
if (rf & 1) {
|
|
11366
|
-
var
|
|
11686
|
+
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11367
11687
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
11368
|
-
i0__namespace.ɵɵelementStart(1, "h2",
|
|
11688
|
+
i0__namespace.ɵɵelementStart(1, "h2", 12);
|
|
11369
11689
|
i0__namespace.ɵɵtext(2, "Case file");
|
|
11370
11690
|
i0__namespace.ɵɵelementEnd();
|
|
11371
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
11372
|
-
i0__namespace.ɵɵelementStart(4, "div",
|
|
11373
|
-
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder",
|
|
11374
|
-
i0__namespace.ɵɵlistener("clickedDocument", function
|
|
11691
|
+
i0__namespace.ɵɵelementStart(3, "div", 13);
|
|
11692
|
+
i0__namespace.ɵɵelementStart(4, "div", 14);
|
|
11693
|
+
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 15);
|
|
11694
|
+
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); });
|
|
11375
11695
|
i0__namespace.ɵɵelementEnd();
|
|
11376
11696
|
i0__namespace.ɵɵelementEnd();
|
|
11377
|
-
i0__namespace.ɵɵelement(6, "div",
|
|
11378
|
-
i0__namespace.ɵɵelementStart(7, "div",
|
|
11379
|
-
i0__namespace.ɵɵtemplate(8,
|
|
11697
|
+
i0__namespace.ɵɵelement(6, "div", 16);
|
|
11698
|
+
i0__namespace.ɵɵelementStart(7, "div", 17);
|
|
11699
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 7, "ng-container", 0);
|
|
11380
11700
|
i0__namespace.ɵɵelementEnd();
|
|
11381
11701
|
i0__namespace.ɵɵelementEnd();
|
|
11382
11702
|
i0__namespace.ɵɵelementEnd();
|
|
11383
11703
|
}
|
|
11384
11704
|
if (rf & 2) {
|
|
11385
|
-
var
|
|
11705
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
11386
11706
|
i0__namespace.ɵɵadvance(5);
|
|
11387
|
-
i0__namespace.ɵɵproperty("categoriesAndDocuments",
|
|
11707
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r2.categoriesAndDocuments$)("allowMoving", ctx_r2.allowMoving);
|
|
11388
11708
|
i0__namespace.ɵɵadvance(3);
|
|
11389
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
11709
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.currentDocument);
|
|
11390
11710
|
}
|
|
11391
11711
|
}
|
|
11392
11712
|
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
@@ -11399,6 +11719,7 @@
|
|
|
11399
11719
|
this.sessionStorageService = sessionStorageService;
|
|
11400
11720
|
this.allowMoving = true;
|
|
11401
11721
|
this.getCategoriesAndDocumentsError = false;
|
|
11722
|
+
this.errorMessages = [];
|
|
11402
11723
|
}
|
|
11403
11724
|
CaseFileViewFieldComponent.prototype.ngOnInit = function () {
|
|
11404
11725
|
var _this = this;
|
|
@@ -11450,11 +11771,26 @@
|
|
|
11450
11771
|
var _this = this;
|
|
11451
11772
|
var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
11452
11773
|
var loadingToken = this.loadingService.register();
|
|
11453
|
-
this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory)
|
|
11454
|
-
|
|
11774
|
+
this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory)
|
|
11775
|
+
.pipe(operators.finalize(function () {
|
|
11455
11776
|
_this.loadingService.unregister(loadingToken);
|
|
11777
|
+
}), operators.catchError(function () {
|
|
11778
|
+
_this.errorMessages = ['You do not have permission to move this document to the selected folder.'];
|
|
11779
|
+
return rxjs.of(null);
|
|
11780
|
+
}))
|
|
11781
|
+
.subscribe(function (res) {
|
|
11782
|
+
if (res) {
|
|
11783
|
+
_this.resetErrorMessages();
|
|
11784
|
+
_this.reloadPage();
|
|
11785
|
+
}
|
|
11456
11786
|
});
|
|
11457
11787
|
};
|
|
11788
|
+
CaseFileViewFieldComponent.prototype.reloadPage = function () {
|
|
11789
|
+
location.reload();
|
|
11790
|
+
};
|
|
11791
|
+
CaseFileViewFieldComponent.prototype.resetErrorMessages = function () {
|
|
11792
|
+
this.errorMessages = [];
|
|
11793
|
+
};
|
|
11458
11794
|
CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
|
|
11459
11795
|
if (this.categoriesAndDocumentsSubscription) {
|
|
11460
11796
|
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
@@ -11464,12 +11800,15 @@
|
|
|
11464
11800
|
}());
|
|
11465
11801
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
11466
11802
|
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)); };
|
|
11467
|
-
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls:
|
|
11803
|
+
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) {
|
|
11468
11804
|
if (rf & 1) {
|
|
11469
|
-
i0__namespace.ɵɵtemplate(0,
|
|
11470
|
-
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template,
|
|
11805
|
+
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_ng_container_0_Template, 8, 1, "ng-container", 0);
|
|
11806
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 5, 0, "div", 1);
|
|
11807
|
+
i0__namespace.ɵɵtemplate(2, CaseFileViewFieldComponent_div_2_Template, 9, 3, "div", 0);
|
|
11471
11808
|
}
|
|
11472
11809
|
if (rf & 2) {
|
|
11810
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
|
|
11811
|
+
i0__namespace.ɵɵadvance(1);
|
|
11473
11812
|
i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
11474
11813
|
i0__namespace.ɵɵadvance(1);
|
|
11475
11814
|
i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
@@ -15172,12 +15511,11 @@
|
|
|
15172
15511
|
}
|
|
15173
15512
|
var WriteJudicialUserFieldComponent = /** @class */ (function (_super) {
|
|
15174
15513
|
__extends(WriteJudicialUserFieldComponent, _super);
|
|
15175
|
-
function WriteJudicialUserFieldComponent(
|
|
15514
|
+
function WriteJudicialUserFieldComponent(jurisdictionService, sessionStorageService, caseFlagRefDataService) {
|
|
15176
15515
|
var _this = _super.call(this) || this;
|
|
15177
|
-
_this.route = route;
|
|
15178
|
-
_this.cd = cd;
|
|
15179
15516
|
_this.jurisdictionService = jurisdictionService;
|
|
15180
|
-
_this.
|
|
15517
|
+
_this.sessionStorageService = sessionStorageService;
|
|
15518
|
+
_this.caseFlagRefDataService = caseFlagRefDataService;
|
|
15181
15519
|
_this.MINIMUM_SEARCH_CHARACTERS = 2;
|
|
15182
15520
|
_this.IDAM_ID = 'idamId';
|
|
15183
15521
|
_this.PERSONAL_CODE = 'personalCode';
|
|
@@ -15187,18 +15525,46 @@
|
|
|
15187
15525
|
}
|
|
15188
15526
|
WriteJudicialUserFieldComponent.prototype.ngOnInit = function () {
|
|
15189
15527
|
var _this = this;
|
|
15190
|
-
|
|
15528
|
+
var _a;
|
|
15191
15529
|
this.judicialUserFormGroup = this.registerControl(new i2.FormGroup({}), true);
|
|
15192
15530
|
this.idamIdFormControl = new i2.FormControl('');
|
|
15193
15531
|
this.judicialUserFormGroup.addControl(this.IDAM_ID, this.idamIdFormControl);
|
|
15194
15532
|
this.personalCodeFormControl = new i2.FormControl('');
|
|
15195
15533
|
this.judicialUserFormGroup.addControl(this.PERSONAL_CODE, this.personalCodeFormControl);
|
|
15196
|
-
this.
|
|
15534
|
+
this.setJurisdictionAndCaseType();
|
|
15535
|
+
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) {
|
|
15197
15536
|
_this.filteredJudicialUsers = judicialUsers;
|
|
15198
15537
|
});
|
|
15538
|
+
if ((_a = this.caseField.value) === null || _a === void 0 ? void 0 : _a.personalCode) {
|
|
15539
|
+
this.loadJudicialUser(this.caseField.value.personalCode);
|
|
15540
|
+
}
|
|
15541
|
+
};
|
|
15542
|
+
WriteJudicialUserFieldComponent.prototype.filterJudicialUsers = function (searchTerm) {
|
|
15543
|
+
var _this = this;
|
|
15544
|
+
return this.caseFlagRefDataService.getHmctsServiceDetailsByCaseType(this.caseType).pipe(
|
|
15545
|
+
// If an error occurs retrieving HMCTS service details by case type ID, try by service name instead
|
|
15546
|
+
operators.catchError(function (_) { return _this.caseFlagRefDataService.getHmctsServiceDetailsByServiceName(_this.jurisdiction); }),
|
|
15547
|
+
// Use switchMap to return an inner Observable of the flag types data, having received the service details
|
|
15548
|
+
// including service_code. This avoids having nested `subscribe`s, which is an anti-pattern!
|
|
15549
|
+
operators.switchMap(function (serviceDetails) { return _this.jurisdictionService.searchJudicialUsers(searchTerm, serviceDetails[0].service_code); }));
|
|
15550
|
+
};
|
|
15551
|
+
WriteJudicialUserFieldComponent.prototype.loadJudicialUser = function (personalCode) {
|
|
15552
|
+
var _this = this;
|
|
15553
|
+
if (personalCode) {
|
|
15554
|
+
this.jurisdictionService.searchJudicialUsersByPersonalCodes([personalCode]).subscribe(function (judicialUsers) {
|
|
15555
|
+
var judicialUser = judicialUsers[0];
|
|
15556
|
+
_this.idamIdFormControl.setValue(judicialUser.fullName + " (" + judicialUser.emailId + ")");
|
|
15557
|
+
_this.personalCodeFormControl.setValue(judicialUser.personalCode);
|
|
15558
|
+
});
|
|
15559
|
+
}
|
|
15199
15560
|
};
|
|
15200
|
-
WriteJudicialUserFieldComponent.prototype.
|
|
15201
|
-
|
|
15561
|
+
WriteJudicialUserFieldComponent.prototype.setJurisdictionAndCaseType = function () {
|
|
15562
|
+
var caseInfoStr = this.sessionStorageService.getItem('caseInfo');
|
|
15563
|
+
if (caseInfoStr) {
|
|
15564
|
+
var caseInfo = JSON.parse(caseInfoStr);
|
|
15565
|
+
this.jurisdiction = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.jurisdiction;
|
|
15566
|
+
this.caseType = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.caseType;
|
|
15567
|
+
}
|
|
15202
15568
|
};
|
|
15203
15569
|
WriteJudicialUserFieldComponent.prototype.onSelectionChange = function (judicialUser) {
|
|
15204
15570
|
this.idamIdFormControl.setValue(judicialUser.fullName + " (" + judicialUser.emailId + ")");
|
|
@@ -15211,7 +15577,7 @@
|
|
|
15211
15577
|
};
|
|
15212
15578
|
return WriteJudicialUserFieldComponent;
|
|
15213
15579
|
}(AbstractFieldWriteComponent));
|
|
15214
|
-
WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
15580
|
+
WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(JurisdictionService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
|
|
15215
15581
|
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) {
|
|
15216
15582
|
if (rf & 1) {
|
|
15217
15583
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -15242,7 +15608,7 @@
|
|
|
15242
15608
|
i0__namespace.ɵɵadvance(1);
|
|
15243
15609
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.filteredJudicialUsers == null ? null : ctx.filteredJudicialUsers.length) && ctx.showAutocomplete);
|
|
15244
15610
|
}
|
|
15245
|
-
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor,
|
|
15611
|
+
}, 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}"] });
|
|
15246
15612
|
(function () {
|
|
15247
15613
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
|
|
15248
15614
|
type: i0.Component,
|
|
@@ -15251,7 +15617,7 @@
|
|
|
15251
15617
|
styleUrls: ['./write-judicial-user-field.component.scss'],
|
|
15252
15618
|
templateUrl: './write-judicial-user-field.component.html'
|
|
15253
15619
|
}]
|
|
15254
|
-
}], function () { return [{ type:
|
|
15620
|
+
}], function () { return [{ type: JurisdictionService }, { type: SessionStorageService }, { type: CaseFlagRefdataService }]; }, null);
|
|
15255
15621
|
})();
|
|
15256
15622
|
|
|
15257
15623
|
var LabelFieldComponent = /** @class */ (function () {
|
|
@@ -15566,7 +15932,9 @@
|
|
|
15566
15932
|
});
|
|
15567
15933
|
};
|
|
15568
15934
|
BeforeYouStartComponent.prototype.onBack = function () {
|
|
15569
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]
|
|
15935
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(function () {
|
|
15936
|
+
window.location.hash = 'Linked cases';
|
|
15937
|
+
});
|
|
15570
15938
|
};
|
|
15571
15939
|
return BeforeYouStartComponent;
|
|
15572
15940
|
}());
|
|
@@ -17057,7 +17425,9 @@
|
|
|
17057
17425
|
this.serverLinkedApiError = this.linkedCasesService.serverLinkedApiError;
|
|
17058
17426
|
};
|
|
17059
17427
|
NoLinkedCasesComponent.prototype.onBack = function () {
|
|
17060
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]
|
|
17428
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(function () {
|
|
17429
|
+
window.location.hash = 'Linked cases';
|
|
17430
|
+
});
|
|
17061
17431
|
};
|
|
17062
17432
|
return NoLinkedCasesComponent;
|
|
17063
17433
|
}());
|
|
@@ -17522,7 +17892,9 @@
|
|
|
17522
17892
|
}
|
|
17523
17893
|
};
|
|
17524
17894
|
ReadLinkedCasesFieldComponent.prototype.reloadCurrentRoute = function () {
|
|
17525
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]
|
|
17895
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]).then(function () {
|
|
17896
|
+
window.location.hash = 'Linked cases';
|
|
17897
|
+
});
|
|
17526
17898
|
};
|
|
17527
17899
|
ReadLinkedCasesFieldComponent.prototype.getFailureLinkedToNotification = function (evt) {
|
|
17528
17900
|
this.isServerLinkedToError = true;
|
|
@@ -20694,7 +21066,7 @@
|
|
|
20694
21066
|
i0__namespace.ɵɵadvance(4);
|
|
20695
21067
|
i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
20696
21068
|
}
|
|
20697
|
-
}, 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:-
|
|
21069
|
+
}, 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}"] });
|
|
20698
21070
|
(function () {
|
|
20699
21071
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
20700
21072
|
type: i0.Component,
|
|
@@ -21307,21 +21679,21 @@
|
|
|
21307
21679
|
i0__namespace.ɵɵelementEnd();
|
|
21308
21680
|
}
|
|
21309
21681
|
}
|
|
21310
|
-
function
|
|
21682
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
|
|
21311
21683
|
if (rf & 1) {
|
|
21312
21684
|
i0__namespace.ɵɵelementStart(0, "strong", 19);
|
|
21313
21685
|
i0__namespace.ɵɵtext(1, "Active");
|
|
21314
21686
|
i0__namespace.ɵɵelementEnd();
|
|
21315
21687
|
}
|
|
21316
21688
|
}
|
|
21317
|
-
function
|
|
21689
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template(rf, ctx) {
|
|
21318
21690
|
if (rf & 1) {
|
|
21319
21691
|
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
21320
21692
|
i0__namespace.ɵɵtext(1, "Inactive");
|
|
21321
21693
|
i0__namespace.ɵɵelementEnd();
|
|
21322
21694
|
}
|
|
21323
21695
|
}
|
|
21324
|
-
function
|
|
21696
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_19_Template(rf, ctx) {
|
|
21325
21697
|
if (rf & 1) {
|
|
21326
21698
|
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
21327
21699
|
i0__namespace.ɵɵtext(1, "Requested");
|
|
@@ -21338,22 +21710,25 @@
|
|
|
21338
21710
|
i0__namespace.ɵɵelementStart(4, "div");
|
|
21339
21711
|
i0__namespace.ɵɵtext(5);
|
|
21340
21712
|
i0__namespace.ɵɵelementEnd();
|
|
21341
|
-
i0__namespace.ɵɵ
|
|
21342
|
-
i0__namespace.ɵɵelementStart(6, "td", 16);
|
|
21713
|
+
i0__namespace.ɵɵelementStart(6, "div");
|
|
21343
21714
|
i0__namespace.ɵɵtext(7);
|
|
21344
21715
|
i0__namespace.ɵɵelementEnd();
|
|
21716
|
+
i0__namespace.ɵɵelementEnd();
|
|
21345
21717
|
i0__namespace.ɵɵelementStart(8, "td", 16);
|
|
21346
21718
|
i0__namespace.ɵɵtext(9);
|
|
21347
|
-
i0__namespace.ɵɵpipe(10, "date");
|
|
21348
21719
|
i0__namespace.ɵɵelementEnd();
|
|
21349
|
-
i0__namespace.ɵɵelementStart(
|
|
21350
|
-
i0__namespace.ɵɵtext(
|
|
21351
|
-
i0__namespace.ɵɵpipe(
|
|
21720
|
+
i0__namespace.ɵɵelementStart(10, "td", 16);
|
|
21721
|
+
i0__namespace.ɵɵtext(11);
|
|
21722
|
+
i0__namespace.ɵɵpipe(12, "date");
|
|
21723
|
+
i0__namespace.ɵɵelementEnd();
|
|
21724
|
+
i0__namespace.ɵɵelementStart(13, "td", 16);
|
|
21725
|
+
i0__namespace.ɵɵtext(14);
|
|
21726
|
+
i0__namespace.ɵɵpipe(15, "date");
|
|
21352
21727
|
i0__namespace.ɵɵelementEnd();
|
|
21353
|
-
i0__namespace.ɵɵelementStart(
|
|
21354
|
-
i0__namespace.ɵɵtemplate(
|
|
21355
|
-
i0__namespace.ɵɵtemplate(
|
|
21356
|
-
i0__namespace.ɵɵtemplate(
|
|
21728
|
+
i0__namespace.ɵɵelementStart(16, "td", 16);
|
|
21729
|
+
i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 17);
|
|
21730
|
+
i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template, 2, 0, "strong", 18);
|
|
21731
|
+
i0__namespace.ɵɵtemplate(19, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_19_Template, 2, 0, "strong", 18);
|
|
21357
21732
|
i0__namespace.ɵɵelementEnd();
|
|
21358
21733
|
i0__namespace.ɵɵelementEnd();
|
|
21359
21734
|
}
|
|
@@ -21365,11 +21740,13 @@
|
|
|
21365
21740
|
i0__namespace.ɵɵadvance(2);
|
|
21366
21741
|
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.otherDescription);
|
|
21367
21742
|
i0__namespace.ɵɵadvance(2);
|
|
21743
|
+
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.subTypeValue);
|
|
21744
|
+
i0__namespace.ɵɵadvance(2);
|
|
21368
21745
|
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
|
|
21369
21746
|
i0__namespace.ɵɵadvance(2);
|
|
21370
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(
|
|
21747
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(12, 9, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
|
|
21371
21748
|
i0__namespace.ɵɵadvance(3);
|
|
21372
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(
|
|
21749
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(15, 12, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
|
|
21373
21750
|
i0__namespace.ɵɵadvance(3);
|
|
21374
21751
|
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
|
|
21375
21752
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -21381,7 +21758,7 @@
|
|
|
21381
21758
|
function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
|
|
21382
21759
|
if (rf & 1) {
|
|
21383
21760
|
i0__namespace.ɵɵelementStart(0, "tbody", 10);
|
|
21384
|
-
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template,
|
|
21761
|
+
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 20, 15, "tr", 14);
|
|
21385
21762
|
i0__namespace.ɵɵelementEnd();
|
|
21386
21763
|
}
|
|
21387
21764
|
if (rf & 2) {
|
|
@@ -22044,7 +22421,7 @@
|
|
|
22044
22421
|
i0__namespace.ɵɵadvance(1);
|
|
22045
22422
|
i0__namespace.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
|
|
22046
22423
|
}
|
|
22047
|
-
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i3__namespace$1.MatInput, i2__namespace.DefaultValueAccessor,
|
|
22424
|
+
}, 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}"] });
|
|
22048
22425
|
(function () {
|
|
22049
22426
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
|
|
22050
22427
|
type: i0.Component,
|
|
@@ -23963,7 +24340,7 @@
|
|
|
23963
24340
|
};
|
|
23964
24341
|
return DatetimePickerComponent;
|
|
23965
24342
|
}(AbstractFormFieldComponent));
|
|
23966
|
-
DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4.NGX_MAT_DATE_FORMATS)); };
|
|
24343
|
+
DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4$1.NGX_MAT_DATE_FORMATS)); };
|
|
23967
24344
|
DatetimePickerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) {
|
|
23968
24345
|
if (rf & 1) {
|
|
23969
24346
|
i0__namespace.ɵɵviewQuery(_c0$i, 1);
|
|
@@ -23975,10 +24352,10 @@
|
|
|
23975
24352
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
23976
24353
|
}
|
|
23977
24354
|
}, inputs: { dateControl: "dateControl" }, features: [i0__namespace.ɵɵProvidersFeature([
|
|
23978
|
-
{ provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
23979
|
-
{ provide: i4.NgxMatDateAdapter,
|
|
24355
|
+
{ provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24356
|
+
{ provide: i4$1.NgxMatDateAdapter,
|
|
23980
24357
|
useClass: momentAdapter.NgxMatMomentAdapter,
|
|
23981
|
-
deps: [
|
|
24358
|
+
deps: [i5.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
23982
24359
|
},
|
|
23983
24360
|
{ provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
23984
24361
|
]), 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) {
|
|
@@ -24025,7 +24402,7 @@
|
|
|
24025
24402
|
i0__namespace.ɵɵadvance(1);
|
|
24026
24403
|
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);
|
|
24027
24404
|
}
|
|
24028
|
-
}, 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 });
|
|
24405
|
+
}, 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 });
|
|
24029
24406
|
(function () {
|
|
24030
24407
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimePickerComponent, [{
|
|
24031
24408
|
type: i0.Component,
|
|
@@ -24035,10 +24412,10 @@
|
|
|
24035
24412
|
styleUrls: ['./datetime-picker.component.scss'],
|
|
24036
24413
|
encapsulation: i0.ViewEncapsulation.None,
|
|
24037
24414
|
providers: [
|
|
24038
|
-
{ provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24039
|
-
{ provide: i4.NgxMatDateAdapter,
|
|
24415
|
+
{ provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24416
|
+
{ provide: i4$1.NgxMatDateAdapter,
|
|
24040
24417
|
useClass: momentAdapter.NgxMatMomentAdapter,
|
|
24041
|
-
deps: [
|
|
24418
|
+
deps: [i5.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
24042
24419
|
},
|
|
24043
24420
|
{ provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
24044
24421
|
]
|
|
@@ -24046,7 +24423,7 @@
|
|
|
24046
24423
|
}], function () {
|
|
24047
24424
|
return [{ type: FormatTranslatorService }, { type: undefined, decorators: [{
|
|
24048
24425
|
type: i0.Inject,
|
|
24049
|
-
args: [i4.NGX_MAT_DATE_FORMATS]
|
|
24426
|
+
args: [i4$1.NGX_MAT_DATE_FORMATS]
|
|
24050
24427
|
}] }];
|
|
24051
24428
|
}, { datetimePicker: [{
|
|
24052
24429
|
type: i0.ViewChild,
|
|
@@ -25673,7 +26050,7 @@
|
|
|
25673
26050
|
LinkedCasesService,
|
|
25674
26051
|
CommonDataService,
|
|
25675
26052
|
JurisdictionService,
|
|
25676
|
-
{ provide:
|
|
26053
|
+
{ provide: i5.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
25677
26054
|
], imports: [[
|
|
25678
26055
|
i1.CommonModule,
|
|
25679
26056
|
i1$1.RouterModule,
|
|
@@ -25690,13 +26067,13 @@
|
|
|
25690
26067
|
TabsModule,
|
|
25691
26068
|
LabelSubstitutorModule,
|
|
25692
26069
|
i1$5.NgxMdModule,
|
|
25693
|
-
i4.NgxMatDatetimePickerModule,
|
|
25694
|
-
i4.NgxMatTimepickerModule,
|
|
25695
|
-
i4.NgxMatNativeDateModule,
|
|
25696
|
-
i6
|
|
26070
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26071
|
+
i4$1.NgxMatTimepickerModule,
|
|
26072
|
+
i4$1.NgxMatNativeDateModule,
|
|
26073
|
+
i6.MatFormFieldModule,
|
|
25697
26074
|
i3$1.MatInputModule,
|
|
25698
26075
|
i5$1.MatDatepickerModule,
|
|
25699
|
-
|
|
26076
|
+
i4.MatAutocompleteModule,
|
|
25700
26077
|
i7.CdkTreeModule,
|
|
25701
26078
|
i1$4.OverlayModule,
|
|
25702
26079
|
i3.PaymentLibModule,
|
|
@@ -25704,9 +26081,9 @@
|
|
|
25704
26081
|
i1$3.MatDialogModule,
|
|
25705
26082
|
i11.MediaViewerModule,
|
|
25706
26083
|
LoadingModule
|
|
25707
|
-
], i4.NgxMatDatetimePickerModule,
|
|
25708
|
-
i4.NgxMatNativeDateModule,
|
|
25709
|
-
i4.NgxMatTimepickerModule,
|
|
26084
|
+
], i4$1.NgxMatDatetimePickerModule,
|
|
26085
|
+
i4$1.NgxMatNativeDateModule,
|
|
26086
|
+
i4$1.NgxMatTimepickerModule,
|
|
25710
26087
|
TabsModule,
|
|
25711
26088
|
PaletteUtilsModule,
|
|
25712
26089
|
PipesModule] });
|
|
@@ -25833,20 +26210,20 @@
|
|
|
25833
26210
|
TabsModule,
|
|
25834
26211
|
LabelSubstitutorModule,
|
|
25835
26212
|
i1$5.NgxMdModule,
|
|
25836
|
-
i4.NgxMatDatetimePickerModule,
|
|
25837
|
-
i4.NgxMatTimepickerModule,
|
|
25838
|
-
i4.NgxMatNativeDateModule,
|
|
25839
|
-
i6
|
|
26213
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26214
|
+
i4$1.NgxMatTimepickerModule,
|
|
26215
|
+
i4$1.NgxMatNativeDateModule,
|
|
26216
|
+
i6.MatFormFieldModule,
|
|
25840
26217
|
i3$1.MatInputModule,
|
|
25841
26218
|
i5$1.MatDatepickerModule,
|
|
25842
|
-
|
|
26219
|
+
i4.MatAutocompleteModule,
|
|
25843
26220
|
i7.CdkTreeModule,
|
|
25844
26221
|
i1$4.OverlayModule,
|
|
25845
26222
|
i3.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
|
|
25846
26223
|
i11.MediaViewerModule,
|
|
25847
|
-
LoadingModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
25848
|
-
i4.NgxMatNativeDateModule,
|
|
25849
|
-
i4.NgxMatTimepickerModule,
|
|
26224
|
+
LoadingModule], exports: [i4$1.NgxMatDatetimePickerModule,
|
|
26225
|
+
i4$1.NgxMatNativeDateModule,
|
|
26226
|
+
i4$1.NgxMatTimepickerModule,
|
|
25850
26227
|
TabsModule,
|
|
25851
26228
|
PaletteUtilsModule,
|
|
25852
26229
|
PipesModule, UnsupportedFieldComponent,
|
|
@@ -25966,13 +26343,13 @@
|
|
|
25966
26343
|
TabsModule,
|
|
25967
26344
|
LabelSubstitutorModule,
|
|
25968
26345
|
i1$5.NgxMdModule,
|
|
25969
|
-
i4.NgxMatDatetimePickerModule,
|
|
25970
|
-
i4.NgxMatTimepickerModule,
|
|
25971
|
-
i4.NgxMatNativeDateModule,
|
|
25972
|
-
i6
|
|
26346
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26347
|
+
i4$1.NgxMatTimepickerModule,
|
|
26348
|
+
i4$1.NgxMatNativeDateModule,
|
|
26349
|
+
i6.MatFormFieldModule,
|
|
25973
26350
|
i3$1.MatInputModule,
|
|
25974
26351
|
i5$1.MatDatepickerModule,
|
|
25975
|
-
|
|
26352
|
+
i4.MatAutocompleteModule,
|
|
25976
26353
|
i7.CdkTreeModule,
|
|
25977
26354
|
i1$4.OverlayModule,
|
|
25978
26355
|
i3.PaymentLibModule,
|
|
@@ -25997,9 +26374,9 @@
|
|
|
25997
26374
|
CaseFlagSummaryListComponent
|
|
25998
26375
|
], PALETTE_COMPONENTS),
|
|
25999
26376
|
exports: __spread([
|
|
26000
|
-
i4.NgxMatDatetimePickerModule,
|
|
26001
|
-
i4.NgxMatNativeDateModule,
|
|
26002
|
-
i4.NgxMatTimepickerModule,
|
|
26377
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26378
|
+
i4$1.NgxMatNativeDateModule,
|
|
26379
|
+
i4$1.NgxMatTimepickerModule,
|
|
26003
26380
|
TabsModule,
|
|
26004
26381
|
PaletteUtilsModule,
|
|
26005
26382
|
PipesModule
|
|
@@ -26017,7 +26394,7 @@
|
|
|
26017
26394
|
LinkedCasesService,
|
|
26018
26395
|
CommonDataService,
|
|
26019
26396
|
JurisdictionService,
|
|
26020
|
-
{ provide:
|
|
26397
|
+
{ provide: i5.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
26021
26398
|
],
|
|
26022
26399
|
entryComponents: [CaseFileViewFolderSelectorComponent]
|
|
26023
26400
|
}]
|
|
@@ -26063,41 +26440,12 @@
|
|
|
26063
26440
|
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
26064
26441
|
i0__namespace.ɵɵsetComponentScope(
|
|
26065
26442
|
// ComponentLauncher web components
|
|
26066
|
-
CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
|
|
26443
|
+
CaseFileViewFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
|
|
26067
26444
|
i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26068
26445
|
i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
|
|
26069
26446
|
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]);
|
|
26070
26447
|
i0__namespace.ɵɵsetComponentScope(CheckYourAnswersComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26071
26448
|
|
|
26072
|
-
var Confirmation = /** @class */ (function () {
|
|
26073
|
-
function Confirmation(caseId, status, header, body) {
|
|
26074
|
-
this.caseId = caseId;
|
|
26075
|
-
this.status = status;
|
|
26076
|
-
this.header = header;
|
|
26077
|
-
this.body = body;
|
|
26078
|
-
}
|
|
26079
|
-
Confirmation.prototype.getCaseId = function () {
|
|
26080
|
-
return this.caseId;
|
|
26081
|
-
};
|
|
26082
|
-
Confirmation.prototype.getStatus = function () {
|
|
26083
|
-
return this.status;
|
|
26084
|
-
};
|
|
26085
|
-
Confirmation.prototype.getHeader = function () {
|
|
26086
|
-
return this.header;
|
|
26087
|
-
};
|
|
26088
|
-
Confirmation.prototype.getBody = function () {
|
|
26089
|
-
return this.body;
|
|
26090
|
-
};
|
|
26091
|
-
return Confirmation;
|
|
26092
|
-
}());
|
|
26093
|
-
|
|
26094
|
-
exports.EventCompletionReturnStates = void 0;
|
|
26095
|
-
(function (EventCompletionReturnStates) {
|
|
26096
|
-
EventCompletionReturnStates["InProgress"] = "in-progress";
|
|
26097
|
-
EventCompletionReturnStates["CompleteEvent"] = "complete-event";
|
|
26098
|
-
EventCompletionReturnStates["CancelEvent"] = "cancel-event";
|
|
26099
|
-
})(exports.EventCompletionReturnStates || (exports.EventCompletionReturnStates = {}));
|
|
26100
|
-
|
|
26101
26449
|
function CaseEditSubmitComponent_div_0_div_3_Template(rf, ctx) {
|
|
26102
26450
|
if (rf & 1) {
|
|
26103
26451
|
i0__namespace.ɵɵelement(0, "div");
|
|
@@ -26121,9 +26469,9 @@
|
|
|
26121
26469
|
i0__namespace.ɵɵelementEnd();
|
|
26122
26470
|
}
|
|
26123
26471
|
if (rf & 2) {
|
|
26124
|
-
var
|
|
26472
|
+
var ctx_r10 = i0__namespace.ɵɵnextContext(3);
|
|
26125
26473
|
i0__namespace.ɵɵadvance(1);
|
|
26126
|
-
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1,
|
|
26474
|
+
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r10.getCaseId()), "");
|
|
26127
26475
|
}
|
|
26128
26476
|
}
|
|
26129
26477
|
function CaseEditSubmitComponent_div_0_ng_template_6_Template(rf, ctx) {
|
|
@@ -26135,313 +26483,249 @@
|
|
|
26135
26483
|
i0__namespace.ɵɵproperty("ngIf", ctx_r6.getCaseId());
|
|
26136
26484
|
}
|
|
26137
26485
|
}
|
|
26138
|
-
function
|
|
26139
|
-
if (rf & 1) {
|
|
26140
|
-
i0__namespace.ɵɵelementStart(0, "div", 17);
|
|
26141
|
-
i0__namespace.ɵɵelementStart(1, "h1", 18);
|
|
26142
|
-
i0__namespace.ɵɵtext(2, " Something went wrong ");
|
|
26143
|
-
i0__namespace.ɵɵelementEnd();
|
|
26144
|
-
i0__namespace.ɵɵelementStart(3, "div", 19);
|
|
26145
|
-
i0__namespace.ɵɵelementStart(4, "p");
|
|
26146
|
-
i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
|
|
26147
|
-
i0__namespace.ɵɵelementEnd();
|
|
26148
|
-
i0__namespace.ɵɵelementStart(6, "p");
|
|
26149
|
-
i0__namespace.ɵɵelementStart(7, "a", 20);
|
|
26150
|
-
i0__namespace.ɵɵtext(8, "Contact us");
|
|
26151
|
-
i0__namespace.ɵɵelementEnd();
|
|
26152
|
-
i0__namespace.ɵɵtext(9, " if you're still having problems.");
|
|
26153
|
-
i0__namespace.ɵɵelementEnd();
|
|
26154
|
-
i0__namespace.ɵɵelementEnd();
|
|
26155
|
-
i0__namespace.ɵɵelementEnd();
|
|
26156
|
-
}
|
|
26157
|
-
}
|
|
26158
|
-
function CaseEditSubmitComponent_div_0_div_9_ul_5_li_1_Template(rf, ctx) {
|
|
26159
|
-
if (rf & 1) {
|
|
26160
|
-
i0__namespace.ɵɵelementStart(0, "li", 25);
|
|
26161
|
-
i0__namespace.ɵɵtext(1);
|
|
26162
|
-
i0__namespace.ɵɵelementEnd();
|
|
26163
|
-
}
|
|
26164
|
-
if (rf & 2) {
|
|
26165
|
-
var fieldError_r15 = ctx.$implicit;
|
|
26166
|
-
i0__namespace.ɵɵadvance(1);
|
|
26167
|
-
i0__namespace.ɵɵtextInterpolate(fieldError_r15.message);
|
|
26168
|
-
}
|
|
26169
|
-
}
|
|
26170
|
-
function CaseEditSubmitComponent_div_0_div_9_ul_5_Template(rf, ctx) {
|
|
26171
|
-
if (rf & 1) {
|
|
26172
|
-
i0__namespace.ɵɵelementStart(0, "ul", 23);
|
|
26173
|
-
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_div_9_ul_5_li_1_Template, 2, 1, "li", 24);
|
|
26174
|
-
i0__namespace.ɵɵelementEnd();
|
|
26175
|
-
}
|
|
26176
|
-
if (rf & 2) {
|
|
26177
|
-
var ctx_r13 = i0__namespace.ɵɵnextContext(3);
|
|
26178
|
-
i0__namespace.ɵɵadvance(1);
|
|
26179
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r13.error.details.field_errors);
|
|
26180
|
-
}
|
|
26181
|
-
}
|
|
26182
|
-
function CaseEditSubmitComponent_div_0_div_9_Template(rf, ctx) {
|
|
26183
|
-
if (rf & 1) {
|
|
26184
|
-
i0__namespace.ɵɵelementStart(0, "div", 17);
|
|
26185
|
-
i0__namespace.ɵɵelementStart(1, "h3", 21);
|
|
26186
|
-
i0__namespace.ɵɵtext(2, " The event could not be created ");
|
|
26187
|
-
i0__namespace.ɵɵelementEnd();
|
|
26188
|
-
i0__namespace.ɵɵelementStart(3, "p");
|
|
26189
|
-
i0__namespace.ɵɵtext(4);
|
|
26190
|
-
i0__namespace.ɵɵelementEnd();
|
|
26191
|
-
i0__namespace.ɵɵtemplate(5, CaseEditSubmitComponent_div_0_div_9_ul_5_Template, 2, 1, "ul", 22);
|
|
26192
|
-
i0__namespace.ɵɵelementEnd();
|
|
26193
|
-
}
|
|
26194
|
-
if (rf & 2) {
|
|
26195
|
-
var ctx_r8 = i0__namespace.ɵɵnextContext(2);
|
|
26196
|
-
i0__namespace.ɵɵadvance(4);
|
|
26197
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r8.error.message);
|
|
26198
|
-
i0__namespace.ɵɵadvance(1);
|
|
26199
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r8.error.details == null ? null : ctx_r8.error.details.field_errors);
|
|
26200
|
-
}
|
|
26201
|
-
}
|
|
26202
|
-
function CaseEditSubmitComponent_div_0_ng_container_12_span_3_Template(rf, ctx) {
|
|
26486
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_span_3_Template(rf, ctx) {
|
|
26203
26487
|
if (rf & 1) {
|
|
26204
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
26488
|
+
i0__namespace.ɵɵelementStart(0, "span", 20);
|
|
26205
26489
|
i0__namespace.ɵɵtext(1, "Check the information below carefully.");
|
|
26206
26490
|
i0__namespace.ɵɵelementEnd();
|
|
26207
26491
|
}
|
|
26208
26492
|
}
|
|
26209
|
-
function
|
|
26493
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template(rf, ctx) {
|
|
26210
26494
|
if (rf & 1) {
|
|
26211
|
-
i0__namespace.ɵɵelementStart(0, "th",
|
|
26212
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
26495
|
+
i0__namespace.ɵɵelementStart(0, "th", 27);
|
|
26496
|
+
i0__namespace.ɵɵelementStart(1, "span", 20);
|
|
26213
26497
|
i0__namespace.ɵɵtext(2);
|
|
26214
26498
|
i0__namespace.ɵɵelementEnd();
|
|
26215
26499
|
i0__namespace.ɵɵelementEnd();
|
|
26216
26500
|
}
|
|
26217
26501
|
if (rf & 2) {
|
|
26218
|
-
var
|
|
26502
|
+
var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
26219
26503
|
i0__namespace.ɵɵadvance(2);
|
|
26220
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26504
|
+
i0__namespace.ɵɵtextInterpolate(field_r16.label);
|
|
26221
26505
|
}
|
|
26222
26506
|
}
|
|
26223
|
-
function
|
|
26507
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template(rf, ctx) {
|
|
26224
26508
|
if (rf & 1) {
|
|
26225
|
-
var
|
|
26509
|
+
var _r23_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26226
26510
|
i0__namespace.ɵɵelementStart(0, "a", 13);
|
|
26227
|
-
i0__namespace.ɵɵlistener("click", function
|
|
26228
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
26511
|
+
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); });
|
|
26512
|
+
i0__namespace.ɵɵelementStart(1, "span", 20);
|
|
26229
26513
|
i0__namespace.ɵɵtext(2, "Change");
|
|
26230
26514
|
i0__namespace.ɵɵelementEnd();
|
|
26231
26515
|
i0__namespace.ɵɵelementEnd();
|
|
26232
26516
|
}
|
|
26233
26517
|
if (rf & 2) {
|
|
26234
|
-
var
|
|
26518
|
+
var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
26235
26519
|
i0__namespace.ɵɵadvance(1);
|
|
26236
|
-
i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ",
|
|
26520
|
+
i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ", field_r16.label, "");
|
|
26237
26521
|
}
|
|
26238
26522
|
}
|
|
26239
|
-
function
|
|
26523
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
26240
26524
|
if (rf & 1) {
|
|
26241
26525
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26242
|
-
i0__namespace.ɵɵelementStart(1, "tr",
|
|
26243
|
-
i0__namespace.ɵɵtemplate(2,
|
|
26244
|
-
i0__namespace.ɵɵelementStart(3, "td",
|
|
26245
|
-
i0__namespace.ɵɵelement(4, "ccd-field-read",
|
|
26526
|
+
i0__namespace.ɵɵelementStart(1, "tr", 21);
|
|
26527
|
+
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);
|
|
26528
|
+
i0__namespace.ɵɵelementStart(3, "td", 23);
|
|
26529
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 24);
|
|
26246
26530
|
i0__namespace.ɵɵelementEnd();
|
|
26247
|
-
i0__namespace.ɵɵelementStart(5, "td",
|
|
26248
|
-
i0__namespace.ɵɵtemplate(6,
|
|
26531
|
+
i0__namespace.ɵɵelementStart(5, "td", 25);
|
|
26532
|
+
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);
|
|
26249
26533
|
i0__namespace.ɵɵelementEnd();
|
|
26250
26534
|
i0__namespace.ɵɵelementEnd();
|
|
26251
26535
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26252
26536
|
}
|
|
26253
26537
|
if (rf & 2) {
|
|
26254
|
-
var
|
|
26255
|
-
var
|
|
26538
|
+
var field_r16 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26539
|
+
var ctx_r17 = i0__namespace.ɵɵnextContext(5);
|
|
26256
26540
|
i0__namespace.ɵɵadvance(1);
|
|
26257
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26541
|
+
i0__namespace.ɵɵproperty("caseField", field_r16)("hidden", field_r16.hidden)("formGroup", ctx_r17.editForm.controls["data"])("contextFields", ctx_r17.contextFields);
|
|
26258
26542
|
i0__namespace.ɵɵadvance(1);
|
|
26259
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
26543
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r17.isLabel(field_r16) && !ctx_r17.caseEdit.isCaseFlagSubmission);
|
|
26260
26544
|
i0__namespace.ɵɵadvance(1);
|
|
26261
|
-
i0__namespace.ɵɵattribute("colspan",
|
|
26545
|
+
i0__namespace.ɵɵattribute("colspan", ctx_r17.isLabel(field_r16) ? "2" : "1");
|
|
26262
26546
|
i0__namespace.ɵɵadvance(1);
|
|
26263
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26547
|
+
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);
|
|
26264
26548
|
i0__namespace.ɵɵadvance(2);
|
|
26265
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26549
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r17.isChangeAllowed(field_r16));
|
|
26266
26550
|
}
|
|
26267
26551
|
}
|
|
26268
|
-
function
|
|
26552
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
26269
26553
|
if (rf & 1) {
|
|
26270
26554
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26271
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26555
|
+
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);
|
|
26272
26556
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26273
26557
|
}
|
|
26274
26558
|
if (rf & 2) {
|
|
26275
|
-
var
|
|
26276
|
-
var
|
|
26559
|
+
var field_r16 = ctx.$implicit;
|
|
26560
|
+
var ctx_r15 = i0__namespace.ɵɵnextContext(5);
|
|
26277
26561
|
i0__namespace.ɵɵadvance(1);
|
|
26278
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26562
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r15.canShowFieldInCYA(field_r16));
|
|
26279
26563
|
}
|
|
26280
26564
|
}
|
|
26281
26565
|
var _c0$f = function (a0, a4) { return [a0, false, undefined, true, a4]; };
|
|
26282
|
-
function
|
|
26566
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_Template(rf, ctx) {
|
|
26283
26567
|
if (rf & 1) {
|
|
26284
26568
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26285
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26569
|
+
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);
|
|
26286
26570
|
i0__namespace.ɵɵpipe(2, "ccdCYAPageLabelFilter");
|
|
26287
26571
|
i0__namespace.ɵɵpipe(3, "ccdReadFieldsFilter");
|
|
26288
26572
|
i0__namespace.ɵɵpipe(4, "ccdPageFields");
|
|
26289
26573
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26290
26574
|
}
|
|
26291
26575
|
if (rf & 2) {
|
|
26292
|
-
var
|
|
26293
|
-
var
|
|
26576
|
+
var page_r13 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26577
|
+
var ctx_r14 = i0__namespace.ɵɵnextContext(3);
|
|
26294
26578
|
i0__namespace.ɵɵadvance(1);
|
|
26295
|
-
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,
|
|
26579
|
+
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"]))));
|
|
26296
26580
|
}
|
|
26297
26581
|
}
|
|
26298
|
-
function
|
|
26582
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_Template(rf, ctx) {
|
|
26299
26583
|
if (rf & 1) {
|
|
26300
26584
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26301
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26585
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_Template, 5, 15, "ng-container", 0);
|
|
26302
26586
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26303
26587
|
}
|
|
26304
26588
|
if (rf & 2) {
|
|
26305
|
-
var
|
|
26306
|
-
var
|
|
26589
|
+
var page_r13 = ctx.$implicit;
|
|
26590
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(3);
|
|
26307
26591
|
i0__namespace.ɵɵadvance(1);
|
|
26308
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26592
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r12.isShown(page_r13));
|
|
26309
26593
|
}
|
|
26310
26594
|
}
|
|
26311
|
-
function
|
|
26595
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_Template(rf, ctx) {
|
|
26312
26596
|
if (rf & 1) {
|
|
26313
26597
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26314
26598
|
i0__namespace.ɵɵelementStart(1, "h2", 16);
|
|
26315
26599
|
i0__namespace.ɵɵtext(2);
|
|
26316
26600
|
i0__namespace.ɵɵelementEnd();
|
|
26317
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26318
|
-
i0__namespace.ɵɵelementStart(4, "table",
|
|
26601
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_11_span_3_Template, 2, 0, "span", 17);
|
|
26602
|
+
i0__namespace.ɵɵelementStart(4, "table", 18);
|
|
26319
26603
|
i0__namespace.ɵɵelementStart(5, "tbody");
|
|
26320
|
-
i0__namespace.ɵɵtemplate(6,
|
|
26604
|
+
i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_Template, 2, 1, "ng-container", 19);
|
|
26321
26605
|
i0__namespace.ɵɵelementEnd();
|
|
26322
26606
|
i0__namespace.ɵɵelementEnd();
|
|
26323
26607
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26324
26608
|
}
|
|
26325
26609
|
if (rf & 2) {
|
|
26326
|
-
var
|
|
26610
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
26327
26611
|
i0__namespace.ɵɵadvance(2);
|
|
26328
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26612
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r7.pageTitle);
|
|
26329
26613
|
i0__namespace.ɵɵadvance(1);
|
|
26330
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
26614
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r7.caseEdit.isCaseFlagSubmission);
|
|
26331
26615
|
i0__namespace.ɵɵadvance(3);
|
|
26332
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
26616
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r7.wizard.pages);
|
|
26333
26617
|
}
|
|
26334
26618
|
}
|
|
26335
|
-
function
|
|
26619
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template(rf, ctx) {
|
|
26336
26620
|
if (rf & 1) {
|
|
26337
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
26338
|
-
i0__namespace.ɵɵelementStart(1, "th",
|
|
26621
|
+
i0__namespace.ɵɵelementStart(0, "tr", 32);
|
|
26622
|
+
i0__namespace.ɵɵelementStart(1, "th", 33);
|
|
26339
26623
|
i0__namespace.ɵɵtext(2);
|
|
26340
26624
|
i0__namespace.ɵɵelementEnd();
|
|
26341
|
-
i0__namespace.ɵɵelementStart(3, "td",
|
|
26342
|
-
i0__namespace.ɵɵelement(4, "ccd-field-read",
|
|
26625
|
+
i0__namespace.ɵɵelementStart(3, "td", 34);
|
|
26626
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 35);
|
|
26343
26627
|
i0__namespace.ɵɵelementEnd();
|
|
26344
26628
|
i0__namespace.ɵɵelementEnd();
|
|
26345
26629
|
}
|
|
26346
26630
|
if (rf & 2) {
|
|
26347
|
-
var
|
|
26348
|
-
var
|
|
26349
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26631
|
+
var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26632
|
+
var ctx_r29 = i0__namespace.ɵɵnextContext(3);
|
|
26633
|
+
i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r29.editForm.controls["data"])("contextFields", ctx_r29.contextFields);
|
|
26350
26634
|
i0__namespace.ɵɵadvance(2);
|
|
26351
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26635
|
+
i0__namespace.ɵɵtextInterpolate(field_r28.label);
|
|
26352
26636
|
i0__namespace.ɵɵadvance(2);
|
|
26353
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26637
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r29.editForm.controls["data"])("caseField", ctx_r29.summaryCaseField(field_r28));
|
|
26354
26638
|
}
|
|
26355
26639
|
}
|
|
26356
|
-
function
|
|
26640
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template(rf, ctx) {
|
|
26357
26641
|
if (rf & 1) {
|
|
26358
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
26359
|
-
i0__namespace.ɵɵelementStart(1, "td",
|
|
26360
|
-
i0__namespace.ɵɵelement(2, "ccd-field-read",
|
|
26642
|
+
i0__namespace.ɵɵelementStart(0, "tr", 36);
|
|
26643
|
+
i0__namespace.ɵɵelementStart(1, "td", 37);
|
|
26644
|
+
i0__namespace.ɵɵelement(2, "ccd-field-read", 38);
|
|
26361
26645
|
i0__namespace.ɵɵelementEnd();
|
|
26362
26646
|
i0__namespace.ɵɵelementEnd();
|
|
26363
26647
|
}
|
|
26364
26648
|
if (rf & 2) {
|
|
26365
|
-
var
|
|
26366
|
-
var
|
|
26367
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26649
|
+
var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26650
|
+
var ctx_r30 = i0__namespace.ɵɵnextContext(3);
|
|
26651
|
+
i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r30.editForm.controls["data"])("contextFields", ctx_r30.contextFields);
|
|
26368
26652
|
i0__namespace.ɵɵadvance(2);
|
|
26369
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26653
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r30.editForm.controls["data"])("caseField", ctx_r30.summaryCaseField(field_r28))("caseFields", ctx_r30.contextFields);
|
|
26370
26654
|
}
|
|
26371
26655
|
}
|
|
26372
|
-
function
|
|
26656
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template(rf, ctx) {
|
|
26373
26657
|
if (rf & 1) {
|
|
26374
26658
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26375
|
-
i0__namespace.ɵɵelementContainerStart(1,
|
|
26659
|
+
i0__namespace.ɵɵelementContainerStart(1, 29);
|
|
26376
26660
|
i0__namespace.ɵɵpipe(2, "ccdIsCompound");
|
|
26377
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26378
|
-
i0__namespace.ɵɵtemplate(4,
|
|
26661
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template, 5, 6, "tr", 30);
|
|
26662
|
+
i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template, 3, 6, "tr", 31);
|
|
26379
26663
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26380
26664
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26381
26665
|
}
|
|
26382
26666
|
if (rf & 2) {
|
|
26383
|
-
var
|
|
26667
|
+
var field_r28 = ctx.$implicit;
|
|
26384
26668
|
i0__namespace.ɵɵadvance(1);
|
|
26385
|
-
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3,
|
|
26669
|
+
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r28));
|
|
26386
26670
|
i0__namespace.ɵɵadvance(2);
|
|
26387
26671
|
i0__namespace.ɵɵproperty("ngSwitchCase", true);
|
|
26388
26672
|
i0__namespace.ɵɵadvance(1);
|
|
26389
26673
|
i0__namespace.ɵɵproperty("ngSwitchCase", false);
|
|
26390
26674
|
}
|
|
26391
26675
|
}
|
|
26392
|
-
function
|
|
26676
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_Template(rf, ctx) {
|
|
26393
26677
|
if (rf & 1) {
|
|
26394
26678
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26395
|
-
i0__namespace.ɵɵelementStart(1, "table",
|
|
26679
|
+
i0__namespace.ɵɵelementStart(1, "table", 28);
|
|
26396
26680
|
i0__namespace.ɵɵelementStart(2, "tbody");
|
|
26397
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26681
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template, 5, 5, "ng-container", 19);
|
|
26398
26682
|
i0__namespace.ɵɵelementEnd();
|
|
26399
26683
|
i0__namespace.ɵɵelementEnd();
|
|
26400
26684
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26401
26685
|
}
|
|
26402
26686
|
if (rf & 2) {
|
|
26403
|
-
var
|
|
26687
|
+
var ctx_r8 = i0__namespace.ɵɵnextContext(2);
|
|
26404
26688
|
i0__namespace.ɵɵadvance(3);
|
|
26405
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
26689
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
|
|
26406
26690
|
}
|
|
26407
26691
|
}
|
|
26408
|
-
function
|
|
26692
|
+
function CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template(rf, ctx) {
|
|
26409
26693
|
if (rf & 1) {
|
|
26410
|
-
i0__namespace.ɵɵelementStart(0, "fieldset",
|
|
26411
|
-
i0__namespace.ɵɵelement(1, "legend",
|
|
26412
|
-
i0__namespace.ɵɵelementStart(2, "div",
|
|
26413
|
-
i0__namespace.ɵɵelementStart(3, "label",
|
|
26694
|
+
i0__namespace.ɵɵelementStart(0, "fieldset", 40);
|
|
26695
|
+
i0__namespace.ɵɵelement(1, "legend", 41);
|
|
26696
|
+
i0__namespace.ɵɵelementStart(2, "div", 42);
|
|
26697
|
+
i0__namespace.ɵɵelementStart(3, "label", 43);
|
|
26414
26698
|
i0__namespace.ɵɵtext(4, " Event summary (optional) ");
|
|
26415
|
-
i0__namespace.ɵɵelementStart(5, "span",
|
|
26699
|
+
i0__namespace.ɵɵelementStart(5, "span", 44);
|
|
26416
26700
|
i0__namespace.ɵɵtext(6, "A few words describing the purpose of the event.");
|
|
26417
26701
|
i0__namespace.ɵɵelementEnd();
|
|
26418
26702
|
i0__namespace.ɵɵelementEnd();
|
|
26419
|
-
i0__namespace.ɵɵelement(7, "input",
|
|
26703
|
+
i0__namespace.ɵɵelement(7, "input", 45);
|
|
26420
26704
|
i0__namespace.ɵɵelementEnd();
|
|
26421
|
-
i0__namespace.ɵɵelementStart(8, "div",
|
|
26422
|
-
i0__namespace.ɵɵelementStart(9, "label",
|
|
26705
|
+
i0__namespace.ɵɵelementStart(8, "div", 42);
|
|
26706
|
+
i0__namespace.ɵɵelementStart(9, "label", 46);
|
|
26423
26707
|
i0__namespace.ɵɵtext(10, "Event description (optional)");
|
|
26424
26708
|
i0__namespace.ɵɵelementEnd();
|
|
26425
|
-
i0__namespace.ɵɵelement(11, "textarea",
|
|
26709
|
+
i0__namespace.ɵɵelement(11, "textarea", 47);
|
|
26426
26710
|
i0__namespace.ɵɵelementEnd();
|
|
26427
26711
|
i0__namespace.ɵɵelementEnd();
|
|
26428
26712
|
}
|
|
26429
26713
|
}
|
|
26430
|
-
function
|
|
26714
|
+
function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
|
|
26431
26715
|
if (rf & 1) {
|
|
26432
26716
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26433
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26717
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template, 12, 0, "fieldset", 39);
|
|
26434
26718
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26435
26719
|
}
|
|
26436
26720
|
if (rf & 2) {
|
|
26437
|
-
var
|
|
26721
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext(2);
|
|
26438
26722
|
i0__namespace.ɵɵadvance(1);
|
|
26439
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26723
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r9.profile && !ctx_r9.isSolicitor());
|
|
26440
26724
|
}
|
|
26441
26725
|
}
|
|
26442
26726
|
function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
|
|
26443
26727
|
if (rf & 1) {
|
|
26444
|
-
var
|
|
26728
|
+
var _r35_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26445
26729
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
26446
26730
|
i0__namespace.ɵɵelementStart(1, "h1", 2);
|
|
26447
26731
|
i0__namespace.ɵɵtext(2);
|
|
@@ -26449,29 +26733,28 @@
|
|
|
26449
26733
|
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_div_3_Template, 1, 0, "div", 3);
|
|
26450
26734
|
i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_template_4_Template, 2, 5, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
|
|
26451
26735
|
i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_template_6_Template, 1, 1, "ng-template", null, 5, i0__namespace.ɵɵtemplateRefExtractor);
|
|
26452
|
-
i0__namespace.ɵɵ
|
|
26453
|
-
i0__namespace.ɵɵ
|
|
26454
|
-
i0__namespace.ɵɵ
|
|
26455
|
-
i0__namespace.ɵɵ
|
|
26456
|
-
i0__namespace.ɵɵ
|
|
26457
|
-
i0__namespace.ɵɵ
|
|
26458
|
-
i0__namespace.ɵɵ
|
|
26459
|
-
i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template,
|
|
26460
|
-
i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template,
|
|
26461
|
-
i0__namespace.ɵɵ
|
|
26462
|
-
i0__namespace.ɵɵelementStart(15, "
|
|
26463
|
-
i0__namespace.ɵɵ
|
|
26464
|
-
i0__namespace.ɵɵ
|
|
26465
|
-
i0__namespace.ɵɵ
|
|
26466
|
-
i0__namespace.ɵɵ
|
|
26467
|
-
i0__namespace.ɵɵ
|
|
26468
|
-
i0__namespace.ɵɵ
|
|
26469
|
-
i0__namespace.ɵɵelementEnd();
|
|
26470
|
-
i0__namespace.ɵɵ
|
|
26471
|
-
i0__namespace.ɵɵelementStart(20, "
|
|
26472
|
-
i0__namespace.ɵɵ
|
|
26473
|
-
i0__namespace.ɵɵ
|
|
26474
|
-
i0__namespace.ɵɵtext(22);
|
|
26736
|
+
i0__namespace.ɵɵelement(8, "ccd-case-edit-generic-errors", 6);
|
|
26737
|
+
i0__namespace.ɵɵelementStart(9, "ccd-callback-errors", 7);
|
|
26738
|
+
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); });
|
|
26739
|
+
i0__namespace.ɵɵelementEnd();
|
|
26740
|
+
i0__namespace.ɵɵelementStart(10, "form", 8);
|
|
26741
|
+
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(); });
|
|
26742
|
+
i0__namespace.ɵɵtemplate(11, CaseEditSubmitComponent_div_0_ng_container_11_Template, 7, 3, "ng-container", 0);
|
|
26743
|
+
i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 4, 1, "ng-container", 0);
|
|
26744
|
+
i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 2, 1, "ng-container", 0);
|
|
26745
|
+
i0__namespace.ɵɵelementStart(14, "div", 9);
|
|
26746
|
+
i0__namespace.ɵɵelementStart(15, "button", 10);
|
|
26747
|
+
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(); });
|
|
26748
|
+
i0__namespace.ɵɵtext(16, "Previous");
|
|
26749
|
+
i0__namespace.ɵɵelementEnd();
|
|
26750
|
+
i0__namespace.ɵɵelementStart(17, "button", 11);
|
|
26751
|
+
i0__namespace.ɵɵtext(18);
|
|
26752
|
+
i0__namespace.ɵɵelementEnd();
|
|
26753
|
+
i0__namespace.ɵɵelementEnd();
|
|
26754
|
+
i0__namespace.ɵɵelementStart(19, "p", 12);
|
|
26755
|
+
i0__namespace.ɵɵelementStart(20, "a", 13);
|
|
26756
|
+
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(); });
|
|
26757
|
+
i0__namespace.ɵɵtext(21);
|
|
26475
26758
|
i0__namespace.ɵɵelementEnd();
|
|
26476
26759
|
i0__namespace.ɵɵelementEnd();
|
|
26477
26760
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -26486,11 +26769,9 @@
|
|
|
26486
26769
|
i0__namespace.ɵɵadvance(1);
|
|
26487
26770
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.getCaseTitle())("ngIfThen", _r3)("ngIfElse", _r5);
|
|
26488
26771
|
i0__namespace.ɵɵadvance(5);
|
|
26489
|
-
i0__namespace.ɵɵproperty("
|
|
26490
|
-
i0__namespace.ɵɵadvance(1);
|
|
26491
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.error && (ctx_r0.error.details || ctx_r0.error.message));
|
|
26772
|
+
i0__namespace.ɵɵproperty("error", ctx_r0.caseEdit.error);
|
|
26492
26773
|
i0__namespace.ɵɵadvance(1);
|
|
26493
|
-
i0__namespace.ɵɵproperty("callbackErrorsSubject", ctx_r0.callbackErrorsSubject);
|
|
26774
|
+
i0__namespace.ɵɵproperty("callbackErrorsSubject", ctx_r0.caseEdit.callbackErrorsSubject);
|
|
26494
26775
|
i0__namespace.ɵɵadvance(1);
|
|
26495
26776
|
i0__namespace.ɵɵproperty("formGroup", ctx_r0.editForm);
|
|
26496
26777
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -26500,49 +26781,39 @@
|
|
|
26500
26781
|
i0__namespace.ɵɵadvance(1);
|
|
26501
26782
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.showEventNotes());
|
|
26502
26783
|
i0__namespace.ɵɵadvance(2);
|
|
26503
|
-
i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.isSubmitting);
|
|
26784
|
+
i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.caseEdit.isSubmitting);
|
|
26504
26785
|
i0__namespace.ɵɵadvance(2);
|
|
26505
26786
|
i0__namespace.ɵɵproperty("disabled", ctx_r0.isDisabled);
|
|
26506
26787
|
i0__namespace.ɵɵadvance(1);
|
|
26507
26788
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.triggerText);
|
|
26508
26789
|
i0__namespace.ɵɵadvance(2);
|
|
26509
|
-
i0__namespace.ɵɵclassProp("disabled", ctx_r0.isSubmitting);
|
|
26790
|
+
i0__namespace.ɵɵclassProp("disabled", ctx_r0.caseEdit.isSubmitting);
|
|
26510
26791
|
i0__namespace.ɵɵadvance(1);
|
|
26511
26792
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.getCancelText());
|
|
26512
26793
|
}
|
|
26513
26794
|
}
|
|
26514
26795
|
function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
|
|
26515
26796
|
if (rf & 1) {
|
|
26516
|
-
var
|
|
26517
|
-
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion",
|
|
26518
|
-
i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
26797
|
+
var _r40_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26798
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 48);
|
|
26799
|
+
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); });
|
|
26519
26800
|
i0__namespace.ɵɵelementEnd();
|
|
26520
26801
|
}
|
|
26521
26802
|
if (rf & 2) {
|
|
26522
26803
|
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
26523
|
-
i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r1.eventCompletionParams);
|
|
26804
|
+
i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r1.caseEdit.eventCompletionParams);
|
|
26524
26805
|
}
|
|
26525
26806
|
}
|
|
26526
26807
|
// @dynamic
|
|
26527
26808
|
var CaseEditSubmitComponent = /** @class */ (function () {
|
|
26528
|
-
function CaseEditSubmitComponent(caseEdit,
|
|
26809
|
+
function CaseEditSubmitComponent(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier) {
|
|
26529
26810
|
this.caseEdit = caseEdit;
|
|
26530
|
-
this.formValueService = formValueService;
|
|
26531
|
-
this.formErrorService = formErrorService;
|
|
26532
26811
|
this.fieldsUtils = fieldsUtils;
|
|
26533
26812
|
this.caseFieldService = caseFieldService;
|
|
26534
26813
|
this.route = route;
|
|
26535
|
-
this.router = router;
|
|
26536
26814
|
this.orderService = orderService;
|
|
26537
26815
|
this.profileNotifier = profileNotifier;
|
|
26538
|
-
this.sessionStorageService = sessionStorageService;
|
|
26539
|
-
this.caseNotifier = caseNotifier;
|
|
26540
|
-
this.callbackErrorsSubject = new rxjs.Subject();
|
|
26541
|
-
this.ignoreWarning = false;
|
|
26542
26816
|
this.paletteContext = exports.PaletteContext.CHECK_YOUR_ANSWER;
|
|
26543
|
-
this.eventCompletionChecksRequired = false;
|
|
26544
|
-
this.isCaseFlagSubmission = false;
|
|
26545
|
-
this.isLinkedCasesSubmission = false;
|
|
26546
26817
|
}
|
|
26547
26818
|
Object.defineProperty(CaseEditSubmitComponent.prototype, "isDisabled", {
|
|
26548
26819
|
get: function () {
|
|
@@ -26550,7 +26821,7 @@
|
|
|
26550
26821
|
// We don't need to check the validity of the editForm as it is readonly.
|
|
26551
26822
|
// This was causing issues with hidden fields that aren't wanted but have
|
|
26552
26823
|
// not been disabled.
|
|
26553
|
-
return this.isSubmitting || this.hasErrors;
|
|
26824
|
+
return this.caseEdit.isSubmitting || this.hasErrors;
|
|
26554
26825
|
},
|
|
26555
26826
|
enumerable: false,
|
|
26556
26827
|
configurable: true
|
|
@@ -26563,216 +26834,42 @@
|
|
|
26563
26834
|
this.editForm = this.caseEdit.form;
|
|
26564
26835
|
this.wizard = this.caseEdit.wizard;
|
|
26565
26836
|
this.showSummaryFields = this.sortFieldsByShowSummaryContent(this.eventTrigger.case_fields);
|
|
26566
|
-
this.isSubmitting = false;
|
|
26837
|
+
this.caseEdit.isSubmitting = false;
|
|
26567
26838
|
this.contextFields = this.getCaseFields();
|
|
26568
26839
|
// Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
|
|
26569
26840
|
// a FlagLauncher field in the event trigger
|
|
26570
|
-
this.isCaseFlagSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); });
|
|
26571
|
-
this.
|
|
26572
|
-
|
|
26841
|
+
this.caseEdit.isCaseFlagSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); });
|
|
26842
|
+
this.caseEdit.isLinkedCasesSubmission =
|
|
26843
|
+
this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isComponentLauncherCaseField(caseField); });
|
|
26844
|
+
this.pageTitle = this.caseEdit.isCaseFlagSubmission ? 'Review flag details' : 'Check your answers';
|
|
26573
26845
|
};
|
|
26574
26846
|
CaseEditSubmitComponent.prototype.ngOnDestroy = function () {
|
|
26847
|
+
/* istanbul ignore else */
|
|
26575
26848
|
if (this.profileSubscription) {
|
|
26576
26849
|
this.profileSubscription.unsubscribe();
|
|
26577
26850
|
}
|
|
26578
26851
|
};
|
|
26579
26852
|
CaseEditSubmitComponent.prototype.submit = function () {
|
|
26580
|
-
this.
|
|
26581
|
-
|
|
26582
|
-
|
|
26583
|
-
|
|
26584
|
-
|
|
26585
|
-
if (taskStr) {
|
|
26586
|
-
taskInSessionStorage = JSON.parse(taskStr);
|
|
26587
|
-
}
|
|
26588
|
-
if (taskInSessionStorage && taskInSessionStorage.case_id === this.getCaseId()) {
|
|
26589
|
-
// Show event completion component to perform event completion checks
|
|
26590
|
-
this.eventCompletionParams = {
|
|
26591
|
-
caseId: this.getCaseId(),
|
|
26592
|
-
eventId: this.getEventId(),
|
|
26593
|
-
task: taskInSessionStorage
|
|
26594
|
-
};
|
|
26595
|
-
this.eventCompletionChecksRequired = true;
|
|
26596
|
-
}
|
|
26597
|
-
else {
|
|
26598
|
-
// Task not in session storage, proceed to submit
|
|
26599
|
-
var caseEventData = this.generateCaseEventData();
|
|
26600
|
-
this.caseSubmit(caseEventData);
|
|
26601
|
-
}
|
|
26602
|
-
};
|
|
26603
|
-
CaseEditSubmitComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
|
|
26604
|
-
if (eventCanBeCompleted) {
|
|
26605
|
-
// Submit
|
|
26606
|
-
var caseEventData = this.generateCaseEventData();
|
|
26607
|
-
this.caseSubmit(caseEventData);
|
|
26608
|
-
}
|
|
26609
|
-
else {
|
|
26610
|
-
// Navigate to tasks tab on case details page
|
|
26611
|
-
this.router.navigate(["/cases/case-details/" + this.getCaseId() + "/tasks"], { relativeTo: this.route });
|
|
26612
|
-
}
|
|
26613
|
-
};
|
|
26614
|
-
CaseEditSubmitComponent.prototype.generateCaseEventData = function () {
|
|
26615
|
-
var caseEventData = {
|
|
26616
|
-
data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(this.replaceHiddenFormValuesWithOriginalCaseData(this.editForm.get('data'), this.eventTrigger.case_fields))),
|
|
26617
|
-
event: this.editForm.value.event
|
|
26618
|
-
};
|
|
26619
|
-
this.formValueService.clearNonCaseFields(caseEventData.data, this.eventTrigger.case_fields);
|
|
26620
|
-
this.formValueService.removeNullLabels(caseEventData.data, this.eventTrigger.case_fields);
|
|
26621
|
-
this.formValueService.removeEmptyDocuments(caseEventData.data, this.eventTrigger.case_fields);
|
|
26622
|
-
// Remove collection fields that have "min" validation of greater than zero set on the FieldType but are empty;
|
|
26623
|
-
// these will fail validation
|
|
26624
|
-
this.formValueService.removeEmptyCollectionsWithMinValidation(caseEventData.data, this.eventTrigger.case_fields);
|
|
26625
|
-
// If this is a Case Flag submission (and thus a FlagLauncher field is present in the event trigger), the flag
|
|
26626
|
-
// details data needs populating for each Flags field, then the FlagLauncher field needs removing
|
|
26627
|
-
if (this.isCaseFlagSubmission) {
|
|
26628
|
-
this.formValueService.populateFlagDetailsFromCaseFields(caseEventData.data, this.eventTrigger.case_fields);
|
|
26629
|
-
this.formValueService.removeFlagLauncherField(caseEventData.data, this.eventTrigger.case_fields);
|
|
26630
|
-
}
|
|
26631
|
-
if (this.isLinkedCasesSubmission) {
|
|
26632
|
-
this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, this.eventTrigger.case_fields);
|
|
26633
|
-
this.formValueService.removeComponentLauncherField(caseEventData.data, this.eventTrigger.case_fields);
|
|
26634
|
-
}
|
|
26635
|
-
caseEventData.event_token = this.eventTrigger.event_token;
|
|
26636
|
-
caseEventData.ignore_warning = this.ignoreWarning;
|
|
26637
|
-
if (this.caseEdit.confirmation) {
|
|
26638
|
-
caseEventData.data = {};
|
|
26639
|
-
}
|
|
26640
|
-
return caseEventData;
|
|
26641
|
-
};
|
|
26642
|
-
CaseEditSubmitComponent.prototype.caseSubmit = function (caseEventData) {
|
|
26643
|
-
var _this = this;
|
|
26644
|
-
this.caseEdit.submit(caseEventData)
|
|
26645
|
-
.subscribe(function (response) {
|
|
26646
|
-
_this.caseNotifier.cachedCaseView = null;
|
|
26647
|
-
_this.sessionStorageService.removeItem('eventUrl');
|
|
26648
|
-
var confirmation = _this.buildConfirmation(response);
|
|
26649
|
-
if (confirmation && (confirmation.getHeader() || confirmation.getBody())) {
|
|
26650
|
-
_this.caseEdit.confirm(confirmation);
|
|
26651
|
-
}
|
|
26652
|
-
else {
|
|
26653
|
-
_this.caseEdit.submitted.emit({ caseId: response['id'], status: _this.getStatus(response) });
|
|
26654
|
-
}
|
|
26655
|
-
}, function (error) {
|
|
26656
|
-
_this.error = error;
|
|
26657
|
-
_this.callbackErrorsSubject.next(_this.error);
|
|
26658
|
-
if (_this.error.details) {
|
|
26659
|
-
_this.formErrorService
|
|
26660
|
-
.mapFieldErrors(_this.error.details.field_errors, _this.editForm.controls['data'], 'validation');
|
|
26661
|
-
}
|
|
26662
|
-
_this.isSubmitting = false;
|
|
26663
|
-
});
|
|
26664
|
-
};
|
|
26665
|
-
/**
|
|
26666
|
-
* Traverse *all* values of a {@link FormGroup}, including those for disabled fields (i.e. hidden ones), replacing the
|
|
26667
|
-
* value of any that are hidden AND have `retain_hidden_value` set to `true` in the corresponding `CaseField`, with
|
|
26668
|
-
* the *original* value held in the `CaseField` object.
|
|
26669
|
-
*
|
|
26670
|
-
* This is as per design in EUI-3622, where any user-driven updates to hidden fields with `retain_hidden_value` =
|
|
26671
|
-
* `true` are ignored (thus retaining the value displayed originally).
|
|
26672
|
-
*
|
|
26673
|
-
* * For Complex field types, the replacement above is performed recursively for all hidden sub-fields with
|
|
26674
|
-
* `retain_hidden_value` = `true`.
|
|
26675
|
-
*
|
|
26676
|
-
* * For Collection field types, including collections of Complex and Document field types, the replacement is
|
|
26677
|
-
* performed for all fields in the collection.
|
|
26678
|
-
*
|
|
26679
|
-
* @param formGroup The `FormGroup` instance whose raw values are to be traversed
|
|
26680
|
-
* @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `formGroup`
|
|
26681
|
-
* @param parentField Reference to the parent `CaseField`. Used for retrieving the sub-field values of a Complex field
|
|
26682
|
-
* to perform recursive replacement - the sub-field `CaseField`s themselves do *not* contain any values
|
|
26683
|
-
* @returns An object with the *raw* form value data (as key-value pairs), with any value replacements as necessary
|
|
26684
|
-
*/
|
|
26685
|
-
CaseEditSubmitComponent.prototype.replaceHiddenFormValuesWithOriginalCaseData = function (formGroup, caseFields, parentField) {
|
|
26686
|
-
var _this = this;
|
|
26687
|
-
// Get the raw form value data, which includes the values of any disabled controls, as key-value pairs
|
|
26688
|
-
var rawFormValueData = formGroup.getRawValue();
|
|
26689
|
-
// Place all case fields in a lookup object, so they can be retrieved by id
|
|
26690
|
-
var caseFieldsLookup = {};
|
|
26691
|
-
for (var i = 0, len = caseFields.length; i < len; i++) {
|
|
26692
|
-
caseFieldsLookup[caseFields[i].id] = caseFields[i];
|
|
26693
|
-
}
|
|
26694
|
-
/**
|
|
26695
|
-
* Replace any form value with the original, where its CaseField is hidden AND has the retain_hidden_value flag set
|
|
26696
|
-
* to true.
|
|
26697
|
-
*
|
|
26698
|
-
* If the CaseField's `hidden` attribute is null or undefined, then check this attribute in the parent CaseField (if
|
|
26699
|
-
* one exists). This is occurring (and is possibly a bug) when a CaseField is a sub-field of a Complex type, or an
|
|
26700
|
-
* item in a Collection type.
|
|
26701
|
-
*
|
|
26702
|
-
* If the field is a Complex type with retain_hidden_value = true, perform a recursive replacement for all (hidden)
|
|
26703
|
-
* sub-fields with retain_hidden_value = true, using their original CaseField values (from the `formatted_value`
|
|
26704
|
-
* attribute).
|
|
26705
|
-
*
|
|
26706
|
-
* If the field is a Collection type with retain_hidden_value = true, the entire collection is replaced with the
|
|
26707
|
-
* original from `formatted_value`. This applies to *all* types of Collections.
|
|
26708
|
-
*/
|
|
26709
|
-
Object.keys(rawFormValueData).forEach(function (key) {
|
|
26710
|
-
var caseField = caseFieldsLookup[key];
|
|
26711
|
-
// If caseField.hidden is NOT truthy and also NOT equal to false, then it must be null/undefined (remember that
|
|
26712
|
-
// both null and undefined are equal to *neither false nor true*)
|
|
26713
|
-
if (caseField && caseField.retain_hidden_value &&
|
|
26714
|
-
(caseField.hidden || (caseField.hidden !== false && parentField && parentField.hidden))) {
|
|
26715
|
-
if (caseField.field_type.type === 'Complex') {
|
|
26716
|
-
// Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
|
|
26717
|
-
// handle both null and undefined values
|
|
26718
|
-
if (caseField.value != null) {
|
|
26719
|
-
// Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
|
|
26720
|
-
// CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
|
|
26721
|
-
// parent)
|
|
26722
|
-
// Update rawFormValueData for this field
|
|
26723
|
-
// creating form group and adding control into it in case caseField is of complext type and and part of formGroup
|
|
26724
|
-
var form_1 = new i2.FormGroup({});
|
|
26725
|
-
if (formGroup.controls[key].value) {
|
|
26726
|
-
Object.keys(formGroup.controls[key].value).forEach(function (item) {
|
|
26727
|
-
form_1.addControl(item, new i2.FormControl(formGroup.controls[key].value[item]));
|
|
26728
|
-
});
|
|
26729
|
-
}
|
|
26730
|
-
rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
|
|
26731
|
-
}
|
|
26732
|
-
}
|
|
26733
|
-
else {
|
|
26734
|
-
// Default case also handles collections of *all* types; the entire collection in rawFormValueData will be
|
|
26735
|
-
// replaced with the original from formatted_value
|
|
26736
|
-
// Use the CaseField's existing *formatted_value* from the parent, if available. (This is necessary for
|
|
26737
|
-
// Complex fields, whose sub-fields do not hold any values in the model.) Otherwise, use formatted_value
|
|
26738
|
-
// from the CaseField itself.
|
|
26739
|
-
if (parentField && parentField.formatted_value) {
|
|
26740
|
-
rawFormValueData[key] = parentField.formatted_value[caseField.id];
|
|
26741
|
-
}
|
|
26742
|
-
else {
|
|
26743
|
-
rawFormValueData[key] = caseField.formatted_value;
|
|
26744
|
-
}
|
|
26745
|
-
}
|
|
26746
|
-
}
|
|
26853
|
+
this.caseEdit.submitForm({
|
|
26854
|
+
eventTrigger: this.eventTrigger,
|
|
26855
|
+
form: this.editForm,
|
|
26856
|
+
submit: this.caseEdit.submit,
|
|
26857
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
26747
26858
|
});
|
|
26748
|
-
return rawFormValueData;
|
|
26749
26859
|
};
|
|
26750
|
-
|
|
26751
|
-
|
|
26752
|
-
|
|
26753
|
-
|
|
26754
|
-
|
|
26755
|
-
|
|
26756
|
-
|
|
26757
|
-
CaseEditSubmitComponent.prototype.replaceEmptyComplexFieldValues = function (data) {
|
|
26758
|
-
Object.keys(data).forEach(function (key) {
|
|
26759
|
-
if (!Array.isArray(data[key]) && typeof data[key] === 'object' && !FieldsUtils.containsNonEmptyValues(data[key])) {
|
|
26760
|
-
data[key] = null;
|
|
26761
|
-
}
|
|
26860
|
+
CaseEditSubmitComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
|
|
26861
|
+
this.caseEdit.onEventCanBeCompleted({
|
|
26862
|
+
eventTrigger: this.eventTrigger,
|
|
26863
|
+
eventCanBeCompleted: eventCanBeCompleted,
|
|
26864
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
26865
|
+
form: this.editForm,
|
|
26866
|
+
submit: this.caseEdit.submit,
|
|
26762
26867
|
});
|
|
26763
|
-
return data;
|
|
26764
|
-
};
|
|
26765
|
-
CaseEditSubmitComponent.prototype.getStatus = function (response) {
|
|
26766
|
-
return this.hasCallbackFailed(response) ? response['callback_response_status'] : response['delete_draft_response_status'];
|
|
26767
|
-
};
|
|
26768
|
-
CaseEditSubmitComponent.prototype.hasCallbackFailed = function (response) {
|
|
26769
|
-
return response['callback_response_status'] !== 'CALLBACK_COMPLETED';
|
|
26770
26868
|
};
|
|
26771
26869
|
Object.defineProperty(CaseEditSubmitComponent.prototype, "hasErrors", {
|
|
26772
26870
|
get: function () {
|
|
26773
|
-
|
|
26774
|
-
|
|
26775
|
-
&& this.error.callbackErrors.length;
|
|
26871
|
+
var _a, _b, _c;
|
|
26872
|
+
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;
|
|
26776
26873
|
},
|
|
26777
26874
|
enumerable: false,
|
|
26778
26875
|
configurable: true
|
|
@@ -26781,10 +26878,11 @@
|
|
|
26781
26878
|
this.caseEdit.navigateToPage(pageId);
|
|
26782
26879
|
};
|
|
26783
26880
|
CaseEditSubmitComponent.prototype.callbackErrorsNotify = function (errorContext) {
|
|
26784
|
-
this.ignoreWarning = errorContext.ignore_warning;
|
|
26881
|
+
this.caseEdit.ignoreWarning = errorContext.ignore_warning;
|
|
26785
26882
|
this.triggerText = errorContext.trigger_text;
|
|
26786
26883
|
};
|
|
26787
26884
|
CaseEditSubmitComponent.prototype.summaryCaseField = function (field) {
|
|
26885
|
+
/* istanbul ignore else */
|
|
26788
26886
|
if (null === this.editForm.get('data').get(field.id)) {
|
|
26789
26887
|
// If not in form, return field itself
|
|
26790
26888
|
return field;
|
|
@@ -26813,17 +26911,20 @@
|
|
|
26813
26911
|
return !this.caseFieldService.isReadOnly(field);
|
|
26814
26912
|
};
|
|
26815
26913
|
CaseEditSubmitComponent.prototype.checkYourAnswerFieldsToDisplayExists = function () {
|
|
26816
|
-
var e_1,
|
|
26914
|
+
var e_1, _d, e_2, _e;
|
|
26915
|
+
/* istanbul ignore else */
|
|
26817
26916
|
if (!this.eventTrigger.show_summary) {
|
|
26818
26917
|
return false;
|
|
26819
26918
|
}
|
|
26820
26919
|
try {
|
|
26821
|
-
for (var
|
|
26822
|
-
var page =
|
|
26920
|
+
for (var _f = __values(this.wizard.pages), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
26921
|
+
var page = _g.value;
|
|
26922
|
+
/* istanbul ignore else */
|
|
26823
26923
|
if (this.isShown(page)) {
|
|
26824
26924
|
try {
|
|
26825
|
-
for (var
|
|
26826
|
-
var field =
|
|
26925
|
+
for (var _h = (e_2 = void 0, __values(page.case_fields)), _j = _h.next(); !_j.done; _j = _h.next()) {
|
|
26926
|
+
var field = _j.value;
|
|
26927
|
+
/* istanbul ignore else */
|
|
26827
26928
|
if (this.canShowFieldInCYA(field)) {
|
|
26828
26929
|
// at least one field needs showing
|
|
26829
26930
|
return true;
|
|
@@ -26833,7 +26934,7 @@
|
|
|
26833
26934
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
26834
26935
|
finally {
|
|
26835
26936
|
try {
|
|
26836
|
-
if (
|
|
26937
|
+
if (_j && !_j.done && (_e = _h.return)) _e.call(_h);
|
|
26837
26938
|
}
|
|
26838
26939
|
finally { if (e_2) throw e_2.error; }
|
|
26839
26940
|
}
|
|
@@ -26843,7 +26944,7 @@
|
|
|
26843
26944
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
26844
26945
|
finally {
|
|
26845
26946
|
try {
|
|
26846
|
-
if (
|
|
26947
|
+
if (_g && !_g.done && (_d = _f.return)) _d.call(_f);
|
|
26847
26948
|
}
|
|
26848
26949
|
finally { if (e_1) throw e_1.error; }
|
|
26849
26950
|
}
|
|
@@ -26868,6 +26969,7 @@
|
|
|
26868
26969
|
return lastPage;
|
|
26869
26970
|
};
|
|
26870
26971
|
CaseEditSubmitComponent.prototype.previous = function () {
|
|
26972
|
+
/* istanbul ignore else */
|
|
26871
26973
|
if (this.hasPrevious()) {
|
|
26872
26974
|
this.navigateToPage(this.getLastPageShown().id);
|
|
26873
26975
|
}
|
|
@@ -26886,14 +26988,6 @@
|
|
|
26886
26988
|
CaseEditSubmitComponent.prototype.isSolicitor = function () {
|
|
26887
26989
|
return this.profile.isSolicitor();
|
|
26888
26990
|
};
|
|
26889
|
-
CaseEditSubmitComponent.prototype.buildConfirmation = function (response) {
|
|
26890
|
-
if (response['after_submit_callback_response']) {
|
|
26891
|
-
return new Confirmation(response['id'], response['callback_response_status'], response['after_submit_callback_response']['confirmation_header'], response['after_submit_callback_response']['confirmation_body']);
|
|
26892
|
-
}
|
|
26893
|
-
else {
|
|
26894
|
-
return null;
|
|
26895
|
-
}
|
|
26896
|
-
};
|
|
26897
26991
|
CaseEditSubmitComponent.prototype.sortFieldsByShowSummaryContent = function (fields) {
|
|
26898
26992
|
return this.orderService
|
|
26899
26993
|
.sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
|
|
@@ -26906,10 +27000,7 @@
|
|
|
26906
27000
|
return this.eventTrigger.case_fields;
|
|
26907
27001
|
};
|
|
26908
27002
|
CaseEditSubmitComponent.prototype.getCaseId = function () {
|
|
26909
|
-
return
|
|
26910
|
-
};
|
|
26911
|
-
CaseEditSubmitComponent.prototype.getEventId = function () {
|
|
26912
|
-
return this.editForm.value.event.id;
|
|
27003
|
+
return this.caseEdit.getCaseId(this.caseEdit.caseDetails);
|
|
26913
27004
|
};
|
|
26914
27005
|
CaseEditSubmitComponent.prototype.getCaseTitle = function () {
|
|
26915
27006
|
return (this.caseEdit.caseDetails && this.caseEdit.caseDetails.state &&
|
|
@@ -26936,16 +27027,16 @@
|
|
|
26936
27027
|
}
|
|
26937
27028
|
return a.show_summary_content_option - b.show_summary_content_option;
|
|
26938
27029
|
};
|
|
26939
|
-
CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(
|
|
26940
|
-
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", ""], [
|
|
27030
|
+
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)); };
|
|
27031
|
+
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) {
|
|
26941
27032
|
if (rf & 1) {
|
|
26942
|
-
i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template,
|
|
27033
|
+
i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 22, 16, "div", 0);
|
|
26943
27034
|
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
|
|
26944
27035
|
}
|
|
26945
27036
|
if (rf & 2) {
|
|
26946
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.
|
|
27037
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.caseEdit.isEventCompletionChecksRequired);
|
|
26947
27038
|
i0__namespace.ɵɵadvance(1);
|
|
26948
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.
|
|
27039
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
|
|
26949
27040
|
}
|
|
26950
27041
|
}, 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%}"] });
|
|
26951
27042
|
(function () {
|
|
@@ -26956,7 +27047,7 @@
|
|
|
26956
27047
|
templateUrl: 'case-edit-submit.html',
|
|
26957
27048
|
styleUrls: ['../case-edit.scss']
|
|
26958
27049
|
}]
|
|
26959
|
-
}], function () { return [{ type: CaseEditComponent }, { type:
|
|
27050
|
+
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1__namespace$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null);
|
|
26960
27051
|
})();
|
|
26961
27052
|
|
|
26962
27053
|
function CaseProgressComponent_div_0_Template(rf, ctx) {
|
|
@@ -27143,6 +27234,101 @@
|
|
|
27143
27234
|
}], null, null);
|
|
27144
27235
|
})();
|
|
27145
27236
|
|
|
27237
|
+
function CaseEditGenericErrorsComponent_div_0_Template(rf, ctx) {
|
|
27238
|
+
if (rf & 1) {
|
|
27239
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
27240
|
+
i0__namespace.ɵɵelementStart(1, "h1", 2);
|
|
27241
|
+
i0__namespace.ɵɵtext(2, " Something went wrong ");
|
|
27242
|
+
i0__namespace.ɵɵelementEnd();
|
|
27243
|
+
i0__namespace.ɵɵelementStart(3, "div", 3);
|
|
27244
|
+
i0__namespace.ɵɵelementStart(4, "p");
|
|
27245
|
+
i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
|
|
27246
|
+
i0__namespace.ɵɵelementEnd();
|
|
27247
|
+
i0__namespace.ɵɵelementStart(6, "p");
|
|
27248
|
+
i0__namespace.ɵɵelementStart(7, "a", 4);
|
|
27249
|
+
i0__namespace.ɵɵtext(8, "Contact us");
|
|
27250
|
+
i0__namespace.ɵɵelementEnd();
|
|
27251
|
+
i0__namespace.ɵɵtext(9, " if you're still having problems.");
|
|
27252
|
+
i0__namespace.ɵɵelementEnd();
|
|
27253
|
+
i0__namespace.ɵɵelementEnd();
|
|
27254
|
+
i0__namespace.ɵɵelementEnd();
|
|
27255
|
+
}
|
|
27256
|
+
}
|
|
27257
|
+
function CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template(rf, ctx) {
|
|
27258
|
+
if (rf & 1) {
|
|
27259
|
+
i0__namespace.ɵɵelementStart(0, "li", 9);
|
|
27260
|
+
i0__namespace.ɵɵtext(1);
|
|
27261
|
+
i0__namespace.ɵɵelementEnd();
|
|
27262
|
+
}
|
|
27263
|
+
if (rf & 2) {
|
|
27264
|
+
var fieldError_r4 = ctx.$implicit;
|
|
27265
|
+
i0__namespace.ɵɵadvance(1);
|
|
27266
|
+
i0__namespace.ɵɵtextInterpolate(fieldError_r4.message);
|
|
27267
|
+
}
|
|
27268
|
+
}
|
|
27269
|
+
function CaseEditGenericErrorsComponent_div_1_ul_5_Template(rf, ctx) {
|
|
27270
|
+
if (rf & 1) {
|
|
27271
|
+
i0__namespace.ɵɵelementStart(0, "ul", 7);
|
|
27272
|
+
i0__namespace.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template, 2, 1, "li", 8);
|
|
27273
|
+
i0__namespace.ɵɵelementEnd();
|
|
27274
|
+
}
|
|
27275
|
+
if (rf & 2) {
|
|
27276
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
27277
|
+
i0__namespace.ɵɵadvance(1);
|
|
27278
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r2.error.details.field_errors);
|
|
27279
|
+
}
|
|
27280
|
+
}
|
|
27281
|
+
function CaseEditGenericErrorsComponent_div_1_Template(rf, ctx) {
|
|
27282
|
+
if (rf & 1) {
|
|
27283
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
27284
|
+
i0__namespace.ɵɵelementStart(1, "h3", 5);
|
|
27285
|
+
i0__namespace.ɵɵtext(2, " The event could not be created ");
|
|
27286
|
+
i0__namespace.ɵɵelementEnd();
|
|
27287
|
+
i0__namespace.ɵɵelementStart(3, "p");
|
|
27288
|
+
i0__namespace.ɵɵtext(4);
|
|
27289
|
+
i0__namespace.ɵɵelementEnd();
|
|
27290
|
+
i0__namespace.ɵɵtemplate(5, CaseEditGenericErrorsComponent_div_1_ul_5_Template, 2, 1, "ul", 6);
|
|
27291
|
+
i0__namespace.ɵɵelementEnd();
|
|
27292
|
+
}
|
|
27293
|
+
if (rf & 2) {
|
|
27294
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
27295
|
+
i0__namespace.ɵɵadvance(4);
|
|
27296
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r1.error.message);
|
|
27297
|
+
i0__namespace.ɵɵadvance(1);
|
|
27298
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.error.details == null ? null : ctx_r1.error.details.field_errors);
|
|
27299
|
+
}
|
|
27300
|
+
}
|
|
27301
|
+
var CaseEditGenericErrorsComponent = /** @class */ (function () {
|
|
27302
|
+
function CaseEditGenericErrorsComponent() {
|
|
27303
|
+
}
|
|
27304
|
+
return CaseEditGenericErrorsComponent;
|
|
27305
|
+
}());
|
|
27306
|
+
CaseEditGenericErrorsComponent.ɵfac = function CaseEditGenericErrorsComponent_Factory(t) { return new (t || CaseEditGenericErrorsComponent)(); };
|
|
27307
|
+
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) {
|
|
27308
|
+
if (rf & 1) {
|
|
27309
|
+
i0__namespace.ɵɵtemplate(0, CaseEditGenericErrorsComponent_div_0_Template, 10, 0, "div", 0);
|
|
27310
|
+
i0__namespace.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_Template, 6, 2, "div", 0);
|
|
27311
|
+
}
|
|
27312
|
+
if (rf & 2) {
|
|
27313
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.error && (!(ctx.error.callbackErrors || ctx.error.callbackWarnings || ctx.error.details) && !ctx.error.message));
|
|
27314
|
+
i0__namespace.ɵɵadvance(1);
|
|
27315
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.error && (ctx.error.details || ctx.error.message));
|
|
27316
|
+
}
|
|
27317
|
+
}, 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%}"] });
|
|
27318
|
+
(function () {
|
|
27319
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEditGenericErrorsComponent, [{
|
|
27320
|
+
type: i0.Component,
|
|
27321
|
+
args: [{
|
|
27322
|
+
selector: 'ccd-case-edit-generic-errors',
|
|
27323
|
+
templateUrl: 'case-edit-generic-errors.component.html',
|
|
27324
|
+
styleUrls: ['../case-edit.scss'],
|
|
27325
|
+
providers: []
|
|
27326
|
+
}]
|
|
27327
|
+
}], null, { error: [{
|
|
27328
|
+
type: i0.Input
|
|
27329
|
+
}] });
|
|
27330
|
+
})();
|
|
27331
|
+
|
|
27146
27332
|
var _c0$e = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
|
|
27147
27333
|
var CaseEventCompletionTaskCancelledComponent = /** @class */ (function () {
|
|
27148
27334
|
function CaseEventCompletionTaskCancelledComponent(parentComponent) {
|
|
@@ -27416,10 +27602,10 @@
|
|
|
27416
27602
|
});
|
|
27417
27603
|
switch (portalType) {
|
|
27418
27604
|
case EventCompletionPortalTypes.TaskCancelled:
|
|
27419
|
-
this.selectedComponentPortal = new i6$
|
|
27605
|
+
this.selectedComponentPortal = new i6$1.ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
|
|
27420
27606
|
break;
|
|
27421
27607
|
case EventCompletionPortalTypes.TaskReassigned:
|
|
27422
|
-
this.selectedComponentPortal = new i6$
|
|
27608
|
+
this.selectedComponentPortal = new i6$1.ComponentPortal(CaseEventCompletionTaskReassignedComponent, null, injector);
|
|
27423
27609
|
break;
|
|
27424
27610
|
}
|
|
27425
27611
|
};
|
|
@@ -27433,7 +27619,7 @@
|
|
|
27433
27619
|
if (rf & 2) {
|
|
27434
27620
|
i0__namespace.ɵɵproperty("cdkPortalOutlet", ctx.selectedComponentPortal);
|
|
27435
27621
|
}
|
|
27436
|
-
}, directives: [i6__namespace$
|
|
27622
|
+
}, directives: [i6__namespace$1.CdkPortalOutlet], encapsulation: 2 });
|
|
27437
27623
|
(function () {
|
|
27438
27624
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEventCompletionComponent, [{
|
|
27439
27625
|
type: i0.Component,
|
|
@@ -27493,7 +27679,7 @@
|
|
|
27493
27679
|
LabelSubstitutorModule,
|
|
27494
27680
|
ConditionalShowModule,
|
|
27495
27681
|
ErrorsModule,
|
|
27496
|
-
i6$
|
|
27682
|
+
i6$1.PortalModule,
|
|
27497
27683
|
LoadingSpinnerModule,
|
|
27498
27684
|
BannersModule
|
|
27499
27685
|
]] });
|
|
@@ -27507,7 +27693,8 @@
|
|
|
27507
27693
|
CaseEventCompletionTaskCancelledComponent,
|
|
27508
27694
|
CaseEventCompletionTaskReassignedComponent,
|
|
27509
27695
|
CaseCreateComponent,
|
|
27510
|
-
CaseProgressComponent
|
|
27696
|
+
CaseProgressComponent,
|
|
27697
|
+
CaseEditGenericErrorsComponent], imports: [i1.CommonModule,
|
|
27511
27698
|
i1$1.RouterModule,
|
|
27512
27699
|
i2.FormsModule,
|
|
27513
27700
|
i2.ReactiveFormsModule,
|
|
@@ -27516,7 +27703,7 @@
|
|
|
27516
27703
|
LabelSubstitutorModule,
|
|
27517
27704
|
ConditionalShowModule,
|
|
27518
27705
|
ErrorsModule,
|
|
27519
|
-
i6$
|
|
27706
|
+
i6$1.PortalModule,
|
|
27520
27707
|
LoadingSpinnerModule,
|
|
27521
27708
|
BannersModule], exports: [CaseEditConfirmComponent,
|
|
27522
27709
|
CaseEditComponent,
|
|
@@ -27541,7 +27728,7 @@
|
|
|
27541
27728
|
LabelSubstitutorModule,
|
|
27542
27729
|
ConditionalShowModule,
|
|
27543
27730
|
ErrorsModule,
|
|
27544
|
-
i6$
|
|
27731
|
+
i6$1.PortalModule,
|
|
27545
27732
|
LoadingSpinnerModule,
|
|
27546
27733
|
BannersModule
|
|
27547
27734
|
],
|
|
@@ -27555,7 +27742,8 @@
|
|
|
27555
27742
|
CaseEventCompletionTaskCancelledComponent,
|
|
27556
27743
|
CaseEventCompletionTaskReassignedComponent,
|
|
27557
27744
|
CaseCreateComponent,
|
|
27558
|
-
CaseProgressComponent
|
|
27745
|
+
CaseProgressComponent,
|
|
27746
|
+
CaseEditGenericErrorsComponent
|
|
27559
27747
|
],
|
|
27560
27748
|
exports: [
|
|
27561
27749
|
CaseEditConfirmComponent,
|
|
@@ -27600,9 +27788,10 @@
|
|
|
27600
27788
|
}], null, null);
|
|
27601
27789
|
})();
|
|
27602
27790
|
i0__namespace.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1__namespace.NgIf, MarkdownComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [CcdCaseTitlePipe, CaseReferencePipe]);
|
|
27603
|
-
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
|
|
27791
|
+
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,
|
|
27792
|
+
CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1__namespace.AsyncPipe]);
|
|
27604
27793
|
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]);
|
|
27605
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent,
|
|
27794
|
+
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]);
|
|
27606
27795
|
i0__namespace.ɵɵsetComponentScope(CaseCreateComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
27607
27796
|
i0__namespace.ɵɵsetComponentScope(CaseProgressComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
27608
27797
|
|
|
@@ -30001,7 +30190,9 @@
|
|
|
30001
30190
|
};
|
|
30002
30191
|
CaseEventTriggerComponent.prototype.cancel = function () {
|
|
30003
30192
|
if (this.router.url && this.router.url.includes('linkCases')) {
|
|
30004
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]
|
|
30193
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
|
|
30194
|
+
window.location.hash = 'Linked cases';
|
|
30195
|
+
});
|
|
30005
30196
|
}
|
|
30006
30197
|
else {
|
|
30007
30198
|
return this.router.navigate([this.parentUrl]);
|
|
@@ -30599,9 +30790,9 @@
|
|
|
30599
30790
|
i0__namespace.ɵɵelementEnd();
|
|
30600
30791
|
}
|
|
30601
30792
|
if (rf & 2) {
|
|
30602
|
-
var
|
|
30793
|
+
var field_r24 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
30603
30794
|
i0__namespace.ɵɵadvance(2);
|
|
30604
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
30795
|
+
i0__namespace.ɵɵtextInterpolate(field_r24.label);
|
|
30605
30796
|
}
|
|
30606
30797
|
}
|
|
30607
30798
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) {
|
|
@@ -30616,14 +30807,14 @@
|
|
|
30616
30807
|
i0__namespace.ɵɵelementEnd();
|
|
30617
30808
|
}
|
|
30618
30809
|
if (rf & 2) {
|
|
30619
|
-
var
|
|
30620
|
-
var
|
|
30810
|
+
var field_r24 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30811
|
+
var ctx_r25 = i0__namespace.ɵɵnextContext(4);
|
|
30621
30812
|
i0__namespace.ɵɵadvance(1);
|
|
30622
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
30813
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r25.isFieldToHaveNoLabel(field_r24));
|
|
30623
30814
|
i0__namespace.ɵɵadvance(1);
|
|
30624
|
-
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
30815
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
30625
30816
|
i0__namespace.ɵɵadvance(2);
|
|
30626
|
-
i0__namespace.ɵɵproperty("topLevelFormGroup",
|
|
30817
|
+
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
|
|
30627
30818
|
}
|
|
30628
30819
|
}
|
|
30629
30820
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
|
|
@@ -30637,12 +30828,12 @@
|
|
|
30637
30828
|
i0__namespace.ɵɵelementEnd();
|
|
30638
30829
|
}
|
|
30639
30830
|
if (rf & 2) {
|
|
30640
|
-
var
|
|
30641
|
-
var
|
|
30831
|
+
var field_r24 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30832
|
+
var ctx_r26 = i0__namespace.ɵɵnextContext(4);
|
|
30642
30833
|
i0__namespace.ɵɵadvance(1);
|
|
30643
|
-
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
30834
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
30644
30835
|
i0__namespace.ɵɵadvance(2);
|
|
30645
|
-
i0__namespace.ɵɵproperty("topLevelFormGroup",
|
|
30836
|
+
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r26.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r26.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r26.markdownUseHrefAsRouterLink);
|
|
30646
30837
|
}
|
|
30647
30838
|
}
|
|
30648
30839
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) {
|
|
@@ -30658,12 +30849,12 @@
|
|
|
30658
30849
|
i0__namespace.ɵɵelementContainerEnd();
|
|
30659
30850
|
}
|
|
30660
30851
|
if (rf & 2) {
|
|
30661
|
-
var
|
|
30662
|
-
var
|
|
30852
|
+
var field_r24 = ctx.$implicit;
|
|
30853
|
+
var ctx_r23 = i0__namespace.ɵɵnextContext(4);
|
|
30663
30854
|
i0__namespace.ɵɵadvance(1);
|
|
30664
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
30855
|
+
i0__namespace.ɵɵproperty("caseField", field_r24)("contextFields", ctx_r23.caseFields)("hidden", field_r24.hidden);
|
|
30665
30856
|
i0__namespace.ɵɵadvance(1);
|
|
30666
|
-
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(3, 6,
|
|
30857
|
+
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(3, 6, field_r24));
|
|
30667
30858
|
i0__namespace.ɵɵadvance(2);
|
|
30668
30859
|
i0__namespace.ɵɵproperty("ngSwitchCase", true);
|
|
30669
30860
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -30683,10 +30874,10 @@
|
|
|
30683
30874
|
}
|
|
30684
30875
|
if (rf & 2) {
|
|
30685
30876
|
var tab_r20 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30686
|
-
var
|
|
30877
|
+
var ctx_r22 = i0__namespace.ɵɵnextContext(2);
|
|
30687
30878
|
i0__namespace.ɵɵclassMap(tab_r20.id);
|
|
30688
30879
|
i0__namespace.ɵɵadvance(2);
|
|
30689
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(11, _c1$3, i0__namespace.ɵɵpipeBind1(4, 9, tab_r20),
|
|
30880
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(11, _c1$3, i0__namespace.ɵɵpipeBind1(4, 9, tab_r20), ctx_r22.formGroup.controls["data"])));
|
|
30690
30881
|
}
|
|
30691
30882
|
}
|
|
30692
30883
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template(rf, ctx) {
|
|
@@ -30705,8 +30896,8 @@
|
|
|
30705
30896
|
i0__namespace.ɵɵelement(0, "mat-tab", 26);
|
|
30706
30897
|
}
|
|
30707
30898
|
if (rf & 2) {
|
|
30708
|
-
var
|
|
30709
|
-
i0__namespace.ɵɵproperty("id",
|
|
30899
|
+
var tab_r32 = ctx.$implicit;
|
|
30900
|
+
i0__namespace.ɵɵproperty("id", tab_r32.id)("label", tab_r32.label);
|
|
30710
30901
|
}
|
|
30711
30902
|
}
|
|
30712
30903
|
function CaseFullAccessViewComponent_ng_container_12_router_outlet_6_Template(rf, ctx) {
|
|
@@ -30716,10 +30907,10 @@
|
|
|
30716
30907
|
}
|
|
30717
30908
|
function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) {
|
|
30718
30909
|
if (rf & 1) {
|
|
30719
|
-
var
|
|
30910
|
+
var _r34_1 = i0__namespace.ɵɵgetCurrentView();
|
|
30720
30911
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
30721
30912
|
i0__namespace.ɵɵelementStart(1, "mat-tab-group", 23, 24);
|
|
30722
|
-
i0__namespace.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
30913
|
+
i0__namespace.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r34_1); var ctx_r33 = i0__namespace.ɵɵnextContext(); return ctx_r33.tabChanged($event); });
|
|
30723
30914
|
i0__namespace.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template, 1, 2, "mat-tab", 25);
|
|
30724
30915
|
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template, 2, 2, "mat-tab", 25);
|
|
30725
30916
|
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template, 1, 2, "mat-tab", 25);
|
|
@@ -30976,8 +31167,10 @@
|
|
|
30976
31167
|
this.router.navigate([id], { relativeTo: this.route });
|
|
30977
31168
|
}
|
|
30978
31169
|
else {
|
|
30979
|
-
var
|
|
30980
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]
|
|
31170
|
+
var label_1 = tabChangeEvent.tab.textLabel;
|
|
31171
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
|
|
31172
|
+
window.location.hash = label_1;
|
|
31173
|
+
});
|
|
30981
31174
|
}
|
|
30982
31175
|
};
|
|
30983
31176
|
CaseFullAccessViewComponent.prototype.onLinkClicked = function (triggerOutputEventText) {
|
|
@@ -31379,24 +31572,23 @@
|
|
|
31379
31572
|
};
|
|
31380
31573
|
CaseViewerComponent.prototype.loadCaseDetails = function () {
|
|
31381
31574
|
var _this = this;
|
|
31382
|
-
if (this.route.snapshot.data.case) {
|
|
31383
|
-
this.caseDetails = this.route.snapshot.data.case;
|
|
31384
|
-
this.caseDetails.tabs = __spread(new Map(this.caseDetails.tabs.map(function (item) { return [item['label'], item]; })).values());
|
|
31385
|
-
this.setUserAccessType(this.caseDetails);
|
|
31386
|
-
}
|
|
31387
|
-
else {
|
|
31575
|
+
if (!this.route.snapshot.data.case) {
|
|
31388
31576
|
this.caseSubscription = this.caseNotifier.caseView.subscribe(function (caseDetails) {
|
|
31389
31577
|
_this.caseDetails = caseDetails;
|
|
31390
31578
|
_this.setUserAccessType(_this.caseDetails);
|
|
31391
31579
|
});
|
|
31392
31580
|
}
|
|
31581
|
+
else {
|
|
31582
|
+
this.caseDetails = this.route.snapshot.data.case;
|
|
31583
|
+
this.setUserAccessType(this.caseDetails);
|
|
31584
|
+
}
|
|
31393
31585
|
};
|
|
31394
31586
|
CaseViewerComponent.prototype.setUserAccessType = function (caseDetails) {
|
|
31395
31587
|
if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
|
|
31396
|
-
var
|
|
31397
|
-
var
|
|
31398
|
-
this.accessGranted =
|
|
31399
|
-
this.userAccessType =
|
|
31588
|
+
var access_process = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID; });
|
|
31589
|
+
var access_granted = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID; });
|
|
31590
|
+
this.accessGranted = access_granted ? access_granted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
|
|
31591
|
+
this.userAccessType = access_process ? access_process.value : null;
|
|
31400
31592
|
}
|
|
31401
31593
|
};
|
|
31402
31594
|
CaseViewerComponent.prototype.isDataLoaded = function () {
|
|
@@ -31410,12 +31602,12 @@
|
|
|
31410
31602
|
};
|
|
31411
31603
|
return CaseViewerComponent;
|
|
31412
31604
|
}());
|
|
31413
|
-
CaseViewerComponent.
|
|
31605
|
+
CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID = '[ACCESS_PROCESS]';
|
|
31414
31606
|
CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID = '[ACCESS_GRANTED]';
|
|
31415
31607
|
CaseViewerComponent.NON_STANDARD_USER_ACCESS_TYPES = ['CHALLENGED', 'SPECIFIC'];
|
|
31416
31608
|
CaseViewerComponent.BASIC_USER_ACCESS_TYPES = 'BASIC';
|
|
31417
31609
|
CaseViewerComponent.ɵfac = function CaseViewerComponent_Factory(t) { return new (t || CaseViewerComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
31418
|
-
CaseViewerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "accessType", "caseDetails", 4, "ngIf"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs", 4, "ngIf"], [3, "accessType", "caseDetails"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs"]], template: function CaseViewerComponent_Template(rf, ctx) {
|
|
31610
|
+
CaseViewerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs", caseDetails: "caseDetails" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "accessType", "caseDetails", 4, "ngIf"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs", 4, "ngIf"], [3, "accessType", "caseDetails"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs"]], template: function CaseViewerComponent_Template(rf, ctx) {
|
|
31419
31611
|
if (rf & 1) {
|
|
31420
31612
|
i0__namespace.ɵɵtemplate(0, CaseViewerComponent_div_0_Template, 3, 2, "div", 0);
|
|
31421
31613
|
}
|
|
@@ -31438,6 +31630,8 @@
|
|
|
31438
31630
|
type: i0.Input
|
|
31439
31631
|
}], appendedTabs: [{
|
|
31440
31632
|
type: i0.Input
|
|
31633
|
+
}], caseDetails: [{
|
|
31634
|
+
type: i0.Input
|
|
31441
31635
|
}] });
|
|
31442
31636
|
})();
|
|
31443
31637
|
|