@hmcts/ccd-case-ui-toolkit 6.14.5-duplicate-tabs → 6.15.0-6.16-rc-1
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 +1196 -986
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/app.config.js +1 -1
- package/esm2015/lib/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 +51 -36
- 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/base-field/payment-field.component.js +4 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +79 -29
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +22 -17
- package/esm2015/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js +1 -1
- package/esm2015/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.js +45 -22
- package/esm2015/lib/shared/components/palette/linked-cases/components/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/components/palette/payment/case-payment-history-viewer-field.component.js +3 -3
- package/esm2015/lib/shared/components/palette/waystopay/waystopay-field.component.js +4 -4
- package/esm2015/lib/shared/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 +958 -764
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +2 -0
- package/lib/app.config.d.ts.map +1 -1
- package/lib/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 +6 -2
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/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/base-field/payment-field.component.d.ts +1 -0
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/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,12 +10473,12 @@
|
|
|
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(
|
|
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); });
|
|
10197
10482
|
i0__namespace.ɵɵtext(4);
|
|
10198
10483
|
i0__namespace.ɵɵelementEnd();
|
|
10199
10484
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -10201,18 +10486,18 @@
|
|
|
10201
10486
|
i0__namespace.ɵɵelementEnd();
|
|
10202
10487
|
}
|
|
10203
10488
|
if (rf & 2) {
|
|
10204
|
-
var
|
|
10489
|
+
var validationError_r14 = ctx.$implicit;
|
|
10205
10490
|
i0__namespace.ɵɵadvance(4);
|
|
10206
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10491
|
+
i0__namespace.ɵɵtextInterpolate(validationError_r14.message);
|
|
10207
10492
|
}
|
|
10208
10493
|
}
|
|
10209
10494
|
function CaseEditPageComponent_div_7_Template(rf, ctx) {
|
|
10210
10495
|
if (rf & 1) {
|
|
10211
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
10212
|
-
i0__namespace.ɵɵelementStart(1, "h2",
|
|
10496
|
+
i0__namespace.ɵɵelementStart(0, "div", 16);
|
|
10497
|
+
i0__namespace.ɵɵelementStart(1, "h2", 17);
|
|
10213
10498
|
i0__namespace.ɵɵtext(2, " There is a problem ");
|
|
10214
10499
|
i0__namespace.ɵɵelementEnd();
|
|
10215
|
-
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_div_7_div_3_Template, 5, 1, "div",
|
|
10500
|
+
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_div_7_div_3_Template, 5, 1, "div", 18);
|
|
10216
10501
|
i0__namespace.ɵɵelementEnd();
|
|
10217
10502
|
}
|
|
10218
10503
|
if (rf & 2) {
|
|
@@ -10221,144 +10506,92 @@
|
|
|
10221
10506
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r7.validationErrors);
|
|
10222
10507
|
}
|
|
10223
10508
|
}
|
|
10224
|
-
function
|
|
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) {
|
|
10509
|
+
function CaseEditPageComponent_form_11_ccd_case_edit_form_3_Template(rf, ctx) {
|
|
10245
10510
|
if (rf & 1) {
|
|
10246
|
-
i0__namespace.ɵɵ
|
|
10247
|
-
i0__namespace.ɵɵ
|
|
10248
|
-
i0__namespace.ɵɵ
|
|
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);
|
|
10260
|
-
i0__namespace.ɵɵelementEnd();
|
|
10261
|
-
}
|
|
10262
|
-
if (rf & 2) {
|
|
10263
|
-
var ctx_r18 = i0__namespace.ɵɵnextContext(2);
|
|
10264
|
-
i0__namespace.ɵɵadvance(1);
|
|
10265
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r18.error.details.field_errors);
|
|
10266
|
-
}
|
|
10267
|
-
}
|
|
10268
|
-
function CaseEditPageComponent_div_9_Template(rf, ctx) {
|
|
10269
|
-
if (rf & 1) {
|
|
10270
|
-
i0__namespace.ɵɵelementStart(0, "div", 21);
|
|
10271
|
-
i0__namespace.ɵɵelementStart(1, "h3", 25);
|
|
10272
|
-
i0__namespace.ɵɵtext(2, " The event could not be created ");
|
|
10273
|
-
i0__namespace.ɵɵelementEnd();
|
|
10274
|
-
i0__namespace.ɵɵelementStart(3, "p");
|
|
10275
|
-
i0__namespace.ɵɵtext(4);
|
|
10276
|
-
i0__namespace.ɵɵelementEnd();
|
|
10277
|
-
i0__namespace.ɵɵtemplate(5, CaseEditPageComponent_div_9_ul_5_Template, 2, 1, "ul", 26);
|
|
10278
|
-
i0__namespace.ɵɵelementEnd();
|
|
10279
|
-
}
|
|
10280
|
-
if (rf & 2) {
|
|
10281
|
-
var ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
10282
|
-
i0__namespace.ɵɵadvance(4);
|
|
10283
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r9.error.message);
|
|
10284
|
-
i0__namespace.ɵɵadvance(1);
|
|
10285
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r9.error.details == null ? null : ctx_r9.error.details.field_errors);
|
|
10286
|
-
}
|
|
10287
|
-
}
|
|
10288
|
-
function CaseEditPageComponent_form_12_ccd_case_edit_form_3_Template(rf, ctx) {
|
|
10289
|
-
if (rf & 1) {
|
|
10290
|
-
var _r24_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10291
|
-
i0__namespace.ɵɵelementStart(0, "ccd-case-edit-form", 40);
|
|
10292
|
-
i0__namespace.ɵɵlistener("valuesChanged", function CaseEditPageComponent_form_12_ccd_case_edit_form_3_Template_ccd_case_edit_form_valuesChanged_0_listener($event) { i0__namespace.ɵɵrestoreView(_r24_1); var ctx_r23 = i0__namespace.ɵɵnextContext(2); return ctx_r23.applyValuesChanged($event); });
|
|
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) {
|
|
11624
|
+
if (rf & 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) {
|
|
11341
11638
|
if (rf & 1) {
|
|
11342
|
-
i0__namespace.ɵɵ
|
|
11343
|
-
i0__namespace.ɵɵelementStart(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;
|
|
@@ -19129,6 +19501,9 @@
|
|
|
19129
19501
|
PaymentField.prototype.getRefundsUrl = function () {
|
|
19130
19502
|
return this.appConfig.getRefundsUrl();
|
|
19131
19503
|
};
|
|
19504
|
+
PaymentField.prototype.getNotificationUrl = function () {
|
|
19505
|
+
return this.appConfig.getNotificationUrl();
|
|
19506
|
+
};
|
|
19132
19507
|
PaymentField.prototype.getUserRoles = function () {
|
|
19133
19508
|
var userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
|
|
19134
19509
|
if (!userDetails || !userDetails.hasOwnProperty('roles')) {
|
|
@@ -19154,12 +19529,12 @@
|
|
|
19154
19529
|
return CasePaymentHistoryViewerFieldComponent;
|
|
19155
19530
|
}(PaymentField));
|
|
19156
19531
|
CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
19157
|
-
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
19532
|
+
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 16, consts: [[3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) {
|
|
19158
19533
|
if (rf & 1) {
|
|
19159
19534
|
i0__namespace.ɵɵelement(0, "ccpay-payment-lib", 0);
|
|
19160
19535
|
}
|
|
19161
19536
|
if (rf & 2) {
|
|
19162
|
-
i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
19537
|
+
i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx.getNotificationUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
19163
19538
|
}
|
|
19164
19539
|
}, directives: [i3__namespace.PaymentLibComponent], encapsulation: 2 });
|
|
19165
19540
|
(function () {
|
|
@@ -19792,7 +20167,7 @@
|
|
|
19792
20167
|
}
|
|
19793
20168
|
if (rf & 2) {
|
|
19794
20169
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19795
|
-
i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
20170
|
+
i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx_r0.getNotificationUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
19796
20171
|
}
|
|
19797
20172
|
}
|
|
19798
20173
|
var WaysToPayFieldComponent = /** @class */ (function (_super) {
|
|
@@ -19806,9 +20181,9 @@
|
|
|
19806
20181
|
return WaysToPayFieldComponent;
|
|
19807
20182
|
}(PaymentField));
|
|
19808
20183
|
WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
19809
|
-
WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
|
|
20184
|
+
WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
|
|
19810
20185
|
if (rf & 1) {
|
|
19811
|
-
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1,
|
|
20186
|
+
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
|
|
19812
20187
|
}
|
|
19813
20188
|
if (rf & 2) {
|
|
19814
20189
|
i0__namespace.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
|
|
@@ -20694,7 +21069,7 @@
|
|
|
20694
21069
|
i0__namespace.ɵɵadvance(4);
|
|
20695
21070
|
i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
20696
21071
|
}
|
|
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:-
|
|
21072
|
+
}, 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
21073
|
(function () {
|
|
20699
21074
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
20700
21075
|
type: i0.Component,
|
|
@@ -21307,21 +21682,21 @@
|
|
|
21307
21682
|
i0__namespace.ɵɵelementEnd();
|
|
21308
21683
|
}
|
|
21309
21684
|
}
|
|
21310
|
-
function
|
|
21685
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
|
|
21311
21686
|
if (rf & 1) {
|
|
21312
21687
|
i0__namespace.ɵɵelementStart(0, "strong", 19);
|
|
21313
21688
|
i0__namespace.ɵɵtext(1, "Active");
|
|
21314
21689
|
i0__namespace.ɵɵelementEnd();
|
|
21315
21690
|
}
|
|
21316
21691
|
}
|
|
21317
|
-
function
|
|
21692
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template(rf, ctx) {
|
|
21318
21693
|
if (rf & 1) {
|
|
21319
21694
|
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
21320
21695
|
i0__namespace.ɵɵtext(1, "Inactive");
|
|
21321
21696
|
i0__namespace.ɵɵelementEnd();
|
|
21322
21697
|
}
|
|
21323
21698
|
}
|
|
21324
|
-
function
|
|
21699
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_19_Template(rf, ctx) {
|
|
21325
21700
|
if (rf & 1) {
|
|
21326
21701
|
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
21327
21702
|
i0__namespace.ɵɵtext(1, "Requested");
|
|
@@ -21338,22 +21713,25 @@
|
|
|
21338
21713
|
i0__namespace.ɵɵelementStart(4, "div");
|
|
21339
21714
|
i0__namespace.ɵɵtext(5);
|
|
21340
21715
|
i0__namespace.ɵɵelementEnd();
|
|
21341
|
-
i0__namespace.ɵɵ
|
|
21342
|
-
i0__namespace.ɵɵelementStart(6, "td", 16);
|
|
21716
|
+
i0__namespace.ɵɵelementStart(6, "div");
|
|
21343
21717
|
i0__namespace.ɵɵtext(7);
|
|
21344
21718
|
i0__namespace.ɵɵelementEnd();
|
|
21719
|
+
i0__namespace.ɵɵelementEnd();
|
|
21345
21720
|
i0__namespace.ɵɵelementStart(8, "td", 16);
|
|
21346
21721
|
i0__namespace.ɵɵtext(9);
|
|
21347
|
-
i0__namespace.ɵɵpipe(10, "date");
|
|
21348
21722
|
i0__namespace.ɵɵelementEnd();
|
|
21349
|
-
i0__namespace.ɵɵelementStart(
|
|
21350
|
-
i0__namespace.ɵɵtext(
|
|
21351
|
-
i0__namespace.ɵɵpipe(
|
|
21723
|
+
i0__namespace.ɵɵelementStart(10, "td", 16);
|
|
21724
|
+
i0__namespace.ɵɵtext(11);
|
|
21725
|
+
i0__namespace.ɵɵpipe(12, "date");
|
|
21726
|
+
i0__namespace.ɵɵelementEnd();
|
|
21727
|
+
i0__namespace.ɵɵelementStart(13, "td", 16);
|
|
21728
|
+
i0__namespace.ɵɵtext(14);
|
|
21729
|
+
i0__namespace.ɵɵpipe(15, "date");
|
|
21352
21730
|
i0__namespace.ɵɵelementEnd();
|
|
21353
|
-
i0__namespace.ɵɵelementStart(
|
|
21354
|
-
i0__namespace.ɵɵtemplate(
|
|
21355
|
-
i0__namespace.ɵɵtemplate(
|
|
21356
|
-
i0__namespace.ɵɵtemplate(
|
|
21731
|
+
i0__namespace.ɵɵelementStart(16, "td", 16);
|
|
21732
|
+
i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 17);
|
|
21733
|
+
i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template, 2, 0, "strong", 18);
|
|
21734
|
+
i0__namespace.ɵɵtemplate(19, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_19_Template, 2, 0, "strong", 18);
|
|
21357
21735
|
i0__namespace.ɵɵelementEnd();
|
|
21358
21736
|
i0__namespace.ɵɵelementEnd();
|
|
21359
21737
|
}
|
|
@@ -21365,11 +21743,13 @@
|
|
|
21365
21743
|
i0__namespace.ɵɵadvance(2);
|
|
21366
21744
|
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.otherDescription);
|
|
21367
21745
|
i0__namespace.ɵɵadvance(2);
|
|
21746
|
+
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.subTypeValue);
|
|
21747
|
+
i0__namespace.ɵɵadvance(2);
|
|
21368
21748
|
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
|
|
21369
21749
|
i0__namespace.ɵɵadvance(2);
|
|
21370
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(
|
|
21750
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(12, 9, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
|
|
21371
21751
|
i0__namespace.ɵɵadvance(3);
|
|
21372
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(
|
|
21752
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(15, 12, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
|
|
21373
21753
|
i0__namespace.ɵɵadvance(3);
|
|
21374
21754
|
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
|
|
21375
21755
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -21381,7 +21761,7 @@
|
|
|
21381
21761
|
function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
|
|
21382
21762
|
if (rf & 1) {
|
|
21383
21763
|
i0__namespace.ɵɵelementStart(0, "tbody", 10);
|
|
21384
|
-
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template,
|
|
21764
|
+
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 20, 15, "tr", 14);
|
|
21385
21765
|
i0__namespace.ɵɵelementEnd();
|
|
21386
21766
|
}
|
|
21387
21767
|
if (rf & 2) {
|
|
@@ -22044,7 +22424,7 @@
|
|
|
22044
22424
|
i0__namespace.ɵɵadvance(1);
|
|
22045
22425
|
i0__namespace.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
|
|
22046
22426
|
}
|
|
22047
|
-
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i3__namespace$1.MatInput, i2__namespace.DefaultValueAccessor,
|
|
22427
|
+
}, 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
22428
|
(function () {
|
|
22049
22429
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
|
|
22050
22430
|
type: i0.Component,
|
|
@@ -23963,7 +24343,7 @@
|
|
|
23963
24343
|
};
|
|
23964
24344
|
return DatetimePickerComponent;
|
|
23965
24345
|
}(AbstractFormFieldComponent));
|
|
23966
|
-
DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4.NGX_MAT_DATE_FORMATS)); };
|
|
24346
|
+
DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4$1.NGX_MAT_DATE_FORMATS)); };
|
|
23967
24347
|
DatetimePickerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) {
|
|
23968
24348
|
if (rf & 1) {
|
|
23969
24349
|
i0__namespace.ɵɵviewQuery(_c0$i, 1);
|
|
@@ -23975,10 +24355,10 @@
|
|
|
23975
24355
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
23976
24356
|
}
|
|
23977
24357
|
}, inputs: { dateControl: "dateControl" }, features: [i0__namespace.ɵɵProvidersFeature([
|
|
23978
|
-
{ provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
23979
|
-
{ provide: i4.NgxMatDateAdapter,
|
|
24358
|
+
{ provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24359
|
+
{ provide: i4$1.NgxMatDateAdapter,
|
|
23980
24360
|
useClass: momentAdapter.NgxMatMomentAdapter,
|
|
23981
|
-
deps: [
|
|
24361
|
+
deps: [i5.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
23982
24362
|
},
|
|
23983
24363
|
{ provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
23984
24364
|
]), 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 +24405,7 @@
|
|
|
24025
24405
|
i0__namespace.ɵɵadvance(1);
|
|
24026
24406
|
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
24407
|
}
|
|
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 });
|
|
24408
|
+
}, 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
24409
|
(function () {
|
|
24030
24410
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimePickerComponent, [{
|
|
24031
24411
|
type: i0.Component,
|
|
@@ -24035,10 +24415,10 @@
|
|
|
24035
24415
|
styleUrls: ['./datetime-picker.component.scss'],
|
|
24036
24416
|
encapsulation: i0.ViewEncapsulation.None,
|
|
24037
24417
|
providers: [
|
|
24038
|
-
{ provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24039
|
-
{ provide: i4.NgxMatDateAdapter,
|
|
24418
|
+
{ provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24419
|
+
{ provide: i4$1.NgxMatDateAdapter,
|
|
24040
24420
|
useClass: momentAdapter.NgxMatMomentAdapter,
|
|
24041
|
-
deps: [
|
|
24421
|
+
deps: [i5.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
24042
24422
|
},
|
|
24043
24423
|
{ provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
24044
24424
|
]
|
|
@@ -24046,7 +24426,7 @@
|
|
|
24046
24426
|
}], function () {
|
|
24047
24427
|
return [{ type: FormatTranslatorService }, { type: undefined, decorators: [{
|
|
24048
24428
|
type: i0.Inject,
|
|
24049
|
-
args: [i4.NGX_MAT_DATE_FORMATS]
|
|
24429
|
+
args: [i4$1.NGX_MAT_DATE_FORMATS]
|
|
24050
24430
|
}] }];
|
|
24051
24431
|
}, { datetimePicker: [{
|
|
24052
24432
|
type: i0.ViewChild,
|
|
@@ -25673,7 +26053,7 @@
|
|
|
25673
26053
|
LinkedCasesService,
|
|
25674
26054
|
CommonDataService,
|
|
25675
26055
|
JurisdictionService,
|
|
25676
|
-
{ provide:
|
|
26056
|
+
{ provide: i5.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
25677
26057
|
], imports: [[
|
|
25678
26058
|
i1.CommonModule,
|
|
25679
26059
|
i1$1.RouterModule,
|
|
@@ -25690,13 +26070,13 @@
|
|
|
25690
26070
|
TabsModule,
|
|
25691
26071
|
LabelSubstitutorModule,
|
|
25692
26072
|
i1$5.NgxMdModule,
|
|
25693
|
-
i4.NgxMatDatetimePickerModule,
|
|
25694
|
-
i4.NgxMatTimepickerModule,
|
|
25695
|
-
i4.NgxMatNativeDateModule,
|
|
25696
|
-
i6
|
|
26073
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26074
|
+
i4$1.NgxMatTimepickerModule,
|
|
26075
|
+
i4$1.NgxMatNativeDateModule,
|
|
26076
|
+
i6.MatFormFieldModule,
|
|
25697
26077
|
i3$1.MatInputModule,
|
|
25698
26078
|
i5$1.MatDatepickerModule,
|
|
25699
|
-
|
|
26079
|
+
i4.MatAutocompleteModule,
|
|
25700
26080
|
i7.CdkTreeModule,
|
|
25701
26081
|
i1$4.OverlayModule,
|
|
25702
26082
|
i3.PaymentLibModule,
|
|
@@ -25704,9 +26084,9 @@
|
|
|
25704
26084
|
i1$3.MatDialogModule,
|
|
25705
26085
|
i11.MediaViewerModule,
|
|
25706
26086
|
LoadingModule
|
|
25707
|
-
], i4.NgxMatDatetimePickerModule,
|
|
25708
|
-
i4.NgxMatNativeDateModule,
|
|
25709
|
-
i4.NgxMatTimepickerModule,
|
|
26087
|
+
], i4$1.NgxMatDatetimePickerModule,
|
|
26088
|
+
i4$1.NgxMatNativeDateModule,
|
|
26089
|
+
i4$1.NgxMatTimepickerModule,
|
|
25710
26090
|
TabsModule,
|
|
25711
26091
|
PaletteUtilsModule,
|
|
25712
26092
|
PipesModule] });
|
|
@@ -25833,20 +26213,20 @@
|
|
|
25833
26213
|
TabsModule,
|
|
25834
26214
|
LabelSubstitutorModule,
|
|
25835
26215
|
i1$5.NgxMdModule,
|
|
25836
|
-
i4.NgxMatDatetimePickerModule,
|
|
25837
|
-
i4.NgxMatTimepickerModule,
|
|
25838
|
-
i4.NgxMatNativeDateModule,
|
|
25839
|
-
i6
|
|
26216
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26217
|
+
i4$1.NgxMatTimepickerModule,
|
|
26218
|
+
i4$1.NgxMatNativeDateModule,
|
|
26219
|
+
i6.MatFormFieldModule,
|
|
25840
26220
|
i3$1.MatInputModule,
|
|
25841
26221
|
i5$1.MatDatepickerModule,
|
|
25842
|
-
|
|
26222
|
+
i4.MatAutocompleteModule,
|
|
25843
26223
|
i7.CdkTreeModule,
|
|
25844
26224
|
i1$4.OverlayModule,
|
|
25845
26225
|
i3.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
|
|
25846
26226
|
i11.MediaViewerModule,
|
|
25847
|
-
LoadingModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
25848
|
-
i4.NgxMatNativeDateModule,
|
|
25849
|
-
i4.NgxMatTimepickerModule,
|
|
26227
|
+
LoadingModule], exports: [i4$1.NgxMatDatetimePickerModule,
|
|
26228
|
+
i4$1.NgxMatNativeDateModule,
|
|
26229
|
+
i4$1.NgxMatTimepickerModule,
|
|
25850
26230
|
TabsModule,
|
|
25851
26231
|
PaletteUtilsModule,
|
|
25852
26232
|
PipesModule, UnsupportedFieldComponent,
|
|
@@ -25966,13 +26346,13 @@
|
|
|
25966
26346
|
TabsModule,
|
|
25967
26347
|
LabelSubstitutorModule,
|
|
25968
26348
|
i1$5.NgxMdModule,
|
|
25969
|
-
i4.NgxMatDatetimePickerModule,
|
|
25970
|
-
i4.NgxMatTimepickerModule,
|
|
25971
|
-
i4.NgxMatNativeDateModule,
|
|
25972
|
-
i6
|
|
26349
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26350
|
+
i4$1.NgxMatTimepickerModule,
|
|
26351
|
+
i4$1.NgxMatNativeDateModule,
|
|
26352
|
+
i6.MatFormFieldModule,
|
|
25973
26353
|
i3$1.MatInputModule,
|
|
25974
26354
|
i5$1.MatDatepickerModule,
|
|
25975
|
-
|
|
26355
|
+
i4.MatAutocompleteModule,
|
|
25976
26356
|
i7.CdkTreeModule,
|
|
25977
26357
|
i1$4.OverlayModule,
|
|
25978
26358
|
i3.PaymentLibModule,
|
|
@@ -25997,9 +26377,9 @@
|
|
|
25997
26377
|
CaseFlagSummaryListComponent
|
|
25998
26378
|
], PALETTE_COMPONENTS),
|
|
25999
26379
|
exports: __spread([
|
|
26000
|
-
i4.NgxMatDatetimePickerModule,
|
|
26001
|
-
i4.NgxMatNativeDateModule,
|
|
26002
|
-
i4.NgxMatTimepickerModule,
|
|
26380
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26381
|
+
i4$1.NgxMatNativeDateModule,
|
|
26382
|
+
i4$1.NgxMatTimepickerModule,
|
|
26003
26383
|
TabsModule,
|
|
26004
26384
|
PaletteUtilsModule,
|
|
26005
26385
|
PipesModule
|
|
@@ -26017,7 +26397,7 @@
|
|
|
26017
26397
|
LinkedCasesService,
|
|
26018
26398
|
CommonDataService,
|
|
26019
26399
|
JurisdictionService,
|
|
26020
|
-
{ provide:
|
|
26400
|
+
{ provide: i5.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
26021
26401
|
],
|
|
26022
26402
|
entryComponents: [CaseFileViewFolderSelectorComponent]
|
|
26023
26403
|
}]
|
|
@@ -26063,41 +26443,12 @@
|
|
|
26063
26443
|
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
26064
26444
|
i0__namespace.ɵɵsetComponentScope(
|
|
26065
26445
|
// ComponentLauncher web components
|
|
26066
|
-
CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
|
|
26446
|
+
CaseFileViewFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
|
|
26067
26447
|
i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26068
26448
|
i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
|
|
26069
26449
|
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
26450
|
i0__namespace.ɵɵsetComponentScope(CheckYourAnswersComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26071
26451
|
|
|
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
26452
|
function CaseEditSubmitComponent_div_0_div_3_Template(rf, ctx) {
|
|
26102
26453
|
if (rf & 1) {
|
|
26103
26454
|
i0__namespace.ɵɵelement(0, "div");
|
|
@@ -26121,9 +26472,9 @@
|
|
|
26121
26472
|
i0__namespace.ɵɵelementEnd();
|
|
26122
26473
|
}
|
|
26123
26474
|
if (rf & 2) {
|
|
26124
|
-
var
|
|
26475
|
+
var ctx_r10 = i0__namespace.ɵɵnextContext(3);
|
|
26125
26476
|
i0__namespace.ɵɵadvance(1);
|
|
26126
|
-
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1,
|
|
26477
|
+
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r10.getCaseId()), "");
|
|
26127
26478
|
}
|
|
26128
26479
|
}
|
|
26129
26480
|
function CaseEditSubmitComponent_div_0_ng_template_6_Template(rf, ctx) {
|
|
@@ -26135,313 +26486,249 @@
|
|
|
26135
26486
|
i0__namespace.ɵɵproperty("ngIf", ctx_r6.getCaseId());
|
|
26136
26487
|
}
|
|
26137
26488
|
}
|
|
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) {
|
|
26489
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_span_3_Template(rf, ctx) {
|
|
26203
26490
|
if (rf & 1) {
|
|
26204
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
26491
|
+
i0__namespace.ɵɵelementStart(0, "span", 20);
|
|
26205
26492
|
i0__namespace.ɵɵtext(1, "Check the information below carefully.");
|
|
26206
26493
|
i0__namespace.ɵɵelementEnd();
|
|
26207
26494
|
}
|
|
26208
26495
|
}
|
|
26209
|
-
function
|
|
26496
|
+
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
26497
|
if (rf & 1) {
|
|
26211
|
-
i0__namespace.ɵɵelementStart(0, "th",
|
|
26212
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
26498
|
+
i0__namespace.ɵɵelementStart(0, "th", 27);
|
|
26499
|
+
i0__namespace.ɵɵelementStart(1, "span", 20);
|
|
26213
26500
|
i0__namespace.ɵɵtext(2);
|
|
26214
26501
|
i0__namespace.ɵɵelementEnd();
|
|
26215
26502
|
i0__namespace.ɵɵelementEnd();
|
|
26216
26503
|
}
|
|
26217
26504
|
if (rf & 2) {
|
|
26218
|
-
var
|
|
26505
|
+
var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
26219
26506
|
i0__namespace.ɵɵadvance(2);
|
|
26220
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26507
|
+
i0__namespace.ɵɵtextInterpolate(field_r16.label);
|
|
26221
26508
|
}
|
|
26222
26509
|
}
|
|
26223
|
-
function
|
|
26510
|
+
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
26511
|
if (rf & 1) {
|
|
26225
|
-
var
|
|
26512
|
+
var _r23_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26226
26513
|
i0__namespace.ɵɵelementStart(0, "a", 13);
|
|
26227
|
-
i0__namespace.ɵɵlistener("click", function
|
|
26228
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
26514
|
+
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); });
|
|
26515
|
+
i0__namespace.ɵɵelementStart(1, "span", 20);
|
|
26229
26516
|
i0__namespace.ɵɵtext(2, "Change");
|
|
26230
26517
|
i0__namespace.ɵɵelementEnd();
|
|
26231
26518
|
i0__namespace.ɵɵelementEnd();
|
|
26232
26519
|
}
|
|
26233
26520
|
if (rf & 2) {
|
|
26234
|
-
var
|
|
26521
|
+
var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
26235
26522
|
i0__namespace.ɵɵadvance(1);
|
|
26236
|
-
i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ",
|
|
26523
|
+
i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ", field_r16.label, "");
|
|
26237
26524
|
}
|
|
26238
26525
|
}
|
|
26239
|
-
function
|
|
26526
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
26240
26527
|
if (rf & 1) {
|
|
26241
26528
|
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",
|
|
26529
|
+
i0__namespace.ɵɵelementStart(1, "tr", 21);
|
|
26530
|
+
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);
|
|
26531
|
+
i0__namespace.ɵɵelementStart(3, "td", 23);
|
|
26532
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 24);
|
|
26246
26533
|
i0__namespace.ɵɵelementEnd();
|
|
26247
|
-
i0__namespace.ɵɵelementStart(5, "td",
|
|
26248
|
-
i0__namespace.ɵɵtemplate(6,
|
|
26534
|
+
i0__namespace.ɵɵelementStart(5, "td", 25);
|
|
26535
|
+
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
26536
|
i0__namespace.ɵɵelementEnd();
|
|
26250
26537
|
i0__namespace.ɵɵelementEnd();
|
|
26251
26538
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26252
26539
|
}
|
|
26253
26540
|
if (rf & 2) {
|
|
26254
|
-
var
|
|
26255
|
-
var
|
|
26541
|
+
var field_r16 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26542
|
+
var ctx_r17 = i0__namespace.ɵɵnextContext(5);
|
|
26256
26543
|
i0__namespace.ɵɵadvance(1);
|
|
26257
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26544
|
+
i0__namespace.ɵɵproperty("caseField", field_r16)("hidden", field_r16.hidden)("formGroup", ctx_r17.editForm.controls["data"])("contextFields", ctx_r17.contextFields);
|
|
26258
26545
|
i0__namespace.ɵɵadvance(1);
|
|
26259
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
26546
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r17.isLabel(field_r16) && !ctx_r17.caseEdit.isCaseFlagSubmission);
|
|
26260
26547
|
i0__namespace.ɵɵadvance(1);
|
|
26261
|
-
i0__namespace.ɵɵattribute("colspan",
|
|
26548
|
+
i0__namespace.ɵɵattribute("colspan", ctx_r17.isLabel(field_r16) ? "2" : "1");
|
|
26262
26549
|
i0__namespace.ɵɵadvance(1);
|
|
26263
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26550
|
+
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
26551
|
i0__namespace.ɵɵadvance(2);
|
|
26265
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26552
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r17.isChangeAllowed(field_r16));
|
|
26266
26553
|
}
|
|
26267
26554
|
}
|
|
26268
|
-
function
|
|
26555
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
26269
26556
|
if (rf & 1) {
|
|
26270
26557
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26271
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26558
|
+
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
26559
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26273
26560
|
}
|
|
26274
26561
|
if (rf & 2) {
|
|
26275
|
-
var
|
|
26276
|
-
var
|
|
26562
|
+
var field_r16 = ctx.$implicit;
|
|
26563
|
+
var ctx_r15 = i0__namespace.ɵɵnextContext(5);
|
|
26277
26564
|
i0__namespace.ɵɵadvance(1);
|
|
26278
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26565
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r15.canShowFieldInCYA(field_r16));
|
|
26279
26566
|
}
|
|
26280
26567
|
}
|
|
26281
26568
|
var _c0$f = function (a0, a4) { return [a0, false, undefined, true, a4]; };
|
|
26282
|
-
function
|
|
26569
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_Template(rf, ctx) {
|
|
26283
26570
|
if (rf & 1) {
|
|
26284
26571
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26285
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26572
|
+
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
26573
|
i0__namespace.ɵɵpipe(2, "ccdCYAPageLabelFilter");
|
|
26287
26574
|
i0__namespace.ɵɵpipe(3, "ccdReadFieldsFilter");
|
|
26288
26575
|
i0__namespace.ɵɵpipe(4, "ccdPageFields");
|
|
26289
26576
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26290
26577
|
}
|
|
26291
26578
|
if (rf & 2) {
|
|
26292
|
-
var
|
|
26293
|
-
var
|
|
26579
|
+
var page_r13 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26580
|
+
var ctx_r14 = i0__namespace.ɵɵnextContext(3);
|
|
26294
26581
|
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,
|
|
26582
|
+
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
26583
|
}
|
|
26297
26584
|
}
|
|
26298
|
-
function
|
|
26585
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_Template(rf, ctx) {
|
|
26299
26586
|
if (rf & 1) {
|
|
26300
26587
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26301
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26588
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_Template, 5, 15, "ng-container", 0);
|
|
26302
26589
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26303
26590
|
}
|
|
26304
26591
|
if (rf & 2) {
|
|
26305
|
-
var
|
|
26306
|
-
var
|
|
26592
|
+
var page_r13 = ctx.$implicit;
|
|
26593
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(3);
|
|
26307
26594
|
i0__namespace.ɵɵadvance(1);
|
|
26308
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26595
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r12.isShown(page_r13));
|
|
26309
26596
|
}
|
|
26310
26597
|
}
|
|
26311
|
-
function
|
|
26598
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_Template(rf, ctx) {
|
|
26312
26599
|
if (rf & 1) {
|
|
26313
26600
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26314
26601
|
i0__namespace.ɵɵelementStart(1, "h2", 16);
|
|
26315
26602
|
i0__namespace.ɵɵtext(2);
|
|
26316
26603
|
i0__namespace.ɵɵelementEnd();
|
|
26317
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26318
|
-
i0__namespace.ɵɵelementStart(4, "table",
|
|
26604
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_11_span_3_Template, 2, 0, "span", 17);
|
|
26605
|
+
i0__namespace.ɵɵelementStart(4, "table", 18);
|
|
26319
26606
|
i0__namespace.ɵɵelementStart(5, "tbody");
|
|
26320
|
-
i0__namespace.ɵɵtemplate(6,
|
|
26607
|
+
i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_Template, 2, 1, "ng-container", 19);
|
|
26321
26608
|
i0__namespace.ɵɵelementEnd();
|
|
26322
26609
|
i0__namespace.ɵɵelementEnd();
|
|
26323
26610
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26324
26611
|
}
|
|
26325
26612
|
if (rf & 2) {
|
|
26326
|
-
var
|
|
26613
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
26327
26614
|
i0__namespace.ɵɵadvance(2);
|
|
26328
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26615
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r7.pageTitle);
|
|
26329
26616
|
i0__namespace.ɵɵadvance(1);
|
|
26330
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
26617
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r7.caseEdit.isCaseFlagSubmission);
|
|
26331
26618
|
i0__namespace.ɵɵadvance(3);
|
|
26332
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
26619
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r7.wizard.pages);
|
|
26333
26620
|
}
|
|
26334
26621
|
}
|
|
26335
|
-
function
|
|
26622
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template(rf, ctx) {
|
|
26336
26623
|
if (rf & 1) {
|
|
26337
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
26338
|
-
i0__namespace.ɵɵelementStart(1, "th",
|
|
26624
|
+
i0__namespace.ɵɵelementStart(0, "tr", 32);
|
|
26625
|
+
i0__namespace.ɵɵelementStart(1, "th", 33);
|
|
26339
26626
|
i0__namespace.ɵɵtext(2);
|
|
26340
26627
|
i0__namespace.ɵɵelementEnd();
|
|
26341
|
-
i0__namespace.ɵɵelementStart(3, "td",
|
|
26342
|
-
i0__namespace.ɵɵelement(4, "ccd-field-read",
|
|
26628
|
+
i0__namespace.ɵɵelementStart(3, "td", 34);
|
|
26629
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 35);
|
|
26343
26630
|
i0__namespace.ɵɵelementEnd();
|
|
26344
26631
|
i0__namespace.ɵɵelementEnd();
|
|
26345
26632
|
}
|
|
26346
26633
|
if (rf & 2) {
|
|
26347
|
-
var
|
|
26348
|
-
var
|
|
26349
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26634
|
+
var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26635
|
+
var ctx_r29 = i0__namespace.ɵɵnextContext(3);
|
|
26636
|
+
i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r29.editForm.controls["data"])("contextFields", ctx_r29.contextFields);
|
|
26350
26637
|
i0__namespace.ɵɵadvance(2);
|
|
26351
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26638
|
+
i0__namespace.ɵɵtextInterpolate(field_r28.label);
|
|
26352
26639
|
i0__namespace.ɵɵadvance(2);
|
|
26353
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26640
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r29.editForm.controls["data"])("caseField", ctx_r29.summaryCaseField(field_r28));
|
|
26354
26641
|
}
|
|
26355
26642
|
}
|
|
26356
|
-
function
|
|
26643
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template(rf, ctx) {
|
|
26357
26644
|
if (rf & 1) {
|
|
26358
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
26359
|
-
i0__namespace.ɵɵelementStart(1, "td",
|
|
26360
|
-
i0__namespace.ɵɵelement(2, "ccd-field-read",
|
|
26645
|
+
i0__namespace.ɵɵelementStart(0, "tr", 36);
|
|
26646
|
+
i0__namespace.ɵɵelementStart(1, "td", 37);
|
|
26647
|
+
i0__namespace.ɵɵelement(2, "ccd-field-read", 38);
|
|
26361
26648
|
i0__namespace.ɵɵelementEnd();
|
|
26362
26649
|
i0__namespace.ɵɵelementEnd();
|
|
26363
26650
|
}
|
|
26364
26651
|
if (rf & 2) {
|
|
26365
|
-
var
|
|
26366
|
-
var
|
|
26367
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26652
|
+
var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26653
|
+
var ctx_r30 = i0__namespace.ɵɵnextContext(3);
|
|
26654
|
+
i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r30.editForm.controls["data"])("contextFields", ctx_r30.contextFields);
|
|
26368
26655
|
i0__namespace.ɵɵadvance(2);
|
|
26369
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26656
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r30.editForm.controls["data"])("caseField", ctx_r30.summaryCaseField(field_r28))("caseFields", ctx_r30.contextFields);
|
|
26370
26657
|
}
|
|
26371
26658
|
}
|
|
26372
|
-
function
|
|
26659
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template(rf, ctx) {
|
|
26373
26660
|
if (rf & 1) {
|
|
26374
26661
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26375
|
-
i0__namespace.ɵɵelementContainerStart(1,
|
|
26662
|
+
i0__namespace.ɵɵelementContainerStart(1, 29);
|
|
26376
26663
|
i0__namespace.ɵɵpipe(2, "ccdIsCompound");
|
|
26377
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26378
|
-
i0__namespace.ɵɵtemplate(4,
|
|
26664
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template, 5, 6, "tr", 30);
|
|
26665
|
+
i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template, 3, 6, "tr", 31);
|
|
26379
26666
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26380
26667
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26381
26668
|
}
|
|
26382
26669
|
if (rf & 2) {
|
|
26383
|
-
var
|
|
26670
|
+
var field_r28 = ctx.$implicit;
|
|
26384
26671
|
i0__namespace.ɵɵadvance(1);
|
|
26385
|
-
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3,
|
|
26672
|
+
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r28));
|
|
26386
26673
|
i0__namespace.ɵɵadvance(2);
|
|
26387
26674
|
i0__namespace.ɵɵproperty("ngSwitchCase", true);
|
|
26388
26675
|
i0__namespace.ɵɵadvance(1);
|
|
26389
26676
|
i0__namespace.ɵɵproperty("ngSwitchCase", false);
|
|
26390
26677
|
}
|
|
26391
26678
|
}
|
|
26392
|
-
function
|
|
26679
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_Template(rf, ctx) {
|
|
26393
26680
|
if (rf & 1) {
|
|
26394
26681
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26395
|
-
i0__namespace.ɵɵelementStart(1, "table",
|
|
26682
|
+
i0__namespace.ɵɵelementStart(1, "table", 28);
|
|
26396
26683
|
i0__namespace.ɵɵelementStart(2, "tbody");
|
|
26397
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26684
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template, 5, 5, "ng-container", 19);
|
|
26398
26685
|
i0__namespace.ɵɵelementEnd();
|
|
26399
26686
|
i0__namespace.ɵɵelementEnd();
|
|
26400
26687
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26401
26688
|
}
|
|
26402
26689
|
if (rf & 2) {
|
|
26403
|
-
var
|
|
26690
|
+
var ctx_r8 = i0__namespace.ɵɵnextContext(2);
|
|
26404
26691
|
i0__namespace.ɵɵadvance(3);
|
|
26405
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
26692
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
|
|
26406
26693
|
}
|
|
26407
26694
|
}
|
|
26408
|
-
function
|
|
26695
|
+
function CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template(rf, ctx) {
|
|
26409
26696
|
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",
|
|
26697
|
+
i0__namespace.ɵɵelementStart(0, "fieldset", 40);
|
|
26698
|
+
i0__namespace.ɵɵelement(1, "legend", 41);
|
|
26699
|
+
i0__namespace.ɵɵelementStart(2, "div", 42);
|
|
26700
|
+
i0__namespace.ɵɵelementStart(3, "label", 43);
|
|
26414
26701
|
i0__namespace.ɵɵtext(4, " Event summary (optional) ");
|
|
26415
|
-
i0__namespace.ɵɵelementStart(5, "span",
|
|
26702
|
+
i0__namespace.ɵɵelementStart(5, "span", 44);
|
|
26416
26703
|
i0__namespace.ɵɵtext(6, "A few words describing the purpose of the event.");
|
|
26417
26704
|
i0__namespace.ɵɵelementEnd();
|
|
26418
26705
|
i0__namespace.ɵɵelementEnd();
|
|
26419
|
-
i0__namespace.ɵɵelement(7, "input",
|
|
26706
|
+
i0__namespace.ɵɵelement(7, "input", 45);
|
|
26420
26707
|
i0__namespace.ɵɵelementEnd();
|
|
26421
|
-
i0__namespace.ɵɵelementStart(8, "div",
|
|
26422
|
-
i0__namespace.ɵɵelementStart(9, "label",
|
|
26708
|
+
i0__namespace.ɵɵelementStart(8, "div", 42);
|
|
26709
|
+
i0__namespace.ɵɵelementStart(9, "label", 46);
|
|
26423
26710
|
i0__namespace.ɵɵtext(10, "Event description (optional)");
|
|
26424
26711
|
i0__namespace.ɵɵelementEnd();
|
|
26425
|
-
i0__namespace.ɵɵelement(11, "textarea",
|
|
26712
|
+
i0__namespace.ɵɵelement(11, "textarea", 47);
|
|
26426
26713
|
i0__namespace.ɵɵelementEnd();
|
|
26427
26714
|
i0__namespace.ɵɵelementEnd();
|
|
26428
26715
|
}
|
|
26429
26716
|
}
|
|
26430
|
-
function
|
|
26717
|
+
function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
|
|
26431
26718
|
if (rf & 1) {
|
|
26432
26719
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26433
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26720
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template, 12, 0, "fieldset", 39);
|
|
26434
26721
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26435
26722
|
}
|
|
26436
26723
|
if (rf & 2) {
|
|
26437
|
-
var
|
|
26724
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext(2);
|
|
26438
26725
|
i0__namespace.ɵɵadvance(1);
|
|
26439
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26726
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r9.profile && !ctx_r9.isSolicitor());
|
|
26440
26727
|
}
|
|
26441
26728
|
}
|
|
26442
26729
|
function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
|
|
26443
26730
|
if (rf & 1) {
|
|
26444
|
-
var
|
|
26731
|
+
var _r35_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26445
26732
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
26446
26733
|
i0__namespace.ɵɵelementStart(1, "h1", 2);
|
|
26447
26734
|
i0__namespace.ɵɵtext(2);
|
|
@@ -26449,29 +26736,28 @@
|
|
|
26449
26736
|
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_div_3_Template, 1, 0, "div", 3);
|
|
26450
26737
|
i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_template_4_Template, 2, 5, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
|
|
26451
26738
|
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);
|
|
26739
|
+
i0__namespace.ɵɵelement(8, "ccd-case-edit-generic-errors", 6);
|
|
26740
|
+
i0__namespace.ɵɵelementStart(9, "ccd-callback-errors", 7);
|
|
26741
|
+
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); });
|
|
26742
|
+
i0__namespace.ɵɵelementEnd();
|
|
26743
|
+
i0__namespace.ɵɵelementStart(10, "form", 8);
|
|
26744
|
+
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(); });
|
|
26745
|
+
i0__namespace.ɵɵtemplate(11, CaseEditSubmitComponent_div_0_ng_container_11_Template, 7, 3, "ng-container", 0);
|
|
26746
|
+
i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 4, 1, "ng-container", 0);
|
|
26747
|
+
i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 2, 1, "ng-container", 0);
|
|
26748
|
+
i0__namespace.ɵɵelementStart(14, "div", 9);
|
|
26749
|
+
i0__namespace.ɵɵelementStart(15, "button", 10);
|
|
26750
|
+
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(); });
|
|
26751
|
+
i0__namespace.ɵɵtext(16, "Previous");
|
|
26752
|
+
i0__namespace.ɵɵelementEnd();
|
|
26753
|
+
i0__namespace.ɵɵelementStart(17, "button", 11);
|
|
26754
|
+
i0__namespace.ɵɵtext(18);
|
|
26755
|
+
i0__namespace.ɵɵelementEnd();
|
|
26756
|
+
i0__namespace.ɵɵelementEnd();
|
|
26757
|
+
i0__namespace.ɵɵelementStart(19, "p", 12);
|
|
26758
|
+
i0__namespace.ɵɵelementStart(20, "a", 13);
|
|
26759
|
+
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(); });
|
|
26760
|
+
i0__namespace.ɵɵtext(21);
|
|
26475
26761
|
i0__namespace.ɵɵelementEnd();
|
|
26476
26762
|
i0__namespace.ɵɵelementEnd();
|
|
26477
26763
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -26486,11 +26772,9 @@
|
|
|
26486
26772
|
i0__namespace.ɵɵadvance(1);
|
|
26487
26773
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.getCaseTitle())("ngIfThen", _r3)("ngIfElse", _r5);
|
|
26488
26774
|
i0__namespace.ɵɵadvance(5);
|
|
26489
|
-
i0__namespace.ɵɵproperty("
|
|
26775
|
+
i0__namespace.ɵɵproperty("error", ctx_r0.caseEdit.error);
|
|
26490
26776
|
i0__namespace.ɵɵadvance(1);
|
|
26491
|
-
i0__namespace.ɵɵproperty("
|
|
26492
|
-
i0__namespace.ɵɵadvance(1);
|
|
26493
|
-
i0__namespace.ɵɵproperty("callbackErrorsSubject", ctx_r0.callbackErrorsSubject);
|
|
26777
|
+
i0__namespace.ɵɵproperty("callbackErrorsSubject", ctx_r0.caseEdit.callbackErrorsSubject);
|
|
26494
26778
|
i0__namespace.ɵɵadvance(1);
|
|
26495
26779
|
i0__namespace.ɵɵproperty("formGroup", ctx_r0.editForm);
|
|
26496
26780
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -26500,279 +26784,95 @@
|
|
|
26500
26784
|
i0__namespace.ɵɵadvance(1);
|
|
26501
26785
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.showEventNotes());
|
|
26502
26786
|
i0__namespace.ɵɵadvance(2);
|
|
26503
|
-
i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.isSubmitting);
|
|
26787
|
+
i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.caseEdit.isSubmitting);
|
|
26504
26788
|
i0__namespace.ɵɵadvance(2);
|
|
26505
26789
|
i0__namespace.ɵɵproperty("disabled", ctx_r0.isDisabled);
|
|
26506
26790
|
i0__namespace.ɵɵadvance(1);
|
|
26507
26791
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.triggerText);
|
|
26508
26792
|
i0__namespace.ɵɵadvance(2);
|
|
26509
|
-
i0__namespace.ɵɵclassProp("disabled", ctx_r0.isSubmitting);
|
|
26793
|
+
i0__namespace.ɵɵclassProp("disabled", ctx_r0.caseEdit.isSubmitting);
|
|
26510
26794
|
i0__namespace.ɵɵadvance(1);
|
|
26511
26795
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.getCancelText());
|
|
26512
26796
|
}
|
|
26513
26797
|
}
|
|
26514
26798
|
function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
|
|
26515
26799
|
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(
|
|
26519
|
-
i0__namespace.ɵɵelementEnd();
|
|
26520
|
-
}
|
|
26521
|
-
if (rf & 2) {
|
|
26522
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
26523
|
-
i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r1.eventCompletionParams);
|
|
26524
|
-
}
|
|
26525
|
-
}
|
|
26526
|
-
// @dynamic
|
|
26527
|
-
var CaseEditSubmitComponent = /** @class */ (function () {
|
|
26528
|
-
function CaseEditSubmitComponent(caseEdit,
|
|
26529
|
-
this.caseEdit = caseEdit;
|
|
26530
|
-
this.
|
|
26531
|
-
this.
|
|
26532
|
-
this.
|
|
26533
|
-
this.
|
|
26534
|
-
this.
|
|
26535
|
-
this.
|
|
26536
|
-
|
|
26537
|
-
|
|
26538
|
-
|
|
26539
|
-
|
|
26540
|
-
|
|
26541
|
-
|
|
26542
|
-
|
|
26543
|
-
|
|
26544
|
-
|
|
26545
|
-
|
|
26546
|
-
|
|
26547
|
-
|
|
26548
|
-
|
|
26549
|
-
// EUI-3452.
|
|
26550
|
-
// We don't need to check the validity of the editForm as it is readonly.
|
|
26551
|
-
// This was causing issues with hidden fields that aren't wanted but have
|
|
26552
|
-
// not been disabled.
|
|
26553
|
-
return this.isSubmitting || this.hasErrors;
|
|
26554
|
-
},
|
|
26555
|
-
enumerable: false,
|
|
26556
|
-
configurable: true
|
|
26557
|
-
});
|
|
26558
|
-
CaseEditSubmitComponent.prototype.ngOnInit = function () {
|
|
26559
|
-
var _this = this;
|
|
26560
|
-
this.profileSubscription = this.profileNotifier.profile.subscribe(function (_) { return _this.profile = _; });
|
|
26561
|
-
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
26562
|
-
this.triggerText = this.eventTrigger.end_button_label || CallbackErrorsComponent.TRIGGER_TEXT_SUBMIT;
|
|
26563
|
-
this.editForm = this.caseEdit.form;
|
|
26564
|
-
this.wizard = this.caseEdit.wizard;
|
|
26565
|
-
this.showSummaryFields = this.sortFieldsByShowSummaryContent(this.eventTrigger.case_fields);
|
|
26566
|
-
this.isSubmitting = false;
|
|
26567
|
-
this.contextFields = this.getCaseFields();
|
|
26568
|
-
// Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
|
|
26569
|
-
// a FlagLauncher field in the event trigger
|
|
26570
|
-
this.isCaseFlagSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); });
|
|
26571
|
-
this.pageTitle = this.isCaseFlagSubmission ? 'Review flag details' : 'Check your answers';
|
|
26572
|
-
this.isLinkedCasesSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isComponentLauncherCaseField(caseField); });
|
|
26573
|
-
};
|
|
26574
|
-
CaseEditSubmitComponent.prototype.ngOnDestroy = function () {
|
|
26575
|
-
if (this.profileSubscription) {
|
|
26576
|
-
this.profileSubscription.unsubscribe();
|
|
26577
|
-
}
|
|
26578
|
-
};
|
|
26579
|
-
CaseEditSubmitComponent.prototype.submit = function () {
|
|
26580
|
-
this.isSubmitting = true;
|
|
26581
|
-
// We have to run the event completion checks if task in session storage
|
|
26582
|
-
// and if the task is in session storage, then is it associated to the case
|
|
26583
|
-
var taskInSessionStorage;
|
|
26584
|
-
var taskStr = this.sessionStorageService.getItem('taskToComplete');
|
|
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) {
|
|
26800
|
+
var _r40_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26801
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 48);
|
|
26802
|
+
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); });
|
|
26803
|
+
i0__namespace.ɵɵelementEnd();
|
|
26804
|
+
}
|
|
26805
|
+
if (rf & 2) {
|
|
26806
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
26807
|
+
i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r1.caseEdit.eventCompletionParams);
|
|
26808
|
+
}
|
|
26809
|
+
}
|
|
26810
|
+
// @dynamic
|
|
26811
|
+
var CaseEditSubmitComponent = /** @class */ (function () {
|
|
26812
|
+
function CaseEditSubmitComponent(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier) {
|
|
26813
|
+
this.caseEdit = caseEdit;
|
|
26814
|
+
this.fieldsUtils = fieldsUtils;
|
|
26815
|
+
this.caseFieldService = caseFieldService;
|
|
26816
|
+
this.route = route;
|
|
26817
|
+
this.orderService = orderService;
|
|
26818
|
+
this.profileNotifier = profileNotifier;
|
|
26819
|
+
this.paletteContext = exports.PaletteContext.CHECK_YOUR_ANSWER;
|
|
26820
|
+
}
|
|
26821
|
+
Object.defineProperty(CaseEditSubmitComponent.prototype, "isDisabled", {
|
|
26822
|
+
get: function () {
|
|
26823
|
+
// EUI-3452.
|
|
26824
|
+
// We don't need to check the validity of the editForm as it is readonly.
|
|
26825
|
+
// This was causing issues with hidden fields that aren't wanted but have
|
|
26826
|
+
// not been disabled.
|
|
26827
|
+
return this.caseEdit.isSubmitting || this.hasErrors;
|
|
26828
|
+
},
|
|
26829
|
+
enumerable: false,
|
|
26830
|
+
configurable: true
|
|
26831
|
+
});
|
|
26832
|
+
CaseEditSubmitComponent.prototype.ngOnInit = function () {
|
|
26643
26833
|
var _this = this;
|
|
26644
|
-
this.
|
|
26645
|
-
|
|
26646
|
-
|
|
26647
|
-
|
|
26648
|
-
|
|
26649
|
-
|
|
26650
|
-
|
|
26651
|
-
|
|
26652
|
-
|
|
26653
|
-
|
|
26654
|
-
|
|
26655
|
-
|
|
26656
|
-
|
|
26657
|
-
|
|
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
|
-
});
|
|
26834
|
+
this.profileSubscription = this.profileNotifier.profile.subscribe(function (_) { return _this.profile = _; });
|
|
26835
|
+
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
26836
|
+
this.triggerText = this.eventTrigger.end_button_label || CallbackErrorsComponent.TRIGGER_TEXT_SUBMIT;
|
|
26837
|
+
this.editForm = this.caseEdit.form;
|
|
26838
|
+
this.wizard = this.caseEdit.wizard;
|
|
26839
|
+
this.showSummaryFields = this.sortFieldsByShowSummaryContent(this.eventTrigger.case_fields);
|
|
26840
|
+
this.caseEdit.isSubmitting = false;
|
|
26841
|
+
this.contextFields = this.getCaseFields();
|
|
26842
|
+
// Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
|
|
26843
|
+
// a FlagLauncher field in the event trigger
|
|
26844
|
+
this.caseEdit.isCaseFlagSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); });
|
|
26845
|
+
this.caseEdit.isLinkedCasesSubmission =
|
|
26846
|
+
this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isComponentLauncherCaseField(caseField); });
|
|
26847
|
+
this.pageTitle = this.caseEdit.isCaseFlagSubmission ? 'Review flag details' : 'Check your answers';
|
|
26664
26848
|
};
|
|
26665
|
-
|
|
26666
|
-
|
|
26667
|
-
|
|
26668
|
-
|
|
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];
|
|
26849
|
+
CaseEditSubmitComponent.prototype.ngOnDestroy = function () {
|
|
26850
|
+
/* istanbul ignore else */
|
|
26851
|
+
if (this.profileSubscription) {
|
|
26852
|
+
this.profileSubscription.unsubscribe();
|
|
26693
26853
|
}
|
|
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
|
-
}
|
|
26747
|
-
});
|
|
26748
|
-
return rawFormValueData;
|
|
26749
26854
|
};
|
|
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
|
-
}
|
|
26855
|
+
CaseEditSubmitComponent.prototype.submit = function () {
|
|
26856
|
+
this.caseEdit.submitForm({
|
|
26857
|
+
eventTrigger: this.eventTrigger,
|
|
26858
|
+
form: this.editForm,
|
|
26859
|
+
submit: this.caseEdit.submit,
|
|
26860
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
26762
26861
|
});
|
|
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
26862
|
};
|
|
26768
|
-
CaseEditSubmitComponent.prototype.
|
|
26769
|
-
|
|
26863
|
+
CaseEditSubmitComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
|
|
26864
|
+
this.caseEdit.onEventCanBeCompleted({
|
|
26865
|
+
eventTrigger: this.eventTrigger,
|
|
26866
|
+
eventCanBeCompleted: eventCanBeCompleted,
|
|
26867
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
26868
|
+
form: this.editForm,
|
|
26869
|
+
submit: this.caseEdit.submit,
|
|
26870
|
+
});
|
|
26770
26871
|
};
|
|
26771
26872
|
Object.defineProperty(CaseEditSubmitComponent.prototype, "hasErrors", {
|
|
26772
26873
|
get: function () {
|
|
26773
|
-
|
|
26774
|
-
|
|
26775
|
-
&& this.error.callbackErrors.length;
|
|
26874
|
+
var _a, _b, _c;
|
|
26875
|
+
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
26876
|
},
|
|
26777
26877
|
enumerable: false,
|
|
26778
26878
|
configurable: true
|
|
@@ -26781,10 +26881,11 @@
|
|
|
26781
26881
|
this.caseEdit.navigateToPage(pageId);
|
|
26782
26882
|
};
|
|
26783
26883
|
CaseEditSubmitComponent.prototype.callbackErrorsNotify = function (errorContext) {
|
|
26784
|
-
this.ignoreWarning = errorContext.ignore_warning;
|
|
26884
|
+
this.caseEdit.ignoreWarning = errorContext.ignore_warning;
|
|
26785
26885
|
this.triggerText = errorContext.trigger_text;
|
|
26786
26886
|
};
|
|
26787
26887
|
CaseEditSubmitComponent.prototype.summaryCaseField = function (field) {
|
|
26888
|
+
/* istanbul ignore else */
|
|
26788
26889
|
if (null === this.editForm.get('data').get(field.id)) {
|
|
26789
26890
|
// If not in form, return field itself
|
|
26790
26891
|
return field;
|
|
@@ -26813,17 +26914,20 @@
|
|
|
26813
26914
|
return !this.caseFieldService.isReadOnly(field);
|
|
26814
26915
|
};
|
|
26815
26916
|
CaseEditSubmitComponent.prototype.checkYourAnswerFieldsToDisplayExists = function () {
|
|
26816
|
-
var e_1,
|
|
26917
|
+
var e_1, _d, e_2, _e;
|
|
26918
|
+
/* istanbul ignore else */
|
|
26817
26919
|
if (!this.eventTrigger.show_summary) {
|
|
26818
26920
|
return false;
|
|
26819
26921
|
}
|
|
26820
26922
|
try {
|
|
26821
|
-
for (var
|
|
26822
|
-
var page =
|
|
26923
|
+
for (var _f = __values(this.wizard.pages), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
26924
|
+
var page = _g.value;
|
|
26925
|
+
/* istanbul ignore else */
|
|
26823
26926
|
if (this.isShown(page)) {
|
|
26824
26927
|
try {
|
|
26825
|
-
for (var
|
|
26826
|
-
var field =
|
|
26928
|
+
for (var _h = (e_2 = void 0, __values(page.case_fields)), _j = _h.next(); !_j.done; _j = _h.next()) {
|
|
26929
|
+
var field = _j.value;
|
|
26930
|
+
/* istanbul ignore else */
|
|
26827
26931
|
if (this.canShowFieldInCYA(field)) {
|
|
26828
26932
|
// at least one field needs showing
|
|
26829
26933
|
return true;
|
|
@@ -26833,7 +26937,7 @@
|
|
|
26833
26937
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
26834
26938
|
finally {
|
|
26835
26939
|
try {
|
|
26836
|
-
if (
|
|
26940
|
+
if (_j && !_j.done && (_e = _h.return)) _e.call(_h);
|
|
26837
26941
|
}
|
|
26838
26942
|
finally { if (e_2) throw e_2.error; }
|
|
26839
26943
|
}
|
|
@@ -26843,7 +26947,7 @@
|
|
|
26843
26947
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
26844
26948
|
finally {
|
|
26845
26949
|
try {
|
|
26846
|
-
if (
|
|
26950
|
+
if (_g && !_g.done && (_d = _f.return)) _d.call(_f);
|
|
26847
26951
|
}
|
|
26848
26952
|
finally { if (e_1) throw e_1.error; }
|
|
26849
26953
|
}
|
|
@@ -26868,6 +26972,7 @@
|
|
|
26868
26972
|
return lastPage;
|
|
26869
26973
|
};
|
|
26870
26974
|
CaseEditSubmitComponent.prototype.previous = function () {
|
|
26975
|
+
/* istanbul ignore else */
|
|
26871
26976
|
if (this.hasPrevious()) {
|
|
26872
26977
|
this.navigateToPage(this.getLastPageShown().id);
|
|
26873
26978
|
}
|
|
@@ -26886,14 +26991,6 @@
|
|
|
26886
26991
|
CaseEditSubmitComponent.prototype.isSolicitor = function () {
|
|
26887
26992
|
return this.profile.isSolicitor();
|
|
26888
26993
|
};
|
|
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
26994
|
CaseEditSubmitComponent.prototype.sortFieldsByShowSummaryContent = function (fields) {
|
|
26898
26995
|
return this.orderService
|
|
26899
26996
|
.sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
|
|
@@ -26906,10 +27003,7 @@
|
|
|
26906
27003
|
return this.eventTrigger.case_fields;
|
|
26907
27004
|
};
|
|
26908
27005
|
CaseEditSubmitComponent.prototype.getCaseId = function () {
|
|
26909
|
-
return
|
|
26910
|
-
};
|
|
26911
|
-
CaseEditSubmitComponent.prototype.getEventId = function () {
|
|
26912
|
-
return this.editForm.value.event.id;
|
|
27006
|
+
return this.caseEdit.getCaseId(this.caseEdit.caseDetails);
|
|
26913
27007
|
};
|
|
26914
27008
|
CaseEditSubmitComponent.prototype.getCaseTitle = function () {
|
|
26915
27009
|
return (this.caseEdit.caseDetails && this.caseEdit.caseDetails.state &&
|
|
@@ -26936,16 +27030,16 @@
|
|
|
26936
27030
|
}
|
|
26937
27031
|
return a.show_summary_content_option - b.show_summary_content_option;
|
|
26938
27032
|
};
|
|
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", ""], [
|
|
27033
|
+
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)); };
|
|
27034
|
+
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
27035
|
if (rf & 1) {
|
|
26942
|
-
i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template,
|
|
27036
|
+
i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 22, 16, "div", 0);
|
|
26943
27037
|
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
|
|
26944
27038
|
}
|
|
26945
27039
|
if (rf & 2) {
|
|
26946
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.
|
|
27040
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.caseEdit.isEventCompletionChecksRequired);
|
|
26947
27041
|
i0__namespace.ɵɵadvance(1);
|
|
26948
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.
|
|
27042
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
|
|
26949
27043
|
}
|
|
26950
27044
|
}, 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
27045
|
(function () {
|
|
@@ -26956,7 +27050,7 @@
|
|
|
26956
27050
|
templateUrl: 'case-edit-submit.html',
|
|
26957
27051
|
styleUrls: ['../case-edit.scss']
|
|
26958
27052
|
}]
|
|
26959
|
-
}], function () { return [{ type: CaseEditComponent }, { type:
|
|
27053
|
+
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1__namespace$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null);
|
|
26960
27054
|
})();
|
|
26961
27055
|
|
|
26962
27056
|
function CaseProgressComponent_div_0_Template(rf, ctx) {
|
|
@@ -27143,6 +27237,101 @@
|
|
|
27143
27237
|
}], null, null);
|
|
27144
27238
|
})();
|
|
27145
27239
|
|
|
27240
|
+
function CaseEditGenericErrorsComponent_div_0_Template(rf, ctx) {
|
|
27241
|
+
if (rf & 1) {
|
|
27242
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
27243
|
+
i0__namespace.ɵɵelementStart(1, "h1", 2);
|
|
27244
|
+
i0__namespace.ɵɵtext(2, " Something went wrong ");
|
|
27245
|
+
i0__namespace.ɵɵelementEnd();
|
|
27246
|
+
i0__namespace.ɵɵelementStart(3, "div", 3);
|
|
27247
|
+
i0__namespace.ɵɵelementStart(4, "p");
|
|
27248
|
+
i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
|
|
27249
|
+
i0__namespace.ɵɵelementEnd();
|
|
27250
|
+
i0__namespace.ɵɵelementStart(6, "p");
|
|
27251
|
+
i0__namespace.ɵɵelementStart(7, "a", 4);
|
|
27252
|
+
i0__namespace.ɵɵtext(8, "Contact us");
|
|
27253
|
+
i0__namespace.ɵɵelementEnd();
|
|
27254
|
+
i0__namespace.ɵɵtext(9, " if you're still having problems.");
|
|
27255
|
+
i0__namespace.ɵɵelementEnd();
|
|
27256
|
+
i0__namespace.ɵɵelementEnd();
|
|
27257
|
+
i0__namespace.ɵɵelementEnd();
|
|
27258
|
+
}
|
|
27259
|
+
}
|
|
27260
|
+
function CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template(rf, ctx) {
|
|
27261
|
+
if (rf & 1) {
|
|
27262
|
+
i0__namespace.ɵɵelementStart(0, "li", 9);
|
|
27263
|
+
i0__namespace.ɵɵtext(1);
|
|
27264
|
+
i0__namespace.ɵɵelementEnd();
|
|
27265
|
+
}
|
|
27266
|
+
if (rf & 2) {
|
|
27267
|
+
var fieldError_r4 = ctx.$implicit;
|
|
27268
|
+
i0__namespace.ɵɵadvance(1);
|
|
27269
|
+
i0__namespace.ɵɵtextInterpolate(fieldError_r4.message);
|
|
27270
|
+
}
|
|
27271
|
+
}
|
|
27272
|
+
function CaseEditGenericErrorsComponent_div_1_ul_5_Template(rf, ctx) {
|
|
27273
|
+
if (rf & 1) {
|
|
27274
|
+
i0__namespace.ɵɵelementStart(0, "ul", 7);
|
|
27275
|
+
i0__namespace.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template, 2, 1, "li", 8);
|
|
27276
|
+
i0__namespace.ɵɵelementEnd();
|
|
27277
|
+
}
|
|
27278
|
+
if (rf & 2) {
|
|
27279
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
27280
|
+
i0__namespace.ɵɵadvance(1);
|
|
27281
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r2.error.details.field_errors);
|
|
27282
|
+
}
|
|
27283
|
+
}
|
|
27284
|
+
function CaseEditGenericErrorsComponent_div_1_Template(rf, ctx) {
|
|
27285
|
+
if (rf & 1) {
|
|
27286
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
27287
|
+
i0__namespace.ɵɵelementStart(1, "h3", 5);
|
|
27288
|
+
i0__namespace.ɵɵtext(2, " The event could not be created ");
|
|
27289
|
+
i0__namespace.ɵɵelementEnd();
|
|
27290
|
+
i0__namespace.ɵɵelementStart(3, "p");
|
|
27291
|
+
i0__namespace.ɵɵtext(4);
|
|
27292
|
+
i0__namespace.ɵɵelementEnd();
|
|
27293
|
+
i0__namespace.ɵɵtemplate(5, CaseEditGenericErrorsComponent_div_1_ul_5_Template, 2, 1, "ul", 6);
|
|
27294
|
+
i0__namespace.ɵɵelementEnd();
|
|
27295
|
+
}
|
|
27296
|
+
if (rf & 2) {
|
|
27297
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
27298
|
+
i0__namespace.ɵɵadvance(4);
|
|
27299
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r1.error.message);
|
|
27300
|
+
i0__namespace.ɵɵadvance(1);
|
|
27301
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.error.details == null ? null : ctx_r1.error.details.field_errors);
|
|
27302
|
+
}
|
|
27303
|
+
}
|
|
27304
|
+
var CaseEditGenericErrorsComponent = /** @class */ (function () {
|
|
27305
|
+
function CaseEditGenericErrorsComponent() {
|
|
27306
|
+
}
|
|
27307
|
+
return CaseEditGenericErrorsComponent;
|
|
27308
|
+
}());
|
|
27309
|
+
CaseEditGenericErrorsComponent.ɵfac = function CaseEditGenericErrorsComponent_Factory(t) { return new (t || CaseEditGenericErrorsComponent)(); };
|
|
27310
|
+
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) {
|
|
27311
|
+
if (rf & 1) {
|
|
27312
|
+
i0__namespace.ɵɵtemplate(0, CaseEditGenericErrorsComponent_div_0_Template, 10, 0, "div", 0);
|
|
27313
|
+
i0__namespace.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_Template, 6, 2, "div", 0);
|
|
27314
|
+
}
|
|
27315
|
+
if (rf & 2) {
|
|
27316
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.error && (!(ctx.error.callbackErrors || ctx.error.callbackWarnings || ctx.error.details) && !ctx.error.message));
|
|
27317
|
+
i0__namespace.ɵɵadvance(1);
|
|
27318
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.error && (ctx.error.details || ctx.error.message));
|
|
27319
|
+
}
|
|
27320
|
+
}, 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%}"] });
|
|
27321
|
+
(function () {
|
|
27322
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEditGenericErrorsComponent, [{
|
|
27323
|
+
type: i0.Component,
|
|
27324
|
+
args: [{
|
|
27325
|
+
selector: 'ccd-case-edit-generic-errors',
|
|
27326
|
+
templateUrl: 'case-edit-generic-errors.component.html',
|
|
27327
|
+
styleUrls: ['../case-edit.scss'],
|
|
27328
|
+
providers: []
|
|
27329
|
+
}]
|
|
27330
|
+
}], null, { error: [{
|
|
27331
|
+
type: i0.Input
|
|
27332
|
+
}] });
|
|
27333
|
+
})();
|
|
27334
|
+
|
|
27146
27335
|
var _c0$e = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
|
|
27147
27336
|
var CaseEventCompletionTaskCancelledComponent = /** @class */ (function () {
|
|
27148
27337
|
function CaseEventCompletionTaskCancelledComponent(parentComponent) {
|
|
@@ -27416,10 +27605,10 @@
|
|
|
27416
27605
|
});
|
|
27417
27606
|
switch (portalType) {
|
|
27418
27607
|
case EventCompletionPortalTypes.TaskCancelled:
|
|
27419
|
-
this.selectedComponentPortal = new i6$
|
|
27608
|
+
this.selectedComponentPortal = new i6$1.ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
|
|
27420
27609
|
break;
|
|
27421
27610
|
case EventCompletionPortalTypes.TaskReassigned:
|
|
27422
|
-
this.selectedComponentPortal = new i6$
|
|
27611
|
+
this.selectedComponentPortal = new i6$1.ComponentPortal(CaseEventCompletionTaskReassignedComponent, null, injector);
|
|
27423
27612
|
break;
|
|
27424
27613
|
}
|
|
27425
27614
|
};
|
|
@@ -27433,7 +27622,7 @@
|
|
|
27433
27622
|
if (rf & 2) {
|
|
27434
27623
|
i0__namespace.ɵɵproperty("cdkPortalOutlet", ctx.selectedComponentPortal);
|
|
27435
27624
|
}
|
|
27436
|
-
}, directives: [i6__namespace$
|
|
27625
|
+
}, directives: [i6__namespace$1.CdkPortalOutlet], encapsulation: 2 });
|
|
27437
27626
|
(function () {
|
|
27438
27627
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEventCompletionComponent, [{
|
|
27439
27628
|
type: i0.Component,
|
|
@@ -27493,7 +27682,7 @@
|
|
|
27493
27682
|
LabelSubstitutorModule,
|
|
27494
27683
|
ConditionalShowModule,
|
|
27495
27684
|
ErrorsModule,
|
|
27496
|
-
i6$
|
|
27685
|
+
i6$1.PortalModule,
|
|
27497
27686
|
LoadingSpinnerModule,
|
|
27498
27687
|
BannersModule
|
|
27499
27688
|
]] });
|
|
@@ -27507,7 +27696,8 @@
|
|
|
27507
27696
|
CaseEventCompletionTaskCancelledComponent,
|
|
27508
27697
|
CaseEventCompletionTaskReassignedComponent,
|
|
27509
27698
|
CaseCreateComponent,
|
|
27510
|
-
CaseProgressComponent
|
|
27699
|
+
CaseProgressComponent,
|
|
27700
|
+
CaseEditGenericErrorsComponent], imports: [i1.CommonModule,
|
|
27511
27701
|
i1$1.RouterModule,
|
|
27512
27702
|
i2.FormsModule,
|
|
27513
27703
|
i2.ReactiveFormsModule,
|
|
@@ -27516,7 +27706,7 @@
|
|
|
27516
27706
|
LabelSubstitutorModule,
|
|
27517
27707
|
ConditionalShowModule,
|
|
27518
27708
|
ErrorsModule,
|
|
27519
|
-
i6$
|
|
27709
|
+
i6$1.PortalModule,
|
|
27520
27710
|
LoadingSpinnerModule,
|
|
27521
27711
|
BannersModule], exports: [CaseEditConfirmComponent,
|
|
27522
27712
|
CaseEditComponent,
|
|
@@ -27541,7 +27731,7 @@
|
|
|
27541
27731
|
LabelSubstitutorModule,
|
|
27542
27732
|
ConditionalShowModule,
|
|
27543
27733
|
ErrorsModule,
|
|
27544
|
-
i6$
|
|
27734
|
+
i6$1.PortalModule,
|
|
27545
27735
|
LoadingSpinnerModule,
|
|
27546
27736
|
BannersModule
|
|
27547
27737
|
],
|
|
@@ -27555,7 +27745,8 @@
|
|
|
27555
27745
|
CaseEventCompletionTaskCancelledComponent,
|
|
27556
27746
|
CaseEventCompletionTaskReassignedComponent,
|
|
27557
27747
|
CaseCreateComponent,
|
|
27558
|
-
CaseProgressComponent
|
|
27748
|
+
CaseProgressComponent,
|
|
27749
|
+
CaseEditGenericErrorsComponent
|
|
27559
27750
|
],
|
|
27560
27751
|
exports: [
|
|
27561
27752
|
CaseEditConfirmComponent,
|
|
@@ -27600,9 +27791,10 @@
|
|
|
27600
27791
|
}], null, null);
|
|
27601
27792
|
})();
|
|
27602
27793
|
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
|
|
27794
|
+
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,
|
|
27795
|
+
CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1__namespace.AsyncPipe]);
|
|
27604
27796
|
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,
|
|
27797
|
+
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
27798
|
i0__namespace.ɵɵsetComponentScope(CaseCreateComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
27607
27799
|
i0__namespace.ɵɵsetComponentScope(CaseProgressComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
27608
27800
|
|
|
@@ -30001,7 +30193,9 @@
|
|
|
30001
30193
|
};
|
|
30002
30194
|
CaseEventTriggerComponent.prototype.cancel = function () {
|
|
30003
30195
|
if (this.router.url && this.router.url.includes('linkCases')) {
|
|
30004
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]
|
|
30196
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
|
|
30197
|
+
window.location.hash = 'Linked cases';
|
|
30198
|
+
});
|
|
30005
30199
|
}
|
|
30006
30200
|
else {
|
|
30007
30201
|
return this.router.navigate([this.parentUrl]);
|
|
@@ -30599,9 +30793,9 @@
|
|
|
30599
30793
|
i0__namespace.ɵɵelementEnd();
|
|
30600
30794
|
}
|
|
30601
30795
|
if (rf & 2) {
|
|
30602
|
-
var
|
|
30796
|
+
var field_r24 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
30603
30797
|
i0__namespace.ɵɵadvance(2);
|
|
30604
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
30798
|
+
i0__namespace.ɵɵtextInterpolate(field_r24.label);
|
|
30605
30799
|
}
|
|
30606
30800
|
}
|
|
30607
30801
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) {
|
|
@@ -30616,14 +30810,14 @@
|
|
|
30616
30810
|
i0__namespace.ɵɵelementEnd();
|
|
30617
30811
|
}
|
|
30618
30812
|
if (rf & 2) {
|
|
30619
|
-
var
|
|
30620
|
-
var
|
|
30813
|
+
var field_r24 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30814
|
+
var ctx_r25 = i0__namespace.ɵɵnextContext(4);
|
|
30621
30815
|
i0__namespace.ɵɵadvance(1);
|
|
30622
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
30816
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r25.isFieldToHaveNoLabel(field_r24));
|
|
30623
30817
|
i0__namespace.ɵɵadvance(1);
|
|
30624
|
-
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
30818
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
30625
30819
|
i0__namespace.ɵɵadvance(2);
|
|
30626
|
-
i0__namespace.ɵɵproperty("topLevelFormGroup",
|
|
30820
|
+
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
|
|
30627
30821
|
}
|
|
30628
30822
|
}
|
|
30629
30823
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
|
|
@@ -30637,12 +30831,12 @@
|
|
|
30637
30831
|
i0__namespace.ɵɵelementEnd();
|
|
30638
30832
|
}
|
|
30639
30833
|
if (rf & 2) {
|
|
30640
|
-
var
|
|
30641
|
-
var
|
|
30834
|
+
var field_r24 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30835
|
+
var ctx_r26 = i0__namespace.ɵɵnextContext(4);
|
|
30642
30836
|
i0__namespace.ɵɵadvance(1);
|
|
30643
|
-
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
30837
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
30644
30838
|
i0__namespace.ɵɵadvance(2);
|
|
30645
|
-
i0__namespace.ɵɵproperty("topLevelFormGroup",
|
|
30839
|
+
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r26.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r26.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r26.markdownUseHrefAsRouterLink);
|
|
30646
30840
|
}
|
|
30647
30841
|
}
|
|
30648
30842
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) {
|
|
@@ -30658,12 +30852,12 @@
|
|
|
30658
30852
|
i0__namespace.ɵɵelementContainerEnd();
|
|
30659
30853
|
}
|
|
30660
30854
|
if (rf & 2) {
|
|
30661
|
-
var
|
|
30662
|
-
var
|
|
30855
|
+
var field_r24 = ctx.$implicit;
|
|
30856
|
+
var ctx_r23 = i0__namespace.ɵɵnextContext(4);
|
|
30663
30857
|
i0__namespace.ɵɵadvance(1);
|
|
30664
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
30858
|
+
i0__namespace.ɵɵproperty("caseField", field_r24)("contextFields", ctx_r23.caseFields)("hidden", field_r24.hidden);
|
|
30665
30859
|
i0__namespace.ɵɵadvance(1);
|
|
30666
|
-
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(3, 6,
|
|
30860
|
+
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(3, 6, field_r24));
|
|
30667
30861
|
i0__namespace.ɵɵadvance(2);
|
|
30668
30862
|
i0__namespace.ɵɵproperty("ngSwitchCase", true);
|
|
30669
30863
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -30683,10 +30877,10 @@
|
|
|
30683
30877
|
}
|
|
30684
30878
|
if (rf & 2) {
|
|
30685
30879
|
var tab_r20 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30686
|
-
var
|
|
30880
|
+
var ctx_r22 = i0__namespace.ɵɵnextContext(2);
|
|
30687
30881
|
i0__namespace.ɵɵclassMap(tab_r20.id);
|
|
30688
30882
|
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),
|
|
30883
|
+
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
30884
|
}
|
|
30691
30885
|
}
|
|
30692
30886
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template(rf, ctx) {
|
|
@@ -30705,8 +30899,8 @@
|
|
|
30705
30899
|
i0__namespace.ɵɵelement(0, "mat-tab", 26);
|
|
30706
30900
|
}
|
|
30707
30901
|
if (rf & 2) {
|
|
30708
|
-
var
|
|
30709
|
-
i0__namespace.ɵɵproperty("id",
|
|
30902
|
+
var tab_r32 = ctx.$implicit;
|
|
30903
|
+
i0__namespace.ɵɵproperty("id", tab_r32.id)("label", tab_r32.label);
|
|
30710
30904
|
}
|
|
30711
30905
|
}
|
|
30712
30906
|
function CaseFullAccessViewComponent_ng_container_12_router_outlet_6_Template(rf, ctx) {
|
|
@@ -30716,10 +30910,10 @@
|
|
|
30716
30910
|
}
|
|
30717
30911
|
function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) {
|
|
30718
30912
|
if (rf & 1) {
|
|
30719
|
-
var
|
|
30913
|
+
var _r34_1 = i0__namespace.ɵɵgetCurrentView();
|
|
30720
30914
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
30721
30915
|
i0__namespace.ɵɵelementStart(1, "mat-tab-group", 23, 24);
|
|
30722
|
-
i0__namespace.ɵɵlistener("
|
|
30916
|
+
i0__namespace.ɵɵlistener("selectedIndexChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedIndexChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r34_1); var ctx_r33 = i0__namespace.ɵɵnextContext(); return ctx_r33.tabChanged($event); });
|
|
30723
30917
|
i0__namespace.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template, 1, 2, "mat-tab", 25);
|
|
30724
30918
|
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template, 2, 2, "mat-tab", 25);
|
|
30725
30919
|
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template, 1, 2, "mat-tab", 25);
|
|
@@ -30757,6 +30951,7 @@
|
|
|
30757
30951
|
this.location = location;
|
|
30758
30952
|
this.crf = crf;
|
|
30759
30953
|
this.sessionStorageService = sessionStorageService;
|
|
30954
|
+
this.HEARINGS_TAB_LABEL = 'Hearings';
|
|
30760
30955
|
this.hasPrint = true;
|
|
30761
30956
|
this.hasEventSelector = true;
|
|
30762
30957
|
this.prependedTabs = [];
|
|
@@ -30768,6 +30963,7 @@
|
|
|
30768
30963
|
this.ignoreWarning = false;
|
|
30769
30964
|
this.selectedTabIndex = 0;
|
|
30770
30965
|
this.activeCaseFlags = false;
|
|
30966
|
+
this.subs = [];
|
|
30771
30967
|
this.callbackErrorsSubject = new rxjs.Subject();
|
|
30772
30968
|
}
|
|
30773
30969
|
CaseFullAccessViewComponent.prototype.ngOnInit = function () {
|
|
@@ -30820,6 +31016,7 @@
|
|
|
30820
31016
|
this.unsubscribe(this.callbackErrorsSubject);
|
|
30821
31017
|
this.unsubscribe(this.errorSubscription);
|
|
30822
31018
|
this.unsubscribe(this.subscription);
|
|
31019
|
+
this.subs.forEach(function (s) { return s.unsubscribe(); });
|
|
30823
31020
|
};
|
|
30824
31021
|
CaseFullAccessViewComponent.prototype.unsubscribe = function (subscription) {
|
|
30825
31022
|
if (subscription) {
|
|
@@ -30828,7 +31025,7 @@
|
|
|
30828
31025
|
};
|
|
30829
31026
|
CaseFullAccessViewComponent.prototype.checkRouteAndSetCaseViewTab = function () {
|
|
30830
31027
|
var _this = this;
|
|
30831
|
-
this.router.events
|
|
31028
|
+
this.subs.push(this.router.events
|
|
30832
31029
|
.pipe(operators.filter(function (event) { return event instanceof i1$1.NavigationEnd; }))
|
|
30833
31030
|
.subscribe(function (event) {
|
|
30834
31031
|
var url = event && event.url;
|
|
@@ -30840,8 +31037,9 @@
|
|
|
30840
31037
|
_this.tabGroup.selectedIndex = matTab.position;
|
|
30841
31038
|
}
|
|
30842
31039
|
}
|
|
30843
|
-
});
|
|
31040
|
+
}));
|
|
30844
31041
|
};
|
|
31042
|
+
;
|
|
30845
31043
|
CaseFullAccessViewComponent.prototype.postViewActivity = function () {
|
|
30846
31044
|
return this.activityPollingService.postViewActivity(this.caseDetails.case_id);
|
|
30847
31045
|
};
|
|
@@ -30964,20 +31162,25 @@
|
|
|
30964
31162
|
}
|
|
30965
31163
|
}
|
|
30966
31164
|
};
|
|
30967
|
-
|
|
30968
|
-
|
|
30969
|
-
this.
|
|
30970
|
-
var
|
|
30971
|
-
|
|
30972
|
-
//
|
|
30973
|
-
|
|
30974
|
-
|
|
30975
|
-
|
|
31165
|
+
// Refactored under EXUI-110 to address infinite tab loop to use tabIndexChanged instead
|
|
31166
|
+
CaseFullAccessViewComponent.prototype.tabChanged = function (tabIndexChanged) {
|
|
31167
|
+
var matTab = this.tabGroup._tabs.find(function (tab) { return tab.isActive; });
|
|
31168
|
+
var tabLabel = matTab.textLabel;
|
|
31169
|
+
// sortedTabs are fragments
|
|
31170
|
+
// appended/prepepended tabs use router navigation
|
|
31171
|
+
if ((tabIndexChanged <= 1 && this.prependedTabs && this.prependedTabs.length) ||
|
|
31172
|
+
(this.appendedTabs && this.appendedTabs.length && tabLabel === this.HEARINGS_TAB_LABEL)) {
|
|
31173
|
+
// Hack to get ID from tab as it's not easily achieved through Angular Material Tabs
|
|
31174
|
+
var tab = matTab['_viewContainerRef'];
|
|
31175
|
+
var id = tab.element.nativeElement.id;
|
|
31176
|
+
// cases/case-details/:caseId/hearings
|
|
31177
|
+
// cases/case-details/:caseId/roles-and-access
|
|
30976
31178
|
this.router.navigate([id], { relativeTo: this.route });
|
|
30977
31179
|
}
|
|
30978
31180
|
else {
|
|
30979
|
-
|
|
30980
|
-
|
|
31181
|
+
// Routing here is based on tab label, not ideal
|
|
31182
|
+
// cases/case-details/:caseId#tabLabel
|
|
31183
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: tabLabel });
|
|
30981
31184
|
}
|
|
30982
31185
|
};
|
|
30983
31186
|
CaseFullAccessViewComponent.prototype.onLinkClicked = function (triggerOutputEventText) {
|
|
@@ -31075,6 +31278,12 @@
|
|
|
31075
31278
|
this.callbackErrorsSubject.next(null);
|
|
31076
31279
|
this.alertService.clear();
|
|
31077
31280
|
};
|
|
31281
|
+
CaseFullAccessViewComponent.prototype.getUrlFragment = function (url) {
|
|
31282
|
+
return url.split('#')[url.split('#').length - 1];
|
|
31283
|
+
};
|
|
31284
|
+
CaseFullAccessViewComponent.prototype.getTabIndexByTabLabel = function (tabGroup, tabLabel) {
|
|
31285
|
+
return tabGroup._tabs.toArray().findIndex(function (t) { return t.textLabel.toLowerCase() === tabLabel.toLowerCase(); });
|
|
31286
|
+
};
|
|
31078
31287
|
return CaseFullAccessViewComponent;
|
|
31079
31288
|
}());
|
|
31080
31289
|
CaseFullAccessViewComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
@@ -31091,7 +31300,7 @@
|
|
|
31091
31300
|
var _t = void 0;
|
|
31092
31301
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
31093
31302
|
}
|
|
31094
|
-
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "
|
|
31303
|
+
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "selectedIndexChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
|
|
31095
31304
|
if (rf & 1) {
|
|
31096
31305
|
i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
|
|
31097
31306
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
|
|
@@ -31379,24 +31588,23 @@
|
|
|
31379
31588
|
};
|
|
31380
31589
|
CaseViewerComponent.prototype.loadCaseDetails = function () {
|
|
31381
31590
|
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 {
|
|
31591
|
+
if (!this.route.snapshot.data.case) {
|
|
31388
31592
|
this.caseSubscription = this.caseNotifier.caseView.subscribe(function (caseDetails) {
|
|
31389
31593
|
_this.caseDetails = caseDetails;
|
|
31390
31594
|
_this.setUserAccessType(_this.caseDetails);
|
|
31391
31595
|
});
|
|
31392
31596
|
}
|
|
31597
|
+
else {
|
|
31598
|
+
this.caseDetails = this.route.snapshot.data.case;
|
|
31599
|
+
this.setUserAccessType(this.caseDetails);
|
|
31600
|
+
}
|
|
31393
31601
|
};
|
|
31394
31602
|
CaseViewerComponent.prototype.setUserAccessType = function (caseDetails) {
|
|
31395
31603
|
if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
|
|
31396
|
-
var
|
|
31397
|
-
var
|
|
31398
|
-
this.accessGranted =
|
|
31399
|
-
this.userAccessType =
|
|
31604
|
+
var access_process = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID; });
|
|
31605
|
+
var access_granted = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID; });
|
|
31606
|
+
this.accessGranted = access_granted ? access_granted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
|
|
31607
|
+
this.userAccessType = access_process ? access_process.value : null;
|
|
31400
31608
|
}
|
|
31401
31609
|
};
|
|
31402
31610
|
CaseViewerComponent.prototype.isDataLoaded = function () {
|
|
@@ -31410,12 +31618,12 @@
|
|
|
31410
31618
|
};
|
|
31411
31619
|
return CaseViewerComponent;
|
|
31412
31620
|
}());
|
|
31413
|
-
CaseViewerComponent.
|
|
31621
|
+
CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID = '[ACCESS_PROCESS]';
|
|
31414
31622
|
CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID = '[ACCESS_GRANTED]';
|
|
31415
31623
|
CaseViewerComponent.NON_STANDARD_USER_ACCESS_TYPES = ['CHALLENGED', 'SPECIFIC'];
|
|
31416
31624
|
CaseViewerComponent.BASIC_USER_ACCESS_TYPES = 'BASIC';
|
|
31417
31625
|
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) {
|
|
31626
|
+
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
31627
|
if (rf & 1) {
|
|
31420
31628
|
i0__namespace.ɵɵtemplate(0, CaseViewerComponent_div_0_Template, 3, 2, "div", 0);
|
|
31421
31629
|
}
|
|
@@ -31438,6 +31646,8 @@
|
|
|
31438
31646
|
type: i0.Input
|
|
31439
31647
|
}], appendedTabs: [{
|
|
31440
31648
|
type: i0.Input
|
|
31649
|
+
}], caseDetails: [{
|
|
31650
|
+
type: i0.Input
|
|
31441
31651
|
}] });
|
|
31442
31652
|
})();
|
|
31443
31653
|
|