@hmcts/ccd-case-ui-toolkit 6.16.1-case-details-in-title → 6.16.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 +1142 -1259
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/case-editor/case-edit/case-edit.component.js +272 -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 +200 -192
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +161 -410
- package/esm2015/lib/shared/components/case-editor/case-editor.module.js +20 -17
- package/esm2015/lib/shared/components/case-editor/services/cases.service.js +1 -1
- package/esm2015/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.js +11 -28
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +2 -4
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +56 -60
- package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +33 -15
- package/esm2015/lib/shared/components/error/callback-errors.component.js +1 -6
- package/esm2015/lib/shared/components/palette/base-field/field-read-label.component.js +1 -1
- package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +79 -29
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.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/complex/read-complex-field-table.component.js +2 -2
- package/esm2015/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js +1 -1
- package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +2 -3
- package/esm2015/lib/shared/components/palette/index.js +2 -3
- 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 +2 -4
- package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +1 -1
- package/esm2015/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.js +2 -4
- package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +2 -4
- package/esm2015/lib/shared/components/palette/palette.module.js +27 -67
- package/esm2015/lib/shared/components/palette/palette.service.js +2 -4
- package/esm2015/lib/shared/directives/conditional-show/conditional-show-form.directive.js +2 -2
- package/esm2015/lib/shared/domain/case-edit/case-edit.model.js +2 -0
- package/esm2015/lib/shared/domain/case-edit/index.js +2 -0
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +1 -1
- package/esm2015/lib/shared/domain/definition/display-context-enum.model.js +1 -2
- package/esm2015/lib/shared/domain/index.js +2 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +1135 -1233
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +65 -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 +10 -9
- 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-editor/services/cases.service.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.d.ts +1 -5
- package/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.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 +7 -7
- 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 +6 -3
- package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -1
- package/lib/shared/components/error/callback-errors.component.d.ts +2 -3
- package/lib/shared/components/error/callback-errors.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +9 -7
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +4 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/index.d.ts +1 -2
- package/lib/shared/components/palette/index.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/components/palette/palette.module.d.ts +117 -122
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.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/definition/display-context-enum.model.d.ts +1 -2
- package/lib/shared/domain/definition/display-context-enum.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 +1 -1
- package/esm2015/lib/shared/components/palette/query-management/__mocks__/index.js +0 -112
- package/esm2015/lib/shared/components/palette/query-management/components/index.js +0 -4
- package/esm2015/lib/shared/components/palette/query-management/components/query-create/query-create.component.js +0 -18
- package/esm2015/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.js +0 -18
- package/esm2015/lib/shared/components/palette/query-management/components/query-list/query-list.component.js +0 -20
- package/esm2015/lib/shared/components/palette/query-management/domain/index.js +0 -2
- package/esm2015/lib/shared/components/palette/query-management/domain/query-management.model.js +0 -2
- package/esm2015/lib/shared/components/palette/query-management/index.js +0 -6
- package/esm2015/lib/shared/components/palette/query-management/read-query-management-field.component.js +0 -43
- package/esm2015/lib/shared/components/palette/query-management/utils/query-management.utils.js +0 -12
- package/esm2015/lib/shared/components/palette/query-management/write-query-management-field.component.js +0 -20
- package/lib/shared/components/palette/query-management/__mocks__/index.d.ts +0 -3
- package/lib/shared/components/palette/query-management/__mocks__/index.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/components/index.d.ts +0 -4
- package/lib/shared/components/palette/query-management/components/index.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/components/query-create/query-create.component.d.ts +0 -9
- package/lib/shared/components/palette/query-management/components/query-create/query-create.component.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.d.ts +0 -9
- package/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts +0 -11
- package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/domain/index.d.ts +0 -2
- package/lib/shared/components/palette/query-management/domain/index.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/domain/query-management.model.d.ts +0 -19
- package/lib/shared/components/palette/query-management/domain/query-management.model.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/index.d.ts +0 -6
- package/lib/shared/components/palette/query-management/index.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts +0 -14
- package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts +0 -7
- package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts.map +0 -1
- package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts +0 -10
- package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
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/
|
|
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/
|
|
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.
|
|
5
|
-
})(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$1,
|
|
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
|
+
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
|
+
(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, 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,20 +34,19 @@
|
|
|
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
|
-
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
51
50
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
52
51
|
|
|
53
52
|
function FooterComponent_div_2_Template(rf, ctx) {
|
|
@@ -5207,7 +5206,7 @@
|
|
|
5207
5206
|
if (cf.hidden === true && !control.disabled) {
|
|
5208
5207
|
control.disable({ emitEvent: false });
|
|
5209
5208
|
}
|
|
5210
|
-
else if (cf.hidden !== true
|
|
5209
|
+
else if (cf.hidden !== true) {
|
|
5211
5210
|
control.enable({ emitEvent: false });
|
|
5212
5211
|
}
|
|
5213
5212
|
}
|
|
@@ -8752,44 +8751,48 @@
|
|
|
8752
8751
|
}] });
|
|
8753
8752
|
})();
|
|
8754
8753
|
|
|
8755
|
-
var
|
|
8756
|
-
function
|
|
8757
|
-
this.
|
|
8758
|
-
this.
|
|
8754
|
+
var Confirmation = /** @class */ (function () {
|
|
8755
|
+
function Confirmation(caseId, status, header, body) {
|
|
8756
|
+
this.caseId = caseId;
|
|
8757
|
+
this.status = status;
|
|
8758
|
+
this.header = header;
|
|
8759
|
+
this.body = body;
|
|
8759
8760
|
}
|
|
8760
|
-
|
|
8761
|
-
this.
|
|
8761
|
+
Confirmation.prototype.getCaseId = function () {
|
|
8762
|
+
return this.caseId;
|
|
8762
8763
|
};
|
|
8763
|
-
|
|
8764
|
-
return this.
|
|
8764
|
+
Confirmation.prototype.getStatus = function () {
|
|
8765
|
+
return this.status;
|
|
8765
8766
|
};
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
var queryParams = urls[1];
|
|
8769
|
-
var queryParamObj = {};
|
|
8770
|
-
if (queryParams) {
|
|
8771
|
-
var queryParam = queryParams.split('&');
|
|
8772
|
-
if (queryParam[0]) {
|
|
8773
|
-
// tslint:disable-next-line: prefer-for-of
|
|
8774
|
-
for (var i = 0; i < queryParam.length; i++) {
|
|
8775
|
-
var param = queryParam[i].split('=');
|
|
8776
|
-
queryParamObj[param[0]] = param[1];
|
|
8777
|
-
}
|
|
8778
|
-
}
|
|
8779
|
-
}
|
|
8780
|
-
this.router.navigate([urls[0]], {
|
|
8781
|
-
queryParams: queryParamObj && (Object.keys(queryParamObj).length) ? queryParamObj : ''
|
|
8782
|
-
});
|
|
8767
|
+
Confirmation.prototype.getHeader = function () {
|
|
8768
|
+
return this.header;
|
|
8783
8769
|
};
|
|
8784
|
-
|
|
8770
|
+
Confirmation.prototype.getBody = function () {
|
|
8771
|
+
return this.body;
|
|
8772
|
+
};
|
|
8773
|
+
return Confirmation;
|
|
8785
8774
|
}());
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
(function () {
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
})();
|
|
8775
|
+
|
|
8776
|
+
exports.EventCompletionReturnStates = void 0;
|
|
8777
|
+
(function (EventCompletionReturnStates) {
|
|
8778
|
+
EventCompletionReturnStates["InProgress"] = "in-progress";
|
|
8779
|
+
EventCompletionReturnStates["CompleteEvent"] = "complete-event";
|
|
8780
|
+
EventCompletionReturnStates["CancelEvent"] = "cancel-event";
|
|
8781
|
+
})(exports.EventCompletionReturnStates || (exports.EventCompletionReturnStates = {}));
|
|
8782
|
+
|
|
8783
|
+
exports.EventCompletionStates = void 0;
|
|
8784
|
+
(function (EventCompletionStates) {
|
|
8785
|
+
EventCompletionStates["CheckTasksCanBeCompleted"] = "check-tasks-can-be-completed";
|
|
8786
|
+
EventCompletionStates["CompleteEventAndTask"] = "complete-event-and-task";
|
|
8787
|
+
EventCompletionStates["CancelEvent"] = "cancel-event";
|
|
8788
|
+
EventCompletionStates["CompleteEventNotTask"] = "complete-event-not-task";
|
|
8789
|
+
EventCompletionStates["TaskCompetedOrCancelled"] = "task-completed-or-cancelled";
|
|
8790
|
+
EventCompletionStates["TaskAssignedToAnotherUser"] = "task-assigned-to-another-user";
|
|
8791
|
+
EventCompletionStates["TaskReassignToUser"] = "task-reassign-to-user";
|
|
8792
|
+
EventCompletionStates["TaskAssignToUser"] = "task-assign-to-user";
|
|
8793
|
+
EventCompletionStates["TaskUnassigned"] = "task-unassigned";
|
|
8794
|
+
EventCompletionStates["Final"] = "final";
|
|
8795
|
+
})(exports.EventCompletionStates || (exports.EventCompletionStates = {}));
|
|
8793
8796
|
|
|
8794
8797
|
var Wizard = /** @class */ (function () {
|
|
8795
8798
|
function Wizard(wizardPages) {
|
|
@@ -8848,6 +8851,45 @@
|
|
|
8848
8851
|
return Wizard;
|
|
8849
8852
|
}());
|
|
8850
8853
|
|
|
8854
|
+
var ConvertHrefToRouterService = /** @class */ (function () {
|
|
8855
|
+
function ConvertHrefToRouterService(router) {
|
|
8856
|
+
this.router = router;
|
|
8857
|
+
this.hrefMarkdownLinkContent = new rxjs.BehaviorSubject('Default');
|
|
8858
|
+
}
|
|
8859
|
+
ConvertHrefToRouterService.prototype.updateHrefLink = function (content) {
|
|
8860
|
+
this.hrefMarkdownLinkContent.next(content);
|
|
8861
|
+
};
|
|
8862
|
+
ConvertHrefToRouterService.prototype.getHrefMarkdownLinkContent = function () {
|
|
8863
|
+
return this.hrefMarkdownLinkContent.asObservable();
|
|
8864
|
+
};
|
|
8865
|
+
ConvertHrefToRouterService.prototype.callAngularRouter = function (hrefMarkdownLinkContent) {
|
|
8866
|
+
var urls = hrefMarkdownLinkContent.split('?');
|
|
8867
|
+
var queryParams = urls[1];
|
|
8868
|
+
var queryParamObj = {};
|
|
8869
|
+
if (queryParams) {
|
|
8870
|
+
var queryParam = queryParams.split('&');
|
|
8871
|
+
if (queryParam[0]) {
|
|
8872
|
+
// tslint:disable-next-line: prefer-for-of
|
|
8873
|
+
for (var i = 0; i < queryParam.length; i++) {
|
|
8874
|
+
var param = queryParam[i].split('=');
|
|
8875
|
+
queryParamObj[param[0]] = param[1];
|
|
8876
|
+
}
|
|
8877
|
+
}
|
|
8878
|
+
}
|
|
8879
|
+
this.router.navigate([urls[0]], {
|
|
8880
|
+
queryParams: queryParamObj && (Object.keys(queryParamObj).length) ? queryParamObj : ''
|
|
8881
|
+
});
|
|
8882
|
+
};
|
|
8883
|
+
return ConvertHrefToRouterService;
|
|
8884
|
+
}());
|
|
8885
|
+
ConvertHrefToRouterService.ɵfac = function ConvertHrefToRouterService_Factory(t) { return new (t || ConvertHrefToRouterService)(i0__namespace.ɵɵinject(i1__namespace$1.Router)); };
|
|
8886
|
+
ConvertHrefToRouterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ConvertHrefToRouterService, factory: ConvertHrefToRouterService.ɵfac });
|
|
8887
|
+
(function () {
|
|
8888
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ConvertHrefToRouterService, [{
|
|
8889
|
+
type: i0.Injectable
|
|
8890
|
+
}], function () { return [{ type: i1__namespace$1.Router }]; }, null);
|
|
8891
|
+
})();
|
|
8892
|
+
|
|
8851
8893
|
var WizardFactoryService = /** @class */ (function () {
|
|
8852
8894
|
function WizardFactoryService() {
|
|
8853
8895
|
}
|
|
@@ -9040,20 +9082,6 @@
|
|
|
9040
9082
|
EventCompletionPortalTypes[EventCompletionPortalTypes["TaskReassigned"] = 1] = "TaskReassigned";
|
|
9041
9083
|
})(EventCompletionPortalTypes || (EventCompletionPortalTypes = {}));
|
|
9042
9084
|
|
|
9043
|
-
exports.EventCompletionStates = void 0;
|
|
9044
|
-
(function (EventCompletionStates) {
|
|
9045
|
-
EventCompletionStates["CheckTasksCanBeCompleted"] = "check-tasks-can-be-completed";
|
|
9046
|
-
EventCompletionStates["CompleteEventAndTask"] = "complete-event-and-task";
|
|
9047
|
-
EventCompletionStates["CancelEvent"] = "cancel-event";
|
|
9048
|
-
EventCompletionStates["CompleteEventNotTask"] = "complete-event-not-task";
|
|
9049
|
-
EventCompletionStates["TaskCompetedOrCancelled"] = "task-completed-or-cancelled";
|
|
9050
|
-
EventCompletionStates["TaskAssignedToAnotherUser"] = "task-assigned-to-another-user";
|
|
9051
|
-
EventCompletionStates["TaskReassignToUser"] = "task-reassign-to-user";
|
|
9052
|
-
EventCompletionStates["TaskAssignToUser"] = "task-assign-to-user";
|
|
9053
|
-
EventCompletionStates["TaskUnassigned"] = "task-unassigned";
|
|
9054
|
-
EventCompletionStates["Final"] = "final";
|
|
9055
|
-
})(exports.EventCompletionStates || (exports.EventCompletionStates = {}));
|
|
9056
|
-
|
|
9057
9085
|
var EVENT_COMPLETION_STATE_MACHINE = 'EVENT COMPLETION STATE MACHINE';
|
|
9058
9086
|
var EventCompletionStateMachineService = /** @class */ (function () {
|
|
9059
9087
|
function EventCompletionStateMachineService() {
|
|
@@ -9499,8 +9527,9 @@
|
|
|
9499
9527
|
})();
|
|
9500
9528
|
|
|
9501
9529
|
var CaseEditComponent = /** @class */ (function () {
|
|
9502
|
-
function CaseEditComponent(fb, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService) {
|
|
9530
|
+
function CaseEditComponent(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService) {
|
|
9503
9531
|
this.fb = fb;
|
|
9532
|
+
this.caseNotifier = caseNotifier;
|
|
9504
9533
|
this.router = router;
|
|
9505
9534
|
this.route = route;
|
|
9506
9535
|
this.fieldsUtils = fieldsUtils;
|
|
@@ -9509,8 +9538,16 @@
|
|
|
9509
9538
|
this.wizardFactory = wizardFactory;
|
|
9510
9539
|
this.sessionStorageService = sessionStorageService;
|
|
9511
9540
|
this.windowsService = windowsService;
|
|
9541
|
+
this.formValueService = formValueService;
|
|
9542
|
+
this.formErrorService = formErrorService;
|
|
9543
|
+
this.loadingService = loadingService;
|
|
9512
9544
|
this.cancelled = new i0.EventEmitter();
|
|
9513
9545
|
this.submitted = new i0.EventEmitter();
|
|
9546
|
+
this.isEventCompletionChecksRequired = false;
|
|
9547
|
+
this.isCaseFlagSubmission = false;
|
|
9548
|
+
this.ignoreWarning = false;
|
|
9549
|
+
this.isLinkedCasesSubmission = false;
|
|
9550
|
+
this.callbackErrorsSubject = new rxjs.Subject();
|
|
9514
9551
|
}
|
|
9515
9552
|
CaseEditComponent.prototype.ngOnInit = function () {
|
|
9516
9553
|
var _this = this;
|
|
@@ -9518,6 +9555,7 @@
|
|
|
9518
9555
|
this.initialUrl = this.sessionStorageService.getItem('eventUrl');
|
|
9519
9556
|
this.isPageRefreshed = JSON.parse(this.sessionStorageService.getItem('isPageRefreshed'));
|
|
9520
9557
|
this.checkPageRefresh();
|
|
9558
|
+
/* istanbul ignore else */
|
|
9521
9559
|
if (this.router.url && !this.isPageRefreshed) {
|
|
9522
9560
|
this.sessionStorageService.setItem('eventUrl', this.router.url);
|
|
9523
9561
|
}
|
|
@@ -9533,6 +9571,12 @@
|
|
|
9533
9571
|
_this.navigationOrigin = params[CaseEditComponent.ORIGIN_QUERY_PARAM];
|
|
9534
9572
|
});
|
|
9535
9573
|
};
|
|
9574
|
+
CaseEditComponent.prototype.ngOnDestroy = function () {
|
|
9575
|
+
/* istanbul ignore else */
|
|
9576
|
+
if (this.callbackErrorsSubject) {
|
|
9577
|
+
this.callbackErrorsSubject.unsubscribe();
|
|
9578
|
+
}
|
|
9579
|
+
};
|
|
9536
9580
|
CaseEditComponent.prototype.checkPageRefresh = function () {
|
|
9537
9581
|
if (this.isPageRefreshed && this.initialUrl) {
|
|
9538
9582
|
this.sessionStorageService.removeItem('eventUrl');
|
|
@@ -9555,20 +9599,37 @@
|
|
|
9555
9599
|
};
|
|
9556
9600
|
CaseEditComponent.prototype.next = function (currentPageId) {
|
|
9557
9601
|
this.initialUrl = this.sessionStorageService.getItem('eventUrl');
|
|
9602
|
+
/* istanbul ignore else */
|
|
9558
9603
|
if (this.router.url && !this.initialUrl) {
|
|
9559
9604
|
this.sessionStorageService.setItem('eventUrl', this.router.url);
|
|
9560
9605
|
}
|
|
9561
9606
|
this.fieldsPurger.clearHiddenFields(this.form, this.wizard, this.eventTrigger, currentPageId);
|
|
9607
|
+
var nextPage = this.getNextPage({
|
|
9608
|
+
currentPageId: currentPageId,
|
|
9609
|
+
wizard: this.wizard,
|
|
9610
|
+
eventTrigger: this.eventTrigger,
|
|
9611
|
+
form: this.form,
|
|
9612
|
+
});
|
|
9613
|
+
/* istanbul ignore else */
|
|
9614
|
+
if (!nextPage && !this.eventTrigger.show_summary && !this.eventTrigger.show_event_notes) {
|
|
9615
|
+
this.submitForm({
|
|
9616
|
+
eventTrigger: this.eventTrigger,
|
|
9617
|
+
form: this.form,
|
|
9618
|
+
submit: this.submit,
|
|
9619
|
+
caseDetails: this.caseDetails,
|
|
9620
|
+
});
|
|
9621
|
+
return;
|
|
9622
|
+
}
|
|
9562
9623
|
this.registrarService.reset();
|
|
9563
9624
|
var theQueryParams = {};
|
|
9564
9625
|
theQueryParams[CaseEditComponent.ORIGIN_QUERY_PARAM] = this.navigationOrigin;
|
|
9565
|
-
var nextPage = this.wizard.nextPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(this.eventTrigger, this.form));
|
|
9566
9626
|
return this.router.navigate([nextPage ? nextPage.id : 'submit'], { queryParams: theQueryParams, relativeTo: this.route });
|
|
9567
9627
|
};
|
|
9568
9628
|
CaseEditComponent.prototype.previous = function (currentPageId) {
|
|
9569
9629
|
this.fieldsPurger.clearHiddenFields(this.form, this.wizard, this.eventTrigger, currentPageId);
|
|
9570
9630
|
this.registrarService.reset();
|
|
9571
9631
|
var previousPage = this.wizard.previousPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(this.eventTrigger, this.form));
|
|
9632
|
+
/* istanbul ignore else */
|
|
9572
9633
|
if (!previousPage) {
|
|
9573
9634
|
return Promise.resolve(false);
|
|
9574
9635
|
}
|
|
@@ -9582,15 +9643,245 @@
|
|
|
9582
9643
|
CaseEditComponent.prototype.cancel = function () {
|
|
9583
9644
|
this.cancelled.emit();
|
|
9584
9645
|
};
|
|
9646
|
+
CaseEditComponent.prototype.emitSubmitted = function (response) {
|
|
9647
|
+
this.submitted.emit({ caseId: response['id'], status: this.getStatus(response) });
|
|
9648
|
+
};
|
|
9649
|
+
CaseEditComponent.prototype.getNextPage = function (_a) {
|
|
9650
|
+
var wizard = _a.wizard, currentPageId = _a.currentPageId, eventTrigger = _a.eventTrigger, form = _a.form;
|
|
9651
|
+
return wizard.nextPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(eventTrigger, form));
|
|
9652
|
+
};
|
|
9585
9653
|
CaseEditComponent.prototype.confirm = function (confirmation) {
|
|
9586
9654
|
this.confirmation = confirmation;
|
|
9587
9655
|
return this.router.navigate(['confirm'], { relativeTo: this.route });
|
|
9588
9656
|
};
|
|
9657
|
+
CaseEditComponent.prototype.submitForm = function (_a) {
|
|
9658
|
+
var eventTrigger = _a.eventTrigger, form = _a.form, caseDetails = _a.caseDetails, submit = _a.submit;
|
|
9659
|
+
this.isSubmitting = true;
|
|
9660
|
+
// We have to run the event completion checks if task in session storage
|
|
9661
|
+
// and if the task is in session storage, then is it associated to the case
|
|
9662
|
+
var taskInSessionStorage;
|
|
9663
|
+
var taskStr = this.sessionStorageService.getItem('taskToComplete');
|
|
9664
|
+
if (taskStr) {
|
|
9665
|
+
taskInSessionStorage = JSON.parse(taskStr);
|
|
9666
|
+
}
|
|
9667
|
+
if (taskInSessionStorage && taskInSessionStorage.case_id === this.getCaseId(caseDetails)) {
|
|
9668
|
+
// Show event completion component to perform event completion checks
|
|
9669
|
+
this.eventCompletionParams = ({
|
|
9670
|
+
caseId: this.getCaseId(caseDetails),
|
|
9671
|
+
eventId: this.getEventId(form),
|
|
9672
|
+
task: taskInSessionStorage
|
|
9673
|
+
});
|
|
9674
|
+
this.isEventCompletionChecksRequired = true;
|
|
9675
|
+
}
|
|
9676
|
+
else {
|
|
9677
|
+
// Task not in session storage, proceed to submit
|
|
9678
|
+
var caseEventData = this.generateCaseEventData({
|
|
9679
|
+
eventTrigger: eventTrigger,
|
|
9680
|
+
form: form
|
|
9681
|
+
});
|
|
9682
|
+
this.caseSubmit({ form: form,
|
|
9683
|
+
caseEventData: caseEventData,
|
|
9684
|
+
submit: submit
|
|
9685
|
+
});
|
|
9686
|
+
}
|
|
9687
|
+
};
|
|
9688
|
+
CaseEditComponent.prototype.getCaseId = function (caseDetails) {
|
|
9689
|
+
return (caseDetails ? caseDetails.case_id : '');
|
|
9690
|
+
};
|
|
9691
|
+
CaseEditComponent.prototype.getEventId = function (form) {
|
|
9692
|
+
return form.value.event.id;
|
|
9693
|
+
};
|
|
9694
|
+
CaseEditComponent.prototype.generateCaseEventData = function (_a) {
|
|
9695
|
+
var eventTrigger = _a.eventTrigger, form = _a.form;
|
|
9696
|
+
var caseEventData = {
|
|
9697
|
+
data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(this.replaceHiddenFormValuesWithOriginalCaseData(form.get('data'), eventTrigger.case_fields))),
|
|
9698
|
+
event: form.value.event
|
|
9699
|
+
};
|
|
9700
|
+
this.formValueService.clearNonCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
9701
|
+
this.formValueService.removeNullLabels(caseEventData.data, eventTrigger.case_fields);
|
|
9702
|
+
this.formValueService.removeEmptyDocuments(caseEventData.data, eventTrigger.case_fields);
|
|
9703
|
+
// Remove collection fields that have "min" validation of greater than zero set on the FieldType but are empty;
|
|
9704
|
+
// these will fail validation
|
|
9705
|
+
this.formValueService.removeEmptyCollectionsWithMinValidation(caseEventData.data, eventTrigger.case_fields);
|
|
9706
|
+
// If this is a Case Flag submission (and thus a FlagLauncher field is present in the event trigger), the flag
|
|
9707
|
+
// details data needs populating for each Flags field, then the FlagLauncher field needs removing
|
|
9708
|
+
if (this.isCaseFlagSubmission) {
|
|
9709
|
+
this.formValueService.populateFlagDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
9710
|
+
this.formValueService.removeFlagLauncherField(caseEventData.data, eventTrigger.case_fields);
|
|
9711
|
+
}
|
|
9712
|
+
if (this.isLinkedCasesSubmission) {
|
|
9713
|
+
this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
9714
|
+
this.formValueService.removeComponentLauncherField(caseEventData.data, eventTrigger.case_fields);
|
|
9715
|
+
}
|
|
9716
|
+
caseEventData.event_token = eventTrigger.event_token;
|
|
9717
|
+
caseEventData.ignore_warning = this.ignoreWarning;
|
|
9718
|
+
if (this.confirmation) {
|
|
9719
|
+
caseEventData.data = {};
|
|
9720
|
+
}
|
|
9721
|
+
return caseEventData;
|
|
9722
|
+
};
|
|
9723
|
+
/**
|
|
9724
|
+
* Replaces non-array value objects with `null` for any Complex-type fields whose value is effectively empty, i.e.
|
|
9725
|
+
* all its sub-fields and descendants are `null` or `undefined`.
|
|
9726
|
+
*
|
|
9727
|
+
* @param data The object tree representing all the form field data
|
|
9728
|
+
* @returns The form field data modified accordingly
|
|
9729
|
+
*/
|
|
9730
|
+
CaseEditComponent.prototype.replaceEmptyComplexFieldValues = function (data) {
|
|
9731
|
+
Object.keys(data).forEach(function (key) {
|
|
9732
|
+
if (!Array.isArray(data[key]) && typeof data[key] === 'object' && !FieldsUtils.containsNonEmptyValues(data[key])) {
|
|
9733
|
+
data[key] = null;
|
|
9734
|
+
}
|
|
9735
|
+
});
|
|
9736
|
+
return data;
|
|
9737
|
+
};
|
|
9738
|
+
/**
|
|
9739
|
+
* Traverse *all* values of a {@link FormGroup}, including those for disabled fields (i.e. hidden ones), replacing the
|
|
9740
|
+
* value of any that are hidden AND have `retain_hidden_value` set to `true` in the corresponding `CaseField`, with
|
|
9741
|
+
* the *original* value held in the `CaseField` object.
|
|
9742
|
+
*
|
|
9743
|
+
* This is as per design in EUI-3622, where any user-driven updates to hidden fields with `retain_hidden_value` =
|
|
9744
|
+
* `true` are ignored (thus retaining the value displayed originally).
|
|
9745
|
+
*
|
|
9746
|
+
* * For Complex field types, the replacement above is performed recursively for all hidden sub-fields with
|
|
9747
|
+
* `retain_hidden_value` = `true`.
|
|
9748
|
+
*
|
|
9749
|
+
* * For Collection field types, including collections of Complex and Document field types, the replacement is
|
|
9750
|
+
* performed for all fields in the collection.
|
|
9751
|
+
*
|
|
9752
|
+
* @param formGroup The `FormGroup` instance whose raw values are to be traversed
|
|
9753
|
+
* @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `formGroup`
|
|
9754
|
+
* @param parentField Reference to the parent `CaseField`. Used for retrieving the sub-field values of a Complex field
|
|
9755
|
+
* to perform recursive replacement - the sub-field `CaseField`s themselves do *not* contain any values
|
|
9756
|
+
* @returns An object with the *raw* form value data (as key-value pairs), with any value replacements as necessary
|
|
9757
|
+
*/
|
|
9758
|
+
CaseEditComponent.prototype.replaceHiddenFormValuesWithOriginalCaseData = function (formGroup, caseFields, parentField) {
|
|
9759
|
+
var _this = this;
|
|
9760
|
+
// Get the raw form value data, which includes the values of any disabled controls, as key-value pairs
|
|
9761
|
+
var rawFormValueData = formGroup.getRawValue();
|
|
9762
|
+
// Place all case fields in a lookup object, so they can be retrieved by id
|
|
9763
|
+
var caseFieldsLookup = {};
|
|
9764
|
+
for (var i = 0, len = caseFields.length; i < len; i++) {
|
|
9765
|
+
caseFieldsLookup[caseFields[i].id] = caseFields[i];
|
|
9766
|
+
}
|
|
9767
|
+
/**
|
|
9768
|
+
* Replace any form value with the original, where its CaseField is hidden AND has the retain_hidden_value flag set
|
|
9769
|
+
* to true.
|
|
9770
|
+
*
|
|
9771
|
+
* If the CaseField's `hidden` attribute is null or undefined, then check this attribute in the parent CaseField (if
|
|
9772
|
+
* one exists). This is occurring (and is possibly a bug) when a CaseField is a sub-field of a Complex type, or an
|
|
9773
|
+
* item in a Collection type.
|
|
9774
|
+
*
|
|
9775
|
+
* If the field is a Complex type with retain_hidden_value = true, perform a recursive replacement for all (hidden)
|
|
9776
|
+
* sub-fields with retain_hidden_value = true, using their original CaseField values (from the `formatted_value`
|
|
9777
|
+
* attribute).
|
|
9778
|
+
*
|
|
9779
|
+
* If the field is a Collection type with retain_hidden_value = true, the entire collection is replaced with the
|
|
9780
|
+
* original from `formatted_value`. This applies to *all* types of Collections.
|
|
9781
|
+
*/
|
|
9782
|
+
/* istanbul ignore next */
|
|
9783
|
+
Object.keys(rawFormValueData).forEach(function (key) {
|
|
9784
|
+
var caseField = caseFieldsLookup[key];
|
|
9785
|
+
// If caseField.hidden is NOT truthy and also NOT equal to false, then it must be null/undefined (remember that
|
|
9786
|
+
// both null and undefined are equal to *neither false nor true*)
|
|
9787
|
+
if (caseField && caseField.retain_hidden_value &&
|
|
9788
|
+
(caseField.hidden || (caseField.hidden !== false && parentField && parentField.hidden))) {
|
|
9789
|
+
if (caseField.field_type.type === 'Complex') {
|
|
9790
|
+
// Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
|
|
9791
|
+
// handle both null and undefined values
|
|
9792
|
+
if (caseField.value != null) {
|
|
9793
|
+
// Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
|
|
9794
|
+
// CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
|
|
9795
|
+
// parent)
|
|
9796
|
+
// Update rawFormValueData for this field
|
|
9797
|
+
// creating form group and adding control into it in case caseField is of complext type and and part of formGroup
|
|
9798
|
+
var form_1 = new i2.FormGroup({});
|
|
9799
|
+
if (formGroup.controls[key].value) {
|
|
9800
|
+
Object.keys(formGroup.controls[key].value).forEach(function (item) {
|
|
9801
|
+
form_1.addControl(item, new i2.FormControl(formGroup.controls[key].value[item]));
|
|
9802
|
+
});
|
|
9803
|
+
}
|
|
9804
|
+
rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
|
|
9805
|
+
}
|
|
9806
|
+
}
|
|
9807
|
+
else {
|
|
9808
|
+
// Default case also handles collections of *all* types; the entire collection in rawFormValueData will be
|
|
9809
|
+
// replaced with the original from formatted_value
|
|
9810
|
+
// Use the CaseField's existing *formatted_value* from the parent, if available. (This is necessary for
|
|
9811
|
+
// Complex fields, whose sub-fields do not hold any values in the model.) Otherwise, use formatted_value
|
|
9812
|
+
// from the CaseField itself.
|
|
9813
|
+
if (parentField && parentField.formatted_value) {
|
|
9814
|
+
rawFormValueData[key] = parentField.formatted_value[caseField.id];
|
|
9815
|
+
}
|
|
9816
|
+
else {
|
|
9817
|
+
rawFormValueData[key] = caseField.formatted_value;
|
|
9818
|
+
}
|
|
9819
|
+
}
|
|
9820
|
+
}
|
|
9821
|
+
});
|
|
9822
|
+
return rawFormValueData;
|
|
9823
|
+
};
|
|
9824
|
+
CaseEditComponent.prototype.caseSubmit = function (_a) {
|
|
9825
|
+
var _this = this;
|
|
9826
|
+
var form = _a.form, caseEventData = _a.caseEventData, submit = _a.submit;
|
|
9827
|
+
var loadingSpinnerToken = this.loadingService.register();
|
|
9828
|
+
submit(caseEventData)
|
|
9829
|
+
.pipe(operators.finalize(function () {
|
|
9830
|
+
_this.loadingService.unregister(loadingSpinnerToken);
|
|
9831
|
+
}))
|
|
9832
|
+
.subscribe(function (response) {
|
|
9833
|
+
_this.caseNotifier.cachedCaseView = null;
|
|
9834
|
+
_this.sessionStorageService.removeItem('eventUrl');
|
|
9835
|
+
var confirmation = _this.buildConfirmation(response);
|
|
9836
|
+
if (confirmation && (confirmation.getHeader() || confirmation.getBody())) {
|
|
9837
|
+
// Add finally to fix sonar bug
|
|
9838
|
+
_this.confirm(confirmation).finally();
|
|
9839
|
+
}
|
|
9840
|
+
else {
|
|
9841
|
+
_this.emitSubmitted(response);
|
|
9842
|
+
}
|
|
9843
|
+
}, function (error) {
|
|
9844
|
+
_this.error = error;
|
|
9845
|
+
_this.callbackErrorsSubject.next(error);
|
|
9846
|
+
/* istanbul ignore else */
|
|
9847
|
+
if (_this.error.details) {
|
|
9848
|
+
_this.formErrorService
|
|
9849
|
+
.mapFieldErrors(_this.error.details.field_errors, form.controls['data'], 'validation');
|
|
9850
|
+
}
|
|
9851
|
+
_this.isSubmitting = false;
|
|
9852
|
+
});
|
|
9853
|
+
};
|
|
9854
|
+
CaseEditComponent.prototype.buildConfirmation = function (response) {
|
|
9855
|
+
if (response['after_submit_callback_response']) {
|
|
9856
|
+
return new Confirmation(response['id'], response['callback_response_status'], response['after_submit_callback_response']['confirmation_header'], response['after_submit_callback_response']['confirmation_body']);
|
|
9857
|
+
}
|
|
9858
|
+
else {
|
|
9859
|
+
return null;
|
|
9860
|
+
}
|
|
9861
|
+
};
|
|
9862
|
+
CaseEditComponent.prototype.onEventCanBeCompleted = function (_a) {
|
|
9863
|
+
var eventTrigger = _a.eventTrigger, eventCanBeCompleted = _a.eventCanBeCompleted, caseDetails = _a.caseDetails, form = _a.form, submit = _a.submit;
|
|
9864
|
+
if (eventCanBeCompleted) {
|
|
9865
|
+
// Submit
|
|
9866
|
+
var caseEventData = this.generateCaseEventData({ eventTrigger: eventTrigger, form: form });
|
|
9867
|
+
this.caseSubmit({ form: form, caseEventData: caseEventData, submit: submit });
|
|
9868
|
+
}
|
|
9869
|
+
else {
|
|
9870
|
+
// Navigate to tasks tab on case details page
|
|
9871
|
+
this.router.navigate(["/cases/case-details/" + this.getCaseId(caseDetails) + "/tasks"], { relativeTo: this.route });
|
|
9872
|
+
}
|
|
9873
|
+
};
|
|
9874
|
+
CaseEditComponent.prototype.getStatus = function (response) {
|
|
9875
|
+
return this.hasCallbackFailed(response) ? response['callback_response_status'] : response['delete_draft_response_status'];
|
|
9876
|
+
};
|
|
9877
|
+
CaseEditComponent.prototype.hasCallbackFailed = function (response) {
|
|
9878
|
+
return response['callback_response_status'] !== 'CALLBACK_COMPLETED';
|
|
9879
|
+
};
|
|
9589
9880
|
return CaseEditComponent;
|
|
9590
9881
|
}());
|
|
9591
9882
|
CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
9592
9883
|
CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
|
|
9593
|
-
CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), 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)); };
|
|
9884
|
+
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), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
|
|
9594
9885
|
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) {
|
|
9595
9886
|
if (rf & 1) {
|
|
9596
9887
|
i0__namespace.ɵɵelement(0, "router-outlet");
|
|
@@ -9605,7 +9896,7 @@
|
|
|
9605
9896
|
styleUrls: ['../case-edit.scss'],
|
|
9606
9897
|
providers: [GreyBarService]
|
|
9607
9898
|
}]
|
|
9608
|
-
}], function () { return [{ type: i2__namespace.FormBuilder }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }]; }, { eventTrigger: [{
|
|
9899
|
+
}], 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 }, { type: LoadingService }]; }, { eventTrigger: [{
|
|
9609
9900
|
type: i0.Input
|
|
9610
9901
|
}], submit: [{
|
|
9611
9902
|
type: i0.Input
|
|
@@ -9694,7 +9985,6 @@
|
|
|
9694
9985
|
this.caseFields = this.getCaseFields();
|
|
9695
9986
|
if (this.caseEdit.confirmation) {
|
|
9696
9987
|
this.confirmation = this.caseEdit.confirmation;
|
|
9697
|
-
this.caseId = this.caseEdit.confirmation.getCaseId();
|
|
9698
9988
|
}
|
|
9699
9989
|
else {
|
|
9700
9990
|
this.router.navigate(['/']);
|
|
@@ -9704,7 +9994,8 @@
|
|
|
9704
9994
|
this.caseEdit.submitted.emit({ caseId: this.confirmation.getCaseId(), status: this.confirmation.getStatus() });
|
|
9705
9995
|
};
|
|
9706
9996
|
CaseEditConfirmComponent.prototype.getCaseId = function () {
|
|
9707
|
-
|
|
9997
|
+
var _a, _b;
|
|
9998
|
+
return ((_b = (_a = this.caseEdit) === null || _a === void 0 ? void 0 : _a.caseDetails) === null || _b === void 0 ? void 0 : _b.case_id) || '';
|
|
9708
9999
|
};
|
|
9709
10000
|
CaseEditConfirmComponent.prototype.getCaseTitle = function () {
|
|
9710
10001
|
return (this.caseEdit.caseDetails && this.caseEdit.caseDetails.state &&
|
|
@@ -10062,102 +10353,97 @@
|
|
|
10062
10353
|
}], null, null);
|
|
10063
10354
|
})();
|
|
10064
10355
|
|
|
10065
|
-
function
|
|
10066
|
-
if (rf & 1) {
|
|
10067
|
-
i0__namespace.ɵɵelement(0, "ccd-loading-spinner");
|
|
10068
|
-
}
|
|
10069
|
-
}
|
|
10070
|
-
function CaseEditPageComponent_ng_container_1_h1_1_Template(rf, ctx) {
|
|
10356
|
+
function CaseEditPageComponent_ng_container_0_h1_1_Template(rf, ctx) {
|
|
10071
10357
|
if (rf & 1) {
|
|
10072
|
-
i0__namespace.ɵɵelementStart(0, "h1",
|
|
10358
|
+
i0__namespace.ɵɵelementStart(0, "h1", 11);
|
|
10073
10359
|
i0__namespace.ɵɵtext(1);
|
|
10074
10360
|
i0__namespace.ɵɵelementEnd();
|
|
10075
10361
|
}
|
|
10076
10362
|
if (rf & 2) {
|
|
10077
|
-
var
|
|
10363
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext(2);
|
|
10078
10364
|
i0__namespace.ɵɵadvance(1);
|
|
10079
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10365
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r9.eventTrigger.name);
|
|
10080
10366
|
}
|
|
10081
10367
|
}
|
|
10082
|
-
function
|
|
10368
|
+
function CaseEditPageComponent_ng_container_0_ng_container_2_Template(rf, ctx) {
|
|
10083
10369
|
if (rf & 1) {
|
|
10084
10370
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
10085
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
10371
|
+
i0__namespace.ɵɵelementStart(1, "span", 12);
|
|
10086
10372
|
i0__namespace.ɵɵtext(2);
|
|
10087
10373
|
i0__namespace.ɵɵelementEnd();
|
|
10088
|
-
i0__namespace.ɵɵelementStart(3, "h1",
|
|
10374
|
+
i0__namespace.ɵɵelementStart(3, "h1", 11);
|
|
10089
10375
|
i0__namespace.ɵɵtext(4);
|
|
10090
10376
|
i0__namespace.ɵɵelementEnd();
|
|
10091
10377
|
i0__namespace.ɵɵelementContainerEnd();
|
|
10092
10378
|
}
|
|
10093
10379
|
if (rf & 2) {
|
|
10094
|
-
var
|
|
10380
|
+
var ctx_r10 = i0__namespace.ɵɵnextContext(2);
|
|
10095
10381
|
i0__namespace.ɵɵadvance(2);
|
|
10096
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10382
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r10.eventTrigger.name);
|
|
10097
10383
|
i0__namespace.ɵɵadvance(2);
|
|
10098
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10384
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r10.currentPage.label);
|
|
10099
10385
|
}
|
|
10100
10386
|
}
|
|
10101
|
-
function
|
|
10387
|
+
function CaseEditPageComponent_ng_container_0_Template(rf, ctx) {
|
|
10102
10388
|
if (rf & 1) {
|
|
10103
10389
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
10104
|
-
i0__namespace.ɵɵtemplate(1,
|
|
10105
|
-
i0__namespace.ɵɵtemplate(2,
|
|
10390
|
+
i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_ng_container_0_h1_1_Template, 2, 1, "h1", 10);
|
|
10391
|
+
i0__namespace.ɵɵtemplate(2, CaseEditPageComponent_ng_container_0_ng_container_2_Template, 5, 2, "ng-container", 0);
|
|
10106
10392
|
i0__namespace.ɵɵelementContainerEnd();
|
|
10107
10393
|
}
|
|
10108
10394
|
if (rf & 2) {
|
|
10109
|
-
var
|
|
10395
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
10110
10396
|
i0__namespace.ɵɵadvance(1);
|
|
10111
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
10397
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r0.currentPage.label);
|
|
10112
10398
|
i0__namespace.ɵɵadvance(1);
|
|
10113
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
10399
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.currentPage.label);
|
|
10114
10400
|
}
|
|
10115
10401
|
}
|
|
10116
|
-
function
|
|
10402
|
+
function CaseEditPageComponent_div_1_Template(rf, ctx) {
|
|
10117
10403
|
if (rf & 1) {
|
|
10118
10404
|
i0__namespace.ɵɵelement(0, "div");
|
|
10119
10405
|
}
|
|
10120
10406
|
}
|
|
10121
|
-
function
|
|
10407
|
+
function CaseEditPageComponent_ng_template_2_Template(rf, ctx) {
|
|
10122
10408
|
if (rf & 1) {
|
|
10123
|
-
i0__namespace.ɵɵelement(0, "ccd-markdown",
|
|
10409
|
+
i0__namespace.ɵɵelement(0, "ccd-markdown", 13);
|
|
10124
10410
|
i0__namespace.ɵɵpipe(1, "ccdCaseTitle");
|
|
10125
10411
|
}
|
|
10126
10412
|
if (rf & 2) {
|
|
10127
|
-
var
|
|
10128
|
-
i0__namespace.ɵɵproperty("content", i0__namespace.ɵɵpipeBind3(1, 1,
|
|
10413
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
10414
|
+
i0__namespace.ɵɵproperty("content", i0__namespace.ɵɵpipeBind3(1, 1, ctx_r3.getCaseTitle(), ctx_r3.caseFields, ctx_r3.editForm.controls["data"]));
|
|
10129
10415
|
}
|
|
10130
10416
|
}
|
|
10131
|
-
function
|
|
10417
|
+
function CaseEditPageComponent_ng_template_4_h2_0_Template(rf, ctx) {
|
|
10132
10418
|
if (rf & 1) {
|
|
10133
|
-
i0__namespace.ɵɵelementStart(0, "h2",
|
|
10419
|
+
i0__namespace.ɵɵelementStart(0, "h2", 15);
|
|
10134
10420
|
i0__namespace.ɵɵtext(1);
|
|
10135
10421
|
i0__namespace.ɵɵpipe(2, "ccdCaseReference");
|
|
10136
10422
|
i0__namespace.ɵɵelementEnd();
|
|
10137
10423
|
}
|
|
10138
10424
|
if (rf & 2) {
|
|
10139
|
-
var
|
|
10425
|
+
var ctx_r11 = i0__namespace.ɵɵnextContext(2);
|
|
10140
10426
|
i0__namespace.ɵɵadvance(1);
|
|
10141
|
-
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1,
|
|
10427
|
+
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r11.getCaseId()), "");
|
|
10142
10428
|
}
|
|
10143
10429
|
}
|
|
10144
|
-
function
|
|
10430
|
+
function CaseEditPageComponent_ng_template_4_Template(rf, ctx) {
|
|
10145
10431
|
if (rf & 1) {
|
|
10146
|
-
i0__namespace.ɵɵtemplate(0,
|
|
10432
|
+
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_template_4_h2_0_Template, 3, 3, "h2", 14);
|
|
10147
10433
|
}
|
|
10148
10434
|
if (rf & 2) {
|
|
10149
|
-
var
|
|
10150
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
10435
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext();
|
|
10436
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r5.getCaseId());
|
|
10151
10437
|
}
|
|
10152
10438
|
}
|
|
10153
|
-
function
|
|
10439
|
+
function CaseEditPageComponent_div_6_div_3_Template(rf, ctx) {
|
|
10154
10440
|
if (rf & 1) {
|
|
10155
|
-
var
|
|
10156
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
10157
|
-
i0__namespace.ɵɵelementStart(1, "ul",
|
|
10441
|
+
var _r15_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10442
|
+
i0__namespace.ɵɵelementStart(0, "div", 19);
|
|
10443
|
+
i0__namespace.ɵɵelementStart(1, "ul", 20);
|
|
10158
10444
|
i0__namespace.ɵɵelementStart(2, "li");
|
|
10159
|
-
i0__namespace.ɵɵelementStart(3, "a",
|
|
10160
|
-
i0__namespace.ɵɵlistener("click", function
|
|
10445
|
+
i0__namespace.ɵɵelementStart(3, "a", 21);
|
|
10446
|
+
i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_div_6_div_3_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var validationError_r13 = ctx.$implicit; var ctx_r14 = i0__namespace.ɵɵnextContext(2); return ctx_r14.navigateToErrorElement(validationError_r13.id); });
|
|
10161
10447
|
i0__namespace.ɵɵtext(4);
|
|
10162
10448
|
i0__namespace.ɵɵelementEnd();
|
|
10163
10449
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -10165,168 +10451,116 @@
|
|
|
10165
10451
|
i0__namespace.ɵɵelementEnd();
|
|
10166
10452
|
}
|
|
10167
10453
|
if (rf & 2) {
|
|
10168
|
-
var
|
|
10454
|
+
var validationError_r13 = ctx.$implicit;
|
|
10169
10455
|
i0__namespace.ɵɵadvance(4);
|
|
10170
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10456
|
+
i0__namespace.ɵɵtextInterpolate(validationError_r13.message);
|
|
10171
10457
|
}
|
|
10172
10458
|
}
|
|
10173
|
-
function
|
|
10459
|
+
function CaseEditPageComponent_div_6_Template(rf, ctx) {
|
|
10174
10460
|
if (rf & 1) {
|
|
10175
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
10176
|
-
i0__namespace.ɵɵelementStart(1, "h2",
|
|
10461
|
+
i0__namespace.ɵɵelementStart(0, "div", 16);
|
|
10462
|
+
i0__namespace.ɵɵelementStart(1, "h2", 17);
|
|
10177
10463
|
i0__namespace.ɵɵtext(2, " There is a problem ");
|
|
10178
10464
|
i0__namespace.ɵɵelementEnd();
|
|
10179
|
-
i0__namespace.ɵɵtemplate(3,
|
|
10465
|
+
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_div_6_div_3_Template, 5, 1, "div", 18);
|
|
10180
10466
|
i0__namespace.ɵɵelementEnd();
|
|
10181
10467
|
}
|
|
10182
10468
|
if (rf & 2) {
|
|
10183
|
-
var
|
|
10469
|
+
var ctx_r6 = i0__namespace.ɵɵnextContext();
|
|
10184
10470
|
i0__namespace.ɵɵadvance(3);
|
|
10185
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
10186
|
-
}
|
|
10187
|
-
}
|
|
10188
|
-
function CaseEditPageComponent_div_8_Template(rf, ctx) {
|
|
10189
|
-
if (rf & 1) {
|
|
10190
|
-
i0__namespace.ɵɵelementStart(0, "div", 21);
|
|
10191
|
-
i0__namespace.ɵɵelementStart(1, "h1", 22);
|
|
10192
|
-
i0__namespace.ɵɵtext(2, " Something went wrong ");
|
|
10193
|
-
i0__namespace.ɵɵelementEnd();
|
|
10194
|
-
i0__namespace.ɵɵelementStart(3, "div", 23);
|
|
10195
|
-
i0__namespace.ɵɵelementStart(4, "p");
|
|
10196
|
-
i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
|
|
10197
|
-
i0__namespace.ɵɵelementEnd();
|
|
10198
|
-
i0__namespace.ɵɵelementStart(6, "p");
|
|
10199
|
-
i0__namespace.ɵɵelementStart(7, "a", 24);
|
|
10200
|
-
i0__namespace.ɵɵtext(8, "Contact us");
|
|
10201
|
-
i0__namespace.ɵɵelementEnd();
|
|
10202
|
-
i0__namespace.ɵɵtext(9, " if you're still having problems.");
|
|
10203
|
-
i0__namespace.ɵɵelementEnd();
|
|
10204
|
-
i0__namespace.ɵɵelementEnd();
|
|
10205
|
-
i0__namespace.ɵɵelementEnd();
|
|
10206
|
-
}
|
|
10207
|
-
}
|
|
10208
|
-
function CaseEditPageComponent_div_9_ul_5_li_1_Template(rf, ctx) {
|
|
10209
|
-
if (rf & 1) {
|
|
10210
|
-
i0__namespace.ɵɵelementStart(0, "li", 29);
|
|
10211
|
-
i0__namespace.ɵɵtext(1);
|
|
10212
|
-
i0__namespace.ɵɵelementEnd();
|
|
10213
|
-
}
|
|
10214
|
-
if (rf & 2) {
|
|
10215
|
-
var fieldError_r20 = ctx.$implicit;
|
|
10216
|
-
i0__namespace.ɵɵadvance(1);
|
|
10217
|
-
i0__namespace.ɵɵtextInterpolate(fieldError_r20.message);
|
|
10218
|
-
}
|
|
10219
|
-
}
|
|
10220
|
-
function CaseEditPageComponent_div_9_ul_5_Template(rf, ctx) {
|
|
10221
|
-
if (rf & 1) {
|
|
10222
|
-
i0__namespace.ɵɵelementStart(0, "ul", 27);
|
|
10223
|
-
i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_div_9_ul_5_li_1_Template, 2, 1, "li", 28);
|
|
10224
|
-
i0__namespace.ɵɵelementEnd();
|
|
10225
|
-
}
|
|
10226
|
-
if (rf & 2) {
|
|
10227
|
-
var ctx_r18 = i0__namespace.ɵɵnextContext(2);
|
|
10228
|
-
i0__namespace.ɵɵadvance(1);
|
|
10229
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r18.error.details.field_errors);
|
|
10471
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r6.validationErrors);
|
|
10230
10472
|
}
|
|
10231
10473
|
}
|
|
10232
|
-
function
|
|
10474
|
+
function CaseEditPageComponent_form_10_ccd_case_edit_form_3_Template(rf, ctx) {
|
|
10233
10475
|
if (rf & 1) {
|
|
10234
|
-
i0__namespace.ɵɵ
|
|
10235
|
-
i0__namespace.ɵɵelementStart(
|
|
10236
|
-
i0__namespace.ɵɵ
|
|
10237
|
-
i0__namespace.ɵɵelementEnd();
|
|
10238
|
-
i0__namespace.ɵɵelementStart(3, "p");
|
|
10239
|
-
i0__namespace.ɵɵtext(4);
|
|
10240
|
-
i0__namespace.ɵɵelementEnd();
|
|
10241
|
-
i0__namespace.ɵɵtemplate(5, CaseEditPageComponent_div_9_ul_5_Template, 2, 1, "ul", 26);
|
|
10242
|
-
i0__namespace.ɵɵelementEnd();
|
|
10243
|
-
}
|
|
10244
|
-
if (rf & 2) {
|
|
10245
|
-
var ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
10246
|
-
i0__namespace.ɵɵadvance(4);
|
|
10247
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r9.error.message);
|
|
10248
|
-
i0__namespace.ɵɵadvance(1);
|
|
10249
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r9.error.details == null ? null : ctx_r9.error.details.field_errors);
|
|
10250
|
-
}
|
|
10251
|
-
}
|
|
10252
|
-
function CaseEditPageComponent_form_12_ccd_case_edit_form_3_Template(rf, ctx) {
|
|
10253
|
-
if (rf & 1) {
|
|
10254
|
-
var _r24_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10255
|
-
i0__namespace.ɵɵelementStart(0, "ccd-case-edit-form", 40);
|
|
10256
|
-
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); });
|
|
10476
|
+
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10477
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-edit-form", 32);
|
|
10478
|
+
i0__namespace.ɵɵlistener("valuesChanged", function CaseEditPageComponent_form_10_ccd_case_edit_form_3_Template_ccd_case_edit_form_valuesChanged_0_listener($event) { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r18 = i0__namespace.ɵɵnextContext(2); return ctx_r18.applyValuesChanged($event); });
|
|
10257
10479
|
i0__namespace.ɵɵelementEnd();
|
|
10258
10480
|
}
|
|
10259
10481
|
if (rf & 2) {
|
|
10260
|
-
var
|
|
10261
|
-
i0__namespace.ɵɵproperty("fields",
|
|
10482
|
+
var ctx_r16 = i0__namespace.ɵɵnextContext(2);
|
|
10483
|
+
i0__namespace.ɵɵproperty("fields", ctx_r16.currentPage.getCol1Fields())("formGroup", ctx_r16.editForm.controls["data"])("caseFields", ctx_r16.caseFields)("pageChangeSubject", ctx_r16.pageChangeSubject);
|
|
10262
10484
|
}
|
|
10263
10485
|
}
|
|
10264
|
-
function
|
|
10486
|
+
function CaseEditPageComponent_form_10_div_4_Template(rf, ctx) {
|
|
10265
10487
|
if (rf & 1) {
|
|
10266
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
10267
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
10268
|
-
i0__namespace.ɵɵelement(2, "ccd-case-edit-form",
|
|
10488
|
+
i0__namespace.ɵɵelementStart(0, "div", 33);
|
|
10489
|
+
i0__namespace.ɵɵelementStart(1, "div", 34);
|
|
10490
|
+
i0__namespace.ɵɵelement(2, "ccd-case-edit-form", 35);
|
|
10269
10491
|
i0__namespace.ɵɵelementEnd();
|
|
10270
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
10271
|
-
i0__namespace.ɵɵelement(4, "ccd-case-edit-form",
|
|
10492
|
+
i0__namespace.ɵɵelementStart(3, "div", 36);
|
|
10493
|
+
i0__namespace.ɵɵelement(4, "ccd-case-edit-form", 37);
|
|
10272
10494
|
i0__namespace.ɵɵelementEnd();
|
|
10273
10495
|
i0__namespace.ɵɵelementEnd();
|
|
10274
10496
|
}
|
|
10275
10497
|
if (rf & 2) {
|
|
10276
|
-
var
|
|
10498
|
+
var ctx_r17 = i0__namespace.ɵɵnextContext(2);
|
|
10277
10499
|
i0__namespace.ɵɵadvance(2);
|
|
10278
|
-
i0__namespace.ɵɵproperty("fields",
|
|
10500
|
+
i0__namespace.ɵɵproperty("fields", ctx_r17.currentPage.getCol1Fields())("formGroup", ctx_r17.editForm.controls["data"])("caseFields", ctx_r17.caseFields);
|
|
10279
10501
|
i0__namespace.ɵɵadvance(2);
|
|
10280
|
-
i0__namespace.ɵɵproperty("fields",
|
|
10502
|
+
i0__namespace.ɵɵproperty("fields", ctx_r17.currentPage.getCol2Fields())("formGroup", ctx_r17.editForm.controls["data"])("caseFields", ctx_r17.caseFields);
|
|
10281
10503
|
}
|
|
10282
10504
|
}
|
|
10283
|
-
function
|
|
10505
|
+
function CaseEditPageComponent_form_10_Template(rf, ctx) {
|
|
10284
10506
|
if (rf & 1) {
|
|
10285
|
-
var
|
|
10286
|
-
i0__namespace.ɵɵelementStart(0, "form",
|
|
10287
|
-
i0__namespace.ɵɵlistener("submit", function
|
|
10288
|
-
i0__namespace.ɵɵelementStart(1, "fieldset",
|
|
10289
|
-
i0__namespace.ɵɵelement(2, "legend",
|
|
10290
|
-
i0__namespace.ɵɵtemplate(3,
|
|
10291
|
-
i0__namespace.ɵɵtemplate(4,
|
|
10292
|
-
i0__namespace.ɵɵelementEnd();
|
|
10293
|
-
i0__namespace.ɵɵelementStart(5, "div",
|
|
10294
|
-
i0__namespace.ɵɵelementStart(6, "button",
|
|
10295
|
-
i0__namespace.ɵɵlistener("click", function
|
|
10507
|
+
var _r21_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10508
|
+
i0__namespace.ɵɵelementStart(0, "form", 22);
|
|
10509
|
+
i0__namespace.ɵɵlistener("submit", function CaseEditPageComponent_form_10_Template_form_submit_0_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r20 = i0__namespace.ɵɵnextContext(); return ctx_r20.submit(); });
|
|
10510
|
+
i0__namespace.ɵɵelementStart(1, "fieldset", 23);
|
|
10511
|
+
i0__namespace.ɵɵelement(2, "legend", 24);
|
|
10512
|
+
i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_form_10_ccd_case_edit_form_3_Template, 1, 4, "ccd-case-edit-form", 25);
|
|
10513
|
+
i0__namespace.ɵɵtemplate(4, CaseEditPageComponent_form_10_div_4_Template, 5, 6, "div", 26);
|
|
10514
|
+
i0__namespace.ɵɵelementEnd();
|
|
10515
|
+
i0__namespace.ɵɵelementStart(5, "div", 27);
|
|
10516
|
+
i0__namespace.ɵɵelementStart(6, "button", 28);
|
|
10517
|
+
i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_button_click_6_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r22 = i0__namespace.ɵɵnextContext(); return ctx_r22.toPreviousPage(); });
|
|
10296
10518
|
i0__namespace.ɵɵpipe(7, "async");
|
|
10297
10519
|
i0__namespace.ɵɵtext(8, " Previous ");
|
|
10298
10520
|
i0__namespace.ɵɵelementEnd();
|
|
10299
|
-
i0__namespace.ɵɵelementStart(9, "button",
|
|
10521
|
+
i0__namespace.ɵɵelementStart(9, "button", 29);
|
|
10300
10522
|
i0__namespace.ɵɵtext(10);
|
|
10301
10523
|
i0__namespace.ɵɵelementEnd();
|
|
10302
10524
|
i0__namespace.ɵɵelementEnd();
|
|
10303
|
-
i0__namespace.ɵɵelementStart(11, "p",
|
|
10304
|
-
i0__namespace.ɵɵelementStart(12, "a",
|
|
10305
|
-
i0__namespace.ɵɵlistener("click", function
|
|
10525
|
+
i0__namespace.ɵɵelementStart(11, "p", 30);
|
|
10526
|
+
i0__namespace.ɵɵelementStart(12, "a", 31);
|
|
10527
|
+
i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_a_click_12_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r23 = i0__namespace.ɵɵnextContext(); return ctx_r23.cancel(); });
|
|
10306
10528
|
i0__namespace.ɵɵtext(13);
|
|
10307
10529
|
i0__namespace.ɵɵelementEnd();
|
|
10308
10530
|
i0__namespace.ɵɵelementEnd();
|
|
10309
10531
|
i0__namespace.ɵɵelementEnd();
|
|
10310
10532
|
}
|
|
10311
10533
|
if (rf & 2) {
|
|
10312
|
-
var
|
|
10313
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
10534
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext();
|
|
10535
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r7.editForm);
|
|
10314
10536
|
i0__namespace.ɵɵadvance(3);
|
|
10315
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
10537
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r7.currentPage.isMultiColumn());
|
|
10316
10538
|
i0__namespace.ɵɵadvance(1);
|
|
10317
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
10539
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r7.currentPage.isMultiColumn());
|
|
10318
10540
|
i0__namespace.ɵɵadvance(2);
|
|
10319
|
-
i0__namespace.ɵɵproperty("disabled", !i0__namespace.ɵɵpipeBind1(7, 7,
|
|
10541
|
+
i0__namespace.ɵɵproperty("disabled", !i0__namespace.ɵɵpipeBind1(7, 7, ctx_r7.hasPreviousPage$));
|
|
10320
10542
|
i0__namespace.ɵɵadvance(3);
|
|
10321
|
-
i0__namespace.ɵɵproperty("disabled",
|
|
10543
|
+
i0__namespace.ɵɵproperty("disabled", ctx_r7.submitting());
|
|
10322
10544
|
i0__namespace.ɵɵadvance(1);
|
|
10323
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10545
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r7.triggerText);
|
|
10324
10546
|
i0__namespace.ɵɵadvance(3);
|
|
10325
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
10547
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r7.getCancelText());
|
|
10548
|
+
}
|
|
10549
|
+
}
|
|
10550
|
+
function CaseEditPageComponent_ccd_case_event_completion_11_Template(rf, ctx) {
|
|
10551
|
+
if (rf & 1) {
|
|
10552
|
+
var _r25_1 = i0__namespace.ɵɵgetCurrentView();
|
|
10553
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 38);
|
|
10554
|
+
i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_11_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r25_1); var ctx_r24 = i0__namespace.ɵɵnextContext(); return ctx_r24.onEventCanBeCompleted($event); });
|
|
10555
|
+
i0__namespace.ɵɵelementEnd();
|
|
10556
|
+
}
|
|
10557
|
+
if (rf & 2) {
|
|
10558
|
+
var ctx_r8 = i0__namespace.ɵɵnextContext();
|
|
10559
|
+
i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r8.caseEdit.eventCompletionParams);
|
|
10326
10560
|
}
|
|
10327
10561
|
}
|
|
10328
10562
|
var CaseEditPageComponent = /** @class */ (function () {
|
|
10329
|
-
function CaseEditPageComponent(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService) {
|
|
10563
|
+
function CaseEditPageComponent(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService) {
|
|
10330
10564
|
this.caseEdit = caseEdit;
|
|
10331
10565
|
this.route = route;
|
|
10332
10566
|
this.formValueService = formValueService;
|
|
@@ -10336,15 +10570,14 @@
|
|
|
10336
10570
|
this.dialog = dialog;
|
|
10337
10571
|
this.caseFieldService = caseFieldService;
|
|
10338
10572
|
this.caseEditDataService = caseEditDataService;
|
|
10339
|
-
this.
|
|
10340
|
-
this.ignoreWarning = false;
|
|
10573
|
+
this.loadingService = loadingService;
|
|
10341
10574
|
this.triggerTextStart = CaseEditPageComponent.TRIGGER_TEXT_START;
|
|
10342
10575
|
this.triggerTextIgnoreWarnings = CaseEditPageComponent.TRIGGER_TEXT_CONTINUE;
|
|
10343
|
-
this.isSubmitting = false;
|
|
10344
10576
|
this.formValuesChanged = false;
|
|
10345
10577
|
this.pageChangeSubject = new rxjs.Subject();
|
|
10346
10578
|
this.validationErrors = [];
|
|
10347
10579
|
this.hasPreviousPage$ = new rxjs.BehaviorSubject(false);
|
|
10580
|
+
this.callbackErrorsSubject = new rxjs.Subject();
|
|
10348
10581
|
}
|
|
10349
10582
|
CaseEditPageComponent.scrollToTop = function () {
|
|
10350
10583
|
window.scrollTo(0, 0);
|
|
@@ -10362,12 +10595,13 @@
|
|
|
10362
10595
|
this.editForm = this.caseEdit.form;
|
|
10363
10596
|
this.wizard = this.caseEdit.wizard;
|
|
10364
10597
|
this.caseFields = this.getCaseFields();
|
|
10365
|
-
this.triggerText = this.getTriggerText();
|
|
10366
10598
|
this.syncCaseEditDataService();
|
|
10367
10599
|
this.route.params
|
|
10368
10600
|
.subscribe(function (params) {
|
|
10601
|
+
var _a, _b;
|
|
10369
10602
|
var pageId = params['page'];
|
|
10370
|
-
|
|
10603
|
+
/* istanbul ignore else */
|
|
10604
|
+
if (!_this.currentPage || pageId !== ((_a = _this.currentPage) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
10371
10605
|
var page = _this.caseEdit.getPage(pageId);
|
|
10372
10606
|
if (page) {
|
|
10373
10607
|
_this.currentPage = page;
|
|
@@ -10380,7 +10614,7 @@
|
|
|
10380
10614
|
return _this.first();
|
|
10381
10615
|
}
|
|
10382
10616
|
}
|
|
10383
|
-
_this.hasPreviousPage$.next(_this.caseEdit.hasPrevious(_this.currentPage.id));
|
|
10617
|
+
_this.hasPreviousPage$.next(_this.caseEdit.hasPrevious((_b = _this.currentPage) === null || _b === void 0 ? void 0 : _b.id));
|
|
10384
10618
|
}
|
|
10385
10619
|
});
|
|
10386
10620
|
CaseEditPageComponent.setFocusToTop();
|
|
@@ -10398,6 +10632,7 @@
|
|
|
10398
10632
|
}
|
|
10399
10633
|
}
|
|
10400
10634
|
});
|
|
10635
|
+
this.triggerText = this.getTriggerText();
|
|
10401
10636
|
};
|
|
10402
10637
|
CaseEditPageComponent.prototype.ngAfterViewChecked = function () {
|
|
10403
10638
|
this.cdRef.detectChanges();
|
|
@@ -10501,8 +10736,10 @@
|
|
|
10501
10736
|
CaseEditPageComponent.scrollToTop();
|
|
10502
10737
|
};
|
|
10503
10738
|
CaseEditPageComponent.prototype.navigateToErrorElement = function (elementId) {
|
|
10739
|
+
/* istanbul ignore else */
|
|
10504
10740
|
if (elementId) {
|
|
10505
10741
|
var htmlElement = document.getElementById(elementId);
|
|
10742
|
+
/* istanbul ignore else */
|
|
10506
10743
|
if (htmlElement) {
|
|
10507
10744
|
htmlElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
10508
10745
|
htmlElement.focus();
|
|
@@ -10524,21 +10761,23 @@
|
|
|
10524
10761
|
this.generateErrorMessage(this.currentPage.case_fields);
|
|
10525
10762
|
}
|
|
10526
10763
|
}
|
|
10527
|
-
if (!this.isSubmitting && !this.currentPageIsNotValid()) {
|
|
10528
|
-
this.isSubmitting = true;
|
|
10529
|
-
this.error = null;
|
|
10764
|
+
if (!this.caseEdit.isSubmitting && !this.currentPageIsNotValid()) {
|
|
10765
|
+
this.caseEdit.isSubmitting = true;
|
|
10766
|
+
this.caseEdit.error = null;
|
|
10530
10767
|
var caseEventData = this.buildCaseEventData();
|
|
10531
|
-
|
|
10768
|
+
var loadingSpinnerToken_1 = this.loadingService.register();
|
|
10532
10769
|
this.caseEdit.validate(caseEventData, this.currentPage.id)
|
|
10770
|
+
.pipe(operators.finalize(function () {
|
|
10771
|
+
_this.loadingService.unregister(loadingSpinnerToken_1);
|
|
10772
|
+
}))
|
|
10533
10773
|
.subscribe(function (jsonData) {
|
|
10774
|
+
/* istanbul ignore else */
|
|
10534
10775
|
if (jsonData) {
|
|
10535
10776
|
_this.updateFormData(jsonData);
|
|
10536
10777
|
}
|
|
10537
10778
|
_this.saveDraft();
|
|
10538
|
-
_this.showSpinner = false;
|
|
10539
10779
|
_this.next();
|
|
10540
10780
|
}, function (error) {
|
|
10541
|
-
_this.showSpinner = false;
|
|
10542
10781
|
_this.handleError(error);
|
|
10543
10782
|
});
|
|
10544
10783
|
CaseEditPageComponent.scrollToTop();
|
|
@@ -10546,10 +10785,11 @@
|
|
|
10546
10785
|
CaseEditPageComponent.setFocusToTop();
|
|
10547
10786
|
};
|
|
10548
10787
|
CaseEditPageComponent.prototype.updateFormData = function (jsonData) {
|
|
10549
|
-
var e_1,
|
|
10788
|
+
var e_1, _c;
|
|
10550
10789
|
try {
|
|
10551
|
-
for (var
|
|
10552
|
-
var caseFieldId =
|
|
10790
|
+
for (var _d = __values(Object.keys(jsonData.data)), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
10791
|
+
var caseFieldId = _e.value;
|
|
10792
|
+
/* istanbul ignore else */
|
|
10553
10793
|
if (this.pageWithFieldExists(caseFieldId)) {
|
|
10554
10794
|
this.updateEventTriggerCaseFields(caseFieldId, jsonData, this.caseEdit.eventTrigger);
|
|
10555
10795
|
this.updateFormControlsValue(this.editForm, caseFieldId, jsonData.data[caseFieldId]);
|
|
@@ -10559,7 +10799,7 @@
|
|
|
10559
10799
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
10560
10800
|
finally {
|
|
10561
10801
|
try {
|
|
10562
|
-
if (
|
|
10802
|
+
if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
|
|
10563
10803
|
}
|
|
10564
10804
|
finally { if (e_1) throw e_1.error; }
|
|
10565
10805
|
}
|
|
@@ -10569,12 +10809,36 @@
|
|
|
10569
10809
|
return this.wizard.findWizardPage(caseFieldId);
|
|
10570
10810
|
};
|
|
10571
10811
|
CaseEditPageComponent.prototype.updateEventTriggerCaseFields = function (caseFieldId, jsonData, eventTrigger) {
|
|
10572
|
-
|
|
10812
|
+
var _this = this;
|
|
10813
|
+
/* istanbul ignore else */
|
|
10814
|
+
if (eventTrigger === null || eventTrigger === void 0 ? void 0 : eventTrigger.case_fields) {
|
|
10573
10815
|
eventTrigger.case_fields
|
|
10574
10816
|
.filter(function (element) { return element.id === caseFieldId; })
|
|
10575
|
-
.forEach(function (element) {
|
|
10817
|
+
.forEach(function (element) {
|
|
10818
|
+
if (_this.isAnObject(element.value)) {
|
|
10819
|
+
var updatedJsonDataObject = _this.updateJsonDataObject(caseFieldId, jsonData, element);
|
|
10820
|
+
element.value = Object.assign(Object.assign({}, element.value), updatedJsonDataObject);
|
|
10821
|
+
}
|
|
10822
|
+
else {
|
|
10823
|
+
element.value = jsonData.data[caseFieldId];
|
|
10824
|
+
}
|
|
10825
|
+
});
|
|
10576
10826
|
}
|
|
10577
10827
|
};
|
|
10828
|
+
CaseEditPageComponent.prototype.updateJsonDataObject = function (caseFieldId, jsonData, element) {
|
|
10829
|
+
var _this = this;
|
|
10830
|
+
return Object.keys(jsonData.data[caseFieldId]).reduce(function (acc, key) {
|
|
10831
|
+
var _c;
|
|
10832
|
+
var elementValue = element.value[key];
|
|
10833
|
+
var jsonDataValue = jsonData.data[caseFieldId][key];
|
|
10834
|
+
var hasElementGotValueProperty = _this.isAnObject(elementValue) && elementValue.value !== undefined;
|
|
10835
|
+
var jsonDataOrElementValue = (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== null && (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== undefined ? jsonDataValue : elementValue;
|
|
10836
|
+
return Object.assign(Object.assign({}, acc), (_c = {}, _c["" + key] = hasElementGotValueProperty ? jsonDataOrElementValue : jsonDataValue, _c));
|
|
10837
|
+
}, {});
|
|
10838
|
+
};
|
|
10839
|
+
CaseEditPageComponent.prototype.isAnObject = function (property) {
|
|
10840
|
+
return typeof property === 'object' && !Array.isArray(property) && property !== null;
|
|
10841
|
+
};
|
|
10578
10842
|
CaseEditPageComponent.prototype.updateFormControlsValue = function (formGroup, caseFieldId, value) {
|
|
10579
10843
|
var theControl = formGroup.controls['data'].get(caseFieldId);
|
|
10580
10844
|
if (theControl && theControl['status'] !== 'DISABLED') {
|
|
@@ -10590,12 +10854,14 @@
|
|
|
10590
10854
|
}
|
|
10591
10855
|
};
|
|
10592
10856
|
CaseEditPageComponent.prototype.callbackErrorsNotify = function (errorContext) {
|
|
10593
|
-
this.ignoreWarning = errorContext.ignoreWarning;
|
|
10857
|
+
this.caseEdit.ignoreWarning = errorContext.ignoreWarning;
|
|
10594
10858
|
this.triggerText = errorContext.triggerText;
|
|
10595
10859
|
};
|
|
10596
10860
|
CaseEditPageComponent.prototype.next = function () {
|
|
10861
|
+
if (this.canNavigateToSummaryPage()) {
|
|
10862
|
+
this.caseEdit.isSubmitting = false;
|
|
10863
|
+
}
|
|
10597
10864
|
this.resetErrors();
|
|
10598
|
-
this.isSubmitting = false;
|
|
10599
10865
|
this.formValuesChanged = false;
|
|
10600
10866
|
this.pageChangeSubject.next(true);
|
|
10601
10867
|
return this.caseEdit.next(this.currentPage.id);
|
|
@@ -10637,9 +10903,10 @@
|
|
|
10637
10903
|
else {
|
|
10638
10904
|
this.caseEdit.cancelled.emit();
|
|
10639
10905
|
}
|
|
10906
|
+
this.caseEditDataService.clearFormValidationErrors();
|
|
10640
10907
|
};
|
|
10641
10908
|
CaseEditPageComponent.prototype.submitting = function () {
|
|
10642
|
-
return this.isSubmitting;
|
|
10909
|
+
return this.caseEdit.isSubmitting;
|
|
10643
10910
|
};
|
|
10644
10911
|
CaseEditPageComponent.prototype.getCaseId = function () {
|
|
10645
10912
|
return (this.caseEdit.caseDetails ? this.caseEdit.caseDetails.case_id : '');
|
|
@@ -10651,10 +10918,23 @@
|
|
|
10651
10918
|
CaseEditPageComponent.prototype.getCancelText = function () {
|
|
10652
10919
|
return this.eventTrigger.can_save_draft ? 'Return to case list' : 'Cancel';
|
|
10653
10920
|
};
|
|
10921
|
+
CaseEditPageComponent.prototype.canNavigateToSummaryPage = function () {
|
|
10922
|
+
var _a;
|
|
10923
|
+
var nextPage = this.caseEdit.getNextPage({
|
|
10924
|
+
currentPageId: (_a = this.currentPage) === null || _a === void 0 ? void 0 : _a.id,
|
|
10925
|
+
wizard: this.wizard,
|
|
10926
|
+
eventTrigger: this.eventTrigger,
|
|
10927
|
+
form: this.editForm
|
|
10928
|
+
});
|
|
10929
|
+
return this.eventTrigger.show_summary || !!nextPage;
|
|
10930
|
+
};
|
|
10654
10931
|
CaseEditPageComponent.prototype.getTriggerText = function () {
|
|
10655
|
-
|
|
10932
|
+
var textBasedOnCanSaveDraft = this.eventTrigger && this.eventTrigger.can_save_draft
|
|
10656
10933
|
? CaseEditPageComponent.TRIGGER_TEXT_SAVE
|
|
10657
10934
|
: CaseEditPageComponent.TRIGGER_TEXT_START;
|
|
10935
|
+
return this.canNavigateToSummaryPage()
|
|
10936
|
+
? textBasedOnCanSaveDraft
|
|
10937
|
+
: 'Submit';
|
|
10658
10938
|
};
|
|
10659
10939
|
CaseEditPageComponent.prototype.discard = function () {
|
|
10660
10940
|
if (this.route.snapshot.queryParamMap.get(CaseEditComponent.ORIGIN_QUERY_PARAM) === 'viewDraft') {
|
|
@@ -10665,26 +10945,29 @@
|
|
|
10665
10945
|
}
|
|
10666
10946
|
};
|
|
10667
10947
|
CaseEditPageComponent.prototype.handleError = function (error) {
|
|
10668
|
-
|
|
10669
|
-
this.
|
|
10670
|
-
this.
|
|
10671
|
-
|
|
10948
|
+
var _a, _b;
|
|
10949
|
+
this.caseEdit.isSubmitting = false;
|
|
10950
|
+
this.caseEdit.error = error;
|
|
10951
|
+
this.caseEdit.callbackErrorsSubject.next(this.caseEdit.error);
|
|
10952
|
+
this.callbackErrorsSubject.next(this.caseEdit.error);
|
|
10953
|
+
/* istanbul ignore else */
|
|
10954
|
+
if (this.caseEdit.error.details) {
|
|
10672
10955
|
this.formErrorService
|
|
10673
|
-
.mapFieldErrors(this.error.details.field_errors, this.editForm.controls['data'], 'validation');
|
|
10956
|
+
.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');
|
|
10674
10957
|
}
|
|
10675
10958
|
};
|
|
10676
10959
|
CaseEditPageComponent.prototype.resetErrors = function () {
|
|
10677
|
-
this.error = null;
|
|
10678
|
-
this.ignoreWarning = false;
|
|
10960
|
+
this.caseEdit.error = null;
|
|
10961
|
+
this.caseEdit.ignoreWarning = false;
|
|
10679
10962
|
this.triggerText = this.getTriggerText();
|
|
10680
|
-
this.callbackErrorsSubject.next(null);
|
|
10963
|
+
this.caseEdit.callbackErrorsSubject.next(null);
|
|
10681
10964
|
};
|
|
10682
10965
|
CaseEditPageComponent.prototype.saveDraft = function () {
|
|
10683
10966
|
var _this = this;
|
|
10684
10967
|
if (this.eventTrigger.can_save_draft) {
|
|
10685
10968
|
var draftCaseEventData = this.formValueService.sanitise(this.editForm.value);
|
|
10686
10969
|
draftCaseEventData.event_token = this.eventTrigger.event_token;
|
|
10687
|
-
draftCaseEventData.ignore_warning = this.ignoreWarning;
|
|
10970
|
+
draftCaseEventData.ignore_warning = this.caseEdit.ignoreWarning;
|
|
10688
10971
|
this.caseEdit.saveDraft(draftCaseEventData).subscribe(function (draft) { return _this.eventTrigger.case_id = DRAFT_PREFIX + draft.id; }, function (error) { return _this.handleError(error); });
|
|
10689
10972
|
}
|
|
10690
10973
|
};
|
|
@@ -10717,7 +11000,7 @@
|
|
|
10717
11000
|
pageEventData.event_data = formEventData.data;
|
|
10718
11001
|
// Finalise the CaseEventData object.
|
|
10719
11002
|
pageEventData.event_token = this.eventTrigger.event_token;
|
|
10720
|
-
pageEventData.ignore_warning = this.ignoreWarning;
|
|
11003
|
+
pageEventData.ignore_warning = this.caseEdit.ignoreWarning;
|
|
10721
11004
|
// Finally, try to set up the case_reference.
|
|
10722
11005
|
if (this.caseEdit.caseDetails) {
|
|
10723
11006
|
pageEventData.case_reference = this.caseEdit.caseDetails.case_id;
|
|
@@ -10757,6 +11040,15 @@
|
|
|
10757
11040
|
next: function (validationErrors) { return _this.validationErrors = validationErrors; }
|
|
10758
11041
|
});
|
|
10759
11042
|
};
|
|
11043
|
+
CaseEditPageComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
|
|
11044
|
+
this.caseEdit.onEventCanBeCompleted({
|
|
11045
|
+
eventTrigger: this.eventTrigger,
|
|
11046
|
+
eventCanBeCompleted: eventCanBeCompleted,
|
|
11047
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
11048
|
+
form: this.editForm,
|
|
11049
|
+
submit: this.caseEdit.submit,
|
|
11050
|
+
});
|
|
11051
|
+
};
|
|
10760
11052
|
return CaseEditPageComponent;
|
|
10761
11053
|
}());
|
|
10762
11054
|
CaseEditPageComponent.RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
|
|
@@ -10766,42 +11058,39 @@
|
|
|
10766
11058
|
CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
|
|
10767
11059
|
CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
|
|
10768
11060
|
CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
|
|
10769
|
-
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)); };
|
|
10770
|
-
CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls:
|
|
11061
|
+
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), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
|
|
11062
|
+
CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 12, vars: 11, 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) {
|
|
10771
11063
|
if (rf & 1) {
|
|
10772
|
-
i0__namespace.ɵɵtemplate(0,
|
|
10773
|
-
i0__namespace.ɵɵtemplate(1,
|
|
10774
|
-
i0__namespace.ɵɵtemplate(2,
|
|
10775
|
-
i0__namespace.ɵɵtemplate(
|
|
10776
|
-
i0__namespace.ɵɵtemplate(
|
|
10777
|
-
i0__namespace.ɵɵ
|
|
10778
|
-
i0__namespace.ɵɵ
|
|
10779
|
-
i0__namespace.ɵɵ
|
|
10780
|
-
i0__namespace.ɵɵelementStart(10, "ccd-callback-errors", 6);
|
|
10781
|
-
i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
11064
|
+
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 0);
|
|
11065
|
+
i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_div_1_Template, 1, 0, "div", 1);
|
|
11066
|
+
i0__namespace.ɵɵtemplate(2, CaseEditPageComponent_ng_template_2_Template, 2, 5, "ng-template", null, 2, i0__namespace.ɵɵtemplateRefExtractor);
|
|
11067
|
+
i0__namespace.ɵɵtemplate(4, CaseEditPageComponent_ng_template_4_Template, 1, 1, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
|
|
11068
|
+
i0__namespace.ɵɵtemplate(6, CaseEditPageComponent_div_6_Template, 4, 1, "div", 4);
|
|
11069
|
+
i0__namespace.ɵɵelement(7, "ccd-case-edit-generic-errors", 5);
|
|
11070
|
+
i0__namespace.ɵɵelementStart(8, "ccd-callback-errors", 6);
|
|
11071
|
+
i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_8_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
10782
11072
|
i0__namespace.ɵɵelementEnd();
|
|
10783
|
-
i0__namespace.ɵɵelementStart(
|
|
10784
|
-
i0__namespace.ɵɵtemplate(
|
|
11073
|
+
i0__namespace.ɵɵelementStart(9, "div", 7);
|
|
11074
|
+
i0__namespace.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template, 14, 9, "form", 8);
|
|
10785
11075
|
i0__namespace.ɵɵelementEnd();
|
|
11076
|
+
i0__namespace.ɵɵtemplate(11, CaseEditPageComponent_ccd_case_event_completion_11_Template, 1, 1, "ccd-case-event-completion", 9);
|
|
10786
11077
|
}
|
|
10787
11078
|
if (rf & 2) {
|
|
10788
|
-
var
|
|
10789
|
-
var
|
|
10790
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.showSpinner);
|
|
10791
|
-
i0__namespace.ɵɵadvance(1);
|
|
11079
|
+
var _r2 = i0__namespace.ɵɵreference(3);
|
|
11080
|
+
var _r4 = i0__namespace.ɵɵreference(5);
|
|
10792
11081
|
i0__namespace.ɵɵproperty("ngIf", ctx.currentPage);
|
|
10793
11082
|
i0__namespace.ɵɵadvance(1);
|
|
10794
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen",
|
|
11083
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", _r2)("ngIfElse", _r4);
|
|
10795
11084
|
i0__namespace.ɵɵadvance(5);
|
|
10796
11085
|
i0__namespace.ɵɵproperty("ngIf", ctx.validationErrors.length > 0);
|
|
10797
11086
|
i0__namespace.ɵɵadvance(1);
|
|
10798
|
-
i0__namespace.ɵɵproperty("
|
|
10799
|
-
i0__namespace.ɵɵadvance(1);
|
|
10800
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.error && ctx.error.details);
|
|
11087
|
+
i0__namespace.ɵɵproperty("error", ctx.caseEdit.error);
|
|
10801
11088
|
i0__namespace.ɵɵadvance(1);
|
|
10802
|
-
i0__namespace.ɵɵproperty("triggerTextContinue", ctx.triggerTextStart)("triggerTextIgnore", ctx.triggerTextIgnoreWarnings)("callbackErrorsSubject", ctx.callbackErrorsSubject);
|
|
11089
|
+
i0__namespace.ɵɵproperty("triggerTextContinue", ctx.triggerTextStart)("triggerTextIgnore", ctx.triggerTextIgnoreWarnings)("callbackErrorsSubject", ctx.caseEdit.callbackErrorsSubject);
|
|
10803
11090
|
i0__namespace.ɵɵadvance(2);
|
|
10804
11091
|
i0__namespace.ɵɵproperty("ngIf", ctx.currentPage);
|
|
11092
|
+
i0__namespace.ɵɵadvance(1);
|
|
11093
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
|
|
10805
11094
|
}
|
|
10806
11095
|
}, styles: [".rightBorderSeparator[_ngcontent-%COMP%]{border-right:4px solid #ffcc02}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
|
|
10807
11096
|
(function () {
|
|
@@ -10812,7 +11101,7 @@
|
|
|
10812
11101
|
templateUrl: 'case-edit-page.html',
|
|
10813
11102
|
styleUrls: ['./case-edit-page.scss']
|
|
10814
11103
|
}]
|
|
10815
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }]; }, null);
|
|
11104
|
+
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }]; }, null);
|
|
10816
11105
|
})();
|
|
10817
11106
|
|
|
10818
11107
|
var CallbackErrorsContext = /** @class */ (function () {
|
|
@@ -10919,11 +11208,6 @@
|
|
|
10919
11208
|
}
|
|
10920
11209
|
});
|
|
10921
11210
|
};
|
|
10922
|
-
CallbackErrorsComponent.prototype.ngOnDestroy = function () {
|
|
10923
|
-
if (this.callbackErrorsSubject) {
|
|
10924
|
-
this.callbackErrorsSubject.unsubscribe();
|
|
10925
|
-
}
|
|
10926
|
-
};
|
|
10927
11211
|
CallbackErrorsComponent.prototype.hasErrors = function () {
|
|
10928
11212
|
return this.error
|
|
10929
11213
|
&& this.error.callbackErrors
|
|
@@ -11312,59 +11596,95 @@
|
|
|
11312
11596
|
(function (DisplayContextCustomParameter) {
|
|
11313
11597
|
DisplayContextCustomParameter["CaseFileView"] = "CaseFileView";
|
|
11314
11598
|
DisplayContextCustomParameter["LinkedCases"] = "LinkedCases";
|
|
11315
|
-
DisplayContextCustomParameter["QueryManagement"] = "QueryManagement";
|
|
11316
11599
|
})(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
|
|
11317
11600
|
|
|
11318
|
-
function
|
|
11601
|
+
function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) {
|
|
11319
11602
|
if (rf & 1) {
|
|
11320
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
11321
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
11603
|
+
i0__namespace.ɵɵelementStart(0, "li");
|
|
11604
|
+
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
11605
|
+
i0__namespace.ɵɵtext(2);
|
|
11606
|
+
i0__namespace.ɵɵelementEnd();
|
|
11607
|
+
i0__namespace.ɵɵelementEnd();
|
|
11608
|
+
}
|
|
11609
|
+
if (rf & 2) {
|
|
11610
|
+
var errorMessage_r4 = ctx.$implicit;
|
|
11611
|
+
i0__namespace.ɵɵadvance(2);
|
|
11612
|
+
i0__namespace.ɵɵtextInterpolate(errorMessage_r4);
|
|
11613
|
+
}
|
|
11614
|
+
}
|
|
11615
|
+
function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) {
|
|
11616
|
+
if (rf & 1) {
|
|
11617
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
11618
|
+
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
11619
|
+
i0__namespace.ɵɵelementStart(2, "div", 3);
|
|
11620
|
+
i0__namespace.ɵɵelementStart(3, "h2", 4);
|
|
11621
|
+
i0__namespace.ɵɵtext(4, " There is a problem ");
|
|
11622
|
+
i0__namespace.ɵɵelementEnd();
|
|
11623
|
+
i0__namespace.ɵɵelementStart(5, "div", 5);
|
|
11624
|
+
i0__namespace.ɵɵelementStart(6, "ul", 6);
|
|
11625
|
+
i0__namespace.ɵɵtemplate(7, CaseFileViewFieldComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
|
|
11626
|
+
i0__namespace.ɵɵelementEnd();
|
|
11627
|
+
i0__namespace.ɵɵelementEnd();
|
|
11628
|
+
i0__namespace.ɵɵelementEnd();
|
|
11629
|
+
i0__namespace.ɵɵelementEnd();
|
|
11630
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
11631
|
+
}
|
|
11632
|
+
if (rf & 2) {
|
|
11633
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
11634
|
+
i0__namespace.ɵɵadvance(7);
|
|
11635
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
11636
|
+
}
|
|
11637
|
+
}
|
|
11638
|
+
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
11639
|
+
if (rf & 1) {
|
|
11640
|
+
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
11641
|
+
i0__namespace.ɵɵelementStart(1, "h1", 10);
|
|
11322
11642
|
i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
11323
11643
|
i0__namespace.ɵɵelementEnd();
|
|
11324
|
-
i0__namespace.ɵɵelementStart(3, "p",
|
|
11644
|
+
i0__namespace.ɵɵelementStart(3, "p", 11);
|
|
11325
11645
|
i0__namespace.ɵɵtext(4, "Try again later.");
|
|
11326
11646
|
i0__namespace.ɵɵelementEnd();
|
|
11327
11647
|
i0__namespace.ɵɵelementEnd();
|
|
11328
11648
|
}
|
|
11329
11649
|
}
|
|
11330
|
-
function
|
|
11650
|
+
function CaseFileViewFieldComponent_div_2_ng_container_8_Template(rf, ctx) {
|
|
11331
11651
|
if (rf & 1) {
|
|
11332
11652
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
11333
|
-
i0__namespace.ɵɵelement(1, "mv-media-viewer",
|
|
11653
|
+
i0__namespace.ɵɵelement(1, "mv-media-viewer", 18);
|
|
11334
11654
|
i0__namespace.ɵɵelementContainerEnd();
|
|
11335
11655
|
}
|
|
11336
11656
|
if (rf & 2) {
|
|
11337
|
-
var
|
|
11657
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
11338
11658
|
i0__namespace.ɵɵadvance(1);
|
|
11339
|
-
i0__namespace.ɵɵproperty("url",
|
|
11659
|
+
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");
|
|
11340
11660
|
}
|
|
11341
11661
|
}
|
|
11342
|
-
function
|
|
11662
|
+
function CaseFileViewFieldComponent_div_2_Template(rf, ctx) {
|
|
11343
11663
|
if (rf & 1) {
|
|
11344
|
-
var
|
|
11664
|
+
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11345
11665
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
11346
|
-
i0__namespace.ɵɵelementStart(1, "h2",
|
|
11666
|
+
i0__namespace.ɵɵelementStart(1, "h2", 12);
|
|
11347
11667
|
i0__namespace.ɵɵtext(2, "Case file");
|
|
11348
11668
|
i0__namespace.ɵɵelementEnd();
|
|
11349
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
11350
|
-
i0__namespace.ɵɵelementStart(4, "div",
|
|
11351
|
-
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder",
|
|
11352
|
-
i0__namespace.ɵɵlistener("clickedDocument", function
|
|
11669
|
+
i0__namespace.ɵɵelementStart(3, "div", 13);
|
|
11670
|
+
i0__namespace.ɵɵelementStart(4, "div", 14);
|
|
11671
|
+
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 15);
|
|
11672
|
+
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); });
|
|
11353
11673
|
i0__namespace.ɵɵelementEnd();
|
|
11354
11674
|
i0__namespace.ɵɵelementEnd();
|
|
11355
|
-
i0__namespace.ɵɵelement(6, "div",
|
|
11356
|
-
i0__namespace.ɵɵelementStart(7, "div",
|
|
11357
|
-
i0__namespace.ɵɵtemplate(8,
|
|
11675
|
+
i0__namespace.ɵɵelement(6, "div", 16);
|
|
11676
|
+
i0__namespace.ɵɵelementStart(7, "div", 17);
|
|
11677
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 7, "ng-container", 0);
|
|
11358
11678
|
i0__namespace.ɵɵelementEnd();
|
|
11359
11679
|
i0__namespace.ɵɵelementEnd();
|
|
11360
11680
|
i0__namespace.ɵɵelementEnd();
|
|
11361
11681
|
}
|
|
11362
11682
|
if (rf & 2) {
|
|
11363
|
-
var
|
|
11683
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
11364
11684
|
i0__namespace.ɵɵadvance(5);
|
|
11365
|
-
i0__namespace.ɵɵproperty("categoriesAndDocuments",
|
|
11685
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r2.categoriesAndDocuments$)("allowMoving", ctx_r2.allowMoving);
|
|
11366
11686
|
i0__namespace.ɵɵadvance(3);
|
|
11367
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
11687
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.currentDocument);
|
|
11368
11688
|
}
|
|
11369
11689
|
}
|
|
11370
11690
|
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
@@ -11377,6 +11697,7 @@
|
|
|
11377
11697
|
this.sessionStorageService = sessionStorageService;
|
|
11378
11698
|
this.allowMoving = true;
|
|
11379
11699
|
this.getCategoriesAndDocumentsError = false;
|
|
11700
|
+
this.errorMessages = [];
|
|
11380
11701
|
}
|
|
11381
11702
|
CaseFileViewFieldComponent.prototype.ngOnInit = function () {
|
|
11382
11703
|
var _this = this;
|
|
@@ -11428,11 +11749,26 @@
|
|
|
11428
11749
|
var _this = this;
|
|
11429
11750
|
var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
11430
11751
|
var loadingToken = this.loadingService.register();
|
|
11431
|
-
this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory)
|
|
11432
|
-
|
|
11752
|
+
this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory)
|
|
11753
|
+
.pipe(operators.finalize(function () {
|
|
11433
11754
|
_this.loadingService.unregister(loadingToken);
|
|
11755
|
+
}), operators.catchError(function () {
|
|
11756
|
+
_this.errorMessages = ['You do not have permission to move this document to the selected folder.'];
|
|
11757
|
+
return rxjs.of(null);
|
|
11758
|
+
}))
|
|
11759
|
+
.subscribe(function (res) {
|
|
11760
|
+
if (res) {
|
|
11761
|
+
_this.resetErrorMessages();
|
|
11762
|
+
_this.reloadPage();
|
|
11763
|
+
}
|
|
11434
11764
|
});
|
|
11435
11765
|
};
|
|
11766
|
+
CaseFileViewFieldComponent.prototype.reloadPage = function () {
|
|
11767
|
+
location.reload();
|
|
11768
|
+
};
|
|
11769
|
+
CaseFileViewFieldComponent.prototype.resetErrorMessages = function () {
|
|
11770
|
+
this.errorMessages = [];
|
|
11771
|
+
};
|
|
11436
11772
|
CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
|
|
11437
11773
|
if (this.categoriesAndDocumentsSubscription) {
|
|
11438
11774
|
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
@@ -11442,12 +11778,15 @@
|
|
|
11442
11778
|
}());
|
|
11443
11779
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
11444
11780
|
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)); };
|
|
11445
|
-
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls:
|
|
11781
|
+
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) {
|
|
11446
11782
|
if (rf & 1) {
|
|
11447
|
-
i0__namespace.ɵɵtemplate(0,
|
|
11448
|
-
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template,
|
|
11783
|
+
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_ng_container_0_Template, 8, 1, "ng-container", 0);
|
|
11784
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 5, 0, "div", 1);
|
|
11785
|
+
i0__namespace.ɵɵtemplate(2, CaseFileViewFieldComponent_div_2_Template, 9, 3, "div", 0);
|
|
11449
11786
|
}
|
|
11450
11787
|
if (rf & 2) {
|
|
11788
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
|
|
11789
|
+
i0__namespace.ɵɵadvance(1);
|
|
11451
11790
|
i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
11452
11791
|
i0__namespace.ɵɵadvance(1);
|
|
11453
11792
|
i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
@@ -14706,7 +15045,7 @@
|
|
|
14706
15045
|
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
14707
15046
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
14708
15047
|
i0__namespace.ɵɵadvance(1);
|
|
14709
|
-
i0__namespace.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.
|
|
15048
|
+
i0__namespace.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.id())("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
14710
15049
|
i0__namespace.ɵɵadvance(1);
|
|
14711
15050
|
i0__namespace.ɵɵproperty("for", ctx_r4.createElementId(radioButton_r5.code));
|
|
14712
15051
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14721,7 +15060,6 @@
|
|
|
14721
15060
|
}
|
|
14722
15061
|
WriteDynamicRadioListFieldComponent.prototype.ngOnInit = function () {
|
|
14723
15062
|
/**
|
|
14724
|
-
*
|
|
14725
15063
|
* Reassigning list_items from formatted_list when list_items is empty
|
|
14726
15064
|
*/
|
|
14727
15065
|
if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
|
|
@@ -15375,12 +15713,11 @@
|
|
|
15375
15713
|
}
|
|
15376
15714
|
var WriteJudicialUserFieldComponent = /** @class */ (function (_super) {
|
|
15377
15715
|
__extends(WriteJudicialUserFieldComponent, _super);
|
|
15378
|
-
function WriteJudicialUserFieldComponent(
|
|
15716
|
+
function WriteJudicialUserFieldComponent(jurisdictionService, sessionStorageService, caseFlagRefDataService) {
|
|
15379
15717
|
var _this = _super.call(this) || this;
|
|
15380
|
-
_this.route = route;
|
|
15381
|
-
_this.cd = cd;
|
|
15382
15718
|
_this.jurisdictionService = jurisdictionService;
|
|
15383
|
-
_this.
|
|
15719
|
+
_this.sessionStorageService = sessionStorageService;
|
|
15720
|
+
_this.caseFlagRefDataService = caseFlagRefDataService;
|
|
15384
15721
|
_this.MINIMUM_SEARCH_CHARACTERS = 2;
|
|
15385
15722
|
_this.IDAM_ID = 'idamId';
|
|
15386
15723
|
_this.PERSONAL_CODE = 'personalCode';
|
|
@@ -15390,18 +15727,46 @@
|
|
|
15390
15727
|
}
|
|
15391
15728
|
WriteJudicialUserFieldComponent.prototype.ngOnInit = function () {
|
|
15392
15729
|
var _this = this;
|
|
15393
|
-
|
|
15730
|
+
var _a;
|
|
15394
15731
|
this.judicialUserFormGroup = this.registerControl(new i2.FormGroup({}), true);
|
|
15395
15732
|
this.idamIdFormControl = new i2.FormControl('');
|
|
15396
15733
|
this.judicialUserFormGroup.addControl(this.IDAM_ID, this.idamIdFormControl);
|
|
15397
15734
|
this.personalCodeFormControl = new i2.FormControl('');
|
|
15398
15735
|
this.judicialUserFormGroup.addControl(this.PERSONAL_CODE, this.personalCodeFormControl);
|
|
15399
|
-
this.
|
|
15736
|
+
this.setJurisdictionAndCaseType();
|
|
15737
|
+
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) {
|
|
15400
15738
|
_this.filteredJudicialUsers = judicialUsers;
|
|
15401
15739
|
});
|
|
15740
|
+
if ((_a = this.caseField.value) === null || _a === void 0 ? void 0 : _a.personalCode) {
|
|
15741
|
+
this.loadJudicialUser(this.caseField.value.personalCode);
|
|
15742
|
+
}
|
|
15402
15743
|
};
|
|
15403
|
-
WriteJudicialUserFieldComponent.prototype.
|
|
15404
|
-
|
|
15744
|
+
WriteJudicialUserFieldComponent.prototype.filterJudicialUsers = function (searchTerm) {
|
|
15745
|
+
var _this = this;
|
|
15746
|
+
return this.caseFlagRefDataService.getHmctsServiceDetailsByCaseType(this.caseType).pipe(
|
|
15747
|
+
// If an error occurs retrieving HMCTS service details by case type ID, try by service name instead
|
|
15748
|
+
operators.catchError(function (_) { return _this.caseFlagRefDataService.getHmctsServiceDetailsByServiceName(_this.jurisdiction); }),
|
|
15749
|
+
// Use switchMap to return an inner Observable of the flag types data, having received the service details
|
|
15750
|
+
// including service_code. This avoids having nested `subscribe`s, which is an anti-pattern!
|
|
15751
|
+
operators.switchMap(function (serviceDetails) { return _this.jurisdictionService.searchJudicialUsers(searchTerm, serviceDetails[0].service_code); }));
|
|
15752
|
+
};
|
|
15753
|
+
WriteJudicialUserFieldComponent.prototype.loadJudicialUser = function (personalCode) {
|
|
15754
|
+
var _this = this;
|
|
15755
|
+
if (personalCode) {
|
|
15756
|
+
this.jurisdictionService.searchJudicialUsersByPersonalCodes([personalCode]).subscribe(function (judicialUsers) {
|
|
15757
|
+
var judicialUser = judicialUsers[0];
|
|
15758
|
+
_this.idamIdFormControl.setValue(judicialUser.fullName + " (" + judicialUser.emailId + ")");
|
|
15759
|
+
_this.personalCodeFormControl.setValue(judicialUser.personalCode);
|
|
15760
|
+
});
|
|
15761
|
+
}
|
|
15762
|
+
};
|
|
15763
|
+
WriteJudicialUserFieldComponent.prototype.setJurisdictionAndCaseType = function () {
|
|
15764
|
+
var caseInfoStr = this.sessionStorageService.getItem('caseInfo');
|
|
15765
|
+
if (caseInfoStr) {
|
|
15766
|
+
var caseInfo = JSON.parse(caseInfoStr);
|
|
15767
|
+
this.jurisdiction = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.jurisdiction;
|
|
15768
|
+
this.caseType = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.caseType;
|
|
15769
|
+
}
|
|
15405
15770
|
};
|
|
15406
15771
|
WriteJudicialUserFieldComponent.prototype.onSelectionChange = function (judicialUser) {
|
|
15407
15772
|
this.idamIdFormControl.setValue(judicialUser.fullName + " (" + judicialUser.emailId + ")");
|
|
@@ -15414,7 +15779,7 @@
|
|
|
15414
15779
|
};
|
|
15415
15780
|
return WriteJudicialUserFieldComponent;
|
|
15416
15781
|
}(AbstractFieldWriteComponent));
|
|
15417
|
-
WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
15782
|
+
WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(JurisdictionService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
|
|
15418
15783
|
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) {
|
|
15419
15784
|
if (rf & 1) {
|
|
15420
15785
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -15445,7 +15810,7 @@
|
|
|
15445
15810
|
i0__namespace.ɵɵadvance(1);
|
|
15446
15811
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.filteredJudicialUsers == null ? null : ctx.filteredJudicialUsers.length) && ctx.showAutocomplete);
|
|
15447
15812
|
}
|
|
15448
|
-
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor,
|
|
15813
|
+
}, 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}"] });
|
|
15449
15814
|
(function () {
|
|
15450
15815
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
|
|
15451
15816
|
type: i0.Component,
|
|
@@ -15454,7 +15819,7 @@
|
|
|
15454
15819
|
styleUrls: ['./write-judicial-user-field.component.scss'],
|
|
15455
15820
|
templateUrl: './write-judicial-user-field.component.html'
|
|
15456
15821
|
}]
|
|
15457
|
-
}], function () { return [{ type:
|
|
15822
|
+
}], function () { return [{ type: JurisdictionService }, { type: SessionStorageService }, { type: CaseFlagRefdataService }]; }, null);
|
|
15458
15823
|
})();
|
|
15459
15824
|
|
|
15460
15825
|
var LabelFieldComponent = /** @class */ (function () {
|
|
@@ -15768,9 +16133,7 @@
|
|
|
15768
16133
|
});
|
|
15769
16134
|
};
|
|
15770
16135
|
BeforeYouStartComponent.prototype.onBack = function () {
|
|
15771
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]
|
|
15772
|
-
window.location.hash = 'Linked cases';
|
|
15773
|
-
});
|
|
16136
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
|
|
15774
16137
|
};
|
|
15775
16138
|
return BeforeYouStartComponent;
|
|
15776
16139
|
}());
|
|
@@ -17286,9 +17649,7 @@
|
|
|
17286
17649
|
this.serverLinkedApiError = this.linkedCasesService.serverLinkedApiError;
|
|
17287
17650
|
};
|
|
17288
17651
|
NoLinkedCasesComponent.prototype.onBack = function () {
|
|
17289
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]
|
|
17290
|
-
window.location.hash = 'Linked cases';
|
|
17291
|
-
});
|
|
17652
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
|
|
17292
17653
|
};
|
|
17293
17654
|
return NoLinkedCasesComponent;
|
|
17294
17655
|
}());
|
|
@@ -17754,9 +18115,7 @@
|
|
|
17754
18115
|
}
|
|
17755
18116
|
};
|
|
17756
18117
|
ReadLinkedCasesFieldComponent.prototype.reloadCurrentRoute = function () {
|
|
17757
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]
|
|
17758
|
-
window.location.hash = 'Linked cases';
|
|
17759
|
-
});
|
|
18118
|
+
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id], { fragment: 'Linked cases' });
|
|
17760
18119
|
};
|
|
17761
18120
|
ReadLinkedCasesFieldComponent.prototype.getFailureLinkedToNotification = function (evt) {
|
|
17762
18121
|
this.isServerLinkedToError = true;
|
|
@@ -19469,255 +19828,6 @@
|
|
|
19469
19828
|
}], null, null);
|
|
19470
19829
|
})();
|
|
19471
19830
|
|
|
19472
|
-
var partyMessagesMockData = [
|
|
19473
|
-
{
|
|
19474
|
-
partyName: 'John Smith - Appellant',
|
|
19475
|
-
roleOnCase: null,
|
|
19476
|
-
partyMessages: [
|
|
19477
|
-
{
|
|
19478
|
-
id: 'case-message-001',
|
|
19479
|
-
subject: 'Review attached document',
|
|
19480
|
-
name: 'Maggie Conroy',
|
|
19481
|
-
body: 'Please review attached document and advise if hearing should proceed?',
|
|
19482
|
-
attachments: [],
|
|
19483
|
-
isHearingRelated: true,
|
|
19484
|
-
hearingDate: '10 Jan 2023',
|
|
19485
|
-
createdOn: new Date(2023, 0, 3),
|
|
19486
|
-
createdBy: '1111-1111-1111-1111'
|
|
19487
|
-
},
|
|
19488
|
-
{
|
|
19489
|
-
id: 'case-message-002',
|
|
19490
|
-
subject: 'Games',
|
|
19491
|
-
name: 'Maggie Conroy',
|
|
19492
|
-
body: 'Can I play games in my phone when my solicitor is talking?',
|
|
19493
|
-
attachments: [],
|
|
19494
|
-
isHearingRelated: true,
|
|
19495
|
-
hearingDate: '10 Jan 2023',
|
|
19496
|
-
createdOn: new Date(2023, 0, 3),
|
|
19497
|
-
createdBy: '1111-1111-1111-1111'
|
|
19498
|
-
},
|
|
19499
|
-
{
|
|
19500
|
-
id: 'case-message-003',
|
|
19501
|
-
name: 'Maggie Conroy',
|
|
19502
|
-
body: 'Using mobile phone is strictly prohibited in the court room.',
|
|
19503
|
-
attachments: [],
|
|
19504
|
-
isHearingRelated: true,
|
|
19505
|
-
hearingDate: '10 Jan 2023',
|
|
19506
|
-
createdOn: new Date(2023, 0, 4),
|
|
19507
|
-
createdBy: '2222-2222-2222-2222',
|
|
19508
|
-
parentId: 'case-message-002'
|
|
19509
|
-
}
|
|
19510
|
-
]
|
|
19511
|
-
},
|
|
19512
|
-
{
|
|
19513
|
-
partyName: 'Kevin Peterson - Respondent',
|
|
19514
|
-
roleOnCase: null,
|
|
19515
|
-
partyMessages: [
|
|
19516
|
-
{
|
|
19517
|
-
id: 'case-message-005',
|
|
19518
|
-
subject: 'Add respondent detention order',
|
|
19519
|
-
name: 'Maggie Conroy',
|
|
19520
|
-
body: 'Please add respondent detention order to the file XX20230423-DX.',
|
|
19521
|
-
attachments: [],
|
|
19522
|
-
isHearingRelated: false,
|
|
19523
|
-
createdOn: new Date(2023, 1, 5),
|
|
19524
|
-
createdBy: '1111-1111-1111-1111'
|
|
19525
|
-
},
|
|
19526
|
-
{
|
|
19527
|
-
id: 'case-message-006',
|
|
19528
|
-
name: 'Maggie Conroy',
|
|
19529
|
-
body: 'I confirm that the respondent detention order is now added to the file XX20230423-DX.',
|
|
19530
|
-
attachments: [],
|
|
19531
|
-
isHearingRelated: false,
|
|
19532
|
-
createdOn: new Date(2023, 1, 6),
|
|
19533
|
-
createdBy: '2222-2222-2222-2222',
|
|
19534
|
-
parentId: 'case-message-005'
|
|
19535
|
-
},
|
|
19536
|
-
{
|
|
19537
|
-
id: 'case-message-007',
|
|
19538
|
-
subject: 'Food',
|
|
19539
|
-
name: 'Maggie Conroy',
|
|
19540
|
-
body: 'Can I eat in the hearings?',
|
|
19541
|
-
attachments: [],
|
|
19542
|
-
isHearingRelated: true,
|
|
19543
|
-
hearingDate: '10 Jan 2023',
|
|
19544
|
-
createdOn: new Date(2023, 0, 3),
|
|
19545
|
-
createdBy: '1111-1111-1111-1111'
|
|
19546
|
-
},
|
|
19547
|
-
{
|
|
19548
|
-
id: 'case-message-008',
|
|
19549
|
-
name: 'Maggie Conroy',
|
|
19550
|
-
body: 'Consumption of food is not allowed when a hearing is taking place.',
|
|
19551
|
-
attachments: [],
|
|
19552
|
-
isHearingRelated: true,
|
|
19553
|
-
hearingDate: '10 Jan 2023',
|
|
19554
|
-
createdOn: new Date(2023, 0, 5),
|
|
19555
|
-
createdBy: '2222-2222-2222-2222',
|
|
19556
|
-
parentId: 'case-message-007'
|
|
19557
|
-
},
|
|
19558
|
-
{
|
|
19559
|
-
id: 'case-message-009',
|
|
19560
|
-
subject: 'Bring relatives',
|
|
19561
|
-
name: 'Maggie Conroy',
|
|
19562
|
-
body: 'Can I bring my grandma with me so she get out from the residence?',
|
|
19563
|
-
attachments: [],
|
|
19564
|
-
isHearingRelated: true,
|
|
19565
|
-
hearingDate: '10 Jan 2023',
|
|
19566
|
-
createdOn: new Date(2023, 0, 6),
|
|
19567
|
-
createdBy: '1111-1111-1111-1111'
|
|
19568
|
-
},
|
|
19569
|
-
{
|
|
19570
|
-
id: 'case-message-010',
|
|
19571
|
-
name: 'Maggie Conroy',
|
|
19572
|
-
body: 'Sorry, only those required for the hearing should be present inside the court room.',
|
|
19573
|
-
attachments: [],
|
|
19574
|
-
isHearingRelated: true,
|
|
19575
|
-
hearingDate: '10 Jan 2023',
|
|
19576
|
-
createdOn: new Date(2023, 0, 7),
|
|
19577
|
-
createdBy: '2222-2222-2222-2222',
|
|
19578
|
-
parentId: 'case-message-009'
|
|
19579
|
-
}
|
|
19580
|
-
]
|
|
19581
|
-
}
|
|
19582
|
-
];
|
|
19583
|
-
|
|
19584
|
-
var QueryCreateComponent = /** @class */ (function () {
|
|
19585
|
-
function QueryCreateComponent() {
|
|
19586
|
-
}
|
|
19587
|
-
QueryCreateComponent.prototype.ngOnInit = function () {
|
|
19588
|
-
};
|
|
19589
|
-
return QueryCreateComponent;
|
|
19590
|
-
}());
|
|
19591
|
-
QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
|
|
19592
|
-
QueryCreateComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
19593
|
-
(function () {
|
|
19594
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCreateComponent, [{
|
|
19595
|
-
type: i0.Component,
|
|
19596
|
-
args: [{
|
|
19597
|
-
selector: 'ccd-query-create',
|
|
19598
|
-
templateUrl: './query-create.component.html',
|
|
19599
|
-
}]
|
|
19600
|
-
}], function () { return []; }, null);
|
|
19601
|
-
})();
|
|
19602
|
-
|
|
19603
|
-
var QueryDetailComponent = /** @class */ (function () {
|
|
19604
|
-
function QueryDetailComponent() {
|
|
19605
|
-
}
|
|
19606
|
-
QueryDetailComponent.prototype.ngOnInit = function () {
|
|
19607
|
-
};
|
|
19608
|
-
return QueryDetailComponent;
|
|
19609
|
-
}());
|
|
19610
|
-
QueryDetailComponent.ɵfac = function QueryDetailComponent_Factory(t) { return new (t || QueryDetailComponent)(); };
|
|
19611
|
-
QueryDetailComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailComponent, selectors: [["ccd-query-detail"]], decls: 0, vars: 0, template: function QueryDetailComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
19612
|
-
(function () {
|
|
19613
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailComponent, [{
|
|
19614
|
-
type: i0.Component,
|
|
19615
|
-
args: [{
|
|
19616
|
-
selector: 'ccd-query-detail',
|
|
19617
|
-
templateUrl: './query-detail.component.html',
|
|
19618
|
-
}]
|
|
19619
|
-
}], function () { return []; }, null);
|
|
19620
|
-
})();
|
|
19621
|
-
|
|
19622
|
-
var QueryListComponent = /** @class */ (function () {
|
|
19623
|
-
function QueryListComponent() {
|
|
19624
|
-
}
|
|
19625
|
-
QueryListComponent.prototype.ngOnInit = function () {
|
|
19626
|
-
};
|
|
19627
|
-
return QueryListComponent;
|
|
19628
|
-
}());
|
|
19629
|
-
QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
|
|
19630
|
-
QueryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessages: "partyMessages" }, decls: 0, vars: 0, template: function QueryListComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
19631
|
-
(function () {
|
|
19632
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryListComponent, [{
|
|
19633
|
-
type: i0.Component,
|
|
19634
|
-
args: [{
|
|
19635
|
-
selector: 'ccd-query-list',
|
|
19636
|
-
templateUrl: './query-list.component.html',
|
|
19637
|
-
}]
|
|
19638
|
-
}], function () { return []; }, { partyMessages: [{
|
|
19639
|
-
type: i0.Input
|
|
19640
|
-
}] });
|
|
19641
|
-
})();
|
|
19642
|
-
|
|
19643
|
-
var QueryManagementUtils = /** @class */ (function () {
|
|
19644
|
-
function QueryManagementUtils() {
|
|
19645
|
-
}
|
|
19646
|
-
QueryManagementUtils.extractCaseQueriesFromCaseField = function () {
|
|
19647
|
-
};
|
|
19648
|
-
return QueryManagementUtils;
|
|
19649
|
-
}());
|
|
19650
|
-
QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
|
|
19651
|
-
QueryManagementUtils.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
|
|
19652
|
-
(function () {
|
|
19653
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementUtils, [{
|
|
19654
|
-
type: i0.Injectable
|
|
19655
|
-
}], null, null);
|
|
19656
|
-
})();
|
|
19657
|
-
|
|
19658
|
-
var ReadQueryManagementFieldComponent = /** @class */ (function (_super) {
|
|
19659
|
-
__extends(ReadQueryManagementFieldComponent, _super);
|
|
19660
|
-
function ReadQueryManagementFieldComponent(route) {
|
|
19661
|
-
var _this = _super.call(this) || this;
|
|
19662
|
-
_this.route = route;
|
|
19663
|
-
return _this;
|
|
19664
|
-
}
|
|
19665
|
-
ReadQueryManagementFieldComponent.prototype.ngOnInit = function () {
|
|
19666
|
-
if (this.context === exports.PaletteContext.DEFAULT) {
|
|
19667
|
-
// EUI-8303 Using mock data until CCD is ready with the API and data contract
|
|
19668
|
-
this.partyMessages = partyMessagesMockData;
|
|
19669
|
-
// TODO: Actual implementation once the CCD API and data contract is available
|
|
19670
|
-
// Each parties will have a separate collection of party messages
|
|
19671
|
-
// Find whether queries tab is available in the case data
|
|
19672
|
-
var queriesTab = this.route.snapshot.data.case.tabs
|
|
19673
|
-
.filter(function (tab) { return tab.fields && tab.fields
|
|
19674
|
-
.some(function (caseField) { return caseField.id === 'QueryManagement'; }); });
|
|
19675
|
-
// Loop through the list of parties and their case queries collections
|
|
19676
|
-
QueryManagementUtils.extractCaseQueriesFromCaseField();
|
|
19677
|
-
}
|
|
19678
|
-
};
|
|
19679
|
-
return ReadQueryManagementFieldComponent;
|
|
19680
|
-
}(AbstractFieldReadComponent));
|
|
19681
|
-
ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
|
|
19682
|
-
ReadQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "partyMessages"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) {
|
|
19683
|
-
if (rf & 1) {
|
|
19684
|
-
i0__namespace.ɵɵelement(0, "ccd-query-list", 0);
|
|
19685
|
-
}
|
|
19686
|
-
if (rf & 2) {
|
|
19687
|
-
i0__namespace.ɵɵproperty("partyMessages", ctx.partyMessages);
|
|
19688
|
-
}
|
|
19689
|
-
}, directives: [QueryListComponent], encapsulation: 2 });
|
|
19690
|
-
(function () {
|
|
19691
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
19692
|
-
type: i0.Component,
|
|
19693
|
-
args: [{
|
|
19694
|
-
selector: 'ccd-read-query-management-field',
|
|
19695
|
-
templateUrl: './read-query-management-field.component.html',
|
|
19696
|
-
}]
|
|
19697
|
-
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
|
|
19698
|
-
})();
|
|
19699
|
-
|
|
19700
|
-
var WriteQueryManagementFieldComponent = /** @class */ (function (_super) {
|
|
19701
|
-
__extends(WriteQueryManagementFieldComponent, _super);
|
|
19702
|
-
function WriteQueryManagementFieldComponent() {
|
|
19703
|
-
return _super.call(this) || this;
|
|
19704
|
-
}
|
|
19705
|
-
WriteQueryManagementFieldComponent.prototype.ngOnInit = function () {
|
|
19706
|
-
};
|
|
19707
|
-
return WriteQueryManagementFieldComponent;
|
|
19708
|
-
}(AbstractFieldWriteComponent));
|
|
19709
|
-
WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
|
|
19710
|
-
WriteQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function WriteQueryManagementFieldComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
19711
|
-
(function () {
|
|
19712
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteQueryManagementFieldComponent, [{
|
|
19713
|
-
type: i0.Component,
|
|
19714
|
-
args: [{
|
|
19715
|
-
selector: 'ccd-write-query-management-field',
|
|
19716
|
-
templateUrl: './write-query-management-field.component.html',
|
|
19717
|
-
}]
|
|
19718
|
-
}], function () { return []; }, null);
|
|
19719
|
-
})();
|
|
19720
|
-
|
|
19721
19831
|
var ReadTextAreaFieldComponent = /** @class */ (function (_super) {
|
|
19722
19832
|
__extends(ReadTextAreaFieldComponent, _super);
|
|
19723
19833
|
function ReadTextAreaFieldComponent() {
|
|
@@ -20237,7 +20347,6 @@
|
|
|
20237
20347
|
this.componentLauncherRegistry = (_b = {},
|
|
20238
20348
|
_b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
|
|
20239
20349
|
_b[DisplayContextCustomParameter.LinkedCases] = [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
|
|
20240
|
-
_b[DisplayContextCustomParameter.QueryManagement] = [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent],
|
|
20241
20350
|
_b);
|
|
20242
20351
|
}
|
|
20243
20352
|
PaletteService.prototype.getFieldComponentClass = function (caseField, write) {
|
|
@@ -20490,7 +20599,7 @@
|
|
|
20490
20599
|
i0__namespace.ɵɵclassProp("grey-bar", ctx.canHaveGreyBar && !ctx.caseField.hiddenCannotChange);
|
|
20491
20600
|
i0__namespace.ɵɵproperty("hidden", ctx.caseField.hidden);
|
|
20492
20601
|
}
|
|
20493
|
-
}, styles: [".form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
20602
|
+
}, styles: [".form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
20494
20603
|
(function () {
|
|
20495
20604
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FieldWriteComponent, [{
|
|
20496
20605
|
type: i0.Component,
|
|
@@ -20590,7 +20699,7 @@
|
|
|
20590
20699
|
i0__namespace.ɵɵadvance(1);
|
|
20591
20700
|
i0__namespace.ɵɵproperty("ngIf", ctx.withLabel && !ctx.isLabel() && (!ctx.isComplex() || ctx.isCaseLink()))("ngIfElse", _r1);
|
|
20592
20701
|
}
|
|
20593
|
-
}, directives: [i1__namespace.NgIf, i1__namespace.NgTemplateOutlet], styles: [".case-field[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.case-field[_ngcontent-%COMP%]{box-sizing:border-box;margin-bottom:15px}@media (min-width:641px){.case-field[_ngcontent-%COMP%]{margin-bottom:30px}}.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
20702
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgTemplateOutlet], styles: [".case-field[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.case-field[_ngcontent-%COMP%]{box-sizing:border-box;margin-bottom:15px}@media (min-width:641px){.case-field[_ngcontent-%COMP%]{margin-bottom:30px}}.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
20594
20703
|
var ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(FieldReadLabelComponent);
|
|
20595
20704
|
(function () {
|
|
20596
20705
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FieldReadLabelComponent, [{
|
|
@@ -20789,7 +20898,7 @@
|
|
|
20789
20898
|
i0__namespace.ɵɵadvance(2);
|
|
20790
20899
|
i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
20791
20900
|
}
|
|
20792
|
-
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder
|
|
20901
|
+
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
|
|
20793
20902
|
(function () {
|
|
20794
20903
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
20795
20904
|
type: i0.Component,
|
|
@@ -20901,7 +21010,7 @@
|
|
|
20901
21010
|
i0__namespace.ɵɵadvance(4);
|
|
20902
21011
|
i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
20903
21012
|
}
|
|
20904
|
-
}, 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:-
|
|
21013
|
+
}, 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}"] });
|
|
20905
21014
|
(function () {
|
|
20906
21015
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
20907
21016
|
type: i0.Component,
|
|
@@ -21515,21 +21624,21 @@
|
|
|
21515
21624
|
i0__namespace.ɵɵelementEnd();
|
|
21516
21625
|
}
|
|
21517
21626
|
}
|
|
21518
|
-
function
|
|
21627
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
|
|
21519
21628
|
if (rf & 1) {
|
|
21520
21629
|
i0__namespace.ɵɵelementStart(0, "strong", 19);
|
|
21521
21630
|
i0__namespace.ɵɵtext(1, "Active");
|
|
21522
21631
|
i0__namespace.ɵɵelementEnd();
|
|
21523
21632
|
}
|
|
21524
21633
|
}
|
|
21525
|
-
function
|
|
21634
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template(rf, ctx) {
|
|
21526
21635
|
if (rf & 1) {
|
|
21527
21636
|
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
21528
21637
|
i0__namespace.ɵɵtext(1, "Inactive");
|
|
21529
21638
|
i0__namespace.ɵɵelementEnd();
|
|
21530
21639
|
}
|
|
21531
21640
|
}
|
|
21532
|
-
function
|
|
21641
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_19_Template(rf, ctx) {
|
|
21533
21642
|
if (rf & 1) {
|
|
21534
21643
|
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
21535
21644
|
i0__namespace.ɵɵtext(1, "Requested");
|
|
@@ -21546,22 +21655,25 @@
|
|
|
21546
21655
|
i0__namespace.ɵɵelementStart(4, "div");
|
|
21547
21656
|
i0__namespace.ɵɵtext(5);
|
|
21548
21657
|
i0__namespace.ɵɵelementEnd();
|
|
21549
|
-
i0__namespace.ɵɵ
|
|
21550
|
-
i0__namespace.ɵɵelementStart(6, "td", 16);
|
|
21658
|
+
i0__namespace.ɵɵelementStart(6, "div");
|
|
21551
21659
|
i0__namespace.ɵɵtext(7);
|
|
21552
21660
|
i0__namespace.ɵɵelementEnd();
|
|
21661
|
+
i0__namespace.ɵɵelementEnd();
|
|
21553
21662
|
i0__namespace.ɵɵelementStart(8, "td", 16);
|
|
21554
21663
|
i0__namespace.ɵɵtext(9);
|
|
21555
|
-
i0__namespace.ɵɵpipe(10, "date");
|
|
21556
21664
|
i0__namespace.ɵɵelementEnd();
|
|
21557
|
-
i0__namespace.ɵɵelementStart(
|
|
21558
|
-
i0__namespace.ɵɵtext(
|
|
21559
|
-
i0__namespace.ɵɵpipe(
|
|
21665
|
+
i0__namespace.ɵɵelementStart(10, "td", 16);
|
|
21666
|
+
i0__namespace.ɵɵtext(11);
|
|
21667
|
+
i0__namespace.ɵɵpipe(12, "date");
|
|
21668
|
+
i0__namespace.ɵɵelementEnd();
|
|
21669
|
+
i0__namespace.ɵɵelementStart(13, "td", 16);
|
|
21670
|
+
i0__namespace.ɵɵtext(14);
|
|
21671
|
+
i0__namespace.ɵɵpipe(15, "date");
|
|
21560
21672
|
i0__namespace.ɵɵelementEnd();
|
|
21561
|
-
i0__namespace.ɵɵelementStart(
|
|
21562
|
-
i0__namespace.ɵɵtemplate(
|
|
21563
|
-
i0__namespace.ɵɵtemplate(
|
|
21564
|
-
i0__namespace.ɵɵtemplate(
|
|
21673
|
+
i0__namespace.ɵɵelementStart(16, "td", 16);
|
|
21674
|
+
i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 17);
|
|
21675
|
+
i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template, 2, 0, "strong", 18);
|
|
21676
|
+
i0__namespace.ɵɵtemplate(19, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_19_Template, 2, 0, "strong", 18);
|
|
21565
21677
|
i0__namespace.ɵɵelementEnd();
|
|
21566
21678
|
i0__namespace.ɵɵelementEnd();
|
|
21567
21679
|
}
|
|
@@ -21573,11 +21685,13 @@
|
|
|
21573
21685
|
i0__namespace.ɵɵadvance(2);
|
|
21574
21686
|
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.otherDescription);
|
|
21575
21687
|
i0__namespace.ɵɵadvance(2);
|
|
21688
|
+
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.subTypeValue);
|
|
21689
|
+
i0__namespace.ɵɵadvance(2);
|
|
21576
21690
|
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
|
|
21577
21691
|
i0__namespace.ɵɵadvance(2);
|
|
21578
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(
|
|
21692
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(12, 9, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
|
|
21579
21693
|
i0__namespace.ɵɵadvance(3);
|
|
21580
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(
|
|
21694
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(15, 12, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
|
|
21581
21695
|
i0__namespace.ɵɵadvance(3);
|
|
21582
21696
|
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
|
|
21583
21697
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -21589,7 +21703,7 @@
|
|
|
21589
21703
|
function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
|
|
21590
21704
|
if (rf & 1) {
|
|
21591
21705
|
i0__namespace.ɵɵelementStart(0, "tbody", 10);
|
|
21592
|
-
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template,
|
|
21706
|
+
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 20, 15, "tr", 14);
|
|
21593
21707
|
i0__namespace.ɵɵelementEnd();
|
|
21594
21708
|
}
|
|
21595
21709
|
if (rf & 2) {
|
|
@@ -22252,7 +22366,7 @@
|
|
|
22252
22366
|
i0__namespace.ɵɵadvance(1);
|
|
22253
22367
|
i0__namespace.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
|
|
22254
22368
|
}
|
|
22255
|
-
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i3__namespace$1.MatInput, i2__namespace.DefaultValueAccessor,
|
|
22369
|
+
}, 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}"] });
|
|
22256
22370
|
(function () {
|
|
22257
22371
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
|
|
22258
22372
|
type: i0.Component,
|
|
@@ -23335,7 +23449,7 @@
|
|
|
23335
23449
|
i0__namespace.ɵɵadvance(4);
|
|
23336
23450
|
i0__namespace.ɵɵtextInterpolate(ctx.caseField.label);
|
|
23337
23451
|
i0__namespace.ɵɵadvance(4);
|
|
23338
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind4(9, 2, ctx.caseField, false, undefined,
|
|
23452
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind4(9, 2, ctx.caseField, false, undefined, false));
|
|
23339
23453
|
}
|
|
23340
23454
|
}, styles: [".complex-panel[_ngcontent-%COMP%]{margin:13px 0;border:1px solid #bfc1c3}.complex-panel[_ngcontent-%COMP%] .complex-panel-title[_ngcontent-%COMP%]{background-color:#dee0e2;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;padding:5px 5px 2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.complex-panel[_ngcontent-%COMP%] .complex-panel-title[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{vertical-align:top}.complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%], .complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > th[_ngcontent-%COMP%]{border-bottom:none}.complex-panel[_ngcontent-%COMP%] .complex-panel-simple-field[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-left:5px;width:295px}.complex-panel[_ngcontent-%COMP%] .complex-panel-compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px}"] });
|
|
23341
23455
|
var ɵReadComplexFieldTableComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadComplexFieldTableComponent);
|
|
@@ -24172,7 +24286,7 @@
|
|
|
24172
24286
|
};
|
|
24173
24287
|
return DatetimePickerComponent;
|
|
24174
24288
|
}(AbstractFormFieldComponent));
|
|
24175
|
-
DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4.NGX_MAT_DATE_FORMATS)); };
|
|
24289
|
+
DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4$1.NGX_MAT_DATE_FORMATS)); };
|
|
24176
24290
|
DatetimePickerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) {
|
|
24177
24291
|
if (rf & 1) {
|
|
24178
24292
|
i0__namespace.ɵɵviewQuery(_c0$i, 1);
|
|
@@ -24184,10 +24298,10 @@
|
|
|
24184
24298
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
24185
24299
|
}
|
|
24186
24300
|
}, inputs: { dateControl: "dateControl" }, features: [i0__namespace.ɵɵProvidersFeature([
|
|
24187
|
-
{ provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24188
|
-
{ provide: i4.NgxMatDateAdapter,
|
|
24301
|
+
{ provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24302
|
+
{ provide: i4$1.NgxMatDateAdapter,
|
|
24189
24303
|
useClass: momentAdapter.NgxMatMomentAdapter,
|
|
24190
|
-
deps: [
|
|
24304
|
+
deps: [i5.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
24191
24305
|
},
|
|
24192
24306
|
{ provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
24193
24307
|
]), 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) {
|
|
@@ -24234,7 +24348,7 @@
|
|
|
24234
24348
|
i0__namespace.ɵɵadvance(1);
|
|
24235
24349
|
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);
|
|
24236
24350
|
}
|
|
24237
|
-
}, 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 });
|
|
24351
|
+
}, 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 });
|
|
24238
24352
|
(function () {
|
|
24239
24353
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimePickerComponent, [{
|
|
24240
24354
|
type: i0.Component,
|
|
@@ -24244,10 +24358,10 @@
|
|
|
24244
24358
|
styleUrls: ['./datetime-picker.component.scss'],
|
|
24245
24359
|
encapsulation: i0.ViewEncapsulation.None,
|
|
24246
24360
|
providers: [
|
|
24247
|
-
{ provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24248
|
-
{ provide: i4.NgxMatDateAdapter,
|
|
24361
|
+
{ provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
|
|
24362
|
+
{ provide: i4$1.NgxMatDateAdapter,
|
|
24249
24363
|
useClass: momentAdapter.NgxMatMomentAdapter,
|
|
24250
|
-
deps: [
|
|
24364
|
+
deps: [i5.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
24251
24365
|
},
|
|
24252
24366
|
{ provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
24253
24367
|
]
|
|
@@ -24255,7 +24369,7 @@
|
|
|
24255
24369
|
}], function () {
|
|
24256
24370
|
return [{ type: FormatTranslatorService }, { type: undefined, decorators: [{
|
|
24257
24371
|
type: i0.Inject,
|
|
24258
|
-
args: [i4.NGX_MAT_DATE_FORMATS]
|
|
24372
|
+
args: [i4$1.NGX_MAT_DATE_FORMATS]
|
|
24259
24373
|
}] }];
|
|
24260
24374
|
}, { datetimePicker: [{
|
|
24261
24375
|
type: i0.ViewChild,
|
|
@@ -25810,7 +25924,6 @@
|
|
|
25810
25924
|
ReadComplexFieldCollectionTableComponent,
|
|
25811
25925
|
ReadCaseFlagFieldComponent,
|
|
25812
25926
|
ReadLinkedCasesFieldComponent,
|
|
25813
|
-
ReadQueryManagementFieldComponent,
|
|
25814
25927
|
// Write
|
|
25815
25928
|
WriteJudicialUserFieldComponent,
|
|
25816
25929
|
WriteAddressFieldComponent,
|
|
@@ -25830,7 +25943,6 @@
|
|
|
25830
25943
|
WriteDateFieldComponent,
|
|
25831
25944
|
WriteCaseFlagFieldComponent,
|
|
25832
25945
|
WriteLinkedCasesFieldComponent,
|
|
25833
|
-
WriteQueryManagementFieldComponent,
|
|
25834
25946
|
// new
|
|
25835
25947
|
WriteYesNoFieldComponent,
|
|
25836
25948
|
WriteOrganisationFieldComponent,
|
|
@@ -25857,27 +25969,13 @@
|
|
|
25857
25969
|
ReadDynamicMultiSelectListFieldComponent,
|
|
25858
25970
|
ReadDynamicListFieldComponent,
|
|
25859
25971
|
ReadDynamicRadioListFieldComponent,
|
|
25860
|
-
// Components for Case flags
|
|
25861
|
-
CaseFlagTableComponent,
|
|
25862
|
-
SelectFlagTypeComponent,
|
|
25863
|
-
SearchLanguageInterpreterComponent,
|
|
25864
|
-
SelectFlagLocationComponent,
|
|
25865
|
-
ManageCaseFlagsComponent,
|
|
25866
|
-
AddCommentsComponent,
|
|
25867
|
-
UpdateFlagComponent,
|
|
25868
|
-
CaseFlagSummaryListComponent,
|
|
25869
|
-
// Components for linked cases
|
|
25870
25972
|
LinkedCasesToTableComponent,
|
|
25871
25973
|
LinkedCasesFromTableComponent,
|
|
25872
25974
|
BeforeYouStartComponent,
|
|
25873
25975
|
LinkCasesComponent,
|
|
25874
25976
|
CheckYourAnswersComponent,
|
|
25875
25977
|
UnLinkCasesComponent,
|
|
25876
|
-
NoLinkedCasesComponent
|
|
25877
|
-
// Components for query management
|
|
25878
|
-
QueryCreateComponent,
|
|
25879
|
-
QueryDetailComponent,
|
|
25880
|
-
QueryListComponent
|
|
25978
|
+
NoLinkedCasesComponent
|
|
25881
25979
|
];
|
|
25882
25980
|
var PaletteModule = /** @class */ (function () {
|
|
25883
25981
|
function PaletteModule() {
|
|
@@ -25896,10 +25994,10 @@
|
|
|
25896
25994
|
FileUploadStateService,
|
|
25897
25995
|
FileUploadProgressGuard,
|
|
25898
25996
|
WindowService,
|
|
25899
|
-
LinkedCasesService,
|
|
25900
25997
|
CommonDataService,
|
|
25901
25998
|
JurisdictionService,
|
|
25902
|
-
|
|
25999
|
+
LinkedCasesService,
|
|
26000
|
+
{ provide: i5.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
25903
26001
|
], imports: [[
|
|
25904
26002
|
i1.CommonModule,
|
|
25905
26003
|
i1$1.RouterModule,
|
|
@@ -25916,13 +26014,13 @@
|
|
|
25916
26014
|
TabsModule,
|
|
25917
26015
|
LabelSubstitutorModule,
|
|
25918
26016
|
i1$5.NgxMdModule,
|
|
25919
|
-
i4.NgxMatDatetimePickerModule,
|
|
25920
|
-
i4.NgxMatTimepickerModule,
|
|
25921
|
-
i4.NgxMatNativeDateModule,
|
|
25922
|
-
i6
|
|
26017
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26018
|
+
i4$1.NgxMatTimepickerModule,
|
|
26019
|
+
i4$1.NgxMatNativeDateModule,
|
|
26020
|
+
i6.MatFormFieldModule,
|
|
25923
26021
|
i3$1.MatInputModule,
|
|
25924
26022
|
i5$1.MatDatepickerModule,
|
|
25925
|
-
|
|
26023
|
+
i4.MatAutocompleteModule,
|
|
25926
26024
|
i7.CdkTreeModule,
|
|
25927
26025
|
i1$4.OverlayModule,
|
|
25928
26026
|
i3.PaymentLibModule,
|
|
@@ -25930,9 +26028,9 @@
|
|
|
25930
26028
|
i1$3.MatDialogModule,
|
|
25931
26029
|
i11.MediaViewerModule,
|
|
25932
26030
|
LoadingModule
|
|
25933
|
-
], i4.NgxMatDatetimePickerModule,
|
|
25934
|
-
i4.NgxMatNativeDateModule,
|
|
25935
|
-
i4.NgxMatTimepickerModule,
|
|
26031
|
+
], i4$1.NgxMatDatetimePickerModule,
|
|
26032
|
+
i4$1.NgxMatNativeDateModule,
|
|
26033
|
+
i4$1.NgxMatTimepickerModule,
|
|
25936
26034
|
TabsModule,
|
|
25937
26035
|
PaletteUtilsModule,
|
|
25938
26036
|
PipesModule] });
|
|
@@ -25941,7 +26039,15 @@
|
|
|
25941
26039
|
FixedRadioListPipe,
|
|
25942
26040
|
DynamicListPipe,
|
|
25943
26041
|
DynamicRadioListPipe,
|
|
25944
|
-
DocumentUrlPipe,
|
|
26042
|
+
DocumentUrlPipe,
|
|
26043
|
+
CaseFlagTableComponent,
|
|
26044
|
+
SelectFlagTypeComponent,
|
|
26045
|
+
SearchLanguageInterpreterComponent,
|
|
26046
|
+
SelectFlagLocationComponent,
|
|
26047
|
+
ManageCaseFlagsComponent,
|
|
26048
|
+
AddCommentsComponent,
|
|
26049
|
+
UpdateFlagComponent,
|
|
26050
|
+
CaseFlagSummaryListComponent, UnsupportedFieldComponent,
|
|
25945
26051
|
DatetimePickerComponent,
|
|
25946
26052
|
WaysToPayFieldComponent,
|
|
25947
26053
|
MarkdownComponent,
|
|
@@ -25985,7 +26091,6 @@
|
|
|
25985
26091
|
ReadComplexFieldCollectionTableComponent,
|
|
25986
26092
|
ReadCaseFlagFieldComponent,
|
|
25987
26093
|
ReadLinkedCasesFieldComponent,
|
|
25988
|
-
ReadQueryManagementFieldComponent,
|
|
25989
26094
|
// Write
|
|
25990
26095
|
WriteJudicialUserFieldComponent,
|
|
25991
26096
|
WriteAddressFieldComponent,
|
|
@@ -26005,7 +26110,6 @@
|
|
|
26005
26110
|
WriteDateFieldComponent,
|
|
26006
26111
|
WriteCaseFlagFieldComponent,
|
|
26007
26112
|
WriteLinkedCasesFieldComponent,
|
|
26008
|
-
WriteQueryManagementFieldComponent,
|
|
26009
26113
|
// new
|
|
26010
26114
|
WriteYesNoFieldComponent,
|
|
26011
26115
|
WriteOrganisationFieldComponent,
|
|
@@ -26032,27 +26136,13 @@
|
|
|
26032
26136
|
ReadDynamicMultiSelectListFieldComponent,
|
|
26033
26137
|
ReadDynamicListFieldComponent,
|
|
26034
26138
|
ReadDynamicRadioListFieldComponent,
|
|
26035
|
-
// Components for Case flags
|
|
26036
|
-
CaseFlagTableComponent,
|
|
26037
|
-
SelectFlagTypeComponent,
|
|
26038
|
-
SearchLanguageInterpreterComponent,
|
|
26039
|
-
SelectFlagLocationComponent,
|
|
26040
|
-
ManageCaseFlagsComponent,
|
|
26041
|
-
AddCommentsComponent,
|
|
26042
|
-
UpdateFlagComponent,
|
|
26043
|
-
CaseFlagSummaryListComponent,
|
|
26044
|
-
// Components for linked cases
|
|
26045
26139
|
LinkedCasesToTableComponent,
|
|
26046
26140
|
LinkedCasesFromTableComponent,
|
|
26047
26141
|
BeforeYouStartComponent,
|
|
26048
26142
|
LinkCasesComponent,
|
|
26049
26143
|
CheckYourAnswersComponent,
|
|
26050
26144
|
UnLinkCasesComponent,
|
|
26051
|
-
NoLinkedCasesComponent,
|
|
26052
|
-
// Components for query management
|
|
26053
|
-
QueryCreateComponent,
|
|
26054
|
-
QueryDetailComponent,
|
|
26055
|
-
QueryListComponent], imports: [i1.CommonModule,
|
|
26145
|
+
NoLinkedCasesComponent], imports: [i1.CommonModule,
|
|
26056
26146
|
i1$1.RouterModule,
|
|
26057
26147
|
i2.FormsModule,
|
|
26058
26148
|
i2.ReactiveFormsModule,
|
|
@@ -26067,20 +26157,20 @@
|
|
|
26067
26157
|
TabsModule,
|
|
26068
26158
|
LabelSubstitutorModule,
|
|
26069
26159
|
i1$5.NgxMdModule,
|
|
26070
|
-
i4.NgxMatDatetimePickerModule,
|
|
26071
|
-
i4.NgxMatTimepickerModule,
|
|
26072
|
-
i4.NgxMatNativeDateModule,
|
|
26073
|
-
i6
|
|
26160
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26161
|
+
i4$1.NgxMatTimepickerModule,
|
|
26162
|
+
i4$1.NgxMatNativeDateModule,
|
|
26163
|
+
i6.MatFormFieldModule,
|
|
26074
26164
|
i3$1.MatInputModule,
|
|
26075
26165
|
i5$1.MatDatepickerModule,
|
|
26076
|
-
|
|
26166
|
+
i4.MatAutocompleteModule,
|
|
26077
26167
|
i7.CdkTreeModule,
|
|
26078
26168
|
i1$4.OverlayModule,
|
|
26079
26169
|
i3.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
|
|
26080
26170
|
i11.MediaViewerModule,
|
|
26081
|
-
LoadingModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
26082
|
-
i4.NgxMatNativeDateModule,
|
|
26083
|
-
i4.NgxMatTimepickerModule,
|
|
26171
|
+
LoadingModule], exports: [i4$1.NgxMatDatetimePickerModule,
|
|
26172
|
+
i4$1.NgxMatNativeDateModule,
|
|
26173
|
+
i4$1.NgxMatTimepickerModule,
|
|
26084
26174
|
TabsModule,
|
|
26085
26175
|
PaletteUtilsModule,
|
|
26086
26176
|
PipesModule, UnsupportedFieldComponent,
|
|
@@ -26127,7 +26217,6 @@
|
|
|
26127
26217
|
ReadComplexFieldCollectionTableComponent,
|
|
26128
26218
|
ReadCaseFlagFieldComponent,
|
|
26129
26219
|
ReadLinkedCasesFieldComponent,
|
|
26130
|
-
ReadQueryManagementFieldComponent,
|
|
26131
26220
|
// Write
|
|
26132
26221
|
WriteJudicialUserFieldComponent,
|
|
26133
26222
|
WriteAddressFieldComponent,
|
|
@@ -26147,7 +26236,6 @@
|
|
|
26147
26236
|
WriteDateFieldComponent,
|
|
26148
26237
|
WriteCaseFlagFieldComponent,
|
|
26149
26238
|
WriteLinkedCasesFieldComponent,
|
|
26150
|
-
WriteQueryManagementFieldComponent,
|
|
26151
26239
|
// new
|
|
26152
26240
|
WriteYesNoFieldComponent,
|
|
26153
26241
|
WriteOrganisationFieldComponent,
|
|
@@ -26174,27 +26262,13 @@
|
|
|
26174
26262
|
ReadDynamicMultiSelectListFieldComponent,
|
|
26175
26263
|
ReadDynamicListFieldComponent,
|
|
26176
26264
|
ReadDynamicRadioListFieldComponent,
|
|
26177
|
-
// Components for Case flags
|
|
26178
|
-
CaseFlagTableComponent,
|
|
26179
|
-
SelectFlagTypeComponent,
|
|
26180
|
-
SearchLanguageInterpreterComponent,
|
|
26181
|
-
SelectFlagLocationComponent,
|
|
26182
|
-
ManageCaseFlagsComponent,
|
|
26183
|
-
AddCommentsComponent,
|
|
26184
|
-
UpdateFlagComponent,
|
|
26185
|
-
CaseFlagSummaryListComponent,
|
|
26186
|
-
// Components for linked cases
|
|
26187
26265
|
LinkedCasesToTableComponent,
|
|
26188
26266
|
LinkedCasesFromTableComponent,
|
|
26189
26267
|
BeforeYouStartComponent,
|
|
26190
26268
|
LinkCasesComponent,
|
|
26191
26269
|
CheckYourAnswersComponent,
|
|
26192
26270
|
UnLinkCasesComponent,
|
|
26193
|
-
NoLinkedCasesComponent
|
|
26194
|
-
// Components for query management
|
|
26195
|
-
QueryCreateComponent,
|
|
26196
|
-
QueryDetailComponent,
|
|
26197
|
-
QueryListComponent] });
|
|
26271
|
+
NoLinkedCasesComponent] });
|
|
26198
26272
|
})();
|
|
26199
26273
|
(function () {
|
|
26200
26274
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
|
|
@@ -26216,13 +26290,13 @@
|
|
|
26216
26290
|
TabsModule,
|
|
26217
26291
|
LabelSubstitutorModule,
|
|
26218
26292
|
i1$5.NgxMdModule,
|
|
26219
|
-
i4.NgxMatDatetimePickerModule,
|
|
26220
|
-
i4.NgxMatTimepickerModule,
|
|
26221
|
-
i4.NgxMatNativeDateModule,
|
|
26222
|
-
i6
|
|
26293
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26294
|
+
i4$1.NgxMatTimepickerModule,
|
|
26295
|
+
i4$1.NgxMatNativeDateModule,
|
|
26296
|
+
i6.MatFormFieldModule,
|
|
26223
26297
|
i3$1.MatInputModule,
|
|
26224
26298
|
i5$1.MatDatepickerModule,
|
|
26225
|
-
|
|
26299
|
+
i4.MatAutocompleteModule,
|
|
26226
26300
|
i7.CdkTreeModule,
|
|
26227
26301
|
i1$4.OverlayModule,
|
|
26228
26302
|
i3.PaymentLibModule,
|
|
@@ -26236,12 +26310,20 @@
|
|
|
26236
26310
|
FixedRadioListPipe,
|
|
26237
26311
|
DynamicListPipe,
|
|
26238
26312
|
DynamicRadioListPipe,
|
|
26239
|
-
DocumentUrlPipe
|
|
26313
|
+
DocumentUrlPipe,
|
|
26314
|
+
CaseFlagTableComponent,
|
|
26315
|
+
SelectFlagTypeComponent,
|
|
26316
|
+
SearchLanguageInterpreterComponent,
|
|
26317
|
+
SelectFlagLocationComponent,
|
|
26318
|
+
ManageCaseFlagsComponent,
|
|
26319
|
+
AddCommentsComponent,
|
|
26320
|
+
UpdateFlagComponent,
|
|
26321
|
+
CaseFlagSummaryListComponent
|
|
26240
26322
|
], PALETTE_COMPONENTS),
|
|
26241
26323
|
exports: __spread([
|
|
26242
|
-
i4.NgxMatDatetimePickerModule,
|
|
26243
|
-
i4.NgxMatNativeDateModule,
|
|
26244
|
-
i4.NgxMatTimepickerModule,
|
|
26324
|
+
i4$1.NgxMatDatetimePickerModule,
|
|
26325
|
+
i4$1.NgxMatNativeDateModule,
|
|
26326
|
+
i4$1.NgxMatTimepickerModule,
|
|
26245
26327
|
TabsModule,
|
|
26246
26328
|
PaletteUtilsModule,
|
|
26247
26329
|
PipesModule
|
|
@@ -26256,10 +26338,10 @@
|
|
|
26256
26338
|
FileUploadStateService,
|
|
26257
26339
|
FileUploadProgressGuard,
|
|
26258
26340
|
WindowService,
|
|
26259
|
-
LinkedCasesService,
|
|
26260
26341
|
CommonDataService,
|
|
26261
26342
|
JurisdictionService,
|
|
26262
|
-
|
|
26343
|
+
LinkedCasesService,
|
|
26344
|
+
{ provide: i5.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
26263
26345
|
],
|
|
26264
26346
|
entryComponents: [CaseFileViewFolderSelectorComponent]
|
|
26265
26347
|
}]
|
|
@@ -26281,13 +26363,8 @@
|
|
|
26281
26363
|
i0__namespace.ɵɵsetComponentScope(ReadComplexFieldTableComponent, [i1__namespace.NgForOf, i1__namespace.NgIf, FieldReadComponent], [ReadFieldsFilterPipe, IsCompoundPipe]);
|
|
26282
26364
|
i0__namespace.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, [i1__namespace.NgForOf, i1__namespace.NgIf, FieldReadComponent,
|
|
26283
26365
|
ReadCaseLinkFieldComponent], [ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i1__namespace.KeyValuePipe, IsCompoundPipe]);
|
|
26284
|
-
i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i1__namespace.NgSwitchDefault, i1__namespace.NgForOf, i1__namespace.NgIf,
|
|
26285
|
-
|
|
26286
|
-
CaseFlagTableComponent], []);
|
|
26287
|
-
i0__namespace.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, [
|
|
26288
|
-
// Components for linked cases
|
|
26289
|
-
LinkedCasesToTableComponent, i1__namespace.NgIf, LinkedCasesFromTableComponent
|
|
26290
|
-
], []);
|
|
26366
|
+
i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i1__namespace.NgSwitchDefault, i1__namespace.NgForOf, i1__namespace.NgIf, CaseFlagTableComponent], []);
|
|
26367
|
+
i0__namespace.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, [LinkedCasesToTableComponent, i1__namespace.NgIf, LinkedCasesFromTableComponent], []);
|
|
26291
26368
|
i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i2__namespace.SelectControlValueAccessor, i1__namespace.NgForOf, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe]);
|
|
26292
26369
|
i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
|
|
26293
26370
|
i0__namespace.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1__namespace.NgClass, i1__namespace.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
|
|
@@ -26310,43 +26387,12 @@
|
|
|
26310
26387
|
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
26311
26388
|
i0__namespace.ɵɵsetComponentScope(
|
|
26312
26389
|
// ComponentLauncher web components
|
|
26313
|
-
CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
|
|
26314
|
-
i0__namespace.ɵɵsetComponentScope(
|
|
26315
|
-
// Components for linked cases
|
|
26316
|
-
LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26390
|
+
CaseFileViewFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
|
|
26391
|
+
i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26317
26392
|
i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
|
|
26318
26393
|
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]);
|
|
26319
26394
|
i0__namespace.ɵɵsetComponentScope(CheckYourAnswersComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26320
26395
|
|
|
26321
|
-
var Confirmation = /** @class */ (function () {
|
|
26322
|
-
function Confirmation(caseId, status, header, body) {
|
|
26323
|
-
this.caseId = caseId;
|
|
26324
|
-
this.status = status;
|
|
26325
|
-
this.header = header;
|
|
26326
|
-
this.body = body;
|
|
26327
|
-
}
|
|
26328
|
-
Confirmation.prototype.getCaseId = function () {
|
|
26329
|
-
return this.caseId;
|
|
26330
|
-
};
|
|
26331
|
-
Confirmation.prototype.getStatus = function () {
|
|
26332
|
-
return this.status;
|
|
26333
|
-
};
|
|
26334
|
-
Confirmation.prototype.getHeader = function () {
|
|
26335
|
-
return this.header;
|
|
26336
|
-
};
|
|
26337
|
-
Confirmation.prototype.getBody = function () {
|
|
26338
|
-
return this.body;
|
|
26339
|
-
};
|
|
26340
|
-
return Confirmation;
|
|
26341
|
-
}());
|
|
26342
|
-
|
|
26343
|
-
exports.EventCompletionReturnStates = void 0;
|
|
26344
|
-
(function (EventCompletionReturnStates) {
|
|
26345
|
-
EventCompletionReturnStates["InProgress"] = "in-progress";
|
|
26346
|
-
EventCompletionReturnStates["CompleteEvent"] = "complete-event";
|
|
26347
|
-
EventCompletionReturnStates["CancelEvent"] = "cancel-event";
|
|
26348
|
-
})(exports.EventCompletionReturnStates || (exports.EventCompletionReturnStates = {}));
|
|
26349
|
-
|
|
26350
26396
|
function CaseEditSubmitComponent_div_0_div_3_Template(rf, ctx) {
|
|
26351
26397
|
if (rf & 1) {
|
|
26352
26398
|
i0__namespace.ɵɵelement(0, "div");
|
|
@@ -26370,9 +26416,9 @@
|
|
|
26370
26416
|
i0__namespace.ɵɵelementEnd();
|
|
26371
26417
|
}
|
|
26372
26418
|
if (rf & 2) {
|
|
26373
|
-
var
|
|
26419
|
+
var ctx_r10 = i0__namespace.ɵɵnextContext(3);
|
|
26374
26420
|
i0__namespace.ɵɵadvance(1);
|
|
26375
|
-
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1,
|
|
26421
|
+
i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r10.getCaseId()), "");
|
|
26376
26422
|
}
|
|
26377
26423
|
}
|
|
26378
26424
|
function CaseEditSubmitComponent_div_0_ng_template_6_Template(rf, ctx) {
|
|
@@ -26384,313 +26430,249 @@
|
|
|
26384
26430
|
i0__namespace.ɵɵproperty("ngIf", ctx_r6.getCaseId());
|
|
26385
26431
|
}
|
|
26386
26432
|
}
|
|
26387
|
-
function
|
|
26433
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_span_3_Template(rf, ctx) {
|
|
26388
26434
|
if (rf & 1) {
|
|
26389
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
26390
|
-
i0__namespace.ɵɵelementStart(1, "h1", 18);
|
|
26391
|
-
i0__namespace.ɵɵtext(2, " Something went wrong ");
|
|
26392
|
-
i0__namespace.ɵɵelementEnd();
|
|
26393
|
-
i0__namespace.ɵɵelementStart(3, "div", 19);
|
|
26394
|
-
i0__namespace.ɵɵelementStart(4, "p");
|
|
26395
|
-
i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
|
|
26396
|
-
i0__namespace.ɵɵelementEnd();
|
|
26397
|
-
i0__namespace.ɵɵelementStart(6, "p");
|
|
26398
|
-
i0__namespace.ɵɵelementStart(7, "a", 20);
|
|
26399
|
-
i0__namespace.ɵɵtext(8, "Contact us");
|
|
26400
|
-
i0__namespace.ɵɵelementEnd();
|
|
26401
|
-
i0__namespace.ɵɵtext(9, " if you're still having problems.");
|
|
26402
|
-
i0__namespace.ɵɵelementEnd();
|
|
26403
|
-
i0__namespace.ɵɵelementEnd();
|
|
26404
|
-
i0__namespace.ɵɵelementEnd();
|
|
26405
|
-
}
|
|
26406
|
-
}
|
|
26407
|
-
function CaseEditSubmitComponent_div_0_div_9_ul_5_li_1_Template(rf, ctx) {
|
|
26408
|
-
if (rf & 1) {
|
|
26409
|
-
i0__namespace.ɵɵelementStart(0, "li", 25);
|
|
26410
|
-
i0__namespace.ɵɵtext(1);
|
|
26411
|
-
i0__namespace.ɵɵelementEnd();
|
|
26412
|
-
}
|
|
26413
|
-
if (rf & 2) {
|
|
26414
|
-
var fieldError_r15 = ctx.$implicit;
|
|
26415
|
-
i0__namespace.ɵɵadvance(1);
|
|
26416
|
-
i0__namespace.ɵɵtextInterpolate(fieldError_r15.message);
|
|
26417
|
-
}
|
|
26418
|
-
}
|
|
26419
|
-
function CaseEditSubmitComponent_div_0_div_9_ul_5_Template(rf, ctx) {
|
|
26420
|
-
if (rf & 1) {
|
|
26421
|
-
i0__namespace.ɵɵelementStart(0, "ul", 23);
|
|
26422
|
-
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_div_9_ul_5_li_1_Template, 2, 1, "li", 24);
|
|
26423
|
-
i0__namespace.ɵɵelementEnd();
|
|
26424
|
-
}
|
|
26425
|
-
if (rf & 2) {
|
|
26426
|
-
var ctx_r13 = i0__namespace.ɵɵnextContext(3);
|
|
26427
|
-
i0__namespace.ɵɵadvance(1);
|
|
26428
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r13.error.details.field_errors);
|
|
26429
|
-
}
|
|
26430
|
-
}
|
|
26431
|
-
function CaseEditSubmitComponent_div_0_div_9_Template(rf, ctx) {
|
|
26432
|
-
if (rf & 1) {
|
|
26433
|
-
i0__namespace.ɵɵelementStart(0, "div", 17);
|
|
26434
|
-
i0__namespace.ɵɵelementStart(1, "h3", 21);
|
|
26435
|
-
i0__namespace.ɵɵtext(2, " The event could not be created ");
|
|
26436
|
-
i0__namespace.ɵɵelementEnd();
|
|
26437
|
-
i0__namespace.ɵɵelementStart(3, "p");
|
|
26438
|
-
i0__namespace.ɵɵtext(4);
|
|
26439
|
-
i0__namespace.ɵɵelementEnd();
|
|
26440
|
-
i0__namespace.ɵɵtemplate(5, CaseEditSubmitComponent_div_0_div_9_ul_5_Template, 2, 1, "ul", 22);
|
|
26441
|
-
i0__namespace.ɵɵelementEnd();
|
|
26442
|
-
}
|
|
26443
|
-
if (rf & 2) {
|
|
26444
|
-
var ctx_r8 = i0__namespace.ɵɵnextContext(2);
|
|
26445
|
-
i0__namespace.ɵɵadvance(4);
|
|
26446
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r8.error.message);
|
|
26447
|
-
i0__namespace.ɵɵadvance(1);
|
|
26448
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r8.error.details == null ? null : ctx_r8.error.details.field_errors);
|
|
26449
|
-
}
|
|
26450
|
-
}
|
|
26451
|
-
function CaseEditSubmitComponent_div_0_ng_container_12_span_3_Template(rf, ctx) {
|
|
26452
|
-
if (rf & 1) {
|
|
26453
|
-
i0__namespace.ɵɵelementStart(0, "span", 29);
|
|
26435
|
+
i0__namespace.ɵɵelementStart(0, "span", 20);
|
|
26454
26436
|
i0__namespace.ɵɵtext(1, "Check the information below carefully.");
|
|
26455
26437
|
i0__namespace.ɵɵelementEnd();
|
|
26456
26438
|
}
|
|
26457
26439
|
}
|
|
26458
|
-
function
|
|
26440
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template(rf, ctx) {
|
|
26459
26441
|
if (rf & 1) {
|
|
26460
|
-
i0__namespace.ɵɵelementStart(0, "th",
|
|
26461
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
26442
|
+
i0__namespace.ɵɵelementStart(0, "th", 27);
|
|
26443
|
+
i0__namespace.ɵɵelementStart(1, "span", 20);
|
|
26462
26444
|
i0__namespace.ɵɵtext(2);
|
|
26463
26445
|
i0__namespace.ɵɵelementEnd();
|
|
26464
26446
|
i0__namespace.ɵɵelementEnd();
|
|
26465
26447
|
}
|
|
26466
26448
|
if (rf & 2) {
|
|
26467
|
-
var
|
|
26449
|
+
var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
26468
26450
|
i0__namespace.ɵɵadvance(2);
|
|
26469
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26451
|
+
i0__namespace.ɵɵtextInterpolate(field_r16.label);
|
|
26470
26452
|
}
|
|
26471
26453
|
}
|
|
26472
|
-
function
|
|
26454
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template(rf, ctx) {
|
|
26473
26455
|
if (rf & 1) {
|
|
26474
|
-
var
|
|
26456
|
+
var _r23_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26475
26457
|
i0__namespace.ɵɵelementStart(0, "a", 13);
|
|
26476
|
-
i0__namespace.ɵɵlistener("click", function
|
|
26477
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
26458
|
+
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); });
|
|
26459
|
+
i0__namespace.ɵɵelementStart(1, "span", 20);
|
|
26478
26460
|
i0__namespace.ɵɵtext(2, "Change");
|
|
26479
26461
|
i0__namespace.ɵɵelementEnd();
|
|
26480
26462
|
i0__namespace.ɵɵelementEnd();
|
|
26481
26463
|
}
|
|
26482
26464
|
if (rf & 2) {
|
|
26483
|
-
var
|
|
26465
|
+
var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
26484
26466
|
i0__namespace.ɵɵadvance(1);
|
|
26485
|
-
i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ",
|
|
26467
|
+
i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ", field_r16.label, "");
|
|
26486
26468
|
}
|
|
26487
26469
|
}
|
|
26488
|
-
function
|
|
26470
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
26489
26471
|
if (rf & 1) {
|
|
26490
26472
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26491
|
-
i0__namespace.ɵɵelementStart(1, "tr",
|
|
26492
|
-
i0__namespace.ɵɵtemplate(2,
|
|
26493
|
-
i0__namespace.ɵɵelementStart(3, "td",
|
|
26494
|
-
i0__namespace.ɵɵelement(4, "ccd-field-read",
|
|
26473
|
+
i0__namespace.ɵɵelementStart(1, "tr", 21);
|
|
26474
|
+
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);
|
|
26475
|
+
i0__namespace.ɵɵelementStart(3, "td", 23);
|
|
26476
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 24);
|
|
26495
26477
|
i0__namespace.ɵɵelementEnd();
|
|
26496
|
-
i0__namespace.ɵɵelementStart(5, "td",
|
|
26497
|
-
i0__namespace.ɵɵtemplate(6,
|
|
26478
|
+
i0__namespace.ɵɵelementStart(5, "td", 25);
|
|
26479
|
+
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);
|
|
26498
26480
|
i0__namespace.ɵɵelementEnd();
|
|
26499
26481
|
i0__namespace.ɵɵelementEnd();
|
|
26500
26482
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26501
26483
|
}
|
|
26502
26484
|
if (rf & 2) {
|
|
26503
|
-
var
|
|
26504
|
-
var
|
|
26485
|
+
var field_r16 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26486
|
+
var ctx_r17 = i0__namespace.ɵɵnextContext(5);
|
|
26505
26487
|
i0__namespace.ɵɵadvance(1);
|
|
26506
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26488
|
+
i0__namespace.ɵɵproperty("caseField", field_r16)("hidden", field_r16.hidden)("formGroup", ctx_r17.editForm.controls["data"])("contextFields", ctx_r17.contextFields);
|
|
26507
26489
|
i0__namespace.ɵɵadvance(1);
|
|
26508
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
26490
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r17.isLabel(field_r16) && !ctx_r17.caseEdit.isCaseFlagSubmission);
|
|
26509
26491
|
i0__namespace.ɵɵadvance(1);
|
|
26510
|
-
i0__namespace.ɵɵattribute("colspan",
|
|
26492
|
+
i0__namespace.ɵɵattribute("colspan", ctx_r17.isLabel(field_r16) ? "2" : "1");
|
|
26511
26493
|
i0__namespace.ɵɵadvance(1);
|
|
26512
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26494
|
+
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);
|
|
26513
26495
|
i0__namespace.ɵɵadvance(2);
|
|
26514
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26496
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r17.isChangeAllowed(field_r16));
|
|
26515
26497
|
}
|
|
26516
26498
|
}
|
|
26517
|
-
function
|
|
26499
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
26518
26500
|
if (rf & 1) {
|
|
26519
26501
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26520
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26502
|
+
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);
|
|
26521
26503
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26522
26504
|
}
|
|
26523
26505
|
if (rf & 2) {
|
|
26524
|
-
var
|
|
26525
|
-
var
|
|
26506
|
+
var field_r16 = ctx.$implicit;
|
|
26507
|
+
var ctx_r15 = i0__namespace.ɵɵnextContext(5);
|
|
26526
26508
|
i0__namespace.ɵɵadvance(1);
|
|
26527
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26509
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r15.canShowFieldInCYA(field_r16));
|
|
26528
26510
|
}
|
|
26529
26511
|
}
|
|
26530
26512
|
var _c0$f = function (a0, a4) { return [a0, false, undefined, true, a4]; };
|
|
26531
|
-
function
|
|
26513
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_Template(rf, ctx) {
|
|
26532
26514
|
if (rf & 1) {
|
|
26533
26515
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26534
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26516
|
+
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);
|
|
26535
26517
|
i0__namespace.ɵɵpipe(2, "ccdCYAPageLabelFilter");
|
|
26536
26518
|
i0__namespace.ɵɵpipe(3, "ccdReadFieldsFilter");
|
|
26537
26519
|
i0__namespace.ɵɵpipe(4, "ccdPageFields");
|
|
26538
26520
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26539
26521
|
}
|
|
26540
26522
|
if (rf & 2) {
|
|
26541
|
-
var
|
|
26542
|
-
var
|
|
26523
|
+
var page_r13 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26524
|
+
var ctx_r14 = i0__namespace.ɵɵnextContext(3);
|
|
26543
26525
|
i0__namespace.ɵɵadvance(1);
|
|
26544
|
-
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,
|
|
26526
|
+
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"]))));
|
|
26545
26527
|
}
|
|
26546
26528
|
}
|
|
26547
|
-
function
|
|
26529
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_Template(rf, ctx) {
|
|
26548
26530
|
if (rf & 1) {
|
|
26549
26531
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26550
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26532
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_Template, 5, 15, "ng-container", 0);
|
|
26551
26533
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26552
26534
|
}
|
|
26553
26535
|
if (rf & 2) {
|
|
26554
|
-
var
|
|
26555
|
-
var
|
|
26536
|
+
var page_r13 = ctx.$implicit;
|
|
26537
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(3);
|
|
26556
26538
|
i0__namespace.ɵɵadvance(1);
|
|
26557
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26539
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r12.isShown(page_r13));
|
|
26558
26540
|
}
|
|
26559
26541
|
}
|
|
26560
|
-
function
|
|
26542
|
+
function CaseEditSubmitComponent_div_0_ng_container_11_Template(rf, ctx) {
|
|
26561
26543
|
if (rf & 1) {
|
|
26562
26544
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26563
26545
|
i0__namespace.ɵɵelementStart(1, "h2", 16);
|
|
26564
26546
|
i0__namespace.ɵɵtext(2);
|
|
26565
26547
|
i0__namespace.ɵɵelementEnd();
|
|
26566
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26567
|
-
i0__namespace.ɵɵelementStart(4, "table",
|
|
26548
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_11_span_3_Template, 2, 0, "span", 17);
|
|
26549
|
+
i0__namespace.ɵɵelementStart(4, "table", 18);
|
|
26568
26550
|
i0__namespace.ɵɵelementStart(5, "tbody");
|
|
26569
|
-
i0__namespace.ɵɵtemplate(6,
|
|
26551
|
+
i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_Template, 2, 1, "ng-container", 19);
|
|
26570
26552
|
i0__namespace.ɵɵelementEnd();
|
|
26571
26553
|
i0__namespace.ɵɵelementEnd();
|
|
26572
26554
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26573
26555
|
}
|
|
26574
26556
|
if (rf & 2) {
|
|
26575
|
-
var
|
|
26557
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
26576
26558
|
i0__namespace.ɵɵadvance(2);
|
|
26577
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26559
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r7.pageTitle);
|
|
26578
26560
|
i0__namespace.ɵɵadvance(1);
|
|
26579
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
26561
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r7.caseEdit.isCaseFlagSubmission);
|
|
26580
26562
|
i0__namespace.ɵɵadvance(3);
|
|
26581
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
26563
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r7.wizard.pages);
|
|
26582
26564
|
}
|
|
26583
26565
|
}
|
|
26584
|
-
function
|
|
26566
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template(rf, ctx) {
|
|
26585
26567
|
if (rf & 1) {
|
|
26586
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
26587
|
-
i0__namespace.ɵɵelementStart(1, "th",
|
|
26568
|
+
i0__namespace.ɵɵelementStart(0, "tr", 32);
|
|
26569
|
+
i0__namespace.ɵɵelementStart(1, "th", 33);
|
|
26588
26570
|
i0__namespace.ɵɵtext(2);
|
|
26589
26571
|
i0__namespace.ɵɵelementEnd();
|
|
26590
|
-
i0__namespace.ɵɵelementStart(3, "td",
|
|
26591
|
-
i0__namespace.ɵɵelement(4, "ccd-field-read",
|
|
26572
|
+
i0__namespace.ɵɵelementStart(3, "td", 34);
|
|
26573
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 35);
|
|
26592
26574
|
i0__namespace.ɵɵelementEnd();
|
|
26593
26575
|
i0__namespace.ɵɵelementEnd();
|
|
26594
26576
|
}
|
|
26595
26577
|
if (rf & 2) {
|
|
26596
|
-
var
|
|
26597
|
-
var
|
|
26598
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26578
|
+
var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26579
|
+
var ctx_r29 = i0__namespace.ɵɵnextContext(3);
|
|
26580
|
+
i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r29.editForm.controls["data"])("contextFields", ctx_r29.contextFields);
|
|
26599
26581
|
i0__namespace.ɵɵadvance(2);
|
|
26600
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
26582
|
+
i0__namespace.ɵɵtextInterpolate(field_r28.label);
|
|
26601
26583
|
i0__namespace.ɵɵadvance(2);
|
|
26602
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26584
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r29.editForm.controls["data"])("caseField", ctx_r29.summaryCaseField(field_r28));
|
|
26603
26585
|
}
|
|
26604
26586
|
}
|
|
26605
|
-
function
|
|
26587
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template(rf, ctx) {
|
|
26606
26588
|
if (rf & 1) {
|
|
26607
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
26608
|
-
i0__namespace.ɵɵelementStart(1, "td",
|
|
26609
|
-
i0__namespace.ɵɵelement(2, "ccd-field-read",
|
|
26589
|
+
i0__namespace.ɵɵelementStart(0, "tr", 36);
|
|
26590
|
+
i0__namespace.ɵɵelementStart(1, "td", 37);
|
|
26591
|
+
i0__namespace.ɵɵelement(2, "ccd-field-read", 38);
|
|
26610
26592
|
i0__namespace.ɵɵelementEnd();
|
|
26611
26593
|
i0__namespace.ɵɵelementEnd();
|
|
26612
26594
|
}
|
|
26613
26595
|
if (rf & 2) {
|
|
26614
|
-
var
|
|
26615
|
-
var
|
|
26616
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
26596
|
+
var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
|
|
26597
|
+
var ctx_r30 = i0__namespace.ɵɵnextContext(3);
|
|
26598
|
+
i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r30.editForm.controls["data"])("contextFields", ctx_r30.contextFields);
|
|
26617
26599
|
i0__namespace.ɵɵadvance(2);
|
|
26618
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
26600
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r30.editForm.controls["data"])("caseField", ctx_r30.summaryCaseField(field_r28))("caseFields", ctx_r30.contextFields);
|
|
26619
26601
|
}
|
|
26620
26602
|
}
|
|
26621
|
-
function
|
|
26603
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template(rf, ctx) {
|
|
26622
26604
|
if (rf & 1) {
|
|
26623
26605
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26624
|
-
i0__namespace.ɵɵelementContainerStart(1,
|
|
26606
|
+
i0__namespace.ɵɵelementContainerStart(1, 29);
|
|
26625
26607
|
i0__namespace.ɵɵpipe(2, "ccdIsCompound");
|
|
26626
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26627
|
-
i0__namespace.ɵɵtemplate(4,
|
|
26608
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template, 5, 6, "tr", 30);
|
|
26609
|
+
i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template, 3, 6, "tr", 31);
|
|
26628
26610
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26629
26611
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26630
26612
|
}
|
|
26631
26613
|
if (rf & 2) {
|
|
26632
|
-
var
|
|
26614
|
+
var field_r28 = ctx.$implicit;
|
|
26633
26615
|
i0__namespace.ɵɵadvance(1);
|
|
26634
|
-
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3,
|
|
26616
|
+
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r28));
|
|
26635
26617
|
i0__namespace.ɵɵadvance(2);
|
|
26636
26618
|
i0__namespace.ɵɵproperty("ngSwitchCase", true);
|
|
26637
26619
|
i0__namespace.ɵɵadvance(1);
|
|
26638
26620
|
i0__namespace.ɵɵproperty("ngSwitchCase", false);
|
|
26639
26621
|
}
|
|
26640
26622
|
}
|
|
26641
|
-
function
|
|
26623
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_Template(rf, ctx) {
|
|
26642
26624
|
if (rf & 1) {
|
|
26643
26625
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26644
|
-
i0__namespace.ɵɵelementStart(1, "table",
|
|
26626
|
+
i0__namespace.ɵɵelementStart(1, "table", 28);
|
|
26645
26627
|
i0__namespace.ɵɵelementStart(2, "tbody");
|
|
26646
|
-
i0__namespace.ɵɵtemplate(3,
|
|
26628
|
+
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template, 5, 5, "ng-container", 19);
|
|
26647
26629
|
i0__namespace.ɵɵelementEnd();
|
|
26648
26630
|
i0__namespace.ɵɵelementEnd();
|
|
26649
26631
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26650
26632
|
}
|
|
26651
26633
|
if (rf & 2) {
|
|
26652
|
-
var
|
|
26634
|
+
var ctx_r8 = i0__namespace.ɵɵnextContext(2);
|
|
26653
26635
|
i0__namespace.ɵɵadvance(3);
|
|
26654
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
26636
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
|
|
26655
26637
|
}
|
|
26656
26638
|
}
|
|
26657
|
-
function
|
|
26639
|
+
function CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template(rf, ctx) {
|
|
26658
26640
|
if (rf & 1) {
|
|
26659
|
-
i0__namespace.ɵɵelementStart(0, "fieldset",
|
|
26660
|
-
i0__namespace.ɵɵelement(1, "legend",
|
|
26661
|
-
i0__namespace.ɵɵelementStart(2, "div",
|
|
26662
|
-
i0__namespace.ɵɵelementStart(3, "label",
|
|
26641
|
+
i0__namespace.ɵɵelementStart(0, "fieldset", 40);
|
|
26642
|
+
i0__namespace.ɵɵelement(1, "legend", 41);
|
|
26643
|
+
i0__namespace.ɵɵelementStart(2, "div", 42);
|
|
26644
|
+
i0__namespace.ɵɵelementStart(3, "label", 43);
|
|
26663
26645
|
i0__namespace.ɵɵtext(4, " Event summary (optional) ");
|
|
26664
|
-
i0__namespace.ɵɵelementStart(5, "span",
|
|
26646
|
+
i0__namespace.ɵɵelementStart(5, "span", 44);
|
|
26665
26647
|
i0__namespace.ɵɵtext(6, "A few words describing the purpose of the event.");
|
|
26666
26648
|
i0__namespace.ɵɵelementEnd();
|
|
26667
26649
|
i0__namespace.ɵɵelementEnd();
|
|
26668
|
-
i0__namespace.ɵɵelement(7, "input",
|
|
26650
|
+
i0__namespace.ɵɵelement(7, "input", 45);
|
|
26669
26651
|
i0__namespace.ɵɵelementEnd();
|
|
26670
|
-
i0__namespace.ɵɵelementStart(8, "div",
|
|
26671
|
-
i0__namespace.ɵɵelementStart(9, "label",
|
|
26652
|
+
i0__namespace.ɵɵelementStart(8, "div", 42);
|
|
26653
|
+
i0__namespace.ɵɵelementStart(9, "label", 46);
|
|
26672
26654
|
i0__namespace.ɵɵtext(10, "Event description (optional)");
|
|
26673
26655
|
i0__namespace.ɵɵelementEnd();
|
|
26674
|
-
i0__namespace.ɵɵelement(11, "textarea",
|
|
26656
|
+
i0__namespace.ɵɵelement(11, "textarea", 47);
|
|
26675
26657
|
i0__namespace.ɵɵelementEnd();
|
|
26676
26658
|
i0__namespace.ɵɵelementEnd();
|
|
26677
26659
|
}
|
|
26678
26660
|
}
|
|
26679
|
-
function
|
|
26661
|
+
function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
|
|
26680
26662
|
if (rf & 1) {
|
|
26681
26663
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
26682
|
-
i0__namespace.ɵɵtemplate(1,
|
|
26664
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template, 12, 0, "fieldset", 39);
|
|
26683
26665
|
i0__namespace.ɵɵelementContainerEnd();
|
|
26684
26666
|
}
|
|
26685
26667
|
if (rf & 2) {
|
|
26686
|
-
var
|
|
26668
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext(2);
|
|
26687
26669
|
i0__namespace.ɵɵadvance(1);
|
|
26688
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
26670
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r9.profile && !ctx_r9.isSolicitor());
|
|
26689
26671
|
}
|
|
26690
26672
|
}
|
|
26691
26673
|
function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
|
|
26692
26674
|
if (rf & 1) {
|
|
26693
|
-
var
|
|
26675
|
+
var _r35_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26694
26676
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
26695
26677
|
i0__namespace.ɵɵelementStart(1, "h1", 2);
|
|
26696
26678
|
i0__namespace.ɵɵtext(2);
|
|
@@ -26698,29 +26680,28 @@
|
|
|
26698
26680
|
i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_div_3_Template, 1, 0, "div", 3);
|
|
26699
26681
|
i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_template_4_Template, 2, 5, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
|
|
26700
26682
|
i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_template_6_Template, 1, 1, "ng-template", null, 5, i0__namespace.ɵɵtemplateRefExtractor);
|
|
26701
|
-
i0__namespace.ɵɵ
|
|
26702
|
-
i0__namespace.ɵɵ
|
|
26703
|
-
i0__namespace.ɵɵ
|
|
26704
|
-
i0__namespace.ɵɵ
|
|
26705
|
-
i0__namespace.ɵɵ
|
|
26706
|
-
i0__namespace.ɵɵ
|
|
26707
|
-
i0__namespace.ɵɵ
|
|
26708
|
-
i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template,
|
|
26709
|
-
i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template,
|
|
26710
|
-
i0__namespace.ɵɵ
|
|
26711
|
-
i0__namespace.ɵɵelementStart(15, "
|
|
26712
|
-
i0__namespace.ɵɵ
|
|
26713
|
-
i0__namespace.ɵɵ
|
|
26714
|
-
i0__namespace.ɵɵ
|
|
26715
|
-
i0__namespace.ɵɵ
|
|
26716
|
-
i0__namespace.ɵɵ
|
|
26717
|
-
i0__namespace.ɵɵ
|
|
26718
|
-
i0__namespace.ɵɵelementEnd();
|
|
26719
|
-
i0__namespace.ɵɵ
|
|
26720
|
-
i0__namespace.ɵɵelementStart(20, "
|
|
26721
|
-
i0__namespace.ɵɵ
|
|
26722
|
-
i0__namespace.ɵɵ
|
|
26723
|
-
i0__namespace.ɵɵtext(22);
|
|
26683
|
+
i0__namespace.ɵɵelement(8, "ccd-case-edit-generic-errors", 6);
|
|
26684
|
+
i0__namespace.ɵɵelementStart(9, "ccd-callback-errors", 7);
|
|
26685
|
+
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); });
|
|
26686
|
+
i0__namespace.ɵɵelementEnd();
|
|
26687
|
+
i0__namespace.ɵɵelementStart(10, "form", 8);
|
|
26688
|
+
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(); });
|
|
26689
|
+
i0__namespace.ɵɵtemplate(11, CaseEditSubmitComponent_div_0_ng_container_11_Template, 7, 3, "ng-container", 0);
|
|
26690
|
+
i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 4, 1, "ng-container", 0);
|
|
26691
|
+
i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 2, 1, "ng-container", 0);
|
|
26692
|
+
i0__namespace.ɵɵelementStart(14, "div", 9);
|
|
26693
|
+
i0__namespace.ɵɵelementStart(15, "button", 10);
|
|
26694
|
+
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(); });
|
|
26695
|
+
i0__namespace.ɵɵtext(16, "Previous");
|
|
26696
|
+
i0__namespace.ɵɵelementEnd();
|
|
26697
|
+
i0__namespace.ɵɵelementStart(17, "button", 11);
|
|
26698
|
+
i0__namespace.ɵɵtext(18);
|
|
26699
|
+
i0__namespace.ɵɵelementEnd();
|
|
26700
|
+
i0__namespace.ɵɵelementEnd();
|
|
26701
|
+
i0__namespace.ɵɵelementStart(19, "p", 12);
|
|
26702
|
+
i0__namespace.ɵɵelementStart(20, "a", 13);
|
|
26703
|
+
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(); });
|
|
26704
|
+
i0__namespace.ɵɵtext(21);
|
|
26724
26705
|
i0__namespace.ɵɵelementEnd();
|
|
26725
26706
|
i0__namespace.ɵɵelementEnd();
|
|
26726
26707
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -26735,11 +26716,9 @@
|
|
|
26735
26716
|
i0__namespace.ɵɵadvance(1);
|
|
26736
26717
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.getCaseTitle())("ngIfThen", _r3)("ngIfElse", _r5);
|
|
26737
26718
|
i0__namespace.ɵɵadvance(5);
|
|
26738
|
-
i0__namespace.ɵɵproperty("
|
|
26739
|
-
i0__namespace.ɵɵadvance(1);
|
|
26740
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.error && (ctx_r0.error.details || ctx_r0.error.message));
|
|
26719
|
+
i0__namespace.ɵɵproperty("error", ctx_r0.caseEdit.error);
|
|
26741
26720
|
i0__namespace.ɵɵadvance(1);
|
|
26742
|
-
i0__namespace.ɵɵproperty("callbackErrorsSubject", ctx_r0.callbackErrorsSubject);
|
|
26721
|
+
i0__namespace.ɵɵproperty("callbackErrorsSubject", ctx_r0.caseEdit.callbackErrorsSubject);
|
|
26743
26722
|
i0__namespace.ɵɵadvance(1);
|
|
26744
26723
|
i0__namespace.ɵɵproperty("formGroup", ctx_r0.editForm);
|
|
26745
26724
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -26749,49 +26728,39 @@
|
|
|
26749
26728
|
i0__namespace.ɵɵadvance(1);
|
|
26750
26729
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.showEventNotes());
|
|
26751
26730
|
i0__namespace.ɵɵadvance(2);
|
|
26752
|
-
i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.isSubmitting);
|
|
26731
|
+
i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.caseEdit.isSubmitting);
|
|
26753
26732
|
i0__namespace.ɵɵadvance(2);
|
|
26754
26733
|
i0__namespace.ɵɵproperty("disabled", ctx_r0.isDisabled);
|
|
26755
26734
|
i0__namespace.ɵɵadvance(1);
|
|
26756
26735
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.triggerText);
|
|
26757
26736
|
i0__namespace.ɵɵadvance(2);
|
|
26758
|
-
i0__namespace.ɵɵclassProp("disabled", ctx_r0.isSubmitting);
|
|
26737
|
+
i0__namespace.ɵɵclassProp("disabled", ctx_r0.caseEdit.isSubmitting);
|
|
26759
26738
|
i0__namespace.ɵɵadvance(1);
|
|
26760
26739
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.getCancelText());
|
|
26761
26740
|
}
|
|
26762
26741
|
}
|
|
26763
26742
|
function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
|
|
26764
26743
|
if (rf & 1) {
|
|
26765
|
-
var
|
|
26766
|
-
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion",
|
|
26767
|
-
i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
26744
|
+
var _r40_1 = i0__namespace.ɵɵgetCurrentView();
|
|
26745
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 48);
|
|
26746
|
+
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); });
|
|
26768
26747
|
i0__namespace.ɵɵelementEnd();
|
|
26769
26748
|
}
|
|
26770
26749
|
if (rf & 2) {
|
|
26771
26750
|
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
26772
|
-
i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r1.eventCompletionParams);
|
|
26751
|
+
i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r1.caseEdit.eventCompletionParams);
|
|
26773
26752
|
}
|
|
26774
26753
|
}
|
|
26775
26754
|
// @dynamic
|
|
26776
26755
|
var CaseEditSubmitComponent = /** @class */ (function () {
|
|
26777
|
-
function CaseEditSubmitComponent(caseEdit,
|
|
26756
|
+
function CaseEditSubmitComponent(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier) {
|
|
26778
26757
|
this.caseEdit = caseEdit;
|
|
26779
|
-
this.formValueService = formValueService;
|
|
26780
|
-
this.formErrorService = formErrorService;
|
|
26781
26758
|
this.fieldsUtils = fieldsUtils;
|
|
26782
26759
|
this.caseFieldService = caseFieldService;
|
|
26783
26760
|
this.route = route;
|
|
26784
|
-
this.router = router;
|
|
26785
26761
|
this.orderService = orderService;
|
|
26786
26762
|
this.profileNotifier = profileNotifier;
|
|
26787
|
-
this.sessionStorageService = sessionStorageService;
|
|
26788
|
-
this.caseNotifier = caseNotifier;
|
|
26789
|
-
this.callbackErrorsSubject = new rxjs.Subject();
|
|
26790
|
-
this.ignoreWarning = false;
|
|
26791
26763
|
this.paletteContext = exports.PaletteContext.CHECK_YOUR_ANSWER;
|
|
26792
|
-
this.eventCompletionChecksRequired = false;
|
|
26793
|
-
this.isCaseFlagSubmission = false;
|
|
26794
|
-
this.isLinkedCasesSubmission = false;
|
|
26795
26764
|
}
|
|
26796
26765
|
Object.defineProperty(CaseEditSubmitComponent.prototype, "isDisabled", {
|
|
26797
26766
|
get: function () {
|
|
@@ -26799,7 +26768,7 @@
|
|
|
26799
26768
|
// We don't need to check the validity of the editForm as it is readonly.
|
|
26800
26769
|
// This was causing issues with hidden fields that aren't wanted but have
|
|
26801
26770
|
// not been disabled.
|
|
26802
|
-
return this.isSubmitting || this.hasErrors;
|
|
26771
|
+
return this.caseEdit.isSubmitting || this.hasErrors;
|
|
26803
26772
|
},
|
|
26804
26773
|
enumerable: false,
|
|
26805
26774
|
configurable: true
|
|
@@ -26812,216 +26781,42 @@
|
|
|
26812
26781
|
this.editForm = this.caseEdit.form;
|
|
26813
26782
|
this.wizard = this.caseEdit.wizard;
|
|
26814
26783
|
this.showSummaryFields = this.sortFieldsByShowSummaryContent(this.eventTrigger.case_fields);
|
|
26815
|
-
this.isSubmitting = false;
|
|
26784
|
+
this.caseEdit.isSubmitting = false;
|
|
26816
26785
|
this.contextFields = this.getCaseFields();
|
|
26817
26786
|
// Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
|
|
26818
26787
|
// a FlagLauncher field in the event trigger
|
|
26819
|
-
this.isCaseFlagSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); });
|
|
26820
|
-
this.
|
|
26821
|
-
|
|
26788
|
+
this.caseEdit.isCaseFlagSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); });
|
|
26789
|
+
this.caseEdit.isLinkedCasesSubmission =
|
|
26790
|
+
this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isComponentLauncherCaseField(caseField); });
|
|
26791
|
+
this.pageTitle = this.caseEdit.isCaseFlagSubmission ? 'Review flag details' : 'Check your answers';
|
|
26822
26792
|
};
|
|
26823
26793
|
CaseEditSubmitComponent.prototype.ngOnDestroy = function () {
|
|
26794
|
+
/* istanbul ignore else */
|
|
26824
26795
|
if (this.profileSubscription) {
|
|
26825
26796
|
this.profileSubscription.unsubscribe();
|
|
26826
26797
|
}
|
|
26827
26798
|
};
|
|
26828
26799
|
CaseEditSubmitComponent.prototype.submit = function () {
|
|
26829
|
-
this.
|
|
26830
|
-
|
|
26831
|
-
|
|
26832
|
-
|
|
26833
|
-
|
|
26834
|
-
if (taskStr) {
|
|
26835
|
-
taskInSessionStorage = JSON.parse(taskStr);
|
|
26836
|
-
}
|
|
26837
|
-
if (taskInSessionStorage && taskInSessionStorage.case_id === this.getCaseId()) {
|
|
26838
|
-
// Show event completion component to perform event completion checks
|
|
26839
|
-
this.eventCompletionParams = {
|
|
26840
|
-
caseId: this.getCaseId(),
|
|
26841
|
-
eventId: this.getEventId(),
|
|
26842
|
-
task: taskInSessionStorage
|
|
26843
|
-
};
|
|
26844
|
-
this.eventCompletionChecksRequired = true;
|
|
26845
|
-
}
|
|
26846
|
-
else {
|
|
26847
|
-
// Task not in session storage, proceed to submit
|
|
26848
|
-
var caseEventData = this.generateCaseEventData();
|
|
26849
|
-
this.caseSubmit(caseEventData);
|
|
26850
|
-
}
|
|
26851
|
-
};
|
|
26852
|
-
CaseEditSubmitComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
|
|
26853
|
-
if (eventCanBeCompleted) {
|
|
26854
|
-
// Submit
|
|
26855
|
-
var caseEventData = this.generateCaseEventData();
|
|
26856
|
-
this.caseSubmit(caseEventData);
|
|
26857
|
-
}
|
|
26858
|
-
else {
|
|
26859
|
-
// Navigate to tasks tab on case details page
|
|
26860
|
-
this.router.navigate(["/cases/case-details/" + this.getCaseId() + "/tasks"], { relativeTo: this.route });
|
|
26861
|
-
}
|
|
26862
|
-
};
|
|
26863
|
-
CaseEditSubmitComponent.prototype.generateCaseEventData = function () {
|
|
26864
|
-
var caseEventData = {
|
|
26865
|
-
data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(this.replaceHiddenFormValuesWithOriginalCaseData(this.editForm.get('data'), this.eventTrigger.case_fields))),
|
|
26866
|
-
event: this.editForm.value.event
|
|
26867
|
-
};
|
|
26868
|
-
this.formValueService.clearNonCaseFields(caseEventData.data, this.eventTrigger.case_fields);
|
|
26869
|
-
this.formValueService.removeNullLabels(caseEventData.data, this.eventTrigger.case_fields);
|
|
26870
|
-
this.formValueService.removeEmptyDocuments(caseEventData.data, this.eventTrigger.case_fields);
|
|
26871
|
-
// Remove collection fields that have "min" validation of greater than zero set on the FieldType but are empty;
|
|
26872
|
-
// these will fail validation
|
|
26873
|
-
this.formValueService.removeEmptyCollectionsWithMinValidation(caseEventData.data, this.eventTrigger.case_fields);
|
|
26874
|
-
// If this is a Case Flag submission (and thus a FlagLauncher field is present in the event trigger), the flag
|
|
26875
|
-
// details data needs populating for each Flags field, then the FlagLauncher field needs removing
|
|
26876
|
-
if (this.isCaseFlagSubmission) {
|
|
26877
|
-
this.formValueService.populateFlagDetailsFromCaseFields(caseEventData.data, this.eventTrigger.case_fields);
|
|
26878
|
-
this.formValueService.removeFlagLauncherField(caseEventData.data, this.eventTrigger.case_fields);
|
|
26879
|
-
}
|
|
26880
|
-
if (this.isLinkedCasesSubmission) {
|
|
26881
|
-
this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, this.eventTrigger.case_fields);
|
|
26882
|
-
this.formValueService.removeComponentLauncherField(caseEventData.data, this.eventTrigger.case_fields);
|
|
26883
|
-
}
|
|
26884
|
-
caseEventData.event_token = this.eventTrigger.event_token;
|
|
26885
|
-
caseEventData.ignore_warning = this.ignoreWarning;
|
|
26886
|
-
if (this.caseEdit.confirmation) {
|
|
26887
|
-
caseEventData.data = {};
|
|
26888
|
-
}
|
|
26889
|
-
return caseEventData;
|
|
26890
|
-
};
|
|
26891
|
-
CaseEditSubmitComponent.prototype.caseSubmit = function (caseEventData) {
|
|
26892
|
-
var _this = this;
|
|
26893
|
-
this.caseEdit.submit(caseEventData)
|
|
26894
|
-
.subscribe(function (response) {
|
|
26895
|
-
_this.caseNotifier.cachedCaseView = null;
|
|
26896
|
-
_this.sessionStorageService.removeItem('eventUrl');
|
|
26897
|
-
var confirmation = _this.buildConfirmation(response);
|
|
26898
|
-
if (confirmation && (confirmation.getHeader() || confirmation.getBody())) {
|
|
26899
|
-
_this.caseEdit.confirm(confirmation);
|
|
26900
|
-
}
|
|
26901
|
-
else {
|
|
26902
|
-
_this.caseEdit.submitted.emit({ caseId: response['id'], status: _this.getStatus(response) });
|
|
26903
|
-
}
|
|
26904
|
-
}, function (error) {
|
|
26905
|
-
_this.error = error;
|
|
26906
|
-
_this.callbackErrorsSubject.next(_this.error);
|
|
26907
|
-
if (_this.error.details) {
|
|
26908
|
-
_this.formErrorService
|
|
26909
|
-
.mapFieldErrors(_this.error.details.field_errors, _this.editForm.controls['data'], 'validation');
|
|
26910
|
-
}
|
|
26911
|
-
_this.isSubmitting = false;
|
|
26800
|
+
this.caseEdit.submitForm({
|
|
26801
|
+
eventTrigger: this.eventTrigger,
|
|
26802
|
+
form: this.editForm,
|
|
26803
|
+
submit: this.caseEdit.submit,
|
|
26804
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
26912
26805
|
});
|
|
26913
26806
|
};
|
|
26914
|
-
|
|
26915
|
-
|
|
26916
|
-
|
|
26917
|
-
|
|
26918
|
-
|
|
26919
|
-
|
|
26920
|
-
|
|
26921
|
-
*
|
|
26922
|
-
* * For Complex field types, the replacement above is performed recursively for all hidden sub-fields with
|
|
26923
|
-
* `retain_hidden_value` = `true`.
|
|
26924
|
-
*
|
|
26925
|
-
* * For Collection field types, including collections of Complex and Document field types, the replacement is
|
|
26926
|
-
* performed for all fields in the collection.
|
|
26927
|
-
*
|
|
26928
|
-
* @param formGroup The `FormGroup` instance whose raw values are to be traversed
|
|
26929
|
-
* @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `formGroup`
|
|
26930
|
-
* @param parentField Reference to the parent `CaseField`. Used for retrieving the sub-field values of a Complex field
|
|
26931
|
-
* to perform recursive replacement - the sub-field `CaseField`s themselves do *not* contain any values
|
|
26932
|
-
* @returns An object with the *raw* form value data (as key-value pairs), with any value replacements as necessary
|
|
26933
|
-
*/
|
|
26934
|
-
CaseEditSubmitComponent.prototype.replaceHiddenFormValuesWithOriginalCaseData = function (formGroup, caseFields, parentField) {
|
|
26935
|
-
var _this = this;
|
|
26936
|
-
// Get the raw form value data, which includes the values of any disabled controls, as key-value pairs
|
|
26937
|
-
var rawFormValueData = formGroup.getRawValue();
|
|
26938
|
-
// Place all case fields in a lookup object, so they can be retrieved by id
|
|
26939
|
-
var caseFieldsLookup = {};
|
|
26940
|
-
for (var i = 0, len = caseFields.length; i < len; i++) {
|
|
26941
|
-
caseFieldsLookup[caseFields[i].id] = caseFields[i];
|
|
26942
|
-
}
|
|
26943
|
-
/**
|
|
26944
|
-
* Replace any form value with the original, where its CaseField is hidden AND has the retain_hidden_value flag set
|
|
26945
|
-
* to true.
|
|
26946
|
-
*
|
|
26947
|
-
* If the CaseField's `hidden` attribute is null or undefined, then check this attribute in the parent CaseField (if
|
|
26948
|
-
* one exists). This is occurring (and is possibly a bug) when a CaseField is a sub-field of a Complex type, or an
|
|
26949
|
-
* item in a Collection type.
|
|
26950
|
-
*
|
|
26951
|
-
* If the field is a Complex type with retain_hidden_value = true, perform a recursive replacement for all (hidden)
|
|
26952
|
-
* sub-fields with retain_hidden_value = true, using their original CaseField values (from the `formatted_value`
|
|
26953
|
-
* attribute).
|
|
26954
|
-
*
|
|
26955
|
-
* If the field is a Collection type with retain_hidden_value = true, the entire collection is replaced with the
|
|
26956
|
-
* original from `formatted_value`. This applies to *all* types of Collections.
|
|
26957
|
-
*/
|
|
26958
|
-
Object.keys(rawFormValueData).forEach(function (key) {
|
|
26959
|
-
var caseField = caseFieldsLookup[key];
|
|
26960
|
-
// If caseField.hidden is NOT truthy and also NOT equal to false, then it must be null/undefined (remember that
|
|
26961
|
-
// both null and undefined are equal to *neither false nor true*)
|
|
26962
|
-
if (caseField && caseField.retain_hidden_value &&
|
|
26963
|
-
(caseField.hidden || (caseField.hidden !== false && parentField && parentField.hidden))) {
|
|
26964
|
-
if (caseField.field_type.type === 'Complex') {
|
|
26965
|
-
// Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
|
|
26966
|
-
// handle both null and undefined values
|
|
26967
|
-
if (caseField.value !== null) {
|
|
26968
|
-
// Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
|
|
26969
|
-
// CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
|
|
26970
|
-
// parent)
|
|
26971
|
-
// Update rawFormValueData for this field
|
|
26972
|
-
// creating form group and adding control into it in case caseField is of complext type and and part of formGroup
|
|
26973
|
-
var form_1 = new i2.FormGroup({});
|
|
26974
|
-
if (formGroup.controls[key].value) {
|
|
26975
|
-
Object.keys(formGroup.controls[key].value).forEach(function (item) {
|
|
26976
|
-
form_1.addControl(item, new i2.FormControl(formGroup.controls[key].value[item]));
|
|
26977
|
-
});
|
|
26978
|
-
}
|
|
26979
|
-
rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
|
|
26980
|
-
}
|
|
26981
|
-
}
|
|
26982
|
-
else {
|
|
26983
|
-
// Default case also handles collections of *all* types; the entire collection in rawFormValueData will be
|
|
26984
|
-
// replaced with the original from formatted_value
|
|
26985
|
-
// Use the CaseField's existing *formatted_value* from the parent, if available. (This is necessary for
|
|
26986
|
-
// Complex fields, whose sub-fields do not hold any values in the model.) Otherwise, use formatted_value
|
|
26987
|
-
// from the CaseField itself.
|
|
26988
|
-
if (parentField && parentField.formatted_value) {
|
|
26989
|
-
rawFormValueData[key] = parentField.formatted_value[caseField.id];
|
|
26990
|
-
}
|
|
26991
|
-
else {
|
|
26992
|
-
rawFormValueData[key] = caseField.formatted_value;
|
|
26993
|
-
}
|
|
26994
|
-
}
|
|
26995
|
-
}
|
|
26996
|
-
});
|
|
26997
|
-
return rawFormValueData;
|
|
26998
|
-
};
|
|
26999
|
-
/**
|
|
27000
|
-
* Replaces non-array value objects with `null` for any Complex-type fields whose value is effectively empty, i.e.
|
|
27001
|
-
* all its sub-fields and descendants are `null` or `undefined`.
|
|
27002
|
-
*
|
|
27003
|
-
* @param data The object tree representing all the form field data
|
|
27004
|
-
* @returns The form field data modified accordingly
|
|
27005
|
-
*/
|
|
27006
|
-
CaseEditSubmitComponent.prototype.replaceEmptyComplexFieldValues = function (data) {
|
|
27007
|
-
Object.keys(data).forEach(function (key) {
|
|
27008
|
-
if (!Array.isArray(data[key]) && typeof data[key] === 'object' && !FieldsUtils.containsNonEmptyValues(data[key])) {
|
|
27009
|
-
data[key] = null;
|
|
27010
|
-
}
|
|
26807
|
+
CaseEditSubmitComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
|
|
26808
|
+
this.caseEdit.onEventCanBeCompleted({
|
|
26809
|
+
eventTrigger: this.eventTrigger,
|
|
26810
|
+
eventCanBeCompleted: eventCanBeCompleted,
|
|
26811
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
26812
|
+
form: this.editForm,
|
|
26813
|
+
submit: this.caseEdit.submit,
|
|
27011
26814
|
});
|
|
27012
|
-
return data;
|
|
27013
|
-
};
|
|
27014
|
-
CaseEditSubmitComponent.prototype.getStatus = function (response) {
|
|
27015
|
-
return this.hasCallbackFailed(response) ? response['callback_response_status'] : response['delete_draft_response_status'];
|
|
27016
|
-
};
|
|
27017
|
-
CaseEditSubmitComponent.prototype.hasCallbackFailed = function (response) {
|
|
27018
|
-
return response['callback_response_status'] !== 'CALLBACK_COMPLETED';
|
|
27019
26815
|
};
|
|
27020
26816
|
Object.defineProperty(CaseEditSubmitComponent.prototype, "hasErrors", {
|
|
27021
26817
|
get: function () {
|
|
27022
|
-
|
|
27023
|
-
|
|
27024
|
-
&& this.error.callbackErrors.length;
|
|
26818
|
+
var _a, _b, _c;
|
|
26819
|
+
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;
|
|
27025
26820
|
},
|
|
27026
26821
|
enumerable: false,
|
|
27027
26822
|
configurable: true
|
|
@@ -27030,10 +26825,11 @@
|
|
|
27030
26825
|
this.caseEdit.navigateToPage(pageId);
|
|
27031
26826
|
};
|
|
27032
26827
|
CaseEditSubmitComponent.prototype.callbackErrorsNotify = function (errorContext) {
|
|
27033
|
-
this.ignoreWarning = errorContext.ignoreWarning;
|
|
26828
|
+
this.caseEdit.ignoreWarning = errorContext.ignoreWarning;
|
|
27034
26829
|
this.triggerText = errorContext.triggerText;
|
|
27035
26830
|
};
|
|
27036
26831
|
CaseEditSubmitComponent.prototype.summaryCaseField = function (field) {
|
|
26832
|
+
/* istanbul ignore else */
|
|
27037
26833
|
if (null === this.editForm.get('data').get(field.id)) {
|
|
27038
26834
|
// If not in form, return field itself
|
|
27039
26835
|
return field;
|
|
@@ -27062,17 +26858,20 @@
|
|
|
27062
26858
|
return !this.caseFieldService.isReadOnly(field);
|
|
27063
26859
|
};
|
|
27064
26860
|
CaseEditSubmitComponent.prototype.checkYourAnswerFieldsToDisplayExists = function () {
|
|
27065
|
-
var e_1,
|
|
26861
|
+
var e_1, _d, e_2, _e;
|
|
26862
|
+
/* istanbul ignore else */
|
|
27066
26863
|
if (!this.eventTrigger.show_summary) {
|
|
27067
26864
|
return false;
|
|
27068
26865
|
}
|
|
27069
26866
|
try {
|
|
27070
|
-
for (var
|
|
27071
|
-
var page =
|
|
26867
|
+
for (var _f = __values(this.wizard.pages), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
26868
|
+
var page = _g.value;
|
|
26869
|
+
/* istanbul ignore else */
|
|
27072
26870
|
if (this.isShown(page)) {
|
|
27073
26871
|
try {
|
|
27074
|
-
for (var
|
|
27075
|
-
var field =
|
|
26872
|
+
for (var _h = (e_2 = void 0, __values(page.case_fields)), _j = _h.next(); !_j.done; _j = _h.next()) {
|
|
26873
|
+
var field = _j.value;
|
|
26874
|
+
/* istanbul ignore else */
|
|
27076
26875
|
if (this.canShowFieldInCYA(field)) {
|
|
27077
26876
|
// at least one field needs showing
|
|
27078
26877
|
return true;
|
|
@@ -27082,7 +26881,7 @@
|
|
|
27082
26881
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
27083
26882
|
finally {
|
|
27084
26883
|
try {
|
|
27085
|
-
if (
|
|
26884
|
+
if (_j && !_j.done && (_e = _h.return)) _e.call(_h);
|
|
27086
26885
|
}
|
|
27087
26886
|
finally { if (e_2) throw e_2.error; }
|
|
27088
26887
|
}
|
|
@@ -27092,7 +26891,7 @@
|
|
|
27092
26891
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
27093
26892
|
finally {
|
|
27094
26893
|
try {
|
|
27095
|
-
if (
|
|
26894
|
+
if (_g && !_g.done && (_d = _f.return)) _d.call(_f);
|
|
27096
26895
|
}
|
|
27097
26896
|
finally { if (e_1) throw e_1.error; }
|
|
27098
26897
|
}
|
|
@@ -27103,7 +26902,7 @@
|
|
|
27103
26902
|
return this.eventTrigger.case_fields.some(function (field) { return field.show_summary_content_option >= 0; });
|
|
27104
26903
|
};
|
|
27105
26904
|
CaseEditSubmitComponent.prototype.showEventNotes = function () {
|
|
27106
|
-
return this.eventTrigger.show_event_notes
|
|
26905
|
+
return this.eventTrigger.show_event_notes === true;
|
|
27107
26906
|
};
|
|
27108
26907
|
CaseEditSubmitComponent.prototype.getLastPageShown = function () {
|
|
27109
26908
|
var _this = this;
|
|
@@ -27117,6 +26916,7 @@
|
|
|
27117
26916
|
return lastPage;
|
|
27118
26917
|
};
|
|
27119
26918
|
CaseEditSubmitComponent.prototype.previous = function () {
|
|
26919
|
+
/* istanbul ignore else */
|
|
27120
26920
|
if (this.hasPrevious()) {
|
|
27121
26921
|
this.navigateToPage(this.getLastPageShown().id);
|
|
27122
26922
|
}
|
|
@@ -27135,14 +26935,6 @@
|
|
|
27135
26935
|
CaseEditSubmitComponent.prototype.isSolicitor = function () {
|
|
27136
26936
|
return this.profile.isSolicitor();
|
|
27137
26937
|
};
|
|
27138
|
-
CaseEditSubmitComponent.prototype.buildConfirmation = function (response) {
|
|
27139
|
-
if (response['after_submit_callback_response']) {
|
|
27140
|
-
return new Confirmation(response['id'], response['callback_response_status'], response['after_submit_callback_response']['confirmation_header'], response['after_submit_callback_response']['confirmation_body']);
|
|
27141
|
-
}
|
|
27142
|
-
else {
|
|
27143
|
-
return null;
|
|
27144
|
-
}
|
|
27145
|
-
};
|
|
27146
26938
|
CaseEditSubmitComponent.prototype.sortFieldsByShowSummaryContent = function (fields) {
|
|
27147
26939
|
return this.orderService
|
|
27148
26940
|
.sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
|
|
@@ -27155,10 +26947,7 @@
|
|
|
27155
26947
|
return this.eventTrigger.case_fields;
|
|
27156
26948
|
};
|
|
27157
26949
|
CaseEditSubmitComponent.prototype.getCaseId = function () {
|
|
27158
|
-
return
|
|
27159
|
-
};
|
|
27160
|
-
CaseEditSubmitComponent.prototype.getEventId = function () {
|
|
27161
|
-
return this.editForm.value.event.id;
|
|
26950
|
+
return this.caseEdit.getCaseId(this.caseEdit.caseDetails);
|
|
27162
26951
|
};
|
|
27163
26952
|
CaseEditSubmitComponent.prototype.getCaseTitle = function () {
|
|
27164
26953
|
return (this.caseEdit.caseDetails && this.caseEdit.caseDetails.state &&
|
|
@@ -27185,16 +26974,16 @@
|
|
|
27185
26974
|
}
|
|
27186
26975
|
return a.show_summary_content_option - b.show_summary_content_option;
|
|
27187
26976
|
};
|
|
27188
|
-
CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(
|
|
27189
|
-
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", ""], [
|
|
26977
|
+
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)); };
|
|
26978
|
+
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) {
|
|
27190
26979
|
if (rf & 1) {
|
|
27191
|
-
i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template,
|
|
26980
|
+
i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 22, 16, "div", 0);
|
|
27192
26981
|
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
|
|
27193
26982
|
}
|
|
27194
26983
|
if (rf & 2) {
|
|
27195
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.
|
|
26984
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.caseEdit.isEventCompletionChecksRequired);
|
|
27196
26985
|
i0__namespace.ɵɵadvance(1);
|
|
27197
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.
|
|
26986
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
|
|
27198
26987
|
}
|
|
27199
26988
|
}, 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%}"] });
|
|
27200
26989
|
(function () {
|
|
@@ -27205,7 +26994,7 @@
|
|
|
27205
26994
|
templateUrl: 'case-edit-submit.html',
|
|
27206
26995
|
styleUrls: ['../case-edit.scss']
|
|
27207
26996
|
}]
|
|
27208
|
-
}], function () { return [{ type: CaseEditComponent }, { type:
|
|
26997
|
+
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1__namespace$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null);
|
|
27209
26998
|
})();
|
|
27210
26999
|
|
|
27211
27000
|
function CaseProgressComponent_div_0_Template(rf, ctx) {
|
|
@@ -27392,6 +27181,101 @@
|
|
|
27392
27181
|
}], null, null);
|
|
27393
27182
|
})();
|
|
27394
27183
|
|
|
27184
|
+
function CaseEditGenericErrorsComponent_div_0_Template(rf, ctx) {
|
|
27185
|
+
if (rf & 1) {
|
|
27186
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
27187
|
+
i0__namespace.ɵɵelementStart(1, "h1", 2);
|
|
27188
|
+
i0__namespace.ɵɵtext(2, " Something went wrong ");
|
|
27189
|
+
i0__namespace.ɵɵelementEnd();
|
|
27190
|
+
i0__namespace.ɵɵelementStart(3, "div", 3);
|
|
27191
|
+
i0__namespace.ɵɵelementStart(4, "p");
|
|
27192
|
+
i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
|
|
27193
|
+
i0__namespace.ɵɵelementEnd();
|
|
27194
|
+
i0__namespace.ɵɵelementStart(6, "p");
|
|
27195
|
+
i0__namespace.ɵɵelementStart(7, "a", 4);
|
|
27196
|
+
i0__namespace.ɵɵtext(8, "Contact us");
|
|
27197
|
+
i0__namespace.ɵɵelementEnd();
|
|
27198
|
+
i0__namespace.ɵɵtext(9, " if you're still having problems.");
|
|
27199
|
+
i0__namespace.ɵɵelementEnd();
|
|
27200
|
+
i0__namespace.ɵɵelementEnd();
|
|
27201
|
+
i0__namespace.ɵɵelementEnd();
|
|
27202
|
+
}
|
|
27203
|
+
}
|
|
27204
|
+
function CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template(rf, ctx) {
|
|
27205
|
+
if (rf & 1) {
|
|
27206
|
+
i0__namespace.ɵɵelementStart(0, "li", 9);
|
|
27207
|
+
i0__namespace.ɵɵtext(1);
|
|
27208
|
+
i0__namespace.ɵɵelementEnd();
|
|
27209
|
+
}
|
|
27210
|
+
if (rf & 2) {
|
|
27211
|
+
var fieldError_r4 = ctx.$implicit;
|
|
27212
|
+
i0__namespace.ɵɵadvance(1);
|
|
27213
|
+
i0__namespace.ɵɵtextInterpolate(fieldError_r4.message);
|
|
27214
|
+
}
|
|
27215
|
+
}
|
|
27216
|
+
function CaseEditGenericErrorsComponent_div_1_ul_5_Template(rf, ctx) {
|
|
27217
|
+
if (rf & 1) {
|
|
27218
|
+
i0__namespace.ɵɵelementStart(0, "ul", 7);
|
|
27219
|
+
i0__namespace.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template, 2, 1, "li", 8);
|
|
27220
|
+
i0__namespace.ɵɵelementEnd();
|
|
27221
|
+
}
|
|
27222
|
+
if (rf & 2) {
|
|
27223
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
27224
|
+
i0__namespace.ɵɵadvance(1);
|
|
27225
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r2.error.details.field_errors);
|
|
27226
|
+
}
|
|
27227
|
+
}
|
|
27228
|
+
function CaseEditGenericErrorsComponent_div_1_Template(rf, ctx) {
|
|
27229
|
+
if (rf & 1) {
|
|
27230
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
27231
|
+
i0__namespace.ɵɵelementStart(1, "h3", 5);
|
|
27232
|
+
i0__namespace.ɵɵtext(2, " The event could not be created ");
|
|
27233
|
+
i0__namespace.ɵɵelementEnd();
|
|
27234
|
+
i0__namespace.ɵɵelementStart(3, "p");
|
|
27235
|
+
i0__namespace.ɵɵtext(4);
|
|
27236
|
+
i0__namespace.ɵɵelementEnd();
|
|
27237
|
+
i0__namespace.ɵɵtemplate(5, CaseEditGenericErrorsComponent_div_1_ul_5_Template, 2, 1, "ul", 6);
|
|
27238
|
+
i0__namespace.ɵɵelementEnd();
|
|
27239
|
+
}
|
|
27240
|
+
if (rf & 2) {
|
|
27241
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
27242
|
+
i0__namespace.ɵɵadvance(4);
|
|
27243
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r1.error.message);
|
|
27244
|
+
i0__namespace.ɵɵadvance(1);
|
|
27245
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.error.details == null ? null : ctx_r1.error.details.field_errors);
|
|
27246
|
+
}
|
|
27247
|
+
}
|
|
27248
|
+
var CaseEditGenericErrorsComponent = /** @class */ (function () {
|
|
27249
|
+
function CaseEditGenericErrorsComponent() {
|
|
27250
|
+
}
|
|
27251
|
+
return CaseEditGenericErrorsComponent;
|
|
27252
|
+
}());
|
|
27253
|
+
CaseEditGenericErrorsComponent.ɵfac = function CaseEditGenericErrorsComponent_Factory(t) { return new (t || CaseEditGenericErrorsComponent)(); };
|
|
27254
|
+
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) {
|
|
27255
|
+
if (rf & 1) {
|
|
27256
|
+
i0__namespace.ɵɵtemplate(0, CaseEditGenericErrorsComponent_div_0_Template, 10, 0, "div", 0);
|
|
27257
|
+
i0__namespace.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_Template, 6, 2, "div", 0);
|
|
27258
|
+
}
|
|
27259
|
+
if (rf & 2) {
|
|
27260
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.error && (!(ctx.error.callbackErrors || ctx.error.callbackWarnings || ctx.error.details) && !ctx.error.message));
|
|
27261
|
+
i0__namespace.ɵɵadvance(1);
|
|
27262
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.error && (ctx.error.details || ctx.error.message));
|
|
27263
|
+
}
|
|
27264
|
+
}, 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%}"] });
|
|
27265
|
+
(function () {
|
|
27266
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEditGenericErrorsComponent, [{
|
|
27267
|
+
type: i0.Component,
|
|
27268
|
+
args: [{
|
|
27269
|
+
selector: 'ccd-case-edit-generic-errors',
|
|
27270
|
+
templateUrl: 'case-edit-generic-errors.component.html',
|
|
27271
|
+
styleUrls: ['../case-edit.scss'],
|
|
27272
|
+
providers: []
|
|
27273
|
+
}]
|
|
27274
|
+
}], null, { error: [{
|
|
27275
|
+
type: i0.Input
|
|
27276
|
+
}] });
|
|
27277
|
+
})();
|
|
27278
|
+
|
|
27395
27279
|
var _c0$e = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
|
|
27396
27280
|
var CaseEventCompletionTaskCancelledComponent = /** @class */ (function () {
|
|
27397
27281
|
function CaseEventCompletionTaskCancelledComponent(parentComponent) {
|
|
@@ -27666,10 +27550,10 @@
|
|
|
27666
27550
|
// tslint:disable-next-line:switch-default
|
|
27667
27551
|
switch (portalType) {
|
|
27668
27552
|
case EventCompletionPortalTypes.TaskCancelled:
|
|
27669
|
-
this.selectedComponentPortal = new i6$
|
|
27553
|
+
this.selectedComponentPortal = new i6$1.ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
|
|
27670
27554
|
break;
|
|
27671
27555
|
case EventCompletionPortalTypes.TaskReassigned:
|
|
27672
|
-
this.selectedComponentPortal = new i6$
|
|
27556
|
+
this.selectedComponentPortal = new i6$1.ComponentPortal(CaseEventCompletionTaskReassignedComponent, null, injector);
|
|
27673
27557
|
break;
|
|
27674
27558
|
}
|
|
27675
27559
|
};
|
|
@@ -27683,7 +27567,7 @@
|
|
|
27683
27567
|
if (rf & 2) {
|
|
27684
27568
|
i0__namespace.ɵɵproperty("cdkPortalOutlet", ctx.selectedComponentPortal);
|
|
27685
27569
|
}
|
|
27686
|
-
}, directives: [i6__namespace$
|
|
27570
|
+
}, directives: [i6__namespace$1.CdkPortalOutlet], encapsulation: 2 });
|
|
27687
27571
|
(function () {
|
|
27688
27572
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEventCompletionComponent, [{
|
|
27689
27573
|
type: i0.Component,
|
|
@@ -27743,7 +27627,7 @@
|
|
|
27743
27627
|
LabelSubstitutorModule,
|
|
27744
27628
|
ConditionalShowModule,
|
|
27745
27629
|
ErrorsModule,
|
|
27746
|
-
i6$
|
|
27630
|
+
i6$1.PortalModule,
|
|
27747
27631
|
LoadingSpinnerModule,
|
|
27748
27632
|
BannersModule
|
|
27749
27633
|
]] });
|
|
@@ -27757,7 +27641,8 @@
|
|
|
27757
27641
|
CaseEventCompletionTaskCancelledComponent,
|
|
27758
27642
|
CaseEventCompletionTaskReassignedComponent,
|
|
27759
27643
|
CaseCreateComponent,
|
|
27760
|
-
CaseProgressComponent
|
|
27644
|
+
CaseProgressComponent,
|
|
27645
|
+
CaseEditGenericErrorsComponent], imports: [i1.CommonModule,
|
|
27761
27646
|
i1$1.RouterModule,
|
|
27762
27647
|
i2.FormsModule,
|
|
27763
27648
|
i2.ReactiveFormsModule,
|
|
@@ -27766,7 +27651,7 @@
|
|
|
27766
27651
|
LabelSubstitutorModule,
|
|
27767
27652
|
ConditionalShowModule,
|
|
27768
27653
|
ErrorsModule,
|
|
27769
|
-
i6$
|
|
27654
|
+
i6$1.PortalModule,
|
|
27770
27655
|
LoadingSpinnerModule,
|
|
27771
27656
|
BannersModule], exports: [CaseEditConfirmComponent,
|
|
27772
27657
|
CaseEditComponent,
|
|
@@ -27791,7 +27676,7 @@
|
|
|
27791
27676
|
LabelSubstitutorModule,
|
|
27792
27677
|
ConditionalShowModule,
|
|
27793
27678
|
ErrorsModule,
|
|
27794
|
-
i6$
|
|
27679
|
+
i6$1.PortalModule,
|
|
27795
27680
|
LoadingSpinnerModule,
|
|
27796
27681
|
BannersModule
|
|
27797
27682
|
],
|
|
@@ -27805,7 +27690,8 @@
|
|
|
27805
27690
|
CaseEventCompletionTaskCancelledComponent,
|
|
27806
27691
|
CaseEventCompletionTaskReassignedComponent,
|
|
27807
27692
|
CaseCreateComponent,
|
|
27808
|
-
CaseProgressComponent
|
|
27693
|
+
CaseProgressComponent,
|
|
27694
|
+
CaseEditGenericErrorsComponent
|
|
27809
27695
|
],
|
|
27810
27696
|
exports: [
|
|
27811
27697
|
CaseEditConfirmComponent,
|
|
@@ -27850,9 +27736,10 @@
|
|
|
27850
27736
|
}], null, null);
|
|
27851
27737
|
})();
|
|
27852
27738
|
i0__namespace.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1__namespace.NgIf, MarkdownComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [CcdCaseTitlePipe, CaseReferencePipe]);
|
|
27853
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf,
|
|
27739
|
+
i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf, MarkdownComponent, i1__namespace.NgForOf, CaseEditGenericErrorsComponent, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, CaseEditFormComponent,
|
|
27740
|
+
CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1__namespace.AsyncPipe]);
|
|
27854
27741
|
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]);
|
|
27855
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent,
|
|
27742
|
+
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]);
|
|
27856
27743
|
i0__namespace.ɵɵsetComponentScope(CaseCreateComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
27857
27744
|
i0__namespace.ɵɵsetComponentScope(CaseProgressComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
27858
27745
|
|
|
@@ -30251,9 +30138,7 @@
|
|
|
30251
30138
|
};
|
|
30252
30139
|
CaseEventTriggerComponent.prototype.cancel = function () {
|
|
30253
30140
|
if (this.router.url && this.router.url.includes('linkCases')) {
|
|
30254
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]
|
|
30255
|
-
window.location.hash = 'Linked cases';
|
|
30256
|
-
});
|
|
30141
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: 'Linked cases' });
|
|
30257
30142
|
}
|
|
30258
30143
|
else {
|
|
30259
30144
|
return this.router.navigate([this.parentUrl]);
|
|
@@ -30503,27 +30388,15 @@
|
|
|
30503
30388
|
}
|
|
30504
30389
|
}
|
|
30505
30390
|
var CaseBasicAccessViewComponent = /** @class */ (function () {
|
|
30506
|
-
function CaseBasicAccessViewComponent(casesService, router
|
|
30391
|
+
function CaseBasicAccessViewComponent(casesService, router) {
|
|
30507
30392
|
this.casesService = casesService;
|
|
30508
30393
|
this.router = router;
|
|
30509
|
-
this.titleService = titleService;
|
|
30510
|
-
this.caseReferencePipe = caseReferencePipe;
|
|
30511
30394
|
this.caseDetails = null;
|
|
30512
30395
|
this.accessType = null;
|
|
30513
30396
|
this.courtOrHearingCentre = null;
|
|
30514
30397
|
}
|
|
30515
30398
|
CaseBasicAccessViewComponent.prototype.ngOnInit = function () {
|
|
30516
30399
|
var _this = this;
|
|
30517
|
-
var _a;
|
|
30518
|
-
var caseName = (_a = this.caseDetails.basicFields) === null || _a === void 0 ? void 0 : _a.caseNameHmctsInternal;
|
|
30519
|
-
var caseDetails;
|
|
30520
|
-
if (caseName) {
|
|
30521
|
-
caseDetails = caseName + " (" + this.caseReferencePipe.transform(this.caseDetails.case_id) + ")";
|
|
30522
|
-
}
|
|
30523
|
-
else {
|
|
30524
|
-
caseDetails = this.caseReferencePipe.transform(this.caseDetails.case_id);
|
|
30525
|
-
}
|
|
30526
|
-
this.titleService.setTitle(caseDetails + " - HM Courts & Tribunals Service - GOV.UK");
|
|
30527
30400
|
var locationId = this.caseDetails &&
|
|
30528
30401
|
this.caseDetails.basicFields &&
|
|
30529
30402
|
this.caseDetails.basicFields.caseManagementLocation &&
|
|
@@ -30552,8 +30425,8 @@
|
|
|
30552
30425
|
return CaseBasicAccessViewComponent;
|
|
30553
30426
|
}());
|
|
30554
30427
|
CaseBasicAccessViewComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
|
|
30555
|
-
CaseBasicAccessViewComponent.ɵfac = function CaseBasicAccessViewComponent_Factory(t) { return new (t || CaseBasicAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router)
|
|
30556
|
-
CaseBasicAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseBasicAccessViewComponent, selectors: [["ccd-case-basic-access-view"]], inputs: { caseDetails: "caseDetails", accessType: "accessType" },
|
|
30428
|
+
CaseBasicAccessViewComponent.ɵfac = function CaseBasicAccessViewComponent_Factory(t) { return new (t || CaseBasicAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router)); };
|
|
30429
|
+
CaseBasicAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseBasicAccessViewComponent, selectors: [["ccd-case-basic-access-view"]], inputs: { caseDetails: "caseDetails", accessType: "accessType" }, decls: 26, vars: 14, consts: [[4, "ngIf"], ["type", "information"], [1, "heading-h1"], [1, "govuk-heading-m"], [1, "govuk-summary-list"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-button-group"], [1, "govuk-button", "govuk-!-margin-right-3", 3, "routerLink"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "javascript:void(0)", 1, "govuk-body", 3, "click"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key", "summary-key"], [1, "govuk-summary-list__value"]], template: function CaseBasicAccessViewComponent_Template(rf, ctx) {
|
|
30557
30430
|
if (rf & 1) {
|
|
30558
30431
|
i0__namespace.ɵɵtemplate(0, CaseBasicAccessViewComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
|
|
30559
30432
|
i0__namespace.ɵɵelementStart(1, "div");
|
|
@@ -30624,10 +30497,9 @@
|
|
|
30624
30497
|
type: i0.Component,
|
|
30625
30498
|
args: [{
|
|
30626
30499
|
selector: 'ccd-case-basic-access-view',
|
|
30627
|
-
templateUrl: 'case-basic-access-view.component.html'
|
|
30628
|
-
providers: [CaseReferencePipe]
|
|
30500
|
+
templateUrl: 'case-basic-access-view.component.html'
|
|
30629
30501
|
}]
|
|
30630
|
-
}], function () { return [{ type: CasesService }, { type: i1__namespace$1.Router }
|
|
30502
|
+
}], function () { return [{ type: CasesService }, { type: i1__namespace$1.Router }]; }, { caseDetails: [{
|
|
30631
30503
|
type: i0.Input
|
|
30632
30504
|
}], accessType: [{
|
|
30633
30505
|
type: i0.Input
|
|
@@ -30864,9 +30736,9 @@
|
|
|
30864
30736
|
i0__namespace.ɵɵelementEnd();
|
|
30865
30737
|
}
|
|
30866
30738
|
if (rf & 2) {
|
|
30867
|
-
var
|
|
30739
|
+
var field_r23 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
30868
30740
|
i0__namespace.ɵɵadvance(2);
|
|
30869
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
30741
|
+
i0__namespace.ɵɵtextInterpolate(field_r23.label);
|
|
30870
30742
|
}
|
|
30871
30743
|
}
|
|
30872
30744
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) {
|
|
@@ -30881,14 +30753,14 @@
|
|
|
30881
30753
|
i0__namespace.ɵɵelementEnd();
|
|
30882
30754
|
}
|
|
30883
30755
|
if (rf & 2) {
|
|
30884
|
-
var
|
|
30885
|
-
var
|
|
30756
|
+
var field_r23 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30757
|
+
var ctx_r24 = i0__namespace.ɵɵnextContext(4);
|
|
30886
30758
|
i0__namespace.ɵɵadvance(1);
|
|
30887
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
30759
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r24.isFieldToHaveNoLabel(field_r23));
|
|
30888
30760
|
i0__namespace.ɵɵadvance(1);
|
|
30889
|
-
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
30761
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r23.id);
|
|
30890
30762
|
i0__namespace.ɵɵadvance(2);
|
|
30891
|
-
i0__namespace.ɵɵproperty("topLevelFormGroup",
|
|
30763
|
+
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r24.formGroup.controls["data"])("caseField", field_r23)("caseReference", ctx_r24.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r24.markdownUseHrefAsRouterLink);
|
|
30892
30764
|
}
|
|
30893
30765
|
}
|
|
30894
30766
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
|
|
@@ -30902,12 +30774,12 @@
|
|
|
30902
30774
|
i0__namespace.ɵɵelementEnd();
|
|
30903
30775
|
}
|
|
30904
30776
|
if (rf & 2) {
|
|
30905
|
-
var
|
|
30906
|
-
var
|
|
30777
|
+
var field_r23 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30778
|
+
var ctx_r25 = i0__namespace.ɵɵnextContext(4);
|
|
30907
30779
|
i0__namespace.ɵɵadvance(1);
|
|
30908
|
-
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" +
|
|
30780
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r23.id);
|
|
30909
30781
|
i0__namespace.ɵɵadvance(2);
|
|
30910
|
-
i0__namespace.ɵɵproperty("topLevelFormGroup",
|
|
30782
|
+
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r23)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
|
|
30911
30783
|
}
|
|
30912
30784
|
}
|
|
30913
30785
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) {
|
|
@@ -30923,12 +30795,12 @@
|
|
|
30923
30795
|
i0__namespace.ɵɵelementContainerEnd();
|
|
30924
30796
|
}
|
|
30925
30797
|
if (rf & 2) {
|
|
30926
|
-
var
|
|
30927
|
-
var
|
|
30798
|
+
var field_r23 = ctx.$implicit;
|
|
30799
|
+
var ctx_r22 = i0__namespace.ɵɵnextContext(4);
|
|
30928
30800
|
i0__namespace.ɵɵadvance(1);
|
|
30929
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
30801
|
+
i0__namespace.ɵɵproperty("caseField", field_r23)("contextFields", ctx_r22.caseFields)("hidden", field_r23.hidden);
|
|
30930
30802
|
i0__namespace.ɵɵadvance(1);
|
|
30931
|
-
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(3, 6,
|
|
30803
|
+
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(3, 6, field_r23));
|
|
30932
30804
|
i0__namespace.ɵɵadvance(2);
|
|
30933
30805
|
i0__namespace.ɵɵproperty("ngSwitchCase", true);
|
|
30934
30806
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -30948,10 +30820,10 @@
|
|
|
30948
30820
|
}
|
|
30949
30821
|
if (rf & 2) {
|
|
30950
30822
|
var tab_r20 = i0__namespace.ɵɵnextContext().$implicit;
|
|
30951
|
-
var
|
|
30823
|
+
var ctx_r21 = i0__namespace.ɵɵnextContext(2);
|
|
30952
30824
|
i0__namespace.ɵɵclassMap(tab_r20.id);
|
|
30953
30825
|
i0__namespace.ɵɵadvance(2);
|
|
30954
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(11, _c1$3, i0__namespace.ɵɵpipeBind1(4, 9, tab_r20),
|
|
30826
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(11, _c1$3, i0__namespace.ɵɵpipeBind1(4, 9, tab_r20), ctx_r21.formGroup.controls["data"])));
|
|
30955
30827
|
}
|
|
30956
30828
|
}
|
|
30957
30829
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template(rf, ctx) {
|
|
@@ -30970,8 +30842,8 @@
|
|
|
30970
30842
|
i0__namespace.ɵɵelement(0, "mat-tab", 26);
|
|
30971
30843
|
}
|
|
30972
30844
|
if (rf & 2) {
|
|
30973
|
-
var
|
|
30974
|
-
i0__namespace.ɵɵproperty("id",
|
|
30845
|
+
var tab_r31 = ctx.$implicit;
|
|
30846
|
+
i0__namespace.ɵɵproperty("id", tab_r31.id)("label", tab_r31.label);
|
|
30975
30847
|
}
|
|
30976
30848
|
}
|
|
30977
30849
|
function CaseFullAccessViewComponent_ng_container_12_router_outlet_6_Template(rf, ctx) {
|
|
@@ -30981,10 +30853,10 @@
|
|
|
30981
30853
|
}
|
|
30982
30854
|
function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) {
|
|
30983
30855
|
if (rf & 1) {
|
|
30984
|
-
var
|
|
30856
|
+
var _r33_1 = i0__namespace.ɵɵgetCurrentView();
|
|
30985
30857
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
30986
30858
|
i0__namespace.ɵɵelementStart(1, "mat-tab-group", 23, 24);
|
|
30987
|
-
i0__namespace.ɵɵlistener("
|
|
30859
|
+
i0__namespace.ɵɵlistener("selectedIndexChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedIndexChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r33_1); var ctx_r32 = i0__namespace.ɵɵnextContext(); return ctx_r32.tabChanged($event); });
|
|
30988
30860
|
i0__namespace.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template, 1, 2, "mat-tab", 25);
|
|
30989
30861
|
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template, 2, 2, "mat-tab", 25);
|
|
30990
30862
|
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template, 1, 2, "mat-tab", 25);
|
|
@@ -31007,7 +30879,7 @@
|
|
|
31007
30879
|
}
|
|
31008
30880
|
}
|
|
31009
30881
|
var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
31010
|
-
function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location, crf, sessionStorageService
|
|
30882
|
+
function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location, crf, sessionStorageService) {
|
|
31011
30883
|
this.ngZone = ngZone;
|
|
31012
30884
|
this.route = route;
|
|
31013
30885
|
this.router = router;
|
|
@@ -31022,8 +30894,7 @@
|
|
|
31022
30894
|
this.location = location;
|
|
31023
30895
|
this.crf = crf;
|
|
31024
30896
|
this.sessionStorageService = sessionStorageService;
|
|
31025
|
-
this.
|
|
31026
|
-
this.caseReferencePipe = caseReferencePipe;
|
|
30897
|
+
this.HEARINGS_TAB_LABEL = 'Hearings';
|
|
31027
30898
|
this.hasPrint = true;
|
|
31028
30899
|
this.hasEventSelector = true;
|
|
31029
30900
|
this.prependedTabs = [];
|
|
@@ -31035,20 +30906,11 @@
|
|
|
31035
30906
|
this.ignoreWarning = false;
|
|
31036
30907
|
this.selectedTabIndex = 0;
|
|
31037
30908
|
this.activeCaseFlags = false;
|
|
30909
|
+
this.subs = [];
|
|
31038
30910
|
this.callbackErrorsSubject = new rxjs.Subject();
|
|
31039
30911
|
}
|
|
31040
30912
|
CaseFullAccessViewComponent.prototype.ngOnInit = function () {
|
|
31041
30913
|
var _this = this;
|
|
31042
|
-
var _a;
|
|
31043
|
-
var caseName = (_a = this.caseDetails.basicFields) === null || _a === void 0 ? void 0 : _a.caseNameHmctsInternal;
|
|
31044
|
-
var caseDetails;
|
|
31045
|
-
if (caseName) {
|
|
31046
|
-
caseDetails = caseName + " (" + this.caseReferencePipe.transform(this.caseDetails.case_id) + ")";
|
|
31047
|
-
}
|
|
31048
|
-
else {
|
|
31049
|
-
caseDetails = this.caseReferencePipe.transform(this.caseDetails.case_id);
|
|
31050
|
-
}
|
|
31051
|
-
this.titleService.setTitle(caseDetails + " - HM Courts & Tribunals Service - GOV.UK");
|
|
31052
30914
|
initDialog();
|
|
31053
30915
|
this.init();
|
|
31054
30916
|
this.callbackErrorsSubject.subscribe(function (errorEvent) {
|
|
@@ -31097,6 +30959,7 @@
|
|
|
31097
30959
|
this.unsubscribe(this.callbackErrorsSubject);
|
|
31098
30960
|
this.unsubscribe(this.errorSubscription);
|
|
31099
30961
|
this.unsubscribe(this.subscription);
|
|
30962
|
+
this.subs.forEach(function (s) { return s.unsubscribe(); });
|
|
31100
30963
|
};
|
|
31101
30964
|
CaseFullAccessViewComponent.prototype.unsubscribe = function (subscription) {
|
|
31102
30965
|
if (subscription) {
|
|
@@ -31105,7 +30968,7 @@
|
|
|
31105
30968
|
};
|
|
31106
30969
|
CaseFullAccessViewComponent.prototype.checkRouteAndSetCaseViewTab = function () {
|
|
31107
30970
|
var _this = this;
|
|
31108
|
-
this.router.events
|
|
30971
|
+
this.subs.push(this.router.events
|
|
31109
30972
|
.pipe(operators.filter(function (event) { return event instanceof i1$1.NavigationEnd; }))
|
|
31110
30973
|
.subscribe(function (event) {
|
|
31111
30974
|
var url = event && event.url;
|
|
@@ -31117,8 +30980,9 @@
|
|
|
31117
30980
|
_this.tabGroup.selectedIndex = matTab.position;
|
|
31118
30981
|
}
|
|
31119
30982
|
}
|
|
31120
|
-
});
|
|
30983
|
+
}));
|
|
31121
30984
|
};
|
|
30985
|
+
;
|
|
31122
30986
|
CaseFullAccessViewComponent.prototype.postViewActivity = function () {
|
|
31123
30987
|
return this.activityPollingService.postViewActivity(this.caseDetails.case_id);
|
|
31124
30988
|
};
|
|
@@ -31241,22 +31105,25 @@
|
|
|
31241
31105
|
}
|
|
31242
31106
|
}
|
|
31243
31107
|
};
|
|
31244
|
-
|
|
31245
|
-
|
|
31246
|
-
this.
|
|
31247
|
-
var
|
|
31248
|
-
|
|
31249
|
-
//
|
|
31250
|
-
|
|
31251
|
-
|
|
31252
|
-
|
|
31108
|
+
// Refactored under EXUI-110 to address infinite tab loop to use tabIndexChanged instead
|
|
31109
|
+
CaseFullAccessViewComponent.prototype.tabChanged = function (tabIndexChanged) {
|
|
31110
|
+
var matTab = this.tabGroup._tabs.find(function (tab) { return tab.isActive; });
|
|
31111
|
+
var tabLabel = matTab.textLabel;
|
|
31112
|
+
// sortedTabs are fragments
|
|
31113
|
+
// appended/prepepended tabs use router navigation
|
|
31114
|
+
if ((tabIndexChanged <= 1 && this.prependedTabs && this.prependedTabs.length) ||
|
|
31115
|
+
(this.appendedTabs && this.appendedTabs.length && tabLabel === this.HEARINGS_TAB_LABEL)) {
|
|
31116
|
+
// Hack to get ID from tab as it's not easily achieved through Angular Material Tabs
|
|
31117
|
+
var tab = matTab['_viewContainerRef'];
|
|
31118
|
+
var id = tab.element.nativeElement.id;
|
|
31119
|
+
// cases/case-details/:caseId/hearings
|
|
31120
|
+
// cases/case-details/:caseId/roles-and-access
|
|
31253
31121
|
this.router.navigate([id], { relativeTo: this.route });
|
|
31254
31122
|
}
|
|
31255
31123
|
else {
|
|
31256
|
-
|
|
31257
|
-
|
|
31258
|
-
|
|
31259
|
-
});
|
|
31124
|
+
// Routing here is based on tab label, not ideal
|
|
31125
|
+
// cases/case-details/:caseId#tabLabel
|
|
31126
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: tabLabel });
|
|
31260
31127
|
}
|
|
31261
31128
|
};
|
|
31262
31129
|
CaseFullAccessViewComponent.prototype.onLinkClicked = function (triggerOutputEventText) {
|
|
@@ -31343,8 +31210,8 @@
|
|
|
31343
31210
|
var value = {};
|
|
31344
31211
|
if (caseFields) {
|
|
31345
31212
|
caseFields.forEach(function (caseField) {
|
|
31346
|
-
var
|
|
31347
|
-
value = Object.assign(Object.assign({}, value), (
|
|
31213
|
+
var _a;
|
|
31214
|
+
value = Object.assign(Object.assign({}, value), (_a = {}, _a[caseField.id] = caseField.value, _a));
|
|
31348
31215
|
});
|
|
31349
31216
|
}
|
|
31350
31217
|
return new i2.FormGroup({ data: new i2.FormControl(value) });
|
|
@@ -31354,6 +31221,12 @@
|
|
|
31354
31221
|
this.callbackErrorsSubject.next(null);
|
|
31355
31222
|
this.alertService.clear();
|
|
31356
31223
|
};
|
|
31224
|
+
CaseFullAccessViewComponent.prototype.getUrlFragment = function (url) {
|
|
31225
|
+
return url.split('#')[url.split('#').length - 1];
|
|
31226
|
+
};
|
|
31227
|
+
CaseFullAccessViewComponent.prototype.getTabIndexByTabLabel = function (tabGroup, tabLabel) {
|
|
31228
|
+
return tabGroup._tabs.toArray().findIndex(function (t) { return t.textLabel.toLowerCase() === tabLabel.toLowerCase(); });
|
|
31229
|
+
};
|
|
31357
31230
|
return CaseFullAccessViewComponent;
|
|
31358
31231
|
}());
|
|
31359
31232
|
CaseFullAccessViewComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
@@ -31361,7 +31234,7 @@
|
|
|
31361
31234
|
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
31362
31235
|
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
31363
31236
|
CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
|
|
31364
|
-
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SessionStorageService)
|
|
31237
|
+
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
31365
31238
|
CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
|
|
31366
31239
|
if (rf & 1) {
|
|
31367
31240
|
i0__namespace.ɵɵviewQuery(_c0$b, 1);
|
|
@@ -31370,7 +31243,7 @@
|
|
|
31370
31243
|
var _t = void 0;
|
|
31371
31244
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
31372
31245
|
}
|
|
31373
|
-
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵ
|
|
31246
|
+
}, 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) {
|
|
31374
31247
|
if (rf & 1) {
|
|
31375
31248
|
i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
|
|
31376
31249
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
|
|
@@ -31418,10 +31291,9 @@
|
|
|
31418
31291
|
args: [{
|
|
31419
31292
|
selector: 'ccd-case-full-access-view',
|
|
31420
31293
|
templateUrl: './case-full-access-view.component.html',
|
|
31421
|
-
styleUrls: ['./case-full-access-view.component.scss']
|
|
31422
|
-
providers: [CaseReferencePipe]
|
|
31294
|
+
styleUrls: ['./case-full-access-view.component.scss']
|
|
31423
31295
|
}]
|
|
31424
|
-
}], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$3.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: i0__namespace.ChangeDetectorRef }, { type: SessionStorageService }
|
|
31296
|
+
}], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$3.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: i0__namespace.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
|
|
31425
31297
|
type: i0.Input
|
|
31426
31298
|
}], hasEventSelector: [{
|
|
31427
31299
|
type: i0.Input
|
|
@@ -31640,10 +31512,11 @@
|
|
|
31640
31512
|
}
|
|
31641
31513
|
}
|
|
31642
31514
|
var CaseViewerComponent = /** @class */ (function () {
|
|
31643
|
-
function CaseViewerComponent(route, caseNotifier, appConfig) {
|
|
31515
|
+
function CaseViewerComponent(route, caseNotifier, appConfig, orderService) {
|
|
31644
31516
|
this.route = route;
|
|
31645
31517
|
this.caseNotifier = caseNotifier;
|
|
31646
31518
|
this.appConfig = appConfig;
|
|
31519
|
+
this.orderService = orderService;
|
|
31647
31520
|
this.hasPrint = true;
|
|
31648
31521
|
this.hasEventSelector = true;
|
|
31649
31522
|
this.prependedTabs = [];
|
|
@@ -31659,20 +31532,22 @@
|
|
|
31659
31532
|
};
|
|
31660
31533
|
CaseViewerComponent.prototype.loadCaseDetails = function () {
|
|
31661
31534
|
var _this = this;
|
|
31662
|
-
if (
|
|
31535
|
+
if (this.route.snapshot.data.case) {
|
|
31536
|
+
this.caseDetails = this.route.snapshot.data.case;
|
|
31537
|
+
this.caseDetails.tabs = this.orderService.sort(this.caseDetails.tabs);
|
|
31538
|
+
this.caseDetails.tabs = this.suffixDuplicateTabs(this.caseDetails.tabs);
|
|
31539
|
+
this.setUserAccessType(this.caseDetails);
|
|
31540
|
+
}
|
|
31541
|
+
else {
|
|
31663
31542
|
this.caseSubscription = this.caseNotifier.caseView.subscribe(function (caseDetails) {
|
|
31664
31543
|
_this.caseDetails = caseDetails;
|
|
31665
31544
|
_this.setUserAccessType(_this.caseDetails);
|
|
31666
31545
|
});
|
|
31667
31546
|
}
|
|
31668
|
-
else {
|
|
31669
|
-
this.caseDetails = this.route.snapshot.data.case;
|
|
31670
|
-
this.setUserAccessType(this.caseDetails);
|
|
31671
|
-
}
|
|
31672
31547
|
};
|
|
31673
31548
|
CaseViewerComponent.prototype.setUserAccessType = function (caseDetails) {
|
|
31674
31549
|
if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
|
|
31675
|
-
var accessProcess = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.
|
|
31550
|
+
var accessProcess = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCESS_ID; });
|
|
31676
31551
|
var accessGranted = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID; });
|
|
31677
31552
|
this.accessGranted = accessGranted ? accessGranted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
|
|
31678
31553
|
this.userAccessType = accessProcess ? accessProcess.value : null;
|
|
@@ -31687,14 +31562,30 @@
|
|
|
31687
31562
|
!this.accessGranted ? CaseViewerComponent.NON_STANDARD_USER_ACCESS_TYPES.indexOf(this.userAccessType) === -1 : true
|
|
31688
31563
|
: true;
|
|
31689
31564
|
};
|
|
31565
|
+
CaseViewerComponent.prototype.suffixDuplicateTabs = function (tabs) {
|
|
31566
|
+
var count = {};
|
|
31567
|
+
var firstOccurences = {};
|
|
31568
|
+
var item;
|
|
31569
|
+
var itemCount;
|
|
31570
|
+
for (var i = 0, c = tabs.length; i < c; i++) {
|
|
31571
|
+
item = tabs[i].label;
|
|
31572
|
+
itemCount = count[item];
|
|
31573
|
+
itemCount = count[item] = (itemCount == null ? 1 : itemCount + 1);
|
|
31574
|
+
if (count[item] > 1)
|
|
31575
|
+
tabs[i].label = tabs[i].label + Array(count[item] - 1).fill('_').join('');
|
|
31576
|
+
else
|
|
31577
|
+
firstOccurences[item] = i;
|
|
31578
|
+
}
|
|
31579
|
+
return tabs;
|
|
31580
|
+
};
|
|
31690
31581
|
return CaseViewerComponent;
|
|
31691
31582
|
}());
|
|
31692
|
-
CaseViewerComponent.
|
|
31583
|
+
CaseViewerComponent.METADATA_FIELD_ACCESS_PROCESS_ID = '[ACCESS_PROCESS]';
|
|
31693
31584
|
CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID = '[ACCESS_GRANTED]';
|
|
31694
31585
|
CaseViewerComponent.NON_STANDARD_USER_ACCESS_TYPES = ['CHALLENGED', 'SPECIFIC'];
|
|
31695
31586
|
CaseViewerComponent.BASIC_USER_ACCESS_TYPES = 'BASIC';
|
|
31696
|
-
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)); };
|
|
31697
|
-
CaseViewerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs"
|
|
31587
|
+
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), i0__namespace.ɵɵdirectiveInject(OrderService)); };
|
|
31588
|
+
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) {
|
|
31698
31589
|
if (rf & 1) {
|
|
31699
31590
|
i0__namespace.ɵɵtemplate(0, CaseViewerComponent_div_0_Template, 3, 2, "div", 0);
|
|
31700
31591
|
}
|
|
@@ -31709,7 +31600,7 @@
|
|
|
31709
31600
|
selector: 'ccd-case-viewer',
|
|
31710
31601
|
templateUrl: './case-viewer.component.html'
|
|
31711
31602
|
}]
|
|
31712
|
-
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }, { type: AbstractAppConfig }]; }, { hasPrint: [{
|
|
31603
|
+
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }, { type: AbstractAppConfig }, { type: OrderService }]; }, { hasPrint: [{
|
|
31713
31604
|
type: i0.Input
|
|
31714
31605
|
}], hasEventSelector: [{
|
|
31715
31606
|
type: i0.Input
|
|
@@ -31717,8 +31608,6 @@
|
|
|
31717
31608
|
type: i0.Input
|
|
31718
31609
|
}], appendedTabs: [{
|
|
31719
31610
|
type: i0.Input
|
|
31720
|
-
}], caseDetails: [{
|
|
31721
|
-
type: i0.Input
|
|
31722
31611
|
}] });
|
|
31723
31612
|
})();
|
|
31724
31613
|
|
|
@@ -36268,9 +36157,6 @@
|
|
|
36268
36157
|
exports.Profile = Profile;
|
|
36269
36158
|
exports.ProfileNotifier = ProfileNotifier;
|
|
36270
36159
|
exports.ProfileService = ProfileService;
|
|
36271
|
-
exports.QueryCreateComponent = QueryCreateComponent;
|
|
36272
|
-
exports.QueryDetailComponent = QueryDetailComponent;
|
|
36273
|
-
exports.QueryListComponent = QueryListComponent;
|
|
36274
36160
|
exports.ReadCaseFlagFieldComponent = ReadCaseFlagFieldComponent;
|
|
36275
36161
|
exports.ReadCaseLinkFieldComponent = ReadCaseLinkFieldComponent;
|
|
36276
36162
|
exports.ReadCollectionFieldComponent = ReadCollectionFieldComponent;
|
|
@@ -36298,7 +36184,6 @@
|
|
|
36298
36184
|
exports.ReadOrganisationFieldRawComponent = ReadOrganisationFieldRawComponent;
|
|
36299
36185
|
exports.ReadOrganisationFieldTableComponent = ReadOrganisationFieldTableComponent;
|
|
36300
36186
|
exports.ReadPhoneUKFieldComponent = ReadPhoneUKFieldComponent;
|
|
36301
|
-
exports.ReadQueryManagementFieldComponent = ReadQueryManagementFieldComponent;
|
|
36302
36187
|
exports.ReadTextAreaFieldComponent = ReadTextAreaFieldComponent;
|
|
36303
36188
|
exports.ReadTextFieldComponent = ReadTextFieldComponent;
|
|
36304
36189
|
exports.ReadYesNoFieldComponent = ReadYesNoFieldComponent;
|
|
@@ -36373,7 +36258,6 @@
|
|
|
36373
36258
|
exports.WriteOrganisationComplexFieldComponent = WriteOrganisationComplexFieldComponent;
|
|
36374
36259
|
exports.WriteOrganisationFieldComponent = WriteOrganisationFieldComponent;
|
|
36375
36260
|
exports.WritePhoneUKFieldComponent = WritePhoneUKFieldComponent;
|
|
36376
|
-
exports.WriteQueryManagementFieldComponent = WriteQueryManagementFieldComponent;
|
|
36377
36261
|
exports.WriteTextAreaFieldComponent = WriteTextAreaFieldComponent;
|
|
36378
36262
|
exports.WriteTextFieldComponent = WriteTextFieldComponent;
|
|
36379
36263
|
exports.WriteYesNoFieldComponent = WriteYesNoFieldComponent;
|
|
@@ -36392,7 +36276,6 @@
|
|
|
36392
36276
|
exports.editorRouting = editorRouting;
|
|
36393
36277
|
exports.initDialog = initDialog;
|
|
36394
36278
|
exports.newCaseField = newCaseField;
|
|
36395
|
-
exports.partyMessagesMockData = partyMessagesMockData;
|
|
36396
36279
|
exports.textFieldType = textFieldType;
|
|
36397
36280
|
exports.viewerRouting = viewerRouting;
|
|
36398
36281
|
|